1 #LyX 1.5.0svn created this file. For more info see http://www.lyx.org/
11 % set fonts for nicer pdf view
12 \IfFileExists{lmodern.sty}
13 {\usepackage{lmodern}} % if it exists
15 \usepackage[scaled=0.92]{helvet}
18 } % end if it exists not
20 % link all cross references and URLs
22 \usepackage[colorlinks=true, bookmarks, bookmarksnumbered, bookmarksopen, bookmarksopenlevel=1,
23 linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,
24 pdfpagelayout=OneColumn, pdfnewwindow=true,
25 pdfstartview=XYZ, plainpages=false, pdfpagelabels,
26 pdfauthor={LyX Team}, pdftex,
27 pdftitle={LyX's Figure, Table, Floats, Notes, and Boxes manual},
28 pdfsubject={LyX-documentation about figures, tables, floats, notes, and boxes},
29 pdfkeywords={LyX, Tables, Figures, Floats, Boxes, Notes}]{hyperref}
31 \else % if dvi or ps is produced
33 % link all cross references and URLs in DVI output
34 \usepackage[ps2pdf, colorlinks=true,
35 linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue]{hyperref}
37 \fi % end if pdflatex is used
39 % that links to image floats jumps
40 % to the beginning of the float and
42 \usepackage[figure]{hypcap}
44 % the pages of the TOC are numbered roman
45 % and a PDF-bookmark for the TOC is added
47 \let\myTOC\tableofcontents
48 \renewcommand{\tableofcontents}{%
49 \pdfbookmark[1]{Contents}{}
52 \pagenumbering{arabic}}
54 % provides caption formatting
55 \usepackage[labelfont={bf,sf}, tableposition=top]{caption}[2004/07/16]
57 % provides commands to set caption
58 % beside tables/images
61 \newcommand{\TabBesBeg}{%
63 \let\MyEndtable\endtable
64 \renewenvironment{table}{\begin{SCtable}}{\end{SCtable}}}
66 \newcommand{\TabBesEnd}{%
68 \let\endtable\MyEndtable}
70 \newcommand{\FigBesBeg}{%
72 \let\MyEndfigure\endfigure
73 \renewenvironment{figure}{\begin{SCfigure}}{\end{SCfigure}}}
75 \newcommand{\FigBesEnd}{%
77 \let\endfigure\MyEndfigure}
79 % enables calculation of values,
82 % provides special table cell alignments
85 % increase the bottom float placement fraction
86 \renewcommand{\bottomfraction}{0.5}
88 % avoids that floats are placed before their
89 % corresponding section starts
90 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
92 % speed up the longtable calculation
93 \setcounter{LTchunksize}{100}
95 % used for colored tables
96 \@ifundefined{textcolor}
97 {\usepackage{color}}{}
99 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
100 \definecolor{lightgrey}{gray}{0.8}
103 \usepackage{multirow}
104 %\renewcommand{\multirowsetup}{\centering}
106 % used for book-style tables
107 \usepackage{booktabs}
109 % used to have extra space in table cells,
110 \setlength{\extrarowheight}{2pt}
112 % used for customized tables
115 {>{\centering\hspace{0pt}}m{#1}}
118 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
121 {>{\columncolor{#1}\hspace{0pt}}c}
123 \newcolumntype{V}{!{\vrule width 1.5pt}}
125 \newcolumntype{W}{!{\color{green}\vline}}
128 % To be able to enter the characters ° and · directly in LyX
129 \DeclareInputText{176}{\ifmmode^\circ\else\textdegree\fi}
130 \DeclareInputText{183}{\ifmmode\cdot\else\textperiodcentered\fi}
132 % insert additional vertical space of
133 % 1.5 mm between footnotes
135 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
137 % enable algorithm floats to be referenced
138 \newfloat{Xalgorithm}{tbp}{loa}
139 \floatname{Xalgorithm}{Algorithm}
140 \newcommand{\theHalgorithm}{\theHXalgorithm}
141 \renewenvironment{algorithm}[1][tbp]
142 {\begin{Xalgorithm}[#1]}{\end{Xalgorithm}}
144 % number algorithm floats within chapters
145 \numberwithin{Xalgorithm}{chapter}
147 % redefine the greyed out note
148 \renewenvironment{lyxgreyedout}
149 {\textcolor{blue}\bgroup}{\egroup}
151 % ------------------------------------
152 % used to check for needed LaTeX packages
155 % check for package arydshln
156 % used for tables with dashed lines
157 \newboolean{arydshln}
158 \IfFileExists{arydshln.sty}
159 {\usepackage{arydshln}
160 \setboolean{arydshln}{true}}
161 {\setboolean{arydshln}{false}}
163 % check for package marginnote
164 % used for margin notes
165 \newboolean{marginnote}
166 \IfFileExists{marginnote.sty}
167 {\usepackage{marginnote}
168 \let\marginpar\marginnote
169 \setboolean{marginnote}{true}}
170 {\setboolean{marginnote}{false}}
172 \options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
177 \font_typewriter default
178 \font_default_family default
192 \paperorientation portrait
195 \paragraph_separation skip
197 \quotes_language english
200 \paperpagestyle default
204 \tracking_changes false
205 \output_changes false
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
331 \begin_inset LatexCommand index
332 name "Graphics|see{Figures}"
339 \begin_layout Section
341 \begin_inset LatexCommand index
342 name "Figures ! Graphics Dialog"
347 \begin_inset LatexCommand label
348 name "sec:Graphics-Dialog"
355 \begin_layout Standard
356 To insert an image into your document, place the cursor at the text position
357 you want and click on the toolbar icon
358 \begin_inset Graphics
359 filename ../images/dialog-show-new-inset_graphics.xpm
366 Insert\SpecialChar \menuseparator
370 Then a dialog will appear to choose the file to load.
371 The image will appear in the output exactly at the position where it is
375 \begin_layout Standard
376 The graphics dialog can be called at any time by right-clicking on an image.
377 This dialog has three tabs:
380 \begin_layout Description
385 Here you can choose an image file and adjust its appearance in the output.
386 The available units for the image size are explained in appendix\InsetSpace ~
388 \begin_inset LatexCommand ref
389 reference "cha:Units-available-in"
395 You can rotate images counter-clockwise by setting a rotation angle and
397 The image will also be rotated inside LyX.
399 Images can be opened in a program
400 of your choice when pressing the
405 The program can be set for every image format in the file format settings
406 in LyX's preferences.
409 \begin_layout Description
414 Alternatively to the usage of scaling units it is possible to set image
415 coordinates to adjust the height and width of the image in the output.
416 The coordinates can also be calculated automatically by pressing the button
428 bounding\InsetSpace ~
431 will only print the image region within the given coordinates.
432 Normally you don't need to take care about image coordinates and can ignore
436 \begin_layout Description
442 In this tab you can modify the appearance of the image within LyX and set
443 the image to be a subfigure of a figure float with an own caption.
444 Subfigures are explained in section\InsetSpace ~
446 \begin_inset LatexCommand ref
447 reference "sec:Figure-Floats"
453 LaTeX experts can also specify on this tab additional LaTeX options.
461 makes the image appear in the output only as a frame with the size of the
471 option only affects zipped EPS-graphics, e.\InsetSpace \thinspace{}
478 When the option is used the images will not be unzipped on export, since
479 LaTeX can handle them as they are.
481 Zipped EPS-graphics are useful to save
482 disk space when you choose PostScript as output format, see appendix\InsetSpace ~
484 \begin_inset LatexCommand ref
485 reference "sec:PostScript"
490 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
501 zgrep %%Bounding x.eps.gz > x.eps.bb
505 The second command creates the bounding box file
506 \begin_inset Quotes eld
510 \begin_inset Quotes erd
513 that is needed by LaTeX for zipped graphics.
516 \begin_layout Standard
517 \begin_inset VSpace bigskip
523 \begin_layout Standard
524 This is an example image in EPS format
528 \begin_layout Standard
529 Image formats are explained in section\InsetSpace ~
531 \begin_inset LatexCommand ref
532 reference "sec:Image-Formats"
541 within a separate, horizontally centered paragraph:
544 \begin_layout Standard
546 \begin_inset Graphics
547 filename clipart/mobius.eps
557 \begin_layout Standard
558 This is the same image like the one above but in draft mode:
561 \begin_layout Standard
563 \begin_inset Graphics
564 filename clipart/mobius.eps
575 \begin_layout Section
577 \begin_inset LatexCommand label
578 name "sec:Figure-Floats"
583 \begin_inset LatexCommand index
584 name "Floats ! Figure Floats"
589 \begin_inset LatexCommand index
590 name "Figures ! Floats"
597 \begin_layout Standard
598 For general explanations about floats, have a look at section\InsetSpace ~
600 \begin_inset LatexCommand ref
601 reference "sec:FloatIntroduction"
608 \begin_layout Standard
610 \begin_inset Graphics
611 filename ../images/float-insert_figure.xpm
618 Insert\SpecialChar \menuseparator
619 Float\SpecialChar \menuseparator
622 inserts a float with a caption that has the label
623 \begin_inset Quotes eld
628 \begin_inset Quotes erd
631 (# is the actual number).
632 You can insert the image above the caption, like in Figure\InsetSpace ~
634 \begin_inset LatexCommand ref
635 reference "fig:kill-plat"
639 or below the caption, like in Figure\InsetSpace ~
641 \begin_inset LatexCommand ref
642 reference "fig:escher"
647 More about the caption placement is described in section\InsetSpace ~
649 \begin_inset LatexCommand ref
650 reference "sec:Caption-Placement"
657 \begin_layout Standard
658 \begin_inset Float figure
663 \begin_layout Standard
665 \begin_inset Graphics
666 filename clipart/platypus.eps
676 \begin_layout Standard
679 \begin_layout Standard
680 \begin_inset LatexCommand label
685 A severely distorted platypus in a float.
698 \begin_layout Standard
699 \begin_inset Float figure
704 \begin_layout Standard
707 \begin_layout Standard
708 \begin_inset LatexCommand label
722 \begin_layout Standard
724 \begin_inset Graphics
725 filename clipart/escher-lsd.eps
740 \begin_layout Standard
741 \begin_inset LatexCommand index
742 name "References ! to Figures"
748 \begin_inset LatexCommand ref
749 reference "fig:kill-plat"
754 \begin_inset LatexCommand ref
755 reference "fig:escher"
759 are examples of referenced figures.
760 Figures can be referenced in the text by referencing their label.
761 To do this insert a label in the caption using the menu
763 Insert\SpecialChar \menuseparator
766 or the toolbar button
767 \begin_inset Graphics
768 filename ../images/label-insert.xpm
774 You can now refer to the label using the menu
776 Insert\SpecialChar \menuseparator
780 or the toolbar button
781 \begin_inset Graphics
782 filename ../images/dialog-show-new-inset_ref.xpm
788 It is important to use references to floats, rather than using vague references
790 \begin_inset Quotes eld
794 \begin_inset Quotes erd
797 , because as LaTeX will reposition the floats in the final document, it
799 \begin_inset Quotes eld
803 \begin_inset Quotes erd
808 Referencing is explained in detail in section\InsetSpace ~
810 \begin_inset LatexCommand ref
811 reference "sec:Referencing-Floats"
818 \begin_layout Standard
819 Normally only one image is inserted to a figure float, but sometimes you
820 might want to use two images with separate subcaptions.
821 This can be set in the tab
826 of the graphics dialog.
827 Choose there the option
831 and enter the subcaption for the image in the caption field.
832 Note that only the main caption of the float is added to the List of Figures.
835 erencing subfigures is explained in section\InsetSpace ~
837 \begin_inset LatexCommand ref
838 reference "sub:Referencing-Subfigures"
845 \begin_layout Standard
848 \begin_inset LatexCommand ref
849 reference "fig:Two-distorted-images"
853 is an example of a figure float with two images set side by side.
854 You can also set the images one below the other.
857 \begin_layout Standard
858 \begin_inset Float figure
863 \begin_layout Standard
867 \begin_inset Graphics
868 filename clipart/escher-lsd.eps
871 subcaptionText "Undefinable structure"
878 \begin_inset Graphics
879 filename clipart/platypus.eps
883 subcaptionText "\label{fig:Platypus} Platypus"
892 \begin_layout Standard
895 \begin_layout Standard
896 \begin_inset LatexCommand label
897 name "fig:Two-distorted-images"
901 Two distorted images.
914 \begin_layout Section
916 \begin_inset LatexCommand label
917 name "sec:Image-Formats"
922 \begin_inset LatexCommand index
928 \begin_inset LatexCommand index
929 name "Figures ! Image Formats"
936 \begin_layout Standard
937 You can insert images in any known file format.
938 But as explained in appendix\InsetSpace ~
940 \begin_inset LatexCommand ref
941 reference "cha:Output-File-Formats"
945 , every output document format allows only a few image formats.
946 LyX uses therefore the program
950 in the background to convert the images to the right format.
951 To increase your work flow by avoiding these conversions in the background,
952 you can use only the image formats that can directly be embedded in the
954 The output file formats are explained in appendix\InsetSpace ~
956 \begin_inset LatexCommand ref
957 reference "cha:Output-File-Formats"
964 \begin_layout Standard
965 Similar to fonts there are two types of image formats:
968 \begin_layout Description
970 images consist of pixel values, often in a compressed form.
971 They are therefore not fully scalable and look pixeled in large zooms.
972 Well-known bitmap image formats are
973 \begin_inset Quotes eld
976 Graphics Interchange Format
977 \begin_inset Quotes erd
981 \begin_inset Quotes eld
989 \begin_inset Quotes erd
993 \begin_inset LatexCommand index
994 name "GIF|see{Image formats}"
999 \begin_inset Quotes eld
1002 Portable Network Graphics
1003 \begin_inset Quotes erd
1006 (PNG, file extension
1007 \begin_inset Quotes eld
1015 \begin_inset Quotes erd
1019 \begin_inset LatexCommand index
1020 name "PNG|see{Image formats}"
1025 \begin_inset Quotes eld
1028 Joint Photographic Experts Group
1029 \begin_inset Quotes erd
1032 (JPG, file extension
1033 \begin_inset Quotes eld
1041 \begin_inset Quotes erd
1045 \begin_inset Quotes eld
1053 \begin_inset Quotes erd
1057 \begin_inset LatexCommand index
1058 name "JPG|see{Image formats}"
1065 \begin_layout Description
1067 images consist of vectors and can therefore be scaled to any size
1069 The scaling ability is necessary if you want to create presentations, because
1070 presentations are always scaled by the video projector.
1071 Scaling is also useful for online documents to let the user zoom into diagrams.
1074 ell-known scalable image formats are
1075 \begin_inset Quotes eld
1078 Scalable Vector Graphics
1079 \begin_inset Quotes erd
1082 (SVG, file extension
1083 \begin_inset Quotes eld
1091 \begin_inset Quotes erd
1095 \begin_inset LatexCommand index
1096 name "SVG|see{Image formats}"
1101 \begin_inset Quotes eld
1104 Encapsulated PostScript
1105 \begin_inset Quotes erd
1108 (EPS, file extension
1109 \begin_inset Quotes eld
1117 \begin_inset Quotes erd
1121 \begin_inset LatexCommand index
1122 name "EPS|see{Image formats}"
1127 \begin_inset Quotes eld
1130 Portable Document Format
1131 \begin_inset Quotes erd
1134 (PDF, file extension
1135 \begin_inset Quotes eld
1143 \begin_inset Quotes erd
1147 \begin_inset LatexCommand index
1153 \begin_inset Quotes eld
1157 \begin_inset Quotes erd
1160 (WMF, file extension
1161 \begin_inset Quotes eld
1169 \begin_inset Quotes erd
1173 \begin_inset LatexCommand index
1174 name "SVG|see{Image formats}"
1180 \begin_inset Quotes eld
1184 \begin_inset Quotes erd
1187 , because you can convert any bitmap image to a PDF or EPS-image and the
1188 result will still be a bitmap image.
1189 In this cases only a header with the image properties is added to the original
1194 \begin_layout Standard
1195 In the case of PDF, the original image is additionally compressed.
1201 The PDF-files generated by
1205 are for example bitmap images.
1208 \begin_layout Standard
1209 Normally it is not possible to convert a bitmap image into a scalable one,
1211 Only the image formats PDF and EPS can directly be embedded to PDF and
1212 PostScript output files, respectively.
1213 SVG and WMF-images are currently recalculated to bitmaps when the output
1214 file is generated because there is currently no adequate WMF/SVG
1215 \begin_inset Formula $\to$
1218 PDF/EPS converter available.
1221 \begin_layout Chapter
1223 \begin_inset LatexCommand label
1229 \begin_inset LatexCommand index
1237 \begin_layout Section
1239 \begin_inset LatexCommand index
1240 name "Table ! Introduction"
1247 \begin_layout Standard
1248 You can insert a table using either the toolbar button
1249 \begin_inset Graphics
1250 filename ../images/tabular-insert.xpm
1257 Insert\SpecialChar \menuseparator
1261 The toolbar button offers you a graphical selection: Move the mouse to
1262 set the column/row number of the table that should be created and then
1263 press a mouse button.
1264 When you use the menu to create a table, a dialog will appear, asking you
1265 for the number of rows and columns.
1267 The default table has lines around any
1268 cell and the first row appears separated from the rest of the table.
1269 This separation occurs due to a double line: The cells of the first row
1270 have a line below them and the cells of the second row have a line above
1272 Here is an example table:
1275 \begin_layout Standard
1277 \begin_inset Tabular
1278 <lyxtabular version="3" rows="4" columns="4">
1280 <column alignment="center" valignment="top" leftline="true" width="0">
1281 <column alignment="center" valignment="top" leftline="true" width="0">
1282 <column alignment="center" valignment="top" leftline="true" width="0">
1283 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
1284 <row topline="true" bottomline="true">
1285 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1288 \begin_layout Standard
1294 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1297 \begin_layout Standard
1312 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1315 \begin_layout Standard
1321 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1324 \begin_layout Standard
1331 <row topline="true">
1332 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1335 \begin_layout Standard
1350 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1353 \begin_layout Standard
1359 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1362 \begin_layout Standard
1368 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1371 \begin_layout Standard
1378 <row topline="true">
1379 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1382 \begin_layout Standard
1397 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1400 \begin_layout Standard
1406 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1409 \begin_layout Standard
1415 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1418 \begin_layout Standard
1425 <row topline="true" bottomline="true">
1426 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1429 \begin_layout Standard
1444 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1447 \begin_layout Standard
1453 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1456 \begin_layout Standard
1462 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1465 \begin_layout Standard
1479 \begin_layout Section
1481 \begin_inset LatexCommand index
1482 name "Table ! Dialog"
1489 \begin_layout Standard
1490 You can alter a table by clicking on it with the right mouse button, which
1491 brings up the table dialog.
1492 Here you can adjust the settings of that cell and row/column respectively
1493 where the cursor is currently placed.
1494 Most of the dialog options also work on selections.
1495 This means if you select more cells, columns or rows, the action is done
1496 for the whole selection.
1497 Note that there is a difference between selecting the
1501 of the cell, and the cell itself.
1502 You can alter tables with the following tabs of the table dialog:
1505 \begin_layout Description
1511 Here you can set the horizontal alignment for the current row and the width
1512 of the current column.
1513 When you have set a width you can also adjust the vertical alignment of
1515 A given width will allow the cell to have line breaks and multiple paragraphs
1516 of text, see section\InsetSpace ~
1518 \begin_inset LatexCommand ref
1519 reference "sub:Multiple-Lines-in"
1524 If you set no width, the column is as wide as their widest cell content
1527 Furthermore, you can mark one or multiple cells of one row as a multicolumn
1528 cell, see section\InsetSpace ~
1530 \begin_inset LatexCommand ref
1531 reference "sub:Multicolumns"
1537 The rotate check boxes rotates the current cell, a selection, or the whole
1538 table counter-clockwise by 90°.
1539 The rotation is not shown within LyX, only in the output.
1542 \begin_inset Note Greyedout
1545 \begin_layout Standard
1550 Not all DVI-viewers are able to display rotations.
1557 It is also possible to enter a LaTeX-argument which is needed for special
1558 table formattings, see section\InsetSpace ~
1560 \begin_inset LatexCommand ref
1561 reference "sub:Multicolumn-Calculations"
1566 \begin_inset LatexCommand ref
1567 reference "sec:Colored-Tables"
1574 \begin_layout Description
1579 In this tab you can add and delete border lines for the current row/column.
1586 will convert the table to a formal table as described in section\InsetSpace ~
1588 \begin_inset LatexCommand ref
1589 reference "sec:Formal-Tables"
1595 You can also add here space to table rows as decribed in section\InsetSpace ~
1597 \begin_inset LatexCommand ref
1598 reference "sub:Row-Spacing"
1605 \begin_layout Description
1610 This tab is to make a table a so called
1611 \begin_inset Quotes eld
1619 \begin_inset Quotes erd
1622 that can run over several pages.
1623 Section\InsetSpace ~
1625 \begin_inset LatexCommand ref
1626 reference "sec:Longtables"
1631 \begin_inset LatexCommand ref
1632 reference "sec:Special-Longtable-Issues"
1636 describe the longtable features in detail.
1639 \begin_layout Standard
1640 When the table toolbar is opened, you can move the cursor with the arrow
1641 keys from cell to cell and the property of the current cell will immediately
1642 be displayed in the dialog.
1645 \begin_layout Section
1647 \begin_inset LatexCommand index
1648 name "Table ! Toolbar"
1655 \begin_layout Standard
1656 The table toolbar is an alternative to the table dialog to be able to alter
1658 It should normally appear at the bottom of LyX's main window when the cursor
1660 You can alternatively switch it on to appear always, by right-clicking
1661 in LyX's main menu bar.
1664 \begin_layout Standard
1665 The toolbar has the following icons:
1668 \begin_layout Labeling
1669 \labelwidthstring 00.00.0000
1670 \begin_inset Graphics
1671 filename ../images/tabular-feature_append-row.xpm
1675 adds a row below the current cell or selection
1678 \begin_layout Labeling
1679 \labelwidthstring 00.00.0000
1680 \begin_inset Graphics
1681 filename ../images/tabular-feature_append-column.xpm
1685 adds a column right beside the current cell or selection
1688 \begin_layout Labeling
1689 \labelwidthstring 00.00.0000
1690 \begin_inset Graphics
1691 filename ../images/tabular-feature_delete-row.xpm
1695 deletes the current row or selection
1698 \begin_layout Labeling
1699 \labelwidthstring 00.00.0000
1700 \begin_inset Graphics
1701 filename ../images/tabular-feature_delete-column.xpm
1705 deletes the current column or selection
1708 \begin_layout Labeling
1709 \labelwidthstring 00.00.0000
1710 \begin_inset Graphics
1711 filename ../images/tabular-feature_toggle-line-top.xpm
1715 adds a line at the top of the current cell / row or of a selection
1718 \begin_layout Labeling
1719 \labelwidthstring 00.00.0000
1720 \begin_inset Graphics
1721 filename ../images/tabular-feature_toggle-line-bottom.xpm
1725 adds a line at the bottom of the current cell / row or of a selection
1728 \begin_layout Labeling
1729 \labelwidthstring 00.00.0000
1730 \begin_inset Graphics
1731 filename ../images/tabular-feature_toggle-line-left.xpm
1735 adds a line at the left side of the current cell / row or of a selection
1738 \begin_layout Labeling
1739 \labelwidthstring 00.00.0000
1740 \begin_inset Graphics
1741 filename ../images/tabular-feature_toggle-line-right.xpm
1745 adds a line at the right side of the current cell / row or of a selection
1748 \begin_layout Labeling
1749 \labelwidthstring 00.00.0000
1750 \begin_inset Graphics
1751 filename ../images/tabular-feature_set-all-lines.xpm
1755 adds lines around the current or selected cells - if the current cell no
1756 multicolumn this also affects the current row and column
1759 \begin_layout Labeling
1760 \labelwidthstring 00.00.0000
1761 \begin_inset Graphics
1762 filename ../images/tabular-feature_unset-all-lines.xpm
1766 deletes all lines of the current or selected cells - if the current cell
1767 no multicolumn this also affects the current row and column
1770 \begin_layout Labeling
1771 \labelwidthstring 00.00.0000
1772 \begin_inset Graphics
1773 filename ../images/tabular-feature_align-left.xpm
1777 left-aligns the content of the current cell / column
1780 \begin_layout Labeling
1781 \labelwidthstring 00.00.0000
1782 \begin_inset Graphics
1783 filename ../images/tabular-feature_align-center.xpm
1787 centers the content of the current cell / column horizontally
1790 \begin_layout Labeling
1791 \labelwidthstring 00.00.0000
1792 \begin_inset Graphics
1793 filename ../images/tabular-feature_align-right.xpm
1797 right-aligns the content of the current cell / column
1800 \begin_layout Labeling
1801 \labelwidthstring 00.00.0000
1802 \begin_inset Graphics
1803 filename ../images/tabular-feature_valign-top.xpm
1807 aligns the content of the current cell vertically to the top
1810 \begin_layout Labeling
1811 \labelwidthstring 00.00.0000
1812 \begin_inset Graphics
1813 filename ../images/tabular-feature_valign-middle.xpm
1817 centers the content of the current cell vertically
1820 \begin_layout Labeling
1821 \labelwidthstring 00.00.0000
1822 \begin_inset Graphics
1823 filename ../images/tabular-feature_valign-bottom.xpm
1827 aligns the content of the current cell vertically to the bottom
1830 \begin_layout Labeling
1831 \labelwidthstring 00.00.0000
1832 \begin_inset Graphics
1833 filename ../images/tabular-feature_set-rotate-cell.xpm
1837 rotates the current cell or selection counter-clockwise by 90°
1840 \begin_layout Labeling
1841 \labelwidthstring 00.00.0000
1842 \begin_inset Graphics
1843 filename ../images/tabular-feature_set-rotate-tabular.xpm
1847 rotates the whole table counter-clockwise by 90°
1850 \begin_layout Labeling
1851 \labelwidthstring 00.00.0000
1852 \begin_inset Graphics
1853 filename ../images/tabular-feature_multicolumn.xpm
1857 sets the current cell or selection as a multicolumn
1860 \begin_layout Section
1862 \begin_inset LatexCommand index
1863 name "Table ! Edit Menu"
1870 \begin_layout Standard
1871 Additionally to the table dialog and toolbar, the menu
1873 Edit\SpecialChar \menuseparator
1876 allows you to add and delete border lines for the current row/column and
1877 to set the current selection as multicolumn.
1878 The menu is only available when the cursor is inside a table.
1881 \begin_layout Section
1883 \begin_inset LatexCommand label
1884 name "sec:Table-Floats"
1889 \begin_inset LatexCommand index
1890 name "Floats ! Tables"
1895 \begin_inset LatexCommand index
1896 name "Table ! Floats"
1903 \begin_layout Standard
1904 For general explanations about floats, have a look at section\InsetSpace ~
1906 \begin_inset LatexCommand ref
1907 reference "sec:FloatIntroduction"
1914 \begin_layout Standard
1915 \begin_inset Float table
1921 \begin_layout Standard
1922 \begin_inset Caption
1924 \begin_layout Standard
1925 \begin_inset LatexCommand label
1926 name "tab:a table float"
1938 \begin_layout Standard
1940 \begin_inset Tabular
1941 <lyxtabular version="3" rows="3" columns="3">
1943 <column alignment="center" valignment="top" leftline="true" width="0pt">
1944 <column alignment="center" valignment="top" leftline="true" width="0pt">
1945 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
1946 <row topline="true" bottomline="true">
1947 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1950 \begin_layout Standard
1965 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1968 \begin_layout Standard
1983 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1986 \begin_layout Standard
2002 <row topline="true">
2003 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2006 \begin_layout Standard
2021 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2024 \begin_layout Standard
2039 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2042 \begin_layout Standard
2058 <row topline="true" bottomline="true">
2059 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2062 \begin_layout Standard
2072 \begin_inset Formula $\int x^{2}dx$
2080 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2083 \begin_layout Standard
2093 \begin_inset Formula $\left[\begin{array}{cc}
2095 c & d\end{array}\right]$
2103 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2106 \begin_layout Standard
2116 \begin_inset Formula $1+1=2$
2137 \begin_layout Standard
2138 Table floats can be inserted using the menu
2140 Insert\SpecialChar \menuseparator
2141 Float\SpecialChar \menuseparator
2144 or the toolbar button
2145 \begin_inset Graphics
2146 filename ../images/float-insert_table.xpm
2154 \begin_layout Standard
2155 The float appears as a collapsible box with a caption that has the label
2157 \begin_inset Quotes eld
2162 \begin_inset Quotes erd
2165 (# is the actual table number).
2166 You can insert tables to the float above or below the caption.
2169 \begin_layout Standard
2172 \begin_inset LatexCommand ref
2173 reference "tab:a table float"
2177 is an example table within a table float.
2180 \begin_layout Standard
2181 Having the caption above the table is the common rule that is unfortunately
2182 not supported in LaTeX's standard classes.
2183 That means if you are using the document classes
2199 there will be no space between the caption and the table.
2200 To insert the needed space, add the following option to the load command
2201 of the LaTeX-package
2206 \begin_inset LatexCommand index
2207 name "LaTeX-packages ! caption"
2211 in your document preamble
2215 \begin_layout Standard
2216 For more information have a look at section\InsetSpace ~
2218 \begin_inset LatexCommand ref
2219 reference "sec:Caption-Placement"
2231 \begin_layout Standard
2237 \begin_layout Standard
2242 , which is described in section\InsetSpace ~
2244 \begin_inset LatexCommand ref
2245 reference "sec:Caption-Formatting"
2249 , is used to adjust the caption format.
2252 \begin_layout Standard
2253 \begin_inset LatexCommand index
2254 name "References ! to Tables"
2258 Tables can be cross-referenced in the text by referencing their label.
2259 To do this insert a label in the caption using the menu
2261 Insert\SpecialChar \menuseparator
2264 or the toolbar button
2265 \begin_inset Graphics
2266 filename ../images/label-insert.xpm
2272 You can now refer to the label using the menu
2274 Insert\SpecialChar \menuseparator
2278 or the toolbar button
2279 \begin_inset Graphics
2280 filename ../images/dialog-show-new-inset_ref.xpm
2287 Referencing is explained in detail in section\InsetSpace ~
2289 \begin_inset LatexCommand ref
2290 reference "sec:Referencing-Floats"
2297 \begin_layout Section
2299 \begin_inset LatexCommand label
2300 name "sec:Longtables"
2305 \begin_inset LatexCommand index
2311 \begin_inset LatexCommand index
2312 name "Table ! Longtables"
2319 \begin_layout Standard
2320 If the table is too long to fit on one page, you can use the option
2330 of the table dialog to split the table automatically over more pages.
2331 Doing this enables some check boxes and you can now define:
2334 \begin_layout Description
2339 : The current row and all rows above, that don't have any special options
2340 defined, are defined to be the header rows of all pages of the longtable;
2341 except for the first page, if
2347 This therefore called the main header.
2350 \begin_layout Description
2356 : The current row and all rows above, that don't have any special options
2357 defined, are defined to be the header rows of the first page of the longtable.
2360 \begin_layout Description
2365 : The current row and all rows below, that don't have any special options
2366 defined, are defined to be the footer rows of all pages of the longtable;
2367 except for the last page, if
2375 \begin_layout Description
2381 : The current row and all rows below, that don't have any special options
2382 defined, are defined to be the footer rows of the last page of the longtable.
2385 \begin_layout Standard
2386 You can also specify a row where the table is splitted.
2387 If you set more than one option in the same table row, you should be aware
2388 of the fact that only the first one is used in the given table row.
2389 The others will then be defined as
2394 In this context, first means first in this order:
2396 Footer, Last\InsetSpace ~
2409 See the following longtable to see how it works:
2412 \begin_layout Standard
2414 \begin_inset Tabular
2415 <lyxtabular version="3" rows="69" columns="3">
2416 <features islongtable="true">
2417 <column alignment="left" valignment="top" leftline="true" width="0cm">
2418 <column alignment="left" valignment="top" width="0pt">
2419 <column alignment="right" valignment="top" leftline="true" rightline="true" width="0pt">
2420 <row topline="true" bottomline="true" endfirsthead="true">
2421 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2424 \begin_layout Standard
2427 Example Phone List (ignore the names)
2432 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2435 \begin_layout Standard
2441 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2444 \begin_layout Standard
2451 <row topline="true" bottomline="true" endfirsthead="true">
2452 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2455 \begin_layout Standard
2463 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2466 \begin_layout Standard
2472 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2475 \begin_layout Standard
2484 <row topline="true" bottomline="true" endhead="true">
2485 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2488 \begin_layout Standard
2496 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2499 \begin_layout Standard
2505 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2508 \begin_layout Standard
2515 <row topline="true" bottomline="true" endhead="true">
2516 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2519 \begin_layout Standard
2527 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2530 \begin_layout Standard
2536 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2539 \begin_layout Standard
2548 <row topline="true" bottomline="true" endfoot="true">
2549 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
2552 \begin_layout Standard
2553 continued on next page
2558 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2561 \begin_layout Standard
2567 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2570 \begin_layout Standard
2578 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2581 \begin_layout Standard
2589 <cell alignment="center" valignment="top" topline="true" usebox="none">
2592 \begin_layout Standard
2598 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2601 \begin_layout Standard
2609 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2612 \begin_layout Standard
2620 <cell alignment="center" valignment="top" topline="true" usebox="none">
2623 \begin_layout Standard
2629 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2632 \begin_layout Standard
2640 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2643 \begin_layout Standard
2651 <cell alignment="center" valignment="top" topline="true" usebox="none">
2654 \begin_layout Standard
2660 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2663 \begin_layout Standard
2671 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2674 \begin_layout Standard
2682 <cell alignment="center" valignment="top" topline="true" usebox="none">
2685 \begin_layout Standard
2691 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2694 \begin_layout Standard
2702 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2705 \begin_layout Standard
2713 <cell alignment="center" valignment="top" topline="true" usebox="none">
2716 \begin_layout Standard
2722 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2725 \begin_layout Standard
2733 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2736 \begin_layout Standard
2744 <cell alignment="center" valignment="top" topline="true" usebox="none">
2747 \begin_layout Standard
2753 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2756 \begin_layout Standard
2764 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2767 \begin_layout Standard
2775 <cell alignment="center" valignment="top" topline="true" usebox="none">
2778 \begin_layout Standard
2784 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2787 \begin_layout Standard
2795 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2798 \begin_layout Standard
2806 <cell alignment="center" valignment="top" topline="true" usebox="none">
2809 \begin_layout Standard
2815 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2818 \begin_layout Standard
2826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2829 \begin_layout Standard
2837 <cell alignment="center" valignment="top" topline="true" usebox="none">
2840 \begin_layout Standard
2846 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2849 \begin_layout Standard
2857 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2860 \begin_layout Standard
2868 <cell alignment="center" valignment="top" topline="true" usebox="none">
2871 \begin_layout Standard
2877 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2880 \begin_layout Standard
2888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2891 \begin_layout Standard
2899 <cell alignment="center" valignment="top" topline="true" usebox="none">
2902 \begin_layout Standard
2908 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2911 \begin_layout Standard
2919 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2922 \begin_layout Standard
2930 <cell alignment="center" valignment="top" topline="true" usebox="none">
2933 \begin_layout Standard
2939 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2942 \begin_layout Standard
2950 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2953 \begin_layout Standard
2961 <cell alignment="center" valignment="top" topline="true" usebox="none">
2964 \begin_layout Standard
2970 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2973 \begin_layout Standard
2981 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2984 \begin_layout Standard
2992 <cell alignment="center" valignment="top" topline="true" usebox="none">
2995 \begin_layout Standard
3001 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3004 \begin_layout Standard
3012 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3015 \begin_layout Standard
3023 <cell alignment="center" valignment="top" topline="true" usebox="none">
3026 \begin_layout Standard
3032 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3035 \begin_layout Standard
3043 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3046 \begin_layout Standard
3054 <cell alignment="center" valignment="top" topline="true" usebox="none">
3057 \begin_layout Standard
3063 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3066 \begin_layout Standard
3074 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3077 \begin_layout Standard
3085 <cell alignment="center" valignment="top" topline="true" usebox="none">
3088 \begin_layout Standard
3094 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3097 \begin_layout Standard
3105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3108 \begin_layout Standard
3116 <cell alignment="center" valignment="top" topline="true" usebox="none">
3119 \begin_layout Standard
3125 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3128 \begin_layout Standard
3136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3139 \begin_layout Standard
3147 <cell alignment="center" valignment="top" topline="true" usebox="none">
3150 \begin_layout Standard
3156 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3159 \begin_layout Standard
3167 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3170 \begin_layout Standard
3178 <cell alignment="center" valignment="top" topline="true" usebox="none">
3181 \begin_layout Standard
3187 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3190 \begin_layout Standard
3198 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3201 \begin_layout Standard
3209 <cell alignment="center" valignment="top" topline="true" usebox="none">
3212 \begin_layout Standard
3218 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3221 \begin_layout Standard
3229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3232 \begin_layout Standard
3240 <cell alignment="center" valignment="top" topline="true" usebox="none">
3243 \begin_layout Standard
3249 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3252 \begin_layout Standard
3260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3263 \begin_layout Standard
3271 <cell alignment="center" valignment="top" topline="true" usebox="none">
3274 \begin_layout Standard
3280 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3283 \begin_layout Standard
3291 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3294 \begin_layout Standard
3302 <cell alignment="center" valignment="top" topline="true" usebox="none">
3305 \begin_layout Standard
3311 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3314 \begin_layout Standard
3322 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3325 \begin_layout Standard
3333 <cell alignment="center" valignment="top" topline="true" usebox="none">
3336 \begin_layout Standard
3342 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3345 \begin_layout Standard
3353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3356 \begin_layout Standard
3364 <cell alignment="center" valignment="top" topline="true" usebox="none">
3367 \begin_layout Standard
3373 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3376 \begin_layout Standard
3384 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3387 \begin_layout Standard
3395 <cell alignment="center" valignment="top" topline="true" usebox="none">
3398 \begin_layout Standard
3404 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3407 \begin_layout Standard
3415 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3418 \begin_layout Standard
3426 <cell alignment="center" valignment="top" topline="true" usebox="none">
3429 \begin_layout Standard
3435 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3438 \begin_layout Standard
3446 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3449 \begin_layout Standard
3457 <cell alignment="center" valignment="top" topline="true" usebox="none">
3460 \begin_layout Standard
3466 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3469 \begin_layout Standard
3477 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3480 \begin_layout Standard
3488 <cell alignment="center" valignment="top" topline="true" usebox="none">
3491 \begin_layout Standard
3497 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3500 \begin_layout Standard
3507 <row bottomline="true">
3508 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3511 \begin_layout Standard
3519 <cell alignment="center" valignment="top" topline="true" usebox="none">
3522 \begin_layout Standard
3528 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3531 \begin_layout Standard
3538 <row bottomline="true">
3539 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3542 \begin_layout Standard
3548 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
3551 \begin_layout Standard
3557 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3560 \begin_layout Standard
3568 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3571 \begin_layout Standard
3579 <cell alignment="center" valignment="top" topline="true" usebox="none">
3582 \begin_layout Standard
3588 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3591 \begin_layout Standard
3599 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3602 \begin_layout Standard
3610 <cell alignment="center" valignment="top" topline="true" usebox="none">
3613 \begin_layout Standard
3619 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3622 \begin_layout Standard
3630 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3633 \begin_layout Standard
3641 <cell alignment="center" valignment="top" topline="true" usebox="none">
3644 \begin_layout Standard
3650 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3653 \begin_layout Standard
3661 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3664 \begin_layout Standard
3672 <cell alignment="center" valignment="top" topline="true" usebox="none">
3675 \begin_layout Standard
3681 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3684 \begin_layout Standard
3692 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3695 \begin_layout Standard
3703 <cell alignment="center" valignment="top" topline="true" usebox="none">
3706 \begin_layout Standard
3712 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3715 \begin_layout Standard
3723 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3726 \begin_layout Standard
3734 <cell alignment="center" valignment="top" topline="true" usebox="none">
3737 \begin_layout Standard
3743 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3746 \begin_layout Standard
3754 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3757 \begin_layout Standard
3765 <cell alignment="center" valignment="top" topline="true" usebox="none">
3768 \begin_layout Standard
3774 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3777 \begin_layout Standard
3785 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3788 \begin_layout Standard
3796 <cell alignment="center" valignment="top" topline="true" usebox="none">
3799 \begin_layout Standard
3805 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3808 \begin_layout Standard
3816 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3819 \begin_layout Standard
3827 <cell alignment="center" valignment="top" topline="true" usebox="none">
3830 \begin_layout Standard
3836 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3839 \begin_layout Standard
3847 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3850 \begin_layout Standard
3858 <cell alignment="center" valignment="top" topline="true" usebox="none">
3861 \begin_layout Standard
3867 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3870 \begin_layout Standard
3878 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3881 \begin_layout Standard
3889 <cell alignment="center" valignment="top" topline="true" usebox="none">
3892 \begin_layout Standard
3898 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3901 \begin_layout Standard
3909 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3912 \begin_layout Standard
3920 <cell alignment="center" valignment="top" topline="true" usebox="none">
3923 \begin_layout Standard
3929 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3932 \begin_layout Standard
3940 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3943 \begin_layout Standard
3951 <cell alignment="center" valignment="top" topline="true" usebox="none">
3954 \begin_layout Standard
3960 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3963 \begin_layout Standard
3971 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3974 \begin_layout Standard
3982 <cell alignment="center" valignment="top" topline="true" usebox="none">
3985 \begin_layout Standard
3991 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3994 \begin_layout Standard
4002 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4005 \begin_layout Standard
4013 <cell alignment="center" valignment="top" topline="true" usebox="none">
4016 \begin_layout Standard
4022 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4025 \begin_layout Standard
4033 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4036 \begin_layout Standard
4044 <cell alignment="center" valignment="top" topline="true" usebox="none">
4047 \begin_layout Standard
4053 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4056 \begin_layout Standard
4064 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4067 \begin_layout Standard
4075 <cell alignment="center" valignment="top" topline="true" usebox="none">
4078 \begin_layout Standard
4084 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4087 \begin_layout Standard
4095 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4098 \begin_layout Standard
4106 <cell alignment="center" valignment="top" topline="true" usebox="none">
4109 \begin_layout Standard
4115 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4118 \begin_layout Standard
4126 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4129 \begin_layout Standard
4137 <cell alignment="center" valignment="top" topline="true" usebox="none">
4140 \begin_layout Standard
4146 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4149 \begin_layout Standard
4157 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4160 \begin_layout Standard
4168 <cell alignment="center" valignment="top" topline="true" usebox="none">
4171 \begin_layout Standard
4177 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4180 \begin_layout Standard
4188 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4191 \begin_layout Standard
4199 <cell alignment="center" valignment="top" topline="true" usebox="none">
4202 \begin_layout Standard
4208 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4211 \begin_layout Standard
4219 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4222 \begin_layout Standard
4230 <cell alignment="center" valignment="top" topline="true" usebox="none">
4233 \begin_layout Standard
4239 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4242 \begin_layout Standard
4250 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4253 \begin_layout Standard
4261 <cell alignment="center" valignment="top" topline="true" usebox="none">
4264 \begin_layout Standard
4270 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4273 \begin_layout Standard
4281 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4284 \begin_layout Standard
4292 <cell alignment="center" valignment="top" topline="true" usebox="none">
4295 \begin_layout Standard
4301 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4304 \begin_layout Standard
4312 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4315 \begin_layout Standard
4323 <cell alignment="center" valignment="top" topline="true" usebox="none">
4326 \begin_layout Standard
4332 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4335 \begin_layout Standard
4343 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4346 \begin_layout Standard
4354 <cell alignment="center" valignment="top" topline="true" usebox="none">
4357 \begin_layout Standard
4363 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4366 \begin_layout Standard
4374 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4377 \begin_layout Standard
4385 <cell alignment="center" valignment="top" topline="true" usebox="none">
4388 \begin_layout Standard
4394 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4397 \begin_layout Standard
4405 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4408 \begin_layout Standard
4416 <cell alignment="center" valignment="top" topline="true" usebox="none">
4419 \begin_layout Standard
4425 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4428 \begin_layout Standard
4436 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4439 \begin_layout Standard
4447 <cell alignment="center" valignment="top" topline="true" usebox="none">
4450 \begin_layout Standard
4456 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4459 \begin_layout Standard
4467 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4470 \begin_layout Standard
4478 <cell alignment="center" valignment="top" topline="true" usebox="none">
4481 \begin_layout Standard
4487 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4490 \begin_layout Standard
4497 <row bottomline="true">
4498 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4501 \begin_layout Standard
4509 <cell alignment="center" valignment="top" topline="true" usebox="none">
4512 \begin_layout Standard
4518 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4521 \begin_layout Standard
4528 <row bottomline="true" endlastfoot="true">
4529 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
4532 \begin_layout Standard
4538 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4541 \begin_layout Standard
4547 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4550 \begin_layout Standard
4565 \begin_layout Standard
4569 addtocounter{table}{-1}
4575 \begin_inset Note Note
4578 \begin_layout Standard
4579 See greyed-out note in section 2.6.2 for an explanation of this command.
4587 \begin_layout Subsection
4588 Footnotes in Longtables
4589 \begin_inset LatexCommand label
4590 name "sub:Footnotes-in-Longtables"
4595 \begin_inset LatexCommand index
4596 name "Longtables ! Footnotes"
4603 \begin_layout Standard
4604 Footnotes can be inserted to every longtable cell.
4605 They appear at the bottom of the page where the table cell with the footnote
4609 \begin_inset LatexCommand ref
4610 reference "tab:DiffCaptions"
4614 has for example a footnote.
4617 \begin_layout Subsection
4619 \begin_inset LatexCommand index
4620 name "Longtables ! Captions"
4627 \begin_layout Standard
4628 A longtable cannot be put into a table float because floats can only be
4629 on one page but the caption environment of floats can also be used for
4633 \begin_layout Standard
4634 As LyX does not yet fully support captions in longtables, a hack is needed
4638 \begin_layout Enumerate
4644 \begin_layout Enumerate
4645 Mark the first row an disable its upper line.
4648 \begin_layout Enumerate
4649 Insert a caption via the menu
4651 Insert\SpecialChar \menuseparator
4654 into the first table cell.
4656 You can also add a short title for the caption.
4659 \begin_layout Enumerate
4661 \begin_inset Quotes eld
4673 \begin_inset Quotes erd
4676 as ERT behind the caption.
4679 \begin_layout Standard
4680 A short title that will appear in the LOT instead of the full title.
4689 behind the caption omits the vertical lines between the following cells
4691 The first table row is now only a dummy row for the caption, the actual
4692 table starts with the second row.
4695 \begin_layout Standard
4696 Here is a short longtable to see how it works:
4699 \begin_layout Standard
4700 \begin_inset Tabular
4701 <lyxtabular version="3" rows="6" columns="5">
4702 <features islongtable="true">
4703 <column alignment="center" valignment="top" leftline="true" width="0">
4704 <column alignment="center" valignment="top" leftline="true" width="0">
4705 <column alignment="center" valignment="top" leftline="true" width="0">
4706 <column alignment="center" valignment="top" leftline="true" width="0">
4707 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
4709 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4712 \begin_layout Standard
4713 \begin_inset Caption
4715 \begin_layout Standard
4716 Longtable with caption
4720 \begin_layout Standard
4735 \begin_layout Standard
4751 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4754 \begin_layout Standard
4760 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4763 \begin_layout Standard
4769 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4772 \begin_layout Standard
4778 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4781 \begin_layout Standard
4788 <row topline="true">
4789 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4792 \begin_layout Standard
4798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4801 \begin_layout Standard
4807 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4810 \begin_layout Standard
4816 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4819 \begin_layout Standard
4825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4828 \begin_layout Standard
4835 <row topline="true">
4836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4839 \begin_layout Standard
4845 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4848 \begin_layout Standard
4854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4857 \begin_layout Standard
4863 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4866 \begin_layout Standard
4872 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4875 \begin_layout Standard
4882 <row topline="true">
4883 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4886 \begin_layout Standard
4892 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4895 \begin_layout Standard
4901 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4904 \begin_layout Standard
4910 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4913 \begin_layout Standard
4919 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4922 \begin_layout Standard
4929 <row topline="true">
4930 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4933 \begin_layout Standard
4939 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4942 \begin_layout Standard
4948 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4951 \begin_layout Standard
4957 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4960 \begin_layout Standard
4966 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4969 \begin_layout Standard
4976 <row topline="true" bottomline="true">
4977 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4980 \begin_layout Standard
4986 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4989 \begin_layout Standard
4995 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4998 \begin_layout Standard
5004 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5007 \begin_layout Standard
5013 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5016 \begin_layout Standard
5030 \begin_layout Standard
5031 \begin_inset VSpace medskip
5035 \begin_inset Note Greyedout
5038 \begin_layout Standard
5043 The table number is increased for every longtable, also if you didn't set
5045 For this reason you could have the case that e.g.
5047 2.4 follows on Table\InsetSpace ~
5048 2.1 in the list of tables if there are two longtables
5050 To avoid this you can add the following command in ERT behind every longtable
5054 \begin_layout Standard
5059 addtocounter{table}{-1}
5067 \begin_layout Standard
5068 \begin_inset Note Greyedout
5071 \begin_layout Standard
5076 If you are using the LaTeX-package
5081 \begin_inset LatexCommand index
5082 name "LaTeX-packages ! hyperref"
5086 to link cross-references, the link to a longtable caption will always point
5087 to the beginning of the document.
5095 \begin_layout Subsubsection
5096 References to Longtables
5097 \begin_inset LatexCommand index
5098 name "Longtables ! References"
5105 \begin_layout Standard
5106 \begin_inset Tabular
5107 <lyxtabular version="3" rows="6" columns="5">
5108 <features islongtable="true">
5109 <column alignment="center" valignment="top" leftline="true" width="0">
5110 <column alignment="center" valignment="top" leftline="true" width="0">
5111 <column alignment="center" valignment="top" leftline="true" width="0">
5112 <column alignment="center" valignment="top" leftline="true" width="0">
5113 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5118 \begin_layout Standard
5119 \begin_inset Caption
5121 \begin_layout Standard
5122 Referenced longtable
5123 \begin_inset LatexCommand label
5124 name "tab:RefExample"
5137 \begin_layout Standard
5153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5156 \begin_layout Standard
5162 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5165 \begin_layout Standard
5171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5174 \begin_layout Standard
5180 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5183 \begin_layout Standard
5190 <row topline="true">
5191 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5194 \begin_layout Standard
5200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5203 \begin_layout Standard
5209 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5212 \begin_layout Standard
5218 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5221 \begin_layout Standard
5227 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5230 \begin_layout Standard
5237 <row topline="true">
5238 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5241 \begin_layout Standard
5247 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5250 \begin_layout Standard
5256 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5259 \begin_layout Standard
5265 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5268 \begin_layout Standard
5274 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5277 \begin_layout Standard
5284 <row topline="true">
5285 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5288 \begin_layout Standard
5294 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5297 \begin_layout Standard
5303 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5306 \begin_layout Standard
5312 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5315 \begin_layout Standard
5321 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5324 \begin_layout Standard
5331 <row topline="true">
5332 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5335 \begin_layout Standard
5341 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5344 \begin_layout Standard
5350 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5353 \begin_layout Standard
5359 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5362 \begin_layout Standard
5368 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5371 \begin_layout Standard
5378 <row topline="true" bottomline="true">
5379 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5382 \begin_layout Standard
5388 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5391 \begin_layout Standard
5397 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5400 \begin_layout Standard
5406 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5409 \begin_layout Standard
5415 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5418 \begin_layout Standard
5432 \begin_layout Standard
5433 To reference a longtable, insert a label into the caption.
5434 Note that you have to add the label prefix
5435 \begin_inset Quotes eld
5443 \begin_inset Quotes eld
5446 manually in the label field.
5449 \begin_layout Standard
5450 This is a reference to Table\InsetSpace ~
5452 \begin_inset LatexCommand ref
5453 reference "tab:RefExample"
5460 \begin_layout Standard
5461 The caption layout can be set together with all other caption of your document
5462 using the LaTeX-package
5467 \begin_inset LatexCommand index
5468 name "LaTeX-packages ! caption"
5472 , see section\InsetSpace ~
5474 \begin_inset LatexCommand ref
5475 reference "sec:Caption-Formatting"
5482 \begin_layout Subsubsection
5484 \begin_inset LatexCommand index
5485 name "Longtables ! Caption Width"
5492 \begin_layout Standard
5493 The maximal width of of caption lines is defined by the length
5500 Its default value is 4\InsetSpace \thinspace{}
5502 To change it add the following command to your document preamble or as
5503 ERT into your document before the longtable that should be affected
5506 \begin_layout Standard
5516 \begin_layout Standard
5517 where the width could have one of the units listed in appendix\InsetSpace ~
5519 \begin_inset LatexCommand ref
5520 reference "cha:Units-available-in"
5527 \begin_layout Standard
5528 The following tables show the difference:
5531 \begin_layout Standard
5532 \begin_inset Tabular
5533 <lyxtabular version="3" rows="6" columns="5">
5534 <features islongtable="true">
5535 <column alignment="center" valignment="top" leftline="true" width="0">
5536 <column alignment="center" valignment="top" leftline="true" width="0">
5537 <column alignment="center" valignment="top" leftline="true" width="0">
5538 <column alignment="center" valignment="top" leftline="true" width="0">
5539 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5541 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5544 \begin_layout Standard
5545 \begin_inset Caption
5547 \begin_layout Standard
5548 long full title with default width long full title with default width long
5549 full title with default width
5553 \begin_layout Standard
5554 caption with default width
5568 \begin_layout Standard
5584 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5587 \begin_layout Standard
5593 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5596 \begin_layout Standard
5602 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5605 \begin_layout Standard
5611 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5614 \begin_layout Standard
5621 <row topline="true">
5622 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5625 \begin_layout Standard
5631 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5634 \begin_layout Standard
5640 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5643 \begin_layout Standard
5649 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5652 \begin_layout Standard
5658 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5661 \begin_layout Standard
5668 <row topline="true">
5669 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5672 \begin_layout Standard
5678 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5681 \begin_layout Standard
5687 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5690 \begin_layout Standard
5696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5699 \begin_layout Standard
5705 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5708 \begin_layout Standard
5715 <row topline="true">
5716 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5719 \begin_layout Standard
5725 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5728 \begin_layout Standard
5734 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5737 \begin_layout Standard
5743 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5746 \begin_layout Standard
5752 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5755 \begin_layout Standard
5762 <row topline="true">
5763 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5766 \begin_layout Standard
5772 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5775 \begin_layout Standard
5781 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5784 \begin_layout Standard
5790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5793 \begin_layout Standard
5799 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5802 \begin_layout Standard
5809 <row topline="true" bottomline="true">
5810 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5813 \begin_layout Standard
5819 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5822 \begin_layout Standard
5828 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5831 \begin_layout Standard
5837 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5840 \begin_layout Standard
5846 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5849 \begin_layout Standard
5863 \begin_layout Standard
5867 \begin_layout Standard
5879 \begin_inset Tabular
5880 <lyxtabular version="3" rows="6" columns="5">
5881 <features islongtable="true">
5882 <column alignment="center" valignment="top" leftline="true" width="0">
5883 <column alignment="center" valignment="top" leftline="true" width="0">
5884 <column alignment="center" valignment="top" leftline="true" width="0">
5885 <column alignment="center" valignment="top" leftline="true" width="0">
5886 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5891 \begin_layout Standard
5892 \begin_inset Caption
5894 \begin_layout Standard
5895 long full title with width set to 5\InsetSpace \thinspace{}
5896 cm long full title with width set to
5897 5\InsetSpace \thinspace{}
5898 cm long full title with width set to 5\InsetSpace \thinspace{}
5903 \begin_layout Standard
5904 caption with width\InsetSpace \thinspace{}
5905 =\InsetSpace \thinspace{}
5906 5\InsetSpace \thinspace{}
5921 \begin_layout Standard
5937 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5940 \begin_layout Standard
5946 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5949 \begin_layout Standard
5955 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5958 \begin_layout Standard
5964 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5967 \begin_layout Standard
5974 <row topline="true">
5975 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5978 \begin_layout Standard
5984 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5987 \begin_layout Standard
5993 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5996 \begin_layout Standard
6002 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6005 \begin_layout Standard
6011 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6014 \begin_layout Standard
6021 <row topline="true">
6022 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6025 \begin_layout Standard
6031 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6034 \begin_layout Standard
6040 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6043 \begin_layout Standard
6049 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6052 \begin_layout Standard
6058 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6061 \begin_layout Standard
6068 <row topline="true">
6069 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6072 \begin_layout Standard
6078 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6081 \begin_layout Standard
6087 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6090 \begin_layout Standard
6096 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6099 \begin_layout Standard
6105 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6108 \begin_layout Standard
6115 <row topline="true">
6116 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6119 \begin_layout Standard
6125 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6128 \begin_layout Standard
6134 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6137 \begin_layout Standard
6143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6146 \begin_layout Standard
6152 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6155 \begin_layout Standard
6162 <row topline="true" bottomline="true">
6163 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6166 \begin_layout Standard
6172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6175 \begin_layout Standard
6181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6184 \begin_layout Standard
6190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6193 \begin_layout Standard
6199 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6202 \begin_layout Standard
6217 \begin_layout Standard
6231 \begin_layout Standard
6235 \begin_layout Subsubsection
6236 Different Captions for Table Pages
6237 \begin_inset LatexCommand index
6238 name "Longtables ! Different Captions for Pages"
6245 \begin_layout Standard
6246 When the other captions should differ from the one of the first table page,
6247 insert a caption with a non-empty short title in a dummy caption row marked
6249 The caption used for the other table pages is inserted as caption without
6250 a short title in a dummy caption row that is marked as main header.
6251 When this caption shouldn't include the table number, use the command
6254 \begin_layout Standard
6259 caption*{caption text}
6262 \begin_layout Standard
6263 instead of LyX's caption box.
6264 The label to reference the table is inserted into the caption of the first
6268 \begin_inset LatexCommand ref
6269 reference "tab:DiffCaptions"
6273 is an example for a longtable with different heading where the second caption
6274 doesn't include the table number.
6277 \begin_layout Standard
6279 \begin_inset Tabular
6280 <lyxtabular version="3" rows="60" columns="3">
6281 <features islongtable="true">
6282 <column alignment="left" valignment="top" leftline="true" width="0cm">
6283 <column alignment="left" valignment="top" rightline="true" width="0pt">
6284 <column alignment="right" valignment="top" rightline="true" width="0pt">
6285 <row endfirsthead="true">
6286 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6289 \begin_layout Standard
6290 \begin_inset Caption
6292 \begin_layout Standard
6294 \begin_inset LatexCommand label
6295 name "tab:DiffCaptions"
6303 \begin_layout Standard
6318 \begin_layout Standard
6334 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6337 \begin_layout Standard
6343 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6346 \begin_layout Standard
6353 <row topline="true" bottomline="true" endfirsthead="true">
6354 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6357 \begin_layout Standard
6360 Example Phone List (ignore the names)
6365 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6368 \begin_layout Standard
6374 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6377 \begin_layout Standard
6384 <row topline="true" bottomline="true" endfirsthead="true">
6385 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6388 \begin_layout Standard
6396 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6399 \begin_layout Standard
6405 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6408 \begin_layout Standard
6417 <row bottomline="true" endhead="true">
6418 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6421 \begin_layout Standard
6425 \begin_layout Standard
6429 caption*{Continued Example Phone List}
6443 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6446 \begin_layout Standard
6452 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6455 \begin_layout Standard
6462 <row topline="true" bottomline="true" endhead="true">
6463 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6466 \begin_layout Standard
6474 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6477 \begin_layout Standard
6483 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6486 \begin_layout Standard
6493 <row topline="true" bottomline="true" endhead="true">
6494 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6497 \begin_layout Standard
6505 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6508 \begin_layout Standard
6514 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6517 \begin_layout Standard
6526 <row topline="true" bottomline="true" endfoot="true">
6527 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
6530 \begin_layout Standard
6531 continued on next page
6536 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6539 \begin_layout Standard
6545 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6548 \begin_layout Standard
6556 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6559 \begin_layout Standard
6567 <cell alignment="center" valignment="top" topline="true" usebox="none">
6570 \begin_layout Standard
6576 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6579 \begin_layout Standard
6587 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6590 \begin_layout Standard
6598 <cell alignment="center" valignment="top" topline="true" usebox="none">
6601 \begin_layout Standard
6607 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6610 \begin_layout Standard
6618 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6621 \begin_layout Standard
6629 <cell alignment="center" valignment="top" topline="true" usebox="none">
6632 \begin_layout Standard
6638 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6641 \begin_layout Standard
6649 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6652 \begin_layout Standard
6660 <cell alignment="center" valignment="top" topline="true" usebox="none">
6663 \begin_layout Standard
6669 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6672 \begin_layout Standard
6680 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6683 \begin_layout Standard
6691 <cell alignment="center" valignment="top" topline="true" usebox="none">
6694 \begin_layout Standard
6700 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6703 \begin_layout Standard
6711 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6714 \begin_layout Standard
6722 <cell alignment="center" valignment="top" topline="true" usebox="none">
6725 \begin_layout Standard
6731 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6734 \begin_layout Standard
6742 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6745 \begin_layout Standard
6753 <cell alignment="center" valignment="top" topline="true" usebox="none">
6756 \begin_layout Standard
6762 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6765 \begin_layout Standard
6773 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6776 \begin_layout Standard
6784 <cell alignment="center" valignment="top" topline="true" usebox="none">
6787 \begin_layout Standard
6793 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6796 \begin_layout Standard
6804 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6807 \begin_layout Standard
6815 <cell alignment="center" valignment="top" topline="true" usebox="none">
6818 \begin_layout Standard
6824 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6827 \begin_layout Standard
6835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6838 \begin_layout Standard
6846 <cell alignment="center" valignment="top" topline="true" usebox="none">
6849 \begin_layout Standard
6855 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6858 \begin_layout Standard
6866 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6869 \begin_layout Standard
6877 <cell alignment="center" valignment="top" topline="true" usebox="none">
6880 \begin_layout Standard
6886 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6889 \begin_layout Standard
6897 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6900 \begin_layout Standard
6908 <cell alignment="center" valignment="top" topline="true" usebox="none">
6911 \begin_layout Standard
6917 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6920 \begin_layout Standard
6928 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6931 \begin_layout Standard
6939 <cell alignment="center" valignment="top" topline="true" usebox="none">
6942 \begin_layout Standard
6948 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6951 \begin_layout Standard
6959 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6962 \begin_layout Standard
6970 <cell alignment="center" valignment="top" topline="true" usebox="none">
6973 \begin_layout Standard
6979 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6982 \begin_layout Standard
6990 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6993 \begin_layout Standard
7002 \begin_layout Standard
7013 <cell alignment="center" valignment="top" topline="true" usebox="none">
7016 \begin_layout Standard
7022 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7025 \begin_layout Standard
7033 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7036 \begin_layout Standard
7044 <cell alignment="center" valignment="top" topline="true" usebox="none">
7047 \begin_layout Standard
7053 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7056 \begin_layout Standard
7064 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7067 \begin_layout Standard
7075 <cell alignment="center" valignment="top" topline="true" usebox="none">
7078 \begin_layout Standard
7084 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7087 \begin_layout Standard
7095 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7098 \begin_layout Standard
7106 <cell alignment="center" valignment="top" topline="true" usebox="none">
7109 \begin_layout Standard
7115 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7118 \begin_layout Standard
7126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7129 \begin_layout Standard
7137 <cell alignment="center" valignment="top" topline="true" usebox="none">
7140 \begin_layout Standard
7146 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7149 \begin_layout Standard
7157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7160 \begin_layout Standard
7168 <cell alignment="center" valignment="top" topline="true" usebox="none">
7171 \begin_layout Standard
7177 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7180 \begin_layout Standard
7188 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7191 \begin_layout Standard
7199 <cell alignment="center" valignment="top" topline="true" usebox="none">
7202 \begin_layout Standard
7208 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7211 \begin_layout Standard
7219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7222 \begin_layout Standard
7230 <cell alignment="center" valignment="top" topline="true" usebox="none">
7233 \begin_layout Standard
7239 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7242 \begin_layout Standard
7250 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7253 \begin_layout Standard
7261 <cell alignment="center" valignment="top" topline="true" usebox="none">
7264 \begin_layout Standard
7270 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7273 \begin_layout Standard
7281 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7284 \begin_layout Standard
7292 <cell alignment="center" valignment="top" topline="true" usebox="none">
7295 \begin_layout Standard
7301 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7304 \begin_layout Standard
7312 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7315 \begin_layout Standard
7323 <cell alignment="center" valignment="top" topline="true" usebox="none">
7326 \begin_layout Standard
7332 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7335 \begin_layout Standard
7343 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7346 \begin_layout Standard
7354 <cell alignment="center" valignment="top" topline="true" usebox="none">
7357 \begin_layout Standard
7363 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7366 \begin_layout Standard
7374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7377 \begin_layout Standard
7385 <cell alignment="center" valignment="top" topline="true" usebox="none">
7388 \begin_layout Standard
7394 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7397 \begin_layout Standard
7405 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7408 \begin_layout Standard
7416 <cell alignment="center" valignment="top" topline="true" usebox="none">
7419 \begin_layout Standard
7425 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7428 \begin_layout Standard
7436 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7439 \begin_layout Standard
7447 <cell alignment="center" valignment="top" topline="true" usebox="none">
7450 \begin_layout Standard
7456 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7459 \begin_layout Standard
7467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7470 \begin_layout Standard
7478 <cell alignment="center" valignment="top" topline="true" usebox="none">
7481 \begin_layout Standard
7487 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7490 \begin_layout Standard
7497 <row bottomline="true">
7498 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7501 \begin_layout Standard
7509 <cell alignment="center" valignment="top" topline="true" usebox="none">
7512 \begin_layout Standard
7518 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7521 \begin_layout Standard
7528 <row bottomline="true">
7529 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7532 \begin_layout Standard
7538 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
7541 \begin_layout Standard
7547 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7550 \begin_layout Standard
7558 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7561 \begin_layout Standard
7569 <cell alignment="center" valignment="top" topline="true" usebox="none">
7572 \begin_layout Standard
7578 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7581 \begin_layout Standard
7589 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7592 \begin_layout Standard
7600 <cell alignment="center" valignment="top" topline="true" usebox="none">
7603 \begin_layout Standard
7609 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7612 \begin_layout Standard
7620 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7623 \begin_layout Standard
7631 <cell alignment="center" valignment="top" topline="true" usebox="none">
7634 \begin_layout Standard
7640 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7643 \begin_layout Standard
7651 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7654 \begin_layout Standard
7662 <cell alignment="center" valignment="top" topline="true" usebox="none">
7665 \begin_layout Standard
7671 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7674 \begin_layout Standard
7682 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7685 \begin_layout Standard
7693 <cell alignment="center" valignment="top" topline="true" usebox="none">
7696 \begin_layout Standard
7702 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7705 \begin_layout Standard
7713 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7716 \begin_layout Standard
7724 <cell alignment="center" valignment="top" topline="true" usebox="none">
7727 \begin_layout Standard
7733 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7736 \begin_layout Standard
7744 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7747 \begin_layout Standard
7755 <cell alignment="center" valignment="top" topline="true" usebox="none">
7758 \begin_layout Standard
7764 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7767 \begin_layout Standard
7775 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7778 \begin_layout Standard
7786 <cell alignment="center" valignment="top" topline="true" usebox="none">
7789 \begin_layout Standard
7795 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7798 \begin_layout Standard
7806 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7809 \begin_layout Standard
7817 <cell alignment="center" valignment="top" topline="true" usebox="none">
7820 \begin_layout Standard
7826 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7829 \begin_layout Standard
7837 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7840 \begin_layout Standard
7848 <cell alignment="center" valignment="top" topline="true" usebox="none">
7851 \begin_layout Standard
7857 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7860 \begin_layout Standard
7868 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7871 \begin_layout Standard
7879 <cell alignment="center" valignment="top" topline="true" usebox="none">
7882 \begin_layout Standard
7888 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7891 \begin_layout Standard
7899 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7902 \begin_layout Standard
7910 <cell alignment="center" valignment="top" topline="true" usebox="none">
7913 \begin_layout Standard
7919 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7922 \begin_layout Standard
7930 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7933 \begin_layout Standard
7941 <cell alignment="center" valignment="top" topline="true" usebox="none">
7944 \begin_layout Standard
7950 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7953 \begin_layout Standard
7961 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7964 \begin_layout Standard
7972 <cell alignment="center" valignment="top" topline="true" usebox="none">
7975 \begin_layout Standard
7981 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7984 \begin_layout Standard
7992 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7995 \begin_layout Standard
8003 <cell alignment="center" valignment="top" topline="true" usebox="none">
8006 \begin_layout Standard
8012 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8015 \begin_layout Standard
8023 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8026 \begin_layout Standard
8034 <cell alignment="center" valignment="top" topline="true" usebox="none">
8037 \begin_layout Standard
8043 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8046 \begin_layout Standard
8054 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8057 \begin_layout Standard
8065 <cell alignment="center" valignment="top" topline="true" usebox="none">
8068 \begin_layout Standard
8074 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8077 \begin_layout Standard
8085 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8088 \begin_layout Standard
8096 <cell alignment="center" valignment="top" topline="true" usebox="none">
8099 \begin_layout Standard
8105 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8108 \begin_layout Standard
8116 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8119 \begin_layout Standard
8127 <cell alignment="center" valignment="top" topline="true" usebox="none">
8130 \begin_layout Standard
8136 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8139 \begin_layout Standard
8146 <row bottomline="true">
8147 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8150 \begin_layout Standard
8158 <cell alignment="center" valignment="top" topline="true" usebox="none">
8161 \begin_layout Standard
8167 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8170 \begin_layout Standard
8177 <row bottomline="true" endlastfoot="true">
8178 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
8181 \begin_layout Standard
8187 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8190 \begin_layout Standard
8196 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8199 \begin_layout Standard
8213 \begin_layout Section
8214 Special Longtable Issues
8215 \begin_inset LatexCommand label
8216 name "sec:Special-Longtable-Issues"
8223 \begin_layout Subsection
8224 Longtable Calculation
8225 \begin_inset LatexCommand index
8226 name "Longtables ! Calculation"
8233 \begin_layout Standard
8234 LaTeX calculates the height of table pages and their page breaks using so
8236 Chunks are pieces of the tables that are at once in LaTeX's memory.
8237 The default value is historically set to only 20 table rows.
8238 If you are using longtables with many pages this may slow down the creation
8240 You can safely increase the chunk size to values of 100-1000 by adding
8241 this command line to your document preamble:
8244 \begin_layout Standard
8249 setcounter{LTchunksize}{100}
8252 \begin_layout Subsection
8253 Floats and Longtables
8254 \begin_inset LatexCommand index
8255 name "Longtables ! Floats"
8262 \begin_layout Standard
8263 There might be problems when a float appears on the same page where a longtable
8265 To avoid such situation, add the command
8271 as ERT before your longtable.
8274 \begin_layout Subsection
8276 \begin_inset LatexCommand index
8277 name "Longtables ! Forced Page Breaks"
8284 \begin_layout Standard
8285 By default tables are only broken between rows.
8286 If you have a cell with multiples lines and want to have a page break within
8287 the cell, insert the new line command
8288 \begin_inset Quotes eld
8300 \begin_inset Quotes erd
8303 as ERT at this point of the cell where it should be broken.
8312 command you have to insert in ERT so many
8313 \begin_inset Quotes eld
8321 \begin_inset Quotes erd
8324 characters like the number of the following table columns.
8329 is the character to separate table cells.
8330 Write in ERT after each
8334 the content of the corresponding following cell and delete the content
8345 command, insert so many
8349 characters like the number of table columns before the current column.
8350 In Table\InsetSpace ~
8352 \begin_inset LatexCommand ref
8353 reference "tab:ForcedPagebreak"
8357 the cell that should be broken is in the second column followed by another
8359 Therefore the following command was inserted in the cell as ERT behind
8361 \begin_inset Quotes eld
8369 \begin_inset Quotes erd
8375 \begin_layout Standard
8387 \begin_layout Standard
8389 \begin_inset Quotes eld
8393 \begin_inset Quotes erd
8396 in the third columns of the row was deleted.
8397 If your footer row of the longtable has for a certain reason no upper line
8398 but you would have a horizontal line where the cell is broken, use this
8402 \begin_layout Standard
8416 \begin_layout Standard
8417 When the cell to be broken is in the last column, the command
8420 \begin_layout Standard
8427 parf\SpecialChar \textcompwordmark{}
8431 \begin_layout Standard
8432 must be inserted as ERT at the beginning of the cell.
8433 This assures that the part of the cell that will be displayed on the new
8434 page appears with the full width.
8438 \begin_layout Standard
8440 \begin_inset Tabular
8441 <lyxtabular version="3" rows="39" columns="3">
8442 <features islongtable="true">
8443 <column alignment="left" valignment="top" leftline="true" width="0cm">
8444 <column alignment="left" valignment="top" rightline="true" width="3cm">
8445 <column alignment="right" valignment="top" rightline="true" width="0pt">
8446 <row endfirsthead="true">
8447 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8450 \begin_layout Standard
8451 \begin_inset Caption
8453 \begin_layout Standard
8454 Table with forced page break in table cell
8455 \begin_inset LatexCommand label
8456 name "tab:ForcedPagebreak"
8464 \begin_layout Standard
8465 Table with forced page break in table cell
8479 \begin_layout Standard
8495 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8498 \begin_layout Standard
8504 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8507 \begin_layout Standard
8514 <row topline="true" bottomline="true" endfirsthead="true">
8515 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8518 \begin_layout Standard
8521 Example Phone List (ignore the names)
8526 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8529 \begin_layout Standard
8535 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8538 \begin_layout Standard
8545 <row topline="true" bottomline="true" endfirsthead="true">
8546 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8549 \begin_layout Standard
8557 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8560 \begin_layout Standard
8566 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8569 \begin_layout Standard
8578 <row bottomline="true" endhead="true">
8579 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8582 \begin_layout Standard
8586 \begin_layout Standard
8590 caption*{Continued table with forced page break in table cell}
8604 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8607 \begin_layout Standard
8613 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8616 \begin_layout Standard
8623 <row topline="true" bottomline="true" endhead="true">
8624 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8627 \begin_layout Standard
8635 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8638 \begin_layout Standard
8644 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8647 \begin_layout Standard
8654 <row topline="true" bottomline="true" endhead="true">
8655 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8658 \begin_layout Standard
8666 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8669 \begin_layout Standard
8675 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8678 \begin_layout Standard
8687 <row topline="true" bottomline="true" endfoot="true">
8688 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
8691 \begin_layout Standard
8692 continued on next page
8697 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8700 \begin_layout Standard
8706 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8709 \begin_layout Standard
8717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8720 \begin_layout Standard
8728 <cell alignment="center" valignment="top" topline="true" usebox="none">
8731 \begin_layout Standard
8737 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8740 \begin_layout Standard
8748 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8751 \begin_layout Standard
8759 <cell alignment="center" valignment="top" topline="true" usebox="none">
8762 \begin_layout Standard
8768 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8771 \begin_layout Standard
8779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8782 \begin_layout Standard
8790 <cell alignment="center" valignment="top" topline="true" usebox="none">
8793 \begin_layout Standard
8799 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8802 \begin_layout Standard
8810 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8813 \begin_layout Standard
8821 <cell alignment="center" valignment="top" topline="true" usebox="none">
8824 \begin_layout Standard
8830 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8833 \begin_layout Standard
8841 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8844 \begin_layout Standard
8852 <cell alignment="center" valignment="top" topline="true" usebox="none">
8855 \begin_layout Standard
8861 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8864 \begin_layout Standard
8872 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8875 \begin_layout Standard
8883 <cell alignment="center" valignment="top" topline="true" usebox="none">
8886 \begin_layout Standard
8892 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8895 \begin_layout Standard
8903 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8906 \begin_layout Standard
8914 <cell alignment="center" valignment="top" topline="true" usebox="none">
8917 \begin_layout Standard
8923 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8926 \begin_layout Standard
8934 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8937 \begin_layout Standard
8945 <cell alignment="center" valignment="top" topline="true" usebox="none">
8948 \begin_layout Standard
8954 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8957 \begin_layout Standard
8965 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8968 \begin_layout Standard
8976 <cell alignment="center" valignment="top" topline="true" usebox="none">
8979 \begin_layout Standard
8985 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8988 \begin_layout Standard
8996 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8999 \begin_layout Standard
9007 <cell alignment="center" valignment="top" topline="true" usebox="none">
9010 \begin_layout Standard
9016 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9019 \begin_layout Standard
9027 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9030 \begin_layout Standard
9038 <cell alignment="center" valignment="top" topline="true" usebox="none">
9041 \begin_layout Standard
9047 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9050 \begin_layout Standard
9058 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9061 \begin_layout Standard
9069 <cell alignment="center" valignment="top" topline="true" usebox="none">
9072 \begin_layout Standard
9078 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9081 \begin_layout Standard
9089 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9092 \begin_layout Standard
9100 <cell alignment="center" valignment="top" topline="true" usebox="none">
9103 \begin_layout Standard
9109 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9112 \begin_layout Standard
9120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9123 \begin_layout Standard
9131 <cell alignment="center" valignment="top" topline="true" usebox="none">
9134 \begin_layout Standard
9140 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9143 \begin_layout Standard
9151 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9154 \begin_layout Standard
9162 <cell alignment="center" valignment="top" topline="true" usebox="none">
9165 \begin_layout Standard
9171 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9174 \begin_layout Standard
9182 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9185 \begin_layout Standard
9193 <cell alignment="center" valignment="top" topline="true" usebox="none">
9196 \begin_layout Standard
9202 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9205 \begin_layout Standard
9213 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9216 \begin_layout Standard
9224 <cell alignment="center" valignment="top" topline="true" usebox="none">
9227 \begin_layout Standard
9233 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9236 \begin_layout Standard
9244 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9247 \begin_layout Standard
9255 <cell alignment="center" valignment="top" topline="true" usebox="none">
9258 \begin_layout Standard
9264 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9267 \begin_layout Standard
9275 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9278 \begin_layout Standard
9286 <cell alignment="center" valignment="top" topline="true" usebox="none">
9289 \begin_layout Standard
9295 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9298 \begin_layout Standard
9306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9309 \begin_layout Standard
9317 <cell alignment="center" valignment="top" topline="true" usebox="none">
9320 \begin_layout Standard
9326 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9329 \begin_layout Standard
9337 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9340 \begin_layout Standard
9348 <cell alignment="center" valignment="top" topline="true" usebox="none">
9351 \begin_layout Standard
9357 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9360 \begin_layout Standard
9368 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9371 \begin_layout Standard
9379 <cell alignment="center" valignment="top" topline="true" usebox="none">
9382 \begin_layout Standard
9388 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9391 \begin_layout Standard
9399 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9402 \begin_layout Standard
9410 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9413 \begin_layout Standard
9415 Fürst von Montecompatri, 11.
9416 Fürst von Sulmona und Vivaro, 10.
9417 Fürst von Rossano, 5.
9418 Herzog von Canemorte, 11.
9419 Herzog von Palombara, 5.
9420 Herzog von Castelchiodato,
9424 \begin_layout Standard
9433 \begin_layout Standard
9441 Herzog von Poggionativo, 11.
9442 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
9443 Graf von Valinfreda, 11.
9444 Baron von Cropalati, 11.
9445 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
9450 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9453 \begin_layout Standard
9461 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9464 \begin_layout Standard
9472 <cell alignment="center" valignment="top" topline="true" usebox="none">
9475 \begin_layout Standard
9481 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9484 \begin_layout Standard
9492 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9495 \begin_layout Standard
9503 <cell alignment="center" valignment="top" topline="true" usebox="none">
9506 \begin_layout Standard
9512 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9515 \begin_layout Standard
9523 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9526 \begin_layout Standard
9534 <cell alignment="center" valignment="top" topline="true" usebox="none">
9537 \begin_layout Standard
9543 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9546 \begin_layout Standard
9554 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9557 \begin_layout Standard
9565 <cell alignment="center" valignment="top" topline="true" usebox="none">
9568 \begin_layout Standard
9574 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9577 \begin_layout Standard
9585 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9588 \begin_layout Standard
9596 <cell alignment="center" valignment="top" topline="true" usebox="none">
9599 \begin_layout Standard
9605 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9608 \begin_layout Standard
9616 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9619 \begin_layout Standard
9627 <cell alignment="center" valignment="top" topline="true" usebox="none">
9630 \begin_layout Standard
9636 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9639 \begin_layout Standard
9647 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9650 \begin_layout Standard
9658 <cell alignment="center" valignment="top" topline="true" usebox="none">
9661 \begin_layout Standard
9667 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9670 \begin_layout Standard
9677 <row bottomline="true">
9678 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9681 \begin_layout Standard
9689 <cell alignment="center" valignment="top" topline="true" usebox="none">
9692 \begin_layout Standard
9698 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9701 \begin_layout Standard
9708 <row endlastfoot="true">
9709 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9712 \begin_layout Standard
9718 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9721 \begin_layout Standard
9727 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9730 \begin_layout Standard
9744 \begin_layout Section
9745 Multiple Lines Columns and Rows
9748 \begin_layout Subsection
9749 Multiple Lines in Table Cells
9750 \begin_inset LatexCommand label
9751 name "sub:Multiple-Lines-in"
9756 \begin_inset LatexCommand index
9757 name "Multiple Lines in Table Cells"
9762 \begin_inset LatexCommand index
9763 name "Table ! Linebreaks"
9770 \begin_layout Standard
9772 \begin_inset Float table
9778 \begin_layout Standard
9779 \begin_inset Caption
9781 \begin_layout Standard
9782 \begin_inset LatexCommand label
9783 name "tab:Table-with-multiple"
9787 Table with multiple lines in cells
9795 \begin_layout Standard
9797 \begin_inset Tabular
9798 <lyxtabular version="3" rows="3" columns="3">
9800 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
9801 <column alignment="center" valignment="middle" leftline="true" width="0.5cm">
9802 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0.5cm">
9803 <row topline="true">
9804 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9807 \begin_layout Standard
9812 \begin_layout Standard
9826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9829 \begin_layout Standard
9835 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9838 \begin_layout Standard
9845 <row topline="true">
9846 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9849 \begin_layout Standard
9855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9858 \begin_layout Standard
9864 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9867 \begin_layout Standard
9874 <row topline="true" bottomline="true">
9875 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9878 \begin_layout Standard
9884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9887 \begin_layout Standard
9893 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9896 \begin_layout Standard
9915 \begin_layout Standard
9916 Adjusting a fixed width for a column, enables to enter text as a paragraph
9917 with multiple lines and hyphenations.
9920 \begin_layout Standard
9921 To produce Table\InsetSpace ~
9923 \begin_inset LatexCommand ref
9924 reference "tab:Table-with-multiple"
9928 , create a 3×3 table, mark the first cell and right-click on it.
9929 In the appearing table dialog we set a cell width of 2.5\InsetSpace \thinspace{}
9930 cm and choose centered
9931 for the vertical and horizontal alignment.
9932 As our text is smaller than than 2.5\InsetSpace \thinspace{}
9933 cm, only one line will appear.
9934 To get two lines, we add a line break with the command
9937 \begin_layout Standard
9945 \begin_layout Standard
9947 If the text is wider than the set cell width it will automatically be broken
9951 \begin_layout Standard
9952 To center the text inside the two other cells of the first row vertically,
9953 right-click in the second cell, adjust a fixed width of 0.5\InsetSpace \thinspace{}
9955 centered alignments.
9956 Then do the same for the third cell of the row.
9959 \begin_layout Standard
9960 If you have a long word in a cell with a fixed width, it cannot be hyphenated
9961 by LaTeX if it is the first entry.
9962 Therefore you need to insert something, to make the word not being the
9963 first entry: Add the command
9966 \begin_layout Standard
9974 \begin_layout Standard
9975 in ERT before the word.
9976 As the space is zero, it doesn't change the output.
9979 \begin_inset LatexCommand ref
9980 reference "tab:Table-with-and"
9987 \begin_layout Standard
9988 \begin_inset Float table
9993 \begin_layout Standard
9994 \begin_inset Caption
9996 \begin_layout Standard
9997 \begin_inset LatexCommand label
9998 name "tab:Table-with-and"
10002 Table with and without hyphenation
10010 \begin_layout Standard
10014 \begin_inset Tabular
10015 <lyxtabular version="3" rows="3" columns="3">
10017 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10018 <column alignment="center" valignment="middle" leftline="true" width="0.5cm">
10019 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0.5cm">
10020 <row topline="true">
10021 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10024 \begin_layout Standard
10025 verylongtablecellword
10030 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10033 \begin_layout Standard
10039 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10042 \begin_layout Standard
10049 <row topline="true">
10050 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10053 \begin_layout Standard
10059 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10062 \begin_layout Standard
10068 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10071 \begin_layout Standard
10078 <row topline="true" bottomline="true">
10079 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10082 \begin_layout Standard
10088 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10091 \begin_layout Standard
10097 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10100 \begin_layout Standard
10114 \begin_inset Tabular
10115 <lyxtabular version="3" rows="3" columns="3">
10117 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10118 <column alignment="center" valignment="middle" leftline="true" width="0.5cm">
10119 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0.5cm">
10120 <row topline="true">
10121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10124 \begin_layout Standard
10128 \begin_layout Standard
10137 verylongtablecellword
10142 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10145 \begin_layout Standard
10151 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10154 \begin_layout Standard
10161 <row topline="true">
10162 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10165 \begin_layout Standard
10171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10174 \begin_layout Standard
10180 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10183 \begin_layout Standard
10190 <row topline="true" bottomline="true">
10191 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10194 \begin_layout Standard
10200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10203 \begin_layout Standard
10209 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10212 \begin_layout Standard
10233 \begin_layout Standard
10239 \begin_layout Subsection
10241 \begin_inset LatexCommand label
10242 name "sub:Multicolumns"
10247 \begin_inset LatexCommand index
10248 name "Multicolumns"
10253 \begin_inset LatexCommand index
10254 name "Table ! Multicolumns"
10261 \begin_layout Subsubsection
10265 \begin_layout Standard
10266 To span a cell over multiple columns, mark as much cells within a line that
10267 should be one spanned cell and use either the table-toolbar button
10268 \begin_inset Graphics
10269 filename ../images/tabular-feature_multicolumn.xpm
10276 Edit\SpecialChar \menuseparator
10277 Table\SpecialChar \menuseparator
10280 , or right click on the marked cells and choose multicolumn in the appearing
10281 table dialog under the tab
10288 \begin_layout Standard
10289 Multicolumns have there own cell settings.
10290 That means changing cell borders, cell alignment, and the width only affects
10292 Here is an example table with a multicolumn cell in the first row and one
10293 in the last row without the upper border:
10296 \begin_layout Standard
10298 \begin_inset Tabular
10299 <lyxtabular version="3" rows="3" columns="4">
10300 <features firstHeadTopDL="true" firstHeadBottomDL="true">
10301 <column alignment="center" valignment="top" leftline="true" width="0pt">
10302 <column alignment="center" valignment="middle" leftline="true" width="0">
10303 <column alignment="center" valignment="top" leftline="true" width="0in">
10304 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
10305 <row topline="true" bottomline="true">
10306 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10309 \begin_layout Standard
10315 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
10318 \begin_layout Standard
10328 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10331 \begin_layout Standard
10337 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10340 \begin_layout Standard
10347 <row topline="true">
10348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10351 \begin_layout Standard
10366 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10369 \begin_layout Standard
10375 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10378 \begin_layout Standard
10384 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10387 \begin_layout Standard
10394 <row topline="true" bottomline="true">
10395 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10398 \begin_layout Standard
10404 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10407 \begin_layout Standard
10413 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10416 \begin_layout Standard
10422 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10425 \begin_layout Standard
10439 \begin_layout Subsubsection
10440 Multicolumn Calculations
10441 \begin_inset LatexCommand label
10442 name "sub:Multicolumn-Calculations"
10447 \begin_inset LatexCommand index
10448 name "Multicolumns ! Calculations"
10455 \begin_layout Standard
10456 LyX supports multicolumns directly, but we have to take notice of the cell
10457 width of the columns spanned by the multicolumn cell.
10460 \begin_layout Standard
10461 \begin_inset Float table
10466 \begin_layout Standard
10467 \begin_inset Caption
10469 \begin_layout Standard
10470 \begin_inset LatexCommand label
10471 name "tab:Table-with-centered"
10475 Table with centered multicolumn text above two columns that have exactly
10476 half the width of the multicolumn cell
10477 \begin_inset OptArg
10480 \begin_layout Standard
10481 Perfect multicolumn table
10494 \begin_layout Standard
10496 \begin_inset Tabular
10497 <lyxtabular version="3" rows="3" columns="3">
10499 <column alignment="center" valignment="middle" leftline="true" width="0" special="|>{\centering}m{1.25cm-6.2pt}">
10500 <column alignment="center" valignment="middle" leftline="true" width="0">
10501 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10502 <row topline="true">
10503 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special="|>{\centering}m{2.5cm}|">
10506 \begin_layout Standard
10507 multiple lines multicolumn
10512 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10515 \begin_layout Standard
10521 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10524 \begin_layout Standard
10531 <row topline="true">
10532 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10535 \begin_layout Standard
10541 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10544 \begin_layout Standard
10550 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10553 \begin_layout Standard
10560 <row topline="true" bottomline="true">
10561 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10564 \begin_layout Standard
10570 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10573 \begin_layout Standard
10579 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10582 \begin_layout Standard
10601 \begin_layout Standard
10602 To create for example Table\InsetSpace ~
10604 \begin_inset LatexCommand ref
10605 reference "tab:Table-with-centered"
10609 , mark the first two cells in the first row a 3×3 table and right-click
10611 Now choose for this cell
10619 and a width of 2.5\InsetSpace \thinspace{}
10620 cm in the table dialog.
10621 The spanned columns should have exactly half the width of the multicolumn
10622 cell, so that you would adjust a width of 1.25\InsetSpace \thinspace{}
10623 cm for the first column.
10624 The second column has then automatically a width of 1.25\InsetSpace \thinspace{}
10626 width - width of first column).
10627 This was done for Table\InsetSpace ~
10629 \begin_inset LatexCommand ref
10630 reference "tab:Table-without-half"
10637 \begin_layout Standard
10638 \begin_inset Float table
10643 \begin_layout Standard
10644 \begin_inset Caption
10646 \begin_layout Standard
10647 \begin_inset LatexCommand label
10648 name "tab:Table-without-half"
10652 Table where the spanned table columns have not exactly half the width of
10653 the multicolumn cell
10654 \begin_inset OptArg
10657 \begin_layout Standard
10658 Imperfect multicolumn table
10671 \begin_layout Standard
10673 \begin_inset Tabular
10674 <lyxtabular version="3" rows="3" columns="3">
10676 <column alignment="center" valignment="top" leftline="true" width="1.25cm">
10677 <column alignment="center" valignment="top" leftline="true" width="0">
10678 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10679 <row topline="true" bottomline="true">
10680 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
10683 \begin_layout Standard
10684 multiple lines multicolumn
10689 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10692 \begin_layout Standard
10698 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10701 \begin_layout Standard
10708 <row topline="true">
10709 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10712 \begin_layout Standard
10718 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10721 \begin_layout Standard
10727 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10730 \begin_layout Standard
10737 <row topline="true" bottomline="true">
10738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10741 \begin_layout Standard
10747 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10750 \begin_layout Standard
10756 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10759 \begin_layout Standard
10778 \begin_layout Standard
10779 You can see that the first column has not the half width of the multicolumn
10780 cell, it is a bit bigger.
10781 The reason is that the given width of a cell
10782 \begin_inset Formula $W_{g}$
10785 is not its total width
10786 \begin_inset Formula $W_{\mathrm{tot}}$
10789 because a cell is always a bit larger than its given width.
10790 Appendix\InsetSpace ~
10792 \begin_inset LatexCommand eqref
10793 reference "cha:Explanation-of-Equation"
10797 explains it in detail.
10800 \begin_layout Standard
10801 The needed given width
10802 \begin_inset Formula $W_{g\, n}$
10809 columns are spanned columns can be calculated, so that each column has
10811 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
10815 \begin_inset Formula \begin{equation}
10816 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)·(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
10823 \begin_layout Standard
10824 In our case we have
10825 \begin_inset Formula $n=2$
10829 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
10832 cm and the default values for the lengths, so that equation
10833 \begin_inset LatexCommand ref
10839 \begin_inset Formula \begin{equation}
10840 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
10847 \begin_layout Standard
10848 To enable calculations in LaTeX, the LaTeX-package
10852 must be loaded with the document preamble line
10853 \begin_inset LatexCommand index
10854 name "LaTeX-packages ! calc"
10861 \begin_layout Standard
10869 \begin_layout Standard
10870 LyX does not allow to calculate lengths in the width-field of the table
10872 Therefore you have to format the column by inserting a LaTeX-argument in
10874 Here is an overview about the arguments:
10877 \begin_layout Itemize
10882 creates cell with a fixed width, its text is vertically top-aligned
10885 \begin_layout Itemize
10890 creates cell with a fixed width, its text is vertically centered
10893 \begin_layout Itemize
10898 creates cell with a fixed width, its text is vertically bottom-aligned
10901 \begin_layout Standard
10902 By entering a LaTeX-argument, all cell properties set in the table dialog
10905 \begin_inset Note Greyedout
10908 \begin_layout Standard
10913 Due to a bug, LyX shows the overwritten properties anyway.
10918 As the text should be horizontally centered, the command
10925 You can now enter the following LaTeX-argument for the first spanned column:
10928 \begin_layout Standard
10933 centering}m{1.25cm-6.2pt}
10936 \begin_layout Standard
10938 \begin_inset Quotes eld
10946 \begin_inset Quotes erd
10949 at the beginning draws the border line and the command
10953 means, that the commands inside the braces are applied before the cell
10957 \begin_layout Standard
10958 Although we have chosen centered alignment for the text of the multicolumn
10959 cell, it is still left aligned.
10960 This is because LyX only applies the alignment to single columns.
10961 So we have to use for the multicolumn the LaTeX-argument
10964 \begin_layout Standard
10969 centering}m{2.5cm}|
10972 \begin_layout Subsection
10974 \begin_inset LatexCommand index
10980 \begin_inset LatexCommand index
10981 name "Table ! Multirows"
10986 \begin_inset LatexCommand index
10987 name "LaTeX-packages ! multirow"
10994 \begin_layout Standard
10995 In contrary to multicolumns multirows are not yet supported by LyX so a
10996 bit of ERT needs to be used.
10997 To use multirows load the LaTeX-package
11001 in your document preamble with the command
11004 \begin_layout Standard
11009 usepackage{multirow}
11012 \begin_layout Standard
11013 Multirows are created with the command
11016 \begin_layout Standard
11021 multirow{number of rows}{cell width}{cell entry}
11024 \begin_layout Standard
11025 To create the following table:
11028 \begin_layout Standard
11033 \begin_layout Standard
11047 \begin_inset Tabular
11048 <lyxtabular version="3" rows="3" columns="3">
11050 <column alignment="center" valignment="top" leftline="true" width="0">
11051 <column alignment="center" valignment="top" leftline="true" width="0">
11052 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
11053 <row topline="true">
11054 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11057 \begin_layout Standard
11063 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11066 \begin_layout Standard
11072 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11075 \begin_layout Standard
11082 <row topline="true">
11083 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11086 \begin_layout Standard
11090 \begin_layout Standard
11094 multirow{2}{2.5cm}{
11103 \begin_layout Standard
11115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11118 \begin_layout Standard
11124 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11127 \begin_layout Standard
11134 <row topline="true" bottomline="true">
11135 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11138 \begin_layout Standard
11144 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11147 \begin_layout Standard
11153 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11156 \begin_layout Standard
11171 \begin_layout Standard
11187 \begin_layout Standard
11188 create a 3×3 table.
11189 To get rid of the line above the last cell in the first column, the cell
11190 is marked as multicolumn and the upper border is unset.
11191 The multirow is now created in the second row of the first column by inserting
11195 \begin_layout Standard
11200 multirow{2}{2.5cm}{
11203 \begin_layout Standard
11205 According to the command parameters the multirow spans now two rows and
11206 has a width of 2.5\InsetSpace \thinspace{}
11208 The content of the multirow cell follows outside the ERT box and the command
11209 is finished with a right brace
11213 in another ERT-box behind the text.
11216 \begin_layout Standard
11223 left-aligns its content by default.
11224 To override the default, renew the command
11233 \begin_layout Standard
11245 \begin_layout Standard
11246 in ERT in the document preamble.
11247 Then all entries of multirow cells in the document are centered.
11248 If centering is only needed for several tables, you can renew the command
11249 in an ERT box just before the table instead of the preamble.
11250 If the text should be right-aligned, replace
11263 To return to left-alignment
11272 \begin_layout Section
11274 \begin_inset LatexCommand label
11275 name "sec:Formal-Tables"
11280 \begin_inset LatexCommand index
11281 name "Table ! Formal"
11288 \begin_layout Standard
11289 Tables are often typeset in books similar to Table\InsetSpace ~
11291 \begin_inset LatexCommand ref
11292 reference "tab:Example-booktabs-table"
11297 This kind of tables is called
11298 \begin_inset Quotes eld
11306 \begin_inset Quotes erd
11310 To make a table a formal table use the option
11318 tab of the table dialog.
11321 \begin_layout Standard
11322 \begin_inset Float table
11328 \begin_layout Standard
11329 \begin_inset Caption
11331 \begin_layout Standard
11332 \begin_inset LatexCommand label
11333 name "tab:Example-booktabs-table"
11337 Example booktabs-table
11345 \begin_layout Standard
11347 \begin_inset Tabular
11348 <lyxtabular version="3" rows="8" columns="4">
11349 <features booktabs="true">
11350 <column alignment="center" valignment="top" rightline="true" width="0">
11351 <column alignment="center" valignment="top" width="0">
11352 <column alignment="center" valignment="top" width="0">
11353 <column alignment="center" valignment="top" width="0">
11354 <row topline="true">
11355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11358 \begin_layout Standard
11364 <cell alignment="center" valignment="top" topline="true" usebox="none">
11367 \begin_layout Standard
11369 \begin_inset Formula $\,$
11377 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
11380 \begin_layout Standard
11382 \begin_inset Formula $\,$
11390 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11393 \begin_layout Standard
11401 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11404 \begin_layout Standard
11408 \begin_layout Standard
11421 \begin_layout Standard
11430 Detector thickness [µm]
11435 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11438 \begin_layout Standard
11444 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11447 \begin_layout Standard
11453 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11456 \begin_layout Standard
11463 <row topline="true">
11464 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11467 \begin_layout Standard
11473 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11476 \begin_layout Standard
11482 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11485 \begin_layout Standard
11491 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11494 \begin_layout Standard
11501 <row topspace="default">
11502 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11505 \begin_layout Standard
11506 Spatial resolution [µm]
11511 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11514 \begin_layout Standard
11520 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11523 \begin_layout Standard
11529 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11532 \begin_layout Standard
11539 <row topspace="default">
11540 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11543 \begin_layout Standard
11545 \begin_inset Formula $f_{\mathrm{max}}$
11553 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11556 \begin_layout Standard
11562 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11565 \begin_layout Standard
11571 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11574 \begin_layout Standard
11581 <row topspace="default">
11582 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11585 \begin_layout Standard
11589 \begin_layout Standard
11593 cmidrule(l{10pt}){1-1}
11598 LSF-spatial resolution
11603 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11606 \begin_layout Standard
11612 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11615 \begin_layout Standard
11621 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11624 \begin_layout Standard
11632 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11635 \begin_layout Standard
11641 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11644 \begin_layout Standard
11650 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11653 \begin_layout Standard
11659 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11662 \begin_layout Standard
11669 <row bottomline="true">
11670 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11673 \begin_layout Standard
11679 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11682 \begin_layout Standard
11688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11691 \begin_layout Standard
11697 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11700 \begin_layout Standard
11719 \begin_layout Standard
11720 Spaces to table rows can be added using the
11724 tab of the table dialog as described in section\InsetSpace ~
11726 \begin_inset LatexCommand ref
11727 reference "sub:Row-Spacing"
11734 \begin_layout Standard
11735 In contrary to normal tables, formal tables have no vertical table lines.
11736 The horizontal table lines can be set like for normal tables but they appear
11737 with different width in the output:
11739 The first and the last table line have
11740 a default width of 0.08\InsetSpace \thinspace{}
11741 em while the other lines have a default width of
11742 0.05\InsetSpace \thinspace{}
11746 \begin_layout Standard
11747 The default widths can be changed with the following preamble lines
11750 \begin_layout Standard
11770 \begin_layout Standard
11771 This example is for the first line, the so called toprule.
11772 If you want to change the width for the last line, replace
11781 To change the width for the other lines replace
11790 You can use all units listed in appendix\InsetSpace ~
11792 \begin_inset LatexCommand ref
11793 reference "cha:Units-available-in"
11800 \begin_layout Standard
11801 Lines that don't span over all table columns can be created by setting a
11802 table line for multicolumn cells.
11803 LyX will then internally use the command
11809 to create this line.
11813 \begin_layout Standard
11818 cmidrule[width](trim){startcol-endcol}
11821 \begin_layout Standard
11828 are are currently not supported by LyX so you have to use ERT to be able
11836 s can manually be created by inserting the command as ERT as first cell
11837 entry of the first cell of a row.
11838 The line is then drawn in the output above the current row.
11841 \begin_layout Standard
11842 The default for the width is 0.03\InsetSpace \thinspace{}
11844 Startcol is the number of the column where the line starts and endcol the
11845 column number where the line ends.
11846 The endcol always needs to be specified, also when the line should span
11848 The optional parameter trim could be either
11856 where the trimwidth is also optional.
11857 Using for example the parameter
11861 means that the line is trimmed from its left end by 2\InsetSpace \thinspace{}
11863 If you don't specify the trimwidth the lines are trimmed by the default
11864 of 0.5\InsetSpace \thinspace{}
11868 \begin_layout Standard
11869 \begin_inset VSpace bigskip
11874 \begin_inset LatexCommand ref
11875 reference "tab:Example-booktabs-table"
11879 was created using the commands
11882 \begin_layout Standard
11892 \begin_layout Standard
11893 at the beginning of the in the second row and
11896 \begin_layout Standard
11901 cmidrule(l{10pt}){1-1}
11904 \begin_layout Standard
11908 \begin_layout Standard
11912 \begin_layout Standard
11913 \begin_inset VSpace bigskip
11919 \begin_layout Standard
11920 You might want to have overlapping
11926 s like in Table\InsetSpace ~
11928 \begin_inset LatexCommand ref
11929 reference "tab:Special-booktabs-table"
11934 This can be achieved with the ERT command
11937 \begin_layout Standard
11945 \begin_layout Standard
11946 The command that was used for the second row of Table\InsetSpace ~
11948 \begin_inset LatexCommand ref
11949 reference "tab:Special-booktabs-table"
11956 \begin_layout Standard
11970 \begin_layout Standard
11971 The command for the sixth row is
11974 \begin_layout Standard
11986 \begin_layout Standard
11987 \begin_inset VSpace bigskip
11993 \begin_layout Standard
11994 If you are anyway not satisfied with the border line spacing, you can use
11995 the following command to produce lines that span over all table columns
12000 \begin_layout Standard
12005 specialrule{width}{space above}{space below}
12008 \begin_layout Standard
12009 For more informations about these specialties, we refer to the manual of
12015 \begin_inset LatexCommand cite
12021 \begin_inset LatexCommand index
12022 name "LaTeX-packages ! booktabs"
12029 \begin_layout Standard
12030 \begin_inset Float table
12036 \begin_layout Standard
12037 \begin_inset Caption
12039 \begin_layout Standard
12040 \begin_inset LatexCommand label
12041 name "tab:Special-booktabs-table"
12045 Special booktabs-table
12053 \begin_layout Standard
12055 \begin_inset Tabular
12056 <lyxtabular version="3" rows="8" columns="4">
12057 <features booktabs="true">
12058 <column alignment="center" valignment="top" width="0">
12059 <column alignment="center" valignment="top" width="0">
12060 <column alignment="center" valignment="top" width="0">
12061 <column alignment="center" valignment="top" width="0">
12062 <row topline="true">
12063 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12066 \begin_layout Standard
12072 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12075 \begin_layout Standard
12076 Medipix\InsetSpace \thinspace{}
12082 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
12085 \begin_layout Standard
12086 Medipix\InsetSpace \thinspace{}
12092 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12095 \begin_layout Standard
12103 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12106 \begin_layout Standard
12110 \begin_layout Standard
12123 \begin_layout Standard
12136 \begin_layout Standard
12149 \begin_layout Standard
12158 Detector thickness [µm]
12163 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12166 \begin_layout Standard
12172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12175 \begin_layout Standard
12181 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12184 \begin_layout Standard
12191 <row topline="true">
12192 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12195 \begin_layout Standard
12201 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12204 \begin_layout Standard
12210 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12213 \begin_layout Standard
12219 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12222 \begin_layout Standard
12229 <row topspace="default">
12230 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12233 \begin_layout Standard
12234 Spatial resolution [µm]
12239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12242 \begin_layout Standard
12248 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12251 \begin_layout Standard
12257 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12260 \begin_layout Standard
12267 <row topspace="default">
12268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12271 \begin_layout Standard
12273 \begin_inset Formula $f_{\mathrm{max}}$
12281 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12284 \begin_layout Standard
12290 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12293 \begin_layout Standard
12299 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12302 \begin_layout Standard
12309 <row topline="true">
12310 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12313 \begin_layout Standard
12317 \begin_layout Standard
12330 \begin_layout Standard
12339 LSF-spatial resolution
12344 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12347 \begin_layout Standard
12353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12356 \begin_layout Standard
12362 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12365 \begin_layout Standard
12373 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12376 \begin_layout Standard
12382 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12385 \begin_layout Standard
12391 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12394 \begin_layout Standard
12400 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12403 \begin_layout Standard
12410 <row bottomline="true">
12411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12414 \begin_layout Standard
12420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12423 \begin_layout Standard
12429 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12432 \begin_layout Standard
12438 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12441 \begin_layout Standard
12460 \begin_layout Section
12461 Vertical Table Alignment
12462 \begin_inset LatexCommand index
12463 name "Table ! Alignment"
12470 \begin_layout Standard
12471 To align tables vertically in a text line the table must be inside a box.
12472 The box can then be vertically aligned as described in section\InsetSpace ~
12474 \begin_inset LatexCommand ref
12475 reference "sec:Box-Dialog"
12482 \begin_layout Standard
12483 In the following example the tables are inside a minipage
12487 \begin_layout Standard
12488 Minipages are described in section\InsetSpace ~
12490 \begin_inset LatexCommand ref
12491 reference "sec:Minipages"
12500 box that has a width of 15\InsetSpace \thinspace{}
12504 \begin_layout Itemize
12506 \begin_inset Box Frameless
12515 height_special "totalheight"
12518 \begin_layout Standard
12519 \begin_inset Tabular
12520 <lyxtabular version="3" rows="3" columns="3">
12522 <column alignment="center" valignment="top" leftline="true" width="0">
12523 <column alignment="center" valignment="top" leftline="true" width="0">
12524 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12525 <row topline="true">
12526 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12529 \begin_layout Standard
12535 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12538 \begin_layout Standard
12544 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12547 \begin_layout Standard
12554 <row topline="true">
12555 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12558 \begin_layout Standard
12564 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12567 \begin_layout Standard
12573 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12576 \begin_layout Standard
12583 <row topline="true" bottomline="true">
12584 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12587 \begin_layout Standard
12593 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12596 \begin_layout Standard
12602 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12605 \begin_layout Standard
12625 \begin_layout Standard
12637 \begin_inset Box Frameless
12646 height_special "totalheight"
12649 \begin_layout Standard
12650 \begin_inset Tabular
12651 <lyxtabular version="3" rows="3" columns="3">
12653 <column alignment="center" valignment="top" leftline="true" width="0">
12654 <column alignment="center" valignment="top" leftline="true" width="0">
12655 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12656 <row topline="true">
12657 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12660 \begin_layout Standard
12666 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12669 \begin_layout Standard
12675 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12678 \begin_layout Standard
12685 <row topline="true">
12686 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12689 \begin_layout Standard
12695 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12698 \begin_layout Standard
12704 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12707 \begin_layout Standard
12714 <row topline="true" bottomline="true">
12715 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12718 \begin_layout Standard
12724 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12727 \begin_layout Standard
12733 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12736 \begin_layout Standard
12756 \begin_layout Standard
12766 \begin_layout Itemize
12768 \begin_inset Box Frameless
12777 height_special "totalheight"
12780 \begin_layout Standard
12781 \begin_inset Tabular
12782 <lyxtabular version="3" rows="3" columns="3">
12784 <column alignment="center" valignment="top" leftline="true" width="0">
12785 <column alignment="center" valignment="top" leftline="true" width="0">
12786 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12787 <row topline="true">
12788 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12791 \begin_layout Standard
12797 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12800 \begin_layout Standard
12806 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12809 \begin_layout Standard
12816 <row topline="true">
12817 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12820 \begin_layout Standard
12826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12829 \begin_layout Standard
12835 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12838 \begin_layout Standard
12845 <row topline="true" bottomline="true">
12846 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12849 \begin_layout Standard
12855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12858 \begin_layout Standard
12864 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12867 \begin_layout Standard
12886 \begin_layout Itemize
12888 \begin_inset Box Frameless
12897 height_special "totalheight"
12900 \begin_layout Standard
12901 \begin_inset Tabular
12902 <lyxtabular version="3" rows="3" columns="3">
12904 <column alignment="center" valignment="top" leftline="true" width="0">
12905 <column alignment="center" valignment="top" leftline="true" width="0">
12906 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12907 <row topline="true">
12908 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12911 \begin_layout Standard
12917 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12920 \begin_layout Standard
12926 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12929 \begin_layout Standard
12936 <row topline="true">
12937 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12940 \begin_layout Standard
12946 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12949 \begin_layout Standard
12955 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12958 \begin_layout Standard
12965 <row topline="true" bottomline="true">
12966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12969 \begin_layout Standard
12975 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12978 \begin_layout Standard
12984 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12987 \begin_layout Standard
13007 \begin_layout Standard
13019 \begin_inset Box Frameless
13028 height_special "totalheight"
13031 \begin_layout Standard
13032 \begin_inset Tabular
13033 <lyxtabular version="3" rows="3" columns="3">
13035 <column alignment="center" valignment="top" leftline="true" width="0">
13036 <column alignment="center" valignment="top" leftline="true" width="0">
13037 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13038 <row topline="true">
13039 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13042 \begin_layout Standard
13048 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13051 \begin_layout Standard
13057 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13060 \begin_layout Standard
13067 <row topline="true">
13068 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13071 \begin_layout Standard
13077 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13080 \begin_layout Standard
13086 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13089 \begin_layout Standard
13096 <row topline="true" bottomline="true">
13097 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13100 \begin_layout Standard
13106 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13109 \begin_layout Standard
13115 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13118 \begin_layout Standard
13138 \begin_layout Standard
13148 \begin_layout Standard
13149 As you can see, the content of the first and last table row is not correctly
13150 aligned with the text line where the table is in.
13151 To get this alignment, the minipage box must be set into a raisebox
13155 \begin_layout Standard
13156 Raiseboxes are described in section\InsetSpace ~
13158 \begin_inset LatexCommand ref
13159 reference "sub:Vertical-Alignment"
13169 In the example above the second table in the first item is aligned using
13173 \begin_layout Standard
13183 \begin_layout Standard
13185 Behind the box the closing brace
13189 is inserted as ERT.
13190 For the second table in the last item the command
13193 \begin_layout Standard
13203 \begin_layout Standard
13207 \begin_layout Standard
13208 \begin_inset Note Greyedout
13211 \begin_layout Standard
13216 The alignment of the table row content to the surrounding text line is
13218 The needed factor of the
13224 command for this alignment depends on the document font, the font size,
13225 and the table line thickness.
13233 \begin_layout Section
13235 \begin_inset LatexCommand label
13236 name "sec:Colored-Tables"
13241 \begin_inset LatexCommand index
13242 name "Table ! Color"
13249 \begin_layout Subsection
13251 \begin_inset LatexCommand index
13252 name "Table Color ! for Cells"
13257 \begin_inset LatexCommand index
13258 name "Color ! for Table Cells"
13265 \begin_layout Standard
13266 \begin_inset Float table
13272 \begin_layout Standard
13273 \begin_inset Caption
13275 \begin_layout Standard
13276 \begin_inset LatexCommand label
13277 name "tab:Table-colored-without"
13281 Table colored without using the package
13286 \begin_inset OptArg
13289 \begin_layout Standard
13290 Table without colortbl
13303 \begin_layout Standard
13305 \begin_inset Tabular
13306 <lyxtabular version="3" rows="3" columns="3">
13308 <column alignment="center" valignment="top" leftline="true" width="0">
13309 <column alignment="center" valignment="top" leftline="true" width="0">
13310 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13311 <row topline="true">
13312 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13315 \begin_layout Standard
13323 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13326 \begin_layout Standard
13334 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13337 \begin_layout Standard
13346 <row topline="true">
13347 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13350 \begin_layout Standard
13358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13361 \begin_layout Standard
13369 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13372 \begin_layout Standard
13381 <row topline="true" bottomline="true">
13382 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13385 \begin_layout Standard
13393 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13396 \begin_layout Standard
13404 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13407 \begin_layout Standard
13428 \begin_layout Standard
13429 If you only need colored text, mark the cells and choose a color in the
13432 Edit\SpecialChar \menuseparator
13437 This was used to create Table\InsetSpace ~
13439 \begin_inset LatexCommand ref
13440 reference "tab:Table-colored-without"
13445 In any other case you have to use the LaTeX-package
13450 \begin_inset LatexCommand index
13451 name "LaTeX-packages ! colortbl"
13458 \begin_layout Standard
13459 To create colored tables,
13463 must be loaded in the preamble with the line
13466 \begin_layout Standard
13471 usepackage{colortbl}
13474 \begin_layout Standard
13475 The color of a column is adjusted with the command
13478 \begin_layout Standard
13483 columncolor{name of color}
13486 \begin_layout Standard
13492 More about the command
13496 is described in section\InsetSpace ~
13498 \begin_inset LatexCommand ref
13499 reference "sub:Multicolumn-Calculations"
13506 \begin_layout Standard
13507 The following color names are predefined:
13510 \begin_layout Standard
13544 \begin_layout Standard
13545 \begin_inset VSpace medskip
13551 \begin_layout Standard
13552 You can also define your own color with the command
13555 \begin_layout Standard
13560 def\SpecialChar \textcompwordmark{}
13561 inecolor{color name}{color model}{color values}
13564 \begin_layout Standard
13565 The color model can be
13568 \begin_layout Labeling
13569 \labelwidthstring 00.00.0000
13570 cmyk: cyan, magenta, yellow, black
13573 \begin_layout Labeling
13574 \labelwidthstring 00.00.0000
13575 rgb: red, green blue
13578 \begin_layout Labeling
13579 \labelwidthstring 00.00.0000
13583 \begin_layout Standard
13584 and the color values are comma separated numbers between 0 and 1 describing
13585 the factor for the corresponding color of the color model.
13588 \begin_layout Standard
13589 You can e.\InsetSpace \thinspace{}
13595 " in the preamble with
13598 \begin_layout Standard
13603 def\SpecialChar \textcompwordmark{}
13604 inecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
13607 \begin_layout Standard
13615 \begin_layout Standard
13620 def\SpecialChar \textcompwordmark{}
13621 inecolor{lightgray}{gray}{0.8}
13624 \begin_layout Standard
13625 \begin_inset VSpace medskip
13631 \begin_layout Standard
13632 Lines are colored with the command
13635 \begin_layout Standard
13640 rowcolor{name of color}
13643 \begin_layout Standard
13644 and cells are colored with the command
13647 \begin_layout Standard
13652 cellcolor{name of color}
13655 \begin_layout Standard
13656 Both commands are inserted at the beginning of a cell as ERT.
13659 \begin_layout Standard
13660 To color characters in the table, mark the cells and use the LyX menu
13662 Edit\SpecialChar \menuseparator
13667 If a cell contains ERT mark only the characters, otherwise the colored
13668 ERT will cause LaTeX-errors.
13671 \begin_layout Standard
13672 \begin_inset VSpace bigskip
13678 \begin_layout Standard
13679 To create Table\InsetSpace ~
13681 \begin_inset LatexCommand ref
13682 reference "tab:Table-colored-using"
13686 do the following: The color of the first column should be
13694 \begin_layout Standard
13699 columncolor{darkgreen}
13704 \begin_layout Standard
13705 as LaTeX-argument for this column.
13706 The first row should be blue, therefore the ERT command
13709 \begin_layout Standard
13717 \begin_layout Standard
13718 is inserted to the first cell of this row.
13719 Note that this overwrites the column color for the first cell.
13720 The last cell of the last row is colored magenta by inserting the ERT command
13723 \begin_layout Standard
13731 \begin_layout Standard
13732 The characters could now be colored using the menu
13734 Edit\SpecialChar \menuseparator
13741 \begin_layout Standard
13742 \begin_inset Float table
13748 \begin_layout Standard
13749 \begin_inset Caption
13751 \begin_layout Standard
13752 \begin_inset LatexCommand label
13753 name "tab:Table-colored-using"
13757 Table colored using the package
13762 \begin_inset OptArg
13765 \begin_layout Standard
13766 Table with colortbl
13779 \begin_layout Standard
13781 \begin_inset Tabular
13782 <lyxtabular version="3" rows="3" columns="3">
13784 <column alignment="center" valignment="top" leftline="true" width="0" special=">{\columncolor{darkgreen}\centering}c">
13785 <column alignment="center" valignment="top" width="0">
13786 <column alignment="center" valignment="top" width="0">
13788 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13791 \begin_layout Standard
13795 \begin_layout Standard
13811 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13814 \begin_layout Standard
13822 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13825 \begin_layout Standard
13835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13838 \begin_layout Standard
13846 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13849 \begin_layout Standard
13857 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13860 \begin_layout Standard
13870 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13873 \begin_layout Standard
13881 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13884 \begin_layout Standard
13892 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13895 \begin_layout Standard
13899 \begin_layout Standard
13928 \begin_layout Subsection
13930 \begin_inset LatexCommand index
13931 name "Table Color ! for Lines"
13936 \begin_inset LatexCommand index
13937 name "Color ! for Table Lines"
13944 \begin_layout Standard
13945 As described in section\InsetSpace ~
13947 \begin_inset LatexCommand ref
13948 reference "sub:Line-Thickness"
13952 , the line thickness for all lines in a table can be adjusted with the length
13960 It is set to 1.5\InsetSpace \thinspace{}
13961 pt for all tables of this section.
13965 \begin_layout Standard
13971 arrayrulewidth}{1.5pt}
13979 \begin_layout Standard
13980 To color vertical lines for example with green, create the following column
13981 format in the document preamble, according to the description in section\InsetSpace ~
13983 \begin_inset LatexCommand ref
13984 reference "sub:Customized-Format"
13991 \begin_layout Standard
13996 newcolumntype{W}{!{
14003 \begin_layout Standard
14004 For Table\InsetSpace ~
14006 \begin_inset LatexCommand ref
14007 reference "tab:Table-with-vertical-colored"
14014 \begin_layout Standard
14020 \begin_layout Standard
14021 was used for the last column and
14024 \begin_layout Standard
14030 \begin_layout Standard
14031 for the other columns.
14034 \begin_layout Standard
14035 If you want to have several colors, define more column formats.
14038 \begin_layout Standard
14039 \begin_inset Float table
14044 \begin_layout Standard
14045 \begin_inset Caption
14047 \begin_layout Standard
14048 \begin_inset LatexCommand label
14049 name "tab:Table-with-vertical-colored"
14053 Table with colored vertical lines
14061 \begin_layout Standard
14063 \begin_inset Tabular
14064 <lyxtabular version="3" rows="3" columns="3">
14066 <column alignment="center" valignment="top" leftline="true" width="0" special="Wc">
14067 <column alignment="center" valignment="top" width="0" special="Wc">
14068 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0" special="WcW">
14069 <row topline="true">
14070 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14073 \begin_layout Standard
14079 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14082 \begin_layout Standard
14088 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14091 \begin_layout Standard
14098 <row topline="true">
14099 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14102 \begin_layout Standard
14108 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14111 \begin_layout Standard
14117 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14120 \begin_layout Standard
14127 <row topline="true" bottomline="true">
14128 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14131 \begin_layout Standard
14137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14140 \begin_layout Standard
14146 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14149 \begin_layout Standard
14168 \begin_layout Standard
14169 \begin_inset VSpace bigskip
14172 To color horizontal lines for example with red, like in Table\InsetSpace ~
14174 \begin_inset LatexCommand ref
14175 reference "tab:Table-with-horizontal-colored"
14179 , insert these commands in ERT before the table or table float:
14182 \begin_layout Standard
14199 arrayrulecolor{red}
14203 arrayrulecolor{black}}
14206 \begin_layout Standard
14210 \begin_layout Standard
14221 \begin_layout Standard
14229 arrayrulecolor{red}
14233 arrayrulecolor{black}}
14239 \begin_inset Float table
14244 \begin_layout Standard
14245 \begin_inset Caption
14247 \begin_layout Standard
14248 \begin_inset LatexCommand label
14249 name "tab:Table-with-horizontal-colored"
14253 Table with colored horizontal lines
14261 \begin_layout Standard
14263 \begin_inset Tabular
14264 <lyxtabular version="3" rows="3" columns="3">
14266 <column alignment="center" valignment="top" leftline="true" width="0">
14267 <column alignment="center" valignment="top" leftline="true" width="0">
14268 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14269 <row topline="true">
14270 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14273 \begin_layout Standard
14279 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14282 \begin_layout Standard
14288 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14291 \begin_layout Standard
14298 <row topline="true">
14299 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14302 \begin_layout Standard
14308 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14311 \begin_layout Standard
14317 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14320 \begin_layout Standard
14327 <row topline="true" bottomline="true">
14328 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14331 \begin_layout Standard
14337 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14340 \begin_layout Standard
14346 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14349 \begin_layout Standard
14368 \begin_layout Standard
14372 \begin_layout Standard
14384 \begin_layout Standard
14385 To return to the default line color black, insert this command in ERT behind
14386 the table or table float:
14389 \begin_layout Standard
14401 \begin_layout Standard
14404 \begin_inset LatexCommand ref
14405 reference "tab:Table-with-colored"
14409 is an example with colored vertical and horizontal lines.
14412 \begin_layout Standard
14413 \begin_inset Float table
14418 \begin_layout Standard
14419 \begin_inset Caption
14421 \begin_layout Standard
14422 \begin_inset LatexCommand label
14423 name "tab:Table-with-colored"
14427 Table with colored lines
14435 \begin_layout Standard
14437 \begin_inset Tabular
14438 <lyxtabular version="3" rows="3" columns="3">
14440 <column alignment="center" valignment="top" leftline="true" width="0" special="Wc">
14441 <column alignment="center" valignment="top" width="0" special="Wc">
14442 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0" special="WcW">
14443 <row topline="true">
14444 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14447 \begin_layout Standard
14453 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14456 \begin_layout Standard
14462 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14465 \begin_layout Standard
14472 <row topline="true">
14473 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14476 \begin_layout Standard
14482 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14485 \begin_layout Standard
14491 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14494 \begin_layout Standard
14501 <row topline="true" bottomline="true" topspace="default">
14502 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14505 \begin_layout Standard
14511 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14514 \begin_layout Standard
14520 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14523 \begin_layout Standard
14542 \begin_layout Standard
14546 \begin_layout Standard
14562 \begin_layout Standard
14566 \begin_layout Standard
14572 arrayrulewidth}{0.4pt}
14580 \begin_layout Section
14581 Table Customization
14582 \begin_inset LatexCommand index
14583 name "Table Customization"
14588 \begin_inset LatexCommand index
14589 name "Table ! Customization"
14596 \begin_layout Subsection
14598 \begin_inset LatexCommand label
14599 name "sub:Row-Spacing"
14604 \begin_inset LatexCommand index
14605 name "Table Customization ! Row Spacing"
14612 \begin_layout Standard
14613 You can add vertical space to table rows in the
14617 tab of the table dialog.
14618 You find there three possibilities:
14621 \begin_layout Description
14624 row will add space above the characters of the table row.
14625 If the table is a formal table
14629 \begin_layout Standard
14630 Formal tables are explained in section\InsetSpace ~
14632 \begin_inset LatexCommand ref
14633 reference "sec:Formal-Tables"
14642 LyX will insert as default 0.5\InsetSpace \thinspace{}
14644 For normal tables the inserted space will unfortunately destroy the vertical
14645 table lines as in the following table:
14646 \begin_inset Tabular
14647 <lyxtabular version="3" rows="3" columns="1">
14649 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14650 <row topline="true">
14651 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14654 \begin_layout Standard
14661 <row topline="true" topspace="3mm">
14662 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14665 \begin_layout Standard
14666 3\InsetSpace \thinspace{}
14667 mm space top of row
14673 <row topline="true" bottomline="true">
14674 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14677 \begin_layout Standard
14690 So inserting space to the top of row for normal tables is only useful when
14691 you don't have vertical lines.
14694 \begin_layout Description
14695 Bottom\InsetSpace ~
14697 row will add space below the characters of the table row.
14698 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
14700 normal tables the default size is 2\InsetSpace \thinspace{}
14704 \begin_layout Description
14705 Between\InsetSpace ~
14706 rows only has an effect when you have selected the whole table row
14708 The space is added between the current and the following row.
14709 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
14711 For normal tables the inserted space will unfortunately destroy the vertical
14712 table lines as in the following table:
14713 \begin_inset Tabular
14714 <lyxtabular version="3" rows="3" columns="1">
14716 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14717 <row topline="true">
14718 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14721 \begin_layout Standard
14728 <row topline="true" interlinespace="3mm">
14729 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14732 \begin_layout Standard
14733 \begin_inset Formula $\downarrow$
14736 3\InsetSpace \thinspace{}
14737 mm space between row
14738 \begin_inset Formula $\downarrow$
14747 <row topline="true" bottomline="true">
14748 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14751 \begin_layout Standard
14752 \begin_inset Formula $\uparrow$
14755 3\InsetSpace \thinspace{}
14756 mm space between row
14757 \begin_inset Formula $\uparrow$
14772 So inserting space between rows for normal tables is only useful when you
14773 don't have vertical lines.
14776 \begin_layout Standard
14777 When you want to add extra height to all cells of all tables, you can do
14778 this with the following preamble line:
14781 \begin_layout Standard
14788 extrarowheight}{height}
14791 \begin_layout Standard
14792 But this has the disadvantage that the cell texts are no longer exactly
14793 vertically centered.
14796 \begin_layout Subsection
14797 Special Cell Alignment
14798 \begin_inset LatexCommand index
14799 name "Table Customization ! Special Cell Alignment"
14806 \begin_layout Standard
14807 Sometimes it looks better when the cell entries of a column are aligned
14808 with a special character, e.\InsetSpace \thinspace{}
14810 with the decimal separator as in Table\InsetSpace ~
14812 \begin_inset LatexCommand ref
14813 reference "tab:Table-cells-of"
14820 \begin_layout Standard
14821 \begin_inset Float table
14827 \begin_layout Standard
14828 \begin_inset Caption
14830 \begin_layout Standard
14831 \begin_inset LatexCommand label
14832 name "tab:Table-cells-of"
14836 Table cells of a column aligned with the decimal separator.
14844 \begin_layout Standard
14846 \begin_inset Tabular
14847 <lyxtabular version="3" rows="4" columns="2">
14849 <column alignment="right" valignment="top" width="0">
14850 <column alignment="left" valignment="top" width="0" special="@{}l">
14851 <row bottomline="true">
14852 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
14855 \begin_layout Standard
14861 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14864 \begin_layout Standard
14872 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14875 \begin_layout Standard
14881 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14884 \begin_layout Standard
14892 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14895 \begin_layout Standard
14901 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14904 \begin_layout Standard
14912 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14915 \begin_layout Standard
14921 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14924 \begin_layout Standard
14943 \begin_layout Standard
14944 This table was created with a 4×2 table.
14945 The heading is a centered multicolumn.
14946 The first column is right-aligned and contains the digits before the decimal
14947 point and the decimal point.
14948 The second column is left aligned and contains the digits after the decimal
14950 To omit the space that is normally between two table columns, use the following
14951 LaTeX-argument for the second column:
14954 \begin_layout Standard
14960 \begin_layout Standard
14961 If you need a vertical line right beside the second column, use this LaTeX-argum
14967 \begin_layout Standard
14970 \begin_inset LatexCommand ref
14971 reference "tab:Several-table-cell"
14975 shows some example alignments.
14976 For the alignment with the relation sign, you must add the second smallest
14977 math-space at the beginning of the last column to get the correct space
14978 surrounding the relation sign.
14981 \begin_layout Standard
14982 \begin_inset Float table
14987 \begin_layout Standard
14988 \begin_inset Caption
14990 \begin_layout Standard
14991 \begin_inset LatexCommand label
14992 name "tab:Several-table-cell"
14996 Several table cell alignments.
15004 \begin_layout Standard
15006 \begin_inset Tabular
15007 <lyxtabular version="3" rows="4" columns="6">
15009 <column alignment="right" valignment="top" width="0">
15010 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l|">
15011 <column alignment="right" valignment="top" width="0">
15012 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l|">
15013 <column alignment="right" valignment="top" width="0">
15014 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15015 <row bottomline="true">
15016 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15019 \begin_layout Standard
15025 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15028 \begin_layout Standard
15034 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15037 \begin_layout Standard
15043 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15046 \begin_layout Standard
15052 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15055 \begin_layout Standard
15061 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15064 \begin_layout Standard
15072 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15075 \begin_layout Standard
15081 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15084 \begin_layout Standard
15085 24\InsetSpace \thinspace{}
15091 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15094 \begin_layout Standard
15095 \begin_inset Formula $10\cdot$
15103 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15106 \begin_layout Standard
15107 \begin_inset Formula $10^{\mbox{-}17}$
15115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15118 \begin_layout Standard
15119 \begin_inset Formula $\Gamma(t)\propto$
15127 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15130 \begin_layout Standard
15131 \begin_inset Formula $\:\Upsilon(t)$
15141 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15144 \begin_layout Standard
15150 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15153 \begin_layout Standard
15154 768\InsetSpace \thinspace{}
15160 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15163 \begin_layout Standard
15164 \begin_inset Formula $5.78\cdot$
15172 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15175 \begin_layout Standard
15176 \begin_inset Formula $10^{7}$
15184 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15187 \begin_layout Standard
15188 \begin_inset Formula $A\ne$
15196 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15199 \begin_layout Standard
15200 \begin_inset Formula $\: B_{\mathrm{red}}$
15210 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15213 \begin_layout Standard
15219 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15222 \begin_layout Standard
15223 6\InsetSpace \thinspace{}
15229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15232 \begin_layout Standard
15234 \begin_inset Formula $33.5\cdot$
15242 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15245 \begin_layout Standard
15246 \begin_inset Formula $10^{4}$
15254 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15257 \begin_layout Standard
15258 \begin_inset Formula $\sin(\alpha)\ge$
15266 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15269 \begin_layout Standard
15270 \begin_inset Formula $\:\sin(\beta)$
15291 \begin_layout Standard
15292 \begin_inset VSpace bigskip
15295 There is also the LaTeX-package
15300 \begin_inset LatexCommand index
15301 name "LaTeX-packages ! dcolumn"
15305 that provides table cell alignments.
15306 But this unfortunately treats the cell entries as math and doesn't allow
15307 formulas in table cells: The first column of Table\InsetSpace ~
15309 \begin_inset LatexCommand ref
15310 reference "tab:Several-table-cell"
15318 like the first column in Table\InsetSpace ~
15320 \begin_inset LatexCommand ref
15321 reference "tab:Alignments-when"
15325 and only with some tricks like the expected.
15326 The alignment of the second and third column of Table\InsetSpace ~
15328 \begin_inset LatexCommand ref
15329 reference "tab:Several-table-cell"
15333 is not possible with
15340 \begin_layout Standard
15341 \begin_inset Float table
15347 \begin_layout Standard
15348 \begin_inset Caption
15350 \begin_layout Standard
15351 \begin_inset LatexCommand label
15352 name "tab:Alignments-when"
15356 Alignments when LaTeX-package dcolumn is used.
15357 For the second and third alignment some tricks were used.
15365 \begin_layout Standard
15367 \begin_inset Tabular
15368 <lyxtabular version="3" rows="4" columns="3">
15370 <column alignment="center" valignment="top" rightline="true" width="0" special="D{×}{\times}{-1}|">
15371 <column alignment="center" valignment="top" width="0" special="D{×}{\times}{4.9}|">
15372 <column alignment="center" valignment="top" rightline="true" width="0" special="D{~}{\,}{9.7}">
15373 <row bottomline="true">
15374 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15377 \begin_layout Standard
15383 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15386 \begin_layout Standard
15392 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15395 \begin_layout Standard
15403 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15406 \begin_layout Standard
15407 12×24\InsetSpace \thinspace{}
15413 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15416 \begin_layout Standard
15417 12×24\InsetSpace \thinspace{}
15419 \begin_inset Formula $\mbox{bottles}$
15427 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15430 \begin_layout Standard
15432 \begin_inset Formula $\mbox{bottles}$
15442 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15445 \begin_layout Standard
15446 1024×768\InsetSpace \thinspace{}
15452 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15455 \begin_layout Standard
15456 1024×768\InsetSpace \thinspace{}
15458 \begin_inset Formula $\mbox{Pixels}$
15466 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15469 \begin_layout Standard
15471 \begin_inset Formula $\mbox{Pixels}$
15481 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15484 \begin_layout Standard
15485 32×6\InsetSpace \thinspace{}
15491 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15494 \begin_layout Standard
15495 32×6\InsetSpace \thinspace{}
15497 \begin_inset Formula $\mbox{cm}$
15505 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15508 \begin_layout Standard
15510 \begin_inset Formula $\mbox{cm}$
15531 \begin_layout Subsection
15532 Customized Cell/Column Format
15533 \begin_inset LatexCommand label
15534 name "sub:Customized-Format"
15539 \begin_inset LatexCommand index
15540 name "Table Customization ! Cell/Column Format"
15547 \begin_layout Standard
15548 Calculating the needed width for spanned columns like in section\InsetSpace ~
15550 \begin_inset LatexCommand ref
15551 reference "sub:Multicolumn-Calculations"
15555 is very annoying if you have several tables with multicolumn cells.
15556 To make life easier, you can define a cell/column format in the preamble,
15557 so that it can be used in all tables of the document.
15558 The format is defined with the command
15561 \begin_layout Standard
15566 newcolumntype{name of format}[number of arguments]{commands}
15569 \begin_layout Standard
15570 The format name may only consist of one letter.
15595 are predefined and cannot be used.
15596 But all letters are allowed as capitals.
15599 \begin_layout Standard
15600 \begin_inset VSpace medskip
15606 \begin_layout Standard
15607 For vertically and horizontally centered multicolumn cells with a fixed
15608 width you can define the cell format
15611 \begin_layout Standard
15616 newcolumntype{M}[1]{>{
15623 \begin_layout Standard
15630 avoids the problem of hyphenating the first word, as described in section\InsetSpace ~
15632 \begin_inset LatexCommand ref
15633 reference "sub:Multiple-Lines-in"
15638 Now you can simply enter
15641 \begin_layout Standard
15647 \begin_layout Standard
15648 as LaTeX-argument in the table dialog to create a multicolumn.
15651 \begin_layout Standard
15652 \begin_inset VSpace bigskip
15658 \begin_layout Standard
15659 For cells spanned by a multicolumn cell, you can define the format
15662 \begin_layout Standard
15667 newcolumntype{S}[2]{>{
15677 \begin_layout Standard
15688 newcolumntype{S}[2]
15692 \begin_layout Standard
15703 arrayrulewidth)*(1-#2))/#2}}
15706 \begin_layout Standard
15707 This format uses equation
15708 \begin_inset LatexCommand eqref
15713 to calculate the needed width so that each spanned cell has the same width.
15716 \begin_layout Standard
15720 \begin_layout Standard
15723 |S{width of multicolumn cell}{number of spanned columns}
15726 \begin_layout Standard
15727 as LaTeX-argument of the column.
15730 \begin_layout Standard
15731 \begin_inset VSpace bigskip
15737 \begin_layout Standard
15738 For colored columns, you can define
15741 \begin_layout Standard
15746 newcolumntype{K}[1]{>{
15753 \begin_layout Standard
15755 \begin_inset Quotes eld
15759 \begin_inset Quotes erd
15762 at the end creates a column with a flexible width whose text is horizontally
15767 \begin_layout Standard
15773 \begin_layout Standard
15777 \begin_layout Standard
15778 \begin_inset VSpace bigskip
15784 \begin_layout Standard
15785 To create Table\InsetSpace ~
15787 \begin_inset LatexCommand ref
15788 reference "tab:Table-using-user-defined"
15792 use the LaTeX-arguments
15795 \begin_layout Standard
15801 \begin_layout Standard
15802 for the first column and the multicolumn,
15805 \begin_layout Standard
15811 \begin_layout Standard
15812 for the the last column, and
15815 \begin_layout Standard
15821 \begin_layout Standard
15822 for the cells in the second column.
15825 \begin_layout Standard
15826 \begin_inset Float table
15832 \begin_layout Standard
15833 \begin_inset Caption
15835 \begin_layout Standard
15836 \begin_inset LatexCommand label
15837 name "tab:Table-using-user-defined"
15841 Table using user-defined table formats
15849 \begin_layout Standard
15851 \begin_inset Tabular
15852 <lyxtabular version="3" rows="3" columns="4">
15854 <column alignment="center" valignment="middle" leftline="true" width="2.5cm" special="|M{2.5cm}">
15855 <column alignment="center" valignment="middle" leftline="true" width="0" special="|S{2.5cm}{2}">
15856 <column alignment="center" valignment="middle" leftline="true" width="0">
15857 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0" special="|K{red}|">
15858 <row topline="true">
15859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15862 \begin_layout Standard
15863 verylongtablecellword
15868 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none" special="M{2.5cm}|">
15871 \begin_layout Standard
15872 multiple lines multicolumn
15877 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15880 \begin_layout Standard
15886 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15889 \begin_layout Standard
15896 <row topline="true">
15897 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15900 \begin_layout Standard
15906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15909 \begin_layout Standard
15915 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15918 \begin_layout Standard
15924 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15927 \begin_layout Standard
15934 <row topline="true" bottomline="true">
15935 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15938 \begin_layout Standard
15944 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15947 \begin_layout Standard
15953 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15956 \begin_layout Standard
15962 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15965 \begin_layout Standard
15984 \begin_layout Subsection
15986 \begin_inset LatexCommand label
15987 name "sub:Line-Thickness"
15992 \begin_inset LatexCommand index
15993 name "Table Customization ! Line Thickness"
16000 \begin_layout Standard
16001 The line thickness for all lines in a table can be adjusted with the length
16009 To set for example a line thickness of 1.5\InsetSpace \thinspace{}
16010 pt, like in Table\InsetSpace ~
16012 \begin_inset LatexCommand ref
16013 reference "tab:Table-with-1.5"
16017 , insert the command
16020 \begin_layout Standard
16027 arrayrulewidth}{1.5pt}
16030 \begin_layout Standard
16031 in ERT before the table or table float.
16032 The changed thickness is valid for all following tables.
16033 To use the default value again, set
16039 to 0.4\InsetSpace \thinspace{}
16040 pt in ERT behind the table or table float.
16043 \begin_layout Standard
16047 \begin_layout Standard
16053 arrayrulewidth}{1.5pt}
16059 \begin_inset Float table
16064 \begin_layout Standard
16065 \begin_inset Caption
16067 \begin_layout Standard
16068 \begin_inset LatexCommand label
16069 name "tab:Table-with-1.5"
16073 Table with 1.5\InsetSpace \thinspace{}
16082 \begin_layout Standard
16084 \begin_inset Tabular
16085 <lyxtabular version="3" rows="3" columns="3">
16087 <column alignment="center" valignment="top" leftline="true" width="0">
16088 <column alignment="center" valignment="top" leftline="true" width="0">
16089 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16090 <row topline="true">
16091 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16094 \begin_layout Standard
16100 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16103 \begin_layout Standard
16109 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16112 \begin_layout Standard
16119 <row topline="true">
16120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16123 \begin_layout Standard
16129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16132 \begin_layout Standard
16138 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16141 \begin_layout Standard
16148 <row topline="true" bottomline="true">
16149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16152 \begin_layout Standard
16158 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16161 \begin_layout Standard
16167 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16170 \begin_layout Standard
16190 \begin_layout Standard
16196 arrayrulewidth}{0.4pt}
16204 \begin_layout Standard
16205 \begin_inset VSpace bigskip
16208 To set the line thickness to 1.5\InsetSpace \thinspace{}
16209 pt only for horizontal lines, like in Table\InsetSpace ~
16211 \begin_inset LatexCommand ref
16212 reference "tab:Table-with-horizontal"
16216 , insert these commands in ERT before the table or table float:
16219 \begin_layout Standard
16242 arrayrulewidth 1.5pt}
16252 arrayrulewidth 0.4pt}}
16255 \begin_layout Standard
16256 To return to the default line thickness, insert this command in ERT behind
16257 the table or table float:
16260 \begin_layout Standard
16272 \begin_layout Standard
16276 \begin_layout Standard
16287 \begin_layout Standard
16296 \begin_layout Standard
16304 arrayrulewidth 1.5pt}
16307 \begin_layout Standard
16317 arrayrulewidth 0.4pt}}
16323 \begin_inset Float table
16328 \begin_layout Standard
16329 \begin_inset Caption
16331 \begin_layout Standard
16332 \begin_inset LatexCommand label
16333 name "tab:Table-with-horizontal"
16337 Table with 1.5\InsetSpace \thinspace{}
16338 pt thick horizontal lines
16346 \begin_layout Standard
16348 \begin_inset Tabular
16349 <lyxtabular version="3" rows="3" columns="3">
16351 <column alignment="center" valignment="top" leftline="true" width="0">
16352 <column alignment="center" valignment="top" leftline="true" width="0">
16353 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16354 <row topline="true">
16355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16358 \begin_layout Standard
16364 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16367 \begin_layout Standard
16373 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16376 \begin_layout Standard
16383 <row topline="true">
16384 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16387 \begin_layout Standard
16393 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16396 \begin_layout Standard
16402 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16405 \begin_layout Standard
16412 <row topline="true" bottomline="true">
16413 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16416 \begin_layout Standard
16422 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16425 \begin_layout Standard
16431 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16434 \begin_layout Standard
16454 \begin_layout Standard
16470 \begin_layout Standard
16471 \begin_inset VSpace bigskip
16474 To set the line thickness to 1.5\InsetSpace \thinspace{}
16475 pt only for vertical lines, create the following
16476 column format in the document preamble, according to the description in
16477 section\InsetSpace ~
16479 \begin_inset LatexCommand ref
16480 reference "sub:Customized-Format"
16487 \begin_layout Standard
16492 newcolumntype{V}{!{
16494 vrule width 1.5pt}}
16497 \begin_layout Standard
16498 For Table\InsetSpace ~
16500 \begin_inset LatexCommand ref
16501 reference "tab:Table-with-vertical"
16508 \begin_layout Standard
16514 \begin_layout Standard
16515 was used for the last column and
16518 \begin_layout Standard
16524 \begin_layout Standard
16525 for the other columns.
16528 \begin_layout Standard
16529 \begin_inset Float table
16534 \begin_layout Standard
16535 \begin_inset Caption
16537 \begin_layout Standard
16538 \begin_inset LatexCommand label
16539 name "tab:Table-with-vertical"
16543 Table with 1.5\InsetSpace \thinspace{}
16544 pt thick vertical lines
16552 \begin_layout Standard
16554 \begin_inset Tabular
16555 <lyxtabular version="3" rows="3" columns="3">
16557 <column alignment="center" valignment="top" leftline="true" width="0" special="Vc">
16558 <column alignment="center" valignment="top" leftline="true" width="0" special="Vc">
16559 <column alignment="center" valignment="top" leftline="true" width="0" special="VcV">
16560 <row topline="true">
16561 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16564 \begin_layout Standard
16570 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16573 \begin_layout Standard
16579 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16582 \begin_layout Standard
16589 <row topline="true">
16590 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16593 \begin_layout Standard
16599 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16602 \begin_layout Standard
16608 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16611 \begin_layout Standard
16618 <row topline="true" bottomline="true">
16619 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16622 \begin_layout Standard
16628 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16631 \begin_layout Standard
16637 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16640 \begin_layout Standard
16659 \begin_layout Subsection
16661 \begin_inset LatexCommand index
16662 name "Table Customization ! Dashed Lines"
16669 \begin_layout Standard
16673 \begin_layout Standard
16683 \begin_inset Note Note
16686 \begin_layout Standard
16687 The following section will only be displayed when you have the LaTeX-package
16700 \begin_layout Standard
16701 \begin_inset Float table
16707 \begin_layout Standard
16708 \begin_inset Caption
16710 \begin_layout Standard
16711 \begin_inset LatexCommand label
16712 name "tab:Table-with-dashed"
16716 Table with dashed lines
16724 \begin_layout Standard
16726 \begin_inset Tabular
16727 <lyxtabular version="3" rows="5" columns="5">
16729 <column alignment="center" valignment="top" leftline="true" width="0">
16730 <column alignment="center" valignment="top" leftline="true" width="0">
16731 <column alignment="center" valignment="top" width="0" special=":c">
16732 <column alignment="center" valignment="top" leftline="true" width="0">
16733 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16734 <row topline="true" bottomline="true">
16735 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16738 \begin_layout Standard
16744 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16747 \begin_layout Standard
16753 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16756 \begin_layout Standard
16762 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16765 \begin_layout Standard
16771 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16774 \begin_layout Standard
16781 <row topline="true">
16782 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16785 \begin_layout Standard
16791 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16794 \begin_layout Standard
16800 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16803 \begin_layout Standard
16809 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16812 \begin_layout Standard
16818 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16821 \begin_layout Standard
16829 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16832 \begin_layout Standard
16836 \begin_layout Standard
16850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16853 \begin_layout Standard
16859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16862 \begin_layout Standard
16868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16871 \begin_layout Standard
16877 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16880 \begin_layout Standard
16887 <row topline="true">
16888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16891 \begin_layout Standard
16895 \begin_layout Standard
16909 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16912 \begin_layout Standard
16918 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="c:">
16921 \begin_layout Standard
16927 <cell multicolumn="1" alignment="center" valignment="top" rightline="true" usebox="none" special="c:">
16930 \begin_layout Standard
16936 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16939 \begin_layout Standard
16946 <row topline="true" bottomline="true">
16947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16950 \begin_layout Standard
16956 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16959 \begin_layout Standard
16965 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16968 \begin_layout Standard
16974 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16977 \begin_layout Standard
16983 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16986 \begin_layout Standard
17005 \begin_layout Standard
17006 LyX doesn't natively support dashed lines, so you have to use ERT.
17007 As prerequisite the LaTeX-package
17012 \begin_inset LatexCommand index
17013 name "LaTeX-packages ! arydshln"
17017 must be loaded in the document preamble with the command
17020 \begin_layout Standard
17025 usepackage{arydshln}
17028 \begin_layout Standard
17029 To make a vertical line dashed, enter the colon
17030 \begin_inset Quotes eld
17034 \begin_inset Quotes erd
17037 together with the character for the horizontal alignment as LaTeX-argument
17038 in the table cell dialog.
17041 \begin_layout Standard
17042 For a horizontal dashed line add the command
17045 \begin_layout Standard
17053 \begin_layout Standard
17054 in ERT as first element of the first cell in the table row.
17057 \begin_layout Standard
17058 For dashed multicolumn lines use the command
17061 \begin_layout Standard
17066 cdashline{line number
17071 \begin_layout Standard
17072 in ERT as first element of the first cell in the table row.
17073 If you have for example a multicolumn spanning over columns 2 to 4 and
17074 you want to have a dashed line above, add the command
17077 \begin_layout Standard
17085 \begin_layout Standard
17086 as first element of the first cell in the row of the multicolumn.
17089 \begin_layout Standard
17090 \begin_inset VSpace bigskip
17096 \begin_layout Standard
17099 \begin_inset LatexCommand ref
17100 reference "tab:Table-with-dashed"
17105 \begin_inset Quotes eld
17113 \begin_inset Quotes erd
17116 as LaTeX-argument of the third column.
17123 was inserted to the first cell of the third row and the the ERT command
17132 was inserted to the first cell of the fourth row.
17135 \begin_layout Standard
17136 \begin_inset Note Greyedout
17139 \begin_layout Standard
17144 The used LaTeX-package
17148 is apparently not compatible with the LaTeX-package
17153 \begin_inset LatexCommand index
17154 name "LaTeX-packages ! colortbl"
17158 that is used for colored tables in section\InsetSpace ~
17160 \begin_inset LatexCommand ref
17161 reference "sec:Colored-Tables"
17166 That means colored tables cannot have dashed lines.
17174 \begin_layout Standard
17178 \begin_layout Standard
17188 \begin_inset Note Note
17191 \begin_layout Standard
17192 The following will be displayed when the LaTeX-package
17204 \begin_layout Standard
17205 You need to install the package
17209 to see the contents of this section in the output.
17212 \begin_layout Standard
17216 \begin_layout Standard
17228 \begin_layout Chapter
17230 \begin_inset LatexCommand index
17236 \begin_inset LatexCommand label
17244 \begin_layout Section
17246 \begin_inset LatexCommand label
17247 name "sec:FloatIntroduction"
17252 \begin_inset LatexCommand index
17253 name "Floats ! Introduction"
17260 \begin_layout Standard
17261 A float is a block of text associated with some sort of label, which doesn't
17262 have a fixed location.
17264 \begin_inset Quotes eld
17268 \begin_inset Quotes erd
17271 forward or backward a page or two, to wherever it fits best.
17278 Margin\InsetSpace ~
17281 are also floats, because they can float to the next page when there are
17282 too many notes at the page.
17285 \begin_layout Standard
17286 Floats allow a high quality layout.
17287 Images and tables can evenly be spread to the pages to avoid white space
17288 and pages without text.
17289 As the floating often destroys the context between the text and the image/table
17290 , every float can be referenced in the text.
17291 Floats are therefore numbered.
17292 Referencing is described in section\InsetSpace ~
17294 \begin_inset LatexCommand ref
17295 reference "sec:Referencing-Floats"
17302 \begin_layout Standard
17303 To insert a float, use the menu
17305 Insert\SpecialChar \menuseparator
17309 This inserts a box with a label in the
17317 \begin_layout Standard
17322 environment is described in LyX's
17331 into your document.
17332 Every label ends with the character
17333 \begin_inset Quotes eld
17337 \begin_inset Quotes erd
17340 as placeholder for the float number in the output.
17341 The label will automatically be translated to the document language in
17343 Behind the label you can insert the caption text.
17344 The image or table is inserted above or below the caption in a separate
17345 paragraph within the float.
17346 More about the caption placement is described in section\InsetSpace ~
17348 \begin_inset LatexCommand ref
17349 reference "sec:Caption-Placement"
17354 To keep your LyX-document readable, you can open and close the float box
17355 by left-clicking on the box label.
17356 A closed float box looks like this:
17357 \begin_inset Graphics
17358 filename clipart/floatQt4.png
17363 -- a gray button with a red label.
17366 \begin_layout Standard
17367 It is recommended to insert floats as a separate paragraph to avoid possible
17368 LaTeX-errors that can occur when the surrounding text is specially formatted.
17371 \begin_layout Standard
17372 Existing figures or tables can be put into a float by marking them and then
17373 pressing the corresponding toolbar button for a new float.
17376 \begin_layout Section
17380 \begin_layout Standard
17381 Besides figure and table floats that are described in section\InsetSpace ~
17383 \begin_inset LatexCommand ref
17384 reference "sec:Figure-Floats"
17389 \begin_inset LatexCommand ref
17390 reference "sec:Table-Floats"
17394 , respectively, LyX offers the float types
17407 \begin_layout Subsection
17409 \begin_inset LatexCommand index
17410 name "Floats ! Algorithm Floats"
17417 \begin_layout Standard
17418 \begin_inset Float algorithm
17424 \begin_layout Standard
17425 \begin_inset Caption
17427 \begin_layout Standard
17428 \begin_inset LatexCommand label
17429 name "alg:Example-Algorithm-float"
17433 Example Algorithm float
17441 \begin_layout LyX-Code
17444 Sum:= Sum + A(I); /*senseless comment*/
17447 \begin_inset VSpace -4mm
17458 \begin_layout Standard
17459 This float type is inserted with the menu
17461 Insert\SpecialChar \menuseparator
17462 Floats\SpecialChar \menuseparator
17466 It is used for program codes and descriptions of algorithms.
17467 A possible environment for algorithms is the
17471 , described in LyX's
17476 Algorithm\InsetSpace ~
17478 \begin_inset LatexCommand ref
17479 reference "alg:Example-Algorithm-float"
17483 is an example of an algorithm float where -4\InsetSpace \thinspace{}
17484 mm vertical space was added
17485 at the end of the float to have the bottom rule exactly below the last
17489 \begin_layout Standard
17490 The float label is not automatically translated into the document language.
17491 If your document is not in English, you have to do this manually by adding
17492 the following line to the document preamble
17497 \begin_layout Standard
17502 floatname{algorithm}{your\InsetSpace ~
17506 \begin_layout Standard
17513 \begin_inset Quotes eld
17521 \begin_inset Quotes erd
17527 \begin_layout Description
17532 When the LaTeX-package
17537 \begin_inset LatexCommand index
17538 name "LaTeX-packages ! hyperref"
17542 is used to link cross-references to floats in the PDF-output, it must be
17543 loaded in the document preamble before the definition of floats to be able
17544 to reference floats.
17545 As LyX sets the float definition for algorithm floats automatically before
17546 the user editable part of the document preamble, you need to insert the
17547 following preamble lines
17551 the loading command of
17558 \begin_inset VSpace defskip
17565 newfloat{Xalgorithm}{tbp}{loa}
17569 floatname{Xalgorithm}{your\InsetSpace ~
17582 renewenvironment{algorithm}[1][tbp]
17588 \begin_layout Standard
17599 begin{Xalgorithm}[#1]}{
17602 \begin_inset VSpace defskip
17615 \begin_inset Quotes eld
17623 \begin_inset Quotes erd
17629 \begin_layout Standard
17630 Algorithm floats are not by default numbered in the scheme
17631 \begin_inset Quotes eld
17635 \begin_inset Quotes erd
17638 like it is the case for table and figure floats in many document-classes.
17639 To number algorithm floats in the same scheme, add this command to your
17643 \begin_layout Standard
17648 numberwithin{algorithm}{chapter}
17651 \begin_layout Standard
17652 If you use the LaTeX-package
17656 , add this line instead
17664 (the commands from above) to the preamble:
17667 \begin_layout Standard
17672 numberwithin{Xalgorithm}{chapter}
17675 \begin_layout Standard
17676 To be able to use the command
17687 in the document settings the option
17697 \begin_layout Subsection
17699 \begin_inset LatexCommand index
17700 name "Floats ! Text Wrap Floats"
17705 \begin_inset LatexCommand label
17706 name "sub:floatflt-wrap-float"
17713 \begin_layout Standard
17714 This float type is used if you want to
17715 \begin_inset Quotes eld
17719 \begin_inset Quotes erd
17722 text around a figure so that it only occupies some fraction of the column
17724 It can be inserted using the menu
17725 \begin_inset Wrap figure
17730 \begin_layout Standard
17731 \begin_inset Graphics
17732 filename clipart/mobius.eps
17735 rotateOrigin center
17742 \begin_layout Standard
17743 \begin_inset Caption
17745 \begin_layout Standard
17746 \begin_inset LatexCommand label
17747 name "fig:This-is-a"
17751 This is a wrapped figure, and this is the brilliant caption that describes
17753 \begin_inset VSpace medskip
17768 Insert\SpecialChar \menuseparator
17769 Floats\SpecialChar \menuseparator
17774 if the LaTeX-package
17779 \begin_inset LatexCommand index
17780 name "LaTeX-packages ! floatflt"
17788 \begin_layout Standard
17789 Installing a LaTeX-package is explained it in the
17799 The width and placement of the float is adjusted by right-clicking on the
17801 Figure\InsetSpace ~
17803 \begin_inset LatexCommand ref
17804 reference "fig:This-is-a"
17808 is an example text wrap float with a width of 40
17809 \begin_inset Formula $\,$
17816 \begin_layout Standard
17817 Available units are explained in
17818 \begin_inset LatexCommand ref
17819 reference "cha:Units-available-in"
17828 Some space was added under the caption to separate it better from the surroundi
17832 \begin_layout Standard
17837 also supports table wrap floats, but they are not yet supported by LyX.
17838 If you need this, read the documentation of
17843 \begin_inset LatexCommand cite
17851 \begin_layout Standard
17852 \begin_inset Note Greyedout
17855 \begin_layout Standard
17861 wrap float floats are fragile! E.\InsetSpace \thinspace{}
17863 having a figure too close to the bottom
17864 of the page can mess things up in the way that the float doesn't appear
17865 in the output or that it is placed over some other text.
17869 \begin_layout Standard
17870 The better solution is to use the LaTeX-package
17872 wrapf\SpecialChar \textcompwordmark{}
17876 \begin_inset LatexCommand index
17877 name "LaTeX-packages ! wrapfig\\vspace{4mm}"
17883 floatf\SpecialChar \textcompwordmark{}
17886 , but it is currently not supported by LyX.
17899 \begin_layout Standard
17903 \begin_layout Itemize
17904 Wrap floats should not be placed in paragraphs that run over a page break.
17905 That means that wrap floats should better be inserted to the exact place
17906 when the document is nearly ready and you are able to estimate where page
17907 breaks will appear.
17910 \begin_layout Itemize
17911 Wrap floats should either be placed in an own paragraph before the paragraph
17912 where they should wrap into or within a paragraph.
17915 \begin_layout Itemize
17916 Wrap floats in consecutive paragraphs may cause troubles, so assure that
17917 there is a text paragraph between them as separator.
17920 \begin_layout Itemize
17921 Wrap floats are not allowed in section headings or tables.
17924 \begin_layout Section
17926 \begin_inset LatexCommand label
17927 name "sec:Referencing-Floats"
17932 \begin_inset LatexCommand index
17933 name "Floats ! References"
17938 \begin_inset LatexCommand index
17946 \begin_layout Standard
17947 To reference a float, insert a label into its caption using the menu
17949 Insert\SpecialChar \menuseparator
17952 or the toolbar button
17953 \begin_inset Graphics
17954 filename ../images/label-insert.xpm
17960 A grey label box like this one:
17961 \begin_inset Graphics
17962 filename clipart/labelQt4.png
17967 will be inserted and the label window pops up asking for the label text.
17968 LyX offers as text the first words of the caption with a prefix.
17969 The prefix depends on the float type, e.\InsetSpace \thinspace{}
17971 for figure floats the prefix will
17979 \begin_layout Standard
17980 The label is used as anchor and name for the reference.
17981 You can refer to the label using the menu
17983 Insert\SpecialChar \menuseparator
17986 or the toolbar button
17987 \begin_inset Graphics
17988 filename ../images/dialog-show-new-inset_ref.xpm
17994 A grey cross-reference box like this one:
17995 \begin_inset Graphics
17996 filename clipart/referenceQt4.png
18001 will be inserted and the cross-reference window appear showing all labels
18003 If you have multiple LyX-documents opened, choose the one you are working
18004 on from the drop-list at the top of the dialog.
18005 You can now sort the labels alphabetically and then choose one.
18006 At the position of the cross-reference box the float number will appear
18010 \begin_layout Standard
18011 It is recommended to use a protected space between the cross-reference name
18012 and its number to avoid line breaks between them.
18013 If a cross-reference refers to a non-existing label, you will see two question
18014 marks in the output instead of the reference.
18017 \begin_layout Standard
18018 You can change labels at any time by clicking on the label box.
18019 References to the changed label will automatically change its link to the
18020 new label text, so that you don't need to take care about this.
18023 \begin_layout Standard
18030 in the cross-reference window sets the cursor before the referred label.
18031 The button text changes then to Go\InsetSpace ~
18032 Back and you can use it to set the cursor
18033 back to the cross-reference.
18034 Right-clicking on a cross-reference box also sets the cursor before the
18035 referenced label but without a possibility to go back.
18038 \begin_layout Subsection
18039 Cross-Reference Formats
18040 \begin_inset LatexCommand label
18041 name "sub:Cross-Reference-Formats"
18046 \begin_inset LatexCommand index
18047 name "References ! Formats"
18054 \begin_layout Standard
18055 There are six varieties of cross-references:
18058 \begin_layout Description
18059 <reference>: prints the float number, this is the default:
18060 \begin_inset LatexCommand ref
18061 reference "fig:Two-distorted-images"
18068 \begin_layout Description
18069 (<reference>): prints the float number within two parentheses, this is the
18070 style normally used to reference formulas, especially when the reference
18072 \begin_inset Quotes eld
18076 \begin_inset Quotes erd
18080 \begin_inset LatexCommand eqref
18088 \begin_layout Description
18089 <page>: prints the page number: Page\InsetSpace ~
18091 \begin_inset LatexCommand pageref
18092 reference "fig:Two-distorted-images"
18099 \begin_layout Description
18102 <page>: prints the text "on page" and the page number:
18103 \begin_inset LatexCommand vpageref
18104 reference "fig:Two-distorted-images"
18111 \begin_layout Description
18112 <reference>\InsetSpace ~
18115 <page>: prints the float number, the text "on page", and
18117 \begin_inset LatexCommand vref
18118 reference "fig:Two-distorted-images"
18125 \begin_layout Description
18126 Formatted\InsetSpace ~
18127 reference: prints a self defined cross-reference format.
18129 \begin_inset Note Greyedout
18132 \begin_layout Standard
18137 This feature is only available when you have the LaTeX-package
18149 \begin_layout Standard
18150 Note that the style <page> won't print the page number if the label is on
18151 the previous, the same, or the next page.
18152 You will e.\InsetSpace \thinspace{}
18155 \begin_inset Quotes eld
18163 \begin_inset Quotes erd
18169 \begin_layout Standard
18170 The number and current page of the referred document part in the output,
18171 is automatically calculated by LaTeX.
18172 The varieties are adjusted in the field
18176 of the cross-reference window, that appear when you click on the cross-referenc
18180 \begin_layout Subsection
18181 Referencing Subfigures
18182 \begin_inset LatexCommand label
18183 name "sub:Referencing-Subfigures"
18188 \begin_inset LatexCommand index
18189 name "References ! to Subfigures"
18196 \begin_layout Standard
18197 Currently referencing subfigures is not supported by LyX, so you have to
18198 use LaTeX-commands.
18199 The label is the created with the command
18202 \begin_layout Standard
18207 label{fig:YourLabelName}
18210 \begin_layout Standard
18211 that is directly inserted into the subfigure caption field.
18212 To reference the label add this command in ERT
18215 \begin_layout Standard
18220 ref{fig:YourLabelName}
18223 \begin_layout Standard
18224 to the position in your document where the reference should be placed.
18225 Here is a reference to a subfigure: Subfigure\InsetSpace ~
18230 \begin_layout Standard
18242 \begin_layout Subsection
18243 Automatic Reference Naming
18244 \begin_inset LatexCommand index
18245 name "References ! Automatic Reference Naming"
18252 \begin_layout Standard
18257 provides a very useful feature that cross-references automatically include
18258 the name of the referenced floats (or text parts like sections).
18259 You save to write e.\InsetSpace \thinspace{}
18262 \begin_inset Quotes eld
18266 \begin_inset Quotes erd
18269 before every reference box.
18270 To get this automatic reference naming, you have to load the LaTeX-package
18276 \begin_inset LatexCommand index
18277 name "LaTeX-packages ! hyperref"
18281 in the document preamble with
18284 \begin_layout Standard
18289 usepackage[pdfborder={0 0 0}]{hyperref}
18304 \begin_layout Standard
18309 is used to link cross-references in the DVI- and PDF-output, this means
18310 that the reader of your document will be able to click on a table of content
18311 (TOC) entry or on a reference and he will be shown the referenced document
18317 also creates PDF-bookmarks for every section of your document to make it
18318 easier for readers to navigate through the document.
18319 This is also used in this document but when you have a look in the document
18320 preamble you will find various options in the load command of
18325 To learn more about the
18329 package, we refer to its documentation
18330 \begin_inset LatexCommand cite
18338 \begin_layout Standard
18339 \begin_inset Note Greyedout
18342 \begin_layout Standard
18347 Automatic reference naming cannot be used when you use cross-references
18350 Formatted\InsetSpace ~
18353 style, described in section\InsetSpace ~
18355 \begin_inset LatexCommand ref
18356 reference "sub:Cross-Reference-Formats"
18368 \begin_layout Subsection
18370 \begin_inset LatexCommand label
18371 name "sub:Reference-Position"
18376 \begin_inset LatexCommand index
18377 name "References ! Reference Position"
18384 \begin_layout Standard
18390 \begin_inset LatexCommand index
18391 name "LaTeX-packages ! hyperref"
18395 to link cross-references in the output, you will see that clicking on an
18396 image float reference jumps to the image label.
18397 The caption will be the first text part on the screen, so that you cannot
18398 see the image without scrolling.
18399 This is because the reference link anchor is placed at the position of
18401 With the use of the package
18406 \begin_inset LatexCommand index
18407 name "LaTeX-packages ! hypcap"
18411 , which is part of the LaTeX-package
18416 \begin_inset LatexCommand index
18417 name "LaTeX-packages ! oberdiek"
18421 , the link anchor is placed at the beginning of a float.
18422 To use this feature for figure floats, load
18426 in the document preamble with the line
18429 \begin_layout Standard
18434 usepackage[f\SpecialChar \textcompwordmark{}
18438 \begin_layout Standard
18443 for all floats but this isn't recommended for stability reasons.
18444 For more informations, have a look at
18449 \begin_inset LatexCommand cite
18457 \begin_layout Standard
18458 \begin_inset Note Greyedout
18461 \begin_layout Standard
18470 must be loaded after
18474 in the document preamble.
18482 \begin_layout Standard
18483 \begin_inset Note Greyedout
18486 \begin_layout Standard
18491 The set reference position has no effect for references to subfigures.
18499 \begin_layout Section
18501 \begin_inset LatexCommand label
18502 name "sec:Float-Placement"
18507 \begin_inset LatexCommand index
18508 name "Floats ! Placement"
18515 \begin_layout Standard
18516 Right-clicking on a float-box opens a dialog where you can alter the placement
18517 options that LaTeX uses for positioning the float.
18524 is only useful for two-column documents: If you select it, the float will
18525 span across both columns on the page instead of being confined to just
18530 Rotate\InsetSpace ~
18533 is used to rotate floats, see section
18534 \begin_inset LatexCommand ref
18535 reference "sec:Rotated-Floats"
18542 \begin_layout Standard
18543 You can use one ore more of the following options in the float dialog to
18544 set the placement for a particular float when you uncheck the option
18547 default\InsetSpace ~
18553 \begin_layout Description
18556 possible: try to place the float on the position where it is inserted
18559 \begin_layout Description
18562 page: try to place the float on the top of the current page
18565 \begin_layout Description
18566 Bottom\InsetSpace ~
18568 page: try to place the float on the bottom of the current page
18571 \begin_layout Description
18574 floats: try to place the float on an own page
18577 \begin_layout Standard
18578 The order of the above option is
18583 That means, if you use the default placement, LaTeX will first try out
18596 , and then the others.
18597 If you don't use the default, LaTeX will try only the checked options but
18599 If none of the 4 placements are possible the procedure is internally repeated
18600 but it is tried to put the float on the following page.
18603 \begin_layout Standard
18604 By default, each options has its own rules:
18607 \begin_layout Labeling
18608 \labelwidthstring 00.00.0000
18615 only floats occupying less than 70\InsetSpace \thinspace{}
18616 % of the page can be placed at the top
18626 \begin_layout Labeling
18627 \labelwidthstring 00.00.0000
18630 Bottom\InsetSpace ~
18634 : only floats occupying less than 30\InsetSpace \thinspace{}
18635 % of the page can be placed at the bottom
18646 \begin_layout Labeling
18647 \labelwidthstring 00.00.0000
18654 : only if more than 50\InsetSpace \thinspace{}
18655 % of the page are occupied by floats, several floats
18656 can be set together on a page.
18666 \begin_layout Standard
18667 If you don't like these rules, you can ignore them by using the additional
18670 Ignore\InsetSpace ~
18676 You can also redefine the rules with LaTeX-commands that are given in parenthese
18677 s behind the rules description above.
18678 To increase for example the often too small default of the bottom-rule
18679 to 50\InsetSpace \thinspace{}
18680 % of the page, add this line to your document preamble:
18683 \begin_layout Standard
18690 bottomfraction}{0.5}
18693 \begin_layout Standard
18694 Sometimes you might need, under all circumstances, a float to be placed
18695 exactly at the position where it is inserted.
18696 For this case you can use the option
18702 Use this option very rarely and only if the document is nearly ready to
18704 Because the float is then no longer able to
18705 \begin_inset Quotes eld
18709 \begin_inset Quotes erd
18712 when you change your document and this will often destroy the page layout.
18715 \begin_layout Standard
18716 There are no placement options for text wrap floats, because they are always
18717 surrounded by the text of a certain paragraph.
18718 \begin_inset VSpace bigskip
18724 \begin_layout Standard
18725 Sometimes you have the problem that a float is placed at the top of a page
18726 while its corresponding section starts at the middle of the page, so that
18727 the reader could think the float is part of the previous section.
18728 To avoid this the LaTeX-command
18732 suppressf\SpecialChar \textcompwordmark{}
18736 It suppresses a given float placement for the page where it is inserted
18737 and can therefore be used to avoid that floats could be set before a section
18739 To get this, add these commands to your document preamble:
18742 \begin_layout Standard
18759 suppressf\SpecialChar \textcompwordmark{}
18765 \begin_layout Standard
18766 You can define the same for all section headings, like chapters and subsections.
18767 This definition is not recommended to be used for small text parts like
18768 subsubsections because LaTeX may then have problems to find a suitable
18772 \begin_layout Standard
18773 \begin_inset VSpace bigskip
18776 In some cases it is required to have all figures/tables at the end of the
18778 For this purpose the LaTeX-package
18780 endf\SpecialChar \textcompwordmark{}
18784 \begin_inset LatexCommand index
18785 name "LaTeX-packages ! endfloat"
18790 It puts all figure and table floats at the end of the document into own
18792 At the original float position a text hint like
18793 \begin_inset Quotes eld
18798 [Figure\InsetSpace ~
18802 \begin_inset Quotes erd
18806 The endfloat-package is loaded in the preamble with the line
18809 \begin_layout Standard
18814 usepackage[options]{endf\SpecialChar \textcompwordmark{}
18818 \begin_layout Standard
18819 There are various package options to format the created figure/table sections.
18820 For more information we refer to the
18822 endf\SpecialChar \textcompwordmark{}
18826 \begin_inset LatexCommand cite
18834 \begin_inset Note Greyedout
18837 \begin_layout Standard
18840 Note: endf\SpecialChar \textcompwordmark{}
18843 doesn't provide an automatic translation for the text hint, you have to
18844 do this manually, see section\InsetSpace ~
18846 \begin_inset LatexCommand cite
18859 \begin_inset Note Greyedout
18862 \begin_layout Standard
18867 There is currently a bug in
18869 endf\SpecialChar \textcompwordmark{}
18872 when the caption contains a German
18873 \begin_inset Quotes eld
18877 \begin_inset Quotes erd
18881 Use in this case the command
18882 \begin_inset Quotes eld
18892 \begin_inset Quotes erd
18896 \begin_inset Quotes eld
18900 \begin_inset Quotes erd
18911 \begin_layout Standard
18912 \begin_inset VSpace bigskip
18915 For more details about float placements, have a look at LaTeX books,
18916 \begin_inset LatexCommand cite
18917 key "latexcompanion,latexguide,latexbook"
18924 \begin_layout Section
18926 \begin_inset LatexCommand label
18927 name "sec:Rotated-Floats"
18932 \begin_inset LatexCommand index
18933 name "Floats ! Rotating"
18940 \begin_layout Standard
18941 Especially for wide tables you might have floats rotated.
18942 To rotate a whole float including the caption, right-click on the float-box
18945 Rotate\InsetSpace ~
18951 \begin_layout Standard
18952 Rotated floats are always placed on its own page (or column, when you have
18953 a two-column document).
18954 They are normally rotated so that you can read them from the outside margin
18955 -- to the left on even pages, to the right on odd pages.
18958 \begin_layout Standard
18959 Referencing rotated floats is the same like for normal floats, the caption
18960 format is also the same: Table\InsetSpace ~
18962 \begin_inset LatexCommand ref
18963 reference "tab:Rotated-table"
18967 is an example of a rotated table float.
18970 \begin_layout Standard
18971 \begin_inset Note Greyedout
18974 \begin_layout Standard
18979 Not all DVI-viewers are able to display rotated floats.
18987 \begin_layout Standard
18988 \begin_inset Float table
18993 \begin_layout Standard
18994 \begin_inset Caption
18996 \begin_layout Standard
18997 \begin_inset LatexCommand label
18998 name "tab:Rotated-table"
19010 \begin_layout Standard
19012 \begin_inset Tabular
19013 <lyxtabular version="3" rows="1" columns="5">
19015 <column alignment="center" valignment="top" leftline="true" width="0">
19016 <column alignment="center" valignment="top" leftline="true" width="0">
19017 <column alignment="center" valignment="top" leftline="true" width="0">
19018 <column alignment="center" valignment="top" leftline="true" width="0">
19019 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19020 <row topline="true" bottomline="true">
19021 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19024 \begin_layout Standard
19030 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19033 \begin_layout Standard
19039 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19042 \begin_layout Standard
19048 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19051 \begin_layout Standard
19057 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19060 \begin_layout Standard
19079 \begin_layout Section
19081 \begin_inset LatexCommand index
19082 name "Caption ! Formatting"
19087 \begin_inset LatexCommand index
19088 name "Floats ! Caption Formatting"
19093 \begin_inset LatexCommand index
19094 name "LaTeX-packages ! caption"
19099 \begin_inset LatexCommand label
19100 name "sec:Caption-Formatting"
19107 \begin_layout Standard
19112 environment is the default paragraph environment for
19117 On the LyX screen captions appear as label, e.\InsetSpace \thinspace{}
19120 \begin_inset Quotes eld
19128 \begin_inset Quotes erd
19131 followed by the caption text.
19133 \begin_inset Quotes eld
19137 \begin_inset Quotes erd
19140 is substituted in the printed output by the actual reference number.
19141 By default the label and the number are in the same font as the caption
19142 text and a colon follows the number to divide then label from the text.
19143 This caption format is not suitable for all document formats.
19147 \begin_layout Standard
19148 To change the default caption format, load the LaTeX-package
19153 \begin_inset LatexCommand index
19154 name "LaTeX-packages ! caption"
19158 in the document preamble with this line:
19161 \begin_layout Standard
19166 usepackage[format definition]{caption}
19169 \begin_layout Standard
19170 To have for example the label and the number in sans-serif bold font and
19171 the table captions always above the table like in this document, use the
19175 \begin_layout Standard
19180 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
19183 \begin_layout Standard
19184 You can also define different caption formats for the different float types.
19185 In this case load the
19189 package without format specific options and define the different formats
19190 with the help of the command
19193 \begin_layout Standard
19198 captionsetup[float type]{format definition}
19201 \begin_layout Standard
19202 in the document preamble.
19203 For example the caption formats of Figure\InsetSpace ~
19205 \begin_inset LatexCommand ref
19206 reference "fig:This-is-an-fig"
19210 and Table\InsetSpace ~
19212 \begin_inset LatexCommand ref
19213 reference "tab:This-is-an-tab"
19217 can be created using these commands in the document preamble:
19220 \begin_layout Standard
19225 usepackage[tableposition=top]{caption}
19233 captionsetup[f\SpecialChar \textcompwordmark{}
19234 igure]{labelfont={tt}, textfont=it, indention=1cm,%
19240 \begin_layout Standard
19248 captionsetup[figure]
19259 captionsetup[table]{labelfont={bf,sf}}
19262 \begin_layout Standard
19263 \begin_inset Note Greyedout
19266 \begin_layout Standard
19275 has no effect when a
19280 \begin_inset LatexCommand index
19281 name "LaTeX-packages ! koma-script"
19285 document class is used.
19286 In this case the document class option
19298 \begin_layout Standard
19299 For more information about the package
19303 we refer to its documentation
19304 \begin_inset LatexCommand cite
19305 key "caption,caption-de"
19312 \begin_layout Standard
19313 To change the label name from e.g.
19315 \begin_inset Quotes eld
19319 \begin_inset Quotes erd
19323 \begin_inset Quotes eld
19327 \begin_inset Quotes erd
19330 use this preamble command:
19333 \begin_layout Standard
19340 fnum@figure}{Image~
19345 \begin_layout Standard
19352 inserts the figure number and
19355 \begin_inset Quotes eld
19361 \begin_inset Quotes erd
19364 creates a protected space.
19367 \begin_layout Standard
19368 \begin_inset VSpace bigskip
19376 \begin_inset LatexCommand index
19377 name "LaTeX-packages ! koma-script"
19383 article (koma-script)
19391 letter (koma-script)
19395 report (koma-script)
19397 \InsetSpace \thinspace{}
19398 ), you can alternatively to the
19406 's built-in command
19413 For example, to have the caption label in bold, add this command to your
19417 \begin_layout Standard
19422 setkomafont{captionlabel}{
19427 \begin_layout Standard
19428 For more information about
19439 \begin_inset LatexCommand cite
19440 key "koma-script,koma-script-de"
19447 \begin_layout Standard
19451 \begin_layout Standard
19455 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
19462 \begin_inset Note Note
19465 \begin_layout Standard
19466 The caption format is changed only for this example.
19474 \begin_layout Standard
19475 \begin_inset Float figure
19481 \begin_layout Standard
19483 \begin_inset Graphics
19484 filename clipart/mobius.eps
19493 \begin_layout Standard
19494 \begin_inset Caption
19496 \begin_layout Standard
19497 \begin_inset LatexCommand label
19498 name "fig:This-is-an-fig"
19502 This is an example figure caption that is longer than one line to show the
19503 different caption format.
19504 Here a self-defined caption format is used.
19517 \begin_layout Standard
19521 \begin_layout Standard
19525 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
19534 \begin_layout Standard
19535 \begin_inset Float table
19541 \begin_layout Standard
19542 \begin_inset Caption
19544 \begin_layout Standard
19545 \begin_inset LatexCommand label
19546 name "tab:This-is-an-tab"
19550 This is an example table caption that is longer than one line to show the
19551 different caption format.
19552 Here the standard caption format for tables in this document is used.
19560 \begin_layout Standard
19562 \begin_inset Tabular
19563 <lyxtabular version="3" rows="1" columns="5">
19565 <column alignment="center" valignment="top" leftline="true" width="0">
19566 <column alignment="center" valignment="top" leftline="true" width="0">
19567 <column alignment="center" valignment="top" leftline="true" width="0">
19568 <column alignment="center" valignment="top" leftline="true" width="0">
19569 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19570 <row topline="true" bottomline="true">
19571 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19574 \begin_layout Standard
19580 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19583 \begin_layout Standard
19589 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19592 \begin_layout Standard
19598 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19601 \begin_layout Standard
19607 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19610 \begin_layout Standard
19629 \begin_layout Section
19631 \begin_inset LatexCommand index
19632 name "Caption ! Placement"
19637 \begin_inset LatexCommand index
19638 name "Floats ! Caption Placement"
19643 \begin_inset LatexCommand label
19644 name "sec:Caption-Placement"
19651 \begin_layout Standard
19652 The common caption placement rule is:
19655 \begin_layout Description
19656 Figure: Caption is set below the figure
19659 \begin_layout Description
19660 Table: Caption is set above the table
19663 \begin_layout Standard
19664 Having the caption above the table is unfortunately not supported in LaTeX's
19666 That means if you are using the document classes
19682 there will be no space between the caption and the table.
19683 To insert the needed space, add the following option to the load command
19684 of the LaTeX-package
19688 in your document preamble
19692 \begin_layout Standard
19693 See section\InsetSpace ~
19695 \begin_inset LatexCommand ref
19696 reference "sec:Caption-Formatting"
19700 for more information of the package
19712 \begin_layout Standard
19718 \begin_layout Standard
19724 \begin_inset LatexCommand index
19725 name "LaTeX-packages ! koma-script"
19731 article (koma-script)
19739 letter (koma-script)
19743 report (koma-script)
19745 \InsetSpace \thinspace{}
19746 ), you can alternatively to the
19750 package set the document class option
19754 , or you can use the environment
19756 caption\InsetSpace ~
19766 \begin_layout Standard
19767 \begin_inset VSpace bigskip
19770 It is also possible to set the caption beside a figure or table.
19771 To get this the LaTeX-package
19776 \begin_inset LatexCommand index
19777 name "LaTeX-packages ! sidecap"
19781 has to be loaded in the document preamble with the line
19784 \begin_layout Standard
19789 usepackage[option]{sidecap}
19792 \begin_layout Standard
19793 If you set no option, the caption is placed on the side of the outer page
19794 margin -- to the right on odd pages, to the left on even pages.
19795 You can change the placement to inner margin with the option
19800 To force the placement always to the right or left, use the option
19811 \begin_layout Standard
19812 To place in LyX the caption of a float on the side, it is necessary to add
19813 these commands to the document preamble:
19816 \begin_layout Standard
19822 \begin_layout Standard
19835 \begin_layout Standard
19856 \begin_layout Standard
19877 \begin_layout Standard
19888 renewenvironment{table}{
19895 \begin_layout Standard
19908 \begin_layout Standard
19929 \begin_layout Standard
19947 \begin_layout Standard
19960 \begin_layout Standard
19975 f\SpecialChar \textcompwordmark{}
19982 \begin_layout Standard
19995 MyEndf\SpecialChar \textcompwordmark{}
19998 endf\SpecialChar \textcompwordmark{}
20005 \begin_layout Standard
20016 renewenvironment{f\SpecialChar \textcompwordmark{}
20019 begin{SCf\SpecialChar \textcompwordmark{}
20022 end{SCf\SpecialChar \textcompwordmark{}
20026 \begin_layout Standard
20039 \begin_layout Standard
20052 f\SpecialChar \textcompwordmark{}
20061 \begin_layout Standard
20074 endf\SpecialChar \textcompwordmark{}
20077 MyEndf\SpecialChar \textcompwordmark{}
20081 \begin_layout Standard
20087 \begin_layout Standard
20088 The commands allow you to redefine the floats so that the caption is set
20090 For figure floats use the command
20093 \begin_layout Standard
20101 \begin_layout Standard
20102 in ERT before the float.
20103 Behind the float insert the command
20106 \begin_layout Standard
20114 \begin_layout Standard
20115 in ERT to get back to the original float definition.
20118 \begin_layout Standard
20119 For table floats use the corresponding commands
20122 \begin_layout Standard
20136 \begin_layout Standard
20137 Figure\InsetSpace ~
20139 \begin_inset LatexCommand ref
20140 reference "fig:cap-beside-fig"
20144 and Table\InsetSpace ~
20146 \begin_inset LatexCommand ref
20147 reference "tab:cap-beside-tab"
20151 are examples where the caption is set beside.
20154 \begin_layout Standard
20155 You can see in the examples that the caption text appears at the top of
20156 the floats for table floats and at the bottom for figure floats.
20157 To change this, you can use the command
20160 \begin_layout Standard
20165 sidecaptionvpos{float type}{placement}
20168 \begin_layout Standard
20169 in the document preamble or in ERT before the float.
20170 The float type is either
20178 , the placement can be
20179 \begin_inset Quotes eld
20187 \begin_inset Quotes erd
20191 \begin_inset Quotes eld
20199 \begin_inset Quotes erd
20203 \begin_inset Quotes eld
20211 \begin_inset Quotes erd
20215 To have for example the caption of figure floats vertically centered, use
20219 \begin_layout Standard
20224 sidecaptionvpos{f\SpecialChar \textcompwordmark{}
20228 \begin_layout Standard
20229 This was used for Figure\InsetSpace ~
20231 \begin_inset LatexCommand ref
20232 reference "fig:cap-beside-fig-2"
20239 \begin_layout Standard
20240 \begin_inset VSpace defskip
20243 For more information about the package
20247 we refer to its documentation
20248 \begin_inset LatexCommand cite
20256 \begin_layout Standard
20257 \begin_inset Note Greyedout
20260 \begin_layout Standard
20270 \begin_inset LatexCommand index
20271 name "LaTeX-packages ! hypcap"
20275 , described in section\InsetSpace ~
20277 \begin_inset LatexCommand ref
20278 reference "sub:Reference-Position"
20282 , has no effect on floats with the caption set beside.
20290 \begin_layout Standard
20294 \begin_layout Standard
20306 \begin_layout Standard
20307 \begin_inset Float figure
20312 \begin_layout Standard
20313 \begin_inset Graphics
20314 filename clipart/escher-lsd.eps
20322 \begin_layout Standard
20323 \begin_inset Caption
20325 \begin_layout Standard
20326 \begin_inset LatexCommand label
20327 name "fig:cap-beside-fig"
20331 This is a caption beside a figure.
20344 \begin_layout Standard
20348 \begin_layout Standard
20360 \begin_layout Standard
20361 \begin_inset Float table
20366 \begin_layout Standard
20367 \begin_inset Caption
20369 \begin_layout Standard
20370 \begin_inset LatexCommand label
20371 name "tab:cap-beside-tab"
20375 This is a caption beside a table.
20383 \begin_layout Standard
20384 \begin_inset Tabular
20385 <lyxtabular version="3" rows="4" columns="5">
20387 <column alignment="center" valignment="top" leftline="true" width="0">
20388 <column alignment="center" valignment="top" leftline="true" width="0">
20389 <column alignment="center" valignment="top" leftline="true" width="0">
20390 <column alignment="center" valignment="top" leftline="true" width="0">
20391 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
20392 <row topline="true">
20393 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20396 \begin_layout Standard
20402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20405 \begin_layout Standard
20411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20414 \begin_layout Standard
20420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20423 \begin_layout Standard
20429 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20432 \begin_layout Standard
20439 <row topline="true">
20440 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20443 \begin_layout Standard
20449 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20452 \begin_layout Standard
20458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20461 \begin_layout Standard
20467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20470 \begin_layout Standard
20476 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20479 \begin_layout Standard
20486 <row topline="true">
20487 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20490 \begin_layout Standard
20496 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20499 \begin_layout Standard
20505 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20508 \begin_layout Standard
20514 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20517 \begin_layout Standard
20523 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20526 \begin_layout Standard
20533 <row topline="true" bottomline="true">
20534 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20537 \begin_layout Standard
20543 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20546 \begin_layout Standard
20552 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20555 \begin_layout Standard
20561 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20564 \begin_layout Standard
20570 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20573 \begin_layout Standard
20592 \begin_layout Standard
20596 \begin_layout Standard
20608 \begin_layout Standard
20612 \begin_layout Standard
20616 sidecaptionvpos{figure}{c}
20622 \begin_inset Float figure
20627 \begin_layout Standard
20628 \begin_inset Graphics
20629 filename clipart/escher-lsd.eps
20637 \begin_layout Standard
20638 \begin_inset Caption
20640 \begin_layout Standard
20641 \begin_inset LatexCommand label
20642 name "fig:cap-beside-fig-2"
20646 This is a vertically centered caption beside a figure.
20659 \begin_layout Standard
20663 \begin_layout Standard
20675 \begin_layout Section
20677 \begin_inset LatexCommand label
20678 name "sec:Listings-of-Floats"
20683 \begin_inset LatexCommand index
20684 name "Floats ! Listings"
20691 \begin_layout Standard
20692 Similar to the the table of contents where the sections of the document
20693 are listed, there are listings for all float types, like the figures of
20695 You can insert them via the
20697 Insert\SpecialChar \menuseparator
20705 \begin_layout Standard
20706 The list entries are the float captions or its short title, the float number,
20707 and the page number where they appear in the document.
20710 \begin_layout Standard
20711 You can find the list of figures and tables at the end of this document.
20714 \begin_layout Chapter
20718 \begin_layout Section
20722 \begin_layout Standard
20735 \begin_layout Standard
20743 \begin_inset LatexCommand label
20744 name "sec:LyX-Notes"
20749 \begin_inset LatexCommand index
20750 name "Notes ! LyX Notes"
20755 \begin_inset Note Note
20758 \begin_layout Standard
20761 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
20762 are displayed wrongly in PDF-bookmarks.
20763 For more information about this, have a look at
20764 \begin_inset LatexCommand cite
20777 \begin_layout Standard
20778 Notes are inserted with the toolbar button
20779 \begin_inset Graphics
20780 filename ../images/note-insert.xpm
20787 Insert\SpecialChar \menuseparator
20791 There are three types of notes:
20794 \begin_layout Description
20796 Note This note type is for internal notes that won't appear in the output.
20797 Its note-box looks like this:
20802 \begin_inset Graphics
20803 filename clipart/LyXNoteImageQt4.png
20810 \begin_inset Note Note
20813 \begin_layout Standard
20814 This is text in a note box that doesn't appear in the output.
20822 \begin_layout Description
20823 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
20824 ent, when you export the document to LaTeX via the menu
20826 File\SpecialChar \menuseparator
20827 Export\SpecialChar \menuseparator
20828 LaTeX (pdflatex) / LaTeX (plain)
20831 Its note-box looks like this:
20836 \begin_inset Graphics
20837 filename clipart/CommentNoteImageQt4.png
20844 \begin_inset Note Comment
20847 \begin_layout Standard
20848 This is text in a note box that only appears as comment in LaTeX-files.
20856 \begin_layout Description
20857 Greyed\InsetSpace ~
20858 Out This note will appear in the output as grey text.
20859 Its note-box looks like this:
20864 \begin_inset Graphics
20865 filename clipart/GreyedOutNoteImageQt4.png
20877 \begin_layout Standard
20881 renewenvironment{lyxgreyedout}
20884 \begin_layout Standard
20888 textcolor[gray]{0.8}
20898 \begin_inset Note Greyedout
20901 \begin_layout Standard
20906 \begin_layout Standard
20907 This is an example footnote within a greyed out note.
20912 of a comment that appears in the output as grey text.
20921 \begin_layout Standard
20925 renewenvironment{lyxgreyedout}
20928 \begin_layout Standard
20942 \begin_inset Note Note
20945 \begin_layout Standard
20946 The greyed out note is here redefined to show it with the original LyX definitio
20947 n because greyed out notes are redefined in the preamble of this document,
20948 as described below, to have blue text.
20957 As you can see in the example, the first line of greyed out notes is a bit
20958 indented and greyed out notes can have footnotes.
20961 \begin_layout Description
20962 Framed This note will appear in the output as framed text.
20963 Its note-box looks like this:
20968 \begin_inset Graphics
20969 filename clipart/FramedNoteImageQt4.png
20976 \begin_inset Note Framed
20979 \begin_layout Standard
20980 This is text in a note box that appears framed in the output.
20985 In contrary to framed boxes
20989 \begin_layout Standard
20990 Framed boxes are described in section\InsetSpace ~
20992 \begin_inset LatexCommand ref
20993 reference "sec:Framed-Boxes"
21002 the frame uses always the whole text width and the note is set into its
21006 \begin_layout Description
21007 Shaded This note will appear in the output with red background color.
21008 Its note box looks like this:
21013 \begin_inset Graphics
21014 filename clipart/ShadedNoteImageQt4.png
21021 \begin_inset Note Shaded
21024 \begin_layout Standard
21025 This text in a note box appears in the output with red background.
21030 In contrary to colored boxes
21034 \begin_layout Standard
21035 Colored boxes are described in section\InsetSpace ~
21037 \begin_inset LatexCommand ref
21038 reference "sec:Colored-Boxes"
21047 the note uses always the whole text width and the note is set into its
21051 \begin_layout Standard
21052 \begin_inset VSpace bigskip
21055 When you use the toolbar button to insert notes, a
21061 You can switch between the three note types by right-clicking on the note-box.
21066 If you want to turn existing text into a note, mark it and click on the
21082 \begin_layout Standard
21083 \begin_inset VSpace bigskip
21086 You can change the text color of the greyed out notes in the preamble with
21087 the following command:
21090 \begin_layout Standard
21095 renewenvironment{lyxgreyedout}
21101 \begin_layout Standard
21119 \begin_layout Standard
21120 The available colors and the method to define own colors is explained in
21121 section\InsetSpace ~
21123 \begin_inset LatexCommand ref
21124 reference "sec:Colored-Tables"
21131 \begin_layout Standard
21132 Notes that appear in blue in this document are set using greyed out notes
21136 \begin_layout Standard
21137 \begin_inset VSpace bigskip
21143 \begin_layout Standard
21152 notes can be set in the
21159 \begin_layout Standard
21160 The default frame width for
21164 notes is 0.4\InsetSpace \thinspace{}
21165 pt; it can be changed by changing the size
21172 The default space between the note content and the frame is 9\InsetSpace \thinspace{}
21174 be changed by changing the size
21181 For example the frame appearance of the following
21185 note is set with the ERT commands
21188 \begin_layout Standard
21198 \begin_layout Standard
21202 \begin_layout Standard
21214 \begin_inset Note Framed
21217 \begin_layout Standard
21231 \begin_layout Standard
21245 \begin_layout Standard
21246 \begin_inset VSpace bigskip
21252 \begin_layout Standard
21257 notes the default space between the note content and the note border is
21258 3\InsetSpace \thinspace{}
21259 pt; it can be changed by changing the size
21267 The default background color red can be changed with the command
21271 def\SpecialChar \textcompwordmark{}
21279 def\SpecialChar \textcompwordmark{}
21282 command is explained in section\InsetSpace ~
21284 \begin_inset LatexCommand ref
21285 reference "sec:Colored-Tables"
21293 \begin_layout Standard
21300 \SpecialChar \textcompwordmark{}
21305 requires the LaTeX-package
21309 in the preamble, see section\InsetSpace ~
21311 \begin_inset LatexCommand ref
21312 reference "sec:Colored-Boxes"
21324 \begin_layout Standard
21325 For example the appearance of the following
21329 note is set with the ERT commands
21332 \begin_layout Standard
21345 def\SpecialChar \textcompwordmark{}
21346 inecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21349 \begin_layout Standard
21353 \begin_layout Standard
21366 \begin_layout Standard
21370 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21376 \begin_inset Note Shaded
21379 \begin_layout Standard
21382 This is yellow text in a
21392 note with darkgreen background.
21401 \begin_layout Standard
21414 \begin_layout Standard
21418 definecolor{shadecolor}{rgb}{1,0,0}
21426 \begin_layout Section
21428 \begin_inset LatexCommand label
21429 name "sec:Footnotes"
21434 \begin_inset LatexCommand index
21435 name "Notes ! Footnotes"
21440 \begin_inset LatexCommand index
21448 \begin_layout Standard
21449 Footnotes can be inserted using the toolbar button
21450 \begin_inset Graphics
21451 filename ../images/footnote-insert.xpm
21458 Insert\SpecialChar \menuseparator
21470 then the following footnote-box:
21471 \begin_inset Graphics
21472 filename clipart/footnoteQt4.png
21481 where you can enter the footnote text.
21482 If you want to turn existing text into a footnote, mark it and click on
21498 \begin_layout Standard
21499 Here is an example footnote:
21507 \begin_layout Standard
21508 \begin_inset LatexCommand label
21509 name "foot:This-is-an"
21513 This is an example footnote.
21526 \begin_layout Standard
21530 newcounter{MyRepeatFoot}
21533 \begin_layout Standard
21537 setcounter{MyRepeatFoot}{
21547 \begin_layout Standard
21548 The footnote will appear in the output as a superscript number at the text
21549 position where the footnote box is placed.
21550 The footnote text is placed at the bottom of the current page.
21551 The footnote number is calculated by LaTeX, the numbers are consecutive.
21552 It depends on your document-class, if the footnote number is reset for
21556 \begin_layout Standard
21557 Footnotes can be referenced like floats: Insert a label into the footnote
21558 and cross-reference this label in the text as described in section\InsetSpace ~
21560 \begin_inset LatexCommand ref
21561 reference "sec:Referencing-Floats"
21567 This is a cross-reference of Footnote\InsetSpace ~
21569 \begin_inset LatexCommand ref
21570 reference "foot:This-is-an"
21577 \begin_inset Note Greyedout
21580 \begin_layout Standard
21585 LyX doesn't provide a prefix for labels in footnotes, so you have to insert
21586 e.\InsetSpace \thinspace{}
21591 \begin_inset Quotes eld
21597 \begin_inset Quotes erd
21600 manually when you want to use the reference style
21602 Formatted\InsetSpace ~
21613 \begin_layout Standard
21614 \begin_inset VSpace defskip
21617 To use footnotes within tables, you have to use minipages, see section\InsetSpace ~
21619 \begin_inset LatexCommand ref
21620 reference "sec:Minipages"
21625 Footnotes within longtables are described in section\InsetSpace ~
21627 \begin_inset LatexCommand ref
21628 reference "sub:Footnotes-in-Longtables"
21635 \begin_layout Standard
21636 \begin_inset VSpace defskip
21639 To create only a mark for a footnote, use the command
21643 footnotemark[number]
21646 This is used when you have the same annotation several times in a text
21647 but doesn't want to print the footnote text every time.
21650 the number of the repeating footnote while you are writing the text, you
21651 have to store its number.
21652 For the following footnote mark example, these commands were inserted in
21653 ERT behind Footnote\InsetSpace ~
21655 \begin_inset LatexCommand ref
21656 reference "foot:This-is-an"
21660 to store the footnote number:
21663 \begin_layout Standard
21668 newcounter{MyRepeatFoot}
21672 setcounter{MyRepeatFoot}{
21677 \begin_layout Standard
21678 The footnote mark was then created with this command:
21681 \begin_layout Standard
21691 \begin_layout Standard
21692 Here is an example footnote mark:
21700 \begin_layout Standard
21714 \begin_layout Subsection
21716 \begin_inset LatexCommand label
21717 name "sub:Footnote-Numbering"
21722 \begin_inset LatexCommand index
21723 name "Footnotes ! Numbering"
21730 \begin_layout Standard
21731 If you want to have footnotes numbered in the scheme
21732 \begin_inset Quotes eld
21736 \begin_inset Quotes erd
21739 , add the following command to your document preamble:
21742 \begin_layout Standard
21747 numberwithin{footnote}{chapter}
21750 \begin_layout Standard
21751 To be able to use the command
21762 in the document settings the option
21772 \begin_layout Standard
21776 \begin_layout Standard
21780 numberwithin{footnote}{chapter}
21785 This is another example footnote:
21791 \begin_layout Standard
21792 This is a footnote numbered in the scheme
21793 \begin_inset Quotes eld
21797 \begin_inset Quotes erd
21811 \begin_layout Standard
21815 numberwithin{footnote}{part}
21823 \begin_layout Standard
21824 \begin_inset VSpace bigskip
21830 \begin_layout Standard
21831 To reset the footnote number back to 1 after each section
21833 , add this command to your document preamble:
21836 \begin_layout Standard
21841 @addtoreset{footnote}{section}
21844 \begin_layout Standard
21845 \begin_inset VSpace bigskip
21848 The following preamble command changes the footnote numbering style to small
21852 \begin_layout Standard
21864 \begin_layout Standard
21868 \begin_layout Standard
21881 This is a footnote with roman numbering:
21885 \begin_layout Standard
21886 This is an example footnote with roman numbering.
21895 \begin_layout Standard
21911 \begin_layout Standard
21912 To change the numbering style to capital roman numerals replace in the command
21927 \begin_inset Quotes eld
21931 \begin_inset Quotes erd
21934 footnotes with capital or small Latin letters use
21948 \begin_inset Quotes eld
21952 \begin_inset Quotes erd
21955 footnotes with symbols use
21964 \begin_layout Standard
21965 \begin_inset Note Greyedout
21968 \begin_layout Standard
21973 You can only number 26 footnotes with Latin letters, because this numbering
21974 is limited to single letters.
21982 \begin_inset Note Greyedout
21985 \begin_layout Standard
21990 You can only number 9 footnotes with symbols.
21998 \begin_layout Standard
21999 To return to the default numbering style when you changed to another one,
22012 in the command above.
22015 \begin_layout Subsection
22017 \begin_inset LatexCommand index
22018 name "Footnotes ! Placement"
22025 \begin_layout Standard
22026 If you have several footnotes in one page, they appear without vertical
22027 space between them at the bottom of the page.
22028 To make them better readable you can e.\InsetSpace \thinspace{}
22030 add 1.5\InsetSpace \thinspace{}
22031 mm space with the following
22035 \begin_layout Standard
22057 \begin_layout Standard
22058 \begin_inset VSpace bigskip
22061 In a two-column document the footnotes appear at the bottom of every column,
22062 see Figure\InsetSpace ~
22064 \begin_inset LatexCommand ref
22065 reference "fig:Standard-footnote-placement"
22070 If the footnotes should only appear at the bottom of the right column,
22071 as in Figure\InsetSpace ~
22073 \begin_inset LatexCommand ref
22074 reference "fig:Footnote-placement-in"
22078 , use the LaTeX-package
22083 \begin_inset LatexCommand index
22084 name "LaTeX-packages ! ftnright"
22088 with this command in the document preamble:
22091 \begin_layout Standard
22096 usepackage{ftnright}
22099 \begin_layout Standard
22100 \begin_inset Float figure
22106 \begin_layout Standard
22110 \begin_layout Standard
22120 \begin_inset Graphics
22121 filename clipart/without_fntright.pdf
22130 \begin_layout Standard
22140 \begin_layout Standard
22141 \begin_inset Caption
22143 \begin_layout Standard
22144 \begin_inset LatexCommand label
22145 name "fig:Standard-footnote-placement"
22149 Standard footnote placement in two-column documents.
22162 \begin_layout Standard
22163 \begin_inset Float figure
22169 \begin_layout Standard
22173 \begin_layout Standard
22183 \begin_inset Graphics
22184 filename clipart/with_fntright.pdf
22193 \begin_layout Standard
22203 \begin_layout Standard
22204 \begin_inset Caption
22206 \begin_layout Standard
22207 \begin_inset LatexCommand label
22208 name "fig:Footnote-placement-in"
22212 Footnote placement in two-column documents when the LaTeX-package
22229 \begin_layout Standard
22230 \begin_inset VSpace bigskip
22233 In some scientific literature it is usual to collect the footnotes and print
22234 them in a separate paragraph at the the end of a section, like in Figure\InsetSpace ~
22236 \begin_inset LatexCommand ref
22237 reference "fig:Endnotes----footnotes"
22242 They are then so called
22243 \begin_inset Quotes eld
22247 \begin_inset Quotes erd
22251 To use endnotes instead of footnotes in your document, load the LaTeX-package
22257 \begin_inset LatexCommand index
22258 name "LaTeX-packages ! endnotes"
22262 with the document preamble lines
22265 \begin_layout Standard
22270 usepackage{endnotes}
22281 \begin_layout Standard
22282 To insert the collected footnotes, insert the command
22285 \begin_layout Standard
22293 \begin_layout Standard
22294 in ERT at the the end of a section or chapter.
22297 \begin_layout Standard
22298 \begin_inset Float figure
22303 \begin_layout Standard
22308 \begin_layout Standard
22318 \begin_inset Graphics
22319 filename clipart/endnotes.pdf
22327 \begin_layout Standard
22337 \begin_layout Standard
22338 \begin_inset Caption
22340 \begin_layout Standard
22341 \begin_inset LatexCommand label
22342 name "fig:Endnotes----footnotes"
22346 Endnotes -- footnotes are printed in a separate paragraph at the end of
22347 sections or chapters.
22360 \begin_layout Standard
22361 \begin_inset VSpace defskip
22364 The paragraph heading for the endnotes isn't automatically translated into
22365 the document language, this must be done manually.
22366 The following preamble command translate the default English name
22367 \begin_inset Quotes eld
22371 \begin_inset Quotes erd
22374 to the German translation
22375 \begin_inset Quotes eld
22379 \begin_inset Quotes erd
22385 \begin_layout Standard
22392 notesname}{Anmerkungen}
22395 \begin_layout Standard
22396 \begin_inset VSpace defskip
22399 The numbering of endnotes can be changed like the footnote numbering as
22400 described in section\InsetSpace ~
22402 \begin_inset LatexCommand ref
22403 reference "sub:Footnote-Numbering"
22407 ; just replace the command
22420 To reset the endnote number use the command
22426 as described in section\InsetSpace ~
22428 \begin_inset LatexCommand ref
22429 reference "sub:Footnote-Numbering"
22433 and replace the command parameter
22444 \begin_layout Standard
22445 To create only a mark for an endnote, use the command
22449 endnotemark[number]
22451 similar to the command
22457 , described in section\InsetSpace ~
22459 \begin_inset LatexCommand ref
22460 reference "sec:Footnotes"
22467 \begin_layout Standard
22468 \begin_inset VSpace bigskip
22471 Footnotes can also be placed in the page margin and the footnote text alignment
22472 can be changed, see the LaTeX-package
22477 \begin_inset LatexCommand index
22478 name "LaTeX-packages ! footmisc"
22483 \begin_inset LatexCommand cite
22488 for more information about this.
22491 \begin_layout Standard
22492 For various further footnote formatting issues have a look at LaTeX-books,
22494 \begin_inset LatexCommand cite
22495 key "latexcompanion,latexguide,latexbook"
22502 \begin_layout Section
22504 \begin_inset LatexCommand index
22505 name "Notes ! Margin Notes"
22512 \begin_layout Standard
22513 Margin notes look and behave in LyX like footnotes.
22514 They are inserted via the menu
22516 Insert\SpecialChar \menuseparator
22517 Marginal\InsetSpace ~
22520 or the toolbar button
22521 \begin_inset Graphics
22522 filename ../images/marginalnote-insert.xpm
22538 \begin_inset Quotes eld
22542 \begin_inset Quotes erd
22545 appears where you can enter the text of the margin note.
22548 \begin_layout Standard
22549 At the side is an example margin note.
22553 \begin_inset Marginal
22556 \begin_layout Standard
22557 This is a margin note.
22565 \begin_layout Standard
22566 Margin notes appear at the right side in single-sided documents.
22567 In double-sided documents they appear in the outer margin -- left on even
22568 pages, right on odd pages.
22569 The text of margin notes is aligned opposite to the outer margin -- right-align
22570 ed when the note appears in the left margin.
22571 The first line of the margin note is placed at the position of the text
22572 line where it is inserted in the document.
22575 \begin_layout Standard
22576 \begin_inset VSpace bigskip
22579 To place the margin note in the inner margin, add the command
22582 \begin_layout Standard
22590 \begin_layout Standard
22591 in ERT before a margin note.
22592 The new placement is valid for all following margin notes.
22596 \begin_layout Standard
22606 \begin_inset Marginal
22609 \begin_layout Standard
22610 This is a margin note in the inner margin.
22622 \begin_inset Note Greyedout
22625 \begin_layout Standard
22630 There is often not enough space in the inner margin so that the notes are
22631 not correctly displayed in the output.
22639 \begin_layout Standard
22643 \begin_layout Standard
22652 To return to the default placement insert the command
22655 \begin_layout Standard
22663 \begin_layout Standard
22666 \begin_inset Note Greyedout
22669 \begin_layout Standard
22674 The command is ignored when it is within a paragraph where also the command
22689 \begin_layout Standard
22690 \begin_inset VSpace bigskip
22697 \begin_inset Marginal
22700 \begin_layout Standard
22701 AVeryLongMarginParWord that isn't hyphenated.
22709 Similar to the case described in section\InsetSpace ~
22711 \begin_inset LatexCommand ref
22712 reference "sub:Multiple-Lines-in"
22716 , long words cannot be hyphenated when they are the first word in a margin
22718 To avoid this, insert the command
22721 \begin_layout Standard
22729 \begin_layout Standard
22730 in ERT before the word
22734 \begin_inset Marginal
22737 \begin_layout Standard
22741 \begin_layout Standard
22750 AVeryLongMarginParWord that is hyphenated.
22758 \begin_layout Standard
22759 \begin_inset VSpace bigskip
22765 \begin_layout Standard
22766 \begin_inset Note Greyedout
22769 \begin_layout Standard
22774 Margin notes can normally not be used inside tables, floats, and footnotes.
22782 \begin_layout Standard
22783 \begin_inset VSpace bigskip
22789 \begin_layout Standard
22793 \begin_layout Standard
22803 \begin_inset Note Note
22806 \begin_layout Standard
22807 The following section will only be displayed when you have the LaTeX-package
22820 \begin_layout Standard
22821 This restriction can be evaded by using the LaTeX-package
22826 \begin_inset LatexCommand index
22827 name "LaTeX-packages ! marginnote"
22832 By adding these two lines to your document preamble, the command used by
22833 LyX for margin notes is redefined to use the command provided by the
22840 \begin_layout Standard
22845 usepackage{marginnote}
22856 \begin_layout Standard
22857 This is also used in this document because
22861 has another useful feature: You can set a vertical offset for the note.
22862 This is often needed when too many margin notes are too close together
22863 or for a better page layout.
22864 The offset is set in LyX as ERT directly behind the margin note in the
22868 \begin_layout Standard
22874 \begin_layout Standard
22875 where the offset is a length with one of the units listed in Table\InsetSpace ~
22877 \begin_inset LatexCommand ref
22878 reference "tab:Units"
22883 A negative value shifts the note up, a positive value shifts it down.
22887 For example the margin note beside this text line is shifted up 1.5\InsetSpace \thinspace{}
22890 \begin_inset Quotes eld
22900 \begin_inset Quotes erd
22904 \begin_inset Marginal
22907 \begin_layout Standard
22908 This margin note is shifted up 1.5\InsetSpace \thinspace{}
22909 cm from its original position.
22921 \begin_layout Standard
22931 \begin_layout Standard
22932 \begin_inset VSpace defskip
22939 you can also change the alignment of the text in the margin note.
22940 For example the commands
22943 \begin_layout Standard
22950 raggedleftmarginnote}{
22958 raggedrightmarginnote}{
22963 \begin_layout Standard
22964 set the alignment to centered.
22969 raggedleftmarginnote
22971 denotes margin notes that appear at the left side.
22978 \begin_layout Standard
22984 raggedleftmarginnote}{
22989 \begin_layout Standard
22995 raggedrightmarginnote}{
23003 \begin_inset Marginal
23006 \begin_layout Standard
23007 The text of this margin note is centered.
23018 \begin_layout Standard
23025 raggedleftmarginnote}{
23033 raggedrightmarginnote}{
23042 \begin_layout Standard
23048 raggedleftmarginnote}{
23053 \begin_layout Standard
23059 raggedrightmarginnote}{
23069 \begin_layout Standard
23070 \begin_inset VSpace defskip
23073 For the other features of
23077 we refer to its documentation
23078 \begin_inset LatexCommand cite
23086 \begin_layout Standard
23087 \begin_inset VSpace bigskip
23090 You can change the layout of margin notes by redefining its definition.
23091 To create for example a header for all margin notes with the underlined,
23092 sans-serif, and bold header text
23093 \begin_inset Quotes eld
23105 \begin_inset Quotes erd
23108 , add this to your document preamble:
23111 \begin_layout Standard
23134 \begin_layout Standard
23151 underbar{Attention!}}}%
23157 \begin_layout Standard
23175 \begin_layout Standard
23182 \begin_layout Standard
23193 \begin_layout Standard
23204 \begin_layout Standard
23212 underbar{Attention!}}}%
23215 \begin_layout Standard
23229 \begin_inset Marginal
23232 \begin_layout Standard
23233 This is a margin note with a defined heading.
23245 \begin_layout Standard
23259 \begin_layout Standard
23276 \begin_inset Note Note
23279 \begin_layout Standard
23280 The margin note format is changed only for this example.
23288 \begin_layout Standard
23292 \begin_layout Standard
23302 \begin_inset Note Note
23305 \begin_layout Standard
23306 The following will be displayed when the LaTeX-package
23318 \begin_layout Standard
23319 You need to install the LaTeX-package
23323 to see the following part of this section in the output.
23326 \begin_layout Standard
23330 \begin_layout Standard
23342 \begin_layout Chapter
23346 \begin_layout Section
23348 \begin_inset LatexCommand index
23349 name "Boxes ! Introduction"
23356 \begin_layout Standard
23357 Boxes are used to format a block of text.
23358 Boxes can be used to write documents with multiple languages, see section\InsetSpace ~
23360 \begin_inset LatexCommand ref
23361 reference "sec:Minipages"
23365 , to frame texts, see section\InsetSpace ~
23367 \begin_inset LatexCommand ref
23368 reference "sec:Framed-Boxes"
23372 , to prevent words to be hyphenated, see section\InsetSpace ~
23374 \begin_inset LatexCommand ref
23375 reference "sec:Prevent-Hyphenation"
23379 , to align text, see section\InsetSpace ~
23381 \begin_inset LatexCommand ref
23382 reference "sub:Vertical-Alignment"
23386 , or to set the background color of texts, see section\InsetSpace ~
23388 \begin_inset LatexCommand ref
23389 reference "sec:Colored-Boxes"
23396 \begin_layout Standard
23397 Boxes can be inserted with the menu
23399 Insert\SpecialChar \menuseparator
23403 A grey box with the label
23408 \begin_inset Graphics
23409 filename clipart/BoxInsetDefaultQt4.png
23414 , will be inserted.
23415 The box type can be specified by right-clicking on the box.
23416 The appearing box dialog offers the
23434 is the default for new boxes and is explained in section\InsetSpace ~
23436 \begin_inset LatexCommand ref
23437 reference "sec:Minipages"
23445 is described in section\InsetSpace ~
23447 \begin_inset LatexCommand ref
23448 reference "sec:Parboxes"
23455 \begin_layout Standard
23456 Boxes aren't numbered and can therefore not be referenced like floats or
23460 \begin_layout Standard
23461 \begin_inset Note Greyedout
23464 \begin_layout Standard
23469 Due to a bug in LyX you have to insert a protected space behind a box when
23470 you want to separate in a line the box from the following text with a space.
23478 \begin_layout Standard
23479 \begin_inset Note Greyedout
23482 \begin_layout Standard
23487 Boxes must not be the item in an
23503 \begin_layout Standard
23504 \begin_inset Note Greyedout
23507 \begin_layout Standard
23512 For an unknown reason you can only set the
23521 when you use a framed box.
23527 type and without frames are explained in section\InsetSpace ~
23529 \begin_inset LatexCommand ref
23530 reference "sec:Prevent-Hyphenation"
23542 \begin_layout Section
23544 \begin_inset LatexCommand label
23545 name "sec:Box-Dialog"
23550 \begin_inset LatexCommand index
23551 name "Boxes ! Box Dialog"
23556 \begin_inset LatexCommand index
23557 name "Boxes ! Alignment"
23564 \begin_layout Standard
23565 In the box dialog you can adjust the box geometry in the fields
23574 The available units for the geometry are explained in Table\InsetSpace ~
23576 \begin_inset LatexCommand ref
23577 reference "tab:Units"
23586 offers the following additional sizes:
23589 \begin_layout Description
23590 Depth This is the plain text
23591 \begin_inset Quotes eld
23595 \begin_inset Quotes erd
23599 It ignores the total depth when there are multiple text lines in the box:
23606 \begin_inset Box Boxed
23615 height_special "depth"
23618 \begin_layout Standard
23620 Box height set to 1\InsetSpace \thinspace{}
23633 \begin_layout Description
23634 Height This is the heigth of the text that is inside the box.
23635 A value of e.\InsetSpace \thinspace{}
23637 2 for this size will set the box heigth to 2 times the text
23639 \begin_inset Box Boxed
23648 height_special "height"
23651 \begin_layout Standard
23653 Box height set to 2\InsetSpace \thinspace{}
23662 \begin_layout Description
23664 Height This is the Height\InsetSpace \thinspace{}
23665 +\InsetSpace \thinspace{}
23667 \begin_inset Box Boxed
23676 height_special "totalheight"
23679 \begin_layout Standard
23681 Box height set to 1\InsetSpace \thinspace{}
23691 \begin_layout Description
23692 Width This set the width of the box as heigth:
23693 \begin_inset Box Boxed
23702 height_special "width"
23705 \begin_layout Standard
23707 Box height set to 1\InsetSpace \thinspace{}
23716 \begin_layout Standard
23717 \begin_inset VSpace bigskip
23720 When you have chosen an
23725 , the vertical box alignment can be:
23728 \begin_layout Description
23729 Top This is an example text line.
23731 \begin_inset Box Boxed
23740 height_special "totalheight"
23743 \begin_layout Standard
23745 This box is top-aligned.
23751 This is an example text line.
23754 \begin_layout Description
23755 Middle This is an example text line.
23757 \begin_inset Box Boxed
23766 height_special "totalheight"
23769 \begin_layout Standard
23771 This box is middle-aligned.
23777 This is an example text line.
23780 \begin_layout Description
23781 Bottom This is an example text line.
23783 \begin_inset Box Boxed
23792 height_special "totalheight"
23795 \begin_layout Standard
23797 This box is bottom-aligned.
23803 This is an example text line.
23806 \begin_layout Standard
23807 The horizontal box alignment can be set via LyX's paragraph dialog when
23808 you set the box into its own paragraph.
23811 \begin_layout Standard
23812 \begin_inset VSpace bigskip
23815 When you have chosen an
23820 , the box content can be vertical aligned to:
23823 \begin_layout Description
23824 top This is an example text line.
23826 \begin_inset Box Boxed
23835 height_special "totalheight"
23838 \begin_layout Standard
23840 This box text is top-aligned.
23846 This is an example text line.
23849 \begin_layout Description
23850 middle This is an example text line.
23852 \begin_inset Box Boxed
23861 height_special "totalheight"
23864 \begin_layout Standard
23866 This box text is middle-aligned.
23872 This is an example text line.
23875 \begin_layout Description
23876 bottom This is an example text line.
23878 \begin_inset Box Boxed
23887 height_special "totalheight"
23890 \begin_layout Standard
23892 This box text is bottom-aligned.
23898 This is an example text line.
23901 \begin_layout Description
23902 stretch This is an example text line.
23904 \begin_inset Box Boxed
23913 height_special "totalheight"
23916 \begin_layout Standard
23921 \begin_layout Standard
23926 \begin_layout Standard
23934 This is an example text line.
23937 \begin_layout Standard
23938 To stretch the box content, it must consist of more than one paragraph.
23939 In the example above every text line is in an own paragraph.
23942 \begin_layout Standard
23943 \begin_inset VSpace bigskip
23946 To align the box content horizontally you can use LyX's paragraph dialog
23947 when you have chosen an
23955 \begin_layout Standard
23957 \begin_inset Box Boxed
23966 height_special "totalheight"
23969 \begin_layout Standard
23974 \begin_layout Standard
23979 \begin_layout Standard
23989 \begin_layout Standard
23990 If you haven't set an
23995 , you can align the box content horizontally in the box dialog.
23998 \begin_layout Standard
24000 \begin_inset Box Boxed
24009 height_special "totalheight"
24012 \begin_layout Standard
24014 This box text is horizontally stretched.
24022 \begin_layout Section
24024 \begin_inset LatexCommand label
24025 name "sec:Framed-Boxes"
24030 \begin_inset LatexCommand index
24031 name "Boxes ! Frames"
24038 \begin_layout Standard
24039 The frame style of the box can be specified in the box-dialog in the drop-down
24045 The following frame types are possible:
24048 \begin_layout Description
24049 Rectangular\InsetSpace ~
24050 box This draws a rectangle frame around the box.
24051 The frame line thickness has the size of
24059 \begin_inset Box Boxed
24068 height_special "totalheight"
24071 \begin_layout Standard
24081 \begin_layout Description
24084 thin This draws an oval frame around the box.
24085 The frame line thickness has the size 0.4\InsetSpace \thinspace{}
24088 \begin_inset Box ovalbox
24097 height_special "totalheight"
24100 \begin_layout Standard
24110 \begin_layout Description
24113 thick This draws an oval frame around the box.
24114 The frame line thickness has the size 0.8\InsetSpace \thinspace{}
24117 \begin_inset Box Ovalbox
24126 height_special "totalheight"
24129 \begin_layout Standard
24139 \begin_layout Description
24140 Shadow\InsetSpace ~
24141 box This draws a rectangle frame with a shadow around the box.
24142 The frame line thickness has the size of
24148 , the shadow has a width of 4\InsetSpace \thinspace{}
24151 \begin_inset Box Shadowbox
24160 height_special "totalheight"
24163 \begin_layout Standard
24173 \begin_layout Description
24174 Double\InsetSpace ~
24175 box This draws a double-line rectangle frame around the box.
24176 The line thickness of the inner frame is 0.75\InsetSpace \thinspace{}
24183 , the thickness of the outer frame is 1.5\InsetSpace \thinspace{}
24191 The distance between the lines is 1.5\InsetSpace \thinspace{}
24198 \InsetSpace \thinspace{}
24199 +\InsetSpace \thinspace{}
24200 0.5\InsetSpace \thinspace{}
24203 \begin_inset Box Doublebox
24212 height_special "totalheight"
24215 \begin_layout Standard
24225 \begin_layout Standard
24226 \begin_inset VSpace bigskip
24229 LyX's box label will change to the used frame style when you set a frame.
24230 To be able to use the different frame styles, the LaTeX-package
24235 \begin_inset LatexCommand index
24236 name "LaTeX-packages ! fancybox"
24243 \begin_layout Standard
24244 \begin_inset VSpace bigskip
24247 The default value for the size
24253 is 0.4\InsetSpace \thinspace{}
24255 It can be changed with the following command in ERT to e.\InsetSpace \thinspace{}
24257 2\InsetSpace \thinspace{}
24261 \begin_layout Standard
24271 \begin_layout Standard
24275 \begin_layout Standard
24287 \begin_inset Box Boxed
24296 height_special "totalheight"
24299 \begin_layout Standard
24301 Rectangular box with
24307 \InsetSpace \thinspace{}
24308 =\InsetSpace \thinspace{}
24309 2\InsetSpace \thinspace{}
24319 \begin_layout Standard
24333 \begin_layout Standard
24334 \begin_inset VSpace bigskip
24337 The space between the frame and the box content is for all frame styles
24338 by default 3\InsetSpace \thinspace{}
24340 You can change it by setting the length
24347 For example the command
24350 \begin_layout Standard
24360 \begin_layout Standard
24361 sets the value to 10\InsetSpace \thinspace{}
24362 pt, like for the following box:
24365 \begin_layout Standard
24369 \begin_layout Standard
24381 \begin_inset Box Boxed
24390 height_special "totalheight"
24393 \begin_layout Standard
24395 Rectangular box with
24401 \InsetSpace \thinspace{}
24402 =\InsetSpace \thinspace{}
24403 10\InsetSpace \thinspace{}
24413 \begin_layout Standard
24427 \begin_layout Standard
24428 \begin_inset VSpace bigskip
24431 The diameter of the round corners of the oval boxes can be set with the
24442 \begin_layout Standard
24450 \begin_layout Standard
24451 sets the diameter to 1\InsetSpace \thinspace{}
24456 \begin_layout Standard
24464 \begin_layout Standard
24465 sets the diameter to
24467 num\InsetSpace \thinspace{}
24468 ×\InsetSpace \thinspace{}
24469 minimum(width and heigth of box)
24481 \begin_layout Standard
24485 \begin_layout Standard
24495 \begin_inset Box Ovalbox
24504 height_special "totalheight"
24507 \begin_layout Standard
24515 \InsetSpace \thinspace{}
24516 =\InsetSpace \thinspace{}
24517 1.5\InsetSpace \thinspace{}
24527 \begin_layout Standard
24539 \begin_layout Standard
24540 \begin_inset VSpace bigskip
24543 The size of the shadow can be adjusted by changing the length
24550 It it set to 2\InsetSpace \thinspace{}
24551 pt for the following box by this command:
24554 \begin_layout Standard
24564 \begin_layout Standard
24568 \begin_layout Standard
24580 \begin_inset Box Shadowbox
24589 height_special "totalheight"
24592 \begin_layout Standard
24600 \InsetSpace \thinspace{}
24601 =\InsetSpace \thinspace{}
24602 2\InsetSpace \thinspace{}
24612 \begin_layout Standard
24626 \begin_layout Standard
24627 \begin_inset VSpace bigskip
24630 Changed lengths and widths are valid for all boxes following the commands
24634 \begin_layout Section
24636 \begin_inset LatexCommand label
24637 name "sec:Minipages"
24642 \begin_inset LatexCommand index
24643 name "Boxes ! Minipages"
24650 \begin_layout Standard
24651 Minipages are treated by LaTeX as pages within pages and can therefore for
24652 example have their own footnotes.
24655 \begin_layout Standard
24656 Minipages are useful when you write documents with different languages.
24659 \begin_layout Standard
24660 Below are two example minipages side by side.
24661 Their width is set to 45\InsetSpace \thinspace{}
24662 col% and they are separated by a horizontal fill,
24663 that was inserted via the menu
24665 Insert\SpecialChar \menuseparator
24666 Special\InsetSpace ~
24667 Formatting\SpecialChar \menuseparator
24668 Horizontal\InsetSpace ~
24674 \begin_layout Standard
24675 \begin_inset Box Frameless
24684 height_special "totalheight"
24687 \begin_layout Standard
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.
24697 Dies ist ein deutscher Text.
24698 Dies ist ein deutscher Text.
24699 Dies ist ein deutscher Text.
24700 Dies ist ein deutscher Text.
24701 Dies ist ein deutscher Text.
24702 Dies ist ein deutscher Text
24706 \begin_layout Standard
24709 Dies ist eine deutsche Fußnote.
24715 Dies ist ein deutscher Text.
24716 Dies ist ein deutscher Text.
24724 \begin_inset Box Frameless
24733 height_special "totalheight"
24736 \begin_layout Standard
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.
24747 This is an English Text.
24748 This is an English Text.
24749 This is an English Text.
24750 This is an English Text.
24751 This is an English Text.
24752 This is an English Text.
24756 \begin_layout Standard
24757 This is an English footnote.
24762 This is an English Text.
24771 \begin_layout Standard
24772 \begin_inset VSpace bigskip
24775 Another application for minipages are footnotes within tables.
24776 Due to a LaTeX restriction footnotes within tables doesn't appear at the
24777 bottom of the current page.
24778 But when you put the table with the footnote to a minipage, the footnote
24779 will appear at its bottom, numbered with Latin letters.
24780 The footnote number is reset to 1 in every minipage but not outside the
24784 \begin_layout Standard
24785 The footnote of this table doesn't appear:
24786 \begin_inset Tabular
24787 <lyxtabular version="3" rows="3" columns="4">
24789 <column alignment="center" valignment="top" leftline="true" width="0pt">
24790 <column alignment="center" valignment="top" leftline="true" width="0pt">
24791 <column alignment="center" valignment="top" leftline="true" width="0pt">
24792 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
24793 <row topline="true">
24794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24797 \begin_layout Standard
24803 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24806 \begin_layout Standard
24812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24815 \begin_layout Standard
24820 \begin_layout Standard
24821 This is a footnote within a table.
24831 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24834 \begin_layout Standard
24841 <row topline="true">
24842 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24845 \begin_layout Standard
24851 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24854 \begin_layout Standard
24860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24863 \begin_layout Standard
24869 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24872 \begin_layout Standard
24879 <row topline="true" bottomline="true">
24880 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24883 \begin_layout Standard
24889 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24892 \begin_layout Standard
24898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24901 \begin_layout Standard
24907 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24910 \begin_layout Standard
24924 \begin_layout Standard
24926 \begin_inset Box Frameless
24935 height_special "totalheight"
24938 \begin_layout Standard
24940 \begin_inset Tabular
24941 <lyxtabular version="3" rows="3" columns="4">
24943 <column alignment="center" valignment="top" leftline="true" width="0pt">
24944 <column alignment="center" valignment="top" leftline="true" width="0pt">
24945 <column alignment="center" valignment="top" leftline="true" width="0pt">
24946 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
24947 <row topline="true">
24948 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24951 \begin_layout Standard
24957 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24960 \begin_layout Standard
24966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24969 \begin_layout Standard
24974 \begin_layout Standard
24975 This is a footnote within a table.
24985 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24988 \begin_layout Standard
24995 <row topline="true">
24996 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24999 \begin_layout Standard
25005 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25008 \begin_layout Standard
25014 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25017 \begin_layout Standard
25023 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25026 \begin_layout Standard
25033 <row topline="true" bottomline="true">
25034 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25037 \begin_layout Standard
25043 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25046 \begin_layout Standard
25052 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25055 \begin_layout Standard
25061 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25064 \begin_layout Standard
25083 \begin_layout Standard
25084 \begin_inset VSpace bigskip
25087 The document-wide paragraph settings are ignored within minipages.
25088 That means that there will be no space between paragraphs in minipages
25089 although you set it to e.\InsetSpace \thinspace{}
25095 in the document settings.
25098 \begin_layout Standard
25099 Minipages can also be used to set a background color for text parts, see
25100 section\InsetSpace ~
25102 \begin_inset LatexCommand ref
25103 reference "sub:Color-for-Paragraphs"
25110 \begin_layout Standard
25111 \begin_inset Note Greyedout
25114 \begin_layout Standard
25119 You cannot have floats or margin notes inside minipages but minipages can
25120 be used inside tables, floats, and other boxes.
25128 \begin_layout Section
25130 \begin_inset LatexCommand label
25131 name "sec:Parboxes"
25136 \begin_inset LatexCommand index
25137 name "Boxes ! Parboxes"
25144 \begin_layout Standard
25145 Parboxes are very similar to minipages with the difference that they cannot
25147 The main difference to minipages is that minipages are in contrary to parboxes
25148 no real boxes but LaTeX-environments.
25151 \begin_layout Standard
25153 \begin_inset Box Frameless
25162 height_special "totalheight"
25165 \begin_layout Standard
25166 This a text within a parbox.
25167 This a text within a parbox.
25170 \begin_layout Standard
25171 This footnote won't appear:
25175 \begin_layout Standard
25176 This footnote is inside a parbox and will therefore not appear.
25189 \begin_layout Section
25190 Boxes for Words and Characters
25191 \begin_inset LatexCommand index
25192 name "Boxes ! for Characters"
25199 \begin_layout Subsection
25200 Prevent Hyphenation
25201 \begin_inset LatexCommand label
25202 name "sec:Prevent-Hyphenation"
25207 \begin_inset LatexCommand index
25208 name "Boxes ! to Prevent Hyphenation"
25215 \begin_layout Standard
25216 You can use a special kind of boxes to prevent words or text to be hyphenated.
25219 e is an example text:
25222 \begin_layout Standard
25223 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25229 \begin_layout Standard
25230 To prevent the hyphenation of the word
25231 \begin_inset Quotes eld
25235 \begin_inset Quotes erd
25241 \begin_layout Standard
25249 \begin_layout Standard
25250 in ERT before the word.
25251 Behind the word insert a closing brace
25252 \begin_inset Quotes eld
25260 \begin_inset Quotes erd
25267 \begin_layout Standard
25279 \begin_layout Standard
25280 This is the result:
25283 \begin_layout Standard
25284 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25290 \begin_layout Standard
25303 \begin_layout Standard
25313 \begin_layout Standard
25314 Of course the word now protrudes over the side margin.
25315 To avoid this, add via the menu
25317 Insert\SpecialChar \menuseparator
25318 Special\InsetSpace ~
25319 Formatting\SpecialChar \menuseparator
25327 ) a line break before the word:
25330 \begin_layout Standard
25331 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25339 \begin_layout Standard
25352 \begin_layout Standard
25362 \begin_layout Subsection
25364 \begin_inset LatexCommand label
25365 name "sub:Vertical-Alignment"
25370 \begin_inset LatexCommand index
25371 name "Boxes ! for Vertical Alignment"
25376 \begin_inset LatexCommand index
25377 name "Boxes ! Raiseboxes"
25384 \begin_layout Standard
25385 With the help of the command
25391 you can align words, characters or other boxes vertically to the surrounding
25399 is used with the following scheme:
25402 \begin_layout Standard
25407 raisebox{lift}[height][depth]{box content}
25410 \begin_layout Standard
25411 The lift can be a positive value to raise the box or a negative value to
25415 \begin_layout Standard
25416 To align for example the word
25417 \begin_inset Quotes eld
25421 \begin_inset Quotes erd
25424 so that the bottom of the
25425 \begin_inset Quotes eld
25429 \begin_inset Quotes erd
25433 \begin_inset Quotes eld
25437 \begin_inset Quotes erd
25440 is at the baseline, insert the command
25443 \begin_layout Standard
25453 \begin_layout Standard
25454 in ERT before the word.
25455 Behind the word insert a closing brace
25456 \begin_inset Quotes eld
25464 \begin_inset Quotes erd
25469 This is the result:
25472 \begin_layout Standard
25473 This is a text line with the word
25477 \begin_layout Standard
25489 \begin_inset Quotes eld
25493 \begin_inset Quotes erd
25500 \begin_layout Standard
25510 \begin_layout Standard
25511 \begin_inset VSpace bigskip
25514 When you raise or lower characters in a line, the line distance will be
25518 \begin_layout Standard
25519 This is a text line with the word
25523 \begin_layout Standard
25535 \begin_inset Quotes eld
25539 \begin_inset Quotes erd
25546 \begin_layout Standard
25555 This is a text line with the word
25559 \begin_layout Standard
25569 \begin_inset Quotes eld
25573 \begin_inset Quotes erd
25580 \begin_layout Standard
25590 \begin_layout Standard
25591 If you want to prevent this for a certain reason, set the box height to
25596 \begin_layout Standard
25606 \begin_layout Standard
25607 This is a text line with the word
25611 \begin_layout Standard
25623 \begin_inset Quotes eld
25627 \begin_inset Quotes erd
25634 \begin_layout Standard
25643 This is a text line with the word
25647 \begin_layout Standard
25651 raisebox{0.5cm}[0pt]{
25657 \begin_inset Quotes eld
25661 \begin_inset Quotes erd
25668 \begin_layout Standard
25678 \begin_layout Section
25680 \begin_inset LatexCommand label
25681 name "sec:Colored-Boxes"
25686 \begin_inset LatexCommand index
25687 name "Boxes ! Color"
25694 \begin_layout Subsection
25696 \begin_inset LatexCommand index
25697 name "Color ! for Text"
25704 \begin_layout Standard
25705 To color the background of text the text must be put into a so called colorbox.
25706 This requires that the LaTeX-package
25711 \begin_inset LatexCommand index
25712 name "LaTeX-packages ! color"
25716 is loaded in the document preamble with the command
25719 \begin_layout Standard
25724 @ifundef\SpecialChar \textcompwordmark{}
25731 \begin_layout Standard
25742 usepackage{color}}{}
25745 \begin_layout Standard
25750 will be loaded automatically by LyX when you color text
25754 \begin_layout Standard
25755 To avoid that it is loaded twice the command
25759 @ifundef\SpecialChar \textcompwordmark{}
25770 \begin_layout Standard
25771 \begin_inset VSpace medskip
25774 Colorboxes are created with the command
25781 This will be used with the following scheme:
25784 \begin_layout Standard
25789 colorbox{color}{box content}
25792 \begin_layout Standard
25793 The box content can also be a box and colorboxes can also be within other
25797 \begin_layout Standard
25798 The following colors are predefined:
25837 You can also define your own color as described in section\InsetSpace ~
25839 \begin_inset LatexCommand ref
25840 reference "sec:Colored-Tables"
25847 \begin_layout Standard
25848 To have e.\InsetSpace \thinspace{}
25850 a red background for a word, insert the command
25853 \begin_layout Standard
25861 \begin_layout Standard
25862 before the word in ERT.
25863 Behind the word insert a closing brace
25864 \begin_inset Quotes eld
25872 \begin_inset Quotes erd
25877 This is the result:
25880 \begin_layout Standard
25881 This is a line where the word
25885 \begin_layout Standard
25895 \begin_inset Quotes eld
25899 \begin_inset Quotes erd
25906 \begin_layout Standard
25913 has a red background.
25916 \begin_layout Standard
25917 \begin_inset VSpace bigskip
25920 If you would have the box frame in a different color, you can use the command
25927 with the following scheme:
25930 \begin_layout Standard
25935 fcolorbox{frame color}{box color}{box content}
25938 \begin_layout Standard
25952 The frame thickness and the space between the frame and the box content
25953 can be adjusted with the lengths
25965 , respectively, as described in section\InsetSpace ~
25967 \begin_inset LatexCommand ref
25968 reference "sec:Framed-Boxes"
25975 \begin_layout Standard
25976 For the following example the command
25979 \begin_layout Standard
25984 fcolorbox{cyan}{magenta}{
25987 \begin_layout Standard
25991 \begin_layout Standard
25992 Here is an example where the frame line thickness was set to 1\InsetSpace \thinspace{}
25999 \begin_layout Standard
26014 \begin_layout Standard
26018 fcolorbox{cyan}{magenta}{
26023 This is text within a colored, framed box.
26027 \begin_layout Standard
26037 \begin_layout Standard
26038 \begin_inset VSpace bigskip
26041 Of course you can also have colored text inside a colorbox:
26047 \begin_layout Standard
26051 fcolorbox{cyan}{magenta}{
26058 This is colored text within a colored, framed box.
26064 \begin_layout Standard
26075 \begin_layout Standard
26089 \begin_layout Standard
26092 \begin_inset VSpace medskip
26098 \begin_layout Standard
26099 \begin_inset Note Greyedout
26102 \begin_layout Standard
26107 Text in colorboxes cannot have line breaks.
26108 To color multiple text lines or paragraphs, use a box inside a colorbox
26109 as described in the following.
26117 \begin_layout Subsection
26118 Color for Paragraphs
26119 \begin_inset LatexCommand label
26120 name "sub:Color-for-Paragraphs"
26125 \begin_inset LatexCommand index
26126 name "Color ! for Paragraphs"
26133 \begin_layout Standard
26134 To set the background color for more than one text line, put the text into
26136 Before the minipage insert the
26145 \begin_layout Standard
26153 \begin_layout Standard
26155 Behind the minipage insert a closing brace
26156 \begin_inset Quotes eld
26164 \begin_inset Quotes erd
26170 \begin_layout Standard
26174 \begin_layout Standard
26178 colorbox{lightgrey}{
26184 \begin_inset Box Frameless
26193 height_special "totalheight"
26196 \begin_layout Standard
26197 This is text with background color.
26198 This is text with background color.
26201 \begin_layout Standard
26202 \begin_inset VSpace defskip
26205 The text can have footnotes
26209 \begin_layout Standard
26210 Another example footnote
26215 and can include tables and figures.
26218 \begin_layout Standard
26220 \begin_inset Tabular
26221 <lyxtabular version="3" rows="3" columns="3">
26223 <column alignment="center" valignment="top" leftline="true" width="0">
26224 <column alignment="center" valignment="top" leftline="true" width="0">
26225 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
26226 <row topline="true">
26227 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26230 \begin_layout Standard
26236 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26239 \begin_layout Standard
26245 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26248 \begin_layout Standard
26255 <row topline="true">
26256 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26259 \begin_layout Standard
26265 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26268 \begin_layout Standard
26270 \begin_inset Quotes erd
26278 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26281 \begin_layout Standard
26288 <row topline="true" bottomline="true">
26289 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26292 \begin_layout Standard
26298 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26301 \begin_layout Standard
26307 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26310 \begin_layout Standard
26330 \begin_layout Standard
26340 \begin_layout Section
26341 URLs (Uniform Resource Locators)
26342 \begin_inset LatexCommand index
26350 \begin_layout Standard
26351 Links to web pages or email addresses can be inserted via the menu
26353 Insert\SpecialChar \menuseparator
26357 The appearing URL dialog has two fields; the
26365 field for the URL description, which will be typeset as plain text immediately
26369 \begin_layout Standard
26370 Here is an example URL:
26371 \begin_inset LatexCommand url
26372 name "LyX's homepage"
26373 target "http://www.lyx.org"
26380 \begin_layout Standard
26383 Generate\InsetSpace ~
26386 in the URL dialog has only an affect when you export your document to the
26388 \begin_inset Quotes eld
26396 \begin_inset Quotes erd
26402 \begin_layout Standard
26403 You cannot change the style of the link text.
26408 field will have the default text style of the document while the text of
26413 field will have the style
26414 \begin_inset Quotes eld
26422 \begin_inset Quotes erd
26428 \begin_layout Standard
26429 When you use the LaTeX-package
26434 \begin_inset LatexCommand index
26435 name "LaTeX-packages ! hyperref"
26439 to link cross-references in the output, URLs will automatically become
26440 clickable hyperlinks in DVI and PDF-output.
26443 \begin_layout Standard
26444 \begin_inset Note Greyedout
26447 \begin_layout Standard
26452 When you use the following characters: "%", "#", "^", you have to write
26453 them with a preceding backslash, e.\InsetSpace \thinspace{}
26456 \begin_inset Quotes eld
26462 \begin_inset Quotes erd
26466 URLs must not end with a backslash.
26474 \begin_layout Standard
26475 \begin_inset VSpace bigskip
26478 To create real hyperlinks without the force to write the link location to
26479 the text, you can use the command
26482 \begin_layout Standard
26487 href{link location}{link text}
26490 \begin_layout Standard
26492 To get for example a link to LyX's web page, write the command
26495 \begin_layout Standard
26500 href{http://www.lyx.org}{
26503 \begin_layout Standard
26505 Insert after the command the link text
26506 \begin_inset Quotes eld
26510 \begin_inset Quotes erd
26513 as normal text followed by a closing brace
26514 \begin_inset Quotes eld
26522 \begin_inset Quotes erd
26526 This is the result:
26530 \begin_layout Standard
26534 href{http://www.lyx.org}{
26543 \begin_layout Standard
26553 \begin_layout Standard
26554 To link to email addresses, add the prefix
26555 \begin_inset Quotes eld
26563 \begin_inset Quotes erd
26566 to the link location:
26572 \begin_layout Standard
26576 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's documentation}{
26581 lyx-docs mailing list
26585 \begin_layout Standard
26595 \begin_layout Standard
26602 instead of LyX's URL box has the advantage that you can specify the text
26603 style of the link text like for all other text parts.
26604 You can therefore set hyphenation points and forced linebreaks to have
26605 long link text broken at the page margin.
26606 You are furthermore able to change the text style for all URLs in your
26607 document with an option in
26611 's load command and the restrictions mentioned above doesn't apply for
26620 \begin_layout Chapter
26622 \begin_inset LatexCommand index
26623 name "External Stuff"
26630 \begin_layout Standard
26633 Insert\SpecialChar \menuseparator
26636 you can insert external material to your document.
26640 \begin_layout Description
26642 Document Another LyX document; its content is directly inserted to your
26646 \begin_layout Description
26648 Text A text document; every of its text lines is inserted to your document
26652 \begin_layout Description
26656 Lines A text document; its text lines are inserted as they
26658 Empty text lines creates a new paragraph in your document.
26661 \begin_layout Description
26662 External\InsetSpace ~
26663 Material Files in various formats.
26666 \begin_layout Description
26668 Document LyX or LaTeX-documents.
26671 \begin_layout Section
26673 \begin_inset LatexCommand index
26674 name "External Stuff ! External Material"
26681 \begin_layout Standard
26682 The external material feature allows you to insert files to your document
26683 without converting them previously to a format that can be read by the
26684 document output format because LyX takes care of needed conversions.
26685 This is similar to images that can be inserted in various image formats
26689 \begin_layout Standard
26690 External material can be inserted via the
26694 dialog that is accessible with the menu
26696 Insert\SpecialChar \menuseparator
26697 File\SpecialChar \menuseparator
26698 External\InsetSpace ~
26702 Currently the following file types (
26709 \begin_layout Description
26710 ChessDiagram This template supports chess position diagrams made with the
26715 \begin_layout Standard
26719 href{http://en.wikipedia.org/wiki/XBoard}{
26732 \begin_layout Standard
26742 \begin_layout Description
26743 Date This inserts the date in the form
26748 This is a date inserted as external material:
26749 \begin_inset External
26757 The date is not shown within LyX, only in the output.
26758 There are two other methods of inserting a date, via menu
26760 Insert\SpecialChar \menuseparator
26763 and with the LaTeX command
26770 The different methods are compared in Table\InsetSpace ~
26772 \begin_inset LatexCommand ref
26773 reference "tab:Comparison-of-the"
26780 \begin_layout Description
26781 LilyPond This template is used for music notation typeset with the program
26785 \begin_layout Standard
26798 \begin_layout Standard
26802 href{http://en.wikipedia.org/wiki/LilyPond}{
26815 \begin_layout Standard
26823 \begin_inset Note Note
26826 \begin_layout Standard
26833 breaks the line while the remaining text in the line is stretched to the
26842 \begin_layout Description
26843 RasterImage This can be used for bitmap images.
26844 Nearly all popular image formats are supported.
26845 The image can be treated in the
26849 dialog like the images that are usually included via the
26853 dialog as described in section\InsetSpace ~
26855 \begin_inset LatexCommand ref
26856 reference "sec:Graphics-Dialog"
26861 The difference is that only raster images are allowed, that means that
26862 PDF and EPS-images are not supported.
26865 \begin_layout Description
26866 XFig This template supports images created with the program
26870 \begin_layout Standard
26874 href{http://en.wikipedia.org/wiki/Xfig}{
26887 \begin_layout Standard
26897 \begin_layout Standard
26898 \begin_inset Float table
26904 \begin_layout Standard
26905 \begin_inset Caption
26907 \begin_layout Standard
26908 \begin_inset LatexCommand label
26909 name "tab:Comparison-of-the"
26913 Comparison of the date input methods.
26921 \begin_layout Standard
26923 \begin_inset Tabular
26924 <lyxtabular version="3" rows="4" columns="4">
26926 <column alignment="center" valignment="top" leftline="true" width="0">
26927 <column alignment="center" valignment="top" leftline="true" width="0">
26928 <column alignment="center" valignment="top" leftline="true" width="0">
26929 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
26930 <row topline="true">
26931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26934 \begin_layout Standard
26940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26943 \begin_layout Standard
26946 External Material\SpecialChar \menuseparator
26952 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26955 \begin_layout Standard
26958 Insert\SpecialChar \menuseparator
26964 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26967 \begin_layout Standard
26978 <row topline="true">
26979 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26982 \begin_layout Standard
26988 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26991 \begin_layout Standard
26997 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27000 \begin_layout Standard
27006 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27009 \begin_layout Standard
27016 <row topline="true">
27017 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27020 \begin_layout Standard
27026 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27029 \begin_layout Standard
27035 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27038 \begin_layout Standard
27044 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27047 \begin_layout Standard
27054 <row topline="true" bottomline="true">
27055 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27058 \begin_layout Standard
27064 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27067 \begin_layout Standard
27073 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27076 \begin_layout Standard
27082 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27085 \begin_layout Standard
27104 \begin_layout Standard
27105 When you use the option
27117 dialog, only the path to the inserted file is shown in the output.
27120 material is displayed in LyX either as box like this:
27121 \begin_inset Graphics
27122 filename clipart/ExternalMaterialQt4.png
27127 or as image, depending on the setting in the
27139 \begin_layout Standard
27146 manual explains how you can define your own templates.
27149 \begin_layout Section
27151 \begin_inset LatexCommand index
27152 name "External Stuff ! 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"
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