1 #LyX 1.5.0svn created this file. For more info see http://www.lyx.org/
11 % set fonts for nicer pdf view
12 \IfFileExists{lmodern.sty}
13 {\usepackage{lmodern}} % if it exists
15 \usepackage[scaled=0.92]{helvet}
18 } % end if it exists not
20 % link all cross references and URLs
22 \usepackage[colorlinks=true, bookmarks, bookmarksnumbered, bookmarksopen, bookmarksopenlevel=1,
23 linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,
24 pdfpagelayout=OneColumn, pdfnewwindow=true,
25 pdfstartview=XYZ, plainpages=false, pdfpagelabels,
26 pdfauthor={LyX Team}, pdftex,
27 pdftitle={LyX's Figure, Table, Floats, Notes, and Boxes manual},
28 pdfsubject={LyX-documentation about figures, tables, floats, notes, and boxes},
29 pdfkeywords={LyX, Tables, Figures, Floats, Boxes, Notes}]{hyperref}
31 \else % if dvi or ps is produced
33 % link all cross references and URLs in DVI output
34 \usepackage[ps2pdf, colorlinks=true,
35 linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue]{hyperref}
37 \fi % end if pdflatex is used
39 % that links to image floats jumps
40 % to the beginning of the float and
42 \usepackage[figure]{hypcap}
44 % the pages of the TOC are numbered roman
45 % and a PDF-bookmark for the TOC is added
47 \let\myTOC\tableofcontents
48 \renewcommand{\tableofcontents}{%
49 \pdfbookmark[1]{Contents}{}
52 \pagenumbering{arabic}}
54 % provides caption formatting
55 \usepackage[labelfont={bf,sf}, tableposition=top]{caption}[2004/07/16]
57 % provides commands to set caption
58 % beside tables/images
61 \newcommand{\TabBesBeg}{%
63 \let\MyEndtable\endtable
64 \renewenvironment{table}{\begin{SCtable}}{\end{SCtable}}}
66 \newcommand{\TabBesEnd}{%
68 \let\endtable\MyEndtable}
70 \newcommand{\FigBesBeg}{%
72 \let\MyEndfigure\endfigure
73 \renewenvironment{figure}{\begin{SCfigure}}{\end{SCfigure}}}
75 \newcommand{\FigBesEnd}{%
77 \let\endfigure\MyEndfigure}
79 % enables calculation of values,
82 % provides special table cell alignments
85 % increase the bottom float placement fraction
86 \renewcommand{\bottomfraction}{0.5}
88 % avoids that floats are placed before their
89 % corresponding section starts
90 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
92 % speed up the longtable calculation
93 \setcounter{LTchunksize}{100}
95 % used for colored tables
96 \@ifundefined{textcolor}
97 {\usepackage{color}}{}
99 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
100 \definecolor{lightgrey}{gray}{0.8}
103 \usepackage{multirow}
104 %\renewcommand{\multirowsetup}{\centering}
106 % used for book-style tables
107 \usepackage{booktabs}
109 % used to have extra space in table cells,
110 \setlength{\extrarowheight}{2pt}
112 % used for customized tables
115 {>{\centering\hspace{0pt}}m{#1}}
118 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
121 {>{\columncolor{#1}\hspace{0pt}}c}
123 \newcolumntype{V}{!{\vrule width 1.5pt}}
125 \newcolumntype{W}{!{\color{green}\vline}}
128 % To be able to enter the characters ° and · directly in LyX
129 \DeclareInputText{176}{\ifmmode^\circ\else\textdegree\fi}
130 \DeclareInputText{183}{\ifmmode\cdot\else\textperiodcentered\fi}
132 % insert additional vertical space of
133 % 1.5 mm between footnotes
135 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
137 % enable algorithm floats to be referenced
138 \newfloat{Xalgorithm}{tbp}{loa}
139 \floatname{Xalgorithm}{Algorithm}
140 \newcommand{\theHalgorithm}{\theHXalgorithm}
141 \renewenvironment{algorithm}[1][tbp]
142 {\begin{Xalgorithm}[#1]}{\end{Xalgorithm}}
144 % number algorithm floats within chapters
145 \numberwithin{Xalgorithm}{chapter}
147 % redefine the greyed out note
148 \renewenvironment{lyxgreyedout}
149 {\textcolor{blue}\bgroup}{\egroup}
151 % ------------------------------------
152 % used to check for needed LaTeX packages
155 % check for package arydshln
156 % used for tables with dashed lines
157 \newboolean{arydshln}
158 \IfFileExists{arydshln.sty}
159 {\usepackage{arydshln}
160 \setboolean{arydshln}{true}}
161 {\setboolean{arydshln}{false}}
163 % check for package marginnote
164 % used for margin notes
165 \newboolean{marginnote}
166 \IfFileExists{marginnote.sty}
167 {\usepackage{marginnote}
168 \let\marginpar\marginnote
169 \setboolean{marginnote}{true}}
170 {\setboolean{marginnote}{false}}
172 \options tablecaptionabove,fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage
177 \font_typewriter default
178 \font_default_family default
192 \paperorientation portrait
195 \paragraph_separation skip
197 \quotes_language english
200 \paperpagestyle default
204 \tracking_changes false
205 \output_changes false
214 LyX's detailed Figure, Table, Floats, Notes, and Boxes manual
222 \begin_layout Standard
224 If you have comments or error corrections, please send them to the LyX Documenta
231 \begin_layout Standard
235 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's ExtendedInsets manual}{
240 lyx-docs@lists.lyx.org
244 \begin_layout Standard
257 \begin_inset Note Note
260 \begin_layout Standard
261 original author: Uwe Stöhr
277 \begin_layout Standard
278 \begin_inset LatexCommand tableofcontents
285 \begin_layout Standard
286 \begin_inset Note Note
289 \begin_layout Standard
290 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
300 If they are not installed you can export the document anyway but the sections
301 where the packages are required won't appear in the output.
304 \begin_layout Standard
305 The latest PDF-version of this document can be found here:
309 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
317 \begin_layout Chapter
319 \begin_inset LatexCommand label
325 \begin_inset LatexCommand index
333 \begin_layout Section
335 \begin_inset LatexCommand index
336 name "Figure ! Graphics Dialog"
341 \begin_inset LatexCommand label
342 name "sec:Graphics-Dialog"
349 \begin_layout Standard
350 To insert an image into your document, place the cursor at the text position
351 you want and click on the toolbar icon
352 \begin_inset Graphics
353 filename ../images/dialog-show-new-inset_graphics.xpm
360 Insert\SpecialChar \menuseparator
364 Then a dialog will appear to choose the file to load.
365 The image will appear in the output exactly at the position where it is
369 \begin_layout Standard
370 The graphics dialog can be called at any time by right-clicking on an image.
371 This dialog has three tabs:
374 \begin_layout Description
379 Here you can choose an image file and adjust its appearance in the output.
380 The available units for the image size are explained in appendix\InsetSpace ~
382 \begin_inset LatexCommand ref
383 reference "cha:Units-available-in"
389 You can rotate images counter-clockwise by setting a rotation angle and
391 The image will also be rotated inside LyX.
393 Images can be opened in a program
394 of your choice when pressing the
399 The program can be set for every image format in the file format settings
400 in LyX's preferences.
403 \begin_layout Description
408 Alternatively to the usage of scaling units it is possible to set image
409 coordinates to adjust the height and width of the image in the output.
410 The coordinates can also be calculated automatically by pressing the button
422 bounding\InsetSpace ~
425 will only print the image region within the given coordinates.
426 Normally you don't need to take care about image coordinates and can ignore
430 \begin_layout Description
436 In this tab you can modify the appearance of the image within LyX and set
437 the image to be a subfigure of a figure float with an own caption.
438 Subfigures are explained in section\InsetSpace ~
440 \begin_inset LatexCommand ref
441 reference "sec:Figure-Floats"
447 LaTeX experts can also specify on this tab additional LaTeX options.
455 makes the image appear in the output only as a frame with the size of the
465 option only affects zipped EPS-graphics, e.\InsetSpace \thinspace{}
472 When the option is used the images will not be unzipped on export, since
473 LaTeX can handle them as they are.
475 Zipped EPS-graphics are useful to save
476 disk space when you choose PostScript as output format, see appendix\InsetSpace ~
478 \begin_inset LatexCommand ref
479 reference "sec:PostScript"
484 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
495 zgrep %%Bounding x.eps.gz > x.eps.bb
499 The second command creates the bounding box file
500 \begin_inset Quotes eld
504 \begin_inset Quotes erd
507 that is needed by LaTeX for zipped graphics.
510 \begin_layout Standard
511 \begin_inset VSpace bigskip
517 \begin_layout Standard
518 This is an example image in EPS format
522 \begin_layout Standard
523 Image formats are explained in section\InsetSpace ~
525 \begin_inset LatexCommand ref
526 reference "sec:Image-Formats"
535 within a separate, horizontally centered paragraph:
538 \begin_layout Standard
540 \begin_inset Graphics
541 filename clipart/mobius.eps
551 \begin_layout Standard
552 This is the same image like the one above but in draft mode:
555 \begin_layout Standard
557 \begin_inset Graphics
558 filename clipart/mobius.eps
569 \begin_layout Section
571 \begin_inset LatexCommand label
572 name "sec:Figure-Floats"
577 \begin_inset LatexCommand index
578 name "Floats ! Figure Floats"
583 \begin_inset LatexCommand index
584 name "Figure ! Floats"
591 \begin_layout Standard
592 For general explanations about floats, have a look at section\InsetSpace ~
594 \begin_inset LatexCommand ref
595 reference "sec:FloatIntroduction"
602 \begin_layout Standard
604 \begin_inset Graphics
605 filename ../images/float-insert_figure.xpm
612 Insert\SpecialChar \menuseparator
613 Float\SpecialChar \menuseparator
616 inserts a float with a caption that has the label
617 \begin_inset Quotes eld
622 \begin_inset Quotes erd
625 (# is the actual number).
626 You can insert the image above the caption, like in Figure\InsetSpace ~
628 \begin_inset LatexCommand ref
629 reference "fig:kill-plat"
633 or below the caption, like in Figure\InsetSpace ~
635 \begin_inset LatexCommand ref
636 reference "fig:escher"
641 More about the caption placement is described in section\InsetSpace ~
643 \begin_inset LatexCommand ref
644 reference "sec:Caption-Placement"
651 \begin_layout Standard
652 \begin_inset Float figure
657 \begin_layout Standard
659 \begin_inset Graphics
660 filename clipart/platypus.eps
670 \begin_layout Standard
673 \begin_layout Standard
674 \begin_inset LatexCommand label
679 A severely distorted platypus in a float.
692 \begin_layout Standard
693 \begin_inset Float figure
698 \begin_layout Standard
701 \begin_layout Standard
702 \begin_inset LatexCommand label
716 \begin_layout Standard
718 \begin_inset Graphics
719 filename clipart/escher-lsd.eps
734 \begin_layout Standard
735 \begin_inset LatexCommand index
736 name "References ! to Figures"
742 \begin_inset LatexCommand ref
743 reference "fig:kill-plat"
748 \begin_inset LatexCommand ref
749 reference "fig:escher"
753 are examples of referenced figures.
754 Figures can be referenced in the text by referencing their label.
755 To do this insert a label in the caption using the menu
757 Insert\SpecialChar \menuseparator
760 or the toolbar button
761 \begin_inset Graphics
762 filename ../images/label-insert.xpm
768 You can now refer to the label using the menu
770 Insert\SpecialChar \menuseparator
774 or the toolbar button
775 \begin_inset Graphics
776 filename ../images/dialog-show-new-inset_ref.xpm
782 It is important to use references to floats, rather than using vague references
784 \begin_inset Quotes eld
788 \begin_inset Quotes erd
791 , because as LaTeX will reposition the floats in the final document, it
793 \begin_inset Quotes eld
797 \begin_inset Quotes erd
802 Referencing is explained in detail in section\InsetSpace ~
804 \begin_inset LatexCommand ref
805 reference "sec:Referencing-Floats"
812 \begin_layout Standard
813 Normally only one image is inserted to a figure float, but sometimes you
814 might want to use two images with separate subcaptions.
815 This can be set in the tab
820 of the graphics dialog.
821 Choose there the option
825 and enter the subcaption for the image in the caption field.
826 Note that only the main caption of the float is added to the List of Figures.
829 erencing subfigures is explained in section\InsetSpace ~
831 \begin_inset LatexCommand ref
832 reference "sub:Referencing-Subfigures"
839 \begin_layout Standard
842 \begin_inset LatexCommand ref
843 reference "fig:Two-distorted-images"
847 is an example of a figure float with two images set side by side.
848 You can also set the images one below the other.
851 \begin_layout Standard
852 \begin_inset Float figure
857 \begin_layout Standard
861 \begin_inset Graphics
862 filename clipart/escher-lsd.eps
865 subcaptionText "Undefinable structure"
872 \begin_inset Graphics
873 filename clipart/platypus.eps
877 subcaptionText "\label{fig:Platypus} Platypus"
886 \begin_layout Standard
889 \begin_layout Standard
890 \begin_inset LatexCommand label
891 name "fig:Two-distorted-images"
895 Two distorted images.
908 \begin_layout Section
910 \begin_inset LatexCommand label
911 name "sec:Image-Formats"
916 \begin_inset LatexCommand index
922 \begin_inset LatexCommand index
923 name "Figure ! Image Formats"
930 \begin_layout Standard
931 You can insert images in any known file format.
932 But as explained in appendix\InsetSpace ~
934 \begin_inset LatexCommand ref
935 reference "cha:Output-File-Formats"
939 , every output document format allows only a few image formats.
940 LyX uses therefore the program
944 in the background to convert the images to the right format.
945 To increase your work flow by avoiding these conversions in the background,
946 you can use only the image formats that can directly be embedded in the
948 The output file formats are explained in appendix\InsetSpace ~
950 \begin_inset LatexCommand ref
951 reference "cha:Output-File-Formats"
958 \begin_layout Standard
959 Similar to fonts there are two types of image formats:
962 \begin_layout Description
964 images consist of pixel values, often in a compressed form.
965 They are therefore not fully scalable and look pixeled in large zooms.
966 Well-known bitmap image formats are
967 \begin_inset Quotes eld
970 Graphics Interchange Format
971 \begin_inset Quotes erd
975 \begin_inset Quotes eld
983 \begin_inset Quotes erd
987 \begin_inset LatexCommand index
988 name "GIF|see{Image formats}"
993 \begin_inset Quotes eld
996 Portable Network Graphics
997 \begin_inset Quotes erd
1000 (PNG, file extension
1001 \begin_inset Quotes eld
1009 \begin_inset Quotes erd
1013 \begin_inset LatexCommand index
1014 name "PNG|see{Image formats}"
1019 \begin_inset Quotes eld
1022 Joint Photographic Experts Group
1023 \begin_inset Quotes erd
1026 (JPG, file extension
1027 \begin_inset Quotes eld
1035 \begin_inset Quotes erd
1039 \begin_inset Quotes eld
1047 \begin_inset Quotes erd
1051 \begin_inset LatexCommand index
1052 name "JPG|see{Image formats}"
1059 \begin_layout Description
1061 images consist of vectors and can therefore be scaled to any size
1063 The scaling ability is necessary if you want to create presentations, because
1064 presentations are always scaled by the video projector.
1065 Scaling is also useful for online documents to let the user zoom into diagrams.
1068 ell-known scalable image formats are
1069 \begin_inset Quotes eld
1072 Scalable Vector Graphics
1073 \begin_inset Quotes erd
1076 (SVG, file extension
1077 \begin_inset Quotes eld
1085 \begin_inset Quotes erd
1089 \begin_inset LatexCommand index
1090 name "SVG|see{Image formats}"
1095 \begin_inset Quotes eld
1098 Encapsulated PostScript
1099 \begin_inset Quotes erd
1102 (EPS, file extension
1103 \begin_inset Quotes eld
1111 \begin_inset Quotes erd
1115 \begin_inset LatexCommand index
1116 name "EPS|see{Image formats}"
1121 \begin_inset Quotes eld
1124 Portable Document Format
1125 \begin_inset Quotes erd
1128 (PDF, file extension
1129 \begin_inset Quotes eld
1137 \begin_inset Quotes erd
1141 \begin_inset LatexCommand index
1147 \begin_inset Quotes eld
1151 \begin_inset Quotes erd
1154 (WMF, file extension
1155 \begin_inset Quotes eld
1163 \begin_inset Quotes erd
1167 \begin_inset LatexCommand index
1168 name "SVG|see{Image formats}"
1174 \begin_inset Quotes eld
1178 \begin_inset Quotes erd
1181 , because you can convert any bitmap image to a PDF or EPS-image and the
1182 result will still be a bitmap image.
1183 In this cases only a header with the image properties is added to the original
1188 \begin_layout Standard
1189 In the case of PDF, the original image is additionally compressed.
1195 The PDF-files generated by
1199 are for example bitmap images.
1202 \begin_layout Standard
1203 Normally it is not possible to convert a bitmap image into a scalable one,
1205 Only the image formats PDF and EPS can directly be embedded to PDF and
1206 PostScript output files, respectively.
1207 SVG and WMF-images are currently recalculated to bitmaps when the output
1208 file is generated because there is currently no adequate WMF/SVG
1209 \begin_inset Formula $\to$
1212 PDF/EPS converter available.
1215 \begin_layout Chapter
1217 \begin_inset LatexCommand label
1223 \begin_inset LatexCommand index
1231 \begin_layout Section
1233 \begin_inset LatexCommand index
1234 name "Table ! Introduction"
1241 \begin_layout Standard
1242 You can insert a table using either the toolbar button
1243 \begin_inset Graphics
1244 filename ../images/tabular-insert.xpm
1251 Insert\SpecialChar \menuseparator
1255 The toolbar button offers you a graphical selection: Move the mouse to
1256 set the column/row number of the table that should be created and then
1257 press a mouse button.
1258 When you use the menu to create a table, a dialog will appear, asking you
1259 for the number of rows and columns.
1261 The default table has lines around any
1262 cell and the first row appears separated from the rest of the table.
1263 This separation occurs due to a double line: The cells of the first row
1264 have a line below them and the cells of the second row have a line above
1266 Here is an example table:
1269 \begin_layout Standard
1271 \begin_inset Tabular
1272 <lyxtabular version="3" rows="4" columns="4">
1274 <column alignment="center" valignment="top" leftline="true" width="0">
1275 <column alignment="center" valignment="top" leftline="true" width="0">
1276 <column alignment="center" valignment="top" leftline="true" width="0">
1277 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
1278 <row topline="true" bottomline="true">
1279 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1282 \begin_layout Standard
1288 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1291 \begin_layout Standard
1306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1309 \begin_layout Standard
1315 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1318 \begin_layout Standard
1325 <row topline="true">
1326 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1329 \begin_layout Standard
1344 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1347 \begin_layout Standard
1353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1356 \begin_layout Standard
1362 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1365 \begin_layout Standard
1372 <row topline="true">
1373 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1376 \begin_layout Standard
1391 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1394 \begin_layout Standard
1400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1403 \begin_layout Standard
1409 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1412 \begin_layout Standard
1419 <row topline="true" bottomline="true">
1420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1423 \begin_layout Standard
1438 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1441 \begin_layout Standard
1447 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1450 \begin_layout Standard
1456 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1459 \begin_layout Standard
1473 \begin_layout Section
1475 \begin_inset LatexCommand index
1476 name "Table ! Dialog"
1483 \begin_layout Standard
1484 You can alter a table by clicking on it with the right mouse button, which
1485 brings up the table dialog.
1486 Here you can adjust the settings of that cell and row/column respectively
1487 where the cursor is currently placed.
1488 Most of the dialog options also work on selections.
1489 This means if you select more cells, columns or rows, the action is done
1490 for the whole selection.
1491 Note that there is a difference between selecting the
1495 of the cell, and the cell itself.
1496 You can alter tables with the following tabs of the table dialog:
1499 \begin_layout Description
1505 Here you can set the horizontal alignment for the current row and the width
1506 of the current column.
1507 When you have set a width you can also adjust the vertical alignment of
1509 A given width will allow the cell to have line breaks and multiple paragraphs
1510 of text, see section\InsetSpace ~
1512 \begin_inset LatexCommand ref
1513 reference "sub:Multiple-Lines-in"
1518 If you set no width, the column is as wide as their widest cell content
1521 Furthermore, you can mark one or multiple cells of one row as a multicolumn
1522 cell, see section\InsetSpace ~
1524 \begin_inset LatexCommand ref
1525 reference "sub:Multicolumns"
1531 The rotate check boxes rotates the current cell, a selection, or the whole
1532 table counter-clockwise by 90°.
1533 The rotation is not shown within LyX, only in the output.
1536 \begin_inset Note Greyedout
1539 \begin_layout Standard
1544 Not all DVI-viewers are able to display rotations.
1551 It is also possible to enter a LaTeX-argument which is needed for special
1552 table formattings, see section\InsetSpace ~
1554 \begin_inset LatexCommand ref
1555 reference "sub:Multicolumn-Calculations"
1560 \begin_inset LatexCommand ref
1561 reference "sec:Colored-Tables"
1568 \begin_layout Description
1573 In this tab you can add and delete border lines for the current row/column.
1580 will convert the table to a formal table as described in section\InsetSpace ~
1582 \begin_inset LatexCommand ref
1583 reference "sec:Formal-Tables"
1589 You can also add here space to table rows as decribed in section\InsetSpace ~
1591 \begin_inset LatexCommand ref
1592 reference "sub:Row-Spacing"
1599 \begin_layout Description
1604 This tab is to make a table a so called
1605 \begin_inset Quotes eld
1613 \begin_inset Quotes erd
1616 that can run over several pages.
1617 Section\InsetSpace ~
1619 \begin_inset LatexCommand ref
1620 reference "sec:Longtables"
1625 \begin_inset LatexCommand ref
1626 reference "sec:Special-Longtable-Issues"
1630 describe the longtable features in detail.
1633 \begin_layout Standard
1634 When the table toolbar is opened, you can move the cursor with the arrow
1635 keys from cell to cell and the property of the current cell will immediately
1636 be displayed in the dialog.
1639 \begin_layout Section
1641 \begin_inset LatexCommand index
1642 name "Table ! Toolbar"
1649 \begin_layout Standard
1650 The table toolbar is an alternative to the table dialog to be able to alter
1652 It should normally appear at the bottom of LyX's main window when the cursor
1654 You can alternatively switch it on to appear always, by right-clicking
1655 in LyX's main menu bar.
1658 \begin_layout Standard
1659 The toolbar has the following icons:
1662 \begin_layout Labeling
1663 \labelwidthstring 00.00.0000
1664 \begin_inset Graphics
1665 filename ../images/tabular-feature_append-row.xpm
1669 adds a row below the current cell or selection
1672 \begin_layout Labeling
1673 \labelwidthstring 00.00.0000
1674 \begin_inset Graphics
1675 filename ../images/tabular-feature_append-column.xpm
1679 adds a column right beside the current cell or selection
1682 \begin_layout Labeling
1683 \labelwidthstring 00.00.0000
1684 \begin_inset Graphics
1685 filename ../images/tabular-feature_delete-row.xpm
1689 deletes the current row or selection
1692 \begin_layout Labeling
1693 \labelwidthstring 00.00.0000
1694 \begin_inset Graphics
1695 filename ../images/tabular-feature_delete-column.xpm
1699 deletes the current column or selection
1702 \begin_layout Labeling
1703 \labelwidthstring 00.00.0000
1704 \begin_inset Graphics
1705 filename ../images/tabular-feature_toggle-line-top.xpm
1709 adds a line at the top of the current cell / row or of a selection
1712 \begin_layout Labeling
1713 \labelwidthstring 00.00.0000
1714 \begin_inset Graphics
1715 filename ../images/tabular-feature_toggle-line-bottom.xpm
1719 adds a line at the bottom of the current cell / row or of a selection
1722 \begin_layout Labeling
1723 \labelwidthstring 00.00.0000
1724 \begin_inset Graphics
1725 filename ../images/tabular-feature_toggle-line-left.xpm
1729 adds a line at the left side of the current cell / row or of a selection
1732 \begin_layout Labeling
1733 \labelwidthstring 00.00.0000
1734 \begin_inset Graphics
1735 filename ../images/tabular-feature_toggle-line-right.xpm
1739 adds a line at the right side of the current cell / row or of a selection
1742 \begin_layout Labeling
1743 \labelwidthstring 00.00.0000
1744 \begin_inset Graphics
1745 filename ../images/tabular-feature_set-all-lines.xpm
1749 adds lines around the current or selected cells - if the current cell no
1750 multicolumn this also affects the current row and column
1753 \begin_layout Labeling
1754 \labelwidthstring 00.00.0000
1755 \begin_inset Graphics
1756 filename ../images/tabular-feature_unset-all-lines.xpm
1760 deletes all lines of the current or selected cells - if the current cell
1761 no multicolumn this also affects the current row and column
1764 \begin_layout Labeling
1765 \labelwidthstring 00.00.0000
1766 \begin_inset Graphics
1767 filename ../images/tabular-feature_align-left.xpm
1771 left-aligns the content of the current cell / column
1774 \begin_layout Labeling
1775 \labelwidthstring 00.00.0000
1776 \begin_inset Graphics
1777 filename ../images/tabular-feature_align-center.xpm
1781 centers the content of the current cell / column horizontally
1784 \begin_layout Labeling
1785 \labelwidthstring 00.00.0000
1786 \begin_inset Graphics
1787 filename ../images/tabular-feature_align-right.xpm
1791 right-aligns the content of the current cell / column
1794 \begin_layout Labeling
1795 \labelwidthstring 00.00.0000
1796 \begin_inset Graphics
1797 filename ../images/tabular-feature_valign-top.xpm
1801 aligns the content of the current cell vertically to the top
1804 \begin_layout Labeling
1805 \labelwidthstring 00.00.0000
1806 \begin_inset Graphics
1807 filename ../images/tabular-feature_valign-middle.xpm
1811 centers the content of the current cell vertically
1814 \begin_layout Labeling
1815 \labelwidthstring 00.00.0000
1816 \begin_inset Graphics
1817 filename ../images/tabular-feature_valign-bottom.xpm
1821 aligns the content of the current cell vertically to the bottom
1824 \begin_layout Labeling
1825 \labelwidthstring 00.00.0000
1826 \begin_inset Graphics
1827 filename ../images/tabular-feature_set-rotate-cell.xpm
1831 rotates the current cell or selection counter-clockwise by 90°
1834 \begin_layout Labeling
1835 \labelwidthstring 00.00.0000
1836 \begin_inset Graphics
1837 filename ../images/tabular-feature_set-rotate-tabular.xpm
1841 rotates the whole table counter-clockwise by 90°
1844 \begin_layout Labeling
1845 \labelwidthstring 00.00.0000
1846 \begin_inset Graphics
1847 filename ../images/tabular-feature_multicolumn.xpm
1851 sets the current cell or selection as a multicolumn
1854 \begin_layout Section
1856 \begin_inset LatexCommand index
1857 name "Table ! Edit Menu"
1864 \begin_layout Standard
1865 Additionally to the table dialog and toolbar, the menu
1867 Edit\SpecialChar \menuseparator
1870 allows you to add and delete border lines for the current row/column and
1871 to set the current selection as multicolumn.
1872 The menu is only available when the cursor is inside a table.
1875 \begin_layout Section
1877 \begin_inset LatexCommand label
1878 name "sec:Table-Floats"
1883 \begin_inset LatexCommand index
1884 name "Floats ! Tables"
1889 \begin_inset LatexCommand index
1890 name "Table ! Floats"
1897 \begin_layout Standard
1898 For general explanations about floats, have a look at section\InsetSpace ~
1900 \begin_inset LatexCommand ref
1901 reference "sec:FloatIntroduction"
1908 \begin_layout Standard
1909 \begin_inset Float table
1915 \begin_layout Standard
1916 \begin_inset Caption
1918 \begin_layout Standard
1919 \begin_inset LatexCommand label
1920 name "tab:a table float"
1932 \begin_layout Standard
1934 \begin_inset Tabular
1935 <lyxtabular version="3" rows="3" columns="3">
1937 <column alignment="center" valignment="top" leftline="true" width="0pt">
1938 <column alignment="center" valignment="top" leftline="true" width="0pt">
1939 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
1940 <row topline="true" bottomline="true">
1941 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1944 \begin_layout Standard
1959 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1962 \begin_layout Standard
1977 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1980 \begin_layout Standard
1996 <row topline="true">
1997 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2000 \begin_layout Standard
2015 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2018 \begin_layout Standard
2033 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2036 \begin_layout Standard
2052 <row topline="true" bottomline="true">
2053 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2056 \begin_layout Standard
2066 \begin_inset Formula $\int x^{2}dx$
2074 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2077 \begin_layout Standard
2087 \begin_inset Formula $\left[\begin{array}{cc}
2089 c & d\end{array}\right]$
2097 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2100 \begin_layout Standard
2110 \begin_inset Formula $1+1=2$
2131 \begin_layout Standard
2132 Table floats can be inserted using the menu
2134 Insert\SpecialChar \menuseparator
2135 Float\SpecialChar \menuseparator
2138 or the toolbar button
2139 \begin_inset Graphics
2140 filename ../images/float-insert_table.xpm
2148 \begin_layout Standard
2149 The float appears as a collapsible box with a caption that has the label
2151 \begin_inset Quotes eld
2156 \begin_inset Quotes erd
2159 (# is the actual table number).
2160 You can insert tables to the float above or below the caption.
2163 \begin_layout Standard
2166 \begin_inset LatexCommand ref
2167 reference "tab:a table float"
2171 is an example table within a table float.
2174 \begin_layout Standard
2175 Having the caption above the table is the common rule that is unfortunately
2176 not supported in LaTeX's standard classes.
2177 That means if you are using the document classes
2193 there will be no space between the caption and the table.
2194 To insert the needed space, add the following option to the load command
2195 of the LaTeX-package
2200 \begin_inset LatexCommand index
2201 name "LaTeX-packages ! caption"
2205 in your document preamble
2209 \begin_layout Standard
2210 For more information have a look at section\InsetSpace ~
2212 \begin_inset LatexCommand ref
2213 reference "sec:Caption-Placement"
2225 \begin_layout Standard
2231 \begin_layout Standard
2236 , which is described in section\InsetSpace ~
2238 \begin_inset LatexCommand ref
2239 reference "sec:Caption-Formatting"
2243 , is used to adjust the caption format.
2246 \begin_layout Standard
2247 \begin_inset LatexCommand index
2248 name "References ! to Tables"
2252 Tables can be cross-referenced in the text by referencing their label.
2253 To do this insert a label in the caption using the menu
2255 Insert\SpecialChar \menuseparator
2258 or the toolbar button
2259 \begin_inset Graphics
2260 filename ../images/label-insert.xpm
2266 You can now refer to the label using the menu
2268 Insert\SpecialChar \menuseparator
2272 or the toolbar button
2273 \begin_inset Graphics
2274 filename ../images/dialog-show-new-inset_ref.xpm
2281 Referencing is explained in detail in section\InsetSpace ~
2283 \begin_inset LatexCommand ref
2284 reference "sec:Referencing-Floats"
2291 \begin_layout Section
2293 \begin_inset LatexCommand label
2294 name "sec:Longtables"
2299 \begin_inset LatexCommand index
2305 \begin_inset LatexCommand index
2306 name "Table ! Longtables"
2313 \begin_layout Standard
2314 If the table is too long to fit on one page, you can use the option
2324 of the table dialog to split the table automatically over more pages.
2325 Doing this enables some check boxes and you can now define:
2328 \begin_layout Description
2333 : The current row and all rows above, that don't have any special options
2334 defined, are defined to be the header rows of all pages of the longtable;
2335 except for the first page, if
2341 This therefore called the main header.
2344 \begin_layout Description
2350 : The current row and all rows above, that don't have any special options
2351 defined, are defined to be the header rows of the first page of the longtable.
2354 \begin_layout Description
2359 : The current row and all rows below, that don't have any special options
2360 defined, are defined to be the footer rows of all pages of the longtable;
2361 except for the last page, if
2369 \begin_layout Description
2375 : The current row and all rows below, that don't have any special options
2376 defined, are defined to be the footer rows of the last page of the longtable.
2379 \begin_layout Standard
2380 You can also specify a row where the table is splitted.
2381 If you set more than one option in the same table row, you should be aware
2382 of the fact that only the first one is used in the given table row.
2383 The others will then be defined as
2388 In this context, first means first in this order:
2390 Footer, Last\InsetSpace ~
2403 See the following longtable to see how it works:
2406 \begin_layout Standard
2408 \begin_inset Tabular
2409 <lyxtabular version="3" rows="69" columns="3">
2410 <features islongtable="true">
2411 <column alignment="left" valignment="top" leftline="true" width="0cm">
2412 <column alignment="left" valignment="top" width="0pt">
2413 <column alignment="right" valignment="top" leftline="true" rightline="true" width="0pt">
2414 <row topline="true" bottomline="true" endfirsthead="true">
2415 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2418 \begin_layout Standard
2421 Example Phone List (ignore the names)
2426 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2429 \begin_layout Standard
2435 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2438 \begin_layout Standard
2445 <row topline="true" bottomline="true" endfirsthead="true">
2446 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2449 \begin_layout Standard
2457 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2460 \begin_layout Standard
2466 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2469 \begin_layout Standard
2478 <row topline="true" bottomline="true" endhead="true">
2479 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2482 \begin_layout Standard
2490 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2493 \begin_layout Standard
2499 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2502 \begin_layout Standard
2509 <row topline="true" bottomline="true" endhead="true">
2510 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2513 \begin_layout Standard
2521 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2524 \begin_layout Standard
2530 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2533 \begin_layout Standard
2542 <row topline="true" bottomline="true" endfoot="true">
2543 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
2546 \begin_layout Standard
2547 continued on next page
2552 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2555 \begin_layout Standard
2561 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2564 \begin_layout Standard
2572 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2575 \begin_layout Standard
2583 <cell alignment="center" valignment="top" topline="true" usebox="none">
2586 \begin_layout Standard
2592 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2595 \begin_layout Standard
2603 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2606 \begin_layout Standard
2614 <cell alignment="center" valignment="top" topline="true" usebox="none">
2617 \begin_layout Standard
2623 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2626 \begin_layout Standard
2634 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2637 \begin_layout Standard
2645 <cell alignment="center" valignment="top" topline="true" usebox="none">
2648 \begin_layout Standard
2654 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2657 \begin_layout Standard
2665 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2668 \begin_layout Standard
2676 <cell alignment="center" valignment="top" topline="true" usebox="none">
2679 \begin_layout Standard
2685 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2688 \begin_layout Standard
2696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2699 \begin_layout Standard
2707 <cell alignment="center" valignment="top" topline="true" usebox="none">
2710 \begin_layout Standard
2716 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2719 \begin_layout Standard
2727 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2730 \begin_layout Standard
2738 <cell alignment="center" valignment="top" topline="true" usebox="none">
2741 \begin_layout Standard
2747 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2750 \begin_layout Standard
2758 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2761 \begin_layout Standard
2769 <cell alignment="center" valignment="top" topline="true" usebox="none">
2772 \begin_layout Standard
2778 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2781 \begin_layout Standard
2789 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2792 \begin_layout Standard
2800 <cell alignment="center" valignment="top" topline="true" usebox="none">
2803 \begin_layout Standard
2809 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2812 \begin_layout Standard
2820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2823 \begin_layout Standard
2831 <cell alignment="center" valignment="top" topline="true" usebox="none">
2834 \begin_layout Standard
2840 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2843 \begin_layout Standard
2851 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2854 \begin_layout Standard
2862 <cell alignment="center" valignment="top" topline="true" usebox="none">
2865 \begin_layout Standard
2871 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2874 \begin_layout Standard
2882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2885 \begin_layout Standard
2893 <cell alignment="center" valignment="top" topline="true" usebox="none">
2896 \begin_layout Standard
2902 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2905 \begin_layout Standard
2913 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2916 \begin_layout Standard
2924 <cell alignment="center" valignment="top" topline="true" usebox="none">
2927 \begin_layout Standard
2933 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2936 \begin_layout Standard
2944 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2947 \begin_layout Standard
2955 <cell alignment="center" valignment="top" topline="true" usebox="none">
2958 \begin_layout Standard
2964 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2967 \begin_layout Standard
2975 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2978 \begin_layout Standard
2986 <cell alignment="center" valignment="top" topline="true" usebox="none">
2989 \begin_layout Standard
2995 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2998 \begin_layout Standard
3006 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3009 \begin_layout Standard
3017 <cell alignment="center" valignment="top" topline="true" usebox="none">
3020 \begin_layout Standard
3026 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3029 \begin_layout Standard
3037 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3040 \begin_layout Standard
3048 <cell alignment="center" valignment="top" topline="true" usebox="none">
3051 \begin_layout Standard
3057 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3060 \begin_layout Standard
3068 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3071 \begin_layout Standard
3079 <cell alignment="center" valignment="top" topline="true" usebox="none">
3082 \begin_layout Standard
3088 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3091 \begin_layout Standard
3099 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3102 \begin_layout Standard
3110 <cell alignment="center" valignment="top" topline="true" usebox="none">
3113 \begin_layout Standard
3119 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3122 \begin_layout Standard
3130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3133 \begin_layout Standard
3141 <cell alignment="center" valignment="top" topline="true" usebox="none">
3144 \begin_layout Standard
3150 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3153 \begin_layout Standard
3161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3164 \begin_layout Standard
3172 <cell alignment="center" valignment="top" topline="true" usebox="none">
3175 \begin_layout Standard
3181 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3184 \begin_layout Standard
3192 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3195 \begin_layout Standard
3203 <cell alignment="center" valignment="top" topline="true" usebox="none">
3206 \begin_layout Standard
3212 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3215 \begin_layout Standard
3223 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3226 \begin_layout Standard
3234 <cell alignment="center" valignment="top" topline="true" usebox="none">
3237 \begin_layout Standard
3243 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3246 \begin_layout Standard
3254 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3257 \begin_layout Standard
3265 <cell alignment="center" valignment="top" topline="true" usebox="none">
3268 \begin_layout Standard
3274 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3277 \begin_layout Standard
3285 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3288 \begin_layout Standard
3296 <cell alignment="center" valignment="top" topline="true" usebox="none">
3299 \begin_layout Standard
3305 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3308 \begin_layout Standard
3316 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3319 \begin_layout Standard
3327 <cell alignment="center" valignment="top" topline="true" usebox="none">
3330 \begin_layout Standard
3336 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3339 \begin_layout Standard
3347 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3350 \begin_layout Standard
3358 <cell alignment="center" valignment="top" topline="true" usebox="none">
3361 \begin_layout Standard
3367 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3370 \begin_layout Standard
3378 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3381 \begin_layout Standard
3389 <cell alignment="center" valignment="top" topline="true" usebox="none">
3392 \begin_layout Standard
3398 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3401 \begin_layout Standard
3409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3412 \begin_layout Standard
3420 <cell alignment="center" valignment="top" topline="true" usebox="none">
3423 \begin_layout Standard
3429 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3432 \begin_layout Standard
3440 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3443 \begin_layout Standard
3451 <cell alignment="center" valignment="top" topline="true" usebox="none">
3454 \begin_layout Standard
3460 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3463 \begin_layout Standard
3471 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3474 \begin_layout Standard
3482 <cell alignment="center" valignment="top" topline="true" usebox="none">
3485 \begin_layout Standard
3491 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3494 \begin_layout Standard
3501 <row bottomline="true">
3502 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3505 \begin_layout Standard
3513 <cell alignment="center" valignment="top" topline="true" usebox="none">
3516 \begin_layout Standard
3522 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3525 \begin_layout Standard
3532 <row bottomline="true">
3533 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3536 \begin_layout Standard
3542 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
3545 \begin_layout Standard
3551 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3554 \begin_layout Standard
3562 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3565 \begin_layout Standard
3573 <cell alignment="center" valignment="top" topline="true" usebox="none">
3576 \begin_layout Standard
3582 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3585 \begin_layout Standard
3593 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3596 \begin_layout Standard
3604 <cell alignment="center" valignment="top" topline="true" usebox="none">
3607 \begin_layout Standard
3613 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3616 \begin_layout Standard
3624 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3627 \begin_layout Standard
3635 <cell alignment="center" valignment="top" topline="true" usebox="none">
3638 \begin_layout Standard
3644 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3647 \begin_layout Standard
3655 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3658 \begin_layout Standard
3666 <cell alignment="center" valignment="top" topline="true" usebox="none">
3669 \begin_layout Standard
3675 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3678 \begin_layout Standard
3686 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3689 \begin_layout Standard
3697 <cell alignment="center" valignment="top" topline="true" usebox="none">
3700 \begin_layout Standard
3706 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3709 \begin_layout Standard
3717 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3720 \begin_layout Standard
3728 <cell alignment="center" valignment="top" topline="true" usebox="none">
3731 \begin_layout Standard
3737 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3740 \begin_layout Standard
3748 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3751 \begin_layout Standard
3759 <cell alignment="center" valignment="top" topline="true" usebox="none">
3762 \begin_layout Standard
3768 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3771 \begin_layout Standard
3779 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3782 \begin_layout Standard
3790 <cell alignment="center" valignment="top" topline="true" usebox="none">
3793 \begin_layout Standard
3799 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3802 \begin_layout Standard
3810 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3813 \begin_layout Standard
3821 <cell alignment="center" valignment="top" topline="true" usebox="none">
3824 \begin_layout Standard
3830 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3833 \begin_layout Standard
3841 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3844 \begin_layout Standard
3852 <cell alignment="center" valignment="top" topline="true" usebox="none">
3855 \begin_layout Standard
3861 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3864 \begin_layout Standard
3872 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3875 \begin_layout Standard
3883 <cell alignment="center" valignment="top" topline="true" usebox="none">
3886 \begin_layout Standard
3892 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3895 \begin_layout Standard
3903 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3906 \begin_layout Standard
3914 <cell alignment="center" valignment="top" topline="true" usebox="none">
3917 \begin_layout Standard
3923 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3926 \begin_layout Standard
3934 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3937 \begin_layout Standard
3945 <cell alignment="center" valignment="top" topline="true" usebox="none">
3948 \begin_layout Standard
3954 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3957 \begin_layout Standard
3965 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3968 \begin_layout Standard
3976 <cell alignment="center" valignment="top" topline="true" usebox="none">
3979 \begin_layout Standard
3985 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3988 \begin_layout Standard
3996 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3999 \begin_layout Standard
4007 <cell alignment="center" valignment="top" topline="true" usebox="none">
4010 \begin_layout Standard
4016 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4019 \begin_layout Standard
4027 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4030 \begin_layout Standard
4038 <cell alignment="center" valignment="top" topline="true" usebox="none">
4041 \begin_layout Standard
4047 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4050 \begin_layout Standard
4058 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4061 \begin_layout Standard
4069 <cell alignment="center" valignment="top" topline="true" usebox="none">
4072 \begin_layout Standard
4078 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4081 \begin_layout Standard
4089 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4092 \begin_layout Standard
4100 <cell alignment="center" valignment="top" topline="true" usebox="none">
4103 \begin_layout Standard
4109 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4112 \begin_layout Standard
4120 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4123 \begin_layout Standard
4131 <cell alignment="center" valignment="top" topline="true" usebox="none">
4134 \begin_layout Standard
4140 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4143 \begin_layout Standard
4151 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4154 \begin_layout Standard
4162 <cell alignment="center" valignment="top" topline="true" usebox="none">
4165 \begin_layout Standard
4171 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4174 \begin_layout Standard
4182 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4185 \begin_layout Standard
4193 <cell alignment="center" valignment="top" topline="true" usebox="none">
4196 \begin_layout Standard
4202 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4205 \begin_layout Standard
4213 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4216 \begin_layout Standard
4224 <cell alignment="center" valignment="top" topline="true" usebox="none">
4227 \begin_layout Standard
4233 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4236 \begin_layout Standard
4244 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4247 \begin_layout Standard
4255 <cell alignment="center" valignment="top" topline="true" usebox="none">
4258 \begin_layout Standard
4264 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4267 \begin_layout Standard
4275 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4278 \begin_layout Standard
4286 <cell alignment="center" valignment="top" topline="true" usebox="none">
4289 \begin_layout Standard
4295 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4298 \begin_layout Standard
4306 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4309 \begin_layout Standard
4317 <cell alignment="center" valignment="top" topline="true" usebox="none">
4320 \begin_layout Standard
4326 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4329 \begin_layout Standard
4337 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4340 \begin_layout Standard
4348 <cell alignment="center" valignment="top" topline="true" usebox="none">
4351 \begin_layout Standard
4357 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4360 \begin_layout Standard
4368 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4371 \begin_layout Standard
4379 <cell alignment="center" valignment="top" topline="true" usebox="none">
4382 \begin_layout Standard
4388 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4391 \begin_layout Standard
4399 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4402 \begin_layout Standard
4410 <cell alignment="center" valignment="top" topline="true" usebox="none">
4413 \begin_layout Standard
4419 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4422 \begin_layout Standard
4430 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4433 \begin_layout Standard
4441 <cell alignment="center" valignment="top" topline="true" usebox="none">
4444 \begin_layout Standard
4450 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4453 \begin_layout Standard
4461 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4464 \begin_layout Standard
4472 <cell alignment="center" valignment="top" topline="true" usebox="none">
4475 \begin_layout Standard
4481 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4484 \begin_layout Standard
4491 <row bottomline="true">
4492 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4495 \begin_layout Standard
4503 <cell alignment="center" valignment="top" topline="true" usebox="none">
4506 \begin_layout Standard
4512 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4515 \begin_layout Standard
4522 <row bottomline="true" endlastfoot="true">
4523 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
4526 \begin_layout Standard
4532 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4535 \begin_layout Standard
4541 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4544 \begin_layout Standard
4559 \begin_layout Standard
4563 addtocounter{table}{-1}
4569 \begin_inset Note Note
4572 \begin_layout Standard
4573 See greyed-out note in section 2.6.2 for an explanation of this command.
4581 \begin_layout Subsection
4582 Footnotes in Longtables
4583 \begin_inset LatexCommand label
4584 name "sub:Footnotes-in-Longtables"
4589 \begin_inset LatexCommand index
4590 name "Longtables ! Footnotes"
4597 \begin_layout Standard
4598 Footnotes can be inserted to every longtable cell.
4599 They appear at the bottom of the page where the table cell with the footnote
4603 \begin_inset LatexCommand ref
4604 reference "tab:DiffCaptions"
4608 has for example a footnote.
4611 \begin_layout Subsection
4613 \begin_inset LatexCommand index
4614 name "Longtables ! Captions"
4621 \begin_layout Standard
4622 A longtable cannot be put into a table float because floats can only be
4623 on one page but the caption environment of floats can also be used for
4627 \begin_layout Standard
4628 As LyX does not yet fully support captions in longtables, a hack is needed
4632 \begin_layout Enumerate
4638 \begin_layout Enumerate
4639 Mark the first row an disable its upper line.
4642 \begin_layout Enumerate
4643 Insert a caption via the menu
4645 Insert\SpecialChar \menuseparator
4648 into the first table cell.
4650 You can also add a short title for the caption.
4653 \begin_layout Enumerate
4655 \begin_inset Quotes eld
4667 \begin_inset Quotes erd
4670 as ERT behind the caption.
4673 \begin_layout Standard
4674 A short title that will appear in the LOT instead of the full title.
4683 behind the caption omits the vertical lines between the following cells
4685 The first table row is now only a dummy row for the caption, the actual
4686 table starts with the second row.
4689 \begin_layout Standard
4690 Here is a short longtable to see how it works:
4693 \begin_layout Standard
4694 \begin_inset Tabular
4695 <lyxtabular version="3" rows="6" columns="5">
4696 <features islongtable="true">
4697 <column alignment="center" valignment="top" leftline="true" width="0">
4698 <column alignment="center" valignment="top" leftline="true" width="0">
4699 <column alignment="center" valignment="top" leftline="true" width="0">
4700 <column alignment="center" valignment="top" leftline="true" width="0">
4701 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
4703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4706 \begin_layout Standard
4707 \begin_inset Caption
4709 \begin_layout Standard
4710 Longtable with caption
4714 \begin_layout Standard
4729 \begin_layout Standard
4745 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4748 \begin_layout Standard
4754 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4757 \begin_layout Standard
4763 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4766 \begin_layout Standard
4772 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4775 \begin_layout Standard
4782 <row topline="true">
4783 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4786 \begin_layout Standard
4792 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4795 \begin_layout Standard
4801 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4804 \begin_layout Standard
4810 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4813 \begin_layout Standard
4819 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4822 \begin_layout Standard
4829 <row topline="true">
4830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4833 \begin_layout Standard
4839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4842 \begin_layout Standard
4848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4851 \begin_layout Standard
4857 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4860 \begin_layout Standard
4866 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4869 \begin_layout Standard
4876 <row topline="true">
4877 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4880 \begin_layout Standard
4886 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4889 \begin_layout Standard
4895 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4898 \begin_layout Standard
4904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4907 \begin_layout Standard
4913 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4916 \begin_layout Standard
4923 <row topline="true">
4924 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4927 \begin_layout Standard
4933 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4936 \begin_layout Standard
4942 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4945 \begin_layout Standard
4951 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4954 \begin_layout Standard
4960 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4963 \begin_layout Standard
4970 <row topline="true" bottomline="true">
4971 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4974 \begin_layout Standard
4980 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4983 \begin_layout Standard
4989 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4992 \begin_layout Standard
4998 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5001 \begin_layout Standard
5007 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5010 \begin_layout Standard
5024 \begin_layout Standard
5025 \begin_inset VSpace medskip
5029 \begin_inset Note Greyedout
5032 \begin_layout Standard
5037 The table number is increased for every longtable, also if you didn't set
5039 For this reason you could have the case that e.g.
5041 2.4 follows on Table\InsetSpace ~
5042 2.1 in the list of tables if there are two longtables
5044 To avoid this you can add the following command in ERT behind every longtable
5048 \begin_layout Standard
5053 addtocounter{table}{-1}
5061 \begin_layout Standard
5062 \begin_inset Note Greyedout
5065 \begin_layout Standard
5070 If you are using the LaTeX-package
5075 \begin_inset LatexCommand index
5076 name "LaTeX-packages ! hyperref"
5080 to link cross-references, the link to a longtable caption will always point
5081 to the beginning of the document.
5089 \begin_layout Subsubsection
5090 References to Longtables
5091 \begin_inset LatexCommand index
5092 name "Longtables ! References"
5099 \begin_layout Standard
5100 \begin_inset Tabular
5101 <lyxtabular version="3" rows="6" columns="5">
5102 <features islongtable="true">
5103 <column alignment="center" valignment="top" leftline="true" width="0">
5104 <column alignment="center" valignment="top" leftline="true" width="0">
5105 <column alignment="center" valignment="top" leftline="true" width="0">
5106 <column alignment="center" valignment="top" leftline="true" width="0">
5107 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5109 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5112 \begin_layout Standard
5113 \begin_inset Caption
5115 \begin_layout Standard
5116 Referenced longtable
5117 \begin_inset LatexCommand label
5118 name "tab:RefExample"
5131 \begin_layout Standard
5147 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5150 \begin_layout Standard
5156 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5159 \begin_layout Standard
5165 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5168 \begin_layout Standard
5174 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5177 \begin_layout Standard
5184 <row topline="true">
5185 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5188 \begin_layout Standard
5194 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5197 \begin_layout Standard
5203 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5206 \begin_layout Standard
5212 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5215 \begin_layout Standard
5221 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5224 \begin_layout Standard
5231 <row topline="true">
5232 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5235 \begin_layout Standard
5241 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5244 \begin_layout Standard
5250 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5253 \begin_layout Standard
5259 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5262 \begin_layout Standard
5268 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5271 \begin_layout Standard
5278 <row topline="true">
5279 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5282 \begin_layout Standard
5288 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5291 \begin_layout Standard
5297 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5300 \begin_layout Standard
5306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5309 \begin_layout Standard
5315 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5318 \begin_layout Standard
5325 <row topline="true">
5326 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5329 \begin_layout Standard
5335 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5338 \begin_layout Standard
5344 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5347 \begin_layout Standard
5353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5356 \begin_layout Standard
5362 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5365 \begin_layout Standard
5372 <row topline="true" bottomline="true">
5373 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5376 \begin_layout Standard
5382 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5385 \begin_layout Standard
5391 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5394 \begin_layout Standard
5400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5403 \begin_layout Standard
5409 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5412 \begin_layout Standard
5426 \begin_layout Standard
5427 To reference a longtable, insert a label into the caption.
5428 Note that you have to add the label prefix
5429 \begin_inset Quotes eld
5437 \begin_inset Quotes eld
5440 manually in the label field.
5443 \begin_layout Standard
5444 This is a reference to Table\InsetSpace ~
5446 \begin_inset LatexCommand ref
5447 reference "tab:RefExample"
5454 \begin_layout Standard
5455 The caption layout can be set together with all other caption of your document
5456 using the LaTeX-package
5461 \begin_inset LatexCommand index
5462 name "LaTeX-packages ! caption"
5466 , see section\InsetSpace ~
5468 \begin_inset LatexCommand ref
5469 reference "sec:Caption-Formatting"
5476 \begin_layout Subsubsection
5478 \begin_inset LatexCommand index
5479 name "Longtables ! Caption Width"
5486 \begin_layout Standard
5487 The maximal width of of caption lines is defined by the length
5494 Its default value is 4\InsetSpace \thinspace{}
5496 To change it add the following command to your document preamble or as
5497 ERT into your document before the longtable that should be affected
5500 \begin_layout Standard
5510 \begin_layout Standard
5511 where the width could have one of the units listed in appendix\InsetSpace ~
5513 \begin_inset LatexCommand ref
5514 reference "cha:Units-available-in"
5521 \begin_layout Standard
5522 The following tables show the difference:
5525 \begin_layout Standard
5526 \begin_inset Tabular
5527 <lyxtabular version="3" rows="6" columns="5">
5528 <features islongtable="true">
5529 <column alignment="center" valignment="top" leftline="true" width="0">
5530 <column alignment="center" valignment="top" leftline="true" width="0">
5531 <column alignment="center" valignment="top" leftline="true" width="0">
5532 <column alignment="center" valignment="top" leftline="true" width="0">
5533 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5535 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5538 \begin_layout Standard
5539 \begin_inset Caption
5541 \begin_layout Standard
5542 long full title with default width long full title with default width long
5543 full title with default width
5547 \begin_layout Standard
5548 caption with default width
5562 \begin_layout Standard
5578 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5581 \begin_layout Standard
5587 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5590 \begin_layout Standard
5596 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5599 \begin_layout Standard
5605 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5608 \begin_layout Standard
5615 <row topline="true">
5616 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5619 \begin_layout Standard
5625 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5628 \begin_layout Standard
5634 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5637 \begin_layout Standard
5643 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5646 \begin_layout Standard
5652 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5655 \begin_layout Standard
5662 <row topline="true">
5663 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5666 \begin_layout Standard
5672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5675 \begin_layout Standard
5681 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5684 \begin_layout Standard
5690 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5693 \begin_layout Standard
5699 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5702 \begin_layout Standard
5709 <row topline="true">
5710 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5713 \begin_layout Standard
5719 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5722 \begin_layout Standard
5728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5731 \begin_layout Standard
5737 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5740 \begin_layout Standard
5746 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5749 \begin_layout Standard
5756 <row topline="true">
5757 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5760 \begin_layout Standard
5766 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5769 \begin_layout Standard
5775 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5778 \begin_layout Standard
5784 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5787 \begin_layout Standard
5793 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5796 \begin_layout Standard
5803 <row topline="true" bottomline="true">
5804 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5807 \begin_layout Standard
5813 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5816 \begin_layout Standard
5822 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5825 \begin_layout Standard
5831 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5834 \begin_layout Standard
5840 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5843 \begin_layout Standard
5857 \begin_layout Standard
5861 \begin_layout Standard
5873 \begin_inset Tabular
5874 <lyxtabular version="3" rows="6" columns="5">
5875 <features islongtable="true">
5876 <column alignment="center" valignment="top" leftline="true" width="0">
5877 <column alignment="center" valignment="top" leftline="true" width="0">
5878 <column alignment="center" valignment="top" leftline="true" width="0">
5879 <column alignment="center" valignment="top" leftline="true" width="0">
5880 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5885 \begin_layout Standard
5886 \begin_inset Caption
5888 \begin_layout Standard
5889 long full title with width set to 5\InsetSpace \thinspace{}
5890 cm long full title with width set to
5891 5\InsetSpace \thinspace{}
5892 cm long full title with width set to 5\InsetSpace \thinspace{}
5897 \begin_layout Standard
5898 caption with width\InsetSpace \thinspace{}
5899 =\InsetSpace \thinspace{}
5900 5\InsetSpace \thinspace{}
5915 \begin_layout Standard
5931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5934 \begin_layout Standard
5940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5943 \begin_layout Standard
5949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5952 \begin_layout Standard
5958 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5961 \begin_layout Standard
5968 <row topline="true">
5969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5972 \begin_layout Standard
5978 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5981 \begin_layout Standard
5987 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5990 \begin_layout Standard
5996 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5999 \begin_layout Standard
6005 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6008 \begin_layout Standard
6015 <row topline="true">
6016 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6019 \begin_layout Standard
6025 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6028 \begin_layout Standard
6034 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6037 \begin_layout Standard
6043 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6046 \begin_layout Standard
6052 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6055 \begin_layout Standard
6062 <row topline="true">
6063 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6066 \begin_layout Standard
6072 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6075 \begin_layout Standard
6081 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6084 \begin_layout Standard
6090 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6093 \begin_layout Standard
6099 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6102 \begin_layout Standard
6109 <row topline="true">
6110 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6113 \begin_layout Standard
6119 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6122 \begin_layout Standard
6128 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6131 \begin_layout Standard
6137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6140 \begin_layout Standard
6146 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6149 \begin_layout Standard
6156 <row topline="true" bottomline="true">
6157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6160 \begin_layout Standard
6166 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6169 \begin_layout Standard
6175 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6178 \begin_layout Standard
6184 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6187 \begin_layout Standard
6193 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6196 \begin_layout Standard
6211 \begin_layout Standard
6225 \begin_layout Standard
6229 \begin_layout Subsubsection
6230 Different Captions for Table Pages
6231 \begin_inset LatexCommand index
6232 name "Longtables ! Different Captions for Pages"
6239 \begin_layout Standard
6240 When the other captions should differ from the one of the first table page,
6241 insert a caption with a non-empty short title in a dummy caption row marked
6243 The caption used for the other table pages is inserted as caption without
6244 a short title in a dummy caption row that is marked as main header.
6245 When this caption shouldn't include the table number, use the command
6248 \begin_layout Standard
6253 caption*{caption text}
6256 \begin_layout Standard
6257 instead of LyX's caption box.
6258 The label to reference the table is inserted into the caption of the first
6262 \begin_inset LatexCommand ref
6263 reference "tab:DiffCaptions"
6267 is an example for a longtable with different heading where the second caption
6268 doesn't include the table number.
6271 \begin_layout Standard
6273 \begin_inset Tabular
6274 <lyxtabular version="3" rows="60" columns="3">
6275 <features islongtable="true">
6276 <column alignment="left" valignment="top" leftline="true" width="0cm">
6277 <column alignment="left" valignment="top" rightline="true" width="0pt">
6278 <column alignment="right" valignment="top" rightline="true" width="0pt">
6279 <row endfirsthead="true">
6280 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6283 \begin_layout Standard
6284 \begin_inset Caption
6286 \begin_layout Standard
6288 \begin_inset LatexCommand label
6289 name "tab:DiffCaptions"
6297 \begin_layout Standard
6312 \begin_layout Standard
6328 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6331 \begin_layout Standard
6337 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6340 \begin_layout Standard
6347 <row topline="true" bottomline="true" endfirsthead="true">
6348 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6351 \begin_layout Standard
6354 Example Phone List (ignore the names)
6359 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6362 \begin_layout Standard
6368 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6371 \begin_layout Standard
6378 <row topline="true" bottomline="true" endfirsthead="true">
6379 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6382 \begin_layout Standard
6390 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6393 \begin_layout Standard
6399 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6402 \begin_layout Standard
6411 <row bottomline="true" endhead="true">
6412 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6415 \begin_layout Standard
6419 \begin_layout Standard
6423 caption*{Continued Example Phone List}
6437 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6440 \begin_layout Standard
6446 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6449 \begin_layout Standard
6456 <row topline="true" bottomline="true" endhead="true">
6457 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6460 \begin_layout Standard
6468 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6471 \begin_layout Standard
6477 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6480 \begin_layout Standard
6487 <row topline="true" bottomline="true" endhead="true">
6488 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6491 \begin_layout Standard
6499 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6502 \begin_layout Standard
6508 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6511 \begin_layout Standard
6520 <row topline="true" bottomline="true" endfoot="true">
6521 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
6524 \begin_layout Standard
6525 continued on next page
6530 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6533 \begin_layout Standard
6539 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6542 \begin_layout Standard
6550 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6553 \begin_layout Standard
6561 <cell alignment="center" valignment="top" topline="true" usebox="none">
6564 \begin_layout Standard
6570 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6573 \begin_layout Standard
6581 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6584 \begin_layout Standard
6592 <cell alignment="center" valignment="top" topline="true" usebox="none">
6595 \begin_layout Standard
6601 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6604 \begin_layout Standard
6612 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6615 \begin_layout Standard
6623 <cell alignment="center" valignment="top" topline="true" usebox="none">
6626 \begin_layout Standard
6632 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6635 \begin_layout Standard
6643 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6646 \begin_layout Standard
6654 <cell alignment="center" valignment="top" topline="true" usebox="none">
6657 \begin_layout Standard
6663 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6666 \begin_layout Standard
6674 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6677 \begin_layout Standard
6685 <cell alignment="center" valignment="top" topline="true" usebox="none">
6688 \begin_layout Standard
6694 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6697 \begin_layout Standard
6705 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6708 \begin_layout Standard
6716 <cell alignment="center" valignment="top" topline="true" usebox="none">
6719 \begin_layout Standard
6725 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6728 \begin_layout Standard
6736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6739 \begin_layout Standard
6747 <cell alignment="center" valignment="top" topline="true" usebox="none">
6750 \begin_layout Standard
6756 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6759 \begin_layout Standard
6767 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6770 \begin_layout Standard
6778 <cell alignment="center" valignment="top" topline="true" usebox="none">
6781 \begin_layout Standard
6787 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6790 \begin_layout Standard
6798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6801 \begin_layout Standard
6809 <cell alignment="center" valignment="top" topline="true" usebox="none">
6812 \begin_layout Standard
6818 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6821 \begin_layout Standard
6829 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6832 \begin_layout Standard
6840 <cell alignment="center" valignment="top" topline="true" usebox="none">
6843 \begin_layout Standard
6849 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6852 \begin_layout Standard
6860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6863 \begin_layout Standard
6871 <cell alignment="center" valignment="top" topline="true" usebox="none">
6874 \begin_layout Standard
6880 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6883 \begin_layout Standard
6891 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6894 \begin_layout Standard
6902 <cell alignment="center" valignment="top" topline="true" usebox="none">
6905 \begin_layout Standard
6911 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6914 \begin_layout Standard
6922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6925 \begin_layout Standard
6933 <cell alignment="center" valignment="top" topline="true" usebox="none">
6936 \begin_layout Standard
6942 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6945 \begin_layout Standard
6953 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6956 \begin_layout Standard
6964 <cell alignment="center" valignment="top" topline="true" usebox="none">
6967 \begin_layout Standard
6973 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6976 \begin_layout Standard
6984 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6987 \begin_layout Standard
6996 \begin_layout Standard
7007 <cell alignment="center" valignment="top" topline="true" usebox="none">
7010 \begin_layout Standard
7016 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7019 \begin_layout Standard
7027 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7030 \begin_layout Standard
7038 <cell alignment="center" valignment="top" topline="true" usebox="none">
7041 \begin_layout Standard
7047 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7050 \begin_layout Standard
7058 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7061 \begin_layout Standard
7069 <cell alignment="center" valignment="top" topline="true" usebox="none">
7072 \begin_layout Standard
7078 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7081 \begin_layout Standard
7089 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7092 \begin_layout Standard
7100 <cell alignment="center" valignment="top" topline="true" usebox="none">
7103 \begin_layout Standard
7109 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7112 \begin_layout Standard
7120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7123 \begin_layout Standard
7131 <cell alignment="center" valignment="top" topline="true" usebox="none">
7134 \begin_layout Standard
7140 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7143 \begin_layout Standard
7151 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7154 \begin_layout Standard
7162 <cell alignment="center" valignment="top" topline="true" usebox="none">
7165 \begin_layout Standard
7171 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7174 \begin_layout Standard
7182 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7185 \begin_layout Standard
7193 <cell alignment="center" valignment="top" topline="true" usebox="none">
7196 \begin_layout Standard
7202 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7205 \begin_layout Standard
7213 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7216 \begin_layout Standard
7224 <cell alignment="center" valignment="top" topline="true" usebox="none">
7227 \begin_layout Standard
7233 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7236 \begin_layout Standard
7244 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7247 \begin_layout Standard
7255 <cell alignment="center" valignment="top" topline="true" usebox="none">
7258 \begin_layout Standard
7264 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7267 \begin_layout Standard
7275 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7278 \begin_layout Standard
7286 <cell alignment="center" valignment="top" topline="true" usebox="none">
7289 \begin_layout Standard
7295 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7298 \begin_layout Standard
7306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7309 \begin_layout Standard
7317 <cell alignment="center" valignment="top" topline="true" usebox="none">
7320 \begin_layout Standard
7326 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7329 \begin_layout Standard
7337 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7340 \begin_layout Standard
7348 <cell alignment="center" valignment="top" topline="true" usebox="none">
7351 \begin_layout Standard
7357 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7360 \begin_layout Standard
7368 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7371 \begin_layout Standard
7379 <cell alignment="center" valignment="top" topline="true" usebox="none">
7382 \begin_layout Standard
7388 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7391 \begin_layout Standard
7399 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7402 \begin_layout Standard
7410 <cell alignment="center" valignment="top" topline="true" usebox="none">
7413 \begin_layout Standard
7419 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7422 \begin_layout Standard
7430 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7433 \begin_layout Standard
7441 <cell alignment="center" valignment="top" topline="true" usebox="none">
7444 \begin_layout Standard
7450 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7453 \begin_layout Standard
7461 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7464 \begin_layout Standard
7472 <cell alignment="center" valignment="top" topline="true" usebox="none">
7475 \begin_layout Standard
7481 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7484 \begin_layout Standard
7491 <row bottomline="true">
7492 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7495 \begin_layout Standard
7503 <cell alignment="center" valignment="top" topline="true" usebox="none">
7506 \begin_layout Standard
7512 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7515 \begin_layout Standard
7522 <row bottomline="true">
7523 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7526 \begin_layout Standard
7532 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
7535 \begin_layout Standard
7541 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7544 \begin_layout Standard
7552 <cell alignment="left" valignment="top" bottomline="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
7583 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7586 \begin_layout Standard
7594 <cell alignment="center" valignment="top" topline="true" usebox="none">
7597 \begin_layout Standard
7603 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7606 \begin_layout Standard
7614 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7617 \begin_layout Standard
7625 <cell alignment="center" valignment="top" topline="true" usebox="none">
7628 \begin_layout Standard
7634 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7637 \begin_layout Standard
7645 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7648 \begin_layout Standard
7656 <cell alignment="center" valignment="top" topline="true" usebox="none">
7659 \begin_layout Standard
7665 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7668 \begin_layout Standard
7676 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7679 \begin_layout Standard
7687 <cell alignment="center" valignment="top" topline="true" usebox="none">
7690 \begin_layout Standard
7696 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7699 \begin_layout Standard
7707 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7710 \begin_layout Standard
7718 <cell alignment="center" valignment="top" topline="true" usebox="none">
7721 \begin_layout Standard
7727 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7730 \begin_layout Standard
7738 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7741 \begin_layout Standard
7749 <cell alignment="center" valignment="top" topline="true" usebox="none">
7752 \begin_layout Standard
7758 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7761 \begin_layout Standard
7769 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7772 \begin_layout Standard
7780 <cell alignment="center" valignment="top" topline="true" usebox="none">
7783 \begin_layout Standard
7789 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7792 \begin_layout Standard
7800 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7803 \begin_layout Standard
7811 <cell alignment="center" valignment="top" topline="true" usebox="none">
7814 \begin_layout Standard
7820 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7823 \begin_layout Standard
7831 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7834 \begin_layout Standard
7842 <cell alignment="center" valignment="top" topline="true" usebox="none">
7845 \begin_layout Standard
7851 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7854 \begin_layout Standard
7862 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7865 \begin_layout Standard
7873 <cell alignment="center" valignment="top" topline="true" usebox="none">
7876 \begin_layout Standard
7882 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7885 \begin_layout Standard
7893 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7896 \begin_layout Standard
7904 <cell alignment="center" valignment="top" topline="true" usebox="none">
7907 \begin_layout Standard
7913 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7916 \begin_layout Standard
7924 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7927 \begin_layout Standard
7935 <cell alignment="center" valignment="top" topline="true" usebox="none">
7938 \begin_layout Standard
7944 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7947 \begin_layout Standard
7955 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7958 \begin_layout Standard
7966 <cell alignment="center" valignment="top" topline="true" usebox="none">
7969 \begin_layout Standard
7975 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7978 \begin_layout Standard
7986 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7989 \begin_layout Standard
7997 <cell alignment="center" valignment="top" topline="true" usebox="none">
8000 \begin_layout Standard
8006 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8009 \begin_layout Standard
8017 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8020 \begin_layout Standard
8028 <cell alignment="center" valignment="top" topline="true" usebox="none">
8031 \begin_layout Standard
8037 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8040 \begin_layout Standard
8048 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8051 \begin_layout Standard
8059 <cell alignment="center" valignment="top" topline="true" usebox="none">
8062 \begin_layout Standard
8068 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8071 \begin_layout Standard
8079 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8082 \begin_layout Standard
8090 <cell alignment="center" valignment="top" topline="true" usebox="none">
8093 \begin_layout Standard
8099 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8102 \begin_layout Standard
8110 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8113 \begin_layout Standard
8121 <cell alignment="center" valignment="top" topline="true" usebox="none">
8124 \begin_layout Standard
8130 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8133 \begin_layout Standard
8140 <row bottomline="true">
8141 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8144 \begin_layout Standard
8152 <cell alignment="center" valignment="top" topline="true" usebox="none">
8155 \begin_layout Standard
8161 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8164 \begin_layout Standard
8171 <row bottomline="true" endlastfoot="true">
8172 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
8175 \begin_layout Standard
8181 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8184 \begin_layout Standard
8190 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8193 \begin_layout Standard
8207 \begin_layout Section
8208 Special Longtable Issues
8209 \begin_inset LatexCommand label
8210 name "sec:Special-Longtable-Issues"
8217 \begin_layout Subsection
8218 Longtable Calculation
8219 \begin_inset LatexCommand index
8220 name "Longtables ! Calculation"
8227 \begin_layout Standard
8228 LaTeX calculates the height of table pages and their page breaks using so
8230 Chunks are pieces of the tables that are at once in LaTeX's memory.
8231 The default value is historically set to only 20 table rows.
8232 If you are using longtables with many pages this may slow down the creation
8234 You can safely increase the chunk size to values of 100-1000 by adding
8235 this command line to your document preamble:
8238 \begin_layout Standard
8243 setcounter{LTchunksize}{100}
8246 \begin_layout Subsection
8247 Floats and Longtables
8248 \begin_inset LatexCommand index
8249 name "Longtables ! Floats"
8256 \begin_layout Standard
8257 There might be problems when a float appears on the same page where a longtable
8259 To avoid such situation, add the command
8265 as ERT before your longtable.
8268 \begin_layout Subsection
8270 \begin_inset LatexCommand index
8271 name "Longtables ! Forced Page Breaks"
8278 \begin_layout Standard
8279 By default tables are only broken between rows.
8280 If you have a cell with multiples lines and want to have a page break within
8281 the cell, insert the new line command
8282 \begin_inset Quotes eld
8294 \begin_inset Quotes erd
8297 as ERT at this point of the cell where it should be broken.
8306 command you have to insert in ERT so many
8307 \begin_inset Quotes eld
8315 \begin_inset Quotes erd
8318 characters like the number of the following table columns.
8323 is the character to separate table cells.
8324 Write in ERT after each
8328 the content of the corresponding following cell and delete the content
8339 command, insert so many
8343 characters like the number of table columns before the current column.
8344 In Table\InsetSpace ~
8346 \begin_inset LatexCommand ref
8347 reference "tab:ForcedPagebreak"
8351 the cell that should be broken is in the second column followed by another
8353 Therefore the following command was inserted in the cell as ERT behind
8355 \begin_inset Quotes eld
8363 \begin_inset Quotes erd
8369 \begin_layout Standard
8381 \begin_layout Standard
8383 \begin_inset Quotes eld
8387 \begin_inset Quotes erd
8390 in the third columns of the row was deleted.
8391 If your footer row of the longtable has for a certain reason no upper line
8392 but you would have a horizontal line where the cell is broken, use this
8396 \begin_layout Standard
8410 \begin_layout Standard
8411 When the cell to be broken is in the last column, the command
8414 \begin_layout Standard
8421 parf\SpecialChar \textcompwordmark{}
8425 \begin_layout Standard
8426 must be inserted as ERT at the beginning of the cell.
8427 This assures that the part of the cell that will be displayed on the new
8428 page appears with the full width.
8432 \begin_layout Standard
8434 \begin_inset Tabular
8435 <lyxtabular version="3" rows="39" columns="3">
8436 <features islongtable="true">
8437 <column alignment="left" valignment="top" leftline="true" width="0cm">
8438 <column alignment="left" valignment="top" rightline="true" width="3cm">
8439 <column alignment="right" valignment="top" rightline="true" width="0pt">
8440 <row endfirsthead="true">
8441 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8444 \begin_layout Standard
8445 \begin_inset Caption
8447 \begin_layout Standard
8448 Table with forced page break in table cell
8449 \begin_inset LatexCommand label
8450 name "tab:ForcedPagebreak"
8458 \begin_layout Standard
8459 Table with forced page break in table cell
8473 \begin_layout Standard
8489 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8492 \begin_layout Standard
8498 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8501 \begin_layout Standard
8508 <row topline="true" bottomline="true" endfirsthead="true">
8509 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8512 \begin_layout Standard
8515 Example Phone List (ignore the names)
8520 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8523 \begin_layout Standard
8529 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8532 \begin_layout Standard
8539 <row topline="true" bottomline="true" endfirsthead="true">
8540 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8543 \begin_layout Standard
8551 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8554 \begin_layout Standard
8560 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8563 \begin_layout Standard
8572 <row bottomline="true" endhead="true">
8573 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8576 \begin_layout Standard
8580 \begin_layout Standard
8584 caption*{Continued table with forced page break in table cell}
8598 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8601 \begin_layout Standard
8607 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8610 \begin_layout Standard
8617 <row topline="true" bottomline="true" endhead="true">
8618 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8621 \begin_layout Standard
8629 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8632 \begin_layout Standard
8638 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8641 \begin_layout Standard
8648 <row topline="true" bottomline="true" endhead="true">
8649 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8652 \begin_layout Standard
8660 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8663 \begin_layout Standard
8669 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8672 \begin_layout Standard
8681 <row topline="true" bottomline="true" endfoot="true">
8682 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
8685 \begin_layout Standard
8686 continued on next page
8691 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8694 \begin_layout Standard
8700 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8703 \begin_layout Standard
8711 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8714 \begin_layout Standard
8722 <cell alignment="center" valignment="top" topline="true" usebox="none">
8725 \begin_layout Standard
8731 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8734 \begin_layout Standard
8742 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8745 \begin_layout Standard
8753 <cell alignment="center" valignment="top" topline="true" usebox="none">
8756 \begin_layout Standard
8762 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8765 \begin_layout Standard
8773 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8776 \begin_layout Standard
8784 <cell alignment="center" valignment="top" topline="true" usebox="none">
8787 \begin_layout Standard
8793 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8796 \begin_layout Standard
8804 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8807 \begin_layout Standard
8815 <cell alignment="center" valignment="top" topline="true" usebox="none">
8818 \begin_layout Standard
8824 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8827 \begin_layout Standard
8835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8838 \begin_layout Standard
8846 <cell alignment="center" valignment="top" topline="true" usebox="none">
8849 \begin_layout Standard
8855 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8858 \begin_layout Standard
8866 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8869 \begin_layout Standard
8877 <cell alignment="center" valignment="top" topline="true" usebox="none">
8880 \begin_layout Standard
8886 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8889 \begin_layout Standard
8897 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8900 \begin_layout Standard
8908 <cell alignment="center" valignment="top" topline="true" usebox="none">
8911 \begin_layout Standard
8917 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8920 \begin_layout Standard
8928 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8931 \begin_layout Standard
8939 <cell alignment="center" valignment="top" topline="true" usebox="none">
8942 \begin_layout Standard
8948 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8951 \begin_layout Standard
8959 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8962 \begin_layout Standard
8970 <cell alignment="center" valignment="top" topline="true" usebox="none">
8973 \begin_layout Standard
8979 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8982 \begin_layout Standard
8990 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8993 \begin_layout Standard
9001 <cell alignment="center" valignment="top" topline="true" usebox="none">
9004 \begin_layout Standard
9010 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9013 \begin_layout Standard
9021 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9024 \begin_layout Standard
9032 <cell alignment="center" valignment="top" topline="true" usebox="none">
9035 \begin_layout Standard
9041 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9044 \begin_layout Standard
9052 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9055 \begin_layout Standard
9063 <cell alignment="center" valignment="top" topline="true" usebox="none">
9066 \begin_layout Standard
9072 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9075 \begin_layout Standard
9083 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9086 \begin_layout Standard
9094 <cell alignment="center" valignment="top" topline="true" usebox="none">
9097 \begin_layout Standard
9103 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9106 \begin_layout Standard
9114 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9117 \begin_layout Standard
9125 <cell alignment="center" valignment="top" topline="true" usebox="none">
9128 \begin_layout Standard
9134 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9137 \begin_layout Standard
9145 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9148 \begin_layout Standard
9156 <cell alignment="center" valignment="top" topline="true" usebox="none">
9159 \begin_layout Standard
9165 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9168 \begin_layout Standard
9176 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9179 \begin_layout Standard
9187 <cell alignment="center" valignment="top" topline="true" usebox="none">
9190 \begin_layout Standard
9196 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9199 \begin_layout Standard
9207 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9210 \begin_layout Standard
9218 <cell alignment="center" valignment="top" topline="true" usebox="none">
9221 \begin_layout Standard
9227 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9230 \begin_layout Standard
9238 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9241 \begin_layout Standard
9249 <cell alignment="center" valignment="top" topline="true" usebox="none">
9252 \begin_layout Standard
9258 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9261 \begin_layout Standard
9269 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9272 \begin_layout Standard
9280 <cell alignment="center" valignment="top" topline="true" usebox="none">
9283 \begin_layout Standard
9289 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9292 \begin_layout Standard
9300 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9303 \begin_layout Standard
9311 <cell alignment="center" valignment="top" topline="true" usebox="none">
9314 \begin_layout Standard
9320 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9323 \begin_layout Standard
9331 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9334 \begin_layout Standard
9342 <cell alignment="center" valignment="top" topline="true" usebox="none">
9345 \begin_layout Standard
9351 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9354 \begin_layout Standard
9362 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9365 \begin_layout Standard
9373 <cell alignment="center" valignment="top" topline="true" usebox="none">
9376 \begin_layout Standard
9382 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9385 \begin_layout Standard
9393 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9396 \begin_layout Standard
9404 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9407 \begin_layout Standard
9409 Fürst von Montecompatri, 11.
9410 Fürst von Sulmona und Vivaro, 10.
9411 Fürst von Rossano, 5.
9412 Herzog von Canemorte, 11.
9413 Herzog von Palombara, 5.
9414 Herzog von Castelchiodato,
9418 \begin_layout Standard
9427 \begin_layout Standard
9435 Herzog von Poggionativo, 11.
9436 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
9437 Graf von Valinfreda, 11.
9438 Baron von Cropalati, 11.
9439 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
9444 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9447 \begin_layout Standard
9455 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9458 \begin_layout Standard
9466 <cell alignment="center" valignment="top" topline="true" usebox="none">
9469 \begin_layout Standard
9475 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9478 \begin_layout Standard
9486 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9489 \begin_layout Standard
9497 <cell alignment="center" valignment="top" topline="true" usebox="none">
9500 \begin_layout Standard
9506 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9509 \begin_layout Standard
9517 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9520 \begin_layout Standard
9528 <cell alignment="center" valignment="top" topline="true" usebox="none">
9531 \begin_layout Standard
9537 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9540 \begin_layout Standard
9548 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9551 \begin_layout Standard
9559 <cell alignment="center" valignment="top" topline="true" usebox="none">
9562 \begin_layout Standard
9568 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9571 \begin_layout Standard
9579 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9582 \begin_layout Standard
9590 <cell alignment="center" valignment="top" topline="true" usebox="none">
9593 \begin_layout Standard
9599 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9602 \begin_layout Standard
9610 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9613 \begin_layout Standard
9621 <cell alignment="center" valignment="top" topline="true" usebox="none">
9624 \begin_layout Standard
9630 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9633 \begin_layout Standard
9641 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9644 \begin_layout Standard
9652 <cell alignment="center" valignment="top" topline="true" usebox="none">
9655 \begin_layout Standard
9661 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9664 \begin_layout Standard
9671 <row bottomline="true">
9672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9675 \begin_layout Standard
9683 <cell alignment="center" valignment="top" topline="true" usebox="none">
9686 \begin_layout Standard
9692 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9695 \begin_layout Standard
9702 <row endlastfoot="true">
9703 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9706 \begin_layout Standard
9712 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9715 \begin_layout Standard
9721 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9724 \begin_layout Standard
9738 \begin_layout Section
9739 Multiple Lines Columns and Rows
9742 \begin_layout Subsection
9743 Multiple Lines in Table Cells
9744 \begin_inset LatexCommand label
9745 name "sub:Multiple-Lines-in"
9750 \begin_inset LatexCommand index
9751 name "Multiple Lines in Table Cells"
9756 \begin_inset LatexCommand index
9757 name "Table ! Linebreaks"
9764 \begin_layout Standard
9766 \begin_inset Float table
9772 \begin_layout Standard
9773 \begin_inset Caption
9775 \begin_layout Standard
9776 \begin_inset LatexCommand label
9777 name "tab:Table-with-multiple"
9781 Table with multiple lines in cells
9789 \begin_layout Standard
9791 \begin_inset Tabular
9792 <lyxtabular version="3" rows="3" columns="3">
9794 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
9795 <column alignment="center" valignment="middle" leftline="true" width="0.5cm">
9796 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0.5cm">
9797 <row topline="true">
9798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9801 \begin_layout Standard
9806 \begin_layout Standard
9820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9823 \begin_layout Standard
9829 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9832 \begin_layout Standard
9839 <row topline="true">
9840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9843 \begin_layout Standard
9849 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9852 \begin_layout Standard
9858 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9861 \begin_layout Standard
9868 <row topline="true" bottomline="true">
9869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9872 \begin_layout Standard
9878 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9881 \begin_layout Standard
9887 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9890 \begin_layout Standard
9909 \begin_layout Standard
9910 Adjusting a fixed width for a column, enables to enter text as a paragraph
9911 with multiple lines and hyphenations.
9914 \begin_layout Standard
9915 To produce Table\InsetSpace ~
9917 \begin_inset LatexCommand ref
9918 reference "tab:Table-with-multiple"
9922 , create a 3×3 table, mark the first cell and right-click on it.
9923 In the appearing table dialog we set a cell width of 2.5\InsetSpace \thinspace{}
9924 cm and choose centered
9925 for the vertical and horizontal alignment.
9926 As our text is smaller than than 2.5\InsetSpace \thinspace{}
9927 cm, only one line will appear.
9928 To get two lines, we add a line break with the command
9931 \begin_layout Standard
9939 \begin_layout Standard
9941 If the text is wider than the set cell width it will automatically be broken
9945 \begin_layout Standard
9946 To center the text inside the two other cells of the first row vertically,
9947 right-click in the second cell, adjust a fixed width of 0.5\InsetSpace \thinspace{}
9949 centered alignments.
9950 Then do the same for the third cell of the row.
9953 \begin_layout Standard
9954 If you have a long word in a cell with a fixed width, it cannot be hyphenated
9955 by LaTeX if it is the first entry.
9956 Therefore you need to insert something, to make the word not being the
9957 first entry: Add the command
9960 \begin_layout Standard
9968 \begin_layout Standard
9969 in ERT before the word.
9970 As the space is zero, it doesn't change the output.
9973 \begin_inset LatexCommand ref
9974 reference "tab:Table-with-and"
9981 \begin_layout Standard
9982 \begin_inset Float table
9987 \begin_layout Standard
9988 \begin_inset Caption
9990 \begin_layout Standard
9991 \begin_inset LatexCommand label
9992 name "tab:Table-with-and"
9996 Table with and without hyphenation
10004 \begin_layout Standard
10008 \begin_inset Tabular
10009 <lyxtabular version="3" rows="3" columns="3">
10011 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10012 <column alignment="center" valignment="middle" leftline="true" width="0.5cm">
10013 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0.5cm">
10014 <row topline="true">
10015 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10018 \begin_layout Standard
10019 verylongtablecellword
10024 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10027 \begin_layout Standard
10033 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10036 \begin_layout Standard
10043 <row topline="true">
10044 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10047 \begin_layout Standard
10053 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10056 \begin_layout Standard
10062 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10065 \begin_layout Standard
10072 <row topline="true" bottomline="true">
10073 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10076 \begin_layout Standard
10082 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10085 \begin_layout Standard
10091 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10094 \begin_layout Standard
10108 \begin_inset Tabular
10109 <lyxtabular version="3" rows="3" columns="3">
10111 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10112 <column alignment="center" valignment="middle" leftline="true" width="0.5cm">
10113 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0.5cm">
10114 <row topline="true">
10115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10118 \begin_layout Standard
10122 \begin_layout Standard
10131 verylongtablecellword
10136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10139 \begin_layout Standard
10145 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10148 \begin_layout Standard
10155 <row topline="true">
10156 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10159 \begin_layout Standard
10165 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10168 \begin_layout Standard
10174 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10177 \begin_layout Standard
10184 <row topline="true" bottomline="true">
10185 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10188 \begin_layout Standard
10194 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10197 \begin_layout Standard
10203 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10206 \begin_layout Standard
10227 \begin_layout Standard
10233 \begin_layout Subsection
10235 \begin_inset LatexCommand label
10236 name "sub:Multicolumns"
10241 \begin_inset LatexCommand index
10242 name "Multicolumns"
10247 \begin_inset LatexCommand index
10248 name "Table ! Multicolumns"
10255 \begin_layout Subsubsection
10259 \begin_layout Standard
10260 To span a cell over multiple columns, mark as much cells within a line that
10261 should be one spanned cell and use either the table-toolbar button
10262 \begin_inset Graphics
10263 filename ../images/tabular-feature_multicolumn.xpm
10270 Edit\SpecialChar \menuseparator
10271 Table\SpecialChar \menuseparator
10274 , or right click on the marked cells and choose multicolumn in the appearing
10275 table dialog under the tab
10282 \begin_layout Standard
10283 Multicolumns have there own cell settings.
10284 That means changing cell borders, cell alignment, and the width only affects
10286 Here is an example table with a multicolumn cell in the first row and one
10287 in the last row without the upper border:
10290 \begin_layout Standard
10292 \begin_inset Tabular
10293 <lyxtabular version="3" rows="3" columns="4">
10294 <features firstHeadTopDL="true" firstHeadBottomDL="true">
10295 <column alignment="center" valignment="top" leftline="true" width="0pt">
10296 <column alignment="center" valignment="middle" leftline="true" width="0">
10297 <column alignment="center" valignment="top" leftline="true" width="0in">
10298 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
10299 <row topline="true" bottomline="true">
10300 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10303 \begin_layout Standard
10309 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
10312 \begin_layout Standard
10322 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10325 \begin_layout Standard
10331 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10334 \begin_layout Standard
10341 <row topline="true">
10342 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10345 \begin_layout Standard
10360 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10363 \begin_layout Standard
10369 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10372 \begin_layout Standard
10378 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10381 \begin_layout Standard
10388 <row topline="true" bottomline="true">
10389 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10392 \begin_layout Standard
10398 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10401 \begin_layout Standard
10407 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10410 \begin_layout Standard
10416 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10419 \begin_layout Standard
10433 \begin_layout Subsubsection
10434 Multicolumn Calculations
10435 \begin_inset LatexCommand label
10436 name "sub:Multicolumn-Calculations"
10441 \begin_inset LatexCommand index
10442 name "Multicolumns ! Calculations"
10449 \begin_layout Standard
10450 LyX supports multicolumns directly, but we have to take notice of the cell
10451 width of the columns spanned by the multicolumn cell.
10454 \begin_layout Standard
10455 \begin_inset Float table
10460 \begin_layout Standard
10461 \begin_inset Caption
10463 \begin_layout Standard
10464 \begin_inset LatexCommand label
10465 name "tab:Table-with-centered"
10469 Table with centered multicolumn text above two columns that have exactly
10470 half the width of the multicolumn cell
10471 \begin_inset OptArg
10474 \begin_layout Standard
10475 Perfect multicolumn table
10488 \begin_layout Standard
10490 \begin_inset Tabular
10491 <lyxtabular version="3" rows="3" columns="3">
10493 <column alignment="center" valignment="middle" leftline="true" width="0" special="|>{\centering}m{1.25cm-6.2pt}">
10494 <column alignment="center" valignment="middle" leftline="true" width="0">
10495 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10496 <row topline="true">
10497 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special="|>{\centering}m{2.5cm}|">
10500 \begin_layout Standard
10501 multiple lines multicolumn
10506 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10509 \begin_layout Standard
10515 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10518 \begin_layout Standard
10525 <row topline="true">
10526 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10529 \begin_layout Standard
10535 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10538 \begin_layout Standard
10544 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10547 \begin_layout Standard
10554 <row topline="true" bottomline="true">
10555 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10558 \begin_layout Standard
10564 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10567 \begin_layout Standard
10573 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10576 \begin_layout Standard
10595 \begin_layout Standard
10596 To create for example Table\InsetSpace ~
10598 \begin_inset LatexCommand ref
10599 reference "tab:Table-with-centered"
10603 , mark the first two cells in the first row a 3×3 table and right-click
10605 Now choose for this cell
10613 and a width of 2.5\InsetSpace \thinspace{}
10614 cm in the table dialog.
10615 The spanned columns should have exactly half the width of the multicolumn
10616 cell, so that you would adjust a width of 1.25\InsetSpace \thinspace{}
10617 cm for the first column.
10618 The second column has then automatically a width of 1.25\InsetSpace \thinspace{}
10620 width - width of first column).
10621 This was done for Table\InsetSpace ~
10623 \begin_inset LatexCommand ref
10624 reference "tab:Table-without-half"
10631 \begin_layout Standard
10632 \begin_inset Float table
10637 \begin_layout Standard
10638 \begin_inset Caption
10640 \begin_layout Standard
10641 \begin_inset LatexCommand label
10642 name "tab:Table-without-half"
10646 Table where the spanned table columns have not exactly half the width of
10647 the multicolumn cell
10648 \begin_inset OptArg
10651 \begin_layout Standard
10652 Imperfect multicolumn table
10665 \begin_layout Standard
10667 \begin_inset Tabular
10668 <lyxtabular version="3" rows="3" columns="3">
10670 <column alignment="center" valignment="top" leftline="true" width="1.25cm">
10671 <column alignment="center" valignment="top" leftline="true" width="0">
10672 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10673 <row topline="true" bottomline="true">
10674 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
10677 \begin_layout Standard
10678 multiple lines multicolumn
10683 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10686 \begin_layout Standard
10692 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10695 \begin_layout Standard
10702 <row topline="true">
10703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10706 \begin_layout Standard
10712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10715 \begin_layout Standard
10721 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10724 \begin_layout Standard
10731 <row topline="true" bottomline="true">
10732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10735 \begin_layout Standard
10741 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10744 \begin_layout Standard
10750 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10753 \begin_layout Standard
10772 \begin_layout Standard
10773 You can see that the first column has not the half width of the multicolumn
10774 cell, it is a bit bigger.
10775 The reason is that the given width of a cell
10776 \begin_inset Formula $W_{g}$
10779 is not its total width
10780 \begin_inset Formula $W_{\mathrm{tot}}$
10783 because a cell is always a bit larger than its given width.
10784 Appendix\InsetSpace ~
10786 \begin_inset LatexCommand eqref
10787 reference "cha:Explanation-of-Equation"
10791 explains it in detail.
10794 \begin_layout Standard
10795 The needed given width
10796 \begin_inset Formula $W_{g\, n}$
10803 columns are spanned columns can be calculated, so that each column has
10805 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
10809 \begin_inset Formula \begin{equation}
10810 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)·(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
10817 \begin_layout Standard
10818 In our case we have
10819 \begin_inset Formula $n=2$
10823 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
10826 cm and the default values for the lengths, so that equation
10827 \begin_inset LatexCommand ref
10833 \begin_inset Formula \begin{equation}
10834 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
10841 \begin_layout Standard
10842 To enable calculations in LaTeX, the LaTeX-package
10846 must be loaded with the document preamble line
10847 \begin_inset LatexCommand index
10848 name "LaTeX-packages ! calc"
10855 \begin_layout Standard
10863 \begin_layout Standard
10864 LyX does not allow to calculate lengths in the width-field of the table
10866 Therefore you have to format the column by inserting a LaTeX-argument in
10868 Here is an overview about the arguments:
10871 \begin_layout Itemize
10876 creates cell with a fixed width, its text is vertically top-aligned
10879 \begin_layout Itemize
10884 creates cell with a fixed width, its text is vertically centered
10887 \begin_layout Itemize
10892 creates cell with a fixed width, its text is vertically bottom-aligned
10895 \begin_layout Standard
10896 By entering a LaTeX-argument, all cell properties set in the table dialog
10899 \begin_inset Note Greyedout
10902 \begin_layout Standard
10907 Due to a bug, LyX shows the overwritten properties anyway.
10912 As the text should be horizontally centered, the command
10919 You can now enter the following LaTeX-argument for the first spanned column:
10922 \begin_layout Standard
10927 centering}m{1.25cm-6.2pt}
10930 \begin_layout Standard
10932 \begin_inset Quotes eld
10940 \begin_inset Quotes erd
10943 at the beginning draws the border line and the command
10947 means, that the commands inside the braces are applied before the cell
10951 \begin_layout Standard
10952 Although we have chosen centered alignment for the text of the multicolumn
10953 cell, it is still left aligned.
10954 This is because LyX only applies the alignment to single columns.
10955 So we have to use for the multicolumn the LaTeX-argument
10958 \begin_layout Standard
10963 centering}m{2.5cm}|
10966 \begin_layout Subsection
10968 \begin_inset LatexCommand index
10974 \begin_inset LatexCommand index
10975 name "Table ! Multirows"
10980 \begin_inset LatexCommand index
10981 name "LaTeX-packages ! multirow"
10988 \begin_layout Standard
10989 In contrary to multicolumns multirows are not yet supported by LyX so a
10990 bit of ERT needs to be used.
10991 To use multirows load the LaTeX-package
10995 in your document preamble with the command
10998 \begin_layout Standard
11003 usepackage{multirow}
11006 \begin_layout Standard
11007 Multirows are created with the command
11010 \begin_layout Standard
11015 multirow{number of rows}{cell width}{cell entry}
11018 \begin_layout Standard
11019 To create the following table:
11022 \begin_layout Standard
11027 \begin_layout Standard
11041 \begin_inset Tabular
11042 <lyxtabular version="3" rows="3" columns="3">
11044 <column alignment="center" valignment="top" leftline="true" width="0">
11045 <column alignment="center" valignment="top" leftline="true" width="0">
11046 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
11047 <row topline="true">
11048 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11051 \begin_layout Standard
11057 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11060 \begin_layout Standard
11066 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11069 \begin_layout Standard
11076 <row topline="true">
11077 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11080 \begin_layout Standard
11084 \begin_layout Standard
11088 multirow{2}{2.5cm}{
11097 \begin_layout Standard
11109 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11112 \begin_layout Standard
11118 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11121 \begin_layout Standard
11128 <row topline="true" bottomline="true">
11129 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11132 \begin_layout Standard
11138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11141 \begin_layout Standard
11147 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11150 \begin_layout Standard
11165 \begin_layout Standard
11181 \begin_layout Standard
11182 create a 3×3 table.
11183 To get rid of the line above the last cell in the first column, the cell
11184 is marked as multicolumn and the upper border is unset.
11185 The multirow is now created in the second row of the first column by inserting
11189 \begin_layout Standard
11194 multirow{2}{2.5cm}{
11197 \begin_layout Standard
11199 According to the command parameters the multirow spans now two rows and
11200 has a width of 2.5\InsetSpace \thinspace{}
11202 The content of the multirow cell follows outside the ERT box and the command
11203 is finished with a right brace
11207 in another ERT-box behind the text.
11210 \begin_layout Standard
11217 left-aligns its content by default.
11218 To override the default, renew the command
11227 \begin_layout Standard
11239 \begin_layout Standard
11240 in ERT in the document preamble.
11241 Then all entries of multirow cells in the document are centered.
11242 If centering is only needed for several tables, you can renew the command
11243 in an ERT box just before the table instead of the preamble.
11244 If the text should be right-aligned, replace
11257 To return to left-alignment
11266 \begin_layout Section
11268 \begin_inset LatexCommand label
11269 name "sec:Formal-Tables"
11274 \begin_inset LatexCommand index
11275 name "Table ! Formal"
11282 \begin_layout Standard
11283 Tables are often typeset in books similar to Table\InsetSpace ~
11285 \begin_inset LatexCommand ref
11286 reference "tab:Example-booktabs-table"
11291 This kind of tables is called
11292 \begin_inset Quotes eld
11300 \begin_inset Quotes erd
11304 To make a table a formal table use the option
11312 tab of the table dialog.
11315 \begin_layout Standard
11316 \begin_inset Float table
11322 \begin_layout Standard
11323 \begin_inset Caption
11325 \begin_layout Standard
11326 \begin_inset LatexCommand label
11327 name "tab:Example-booktabs-table"
11331 Example booktabs-table
11339 \begin_layout Standard
11341 \begin_inset Tabular
11342 <lyxtabular version="3" rows="8" columns="4">
11343 <features booktabs="true">
11344 <column alignment="center" valignment="top" rightline="true" width="0">
11345 <column alignment="center" valignment="top" width="0">
11346 <column alignment="center" valignment="top" width="0">
11347 <column alignment="center" valignment="top" width="0">
11348 <row topline="true">
11349 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11352 \begin_layout Standard
11358 <cell alignment="center" valignment="top" topline="true" usebox="none">
11361 \begin_layout Standard
11363 \begin_inset Formula $\,$
11371 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
11374 \begin_layout Standard
11376 \begin_inset Formula $\,$
11384 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11387 \begin_layout Standard
11395 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11398 \begin_layout Standard
11402 \begin_layout Standard
11415 \begin_layout Standard
11424 Detector thickness [µm]
11429 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11432 \begin_layout Standard
11438 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11441 \begin_layout Standard
11447 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11450 \begin_layout Standard
11457 <row topline="true">
11458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11461 \begin_layout Standard
11467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11470 \begin_layout Standard
11476 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11479 \begin_layout Standard
11485 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11488 \begin_layout Standard
11495 <row topspace="default">
11496 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11499 \begin_layout Standard
11500 Spatial resolution [µm]
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" usebox="none">
11517 \begin_layout Standard
11523 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11526 \begin_layout Standard
11533 <row topspace="default">
11534 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11537 \begin_layout Standard
11539 \begin_inset Formula $f_{\mathrm{max}}$
11547 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11550 \begin_layout Standard
11556 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11559 \begin_layout Standard
11565 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11568 \begin_layout Standard
11575 <row topspace="default">
11576 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11579 \begin_layout Standard
11583 \begin_layout Standard
11587 cmidrule(l{10pt}){1-1}
11592 LSF-spatial resolution
11597 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11600 \begin_layout Standard
11606 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11609 \begin_layout Standard
11615 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11618 \begin_layout Standard
11626 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11629 \begin_layout Standard
11635 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11638 \begin_layout Standard
11644 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11647 \begin_layout Standard
11653 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11656 \begin_layout Standard
11663 <row bottomline="true">
11664 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11667 \begin_layout Standard
11673 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11676 \begin_layout Standard
11682 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11685 \begin_layout Standard
11691 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11694 \begin_layout Standard
11713 \begin_layout Standard
11714 Spaces to table rows can be added using the
11718 tab of the table dialog as described in section\InsetSpace ~
11720 \begin_inset LatexCommand ref
11721 reference "sub:Row-Spacing"
11728 \begin_layout Standard
11729 In contrary to normal tables, formal tables have no vertical table lines.
11730 The horizontal table lines can be set like for normal tables but they appear
11731 with different width in the output:
11733 The first and the last table line have
11734 a default width of 0.08\InsetSpace \thinspace{}
11735 em while the other lines have a default width of
11736 0.05\InsetSpace \thinspace{}
11740 \begin_layout Standard
11741 The default widths can be changed with the following preamble lines
11744 \begin_layout Standard
11764 \begin_layout Standard
11765 This example is for the first line, the so called toprule.
11766 If you want to change the width for the last line, replace
11775 To change the width for the other lines replace
11784 You can use all units listed in appendix\InsetSpace ~
11786 \begin_inset LatexCommand ref
11787 reference "cha:Units-available-in"
11794 \begin_layout Standard
11795 Lines that don't span over all table columns can be created by setting a
11796 table line for multicolumn cells.
11797 LyX will then internally use the command
11803 to create this line.
11807 \begin_layout Standard
11812 cmidrule[width](trim){startcol-endcol}
11815 \begin_layout Standard
11822 are are currently not supported by LyX so you have to use ERT to be able
11830 s can manually be created by inserting the command as ERT as first cell
11831 entry of the first cell of a row.
11832 The line is then drawn in the output above the current row.
11835 \begin_layout Standard
11836 The default for the width is 0.03\InsetSpace \thinspace{}
11838 Startcol is the number of the column where the line starts and endcol the
11839 column number where the line ends.
11840 The endcol always needs to be specified, also when the line should span
11842 The optional parameter trim could be either
11850 where the trimwidth is also optional.
11851 Using for example the parameter
11855 means that the line is trimmed from its left end by 2\InsetSpace \thinspace{}
11857 If you don't specify the trimwidth the lines are trimmed by the default
11858 of 0.5\InsetSpace \thinspace{}
11862 \begin_layout Standard
11863 \begin_inset VSpace bigskip
11868 \begin_inset LatexCommand ref
11869 reference "tab:Example-booktabs-table"
11873 was created using the commands
11876 \begin_layout Standard
11886 \begin_layout Standard
11887 at the beginning of the in the second row and
11890 \begin_layout Standard
11895 cmidrule(l{10pt}){1-1}
11898 \begin_layout Standard
11902 \begin_layout Standard
11906 \begin_layout Standard
11907 \begin_inset VSpace bigskip
11913 \begin_layout Standard
11914 You might want to have overlapping
11920 s like in Table\InsetSpace ~
11922 \begin_inset LatexCommand ref
11923 reference "tab:Special-booktabs-table"
11928 This can be achieved with the ERT command
11931 \begin_layout Standard
11939 \begin_layout Standard
11940 The command that was used for the second row of Table\InsetSpace ~
11942 \begin_inset LatexCommand ref
11943 reference "tab:Special-booktabs-table"
11950 \begin_layout Standard
11964 \begin_layout Standard
11965 The command for the sixth row is
11968 \begin_layout Standard
11980 \begin_layout Standard
11981 \begin_inset VSpace bigskip
11987 \begin_layout Standard
11988 If you are anyway not satisfied with the border line spacing, you can use
11989 the following command to produce lines that span over all table columns
11994 \begin_layout Standard
11999 specialrule{width}{space above}{space below}
12002 \begin_layout Standard
12003 For more informations about these specialties, we refer to the manual of
12009 \begin_inset LatexCommand cite
12015 \begin_inset LatexCommand index
12016 name "LaTeX-packages ! booktabs"
12023 \begin_layout Standard
12024 \begin_inset Float table
12030 \begin_layout Standard
12031 \begin_inset Caption
12033 \begin_layout Standard
12034 \begin_inset LatexCommand label
12035 name "tab:Special-booktabs-table"
12039 Special booktabs-table
12047 \begin_layout Standard
12049 \begin_inset Tabular
12050 <lyxtabular version="3" rows="8" columns="4">
12051 <features booktabs="true">
12052 <column alignment="center" valignment="top" width="0">
12053 <column alignment="center" valignment="top" width="0">
12054 <column alignment="center" valignment="top" width="0">
12055 <column alignment="center" valignment="top" width="0">
12056 <row topline="true">
12057 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12060 \begin_layout Standard
12066 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12069 \begin_layout Standard
12070 Medipix\InsetSpace \thinspace{}
12076 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
12079 \begin_layout Standard
12080 Medipix\InsetSpace \thinspace{}
12086 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12089 \begin_layout Standard
12097 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12100 \begin_layout Standard
12104 \begin_layout Standard
12117 \begin_layout Standard
12130 \begin_layout Standard
12143 \begin_layout Standard
12152 Detector thickness [µm]
12157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12160 \begin_layout Standard
12166 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12169 \begin_layout Standard
12175 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12178 \begin_layout Standard
12185 <row topline="true">
12186 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12189 \begin_layout Standard
12195 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12198 \begin_layout Standard
12204 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12207 \begin_layout Standard
12213 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12216 \begin_layout Standard
12223 <row topspace="default">
12224 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12227 \begin_layout Standard
12228 Spatial resolution [µm]
12233 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12236 \begin_layout Standard
12242 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12245 \begin_layout Standard
12251 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12254 \begin_layout Standard
12261 <row topspace="default">
12262 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12265 \begin_layout Standard
12267 \begin_inset Formula $f_{\mathrm{max}}$
12275 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12278 \begin_layout Standard
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" rightline="true" usebox="none">
12296 \begin_layout Standard
12303 <row topline="true">
12304 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12307 \begin_layout Standard
12311 \begin_layout Standard
12324 \begin_layout Standard
12333 LSF-spatial resolution
12338 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12341 \begin_layout Standard
12347 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12350 \begin_layout Standard
12356 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12359 \begin_layout Standard
12367 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12370 \begin_layout Standard
12376 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12379 \begin_layout Standard
12385 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12388 \begin_layout Standard
12394 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12397 \begin_layout Standard
12404 <row bottomline="true">
12405 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12408 \begin_layout Standard
12414 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12417 \begin_layout Standard
12423 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12426 \begin_layout Standard
12432 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12435 \begin_layout Standard
12454 \begin_layout Section
12455 Vertical Table Alignment
12456 \begin_inset LatexCommand index
12457 name "Table ! Alignment"
12464 \begin_layout Standard
12465 To align tables vertically in a text line the table must be inside a box.
12466 The box can then be vertically aligned as described in section\InsetSpace ~
12468 \begin_inset LatexCommand ref
12469 reference "sec:Box-Dialog"
12476 \begin_layout Standard
12477 In the following example the tables are inside a minipage
12481 \begin_layout Standard
12482 Minipages are described in section\InsetSpace ~
12484 \begin_inset LatexCommand ref
12485 reference "sec:Minipages"
12494 box that has a width of 15\InsetSpace \thinspace{}
12498 \begin_layout Itemize
12500 \begin_inset Box Frameless
12509 height_special "totalheight"
12512 \begin_layout Standard
12513 \begin_inset Tabular
12514 <lyxtabular version="3" rows="3" columns="3">
12516 <column alignment="center" valignment="top" leftline="true" width="0">
12517 <column alignment="center" valignment="top" leftline="true" width="0">
12518 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12519 <row topline="true">
12520 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12523 \begin_layout Standard
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" rightline="true" usebox="none">
12541 \begin_layout Standard
12548 <row topline="true">
12549 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12552 \begin_layout Standard
12558 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12561 \begin_layout Standard
12567 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12570 \begin_layout Standard
12577 <row topline="true" bottomline="true">
12578 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12581 \begin_layout Standard
12587 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12590 \begin_layout Standard
12596 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12599 \begin_layout Standard
12619 \begin_layout Standard
12631 \begin_inset Box Frameless
12640 height_special "totalheight"
12643 \begin_layout Standard
12644 \begin_inset Tabular
12645 <lyxtabular version="3" rows="3" columns="3">
12647 <column alignment="center" valignment="top" leftline="true" width="0">
12648 <column alignment="center" valignment="top" leftline="true" width="0">
12649 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12650 <row topline="true">
12651 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12654 \begin_layout Standard
12660 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12663 \begin_layout Standard
12669 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12672 \begin_layout Standard
12679 <row topline="true">
12680 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12683 \begin_layout Standard
12689 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12692 \begin_layout Standard
12698 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12701 \begin_layout Standard
12708 <row topline="true" bottomline="true">
12709 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12712 \begin_layout Standard
12718 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12721 \begin_layout Standard
12727 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12730 \begin_layout Standard
12750 \begin_layout Standard
12760 \begin_layout Itemize
12762 \begin_inset Box Frameless
12771 height_special "totalheight"
12774 \begin_layout Standard
12775 \begin_inset Tabular
12776 <lyxtabular version="3" rows="3" columns="3">
12778 <column alignment="center" valignment="top" leftline="true" width="0">
12779 <column alignment="center" valignment="top" leftline="true" width="0">
12780 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12781 <row topline="true">
12782 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12785 \begin_layout Standard
12791 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12794 \begin_layout Standard
12800 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12803 \begin_layout Standard
12810 <row topline="true">
12811 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12814 \begin_layout Standard
12820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12823 \begin_layout Standard
12829 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12832 \begin_layout Standard
12839 <row topline="true" bottomline="true">
12840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12843 \begin_layout Standard
12849 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12852 \begin_layout Standard
12858 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12861 \begin_layout Standard
12880 \begin_layout Itemize
12882 \begin_inset Box Frameless
12891 height_special "totalheight"
12894 \begin_layout Standard
12895 \begin_inset Tabular
12896 <lyxtabular version="3" rows="3" columns="3">
12898 <column alignment="center" valignment="top" leftline="true" width="0">
12899 <column alignment="center" valignment="top" leftline="true" width="0">
12900 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12901 <row topline="true">
12902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12905 \begin_layout Standard
12911 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12914 \begin_layout Standard
12920 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12923 \begin_layout Standard
12930 <row topline="true">
12931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12934 \begin_layout Standard
12940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12943 \begin_layout Standard
12949 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12952 \begin_layout Standard
12959 <row topline="true" bottomline="true">
12960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12963 \begin_layout Standard
12969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12972 \begin_layout Standard
12978 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12981 \begin_layout Standard
13001 \begin_layout Standard
13013 \begin_inset Box Frameless
13022 height_special "totalheight"
13025 \begin_layout Standard
13026 \begin_inset Tabular
13027 <lyxtabular version="3" rows="3" columns="3">
13029 <column alignment="center" valignment="top" leftline="true" width="0">
13030 <column alignment="center" valignment="top" leftline="true" width="0">
13031 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13032 <row topline="true">
13033 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13036 \begin_layout Standard
13042 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13045 \begin_layout Standard
13051 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13054 \begin_layout Standard
13061 <row topline="true">
13062 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13065 \begin_layout Standard
13071 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13074 \begin_layout Standard
13080 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13083 \begin_layout Standard
13090 <row topline="true" bottomline="true">
13091 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13094 \begin_layout Standard
13100 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13103 \begin_layout Standard
13109 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13112 \begin_layout Standard
13132 \begin_layout Standard
13142 \begin_layout Standard
13143 As you can see, the content of the first and last table row is not correctly
13144 aligned with the text line where the table is in.
13145 To get this alignment, the minipage box must be set into a raisebox
13149 \begin_layout Standard
13150 Raiseboxes are described in section\InsetSpace ~
13152 \begin_inset LatexCommand ref
13153 reference "sub:Vertical-Alignment"
13163 In the example above the second table in the first item is aligned using
13167 \begin_layout Standard
13177 \begin_layout Standard
13179 Behind the box the closing brace
13183 is inserted as ERT.
13184 For the second table in the last item the command
13187 \begin_layout Standard
13197 \begin_layout Standard
13201 \begin_layout Standard
13202 \begin_inset Note Greyedout
13205 \begin_layout Standard
13210 The alignment of the table row content to the surrounding text line is
13212 The needed factor of the
13218 command for this alignment depends on the document font, the font size,
13219 and the table line thickness.
13227 \begin_layout Section
13229 \begin_inset LatexCommand label
13230 name "sec:Colored-Tables"
13235 \begin_inset LatexCommand index
13236 name "Table ! Color"
13243 \begin_layout Subsection
13245 \begin_inset LatexCommand index
13246 name "Table Color ! for Cells"
13251 \begin_inset LatexCommand index
13252 name "Color ! for Table Cells"
13259 \begin_layout Standard
13260 \begin_inset Float table
13266 \begin_layout Standard
13267 \begin_inset Caption
13269 \begin_layout Standard
13270 \begin_inset LatexCommand label
13271 name "tab:Table-colored-without"
13275 Table colored without using the package
13280 \begin_inset OptArg
13283 \begin_layout Standard
13284 Table without colortbl
13297 \begin_layout Standard
13299 \begin_inset Tabular
13300 <lyxtabular version="3" rows="3" columns="3">
13302 <column alignment="center" valignment="top" leftline="true" width="0">
13303 <column alignment="center" valignment="top" leftline="true" width="0">
13304 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13305 <row topline="true">
13306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13309 \begin_layout Standard
13317 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13320 \begin_layout Standard
13328 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13331 \begin_layout Standard
13340 <row topline="true">
13341 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13344 \begin_layout Standard
13352 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13355 \begin_layout Standard
13363 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13366 \begin_layout Standard
13375 <row topline="true" bottomline="true">
13376 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13379 \begin_layout Standard
13387 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13390 \begin_layout Standard
13398 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13401 \begin_layout Standard
13422 \begin_layout Standard
13423 If you only need colored text, mark the cells and choose a color in the
13426 Edit\SpecialChar \menuseparator
13431 This was used to create Table\InsetSpace ~
13433 \begin_inset LatexCommand ref
13434 reference "tab:Table-colored-without"
13439 In any other case you have to use the LaTeX-package
13444 \begin_inset LatexCommand index
13445 name "LaTeX-packages ! colortbl"
13452 \begin_layout Standard
13453 To create colored tables,
13457 must be loaded in the preamble with the line
13460 \begin_layout Standard
13465 usepackage{colortbl}
13468 \begin_layout Standard
13469 The color of a column is adjusted with the command
13472 \begin_layout Standard
13477 columncolor{name of color}
13480 \begin_layout Standard
13486 More about the command
13490 is described in section\InsetSpace ~
13492 \begin_inset LatexCommand ref
13493 reference "sub:Multicolumn-Calculations"
13500 \begin_layout Standard
13501 The following color names are predefined:
13504 \begin_layout Standard
13538 \begin_layout Standard
13539 \begin_inset VSpace medskip
13545 \begin_layout Standard
13546 You can also define your own color with the command
13549 \begin_layout Standard
13554 def\SpecialChar \textcompwordmark{}
13555 inecolor{color name}{color model}{color values}
13558 \begin_layout Standard
13559 The color model can be
13562 \begin_layout Labeling
13563 \labelwidthstring 00.00.0000
13564 cmyk: cyan, magenta, yellow, black
13567 \begin_layout Labeling
13568 \labelwidthstring 00.00.0000
13569 rgb: red, green blue
13572 \begin_layout Labeling
13573 \labelwidthstring 00.00.0000
13577 \begin_layout Standard
13578 and the color values are comma separated numbers between 0 and 1 describing
13579 the factor for the corresponding color of the color model.
13582 \begin_layout Standard
13583 You can e.\InsetSpace \thinspace{}
13589 " in the preamble with
13592 \begin_layout Standard
13597 def\SpecialChar \textcompwordmark{}
13598 inecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
13601 \begin_layout Standard
13609 \begin_layout Standard
13614 def\SpecialChar \textcompwordmark{}
13615 inecolor{lightgray}{gray}{0.8}
13618 \begin_layout Standard
13619 \begin_inset VSpace medskip
13625 \begin_layout Standard
13626 Lines are colored with the command
13629 \begin_layout Standard
13634 rowcolor{name of color}
13637 \begin_layout Standard
13638 and cells are colored with the command
13641 \begin_layout Standard
13646 cellcolor{name of color}
13649 \begin_layout Standard
13650 Both commands are inserted at the beginning of a cell as ERT.
13653 \begin_layout Standard
13654 To color characters in the table, mark the cells and use the LyX menu
13656 Edit\SpecialChar \menuseparator
13661 If a cell contains ERT mark only the characters, otherwise the colored
13662 ERT will cause LaTeX-errors.
13665 \begin_layout Standard
13666 \begin_inset VSpace bigskip
13672 \begin_layout Standard
13673 To create Table\InsetSpace ~
13675 \begin_inset LatexCommand ref
13676 reference "tab:Table-colored-using"
13680 do the following: The color of the first column should be
13688 \begin_layout Standard
13693 columncolor{darkgreen}
13698 \begin_layout Standard
13699 as LaTeX-argument for this column.
13700 The first row should be blue, therefore the ERT command
13703 \begin_layout Standard
13711 \begin_layout Standard
13712 is inserted to the first cell of this row.
13713 Note that this overwrites the column color for the first cell.
13714 The last cell of the last row is colored magenta by inserting the ERT command
13717 \begin_layout Standard
13725 \begin_layout Standard
13726 The characters could now be colored using the menu
13728 Edit\SpecialChar \menuseparator
13735 \begin_layout Standard
13736 \begin_inset Float table
13742 \begin_layout Standard
13743 \begin_inset Caption
13745 \begin_layout Standard
13746 \begin_inset LatexCommand label
13747 name "tab:Table-colored-using"
13751 Table colored using the package
13756 \begin_inset OptArg
13759 \begin_layout Standard
13760 Table with colortbl
13773 \begin_layout Standard
13775 \begin_inset Tabular
13776 <lyxtabular version="3" rows="3" columns="3">
13778 <column alignment="center" valignment="top" leftline="true" width="0" special=">{\columncolor{darkgreen}\centering}c">
13779 <column alignment="center" valignment="top" width="0">
13780 <column alignment="center" valignment="top" width="0">
13782 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13785 \begin_layout Standard
13789 \begin_layout Standard
13805 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13808 \begin_layout Standard
13816 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13819 \begin_layout Standard
13829 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13832 \begin_layout Standard
13840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13843 \begin_layout Standard
13851 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13854 \begin_layout Standard
13864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13867 \begin_layout Standard
13875 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13878 \begin_layout Standard
13886 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13889 \begin_layout Standard
13893 \begin_layout Standard
13922 \begin_layout Subsection
13924 \begin_inset LatexCommand index
13925 name "Table Color ! for Lines"
13930 \begin_inset LatexCommand index
13931 name "Color ! for Table Lines"
13938 \begin_layout Standard
13939 As described in section\InsetSpace ~
13941 \begin_inset LatexCommand ref
13942 reference "sub:Line-Thickness"
13946 , the line thickness for all lines in a table can be adjusted with the length
13954 It is set to 1.5\InsetSpace \thinspace{}
13955 pt for all tables of this section.
13959 \begin_layout Standard
13965 arrayrulewidth}{1.5pt}
13973 \begin_layout Standard
13974 To color vertical lines for example with green, create the following column
13975 format in the document preamble, according to the description in section\InsetSpace ~
13977 \begin_inset LatexCommand ref
13978 reference "sub:Customized-Format"
13985 \begin_layout Standard
13990 newcolumntype{W}{!{
13997 \begin_layout Standard
13998 For Table\InsetSpace ~
14000 \begin_inset LatexCommand ref
14001 reference "tab:Table-with-vertical-colored"
14008 \begin_layout Standard
14014 \begin_layout Standard
14015 was used for the last column and
14018 \begin_layout Standard
14024 \begin_layout Standard
14025 for the other columns.
14028 \begin_layout Standard
14029 If you want to have several colors, define more column formats.
14032 \begin_layout Standard
14033 \begin_inset Float table
14038 \begin_layout Standard
14039 \begin_inset Caption
14041 \begin_layout Standard
14042 \begin_inset LatexCommand label
14043 name "tab:Table-with-vertical-colored"
14047 Table with colored vertical lines
14055 \begin_layout Standard
14057 \begin_inset Tabular
14058 <lyxtabular version="3" rows="3" columns="3">
14060 <column alignment="center" valignment="top" leftline="true" width="0" special="Wc">
14061 <column alignment="center" valignment="top" width="0" special="Wc">
14062 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0" special="WcW">
14063 <row topline="true">
14064 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14067 \begin_layout Standard
14073 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14076 \begin_layout Standard
14082 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14085 \begin_layout Standard
14092 <row topline="true">
14093 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14096 \begin_layout Standard
14102 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14105 \begin_layout Standard
14111 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14114 \begin_layout Standard
14121 <row topline="true" bottomline="true">
14122 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14125 \begin_layout Standard
14131 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14134 \begin_layout Standard
14140 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14143 \begin_layout Standard
14162 \begin_layout Standard
14163 \begin_inset VSpace bigskip
14166 To color horizontal lines for example with red, like in Table\InsetSpace ~
14168 \begin_inset LatexCommand ref
14169 reference "tab:Table-with-horizontal-colored"
14173 , insert these commands in ERT before the table or table float:
14176 \begin_layout Standard
14193 arrayrulecolor{red}
14197 arrayrulecolor{black}}
14200 \begin_layout Standard
14204 \begin_layout Standard
14215 \begin_layout Standard
14223 arrayrulecolor{red}
14227 arrayrulecolor{black}}
14233 \begin_inset Float table
14238 \begin_layout Standard
14239 \begin_inset Caption
14241 \begin_layout Standard
14242 \begin_inset LatexCommand label
14243 name "tab:Table-with-horizontal-colored"
14247 Table with colored horizontal lines
14255 \begin_layout Standard
14257 \begin_inset Tabular
14258 <lyxtabular version="3" rows="3" columns="3">
14260 <column alignment="center" valignment="top" leftline="true" width="0">
14261 <column alignment="center" valignment="top" leftline="true" width="0">
14262 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14263 <row topline="true">
14264 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14267 \begin_layout Standard
14273 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14276 \begin_layout Standard
14282 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14285 \begin_layout Standard
14292 <row topline="true">
14293 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14296 \begin_layout Standard
14302 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14305 \begin_layout Standard
14311 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14314 \begin_layout Standard
14321 <row topline="true" bottomline="true">
14322 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14325 \begin_layout Standard
14331 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14334 \begin_layout Standard
14340 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14343 \begin_layout Standard
14362 \begin_layout Standard
14366 \begin_layout Standard
14378 \begin_layout Standard
14379 To return to the default line color black, insert this command in ERT behind
14380 the table or table float:
14383 \begin_layout Standard
14395 \begin_layout Standard
14398 \begin_inset LatexCommand ref
14399 reference "tab:Table-with-colored"
14403 is an example with colored vertical and horizontal lines.
14406 \begin_layout Standard
14407 \begin_inset Float table
14412 \begin_layout Standard
14413 \begin_inset Caption
14415 \begin_layout Standard
14416 \begin_inset LatexCommand label
14417 name "tab:Table-with-colored"
14421 Table with colored lines
14429 \begin_layout Standard
14431 \begin_inset Tabular
14432 <lyxtabular version="3" rows="3" columns="3">
14434 <column alignment="center" valignment="top" leftline="true" width="0" special="Wc">
14435 <column alignment="center" valignment="top" width="0" special="Wc">
14436 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0" special="WcW">
14437 <row topline="true">
14438 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14441 \begin_layout Standard
14447 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14450 \begin_layout Standard
14456 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14459 \begin_layout Standard
14466 <row topline="true">
14467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14470 \begin_layout Standard
14476 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14479 \begin_layout Standard
14485 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14488 \begin_layout Standard
14495 <row topline="true" bottomline="true" topspace="default">
14496 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14499 \begin_layout Standard
14505 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14508 \begin_layout Standard
14514 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14517 \begin_layout Standard
14536 \begin_layout Standard
14540 \begin_layout Standard
14556 \begin_layout Standard
14560 \begin_layout Standard
14566 arrayrulewidth}{0.4pt}
14574 \begin_layout Section
14575 Table Customization
14576 \begin_inset LatexCommand index
14577 name "Table Customization"
14582 \begin_inset LatexCommand index
14583 name "Table ! Customization"
14590 \begin_layout Subsection
14592 \begin_inset LatexCommand label
14593 name "sub:Row-Spacing"
14598 \begin_inset LatexCommand index
14599 name "Table Customization ! Row Spacing"
14606 \begin_layout Standard
14607 You can add vertical space to table rows in the
14611 tab of the table dialog.
14612 You find there three possibilities:
14615 \begin_layout Description
14618 row will add space above the characters of the table row.
14619 If the table is a formal table
14623 \begin_layout Standard
14624 Formal tables are explained in section\InsetSpace ~
14626 \begin_inset LatexCommand ref
14627 reference "sec:Formal-Tables"
14636 LyX will insert as default 0.5\InsetSpace \thinspace{}
14638 For normal tables the inserted space will unfortunately destroy the vertical
14639 table lines as in the following table:
14640 \begin_inset Tabular
14641 <lyxtabular version="3" rows="3" columns="1">
14643 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14644 <row topline="true">
14645 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14648 \begin_layout Standard
14655 <row topline="true" topspace="3mm">
14656 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14659 \begin_layout Standard
14660 3\InsetSpace \thinspace{}
14661 mm space top of row
14667 <row topline="true" bottomline="true">
14668 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14671 \begin_layout Standard
14684 So inserting space to the top of row for normal tables is only useful when
14685 you don't have vertical lines.
14688 \begin_layout Description
14689 Bottom\InsetSpace ~
14691 row will add space below the characters of the table row.
14692 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
14694 normal tables the default size is 2\InsetSpace \thinspace{}
14698 \begin_layout Description
14699 Between\InsetSpace ~
14700 rows only has an effect when you have selected the whole table row
14702 The space is added between the current and the following row.
14703 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
14705 For normal tables the inserted space will unfortunately destroy the vertical
14706 table lines as in the following table:
14707 \begin_inset Tabular
14708 <lyxtabular version="3" rows="3" columns="1">
14710 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14711 <row topline="true">
14712 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14715 \begin_layout Standard
14722 <row topline="true" interlinespace="3mm">
14723 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14726 \begin_layout Standard
14727 \begin_inset Formula $\downarrow$
14730 3\InsetSpace \thinspace{}
14731 mm space between row
14732 \begin_inset Formula $\downarrow$
14741 <row topline="true" bottomline="true">
14742 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14745 \begin_layout Standard
14746 \begin_inset Formula $\uparrow$
14749 3\InsetSpace \thinspace{}
14750 mm space between row
14751 \begin_inset Formula $\uparrow$
14766 So inserting space between rows for normal tables is only useful when you
14767 don't have vertical lines.
14770 \begin_layout Standard
14771 When you want to add extra height to all cells of all tables, you can do
14772 this with the following preamble line:
14775 \begin_layout Standard
14782 extrarowheight}{height}
14785 \begin_layout Standard
14786 But this has the disadvantage that the cell texts are no longer exactly
14787 vertically centered.
14790 \begin_layout Subsection
14791 Special Cell Alignment
14792 \begin_inset LatexCommand index
14793 name "Table Customization ! Special Cell Alignment"
14800 \begin_layout Standard
14801 Sometimes it looks better when the cell entries of a column are aligned
14802 with a special character, e.\InsetSpace \thinspace{}
14804 with the decimal separator as in Table\InsetSpace ~
14806 \begin_inset LatexCommand ref
14807 reference "tab:Table-cells-of"
14814 \begin_layout Standard
14815 \begin_inset Float table
14821 \begin_layout Standard
14822 \begin_inset Caption
14824 \begin_layout Standard
14825 \begin_inset LatexCommand label
14826 name "tab:Table-cells-of"
14830 Table cells of a column aligned with the decimal separator.
14838 \begin_layout Standard
14840 \begin_inset Tabular
14841 <lyxtabular version="3" rows="4" columns="2">
14843 <column alignment="right" valignment="top" width="0">
14844 <column alignment="left" valignment="top" width="0" special="@{}l">
14845 <row bottomline="true">
14846 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
14849 \begin_layout Standard
14855 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14858 \begin_layout Standard
14866 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14869 \begin_layout Standard
14875 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14878 \begin_layout Standard
14886 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14889 \begin_layout Standard
14895 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14898 \begin_layout Standard
14906 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14909 \begin_layout Standard
14915 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14918 \begin_layout Standard
14937 \begin_layout Standard
14938 This table was created with a 4×2 table.
14939 The heading is a centered multicolumn.
14940 The first column is right-aligned and contains the digits before the decimal
14941 point and the decimal point.
14942 The second column is left aligned and contains the digits after the decimal
14944 To omit the space that is normally between two table columns, use the following
14945 LaTeX-argument for the second column:
14948 \begin_layout Standard
14954 \begin_layout Standard
14955 If you need a vertical line right beside the second column, use this LaTeX-argum
14961 \begin_layout Standard
14964 \begin_inset LatexCommand ref
14965 reference "tab:Several-table-cell"
14969 shows some example alignments.
14970 For the alignment with the relation sign, you must add the second smallest
14971 math-space at the beginning of the last column to get the correct space
14972 surrounding the relation sign.
14975 \begin_layout Standard
14976 \begin_inset Float table
14981 \begin_layout Standard
14982 \begin_inset Caption
14984 \begin_layout Standard
14985 \begin_inset LatexCommand label
14986 name "tab:Several-table-cell"
14990 Several table cell alignments.
14998 \begin_layout Standard
15000 \begin_inset Tabular
15001 <lyxtabular version="3" rows="4" columns="6">
15003 <column alignment="right" valignment="top" width="0">
15004 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l|">
15005 <column alignment="right" valignment="top" width="0">
15006 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l|">
15007 <column alignment="right" valignment="top" width="0">
15008 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15009 <row bottomline="true">
15010 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15013 \begin_layout Standard
15019 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15022 \begin_layout Standard
15028 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15031 \begin_layout Standard
15037 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15040 \begin_layout Standard
15046 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15049 \begin_layout Standard
15055 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15058 \begin_layout Standard
15066 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15069 \begin_layout Standard
15075 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15078 \begin_layout Standard
15079 24\InsetSpace \thinspace{}
15085 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15088 \begin_layout Standard
15089 \begin_inset Formula $10\cdot$
15097 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15100 \begin_layout Standard
15101 \begin_inset Formula $10^{\mbox{-}17}$
15109 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15112 \begin_layout Standard
15113 \begin_inset Formula $\Gamma(t)\propto$
15121 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15124 \begin_layout Standard
15125 \begin_inset Formula $\:\Upsilon(t)$
15135 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15138 \begin_layout Standard
15144 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15147 \begin_layout Standard
15148 768\InsetSpace \thinspace{}
15154 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15157 \begin_layout Standard
15158 \begin_inset Formula $5.78\cdot$
15166 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15169 \begin_layout Standard
15170 \begin_inset Formula $10^{7}$
15178 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15181 \begin_layout Standard
15182 \begin_inset Formula $A\ne$
15190 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15193 \begin_layout Standard
15194 \begin_inset Formula $\: B_{\mathrm{red}}$
15204 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15207 \begin_layout Standard
15213 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15216 \begin_layout Standard
15217 6\InsetSpace \thinspace{}
15223 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15226 \begin_layout Standard
15228 \begin_inset Formula $33.5\cdot$
15236 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15239 \begin_layout Standard
15240 \begin_inset Formula $10^{4}$
15248 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15251 \begin_layout Standard
15252 \begin_inset Formula $\sin(\alpha)\ge$
15260 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15263 \begin_layout Standard
15264 \begin_inset Formula $\:\sin(\beta)$
15285 \begin_layout Standard
15286 \begin_inset VSpace bigskip
15289 There is also the LaTeX-package
15294 \begin_inset LatexCommand index
15295 name "LaTeX-packages ! dcolumn"
15299 that provides table cell alignments.
15300 But this unfortunately treats the cell entries as math and doesn't allow
15301 formulas in table cells: The first column of Table\InsetSpace ~
15303 \begin_inset LatexCommand ref
15304 reference "tab:Several-table-cell"
15312 like the first column in Table\InsetSpace ~
15314 \begin_inset LatexCommand ref
15315 reference "tab:Alignments-when"
15319 and only with some tricks like the expected.
15320 The alignment of the second and third column of Table\InsetSpace ~
15322 \begin_inset LatexCommand ref
15323 reference "tab:Several-table-cell"
15327 is not possible with
15334 \begin_layout Standard
15335 \begin_inset Float table
15341 \begin_layout Standard
15342 \begin_inset Caption
15344 \begin_layout Standard
15345 \begin_inset LatexCommand label
15346 name "tab:Alignments-when"
15350 Alignments when LaTeX-package dcolumn is used.
15351 For the second and third alignment some tricks were used.
15359 \begin_layout Standard
15361 \begin_inset Tabular
15362 <lyxtabular version="3" rows="4" columns="3">
15364 <column alignment="center" valignment="top" rightline="true" width="0" special="D{×}{\times}{-1}|">
15365 <column alignment="center" valignment="top" width="0" special="D{×}{\times}{4.9}|">
15366 <column alignment="center" valignment="top" rightline="true" width="0" special="D{~}{\,}{9.7}">
15367 <row bottomline="true">
15368 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15371 \begin_layout Standard
15377 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15380 \begin_layout Standard
15386 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15389 \begin_layout Standard
15397 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15400 \begin_layout Standard
15401 12×24\InsetSpace \thinspace{}
15407 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15410 \begin_layout Standard
15411 12×24\InsetSpace \thinspace{}
15413 \begin_inset Formula $\mbox{bottles}$
15421 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15424 \begin_layout Standard
15426 \begin_inset Formula $\mbox{bottles}$
15436 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15439 \begin_layout Standard
15440 1024×768\InsetSpace \thinspace{}
15446 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15449 \begin_layout Standard
15450 1024×768\InsetSpace \thinspace{}
15452 \begin_inset Formula $\mbox{Pixels}$
15460 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15463 \begin_layout Standard
15465 \begin_inset Formula $\mbox{Pixels}$
15475 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15478 \begin_layout Standard
15479 32×6\InsetSpace \thinspace{}
15485 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15488 \begin_layout Standard
15489 32×6\InsetSpace \thinspace{}
15491 \begin_inset Formula $\mbox{cm}$
15499 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15502 \begin_layout Standard
15504 \begin_inset Formula $\mbox{cm}$
15525 \begin_layout Subsection
15526 Customized Cell/Column Format
15527 \begin_inset LatexCommand label
15528 name "sub:Customized-Format"
15533 \begin_inset LatexCommand index
15534 name "Table Customization ! Cell/Column Format"
15541 \begin_layout Standard
15542 Calculating the needed width for spanned columns like in section\InsetSpace ~
15544 \begin_inset LatexCommand ref
15545 reference "sub:Multicolumn-Calculations"
15549 is very annoying if you have several tables with multicolumn cells.
15550 To make life easier, you can define a cell/column format in the preamble,
15551 so that it can be used in all tables of the document.
15552 The format is defined with the command
15555 \begin_layout Standard
15560 newcolumntype{name of format}[number of arguments]{commands}
15563 \begin_layout Standard
15564 The format name may only consist of one letter.
15589 are predefined and cannot be used.
15590 But all letters are allowed as capitals.
15593 \begin_layout Standard
15594 \begin_inset VSpace medskip
15600 \begin_layout Standard
15601 For vertically and horizontally centered multicolumn cells with a fixed
15602 width you can define the cell format
15605 \begin_layout Standard
15610 newcolumntype{M}[1]{>{
15617 \begin_layout Standard
15624 avoids the problem of hyphenating the first word, as described in section\InsetSpace ~
15626 \begin_inset LatexCommand ref
15627 reference "sub:Multiple-Lines-in"
15632 Now you can simply enter
15635 \begin_layout Standard
15641 \begin_layout Standard
15642 as LaTeX-argument in the table dialog to create a multicolumn.
15645 \begin_layout Standard
15646 \begin_inset VSpace bigskip
15652 \begin_layout Standard
15653 For cells spanned by a multicolumn cell, you can define the format
15656 \begin_layout Standard
15661 newcolumntype{S}[2]{>{
15671 \begin_layout Standard
15682 newcolumntype{S}[2]
15686 \begin_layout Standard
15697 arrayrulewidth)*(1-#2))/#2}}
15700 \begin_layout Standard
15701 This format uses equation
15702 \begin_inset LatexCommand eqref
15707 to calculate the needed width so that each spanned cell has the same width.
15710 \begin_layout Standard
15714 \begin_layout Standard
15717 |S{width of multicolumn cell}{number of spanned columns}
15720 \begin_layout Standard
15721 as LaTeX-argument of the column.
15724 \begin_layout Standard
15725 \begin_inset VSpace bigskip
15731 \begin_layout Standard
15732 For colored columns, you can define
15735 \begin_layout Standard
15740 newcolumntype{K}[1]{>{
15747 \begin_layout Standard
15749 \begin_inset Quotes eld
15753 \begin_inset Quotes erd
15756 at the end creates a column with a flexible width whose text is horizontally
15761 \begin_layout Standard
15767 \begin_layout Standard
15771 \begin_layout Standard
15772 \begin_inset VSpace bigskip
15778 \begin_layout Standard
15779 To create Table\InsetSpace ~
15781 \begin_inset LatexCommand ref
15782 reference "tab:Table-using-user-defined"
15786 use the LaTeX-arguments
15789 \begin_layout Standard
15795 \begin_layout Standard
15796 for the first column and the multicolumn,
15799 \begin_layout Standard
15805 \begin_layout Standard
15806 for the the last column, and
15809 \begin_layout Standard
15815 \begin_layout Standard
15816 for the cells in the second column.
15819 \begin_layout Standard
15820 \begin_inset Float table
15826 \begin_layout Standard
15827 \begin_inset Caption
15829 \begin_layout Standard
15830 \begin_inset LatexCommand label
15831 name "tab:Table-using-user-defined"
15835 Table using user-defined table formats
15843 \begin_layout Standard
15845 \begin_inset Tabular
15846 <lyxtabular version="3" rows="3" columns="4">
15848 <column alignment="center" valignment="middle" leftline="true" width="2.5cm" special="|M{2.5cm}">
15849 <column alignment="center" valignment="middle" leftline="true" width="0" special="|S{2.5cm}{2}">
15850 <column alignment="center" valignment="middle" leftline="true" width="0">
15851 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0" special="|K{red}|">
15852 <row topline="true">
15853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15856 \begin_layout Standard
15857 verylongtablecellword
15862 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none" special="M{2.5cm}|">
15865 \begin_layout Standard
15866 multiple lines multicolumn
15871 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15874 \begin_layout Standard
15880 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15883 \begin_layout Standard
15890 <row topline="true">
15891 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15894 \begin_layout Standard
15900 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15903 \begin_layout Standard
15909 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15912 \begin_layout Standard
15918 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15921 \begin_layout Standard
15928 <row topline="true" bottomline="true">
15929 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15932 \begin_layout Standard
15938 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15941 \begin_layout Standard
15947 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15950 \begin_layout Standard
15956 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15959 \begin_layout Standard
15978 \begin_layout Subsection
15980 \begin_inset LatexCommand label
15981 name "sub:Line-Thickness"
15986 \begin_inset LatexCommand index
15987 name "Table Customization ! Line Thickness"
15994 \begin_layout Standard
15995 The line thickness for all lines in a table can be adjusted with the length
16003 To set for example a line thickness of 1.5\InsetSpace \thinspace{}
16004 pt, like in Table\InsetSpace ~
16006 \begin_inset LatexCommand ref
16007 reference "tab:Table-with-1.5"
16011 , insert the command
16014 \begin_layout Standard
16021 arrayrulewidth}{1.5pt}
16024 \begin_layout Standard
16025 in ERT before the table or table float.
16026 The changed thickness is valid for all following tables.
16027 To use the default value again, set
16033 to 0.4\InsetSpace \thinspace{}
16034 pt in ERT behind the table or table float.
16037 \begin_layout Standard
16041 \begin_layout Standard
16047 arrayrulewidth}{1.5pt}
16053 \begin_inset Float table
16058 \begin_layout Standard
16059 \begin_inset Caption
16061 \begin_layout Standard
16062 \begin_inset LatexCommand label
16063 name "tab:Table-with-1.5"
16067 Table with 1.5\InsetSpace \thinspace{}
16076 \begin_layout Standard
16078 \begin_inset Tabular
16079 <lyxtabular version="3" rows="3" columns="3">
16081 <column alignment="center" valignment="top" leftline="true" width="0">
16082 <column alignment="center" valignment="top" leftline="true" width="0">
16083 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16084 <row topline="true">
16085 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16088 \begin_layout Standard
16094 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16097 \begin_layout Standard
16103 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16106 \begin_layout Standard
16113 <row topline="true">
16114 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16117 \begin_layout Standard
16123 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16126 \begin_layout Standard
16132 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16135 \begin_layout Standard
16142 <row topline="true" bottomline="true">
16143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16146 \begin_layout Standard
16152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16155 \begin_layout Standard
16161 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16164 \begin_layout Standard
16184 \begin_layout Standard
16190 arrayrulewidth}{0.4pt}
16198 \begin_layout Standard
16199 \begin_inset VSpace bigskip
16202 To set the line thickness to 1.5\InsetSpace \thinspace{}
16203 pt only for horizontal lines, like in Table\InsetSpace ~
16205 \begin_inset LatexCommand ref
16206 reference "tab:Table-with-horizontal"
16210 , insert these commands in ERT before the table or table float:
16213 \begin_layout Standard
16236 arrayrulewidth 1.5pt}
16246 arrayrulewidth 0.4pt}}
16249 \begin_layout Standard
16250 To return to the default line thickness, insert this command in ERT behind
16251 the table or table float:
16254 \begin_layout Standard
16266 \begin_layout Standard
16270 \begin_layout Standard
16281 \begin_layout Standard
16290 \begin_layout Standard
16298 arrayrulewidth 1.5pt}
16301 \begin_layout Standard
16311 arrayrulewidth 0.4pt}}
16317 \begin_inset Float table
16322 \begin_layout Standard
16323 \begin_inset Caption
16325 \begin_layout Standard
16326 \begin_inset LatexCommand label
16327 name "tab:Table-with-horizontal"
16331 Table with 1.5\InsetSpace \thinspace{}
16332 pt thick horizontal lines
16340 \begin_layout Standard
16342 \begin_inset Tabular
16343 <lyxtabular version="3" rows="3" columns="3">
16345 <column alignment="center" valignment="top" leftline="true" width="0">
16346 <column alignment="center" valignment="top" leftline="true" width="0">
16347 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16348 <row topline="true">
16349 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16352 \begin_layout Standard
16358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16361 \begin_layout Standard
16367 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16370 \begin_layout Standard
16377 <row topline="true">
16378 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16381 \begin_layout Standard
16387 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16390 \begin_layout Standard
16396 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16399 \begin_layout Standard
16406 <row topline="true" bottomline="true">
16407 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16410 \begin_layout Standard
16416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16419 \begin_layout Standard
16425 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16428 \begin_layout Standard
16448 \begin_layout Standard
16464 \begin_layout Standard
16465 \begin_inset VSpace bigskip
16468 To set the line thickness to 1.5\InsetSpace \thinspace{}
16469 pt only for vertical lines, create the following
16470 column format in the document preamble, according to the description in
16471 section\InsetSpace ~
16473 \begin_inset LatexCommand ref
16474 reference "sub:Customized-Format"
16481 \begin_layout Standard
16486 newcolumntype{V}{!{
16488 vrule width 1.5pt}}
16491 \begin_layout Standard
16492 For Table\InsetSpace ~
16494 \begin_inset LatexCommand ref
16495 reference "tab:Table-with-vertical"
16502 \begin_layout Standard
16508 \begin_layout Standard
16509 was used for the last column and
16512 \begin_layout Standard
16518 \begin_layout Standard
16519 for the other columns.
16522 \begin_layout Standard
16523 \begin_inset Float table
16528 \begin_layout Standard
16529 \begin_inset Caption
16531 \begin_layout Standard
16532 \begin_inset LatexCommand label
16533 name "tab:Table-with-vertical"
16537 Table with 1.5\InsetSpace \thinspace{}
16538 pt thick vertical lines
16546 \begin_layout Standard
16548 \begin_inset Tabular
16549 <lyxtabular version="3" rows="3" columns="3">
16551 <column alignment="center" valignment="top" leftline="true" width="0" special="Vc">
16552 <column alignment="center" valignment="top" leftline="true" width="0" special="Vc">
16553 <column alignment="center" valignment="top" leftline="true" width="0" special="VcV">
16554 <row topline="true">
16555 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16558 \begin_layout Standard
16564 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16567 \begin_layout Standard
16573 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16576 \begin_layout Standard
16583 <row topline="true">
16584 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16587 \begin_layout Standard
16593 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16596 \begin_layout Standard
16602 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16605 \begin_layout Standard
16612 <row topline="true" bottomline="true">
16613 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16616 \begin_layout Standard
16622 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16625 \begin_layout Standard
16631 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16634 \begin_layout Standard
16653 \begin_layout Subsection
16655 \begin_inset LatexCommand index
16656 name "Table Customization ! Dashed Lines"
16663 \begin_layout Standard
16667 \begin_layout Standard
16677 \begin_inset Note Note
16680 \begin_layout Standard
16681 The following section will only be displayed when you have the LaTeX-package
16694 \begin_layout Standard
16695 \begin_inset Float table
16701 \begin_layout Standard
16702 \begin_inset Caption
16704 \begin_layout Standard
16705 \begin_inset LatexCommand label
16706 name "tab:Table-with-dashed"
16710 Table with dashed lines
16718 \begin_layout Standard
16720 \begin_inset Tabular
16721 <lyxtabular version="3" rows="5" columns="5">
16723 <column alignment="center" valignment="top" leftline="true" width="0">
16724 <column alignment="center" valignment="top" leftline="true" width="0">
16725 <column alignment="center" valignment="top" width="0" special=":c">
16726 <column alignment="center" valignment="top" leftline="true" width="0">
16727 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16728 <row topline="true" bottomline="true">
16729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16732 \begin_layout Standard
16738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16741 \begin_layout Standard
16747 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16750 \begin_layout Standard
16756 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16759 \begin_layout Standard
16765 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16768 \begin_layout Standard
16775 <row topline="true">
16776 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16779 \begin_layout Standard
16785 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16788 \begin_layout Standard
16794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16797 \begin_layout Standard
16803 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16806 \begin_layout Standard
16812 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16815 \begin_layout Standard
16823 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16826 \begin_layout Standard
16830 \begin_layout Standard
16844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16847 \begin_layout Standard
16853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16856 \begin_layout Standard
16862 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16865 \begin_layout Standard
16871 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16874 \begin_layout Standard
16881 <row topline="true">
16882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16885 \begin_layout Standard
16889 \begin_layout Standard
16903 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16906 \begin_layout Standard
16912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="c:">
16915 \begin_layout Standard
16921 <cell multicolumn="1" alignment="center" valignment="top" rightline="true" usebox="none" special="c:">
16924 \begin_layout Standard
16930 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16933 \begin_layout Standard
16940 <row topline="true" bottomline="true">
16941 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16944 \begin_layout Standard
16950 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16953 \begin_layout Standard
16959 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16962 \begin_layout Standard
16968 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16971 \begin_layout Standard
16977 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16980 \begin_layout Standard
16999 \begin_layout Standard
17000 LyX doesn't natively support dashed lines, so you have to use ERT.
17001 As prerequisite the LaTeX-package
17006 \begin_inset LatexCommand index
17007 name "LaTeX-packages ! arydshln"
17011 must be loaded in the document preamble with the command
17014 \begin_layout Standard
17019 usepackage{arydshln}
17022 \begin_layout Standard
17023 To make a vertical line dashed, enter the colon
17024 \begin_inset Quotes eld
17028 \begin_inset Quotes erd
17031 together with the character for the horizontal alignment as LaTeX-argument
17032 in the table cell dialog.
17035 \begin_layout Standard
17036 For a horizontal dashed line add the command
17039 \begin_layout Standard
17047 \begin_layout Standard
17048 in ERT as first element of the first cell in the table row.
17051 \begin_layout Standard
17052 For dashed multicolumn lines use the command
17055 \begin_layout Standard
17060 cdashline{line number
17065 \begin_layout Standard
17066 in ERT as first element of the first cell in the table row.
17067 If you have for example a multicolumn spanning over columns 2 to 4 and
17068 you want to have a dashed line above, add the command
17071 \begin_layout Standard
17079 \begin_layout Standard
17080 as first element of the first cell in the row of the multicolumn.
17083 \begin_layout Standard
17084 \begin_inset VSpace bigskip
17090 \begin_layout Standard
17093 \begin_inset LatexCommand ref
17094 reference "tab:Table-with-dashed"
17099 \begin_inset Quotes eld
17107 \begin_inset Quotes erd
17110 as LaTeX-argument of the third column.
17117 was inserted to the first cell of the third row and the the ERT command
17126 was inserted to the first cell of the fourth row.
17129 \begin_layout Standard
17130 \begin_inset Note Greyedout
17133 \begin_layout Standard
17138 The used LaTeX-package
17142 is apparently not compatible with the LaTeX-package
17147 \begin_inset LatexCommand index
17148 name "LaTeX-packages ! colortbl"
17152 that is used for colored tables in section\InsetSpace ~
17154 \begin_inset LatexCommand ref
17155 reference "sec:Colored-Tables"
17160 That means colored tables cannot have dashed lines.
17168 \begin_layout Standard
17172 \begin_layout Standard
17182 \begin_inset Note Note
17185 \begin_layout Standard
17186 The following will be displayed when the LaTeX-package
17198 \begin_layout Standard
17199 You need to install the package
17203 to see the contents of this section in the output.
17206 \begin_layout Standard
17210 \begin_layout Standard
17222 \begin_layout Chapter
17224 \begin_inset LatexCommand index
17230 \begin_inset LatexCommand label
17238 \begin_layout Section
17240 \begin_inset LatexCommand label
17241 name "sec:FloatIntroduction"
17246 \begin_inset LatexCommand index
17247 name "Floats ! Introduction"
17254 \begin_layout Standard
17255 A float is a block of text associated with some sort of label, which doesn't
17256 have a fixed location.
17258 \begin_inset Quotes eld
17262 \begin_inset Quotes erd
17265 forward or backward a page or two, to wherever it fits best.
17272 Margin\InsetSpace ~
17275 are also floats, because they can float to the next page when there are
17276 too many notes at the page.
17279 \begin_layout Standard
17280 Floats allow a high quality layout.
17281 Images and tables can evenly be spread to the pages to avoid white space
17282 and pages without text.
17283 As the floating often destroys the context between the text and the image/table
17284 , every float can be referenced in the text.
17285 Floats are therefore numbered.
17286 Referencing is described in section\InsetSpace ~
17288 \begin_inset LatexCommand ref
17289 reference "sec:Referencing-Floats"
17296 \begin_layout Standard
17297 To insert a float, use the menu
17299 Insert\SpecialChar \menuseparator
17303 This inserts a box with a label in the
17311 \begin_layout Standard
17316 environment is described in LyX's
17325 into your document.
17326 Every label ends with the character
17327 \begin_inset Quotes eld
17331 \begin_inset Quotes erd
17334 as placeholder for the float number in the output.
17335 The label will automatically be translated to the document language in
17337 Behind the label you can insert the caption text.
17338 The image or table is inserted above or below the caption in a separate
17339 paragraph within the float.
17340 More about the caption placement is described in section\InsetSpace ~
17342 \begin_inset LatexCommand ref
17343 reference "sec:Caption-Placement"
17348 To keep your LyX-document readable, you can open and close the float box
17349 by left-clicking on the box label.
17350 A closed float box looks like this:
17351 \begin_inset Graphics
17352 filename clipart/floatQt4.png
17357 -- a gray button with a red label.
17360 \begin_layout Standard
17361 It is recommended to insert floats as a separate paragraph to avoid possible
17362 LaTeX-errors that can occur when the surrounding text is specially formatted.
17365 \begin_layout Standard
17366 Existing figures or tables can be put into a float by marking them and then
17367 pressing the corresponding toolbar button for a new float.
17370 \begin_layout Section
17374 \begin_layout Standard
17375 Besides figure and table floats that are described in section\InsetSpace ~
17377 \begin_inset LatexCommand ref
17378 reference "sec:Figure-Floats"
17383 \begin_inset LatexCommand ref
17384 reference "sec:Table-Floats"
17388 , respectively, LyX offers the float types
17401 \begin_layout Subsection
17403 \begin_inset LatexCommand index
17404 name "Floats ! Algorithm Floats"
17411 \begin_layout Standard
17412 \begin_inset Float algorithm
17418 \begin_layout Standard
17419 \begin_inset Caption
17421 \begin_layout Standard
17422 \begin_inset LatexCommand label
17423 name "alg:Example-Algorithm-float"
17427 Example Algorithm float
17435 \begin_layout LyX-Code
17438 Sum:= Sum + A(I); /*senseless comment*/
17441 \begin_inset VSpace -4mm
17452 \begin_layout Standard
17453 This float type is inserted with the menu
17455 Insert\SpecialChar \menuseparator
17456 Floats\SpecialChar \menuseparator
17460 It is used for program codes and descriptions of algorithms.
17461 A possible environment for algorithms is the
17465 , described in LyX's
17470 Algorithm\InsetSpace ~
17472 \begin_inset LatexCommand ref
17473 reference "alg:Example-Algorithm-float"
17477 is an example of an algorithm float where -4\InsetSpace \thinspace{}
17478 mm vertical space was added
17479 at the end of the float to have the bottom rule exactly below the last
17483 \begin_layout Standard
17484 The float label is not automatically translated into the document language.
17485 If your document is not in English, you have to do this manually by adding
17486 the following line to the document preamble
17491 \begin_layout Standard
17496 floatname{algorithm}{your\InsetSpace ~
17500 \begin_layout Standard
17507 \begin_inset Quotes eld
17515 \begin_inset Quotes erd
17521 \begin_layout Description
17526 When the LaTeX-package
17531 \begin_inset LatexCommand index
17532 name "LaTeX-packages ! hyperref"
17536 is used to link cross-references to floats in the PDF-output, it must be
17537 loaded in the document preamble before the definition of floats to be able
17538 to reference floats.
17539 As LyX sets the float definition for algorithm floats automatically before
17540 the user editable part of the document preamble, you need to insert the
17541 following preamble lines
17545 the loading command of
17552 \begin_inset VSpace defskip
17559 newfloat{Xalgorithm}{tbp}{loa}
17563 floatname{Xalgorithm}{your\InsetSpace ~
17576 renewenvironment{algorithm}[1][tbp]
17582 \begin_layout Standard
17593 begin{Xalgorithm}[#1]}{
17596 \begin_inset VSpace defskip
17609 \begin_inset Quotes eld
17617 \begin_inset Quotes erd
17623 \begin_layout Standard
17624 Algorithm floats are not by default numbered in the scheme
17625 \begin_inset Quotes eld
17629 \begin_inset Quotes erd
17632 like it is the case for table and figure floats in many document-classes.
17633 To number algorithm floats in the same scheme, add this command to your
17637 \begin_layout Standard
17642 numberwithin{algorithm}{chapter}
17645 \begin_layout Standard
17646 If you use the LaTeX-package
17650 , add this line instead
17658 (the commands from above) to the preamble:
17661 \begin_layout Standard
17666 numberwithin{Xalgorithm}{chapter}
17669 \begin_layout Standard
17670 To be able to use the command
17681 in the document settings the option
17691 \begin_layout Subsection
17693 \begin_inset LatexCommand index
17694 name "Floats ! Text Wrap Floats"
17699 \begin_inset LatexCommand label
17700 name "sub:floatflt-wrap-float"
17707 \begin_layout Standard
17708 This float type is used if you want to
17709 \begin_inset Quotes eld
17713 \begin_inset Quotes erd
17716 text around a figure so that it only occupies some fraction of the column
17718 It can be inserted using the menu
17719 \begin_inset Wrap figure
17724 \begin_layout Standard
17725 \begin_inset Graphics
17726 filename clipart/mobius.eps
17729 rotateOrigin center
17736 \begin_layout Standard
17737 \begin_inset Caption
17739 \begin_layout Standard
17740 \begin_inset LatexCommand label
17741 name "fig:This-is-a"
17745 This is a wrapped figure, and this is the brilliant caption that describes
17747 \begin_inset VSpace medskip
17762 Insert\SpecialChar \menuseparator
17763 Floats\SpecialChar \menuseparator
17768 if the LaTeX-package
17773 \begin_inset LatexCommand index
17774 name "LaTeX-packages ! floatflt"
17782 \begin_layout Standard
17783 Installing a LaTeX-package is explained it in the
17793 The width and placement of the float is adjusted by right-clicking on the
17795 Figure\InsetSpace ~
17797 \begin_inset LatexCommand ref
17798 reference "fig:This-is-a"
17802 is an example text wrap float with a width of 40
17803 \begin_inset Formula $\,$
17810 \begin_layout Standard
17811 Available units are explained in
17812 \begin_inset LatexCommand ref
17813 reference "cha:Units-available-in"
17822 Some space was added under the caption to separate it better from the surroundi
17826 \begin_layout Standard
17831 also supports table wrap floats, but they are not yet supported by LyX.
17832 If you need this, read the documentation of
17837 \begin_inset LatexCommand cite
17845 \begin_layout Standard
17846 \begin_inset Note Greyedout
17849 \begin_layout Standard
17855 wrap float floats are fragile! E.\InsetSpace \thinspace{}
17857 having a figure too close to the bottom
17858 of the page can mess things up in the way that the float doesn't appear
17859 in the output or that it is placed over some other text.
17863 \begin_layout Standard
17864 The better solution is to use the LaTeX-package
17866 wrapf\SpecialChar \textcompwordmark{}
17870 \begin_inset LatexCommand index
17871 name "LaTeX-packages ! wrapfig\\vspace{4mm}"
17877 floatf\SpecialChar \textcompwordmark{}
17880 , but it is currently not supported by LyX.
17893 \begin_layout Standard
17897 \begin_layout Itemize
17898 Wrap floats should not be placed in paragraphs that run over a page break.
17899 That means that wrap floats should better be inserted to the exact place
17900 when the document is nearly ready and you are able to estimate where page
17901 breaks will appear.
17904 \begin_layout Itemize
17905 Wrap floats should either be placed in an own paragraph before the paragraph
17906 where they should wrap into or within a paragraph.
17909 \begin_layout Itemize
17910 Wrap floats in consecutive paragraphs may cause troubles, so assure that
17911 there is a text paragraph between them as separator.
17914 \begin_layout Itemize
17915 Wrap floats are not allowed in section headings or tables.
17918 \begin_layout Section
17920 \begin_inset LatexCommand label
17921 name "sec:Referencing-Floats"
17926 \begin_inset LatexCommand index
17927 name "Floats ! References"
17932 \begin_inset LatexCommand index
17940 \begin_layout Standard
17941 To reference a float, insert a label into its caption using the menu
17943 Insert\SpecialChar \menuseparator
17946 or the toolbar button
17947 \begin_inset Graphics
17948 filename ../images/label-insert.xpm
17954 A grey label box like this one:
17955 \begin_inset Graphics
17956 filename clipart/labelQt4.png
17961 will be inserted and the label window pops up asking for the label text.
17962 LyX offers as text the first words of the caption with a prefix.
17963 The prefix depends on the float type, e.\InsetSpace \thinspace{}
17965 for figure floats the prefix will
17973 \begin_layout Standard
17974 The label is used as anchor and name for the reference.
17975 You can refer to the label using the menu
17977 Insert\SpecialChar \menuseparator
17980 or the toolbar button
17981 \begin_inset Graphics
17982 filename ../images/dialog-show-new-inset_ref.xpm
17988 A grey cross-reference box like this one:
17989 \begin_inset Graphics
17990 filename clipart/referenceQt4.png
17995 will be inserted and the cross-reference window appear showing all labels
17997 If you have multiple LyX-documents opened, choose the one you are working
17998 on from the drop-list at the top of the dialog.
17999 You can now sort the labels alphabetically and then choose one.
18000 At the position of the cross-reference box the float number will appear
18004 \begin_layout Standard
18005 It is recommended to use a protected space between the cross-reference name
18006 and its number to avoid line breaks between them.
18007 If a cross-reference refers to a non-existing label, you will see two question
18008 marks in the output instead of the reference.
18011 \begin_layout Standard
18012 You can change labels at any time by clicking on the label box.
18013 References to the changed label will automatically change its link to the
18014 new label text, so that you don't need to take care about this.
18017 \begin_layout Standard
18024 in the cross-reference window sets the cursor before the referred label.
18025 The button text changes then to Go\InsetSpace ~
18026 Back and you can use it to set the cursor
18027 back to the cross-reference.
18028 Right-clicking on a cross-reference box also sets the cursor before the
18029 referenced label but without a possibility to go back.
18032 \begin_layout Subsection
18033 Cross-Reference Formats
18034 \begin_inset LatexCommand label
18035 name "sub:Cross-Reference-Formats"
18040 \begin_inset LatexCommand index
18041 name "References ! Formats"
18048 \begin_layout Standard
18049 There are six varieties of cross-references:
18052 \begin_layout Description
18053 <reference>: prints the float number, this is the default:
18054 \begin_inset LatexCommand ref
18055 reference "fig:Two-distorted-images"
18062 \begin_layout Description
18063 (<reference>): prints the float number within two parentheses, this is the
18064 style normally used to reference formulas, especially when the reference
18066 \begin_inset Quotes eld
18070 \begin_inset Quotes erd
18074 \begin_inset LatexCommand eqref
18082 \begin_layout Description
18083 <page>: prints the page number: Page\InsetSpace ~
18085 \begin_inset LatexCommand pageref
18086 reference "fig:Two-distorted-images"
18093 \begin_layout Description
18096 <page>: prints the text "on page" and the page number:
18097 \begin_inset LatexCommand vpageref
18098 reference "fig:Two-distorted-images"
18105 \begin_layout Description
18106 <reference>\InsetSpace ~
18109 <page>: prints the float number, the text "on page", and
18111 \begin_inset LatexCommand vref
18112 reference "fig:Two-distorted-images"
18119 \begin_layout Description
18120 Formatted\InsetSpace ~
18121 reference: prints a self defined cross-reference format.
18123 \begin_inset Note Greyedout
18126 \begin_layout Standard
18131 This feature is only available when you have the LaTeX-package
18143 \begin_layout Standard
18144 Note that the style <page> won't print the page number if the label is on
18145 the previous, the same, or the next page.
18146 You will e.\InsetSpace \thinspace{}
18149 \begin_inset Quotes eld
18157 \begin_inset Quotes erd
18163 \begin_layout Standard
18164 The number and current page of the referred document part in the output,
18165 is automatically calculated by LaTeX.
18166 The varieties are adjusted in the field
18170 of the cross-reference window, that appear when you click on the cross-referenc
18174 \begin_layout Subsection
18175 Referencing Subfigures
18176 \begin_inset LatexCommand label
18177 name "sub:Referencing-Subfigures"
18182 \begin_inset LatexCommand index
18183 name "References ! to Subfigures"
18190 \begin_layout Standard
18191 Currently referencing subfigures is not supported by LyX, so you have to
18192 use LaTeX-commands.
18193 The label is the created with the command
18196 \begin_layout Standard
18201 label{fig:YourLabelName}
18204 \begin_layout Standard
18205 that is directly inserted into the subfigure caption field.
18206 To reference the label add this command in ERT
18209 \begin_layout Standard
18214 ref{fig:YourLabelName}
18217 \begin_layout Standard
18218 to the position in your document where the reference should be placed.
18219 Here is a reference to a subfigure: Subfigure\InsetSpace ~
18224 \begin_layout Standard
18236 \begin_layout Subsection
18237 Automatic Reference Naming
18238 \begin_inset LatexCommand index
18239 name "References ! Automatic Reference Naming"
18246 \begin_layout Standard
18251 provides a very useful feature that cross-references automatically include
18252 the name of the referenced floats (or text parts like sections).
18253 You save to write e.\InsetSpace \thinspace{}
18256 \begin_inset Quotes eld
18260 \begin_inset Quotes erd
18263 before every reference box.
18264 To get this automatic reference naming, you have to load the LaTeX-package
18270 \begin_inset LatexCommand index
18271 name "LaTeX-packages ! hyperref"
18275 in the document preamble with
18278 \begin_layout Standard
18283 usepackage[pdfborder={0 0 0}]{hyperref}
18298 \begin_layout Standard
18303 is used to link cross-references in the DVI- and PDF-output, this means
18304 that the reader of your document will be able to click on a table of content
18305 (TOC) entry or on a reference and he will be shown the referenced document
18311 also creates PDF-bookmarks for every section of your document to make it
18312 easier for readers to navigate through the document.
18313 This is also used in this document but when you have a look in the document
18314 preamble you will find various options in the load command of
18319 To learn more about the
18323 package, we refer to its documentation
18324 \begin_inset LatexCommand cite
18332 \begin_layout Standard
18333 \begin_inset Note Greyedout
18336 \begin_layout Standard
18341 Automatic reference naming cannot be used when you use cross-references
18344 Formatted\InsetSpace ~
18347 style, described in section\InsetSpace ~
18349 \begin_inset LatexCommand ref
18350 reference "sub:Cross-Reference-Formats"
18362 \begin_layout Subsection
18364 \begin_inset LatexCommand label
18365 name "sub:Reference-Position"
18370 \begin_inset LatexCommand index
18371 name "References ! Reference Position"
18378 \begin_layout Standard
18384 \begin_inset LatexCommand index
18385 name "LaTeX-packages ! hyperref"
18389 to link cross-references in the output, you will see that clicking on an
18390 image float reference jumps to the image label.
18391 The caption will be the first text part on the screen, so that you cannot
18392 see the image without scrolling.
18393 This is because the reference link anchor is placed at the position of
18395 With the use of the package
18400 \begin_inset LatexCommand index
18401 name "LaTeX-packages ! hypcap"
18405 , which is part of the LaTeX-package
18410 \begin_inset LatexCommand index
18411 name "LaTeX-packages ! oberdiek"
18415 , the link anchor is placed at the beginning of a float.
18416 To use this feature for figure floats, load
18420 in the document preamble with the line
18423 \begin_layout Standard
18428 usepackage[f\SpecialChar \textcompwordmark{}
18432 \begin_layout Standard
18437 for all floats but this isn't recommended for stability reasons.
18438 For more informations, have a look at
18443 \begin_inset LatexCommand cite
18451 \begin_layout Standard
18452 \begin_inset Note Greyedout
18455 \begin_layout Standard
18464 must be loaded after
18468 in the document preamble.
18476 \begin_layout Standard
18477 \begin_inset Note Greyedout
18480 \begin_layout Standard
18485 The set reference position has no effect for references to subfigures.
18493 \begin_layout Section
18495 \begin_inset LatexCommand label
18496 name "sec:Float-Placement"
18501 \begin_inset LatexCommand index
18502 name "Floats ! Placement"
18509 \begin_layout Standard
18510 Right-clicking on a float-box opens a dialog where you can alter the placement
18511 options that LaTeX uses for positioning the float.
18518 is only useful for two-column documents: If you select it, the float will
18519 span across both columns on the page instead of being confined to just
18524 Rotate\InsetSpace ~
18527 is used to rotate floats, see section
18528 \begin_inset LatexCommand ref
18529 reference "sec:Rotated-Floats"
18536 \begin_layout Standard
18537 You can use one ore more of the following options in the float dialog to
18538 set the placement for a particular float when you uncheck the option
18541 default\InsetSpace ~
18547 \begin_layout Description
18550 possible: try to place the float on the position where it is inserted
18553 \begin_layout Description
18556 page: try to place the float on the top of the current page
18559 \begin_layout Description
18560 Bottom\InsetSpace ~
18562 page: try to place the float on the bottom of the current page
18565 \begin_layout Description
18568 floats: try to place the float on an own page
18571 \begin_layout Standard
18572 The order of the above option is
18577 That means, if you use the default placement, LaTeX will first try out
18590 , and then the others.
18591 If you don't use the default, LaTeX will try only the checked options but
18593 If none of the 4 placements are possible the procedure is internally repeated
18594 but it is tried to put the float on the following page.
18597 \begin_layout Standard
18598 By default, each options has its own rules:
18601 \begin_layout Labeling
18602 \labelwidthstring 00.00.0000
18609 only floats occupying less than 70\InsetSpace \thinspace{}
18610 % of the page can be placed at the top
18620 \begin_layout Labeling
18621 \labelwidthstring 00.00.0000
18624 Bottom\InsetSpace ~
18628 : only floats occupying less than 30\InsetSpace \thinspace{}
18629 % of the page can be placed at the bottom
18640 \begin_layout Labeling
18641 \labelwidthstring 00.00.0000
18648 : only if more than 50\InsetSpace \thinspace{}
18649 % of the page are occupied by floats, several floats
18650 can be set together on a page.
18660 \begin_layout Standard
18661 If you don't like these rules, you can ignore them by using the additional
18664 Ignore\InsetSpace ~
18670 You can also redefine the rules with LaTeX-commands that are given in parenthese
18671 s behind the rules description above.
18672 To increase for example the often too small default of the bottom-rule
18673 to 50\InsetSpace \thinspace{}
18674 % of the page, add this line to your document preamble:
18677 \begin_layout Standard
18684 bottomfraction}{0.5}
18687 \begin_layout Standard
18688 Sometimes you might need, under all circumstances, a float to be placed
18689 exactly at the position where it is inserted.
18690 For this case you can use the option
18696 Use this option very rarely and only if the document is nearly ready to
18698 Because the float is then no longer able to
18699 \begin_inset Quotes eld
18703 \begin_inset Quotes erd
18706 when you change your document and this will often destroy the page layout.
18709 \begin_layout Standard
18710 There are no placement options for text wrap floats, because they are always
18711 surrounded by the text of a certain paragraph.
18712 \begin_inset VSpace bigskip
18718 \begin_layout Standard
18719 Sometimes you have the problem that a float is placed at the top of a page
18720 while its corresponding section starts at the middle of the page, so that
18721 the reader could think the float is part of the previous section.
18722 To avoid this the LaTeX-command
18726 suppressf\SpecialChar \textcompwordmark{}
18730 It suppresses a given float placement for the page where it is inserted
18731 and can therefore be used to avoid that floats could be set before a section
18733 To get this, add these commands to your document preamble:
18736 \begin_layout Standard
18753 suppressf\SpecialChar \textcompwordmark{}
18759 \begin_layout Standard
18760 You can define the same for all section headings, like chapters and subsections.
18761 This definition is not recommended to be used for small text parts like
18762 subsubsections because LaTeX may then have problems to find a suitable
18766 \begin_layout Standard
18767 \begin_inset VSpace bigskip
18770 In some cases it is required to have all figures/tables at the end of the
18772 For this purpose the LaTeX-package
18774 endf\SpecialChar \textcompwordmark{}
18778 \begin_inset LatexCommand index
18779 name "LaTeX-packages ! endfloat"
18784 It puts all figure and table floats at the end of the document into own
18786 At the original float position a text hint like
18787 \begin_inset Quotes eld
18792 [Figure\InsetSpace ~
18796 \begin_inset Quotes erd
18800 The endfloat-package is loaded in the preamble with the line
18803 \begin_layout Standard
18808 usepackage[options]{endf\SpecialChar \textcompwordmark{}
18812 \begin_layout Standard
18813 There are various package options to format the created figure/table sections.
18814 For more information we refer to the
18816 endf\SpecialChar \textcompwordmark{}
18820 \begin_inset LatexCommand cite
18828 \begin_inset Note Greyedout
18831 \begin_layout Standard
18834 Note: endf\SpecialChar \textcompwordmark{}
18837 doesn't provide an automatic translation for the text hint, you have to
18838 do this manually, see section\InsetSpace ~
18840 \begin_inset LatexCommand cite
18853 \begin_inset Note Greyedout
18856 \begin_layout Standard
18861 There is currently a bug in
18863 endf\SpecialChar \textcompwordmark{}
18866 when the caption contains a German
18867 \begin_inset Quotes eld
18871 \begin_inset Quotes erd
18875 Use in this case the command
18876 \begin_inset Quotes eld
18886 \begin_inset Quotes erd
18890 \begin_inset Quotes eld
18894 \begin_inset Quotes erd
18905 \begin_layout Standard
18906 \begin_inset VSpace bigskip
18909 For more details about float placements, have a look at LaTeX books,
18910 \begin_inset LatexCommand cite
18911 key "latexcompanion,latexguide,latexbook"
18918 \begin_layout Section
18920 \begin_inset LatexCommand label
18921 name "sec:Rotated-Floats"
18926 \begin_inset LatexCommand index
18927 name "Floats ! Rotating"
18934 \begin_layout Standard
18935 Especially for wide tables you might have floats rotated.
18936 To rotate a whole float including the caption, right-click on the float-box
18939 Rotate\InsetSpace ~
18945 \begin_layout Standard
18946 Rotated floats are always placed on its own page (or column, when you have
18947 a two-column document).
18948 They are normally rotated so that you can read them from the outside margin
18949 -- to the left on even pages, to the right on odd pages.
18952 \begin_layout Standard
18953 Referencing rotated floats is the same like for normal floats, the caption
18954 format is also the same: Table\InsetSpace ~
18956 \begin_inset LatexCommand ref
18957 reference "tab:Rotated-table"
18961 is an example of a rotated table float.
18964 \begin_layout Standard
18965 \begin_inset Note Greyedout
18968 \begin_layout Standard
18973 Not all DVI-viewers are able to display rotated floats.
18981 \begin_layout Standard
18982 \begin_inset Float table
18987 \begin_layout Standard
18988 \begin_inset Caption
18990 \begin_layout Standard
18991 \begin_inset LatexCommand label
18992 name "tab:Rotated-table"
19004 \begin_layout Standard
19006 \begin_inset Tabular
19007 <lyxtabular version="3" rows="1" columns="5">
19009 <column alignment="center" valignment="top" leftline="true" width="0">
19010 <column alignment="center" valignment="top" leftline="true" width="0">
19011 <column alignment="center" valignment="top" leftline="true" width="0">
19012 <column alignment="center" valignment="top" leftline="true" width="0">
19013 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19014 <row topline="true" bottomline="true">
19015 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19018 \begin_layout Standard
19024 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19027 \begin_layout Standard
19033 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19036 \begin_layout Standard
19042 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19045 \begin_layout Standard
19051 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19054 \begin_layout Standard
19073 \begin_layout Section
19075 \begin_inset LatexCommand index
19076 name "Caption ! Formatting"
19081 \begin_inset LatexCommand index
19082 name "Floats ! Caption Formatting"
19087 \begin_inset LatexCommand index
19088 name "LaTeX-packages ! caption"
19093 \begin_inset LatexCommand label
19094 name "sec:Caption-Formatting"
19101 \begin_layout Standard
19106 environment is the default paragraph environment for
19111 On the LyX screen captions appear as label, e.\InsetSpace \thinspace{}
19114 \begin_inset Quotes eld
19122 \begin_inset Quotes erd
19125 followed by the caption text.
19127 \begin_inset Quotes eld
19131 \begin_inset Quotes erd
19134 is substituted in the printed output by the actual reference number.
19135 By default the label and the number are in the same font as the caption
19136 text and a colon follows the number to divide then label from the text.
19137 This caption format is not suitable for all document formats.
19141 \begin_layout Standard
19142 To change the default caption format, load the LaTeX-package
19147 \begin_inset LatexCommand index
19148 name "LaTeX-packages ! caption"
19152 in the document preamble with this line:
19155 \begin_layout Standard
19160 usepackage[format definition]{caption}
19163 \begin_layout Standard
19164 To have for example the label and the number in sans-serif bold font and
19165 the table captions always above the table like in this document, use the
19169 \begin_layout Standard
19174 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
19177 \begin_layout Standard
19178 You can also define different caption formats for the different float types.
19179 In this case load the
19183 package without format specific options and define the different formats
19184 with the help of the command
19187 \begin_layout Standard
19192 captionsetup[float type]{format definition}
19195 \begin_layout Standard
19196 in the document preamble.
19197 For example the caption formats of Figure\InsetSpace ~
19199 \begin_inset LatexCommand ref
19200 reference "fig:This-is-an-fig"
19204 and Table\InsetSpace ~
19206 \begin_inset LatexCommand ref
19207 reference "tab:This-is-an-tab"
19211 can be created using these commands in the document preamble:
19214 \begin_layout Standard
19219 usepackage[tableposition=top]{caption}
19227 captionsetup[f\SpecialChar \textcompwordmark{}
19228 igure]{labelfont={tt}, textfont=it, indention=1cm,%
19234 \begin_layout Standard
19242 captionsetup[figure]
19253 captionsetup[table]{labelfont={bf,sf}}
19256 \begin_layout Standard
19257 \begin_inset Note Greyedout
19260 \begin_layout Standard
19269 has no effect when a
19274 \begin_inset LatexCommand index
19275 name "LaTeX-packages ! koma-script"
19279 document class is used.
19280 In this case the document class option
19292 \begin_layout Standard
19293 For more information about the package
19297 we refer to its documentation
19298 \begin_inset LatexCommand cite
19299 key "caption,caption-de"
19306 \begin_layout Standard
19307 To change the label name from e.g.
19309 \begin_inset Quotes eld
19313 \begin_inset Quotes erd
19317 \begin_inset Quotes eld
19321 \begin_inset Quotes erd
19324 use this preamble command:
19327 \begin_layout Standard
19334 fnum@figure}{Image~
19339 \begin_layout Standard
19346 inserts the figure number and
19349 \begin_inset Quotes eld
19355 \begin_inset Quotes erd
19358 creates a protected space.
19361 \begin_layout Standard
19362 \begin_inset VSpace bigskip
19370 \begin_inset LatexCommand index
19371 name "LaTeX-packages ! koma-script"
19377 article (koma-script)
19385 letter (koma-script)
19389 report (koma-script)
19391 \InsetSpace \thinspace{}
19392 ), you can alternatively to the
19400 's built-in command
19407 For example, to have the caption label in bold, add this command to your
19411 \begin_layout Standard
19416 setkomafont{captionlabel}{
19421 \begin_layout Standard
19422 For more information about
19433 \begin_inset LatexCommand cite
19434 key "koma-script,koma-script-de"
19441 \begin_layout Standard
19445 \begin_layout Standard
19449 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
19456 \begin_inset Note Note
19459 \begin_layout Standard
19460 The caption format is changed only for this example.
19468 \begin_layout Standard
19469 \begin_inset Float figure
19475 \begin_layout Standard
19477 \begin_inset Graphics
19478 filename clipart/mobius.eps
19487 \begin_layout Standard
19488 \begin_inset Caption
19490 \begin_layout Standard
19491 \begin_inset LatexCommand label
19492 name "fig:This-is-an-fig"
19496 This is an example figure caption that is longer than one line to show the
19497 different caption format.
19498 Here a self-defined caption format is used.
19511 \begin_layout Standard
19515 \begin_layout Standard
19519 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
19528 \begin_layout Standard
19529 \begin_inset Float table
19535 \begin_layout Standard
19536 \begin_inset Caption
19538 \begin_layout Standard
19539 \begin_inset LatexCommand label
19540 name "tab:This-is-an-tab"
19544 This is an example table caption that is longer than one line to show the
19545 different caption format.
19546 Here the standard caption format for tables in this document is used.
19554 \begin_layout Standard
19556 \begin_inset Tabular
19557 <lyxtabular version="3" rows="1" columns="5">
19559 <column alignment="center" valignment="top" leftline="true" width="0">
19560 <column alignment="center" valignment="top" leftline="true" width="0">
19561 <column alignment="center" valignment="top" leftline="true" width="0">
19562 <column alignment="center" valignment="top" leftline="true" width="0">
19563 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19564 <row topline="true" bottomline="true">
19565 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19568 \begin_layout Standard
19574 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19577 \begin_layout Standard
19583 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19586 \begin_layout Standard
19592 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19595 \begin_layout Standard
19601 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19604 \begin_layout Standard
19623 \begin_layout Section
19625 \begin_inset LatexCommand index
19626 name "Caption ! Placement"
19631 \begin_inset LatexCommand index
19632 name "Floats ! Caption Placement"
19637 \begin_inset LatexCommand label
19638 name "sec:Caption-Placement"
19645 \begin_layout Standard
19646 The common caption placement rule is:
19649 \begin_layout Description
19650 Figure: Caption is set below the figure
19653 \begin_layout Description
19654 Table: Caption is set above the table
19657 \begin_layout Standard
19658 Having the caption above the table is unfortunately not supported in LaTeX's
19660 That means if you are using the document classes
19676 there will be no space between the caption and the table.
19677 To insert the needed space, add the following option to the load command
19678 of the LaTeX-package
19682 in your document preamble
19686 \begin_layout Standard
19687 See section\InsetSpace ~
19689 \begin_inset LatexCommand ref
19690 reference "sec:Caption-Formatting"
19694 for more information of the package
19706 \begin_layout Standard
19712 \begin_layout Standard
19718 \begin_inset LatexCommand index
19719 name "LaTeX-packages ! koma-script"
19725 article (koma-script)
19733 letter (koma-script)
19737 report (koma-script)
19739 \InsetSpace \thinspace{}
19740 ), you can alternatively to the
19744 package set the document class option
19748 , or you can use the environment
19750 caption\InsetSpace ~
19760 \begin_layout Standard
19761 \begin_inset VSpace bigskip
19764 It is also possible to set the caption beside a figure or table.
19765 To get this the LaTeX-package
19770 \begin_inset LatexCommand index
19771 name "LaTeX-packages ! sidecap"
19775 has to be loaded in the document preamble with the line
19778 \begin_layout Standard
19783 usepackage[option]{sidecap}
19786 \begin_layout Standard
19787 If you set no option, the caption is placed on the side of the outer page
19788 margin -- to the right on odd pages, to the left on even pages.
19789 You can change the placement to inner margin with the option
19794 To force the placement always to the right or left, use the option
19805 \begin_layout Standard
19806 To place in LyX the caption of a float on the side, it is necessary to add
19807 these commands to the document preamble:
19810 \begin_layout Standard
19816 \begin_layout Standard
19829 \begin_layout Standard
19850 \begin_layout Standard
19871 \begin_layout Standard
19882 renewenvironment{table}{
19889 \begin_layout Standard
19902 \begin_layout Standard
19923 \begin_layout Standard
19941 \begin_layout Standard
19954 \begin_layout Standard
19969 f\SpecialChar \textcompwordmark{}
19976 \begin_layout Standard
19989 MyEndf\SpecialChar \textcompwordmark{}
19992 endf\SpecialChar \textcompwordmark{}
19999 \begin_layout Standard
20010 renewenvironment{f\SpecialChar \textcompwordmark{}
20013 begin{SCf\SpecialChar \textcompwordmark{}
20016 end{SCf\SpecialChar \textcompwordmark{}
20020 \begin_layout Standard
20033 \begin_layout Standard
20046 f\SpecialChar \textcompwordmark{}
20055 \begin_layout Standard
20068 endf\SpecialChar \textcompwordmark{}
20071 MyEndf\SpecialChar \textcompwordmark{}
20075 \begin_layout Standard
20081 \begin_layout Standard
20082 The commands allow you to redefine the floats so that the caption is set
20084 For figure floats use the command
20087 \begin_layout Standard
20095 \begin_layout Standard
20096 in ERT before the float.
20097 Behind the float insert the command
20100 \begin_layout Standard
20108 \begin_layout Standard
20109 in ERT to get back to the original float definition.
20112 \begin_layout Standard
20113 For table floats use the corresponding commands
20116 \begin_layout Standard
20130 \begin_layout Standard
20131 Figure\InsetSpace ~
20133 \begin_inset LatexCommand ref
20134 reference "fig:cap-beside-fig"
20138 and Table\InsetSpace ~
20140 \begin_inset LatexCommand ref
20141 reference "tab:cap-beside-tab"
20145 are examples where the caption is set beside.
20148 \begin_layout Standard
20149 You can see in the examples that the caption text appears at the top of
20150 the floats for table floats and at the bottom for figure floats.
20151 To change this, you can use the command
20154 \begin_layout Standard
20159 sidecaptionvpos{float type}{placement}
20162 \begin_layout Standard
20163 in the document preamble or in ERT before the float.
20164 The float type is either
20172 , the placement can be
20173 \begin_inset Quotes eld
20181 \begin_inset Quotes erd
20185 \begin_inset Quotes eld
20193 \begin_inset Quotes erd
20197 \begin_inset Quotes eld
20205 \begin_inset Quotes erd
20209 To have for example the caption of figure floats vertically centered, use
20213 \begin_layout Standard
20218 sidecaptionvpos{f\SpecialChar \textcompwordmark{}
20222 \begin_layout Standard
20223 This was used for Figure\InsetSpace ~
20225 \begin_inset LatexCommand ref
20226 reference "fig:cap-beside-fig-2"
20233 \begin_layout Standard
20234 \begin_inset VSpace defskip
20237 For more information about the package
20241 we refer to its documentation
20242 \begin_inset LatexCommand cite
20250 \begin_layout Standard
20251 \begin_inset Note Greyedout
20254 \begin_layout Standard
20264 \begin_inset LatexCommand index
20265 name "LaTeX-packages ! hypcap"
20269 , described in section\InsetSpace ~
20271 \begin_inset LatexCommand ref
20272 reference "sub:Reference-Position"
20276 , has no effect on floats with the caption set beside.
20284 \begin_layout Standard
20288 \begin_layout Standard
20300 \begin_layout Standard
20301 \begin_inset Float figure
20306 \begin_layout Standard
20307 \begin_inset Graphics
20308 filename clipart/escher-lsd.eps
20316 \begin_layout Standard
20317 \begin_inset Caption
20319 \begin_layout Standard
20320 \begin_inset LatexCommand label
20321 name "fig:cap-beside-fig"
20325 This is a caption beside a figure.
20338 \begin_layout Standard
20342 \begin_layout Standard
20354 \begin_layout Standard
20355 \begin_inset Float table
20360 \begin_layout Standard
20361 \begin_inset Caption
20363 \begin_layout Standard
20364 \begin_inset LatexCommand label
20365 name "tab:cap-beside-tab"
20369 This is a caption beside a table.
20377 \begin_layout Standard
20378 \begin_inset Tabular
20379 <lyxtabular version="3" rows="4" columns="5">
20381 <column alignment="center" valignment="top" leftline="true" width="0">
20382 <column alignment="center" valignment="top" leftline="true" width="0">
20383 <column alignment="center" valignment="top" leftline="true" width="0">
20384 <column alignment="center" valignment="top" leftline="true" width="0">
20385 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
20386 <row topline="true">
20387 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20390 \begin_layout Standard
20396 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20399 \begin_layout Standard
20405 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20408 \begin_layout Standard
20414 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20417 \begin_layout Standard
20423 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20426 \begin_layout Standard
20433 <row topline="true">
20434 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20437 \begin_layout Standard
20443 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20446 \begin_layout Standard
20452 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20455 \begin_layout Standard
20461 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20464 \begin_layout Standard
20470 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20473 \begin_layout Standard
20480 <row topline="true">
20481 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20484 \begin_layout Standard
20490 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20493 \begin_layout Standard
20499 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20502 \begin_layout Standard
20508 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20511 \begin_layout Standard
20517 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20520 \begin_layout Standard
20527 <row topline="true" bottomline="true">
20528 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20531 \begin_layout Standard
20537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20540 \begin_layout Standard
20546 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20549 \begin_layout Standard
20555 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20558 \begin_layout Standard
20564 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20567 \begin_layout Standard
20586 \begin_layout Standard
20590 \begin_layout Standard
20602 \begin_layout Standard
20606 \begin_layout Standard
20610 sidecaptionvpos{figure}{c}
20616 \begin_inset Float figure
20621 \begin_layout Standard
20622 \begin_inset Graphics
20623 filename clipart/escher-lsd.eps
20631 \begin_layout Standard
20632 \begin_inset Caption
20634 \begin_layout Standard
20635 \begin_inset LatexCommand label
20636 name "fig:cap-beside-fig-2"
20640 This is a vertically centered caption beside a figure.
20653 \begin_layout Standard
20657 \begin_layout Standard
20669 \begin_layout Section
20671 \begin_inset LatexCommand label
20672 name "sec:Listings-of-Floats"
20677 \begin_inset LatexCommand index
20678 name "Floats ! Listings"
20685 \begin_layout Standard
20686 Similar to the the table of contents where the sections of the document
20687 are listed, there are listings for all float types, like the figures of
20689 You can insert them via the
20691 Insert\SpecialChar \menuseparator
20699 \begin_layout Standard
20700 The list entries are the float captions or its short title, the float number,
20701 and the page number where they appear in the document.
20704 \begin_layout Standard
20705 You can find the list of figures and tables at the end of this document.
20708 \begin_layout Chapter
20712 \begin_layout Section
20716 \begin_layout Standard
20729 \begin_layout Standard
20737 \begin_inset LatexCommand label
20738 name "sec:LyX-Notes"
20743 \begin_inset LatexCommand index
20744 name "Notes ! LyX Notes"
20749 \begin_inset Note Note
20752 \begin_layout Standard
20755 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
20756 are displayed wrongly in PDF-bookmarks.
20757 For more information about this, have a look at
20758 \begin_inset LatexCommand cite
20771 \begin_layout Standard
20772 Notes are inserted with the toolbar button
20773 \begin_inset Graphics
20774 filename ../images/note-insert.xpm
20781 Insert\SpecialChar \menuseparator
20785 There are three types of notes:
20788 \begin_layout Description
20790 Note This note type is for internal notes that won't appear in the output.
20791 Its note-box looks like this:
20796 \begin_inset Graphics
20797 filename clipart/LyXNoteImageQt4.png
20804 \begin_inset Note Note
20807 \begin_layout Standard
20808 This is text in a note box that doesn't appear in the output.
20816 \begin_layout Description
20817 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
20818 ent, when you export the document to LaTeX via the menu
20820 File\SpecialChar \menuseparator
20821 Export\SpecialChar \menuseparator
20822 LaTeX (pdflatex) / LaTeX (plain)
20825 Its note-box looks like this:
20830 \begin_inset Graphics
20831 filename clipart/CommentNoteImageQt4.png
20838 \begin_inset Note Comment
20841 \begin_layout Standard
20842 This is text in a note box that only appears as comment in LaTeX-files.
20850 \begin_layout Description
20851 Greyed\InsetSpace ~
20852 Out This note will appear in the output as grey text.
20853 Its note-box looks like this:
20858 \begin_inset Graphics
20859 filename clipart/GreyedOutNoteImageQt4.png
20871 \begin_layout Standard
20875 renewenvironment{lyxgreyedout}
20878 \begin_layout Standard
20882 textcolor[gray]{0.8}
20892 \begin_inset Note Greyedout
20895 \begin_layout Standard
20900 \begin_layout Standard
20901 This is an example footnote within a greyed out note.
20906 of a comment that appears in the output as grey text.
20915 \begin_layout Standard
20919 renewenvironment{lyxgreyedout}
20922 \begin_layout Standard
20936 \begin_inset Note Note
20939 \begin_layout Standard
20940 The greyed out note is here redefined to show it with the original LyX definitio
20941 n because greyed out notes are redefined in the preamble of this document,
20942 as described below, to have blue text.
20951 As you can see in the example, the first line of greyed out notes is a bit
20952 indented and greyed out notes can have footnotes.
20955 \begin_layout Description
20956 Framed This note will appear in the output as framed text.
20957 Its note-box looks like this:
20962 \begin_inset Graphics
20963 filename clipart/FramedNoteImageQt4.png
20970 \begin_inset Note Framed
20973 \begin_layout Standard
20974 This is text in a note box that appears framed in the output.
20979 In contrary to framed boxes
20983 \begin_layout Standard
20984 Framed boxes are described in section\InsetSpace ~
20986 \begin_inset LatexCommand ref
20987 reference "sec:Framed-Boxes"
20996 the frame uses always the whole text width and the note is set into its
21000 \begin_layout Description
21001 Shaded This note will appear in the output with red background color.
21002 Its note box looks like this:
21007 \begin_inset Graphics
21008 filename clipart/ShadedNoteImageQt4.png
21015 \begin_inset Note Shaded
21018 \begin_layout Standard
21019 This text in a note box appears in the output with red background.
21024 In contrary to colored boxes
21028 \begin_layout Standard
21029 Colored boxes are described in section\InsetSpace ~
21031 \begin_inset LatexCommand ref
21032 reference "sec:Colored-Boxes"
21041 the note uses always the whole text width and the note is set into its
21045 \begin_layout Standard
21046 \begin_inset VSpace bigskip
21049 When you use the toolbar button to insert notes, a
21055 You can switch between the three note types by right-clicking on the note-box.
21060 If you want to turn existing text into a note, mark it and click on the
21076 \begin_layout Standard
21077 \begin_inset VSpace bigskip
21080 You can change the text color of the greyed out notes in the preamble with
21081 the following command:
21084 \begin_layout Standard
21089 renewenvironment{lyxgreyedout}
21095 \begin_layout Standard
21113 \begin_layout Standard
21114 The available colors and the method to define own colors is explained in
21115 section\InsetSpace ~
21117 \begin_inset LatexCommand ref
21118 reference "sec:Colored-Tables"
21125 \begin_layout Standard
21126 Notes that appear in blue in this document are set using greyed out notes
21130 \begin_layout Standard
21131 \begin_inset VSpace bigskip
21137 \begin_layout Standard
21146 notes can be set in the
21153 \begin_layout Standard
21154 The default frame width for
21158 notes is 0.4\InsetSpace \thinspace{}
21159 pt; it can be changed by changing the size
21166 The default space between the note content and the frame is 9\InsetSpace \thinspace{}
21168 be changed by changing the size
21175 For example the frame appearance of the following
21179 note is set with the ERT commands
21182 \begin_layout Standard
21192 \begin_layout Standard
21196 \begin_layout Standard
21208 \begin_inset Note Framed
21211 \begin_layout Standard
21225 \begin_layout Standard
21239 \begin_layout Standard
21240 \begin_inset VSpace bigskip
21246 \begin_layout Standard
21251 notes the default space between the note content and the note border is
21252 3\InsetSpace \thinspace{}
21253 pt; it can be changed by changing the size
21261 The default background color red can be changed with the command
21265 def\SpecialChar \textcompwordmark{}
21273 def\SpecialChar \textcompwordmark{}
21276 command is explained in section\InsetSpace ~
21278 \begin_inset LatexCommand ref
21279 reference "sec:Colored-Tables"
21287 \begin_layout Standard
21294 \SpecialChar \textcompwordmark{}
21299 requires the LaTeX-package
21303 in the preamble, see section\InsetSpace ~
21305 \begin_inset LatexCommand ref
21306 reference "sec:Colored-Boxes"
21318 \begin_layout Standard
21319 For example the appearance of the following
21323 note is set with the ERT commands
21326 \begin_layout Standard
21339 def\SpecialChar \textcompwordmark{}
21340 inecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21343 \begin_layout Standard
21347 \begin_layout Standard
21360 \begin_layout Standard
21364 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21370 \begin_inset Note Shaded
21373 \begin_layout Standard
21376 This is yellow text in a
21386 note with darkgreen background.
21395 \begin_layout Standard
21408 \begin_layout Standard
21412 definecolor{shadecolor}{rgb}{1,0,0}
21420 \begin_layout Section
21422 \begin_inset LatexCommand label
21423 name "sec:Footnotes"
21428 \begin_inset LatexCommand index
21429 name "Notes ! Footnotes"
21434 \begin_inset LatexCommand index
21442 \begin_layout Standard
21443 Footnotes can be inserted using the toolbar button
21444 \begin_inset Graphics
21445 filename ../images/footnote-insert.xpm
21452 Insert\SpecialChar \menuseparator
21464 then the following footnote-box:
21465 \begin_inset Graphics
21466 filename clipart/footnoteQt4.png
21475 where you can enter the footnote text.
21476 If you want to turn existing text into a footnote, mark it and click on
21492 \begin_layout Standard
21493 Here is an example footnote:
21501 \begin_layout Standard
21502 \begin_inset LatexCommand label
21503 name "foot:This-is-an"
21507 This is an example footnote.
21520 \begin_layout Standard
21524 newcounter{MyRepeatFoot}
21527 \begin_layout Standard
21531 setcounter{MyRepeatFoot}{
21541 \begin_layout Standard
21542 The footnote will appear in the output as a superscript number at the text
21543 position where the footnote box is placed.
21544 The footnote text is placed at the bottom of the current page.
21545 The footnote number is calculated by LaTeX, the numbers are consecutive.
21546 It depends on your document-class, if the footnote number is reset for
21550 \begin_layout Standard
21551 Footnotes can be referenced like floats: Insert a label into the footnote
21552 and cross-reference this label in the text as described in section\InsetSpace ~
21554 \begin_inset LatexCommand ref
21555 reference "sec:Referencing-Floats"
21561 This is a cross-reference of Footnote\InsetSpace ~
21563 \begin_inset LatexCommand ref
21564 reference "foot:This-is-an"
21571 \begin_inset Note Greyedout
21574 \begin_layout Standard
21579 LyX doesn't provide a prefix for labels in footnotes, so you have to insert
21580 e.\InsetSpace \thinspace{}
21585 \begin_inset Quotes eld
21591 \begin_inset Quotes erd
21594 manually when you want to use the reference style
21596 Formatted\InsetSpace ~
21607 \begin_layout Standard
21608 \begin_inset VSpace defskip
21611 To use footnotes within tables, you have to use minipages, see section\InsetSpace ~
21613 \begin_inset LatexCommand ref
21614 reference "sec:Minipages"
21619 Footnotes within longtables are described in section\InsetSpace ~
21621 \begin_inset LatexCommand ref
21622 reference "sub:Footnotes-in-Longtables"
21629 \begin_layout Standard
21630 \begin_inset VSpace defskip
21633 To create only a mark for a footnote, use the command
21637 footnotemark[number]
21640 This is used when you have the same annotation several times in a text
21641 but doesn't want to print the footnote text every time.
21644 the number of the repeating footnote while you are writing the text, you
21645 have to store its number.
21646 For the following footnote mark example, these commands were inserted in
21647 ERT behind Footnote\InsetSpace ~
21649 \begin_inset LatexCommand ref
21650 reference "foot:This-is-an"
21654 to store the footnote number:
21657 \begin_layout Standard
21662 newcounter{MyRepeatFoot}
21666 setcounter{MyRepeatFoot}{
21671 \begin_layout Standard
21672 The footnote mark was then created with this command:
21675 \begin_layout Standard
21685 \begin_layout Standard
21686 Here is an example footnote mark:
21694 \begin_layout Standard
21708 \begin_layout Subsection
21710 \begin_inset LatexCommand label
21711 name "sub:Footnote-Numbering"
21716 \begin_inset LatexCommand index
21717 name "Footnotes ! Numbering"
21724 \begin_layout Standard
21725 If you want to have footnotes numbered in the scheme
21726 \begin_inset Quotes eld
21730 \begin_inset Quotes erd
21733 , add the following command to your document preamble:
21736 \begin_layout Standard
21741 numberwithin{footnote}{chapter}
21744 \begin_layout Standard
21745 To be able to use the command
21756 in the document settings the option
21766 \begin_layout Standard
21770 \begin_layout Standard
21774 numberwithin{footnote}{chapter}
21779 This is another example footnote:
21785 \begin_layout Standard
21786 This is a footnote numbered in the scheme
21787 \begin_inset Quotes eld
21791 \begin_inset Quotes erd
21805 \begin_layout Standard
21809 numberwithin{footnote}{part}
21817 \begin_layout Standard
21818 \begin_inset VSpace bigskip
21824 \begin_layout Standard
21825 To reset the footnote number back to 1 after each section
21827 , add this command to your document preamble:
21830 \begin_layout Standard
21835 @addtoreset{footnote}{section}
21838 \begin_layout Standard
21839 \begin_inset VSpace bigskip
21842 The following preamble command changes the footnote numbering style to small
21846 \begin_layout Standard
21858 \begin_layout Standard
21862 \begin_layout Standard
21875 This is a footnote with roman numbering:
21879 \begin_layout Standard
21880 This is an example footnote with roman numbering.
21889 \begin_layout Standard
21905 \begin_layout Standard
21906 To change the numbering style to capital roman numerals replace in the command
21921 \begin_inset Quotes eld
21925 \begin_inset Quotes erd
21928 footnotes with capital or small Latin letters use
21942 \begin_inset Quotes eld
21946 \begin_inset Quotes erd
21949 footnotes with symbols use
21958 \begin_layout Standard
21959 \begin_inset Note Greyedout
21962 \begin_layout Standard
21967 You can only number 26 footnotes with Latin letters, because this numbering
21968 is limited to single letters.
21976 \begin_inset Note Greyedout
21979 \begin_layout Standard
21984 You can only number 9 footnotes with symbols.
21992 \begin_layout Standard
21993 To return to the default numbering style when you changed to another one,
22006 in the command above.
22009 \begin_layout Subsection
22011 \begin_inset LatexCommand index
22012 name "Footnotes ! Placement"
22019 \begin_layout Standard
22020 If you have several footnotes in one page, they appear without vertical
22021 space between them at the bottom of the page.
22022 To make them better readable you can e.\InsetSpace \thinspace{}
22024 add 1.5\InsetSpace \thinspace{}
22025 mm space with the following
22029 \begin_layout Standard
22051 \begin_layout Standard
22052 \begin_inset VSpace bigskip
22055 In a two-column document the footnotes appear at the bottom of every column,
22056 see Figure\InsetSpace ~
22058 \begin_inset LatexCommand ref
22059 reference "fig:Standard-footnote-placement"
22064 If the footnotes should only appear at the bottom of the right column,
22065 as in Figure\InsetSpace ~
22067 \begin_inset LatexCommand ref
22068 reference "fig:Footnote-placement-in"
22072 , use the LaTeX-package
22077 \begin_inset LatexCommand index
22078 name "LaTeX-packages ! ftnright"
22082 with this command in the document preamble:
22085 \begin_layout Standard
22090 usepackage{ftnright}
22093 \begin_layout Standard
22094 \begin_inset Float figure
22100 \begin_layout Standard
22104 \begin_layout Standard
22114 \begin_inset Graphics
22115 filename clipart/without_fntright.pdf
22124 \begin_layout Standard
22134 \begin_layout Standard
22135 \begin_inset Caption
22137 \begin_layout Standard
22138 \begin_inset LatexCommand label
22139 name "fig:Standard-footnote-placement"
22143 Standard footnote placement in two-column documents.
22156 \begin_layout Standard
22157 \begin_inset Float figure
22163 \begin_layout Standard
22167 \begin_layout Standard
22177 \begin_inset Graphics
22178 filename clipart/with_fntright.pdf
22187 \begin_layout Standard
22197 \begin_layout Standard
22198 \begin_inset Caption
22200 \begin_layout Standard
22201 \begin_inset LatexCommand label
22202 name "fig:Footnote-placement-in"
22206 Footnote placement in two-column documents when the LaTeX-package
22223 \begin_layout Standard
22224 \begin_inset VSpace bigskip
22227 In some scientific literature it is usual to collect the footnotes and print
22228 them in a separate paragraph at the the end of a section, like in Figure\InsetSpace ~
22230 \begin_inset LatexCommand ref
22231 reference "fig:Endnotes----footnotes"
22236 They are then so called
22237 \begin_inset Quotes eld
22241 \begin_inset Quotes erd
22245 To use endnotes instead of footnotes in your document, load the LaTeX-package
22251 \begin_inset LatexCommand index
22252 name "LaTeX-packages ! endnotes"
22256 with the document preamble lines
22259 \begin_layout Standard
22264 usepackage{endnotes}
22275 \begin_layout Standard
22276 To insert the collected footnotes, insert the command
22279 \begin_layout Standard
22287 \begin_layout Standard
22288 in ERT at the the end of a section or chapter.
22291 \begin_layout Standard
22292 \begin_inset Float figure
22297 \begin_layout Standard
22302 \begin_layout Standard
22312 \begin_inset Graphics
22313 filename clipart/endnotes.pdf
22321 \begin_layout Standard
22331 \begin_layout Standard
22332 \begin_inset Caption
22334 \begin_layout Standard
22335 \begin_inset LatexCommand label
22336 name "fig:Endnotes----footnotes"
22340 Endnotes -- footnotes are printed in a separate paragraph at the end of
22341 sections or chapters.
22354 \begin_layout Standard
22355 \begin_inset VSpace defskip
22358 The paragraph heading for the endnotes isn't automatically translated into
22359 the document language, this must be done manually.
22360 The following preamble command translate the default English name
22361 \begin_inset Quotes eld
22365 \begin_inset Quotes erd
22368 to the German translation
22369 \begin_inset Quotes eld
22373 \begin_inset Quotes erd
22379 \begin_layout Standard
22386 notesname}{Anmerkungen}
22389 \begin_layout Standard
22390 \begin_inset VSpace defskip
22393 The numbering of endnotes can be changed like the footnote numbering as
22394 described in section\InsetSpace ~
22396 \begin_inset LatexCommand ref
22397 reference "sub:Footnote-Numbering"
22401 ; just replace the command
22414 To reset the endnote number use the command
22420 as described in section\InsetSpace ~
22422 \begin_inset LatexCommand ref
22423 reference "sub:Footnote-Numbering"
22427 and replace the command parameter
22438 \begin_layout Standard
22439 To create only a mark for an endnote, use the command
22443 endnotemark[number]
22445 similar to the command
22451 , described in section\InsetSpace ~
22453 \begin_inset LatexCommand ref
22454 reference "sec:Footnotes"
22461 \begin_layout Standard
22462 \begin_inset VSpace bigskip
22465 Footnotes can also be placed in the page margin and the footnote text alignment
22466 can be changed, see the LaTeX-package
22471 \begin_inset LatexCommand index
22472 name "LaTeX-packages ! footmisc"
22477 \begin_inset LatexCommand cite
22482 for more information about this.
22485 \begin_layout Standard
22486 For various further footnote formatting issues have a look at LaTeX-books,
22488 \begin_inset LatexCommand cite
22489 key "latexcompanion,latexguide,latexbook"
22496 \begin_layout Section
22498 \begin_inset LatexCommand index
22499 name "Notes ! Margin Notes"
22506 \begin_layout Standard
22507 Margin notes look and behave in LyX like footnotes.
22508 They are inserted via the menu
22510 Insert\SpecialChar \menuseparator
22511 Marginal\InsetSpace ~
22514 or the toolbar button
22515 \begin_inset Graphics
22516 filename ../images/marginalnote-insert.xpm
22532 \begin_inset Quotes eld
22536 \begin_inset Quotes erd
22539 appears where you can enter the text of the margin note.
22542 \begin_layout Standard
22543 At the side is an example margin note.
22547 \begin_inset Marginal
22550 \begin_layout Standard
22551 This is a margin note.
22559 \begin_layout Standard
22560 Margin notes appear at the right side in single-sided documents.
22561 In double-sided documents they appear in the outer margin -- left on even
22562 pages, right on odd pages.
22563 The text of margin notes is aligned opposite to the outer margin -- right-align
22564 ed when the note appears in the left margin.
22565 The first line of the margin note is placed at the position of the text
22566 line where it is inserted in the document.
22569 \begin_layout Standard
22570 \begin_inset VSpace bigskip
22573 To place the margin note in the inner margin, add the command
22576 \begin_layout Standard
22584 \begin_layout Standard
22585 in ERT before a margin note.
22586 The new placement is valid for all following margin notes.
22590 \begin_layout Standard
22600 \begin_inset Marginal
22603 \begin_layout Standard
22604 This is a margin note in the inner margin.
22616 \begin_inset Note Greyedout
22619 \begin_layout Standard
22624 There is often not enough space in the inner margin so that the notes are
22625 not correctly displayed in the output.
22633 \begin_layout Standard
22637 \begin_layout Standard
22646 To return to the default placement insert the command
22649 \begin_layout Standard
22657 \begin_layout Standard
22660 \begin_inset Note Greyedout
22663 \begin_layout Standard
22668 The command is ignored when it is within a paragraph where also the command
22683 \begin_layout Standard
22684 \begin_inset VSpace bigskip
22691 \begin_inset Marginal
22694 \begin_layout Standard
22695 AVeryLongMarginParWord that isn't hyphenated.
22703 Similar to the case described in section\InsetSpace ~
22705 \begin_inset LatexCommand ref
22706 reference "sub:Multiple-Lines-in"
22710 , long words cannot be hyphenated when they are the first word in a margin
22712 To avoid this, insert the command
22715 \begin_layout Standard
22723 \begin_layout Standard
22724 in ERT before the word
22728 \begin_inset Marginal
22731 \begin_layout Standard
22735 \begin_layout Standard
22744 AVeryLongMarginParWord that is hyphenated.
22752 \begin_layout Standard
22753 \begin_inset VSpace bigskip
22759 \begin_layout Standard
22760 \begin_inset Note Greyedout
22763 \begin_layout Standard
22768 Margin notes can normally not be used inside tables, floats, and footnotes.
22776 \begin_layout Standard
22777 \begin_inset VSpace bigskip
22783 \begin_layout Standard
22787 \begin_layout Standard
22797 \begin_inset Note Note
22800 \begin_layout Standard
22801 The following section will only be displayed when you have the LaTeX-package
22814 \begin_layout Standard
22815 This restriction can be evaded by using the LaTeX-package
22820 \begin_inset LatexCommand index
22821 name "LaTeX-packages ! marginnote"
22826 By adding these two lines to your document preamble, the command used by
22827 LyX for margin notes is redefined to use the command provided by the
22834 \begin_layout Standard
22839 usepackage{marginnote}
22850 \begin_layout Standard
22851 This is also used in this document because
22855 has another useful feature: You can set a vertical offset for the note.
22856 This is often needed when too many margin notes are too close together
22857 or for a better page layout.
22858 The offset is set in LyX as ERT directly behind the margin note in the
22862 \begin_layout Standard
22868 \begin_layout Standard
22869 where the offset is a length with one of the units listed in Table\InsetSpace ~
22871 \begin_inset LatexCommand ref
22872 reference "tab:Units"
22877 A negative value shifts the note up, a positive value shifts it down.
22881 For example the margin note beside this text line is shifted up 1.5\InsetSpace \thinspace{}
22884 \begin_inset Quotes eld
22894 \begin_inset Quotes erd
22898 \begin_inset Marginal
22901 \begin_layout Standard
22902 This margin note is shifted up 1.5\InsetSpace \thinspace{}
22903 cm from its original position.
22915 \begin_layout Standard
22925 \begin_layout Standard
22926 \begin_inset VSpace defskip
22933 you can also change the alignment of the text in the margin note.
22934 For example the commands
22937 \begin_layout Standard
22944 raggedleftmarginnote}{
22952 raggedrightmarginnote}{
22957 \begin_layout Standard
22958 set the alignment to centered.
22963 raggedleftmarginnote
22965 denotes margin notes that appear at the left side.
22972 \begin_layout Standard
22978 raggedleftmarginnote}{
22983 \begin_layout Standard
22989 raggedrightmarginnote}{
22997 \begin_inset Marginal
23000 \begin_layout Standard
23001 The text of this margin note is centered.
23012 \begin_layout Standard
23019 raggedleftmarginnote}{
23027 raggedrightmarginnote}{
23036 \begin_layout Standard
23042 raggedleftmarginnote}{
23047 \begin_layout Standard
23053 raggedrightmarginnote}{
23063 \begin_layout Standard
23064 \begin_inset VSpace defskip
23067 For the other features of
23071 we refer to its documentation
23072 \begin_inset LatexCommand cite
23080 \begin_layout Standard
23081 \begin_inset VSpace bigskip
23084 You can change the layout of margin notes by redefining its definition.
23085 To create for example a header for all margin notes with the underlined,
23086 sans-serif, and bold header text
23087 \begin_inset Quotes eld
23099 \begin_inset Quotes erd
23102 , add this to your document preamble:
23105 \begin_layout Standard
23128 \begin_layout Standard
23145 underbar{Attention!}}}%
23151 \begin_layout Standard
23169 \begin_layout Standard
23176 \begin_layout Standard
23187 \begin_layout Standard
23198 \begin_layout Standard
23206 underbar{Attention!}}}%
23209 \begin_layout Standard
23223 \begin_inset Marginal
23226 \begin_layout Standard
23227 This is a margin note with a defined heading.
23239 \begin_layout Standard
23253 \begin_layout Standard
23270 \begin_inset Note Note
23273 \begin_layout Standard
23274 The margin note format is changed only for this example.
23282 \begin_layout Standard
23286 \begin_layout Standard
23296 \begin_inset Note Note
23299 \begin_layout Standard
23300 The following will be displayed when the LaTeX-package
23312 \begin_layout Standard
23313 You need to install the LaTeX-package
23317 to see the following part of this section in the output.
23320 \begin_layout Standard
23324 \begin_layout Standard
23336 \begin_layout Chapter
23340 \begin_layout Section
23342 \begin_inset LatexCommand index
23343 name "Boxes ! Introduction"
23350 \begin_layout Standard
23351 Boxes are used to format a block of text.
23352 Boxes can be used to write documents with multiple languages, see section\InsetSpace ~
23354 \begin_inset LatexCommand ref
23355 reference "sec:Minipages"
23359 , to frame texts, see section\InsetSpace ~
23361 \begin_inset LatexCommand ref
23362 reference "sec:Framed-Boxes"
23366 , to prevent words to be hyphenated, see section\InsetSpace ~
23368 \begin_inset LatexCommand ref
23369 reference "sec:Prevent-Hyphenation"
23373 , to align text, see section\InsetSpace ~
23375 \begin_inset LatexCommand ref
23376 reference "sub:Vertical-Alignment"
23380 , or to set the background color of texts, see section\InsetSpace ~
23382 \begin_inset LatexCommand ref
23383 reference "sec:Colored-Boxes"
23390 \begin_layout Standard
23391 Boxes can be inserted with the menu
23393 Insert\SpecialChar \menuseparator
23397 A grey box with the label
23402 \begin_inset Graphics
23403 filename clipart/BoxInsetDefaultQt4.png
23408 , will be inserted.
23409 The box type can be specified by right-clicking on the box.
23410 The appearing box dialog offers the
23428 is the default for new boxes and is explained in section\InsetSpace ~
23430 \begin_inset LatexCommand ref
23431 reference "sec:Minipages"
23439 is described in section\InsetSpace ~
23441 \begin_inset LatexCommand ref
23442 reference "sec:Parboxes"
23449 \begin_layout Standard
23450 Boxes aren't numbered and can therefore not be referenced like floats or
23454 \begin_layout Standard
23455 \begin_inset Note Greyedout
23458 \begin_layout Standard
23463 Due to a bug in LyX you have to insert a protected space behind a box when
23464 you want to separate in a line the box from the following text with a space.
23472 \begin_layout Standard
23473 \begin_inset Note Greyedout
23476 \begin_layout Standard
23481 Boxes must not be the item in an
23497 \begin_layout Standard
23498 \begin_inset Note Greyedout
23501 \begin_layout Standard
23506 For an unknown reason you can only set the
23515 when you use a framed box.
23521 type and without frames are explained in section\InsetSpace ~
23523 \begin_inset LatexCommand ref
23524 reference "sec:Prevent-Hyphenation"
23536 \begin_layout Section
23538 \begin_inset LatexCommand label
23539 name "sec:Box-Dialog"
23544 \begin_inset LatexCommand index
23545 name "Boxes ! Box Dialog"
23550 \begin_inset LatexCommand index
23551 name "Boxes ! Alignment"
23558 \begin_layout Standard
23559 In the box dialog you can adjust the box geometry in the fields
23568 The available units for the geometry are explained in Table\InsetSpace ~
23570 \begin_inset LatexCommand ref
23571 reference "tab:Units"
23580 offers the following additional sizes:
23583 \begin_layout Description
23584 Depth This is the plain text
23585 \begin_inset Quotes eld
23589 \begin_inset Quotes erd
23593 It ignores the total depth when there are multiple text lines in the box:
23600 \begin_inset Box Boxed
23609 height_special "depth"
23612 \begin_layout Standard
23614 Box height set to 1\InsetSpace \thinspace{}
23627 \begin_layout Description
23628 Height This is the heigth of the text that is inside the box.
23629 A value of e.\InsetSpace \thinspace{}
23631 2 for this size will set the box heigth to 2 times the text
23633 \begin_inset Box Boxed
23642 height_special "height"
23645 \begin_layout Standard
23647 Box height set to 2\InsetSpace \thinspace{}
23656 \begin_layout Description
23658 Height This is the Height\InsetSpace \thinspace{}
23659 +\InsetSpace \thinspace{}
23661 \begin_inset Box Boxed
23670 height_special "totalheight"
23673 \begin_layout Standard
23675 Box height set to 1\InsetSpace \thinspace{}
23685 \begin_layout Description
23686 Width This set the width of the box as heigth:
23687 \begin_inset Box Boxed
23696 height_special "width"
23699 \begin_layout Standard
23701 Box height set to 1\InsetSpace \thinspace{}
23710 \begin_layout Standard
23711 \begin_inset VSpace bigskip
23714 When you have chosen an
23719 , the vertical box alignment can be:
23722 \begin_layout Description
23723 Top This is an example text line.
23725 \begin_inset Box Boxed
23734 height_special "totalheight"
23737 \begin_layout Standard
23739 This box is top-aligned.
23745 This is an example text line.
23748 \begin_layout Description
23749 Middle This is an example text line.
23751 \begin_inset Box Boxed
23760 height_special "totalheight"
23763 \begin_layout Standard
23765 This box is middle-aligned.
23771 This is an example text line.
23774 \begin_layout Description
23775 Bottom This is an example text line.
23777 \begin_inset Box Boxed
23786 height_special "totalheight"
23789 \begin_layout Standard
23791 This box is bottom-aligned.
23797 This is an example text line.
23800 \begin_layout Standard
23801 The horizontal box alignment can be set via LyX's paragraph dialog when
23802 you set the box into its own paragraph.
23805 \begin_layout Standard
23806 \begin_inset VSpace bigskip
23809 When you have chosen an
23814 , the box content can be vertical aligned to:
23817 \begin_layout Description
23818 top This is an example text line.
23820 \begin_inset Box Boxed
23829 height_special "totalheight"
23832 \begin_layout Standard
23834 This box text is top-aligned.
23840 This is an example text line.
23843 \begin_layout Description
23844 middle This is an example text line.
23846 \begin_inset Box Boxed
23855 height_special "totalheight"
23858 \begin_layout Standard
23860 This box text is middle-aligned.
23866 This is an example text line.
23869 \begin_layout Description
23870 bottom This is an example text line.
23872 \begin_inset Box Boxed
23881 height_special "totalheight"
23884 \begin_layout Standard
23886 This box text is bottom-aligned.
23892 This is an example text line.
23895 \begin_layout Description
23896 stretch This is an example text line.
23898 \begin_inset Box Boxed
23907 height_special "totalheight"
23910 \begin_layout Standard
23915 \begin_layout Standard
23920 \begin_layout Standard
23928 This is an example text line.
23931 \begin_layout Standard
23932 To stretch the box content, it must consist of more than one paragraph.
23933 In the example above every text line is in an own paragraph.
23936 \begin_layout Standard
23937 \begin_inset VSpace bigskip
23940 To align the box content horizontally you can use LyX's paragraph dialog
23941 when you have chosen an
23949 \begin_layout Standard
23951 \begin_inset Box Boxed
23960 height_special "totalheight"
23963 \begin_layout Standard
23968 \begin_layout Standard
23973 \begin_layout Standard
23983 \begin_layout Standard
23984 If you haven't set an
23989 , you can align the box content horizontally in the box dialog.
23992 \begin_layout Standard
23994 \begin_inset Box Boxed
24003 height_special "totalheight"
24006 \begin_layout Standard
24008 This box text is horizontally stretched.
24016 \begin_layout Section
24018 \begin_inset LatexCommand label
24019 name "sec:Framed-Boxes"
24024 \begin_inset LatexCommand index
24025 name "Boxes ! Frames"
24032 \begin_layout Standard
24033 The frame style of the box can be specified in the box-dialog in the drop-down
24039 The following frame types are possible:
24042 \begin_layout Description
24043 Rectangular\InsetSpace ~
24044 box This draws a rectangle frame around the box.
24045 The frame line thickness has the size of
24053 \begin_inset Box Boxed
24062 height_special "totalheight"
24065 \begin_layout Standard
24075 \begin_layout Description
24078 thin This draws an oval frame around the box.
24079 The frame line thickness has the size 0.4\InsetSpace \thinspace{}
24082 \begin_inset Box ovalbox
24091 height_special "totalheight"
24094 \begin_layout Standard
24104 \begin_layout Description
24107 thick This draws an oval frame around the box.
24108 The frame line thickness has the size 0.8\InsetSpace \thinspace{}
24111 \begin_inset Box Ovalbox
24120 height_special "totalheight"
24123 \begin_layout Standard
24133 \begin_layout Description
24134 Shadow\InsetSpace ~
24135 box This draws a rectangle frame with a shadow around the box.
24136 The frame line thickness has the size of
24142 , the shadow has a width of 4\InsetSpace \thinspace{}
24145 \begin_inset Box Shadowbox
24154 height_special "totalheight"
24157 \begin_layout Standard
24167 \begin_layout Description
24168 Double\InsetSpace ~
24169 box This draws a double-line rectangle frame around the box.
24170 The line thickness of the inner frame is 0.75\InsetSpace \thinspace{}
24177 , the thickness of the outer frame is 1.5\InsetSpace \thinspace{}
24185 The distance between the lines is 1.5\InsetSpace \thinspace{}
24192 \InsetSpace \thinspace{}
24193 +\InsetSpace \thinspace{}
24194 0.5\InsetSpace \thinspace{}
24197 \begin_inset Box Doublebox
24206 height_special "totalheight"
24209 \begin_layout Standard
24219 \begin_layout Standard
24220 \begin_inset VSpace bigskip
24223 LyX's box label will change to the used frame style when you set a frame.
24224 To be able to use the different frame styles, the LaTeX-package
24229 \begin_inset LatexCommand index
24230 name "LaTeX-packages ! fancybox"
24237 \begin_layout Standard
24238 \begin_inset VSpace bigskip
24241 The default value for the size
24247 is 0.4\InsetSpace \thinspace{}
24249 It can be changed with the following command in ERT to e.\InsetSpace \thinspace{}
24251 2\InsetSpace \thinspace{}
24255 \begin_layout Standard
24265 \begin_layout Standard
24269 \begin_layout Standard
24281 \begin_inset Box Boxed
24290 height_special "totalheight"
24293 \begin_layout Standard
24295 Rectangular box with
24301 \InsetSpace \thinspace{}
24302 =\InsetSpace \thinspace{}
24303 2\InsetSpace \thinspace{}
24313 \begin_layout Standard
24327 \begin_layout Standard
24328 \begin_inset VSpace bigskip
24331 The space between the frame and the box content is for all frame styles
24332 by default 3\InsetSpace \thinspace{}
24334 You can change it by setting the length
24341 For example the command
24344 \begin_layout Standard
24354 \begin_layout Standard
24355 sets the value to 10\InsetSpace \thinspace{}
24356 pt, like for the following box:
24359 \begin_layout Standard
24363 \begin_layout Standard
24375 \begin_inset Box Boxed
24384 height_special "totalheight"
24387 \begin_layout Standard
24389 Rectangular box with
24395 \InsetSpace \thinspace{}
24396 =\InsetSpace \thinspace{}
24397 10\InsetSpace \thinspace{}
24407 \begin_layout Standard
24421 \begin_layout Standard
24422 \begin_inset VSpace bigskip
24425 The diameter of the round corners of the oval boxes can be set with the
24436 \begin_layout Standard
24444 \begin_layout Standard
24445 sets the diameter to 1\InsetSpace \thinspace{}
24450 \begin_layout Standard
24458 \begin_layout Standard
24459 sets the diameter to
24461 num\InsetSpace \thinspace{}
24462 ×\InsetSpace \thinspace{}
24463 minimum(width and heigth of box)
24475 \begin_layout Standard
24479 \begin_layout Standard
24489 \begin_inset Box Ovalbox
24498 height_special "totalheight"
24501 \begin_layout Standard
24509 \InsetSpace \thinspace{}
24510 =\InsetSpace \thinspace{}
24511 1.5\InsetSpace \thinspace{}
24521 \begin_layout Standard
24533 \begin_layout Standard
24534 \begin_inset VSpace bigskip
24537 The size of the shadow can be adjusted by changing the length
24544 It it set to 2\InsetSpace \thinspace{}
24545 pt for the following box by this command:
24548 \begin_layout Standard
24558 \begin_layout Standard
24562 \begin_layout Standard
24574 \begin_inset Box Shadowbox
24583 height_special "totalheight"
24586 \begin_layout Standard
24594 \InsetSpace \thinspace{}
24595 =\InsetSpace \thinspace{}
24596 2\InsetSpace \thinspace{}
24606 \begin_layout Standard
24620 \begin_layout Standard
24621 \begin_inset VSpace bigskip
24624 Changed lengths and widths are valid for all boxes following the commands
24628 \begin_layout Section
24630 \begin_inset LatexCommand label
24631 name "sec:Minipages"
24636 \begin_inset LatexCommand index
24637 name "Boxes ! Minipages"
24644 \begin_layout Standard
24645 Minipages are treated by LaTeX as pages within pages and can therefore for
24646 example have their own footnotes.
24649 \begin_layout Standard
24650 Minipages are useful when you write documents with different languages.
24653 \begin_layout Standard
24654 Below are two example minipages side by side.
24655 Their width is set to 45\InsetSpace \thinspace{}
24656 col% and they are separated by a horizontal fill,
24657 that was inserted via the menu
24659 Insert\SpecialChar \menuseparator
24660 Special\InsetSpace ~
24661 Formatting\SpecialChar \menuseparator
24662 Horizontal\InsetSpace ~
24668 \begin_layout Standard
24669 \begin_inset Box Frameless
24678 height_special "totalheight"
24681 \begin_layout Standard
24684 Dies ist ein deutscher Text.
24685 Dies ist ein deutscher Text.
24686 Dies ist ein deutscher Text.
24687 Dies ist ein deutscher Text.
24688 Dies ist ein deutscher Text.
24689 Dies ist ein deutscher Text.
24690 Dies ist ein deutscher Text.
24691 Dies ist ein deutscher Text.
24692 Dies ist ein deutscher Text.
24693 Dies ist ein deutscher Text.
24694 Dies ist ein deutscher Text.
24695 Dies ist ein deutscher Text.
24696 Dies ist ein deutscher Text
24700 \begin_layout Standard
24703 Dies ist eine deutsche Fußnote.
24709 Dies ist ein deutscher Text.
24710 Dies ist ein deutscher Text.
24718 \begin_inset Box Frameless
24727 height_special "totalheight"
24730 \begin_layout Standard
24731 This is an English Text.
24732 This is an English Text.
24733 This is an English Text.
24734 This is an English Text.
24735 This is an English Text.
24736 This is an English Text.
24737 This is an English Text.
24738 This is an English Text.
24739 This is an English Text.
24740 This is an English Text.
24741 This is an English Text.
24742 This is an English Text.
24743 This is an English Text.
24744 This is an English Text.
24745 This is an English Text.
24746 This is an English Text.
24750 \begin_layout Standard
24751 This is an English footnote.
24756 This is an English Text.
24765 \begin_layout Standard
24766 \begin_inset VSpace bigskip
24769 Another application for minipages are footnotes within tables.
24770 Due to a LaTeX restriction footnotes within tables doesn't appear at the
24771 bottom of the current page.
24772 But when you put the table with the footnote to a minipage, the footnote
24773 will appear at its bottom, numbered with Latin letters.
24774 The footnote number is reset to 1 in every minipage but not outside the
24778 \begin_layout Standard
24779 The footnote of this table doesn't appear:
24780 \begin_inset Tabular
24781 <lyxtabular version="3" rows="3" columns="4">
24783 <column alignment="center" valignment="top" leftline="true" width="0pt">
24784 <column alignment="center" valignment="top" leftline="true" width="0pt">
24785 <column alignment="center" valignment="top" leftline="true" width="0pt">
24786 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
24787 <row topline="true">
24788 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24791 \begin_layout Standard
24797 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24800 \begin_layout Standard
24806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24809 \begin_layout Standard
24814 \begin_layout Standard
24815 This is a footnote within a table.
24825 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24828 \begin_layout Standard
24835 <row topline="true">
24836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24839 \begin_layout Standard
24845 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24848 \begin_layout Standard
24854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24857 \begin_layout Standard
24863 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24866 \begin_layout Standard
24873 <row topline="true" bottomline="true">
24874 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24877 \begin_layout Standard
24883 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24886 \begin_layout Standard
24892 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24895 \begin_layout Standard
24901 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24904 \begin_layout Standard
24918 \begin_layout Standard
24920 \begin_inset Box Frameless
24929 height_special "totalheight"
24932 \begin_layout Standard
24934 \begin_inset Tabular
24935 <lyxtabular version="3" rows="3" columns="4">
24937 <column alignment="center" valignment="top" leftline="true" width="0pt">
24938 <column alignment="center" valignment="top" leftline="true" width="0pt">
24939 <column alignment="center" valignment="top" leftline="true" width="0pt">
24940 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
24941 <row topline="true">
24942 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24945 \begin_layout Standard
24951 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24954 \begin_layout Standard
24960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24963 \begin_layout Standard
24968 \begin_layout Standard
24969 This is a footnote within a table.
24979 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24982 \begin_layout Standard
24989 <row topline="true">
24990 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24993 \begin_layout Standard
24999 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25002 \begin_layout Standard
25008 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25011 \begin_layout Standard
25017 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25020 \begin_layout Standard
25027 <row topline="true" bottomline="true">
25028 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25031 \begin_layout Standard
25037 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25040 \begin_layout Standard
25046 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25049 \begin_layout Standard
25055 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25058 \begin_layout Standard
25077 \begin_layout Standard
25078 \begin_inset VSpace bigskip
25081 The document-wide paragraph settings are ignored within minipages.
25082 That means that there will be no space between paragraphs in minipages
25083 although you set it to e.\InsetSpace \thinspace{}
25089 in the document settings.
25092 \begin_layout Standard
25093 Minipages can also be used to set a background color for text parts, see
25094 section\InsetSpace ~
25096 \begin_inset LatexCommand ref
25097 reference "sub:Color-for-Paragraphs"
25104 \begin_layout Standard
25105 \begin_inset Note Greyedout
25108 \begin_layout Standard
25113 You cannot have floats or margin notes inside minipages but minipages can
25114 be used inside tables, floats, and other boxes.
25122 \begin_layout Section
25124 \begin_inset LatexCommand label
25125 name "sec:Parboxes"
25130 \begin_inset LatexCommand index
25131 name "Boxes ! Parboxes"
25138 \begin_layout Standard
25139 Parboxes are very similar to minipages with the difference that they cannot
25141 The main difference to minipages is that minipages are in contrary to parboxes
25142 no real boxes but LaTeX-environments.
25145 \begin_layout Standard
25147 \begin_inset Box Frameless
25156 height_special "totalheight"
25159 \begin_layout Standard
25160 This a text within a parbox.
25161 This a text within a parbox.
25164 \begin_layout Standard
25165 This footnote won't appear:
25169 \begin_layout Standard
25170 This footnote is inside a parbox and will therefore not appear.
25183 \begin_layout Section
25184 Boxes for Words and Characters
25185 \begin_inset LatexCommand index
25186 name "Boxes ! for Characters"
25193 \begin_layout Subsection
25194 Prevent Hyphenation
25195 \begin_inset LatexCommand label
25196 name "sec:Prevent-Hyphenation"
25201 \begin_inset LatexCommand index
25202 name "Boxes ! to Prevent Hyphenation"
25209 \begin_layout Standard
25210 You can use a special kind of boxes to prevent words or text to be hyphenated.
25213 e is an example text:
25216 \begin_layout Standard
25217 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25223 \begin_layout Standard
25224 To prevent the hyphenation of the word
25225 \begin_inset Quotes eld
25229 \begin_inset Quotes erd
25235 \begin_layout Standard
25243 \begin_layout Standard
25244 in ERT before the word.
25245 Behind the word insert a closing brace
25246 \begin_inset Quotes eld
25254 \begin_inset Quotes erd
25261 \begin_layout Standard
25273 \begin_layout Standard
25274 This is the result:
25277 \begin_layout Standard
25278 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25284 \begin_layout Standard
25297 \begin_layout Standard
25307 \begin_layout Standard
25308 Of course the word now protrudes over the side margin.
25309 To avoid this, add via the menu
25311 Insert\SpecialChar \menuseparator
25312 Special\InsetSpace ~
25313 Formatting\SpecialChar \menuseparator
25321 ) a line break before the word:
25324 \begin_layout Standard
25325 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25333 \begin_layout Standard
25346 \begin_layout Standard
25356 \begin_layout Subsection
25358 \begin_inset LatexCommand label
25359 name "sub:Vertical-Alignment"
25364 \begin_inset LatexCommand index
25365 name "Boxes ! for Vertical Alignment"
25370 \begin_inset LatexCommand index
25371 name "Boxes ! Raiseboxes"
25378 \begin_layout Standard
25379 With the help of the command
25385 you can align words, characters or other boxes vertically to the surrounding
25393 is used with the following scheme:
25396 \begin_layout Standard
25401 raisebox{lift}[height][depth]{box content}
25404 \begin_layout Standard
25405 The lift can be a positive value to raise the box or a negative value to
25409 \begin_layout Standard
25410 To align for example the word
25411 \begin_inset Quotes eld
25415 \begin_inset Quotes erd
25418 so that the bottom of the
25419 \begin_inset Quotes eld
25423 \begin_inset Quotes erd
25427 \begin_inset Quotes eld
25431 \begin_inset Quotes erd
25434 is at the baseline, insert the command
25437 \begin_layout Standard
25447 \begin_layout Standard
25448 in ERT before the word.
25449 Behind the word insert a closing brace
25450 \begin_inset Quotes eld
25458 \begin_inset Quotes erd
25463 This is the result:
25466 \begin_layout Standard
25467 This is a text line with the word
25471 \begin_layout Standard
25483 \begin_inset Quotes eld
25487 \begin_inset Quotes erd
25494 \begin_layout Standard
25504 \begin_layout Standard
25505 \begin_inset VSpace bigskip
25508 When you raise or lower characters in a line, the line distance will be
25512 \begin_layout Standard
25513 This is a text line with the word
25517 \begin_layout Standard
25529 \begin_inset Quotes eld
25533 \begin_inset Quotes erd
25540 \begin_layout Standard
25549 This is a text line with the word
25553 \begin_layout Standard
25563 \begin_inset Quotes eld
25567 \begin_inset Quotes erd
25574 \begin_layout Standard
25584 \begin_layout Standard
25585 If you want to prevent this for a certain reason, set the box height to
25590 \begin_layout Standard
25600 \begin_layout Standard
25601 This is a text line with the word
25605 \begin_layout Standard
25617 \begin_inset Quotes eld
25621 \begin_inset Quotes erd
25628 \begin_layout Standard
25637 This is a text line with the word
25641 \begin_layout Standard
25645 raisebox{0.5cm}[0pt]{
25651 \begin_inset Quotes eld
25655 \begin_inset Quotes erd
25662 \begin_layout Standard
25672 \begin_layout Section
25674 \begin_inset LatexCommand label
25675 name "sec:Colored-Boxes"
25680 \begin_inset LatexCommand index
25681 name "Boxes ! Color"
25688 \begin_layout Subsection
25690 \begin_inset LatexCommand index
25691 name "Color ! for Text"
25698 \begin_layout Standard
25699 To color the background of text the text must be put into a so called colorbox.
25700 This requires that the LaTeX-package
25705 \begin_inset LatexCommand index
25706 name "LaTeX-packages ! color"
25710 is loaded in the document preamble with the command
25713 \begin_layout Standard
25718 @ifundef\SpecialChar \textcompwordmark{}
25725 \begin_layout Standard
25736 usepackage{color}}{}
25739 \begin_layout Standard
25744 will be loaded automatically by LyX when you color text
25748 \begin_layout Standard
25749 To avoid that it is loaded twice the command
25753 @ifundef\SpecialChar \textcompwordmark{}
25764 \begin_layout Standard
25765 \begin_inset VSpace medskip
25768 Colorboxes are created with the command
25775 This will be used with the following scheme:
25778 \begin_layout Standard
25783 colorbox{color}{box content}
25786 \begin_layout Standard
25787 The box content can also be a box and colorboxes can also be within other
25791 \begin_layout Standard
25792 The following colors are predefined:
25831 You can also define your own color as described in section\InsetSpace ~
25833 \begin_inset LatexCommand ref
25834 reference "sec:Colored-Tables"
25841 \begin_layout Standard
25842 To have e.\InsetSpace \thinspace{}
25844 a red background for a word, insert the command
25847 \begin_layout Standard
25855 \begin_layout Standard
25856 before the word in ERT.
25857 Behind the word insert a closing brace
25858 \begin_inset Quotes eld
25866 \begin_inset Quotes erd
25871 This is the result:
25874 \begin_layout Standard
25875 This is a line where the word
25879 \begin_layout Standard
25889 \begin_inset Quotes eld
25893 \begin_inset Quotes erd
25900 \begin_layout Standard
25907 has a red background.
25910 \begin_layout Standard
25911 \begin_inset VSpace bigskip
25914 If you would have the box frame in a different color, you can use the command
25921 with the following scheme:
25924 \begin_layout Standard
25929 fcolorbox{frame color}{box color}{box content}
25932 \begin_layout Standard
25946 The frame thickness and the space between the frame and the box content
25947 can be adjusted with the lengths
25959 , respectively, as described in section\InsetSpace ~
25961 \begin_inset LatexCommand ref
25962 reference "sec:Framed-Boxes"
25969 \begin_layout Standard
25970 For the following example the command
25973 \begin_layout Standard
25978 fcolorbox{cyan}{magenta}{
25981 \begin_layout Standard
25985 \begin_layout Standard
25986 Here is an example where the frame line thickness was set to 1\InsetSpace \thinspace{}
25993 \begin_layout Standard
26008 \begin_layout Standard
26012 fcolorbox{cyan}{magenta}{
26017 This is text within a colored, framed box.
26021 \begin_layout Standard
26031 \begin_layout Standard
26032 \begin_inset VSpace bigskip
26035 Of course you can also have colored text inside a colorbox:
26041 \begin_layout Standard
26045 fcolorbox{cyan}{magenta}{
26052 This is colored text within a colored, framed box.
26058 \begin_layout Standard
26069 \begin_layout Standard
26083 \begin_layout Standard
26086 \begin_inset VSpace medskip
26092 \begin_layout Standard
26093 \begin_inset Note Greyedout
26096 \begin_layout Standard
26101 Text in colorboxes cannot have line breaks.
26102 To color multiple text lines or paragraphs, use a box inside a colorbox
26103 as described in the following.
26111 \begin_layout Subsection
26112 Color for Paragraphs
26113 \begin_inset LatexCommand label
26114 name "sub:Color-for-Paragraphs"
26119 \begin_inset LatexCommand index
26120 name "Color ! for Paragraphs"
26127 \begin_layout Standard
26128 To set the background color for more than one text line, put the text into
26130 Before the minipage insert the
26139 \begin_layout Standard
26147 \begin_layout Standard
26149 Behind the minipage insert a closing brace
26150 \begin_inset Quotes eld
26158 \begin_inset Quotes erd
26164 \begin_layout Standard
26168 \begin_layout Standard
26172 colorbox{lightgrey}{
26178 \begin_inset Box Frameless
26187 height_special "totalheight"
26190 \begin_layout Standard
26191 This is text with background color.
26192 This is text with background color.
26195 \begin_layout Standard
26196 \begin_inset VSpace defskip
26199 The text can have footnotes
26203 \begin_layout Standard
26204 Another example footnote
26209 and can include tables and figures.
26212 \begin_layout Standard
26214 \begin_inset Tabular
26215 <lyxtabular version="3" rows="3" columns="3">
26217 <column alignment="center" valignment="top" leftline="true" width="0">
26218 <column alignment="center" valignment="top" leftline="true" width="0">
26219 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
26220 <row topline="true">
26221 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26224 \begin_layout Standard
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" usebox="none">
26262 \begin_layout Standard
26264 \begin_inset Quotes erd
26272 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26275 \begin_layout Standard
26282 <row topline="true" bottomline="true">
26283 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26286 \begin_layout Standard
26292 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26295 \begin_layout Standard
26301 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26304 \begin_layout Standard
26324 \begin_layout Standard
26334 \begin_layout Section
26335 URLs (Uniform Resource Locators)
26336 \begin_inset LatexCommand index
26344 \begin_layout Standard
26345 Links to web pages or email addresses can be inserted via the menu
26347 Insert\SpecialChar \menuseparator
26351 The appearing URL dialog has two fields; the
26359 field for the URL description, which will be typeset as plain text immediately
26363 \begin_layout Standard
26364 Here is an example URL:
26365 \begin_inset LatexCommand url
26366 name "LyX's homepage"
26367 target "http://www.lyx.org"
26374 \begin_layout Standard
26377 Generate\InsetSpace ~
26380 in the URL dialog has only an affect when you export your document to the
26382 \begin_inset Quotes eld
26390 \begin_inset Quotes erd
26396 \begin_layout Standard
26397 You cannot change the style of the link text.
26402 field will have the default text style of the document while the text of
26407 field will have the style
26408 \begin_inset Quotes eld
26416 \begin_inset Quotes erd
26422 \begin_layout Standard
26423 When you use the LaTeX-package
26428 \begin_inset LatexCommand index
26429 name "LaTeX-packages ! hyperref"
26433 to link cross-references in the output, URLs will automatically become
26434 clickable hyperlinks in DVI and PDF-output.
26437 \begin_layout Standard
26438 \begin_inset Note Greyedout
26441 \begin_layout Standard
26446 When you use the following characters: "%", "#", "^", you have to write
26447 them with a preceding backslash, e.\InsetSpace \thinspace{}
26450 \begin_inset Quotes eld
26456 \begin_inset Quotes erd
26460 URLs must not end with a backslash.
26468 \begin_layout Standard
26469 \begin_inset VSpace bigskip
26472 To create real hyperlinks without the force to write the link location to
26473 the text, you can use the command
26476 \begin_layout Standard
26481 href{link location}{link text}
26484 \begin_layout Standard
26486 To get for example a link to LyX's web page, write the command
26489 \begin_layout Standard
26494 href{http://www.lyx.org}{
26497 \begin_layout Standard
26499 Insert after the command the link text
26500 \begin_inset Quotes eld
26504 \begin_inset Quotes erd
26507 as normal text followed by a closing brace
26508 \begin_inset Quotes eld
26516 \begin_inset Quotes erd
26520 This is the result:
26524 \begin_layout Standard
26528 href{http://www.lyx.org}{
26537 \begin_layout Standard
26547 \begin_layout Standard
26548 To link to email addresses, add the prefix
26549 \begin_inset Quotes eld
26557 \begin_inset Quotes erd
26560 to the link location:
26566 \begin_layout Standard
26570 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's documentation}{
26575 lyx-docs mailing list
26579 \begin_layout Standard
26589 \begin_layout Standard
26596 instead of LyX's URL box has the advantage that you can specify the text
26597 style of the link text like for all other text parts.
26598 You can therefore set hyphenation points and forced linebreaks to have
26599 long link text broken at the page margin.
26600 You are furthermore able to change the text style for all URLs in your
26601 document with an option in
26605 's load command and the restrictions mentioned above doesn't apply for
26614 \begin_layout Chapter
26616 \begin_inset LatexCommand index
26617 name "External Stuff"
26624 \begin_layout Standard
26627 Insert\SpecialChar \menuseparator
26630 you can insert external material to your document.
26634 \begin_layout Description
26636 Document Another LyX document; its content is directly inserted to your
26640 \begin_layout Description
26642 Text A text document; every of its text lines is inserted to your document
26646 \begin_layout Description
26650 Lines A text document; its text lines are inserted as they
26652 Empty text lines creates a new paragraph in your document.
26655 \begin_layout Description
26656 External\InsetSpace ~
26657 Material Files in various formats.
26660 \begin_layout Description
26662 Document LyX or LaTeX-documents.
26665 \begin_layout Section
26667 \begin_inset LatexCommand index
26668 name "External Stuff ! External Material"
26675 \begin_layout Standard
26676 The external material feature allows you to insert files to your document
26677 without converting them previously to a format that can be read by the
26678 document output format because LyX takes care of needed conversions.
26679 This is similar to images that can be inserted in various image formats
26683 \begin_layout Standard
26684 External material can be inserted via the
26688 dialog that is accessible with the menu
26690 Insert\SpecialChar \menuseparator
26691 File\SpecialChar \menuseparator
26692 External\InsetSpace ~
26696 Currently the following file types (
26703 \begin_layout Description
26704 ChessDiagram This template supports chess position diagrams made with the
26709 \begin_layout Standard
26713 href{http://en.wikipedia.org/wiki/XBoard}{
26726 \begin_layout Standard
26736 \begin_layout Description
26737 Date This inserts the date in the form
26742 This is a date inserted as external material:
26743 \begin_inset External
26751 The date is not shown within LyX, only in the output.
26752 There are two other methods of inserting a date, via menu
26754 Insert\SpecialChar \menuseparator
26757 and with the LaTeX command
26764 The different methods are compared in Table\InsetSpace ~
26766 \begin_inset LatexCommand ref
26767 reference "tab:Comparison-of-the"
26774 \begin_layout Description
26775 LilyPond This template is used for music notation typeset with the program
26779 \begin_layout Standard
26792 \begin_layout Standard
26796 href{http://en.wikipedia.org/wiki/LilyPond}{
26809 \begin_layout Standard
26817 \begin_inset Note Note
26820 \begin_layout Standard
26827 breaks the line while the remaining text in the line is stretched to the
26836 \begin_layout Description
26837 RasterImage This can be used for bitmap images.
26838 Nearly all popular image formats are supported.
26839 The image can be treated in the
26843 dialog like the images that are usually included via the
26847 dialog as described in section\InsetSpace ~
26849 \begin_inset LatexCommand ref
26850 reference "sec:Graphics-Dialog"
26855 The difference is that only raster images are allowed, that means that
26856 PDF and EPS-images are not supported.
26859 \begin_layout Description
26860 Xfig This template supports images created with the program
26864 \begin_layout Standard
26868 href{http://en.wikipedia.org/wiki/Xfig}{
26881 \begin_layout Standard
26891 \begin_layout Standard
26892 \begin_inset Float table
26898 \begin_layout Standard
26899 \begin_inset Caption
26901 \begin_layout Standard
26902 \begin_inset LatexCommand label
26903 name "tab:Comparison-of-the"
26907 Comparison of the date input methods.
26915 \begin_layout Standard
26917 \begin_inset Tabular
26918 <lyxtabular version="3" rows="4" columns="4">
26920 <column alignment="center" valignment="top" leftline="true" width="0">
26921 <column alignment="center" valignment="top" leftline="true" width="0">
26922 <column alignment="center" valignment="top" leftline="true" width="0">
26923 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
26924 <row topline="true">
26925 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26928 \begin_layout Standard
26934 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26937 \begin_layout Standard
26940 External Material\SpecialChar \menuseparator
26946 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26949 \begin_layout Standard
26952 Insert\SpecialChar \menuseparator
26958 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26961 \begin_layout Standard
26972 <row topline="true">
26973 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26976 \begin_layout Standard
26982 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26985 \begin_layout Standard
26991 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26994 \begin_layout Standard
27000 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27003 \begin_layout Standard
27010 <row topline="true">
27011 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27014 \begin_layout Standard
27020 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27023 \begin_layout Standard
27029 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27032 \begin_layout Standard
27038 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27041 \begin_layout Standard
27048 <row topline="true" bottomline="true">
27049 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27052 \begin_layout Standard
27058 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27061 \begin_layout Standard
27067 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27070 \begin_layout Standard
27076 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27079 \begin_layout Standard
27098 \begin_layout Standard
27099 When you use the option
27111 dialog, only the path to the inserted file is shown in the output.
27114 material is displayed in LyX either as box like this:
27115 \begin_inset Graphics
27116 filename clipart/ExternalMaterialQt4.png
27121 or as image, depending on the setting in the
27133 \begin_layout Standard
27140 manual explains how you can define your own templates.
27143 \begin_layout Section
27145 \begin_inset LatexCommand index
27146 name "External Stuff ! Child Documents"
27151 \begin_inset LatexCommand index
27152 name "Files ! Child Documents"
27157 \begin_inset LatexCommand index
27158 name "Files ! Include"
27165 \begin_layout Standard
27166 Child documents are used when you have a long document consisting of several
27167 larger parts or sections.
27168 For maintenance it is often useful and sometimes even required to split
27169 the document in several files that can be revised separately.
27170 The different documents are then the so called child documents and a master
27171 document connects them to print the full document or parts of it.
27174 \begin_layout Standard
27175 Included documents are displayed in LyX as a box like this:
27176 \begin_inset Graphics
27177 filename clipart/ChildDocumentQt4.png
27182 To include child documents to a master document use the menu
27184 Insert\SpecialChar \menuseparator
27185 File\SpecialChar \menuseparator
27190 A dialog pops up where you can choose between three include methods:
27193 \begin_layout Description
27194 Include You can include LyX and LaTeX-documents.
27203 dialog, the included documents will be opened in LyX in a new file tab
27204 so that you can modify it.
27209 \begin_layout Standard
27210 Here is a child document inserted using
27215 \begin_inset Include \include{DummyDocument1.lyx}
27223 \begin_layout Standard
27224 The section numbering includes the sections of the included files in the
27225 order they are inserted in the master document.
27226 The included example document has for example a subsection that is numbered
27227 as subsection of this section.
27228 Labels of included documents can be referenced: Subsection\InsetSpace ~
27230 \begin_inset LatexCommand ref
27231 reference "sub:External-Subsection-1"
27238 \begin_layout Standard
27239 The preamble of the child document is ignored, only the preamble of the
27240 master document is used.
27241 Included documents are inserted starting on a new page and end with a pagebreak.
27244 \begin_layout Standard
27245 With the LaTeX-command
27251 you can specify which included child documents are processed when the output
27253 This is useful when you are perhaps only working on a certain chapter of
27254 your large document as this saves compiling time.
27261 is inserted to the master document preamble.
27262 It takes a comma-separated list of the filenames as argument, e.g.
27265 \begin_layout Standard
27270 includeonly{chapter1,chapter5}
27273 \begin_layout Standard
27274 will only process the included files named
27275 \begin_inset Quotes eld
27279 \begin_inset Quotes erd
27283 \begin_inset Quotes eld
27287 \begin_inset Quotes erd
27291 \begin_inset Quotes eld
27295 \begin_inset Quotes erd
27301 \begin_layout Standard
27302 \begin_inset Note Greyedout
27305 \begin_layout Standard
27310 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
27311 w the document in case that the child document uses another document class
27312 than the master document as this will lead to unexpected outputs.
27320 \begin_layout Description
27321 Input This method is very similar to the Include method.
27322 The differences are:
27326 \begin_layout Itemize
27327 Input files don't start with a new page and don't end with a pagebreak.
27330 \begin_layout Itemize
27331 Input files can be previewed in LyX when
27333 Instant\InsetSpace ~
27336 is enabled in LyX's preferences under
27340 feel\SpecialChar \menuseparator
27346 \begin_layout Itemize
27357 \begin_layout Standard
27358 Here is a child document inserted using
27363 \begin_inset Include \input{DummyDocument2.lyx}
27371 \begin_layout Description
27372 Verbatim With this method every text file can be included.
27373 The file is shown in the output with its source code, no command used in
27374 the text is invoked.
27375 You can use the option
27377 Mark spaces in output
27379 that displays the character
27380 \begin_inset Quotes eld
27387 \begin_layout Standard
27397 \begin_inset Quotes erd
27400 for every space character in the source code.
27401 The difference to the method via the menu
27403 Insert\SpecialChar \menuseparator
27404 File\SpecialChar \menuseparator
27408 is that the document content is not shown in LyX.
27411 \begin_layout Standard
27412 Here is a child document inserted as Verbatim:
27413 \begin_inset Include \verbatiminput{DummyTextDocument.txt}
27419 \begin_inset VSpace bigskip
27422 Here is a child document inserted as Verbatim using the
27424 Mark spaces in output
27427 \begin_inset Include \verbatiminput*{DummyTextDocument.txt}
27435 \begin_layout Standard
27436 \begin_inset VSpace bigskip
27442 \begin_layout Standard
27443 \begin_inset Note Greyedout
27446 \begin_layout Standard
27451 As you can see in the examples above, the text of the documents included
27452 as verbatim is not broken at the end of the document lines.
27460 \begin_layout Standard
27461 \begin_inset Note Greyedout
27464 \begin_layout Standard
27469 Including the same document twice in a document using different methods
27470 could cause LaTeX-problems.
27478 \begin_layout Standard
27484 \begin_layout Chapter
27490 \begin_layout Standard
27503 \begin_layout Standard
27511 \begin_inset LatexCommand index
27517 \begin_inset LatexCommand label
27518 name "cha:Units-available-in"
27523 \begin_inset Note Note
27526 \begin_layout Standard
27529 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
27530 are displayed wrongly in PDF-bookmarks.
27531 For more information about this, have a look at
27532 \begin_inset LatexCommand cite
27545 \begin_layout Standard
27546 To understand the units described in this documentation, Table\InsetSpace ~
27548 \begin_inset LatexCommand ref
27549 reference "tab:Units"
27553 explains all units available in LyX.
27556 \begin_layout Standard
27557 \begin_inset Float table
27563 \begin_layout Standard
27564 \begin_inset Caption
27566 \begin_layout Standard
27567 \begin_inset LatexCommand label
27580 \begin_layout Standard
27581 \begin_inset VSpace medskip
27587 \begin_layout Standard
27589 \begin_inset Tabular
27590 <lyxtabular version="3" rows="20" columns="2">
27592 <column alignment="center" valignment="top" leftline="true" width="0">
27593 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27594 <row topline="true" bottomline="true">
27595 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27598 \begin_layout Standard
27604 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27607 \begin_layout Standard
27614 <row topline="true">
27615 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27618 \begin_layout Standard
27624 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27627 \begin_layout Standard
27634 <row topline="true">
27635 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27638 \begin_layout Standard
27644 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27647 \begin_layout Standard
27654 <row topline="true">
27655 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27658 \begin_layout Standard
27664 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27667 \begin_layout Standard
27674 <row topline="true">
27675 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27678 \begin_layout Standard
27684 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27687 \begin_layout Standard
27688 point (72.27\InsetSpace \thinspace{}
27689 pt = 1\InsetSpace \thinspace{}
27696 <row topline="true">
27697 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27700 \begin_layout Standard
27706 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27709 \begin_layout Standard
27710 pica (1\InsetSpace \thinspace{}
27711 pc = 12\InsetSpace \thinspace{}
27718 <row topline="true">
27719 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27722 \begin_layout Standard
27728 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27731 \begin_layout Standard
27732 scaled point (65536\InsetSpace \thinspace{}
27733 sp = 1\InsetSpace \thinspace{}
27740 <row topline="true">
27741 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27744 \begin_layout Standard
27750 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27753 \begin_layout Standard
27754 big point (72\InsetSpace \thinspace{}
27755 bp = 1\InsetSpace \thinspace{}
27762 <row topline="true">
27763 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27766 \begin_layout Standard
27772 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27775 \begin_layout Standard
27776 didot (72\InsetSpace \thinspace{}
27778 \begin_inset Formula $\approx$
27781 37.6\InsetSpace \thinspace{}
27788 <row topline="true">
27789 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27792 \begin_layout Standard
27798 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27801 \begin_layout Standard
27802 cicero (1\InsetSpace \thinspace{}
27803 cc = 12\InsetSpace \thinspace{}
27810 <row topline="true">
27811 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27814 \begin_layout Standard
27820 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27823 \begin_layout Standard
27824 % of original image width
27830 <row topline="true">
27831 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27834 \begin_layout Standard
27840 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27843 \begin_layout Standard
27850 <row topline="true">
27851 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27854 \begin_layout Standard
27860 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27863 \begin_layout Standard
27870 <row topline="true">
27871 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27874 \begin_layout Standard
27880 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27883 \begin_layout Standard
27890 <row topline="true">
27891 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27894 \begin_layout Standard
27900 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27903 \begin_layout Standard
27910 <row topline="true">
27911 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27914 \begin_layout Standard
27920 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27923 \begin_layout Standard
27930 <row topline="true">
27931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27934 \begin_layout Standard
27940 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27943 \begin_layout Standard
27950 <row topline="true">
27951 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27954 \begin_layout Standard
27960 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27963 \begin_layout Standard
27974 <row topline="true">
27975 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27978 \begin_layout Standard
27984 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27987 \begin_layout Standard
27998 <row topline="true" bottomline="true">
27999 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28002 \begin_layout Standard
28008 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28011 \begin_layout Standard
28012 math unit (1\InsetSpace \thinspace{}
28013 mu = 1/18\InsetSpace \thinspace{}
28032 \begin_layout Chapter
28033 Output File Formats with Graphics
28034 \begin_inset LatexCommand label
28035 name "cha:Output-File-Formats"
28042 \begin_layout Section
28044 \begin_inset LatexCommand index
28045 name "File Formats ! DVI"
28050 \begin_inset LatexCommand index
28051 name "DVI|see{File Formats}"
28058 \begin_layout Standard
28059 This file type has the extension
28060 \begin_inset Quotes eld
28068 \begin_inset Quotes erd
28073 \begin_inset Quotes eld
28077 \begin_inset Quotes erd
28080 (DVI), because it is completely portable; you can move them from one machine
28081 to another without needing to do any sort of conversion.
28082 At the time when this file-format was developed, this was no matter of
28084 DVIs are used for quick previews and as pre-stage for other output formats,
28088 \begin_layout Standard
28089 \begin_inset Note Greyedout
28092 \begin_layout Standard
28097 DVI-files doesn't contain images, they will only be a linked.
28102 So don't forget this, if you move your
28106 file to another computer.
28107 This property can also slow down your computer when you view the DVI.
28108 Because the DVI-viewer has to convert the image in the background to make
28109 it visible when you scroll in the DVI.
28110 So we recommend to use PDF for files with many images.
28113 \begin_layout Standard
28114 You can export your document to DVI by using the menu
28116 File\SpecialChar \menuseparator
28117 Export\SpecialChar \menuseparator
28121 You can view your document as DVI via the
28125 menu or by using the toolbar button
28126 \begin_inset Graphics
28127 filename ../images/buffer-view_dvi.xpm
28135 \begin_layout Section
28137 \begin_inset LatexCommand label
28138 name "sec:PostScript"
28143 \begin_inset LatexCommand index
28144 name "File Formats ! PostScript\\protect\\pagebreak"
28149 \begin_inset LatexCommand index
28150 name "PostScript|see{File Formats}"
28157 \begin_layout Standard
28158 This file type has the extension
28159 \begin_inset Quotes eld
28167 \begin_inset Quotes erd
28171 PostScript was developed by the company
28175 as printer language.
28176 The file contains therefore commands that the printer uses to print the
28178 PostScript can be seen as
28179 \begin_inset Quotes eld
28182 programming language
28183 \begin_inset Quotes erd
28186 ; you can calculate with it and draw diagrams and images
28190 \begin_layout Standard
28191 If you are interested to learn more about this, have a look at the LaTeX-package
28197 \begin_inset LatexCommand cite
28208 Due to this ability, the files are often bigger than PDFs.
28211 \begin_layout Standard
28212 PostScript can only contain images in the format
28213 \begin_inset Quotes eld
28216 Encapsulated PostScript
28217 \begin_inset Quotes erd
28220 (EPS, file extension
28221 \begin_inset Quotes eld
28229 \begin_inset Quotes erd
28233 As LyX allows you to use any known image format in your document, it has
28234 to convert images in the background to EPS.
28235 If you have e.g 50 images in your document, LyX has to do 50 conversions
28236 whenever you view or export your document.
28237 This will slow down your work flow with LyX drastically.
28238 So if you plan to use PostScript, you can insert your images directly as
28239 EPS to avoid this problem.
28242 \begin_layout Standard
28243 You can export your document to PostScript using the menu
28245 File\SpecialChar \menuseparator
28246 Export\SpecialChar \menuseparator
28250 You can view your document as PostScript via the
28254 menu or by using the toolbar button
28255 \begin_inset Graphics
28256 filename ../images/buffer-view_ps.xpm
28264 \begin_layout Section
28266 \begin_inset LatexCommand label
28272 \begin_inset LatexCommand index
28273 name "File Formats ! PDF"
28278 \begin_inset LatexCommand index
28286 \begin_layout Standard
28287 This file type has the extension
28288 \begin_inset Quotes eld
28296 \begin_inset Quotes erd
28301 \begin_inset Quotes eld
28304 Portable Document Format
28305 \begin_inset Quotes erd
28308 (PDF) is developed by
28312 as derivative from PostScript.
28313 It is more compressed and it uses much less commands than PostScript.
28315 \begin_inset Quotes eld
28319 \begin_inset Quotes erd
28322 implies, it can be processed at any computer system and the printed output
28323 looks exactly the same.
28326 \begin_layout Standard
28327 PDF can contain images in its own PDF format, in the format
28328 \begin_inset Quotes eld
28331 Joint Photographic Experts Group
28332 \begin_inset Quotes erd
28335 (JPG, file extension
28336 \begin_inset Quotes eld
28344 \begin_inset Quotes erd
28348 \begin_inset Quotes eld
28356 \begin_inset Quotes erd
28359 ), and in the format
28360 \begin_inset Quotes eld
28363 Portable Network Graphics
28364 \begin_inset Quotes erd
28367 (PNG, file extension
28368 \begin_inset Quotes eld
28376 \begin_inset Quotes erd
28380 You can although use any other image format, because LyX converts them
28381 in the background to one of these formats.
28382 But as described in the section about PostScript, the image conversion
28383 will slow down your work flow.
28384 So it is recommended to use images in one of the three mentioned formats.
28387 \begin_layout Standard
28388 You can export your document to PDF via the menu
28390 File\SpecialChar \menuseparator
28393 in three different ways:
28396 \begin_layout Description
28397 PDF This uses the program
28401 that creates a PDF from a PostScript-version of your file.
28402 The PostScript-version is produced by the program
28406 which uses a DVI-version as intermediate step.
28407 So this export variant consist of three conversions.
28410 \begin_layout Description
28412 (dvipdfm) This uses the program
28416 that converts your file in the background to DVI and in a second step to
28420 \begin_layout Description
28422 (pdflatex) This uses the program
28426 that converts your file directly to PDF.
28429 \begin_layout Standard
28430 It is recommended to use
28439 supports all features of actual PDF-versions, is quick and works stable
28445 is not under development and therefore a bit outdated.
28448 \begin_layout Standard
28449 You can view your document as PDF via the
28453 menu or by using the toolbar button
28454 \begin_inset Graphics
28455 filename ../images/buffer-view_pdf2.xpm
28472 \begin_layout Chapter
28473 Explanation of Equation\InsetSpace ~
28475 \begin_inset LatexCommand eqref
28481 \begin_inset LatexCommand label
28482 name "cha:Explanation-of-Equation"
28489 \begin_layout Standard
28495 \begin_inset Formula $W_{\mathrm{tot\, n}}$
28498 can be calculated to
28501 \begin_layout Standard
28502 \begin_inset Formula \begin{equation}
28503 W_{\mathrm{tot}\, n}=n·(W_{g\, n}+2·\backslash\mbox{tabcolsep})+(n+1)·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}\end{equation}
28510 \begin_layout Standard
28512 \begin_inset Formula $W_{g\, n}$
28515 is the given width of all cells.
28522 is the LaTeX-length between the cell text and the cell border, its default
28523 value is 6\InsetSpace \thinspace{}
28531 is the thickness of the cell border line, the default is 0.4\InsetSpace \thinspace{}
28535 \begin_layout Standard
28536 Following equation\InsetSpace ~
28538 \begin_inset LatexCommand eqref
28539 reference "eq:Wtot_n"
28543 , the total width of a multicolumn
28544 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
28550 \begin_layout Standard
28551 \begin_inset Formula \begin{equation}
28552 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2·\backslash\mbox{tabcolsep}+2·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
28559 \begin_layout Standard
28560 By setting equation\InsetSpace ~
28562 \begin_inset LatexCommand eqref
28563 reference "eq:Wtot_n"
28568 \begin_inset LatexCommand eqref
28569 reference "eq:Wtot_mult"
28573 equal we can calculate the needed given width
28574 \begin_inset Formula $W_{g\, n}$
28581 columns are spanned, so that each column has a total width of
28582 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
28588 \begin_layout Standard
28589 \begin_inset Formula \begin{equation}
28590 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)·(2·\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
28597 \begin_layout Bibliography
28598 \begin_inset LatexCommand bibitem
28599 key "latexcompanion"
28603 Frank Mittelbach and Michel Goossens:
28605 The LaTeX Companion Second Edition.
28608 Addison-Wesley, 2004
28611 \begin_layout Bibliography
28612 \begin_inset LatexCommand bibitem
28617 Helmut Kopka and Patrick W.
28620 A Guide to LaTeX Fourth Edition.
28623 Addison-Wesley, 2003
28626 \begin_layout Bibliography
28627 \begin_inset LatexCommand bibitem
28634 LaTeX: A Document Preparation System.
28637 Addison-Wesley, second edition, 1994
28640 \begin_layout Bibliography
28641 \begin_inset LatexCommand bibitem
28650 \begin_layout Standard
28654 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf}
28664 \begin_layout Standard
28671 of the LaTeX-package
28676 \begin_inset LatexCommand index
28677 name "LaTeX-packages ! booktabs"
28684 \begin_layout Bibliography
28685 \begin_inset LatexCommand bibitem
28694 \begin_layout Standard
28698 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf}{
28707 \begin_layout Standard
28714 of the LaTeX-package
28719 \begin_inset LatexCommand index
28720 name "LaTeX-packages ! caption"
28727 \begin_layout Bibliography
28728 \begin_inset LatexCommand bibitem
28737 \begin_layout Standard
28741 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/anleitung.pdf}
28751 \begin_layout Standard
28758 of the LaTeX-package
28763 \begin_layout Bibliography
28764 \begin_inset LatexCommand bibitem
28773 \begin_layout Standard
28777 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf}
28787 \begin_layout Standard
28794 of the LaTeX-package
28796 endf\SpecialChar \textcompwordmark{}
28800 \begin_inset LatexCommand index
28801 name "LaTeX-packages ! endfloat"
28808 \begin_layout Bibliography
28809 \begin_inset LatexCommand bibitem
28818 \begin_layout Standard
28822 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/floatflt/floatflt.pdf}
28832 \begin_layout Standard
28839 of the LaTeX-package
28841 floatf\SpecialChar \textcompwordmark{}
28845 \begin_inset LatexCommand index
28846 name "LaTeX-packages ! floatflt"
28853 \begin_layout Bibliography
28854 \begin_inset LatexCommand bibitem
28863 \begin_layout Standard
28867 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf}
28877 \begin_layout Standard
28884 of the LaTeX-package
28889 \begin_inset LatexCommand index
28890 name "LaTeX-packages ! footmisc"
28897 \begin_layout Bibliography
28898 \begin_inset LatexCommand bibitem
28907 \begin_layout Standard
28911 href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf}{
28920 \begin_layout Standard
28927 of the LaTeX-package
28932 \begin_inset LatexCommand index
28933 name "LaTeX-packages ! hyperref"
28940 \begin_layout Bibliography
28941 \begin_inset LatexCommand bibitem
28950 \begin_layout Standard
28954 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf}
28964 \begin_layout Standard
28971 of the LaTeX-package
28976 \begin_inset LatexCommand index
28977 name "LaTeX-packages ! hyperref"
28984 \begin_layout Bibliography
28985 \begin_inset LatexCommand bibitem
28994 \begin_layout Standard
28998 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.p
29008 \begin_layout Standard
29015 of the LaTeX-package
29020 \begin_inset LatexCommand index
29021 name "LaTeX-packages ! koma-script"
29028 \begin_layout Bibliography
29029 \begin_inset LatexCommand bibitem
29030 key "koma-script-de"
29038 \begin_layout Standard
29042 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguide.p
29052 \begin_layout Standard
29059 of the LaTeX-package
29064 \begin_inset LatexCommand index
29065 name "LaTeX-packages ! koma-script"
29072 \begin_layout Bibliography
29073 \begin_inset LatexCommand bibitem
29082 \begin_layout Standard
29086 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.
29096 \begin_layout Standard
29103 of the LaTeX-package
29108 \begin_inset LatexCommand index
29109 name "LaTeX-packages ! marginnote"
29116 \begin_layout Bibliography
29117 \begin_inset LatexCommand bibitem
29126 \begin_layout Standard
29130 href{http://tug.org/PSTricks/main.cgi/}{
29139 \begin_layout Standard
29146 of the LaTeX-package
29151 \begin_inset LatexCommand index
29152 name "LaTeX-packages ! PSTricks"
29159 \begin_layout Bibliography
29160 \begin_inset LatexCommand bibitem
29169 \begin_layout Standard
29173 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf}{
29182 \begin_layout Standard
29189 of the LaTeX-package
29194 \begin_inset LatexCommand index
29195 name "LaTeX-packages ! sidecap"
29202 \begin_layout Bibliography
29203 \begin_inset LatexCommand bibitem
29212 \begin_layout Standard
29216 href{http://wiki.lyx.org/LyX/NewInLyX15}{
29225 \begin_layout Standard
29232 about new LyX-features planned for the release
29239 \begin_layout Standard
29240 \begin_inset LatexCommand printindex
29247 \begin_layout Standard
29248 \begin_inset FloatList figure
29255 \begin_layout Standard
29256 \begin_inset FloatList table