1 #LyX 1.5.1 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 \@ifundefined{extrarowheight}
111 {\usepackage{array}}{}
112 \setlength{\extrarowheight}{2pt}
114 % used for customized tables
117 {>{\centering\hspace{0pt}}m{#1}}
120 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
123 {>{\columncolor{#1}\hspace{0pt}}c}
125 \newcolumntype{V}{!{\vrule width 1.5pt}}
127 \newcolumntype{W}{!{\color{green}\vline}}
130 % insert additional vertical space of
131 % 1.5 mm between footnotes
133 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
135 % enable algorithm floats to be referenced
136 \newfloat{Xalgorithm}{tbp}{loa}
137 \floatname{Xalgorithm}{Algorithm}
138 \newcommand{\theHalgorithm}{\theHXalgorithm}
139 \renewenvironment{algorithm}[1][tbp]
140 {\begin{Xalgorithm}[#1]}{\end{Xalgorithm}}
142 % number algorithm floats within chapters
143 \numberwithin{Xalgorithm}{chapter}
145 % redefine the greyed out note
146 \renewenvironment{lyxgreyedout}
147 {\textcolor{blue}\bgroup}{\egroup}
149 % ------------------------------------
150 % used to check for needed LaTeX packages
153 % check for package arydshln
154 % used for tables with dashed lines
155 \newboolean{arydshln}
156 \IfFileExists{arydshln.sty}
157 {\usepackage{arydshln}
158 \setboolean{arydshln}{true}}
159 {\setboolean{arydshln}{false}}
161 % check for package marginnote
162 % used for margin notes
163 \newboolean{marginnote}
164 \IfFileExists{marginnote.sty}
165 {\usepackage{marginnote}
166 \let\marginpar\marginnote
167 \setboolean{marginnote}{true}}
168 {\setboolean{marginnote}{false}}
170 \options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
175 \font_typewriter default
176 \font_default_family default
190 \paperorientation portrait
193 \paragraph_separation skip
195 \quotes_language english
198 \paperpagestyle default
202 \tracking_changes false
203 \output_changes false
211 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
220 \begin_layout Standard
222 If you have comments or error corrections, please send them to the LyX Documenta
229 \begin_layout Standard
233 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's ExtendedInsets manual}{
238 lyx-docs@lists.lyx.org
242 \begin_layout Standard
255 \begin_inset Note Note
258 \begin_layout Standard
259 original author: Uwe Stöhr
273 \begin_layout Standard
274 \begin_inset LatexCommand tableofcontents
281 \begin_layout Standard
282 \begin_inset Note Note
285 \begin_layout Standard
286 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
296 If they are not installed you can export the document anyway but the sections
297 where the packages are required won't appear in the output.
300 \begin_layout Standard
301 The latest PDF-version of this document can be found here:
305 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
313 \begin_layout Chapter
315 \begin_inset LatexCommand label
321 \begin_inset LatexCommand index
327 \begin_inset LatexCommand index
328 name "Graphics|see{Figures}"
335 \begin_layout Section
337 \begin_inset LatexCommand index
338 name "Figures ! Graphics Dialog"
343 \begin_inset LatexCommand label
344 name "sec:Graphics-Dialog"
351 \begin_layout Standard
352 To insert an image into your document, place the cursor at the text position
353 you want and click on the toolbar icon
354 \begin_inset Graphics
355 filename ../images/dialog-show-new-inset_graphics.xpm
363 Insert\SpecialChar \menuseparator
367 Then a dialog will appear to choose the file to load.
368 The image will appear in the output exactly at the position where it is
372 \begin_layout Standard
373 The graphics dialog can be called at any time by right-clicking on an image.
374 This dialog has three tabs:
377 \begin_layout Description
382 Here you can choose an image file and adjust its appearance in the output.
383 The available units for the image size are explained in appendix\InsetSpace ~
385 \begin_inset LatexCommand ref
386 reference "cha:Units-available-in"
392 You can rotate images counter-clockwise by setting a rotation angle and
394 The image will also be rotated inside LyX.
396 Images can be scaled by using
397 a percentage value or by setting the width and height explicitly.
398 If you set only the width or only the height, the other size will be determined
400 If you set both, then the image will be transformed to the given size,
401 possibly distorting it.
402 To prevent the image from distortion, use the option
404 Maintain aspect ratio
407 The image will then be scaled so that its width and height don't exceed
408 the specified dimensions.
410 Images can be opened in a program of your choice
416 The program can be set for every image format in the file format settings
417 in LyX's preferences.
420 \begin_layout Description
425 Alternatively to the usage of scaling units it is possible to set image
426 coordinates to adjust the height and width of the image in the output.
427 The coordinates can also be calculated automatically by pressing the button
439 bounding\InsetSpace ~
442 will only print the image region within the given coordinates.
443 Normally you don't need to take care about image coordinates and can ignore
447 \begin_layout Description
453 In this tab you can modify the appearance of the image within LyX and set
454 the image to be a subfigure of a figure float with an own caption.
455 Subfigures are explained in section\InsetSpace ~
457 \begin_inset LatexCommand ref
458 reference "sec:Figure-Floats"
464 LaTeX experts can also specify on this tab additional LaTeX options.
472 makes the image appear in the output only as a frame with the size of the
482 option only affects zipped EPS-graphics, e.\InsetSpace \thinspace{}
489 When the option is used the images will not be unzipped on export, since
490 LaTeX can handle them as they are.
492 Zipped EPS-graphics are useful to save
493 disk space when you choose PostScript as output format, see appendix\InsetSpace ~
495 \begin_inset LatexCommand ref
496 reference "sec:PostScript"
501 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
512 zgrep %%Bounding x.eps.gz > x.eps.bb
516 The second command creates the bounding box file
517 \begin_inset Quotes eld
521 \begin_inset Quotes erd
524 that is needed by LaTeX for zipped graphics.
527 \begin_layout Standard
528 \begin_inset VSpace bigskip
534 \begin_layout Standard
535 This is an example image in EPS format
539 \begin_layout Standard
540 Image formats are explained in section\InsetSpace ~
542 \begin_inset LatexCommand ref
543 reference "sec:Image-Formats"
552 within a separate, horizontally centered paragraph:
555 \begin_layout Standard
557 \begin_inset Graphics
558 filename clipart/mobius.eps
569 \begin_layout Standard
570 This is the same image like the one above but in draft mode:
573 \begin_layout Standard
575 \begin_inset Graphics
576 filename clipart/mobius.eps
588 \begin_layout Section
590 \begin_inset LatexCommand label
591 name "sec:Figure-Floats"
596 \begin_inset LatexCommand index
597 name "Floats ! Figures"
602 \begin_inset LatexCommand index
603 name "Figures ! Floats"
610 \begin_layout Standard
611 For general explanations about floats, have a look at section\InsetSpace ~
613 \begin_inset LatexCommand ref
614 reference "sec:FloatIntroduction"
621 \begin_layout Standard
623 \begin_inset Graphics
624 filename ../images/float-insert_figure.xpm
632 Insert\SpecialChar \menuseparator
633 Float\SpecialChar \menuseparator
636 inserts a float with a caption that has the label
637 \begin_inset Quotes eld
642 \begin_inset Quotes erd
645 (# is the actual number).
646 You can insert the image above the caption, like in Figure\InsetSpace ~
648 \begin_inset LatexCommand ref
649 reference "fig:kill-plat"
653 or below the caption, like in Figure\InsetSpace ~
655 \begin_inset LatexCommand ref
656 reference "fig:escher"
661 More about the caption placement is described in section\InsetSpace ~
663 \begin_inset LatexCommand ref
664 reference "sec:Caption-Placement"
671 \begin_layout Standard
672 \begin_inset Float figure
677 \begin_layout Standard
679 \begin_inset Graphics
680 filename clipart/platypus.eps
691 \begin_layout Standard
694 \begin_layout Standard
695 \begin_inset LatexCommand label
700 A severely distorted platypus in a float.
713 \begin_layout Standard
714 \begin_inset Float figure
719 \begin_layout Standard
722 \begin_layout Standard
723 \begin_inset LatexCommand label
737 \begin_layout Standard
739 \begin_inset Graphics
740 filename clipart/escher-lsd.eps
756 \begin_layout Standard
757 \begin_inset LatexCommand index
758 name "References ! to Figures"
764 \begin_inset LatexCommand ref
765 reference "fig:kill-plat"
770 \begin_inset LatexCommand ref
771 reference "fig:escher"
775 are examples of referenced figures.
776 Figures can be referenced in the text by referencing their label.
777 To do this insert a label in the caption using the menu
779 Insert\SpecialChar \menuseparator
782 or the toolbar button
783 \begin_inset Graphics
784 filename ../images/label-insert.xpm
791 You can now refer to the label using the menu
793 Insert\SpecialChar \menuseparator
797 or the toolbar button
798 \begin_inset Graphics
799 filename ../images/dialog-show-new-inset_ref.xpm
806 It is important to use references to floats, rather than using vague references
808 \begin_inset Quotes eld
812 \begin_inset Quotes erd
815 , because as LaTeX will reposition the floats in the final document, it
817 \begin_inset Quotes eld
821 \begin_inset Quotes erd
826 Referencing is explained in detail in section\InsetSpace ~
828 \begin_inset LatexCommand ref
829 reference "sec:Referencing-Floats"
836 \begin_layout Standard
837 Normally only one image is inserted to a figure float, but sometimes you
838 might want to use two images with separate subcaptions.
839 This can be set in the tab
844 of the graphics dialog.
845 Choose there the option
849 and enter the subcaption for the image in the caption field.
850 Note that only the main caption of the float is added to the List of Figures.
853 erencing subfigures is explained in section\InsetSpace ~
855 \begin_inset LatexCommand ref
856 reference "sub:Referencing-Subfigures"
863 \begin_layout Standard
866 \begin_inset LatexCommand ref
867 reference "fig:Two-distorted-images"
871 is an example of a figure float with two images set side by side.
872 You can also set the images one below the other.
875 \begin_layout Standard
876 \begin_inset Float figure
881 \begin_layout Standard
885 \begin_inset Graphics
886 filename clipart/escher-lsd.eps
890 subcaptionText "Undefinable structure"
897 \begin_inset Graphics
898 filename clipart/platypus.eps
903 subcaptionText "\label{fig:Platypus} Platypus"
912 \begin_layout Standard
915 \begin_layout Standard
916 \begin_inset LatexCommand label
917 name "fig:Two-distorted-images"
921 Two distorted images.
934 \begin_layout Section
936 \begin_inset LatexCommand label
937 name "sec:Image-Formats"
942 \begin_inset LatexCommand index
948 \begin_inset LatexCommand index
949 name "Figures ! Image Formats"
956 \begin_layout Standard
957 You can insert images in any known file format.
958 But as explained in appendix\InsetSpace ~
960 \begin_inset LatexCommand ref
961 reference "cha:Output-File-Formats"
965 , every output document format allows only a few image formats.
966 LyX uses therefore the program
970 in the background to convert the images to the right format.
971 To increase your work flow by avoiding these conversions in the background,
972 you can use only the image formats that can directly be embedded in the
974 The output file formats are explained in appendix\InsetSpace ~
976 \begin_inset LatexCommand ref
977 reference "cha:Output-File-Formats"
984 \begin_layout Standard
985 Similar to fonts there are two types of image formats:
988 \begin_layout Description
990 images consist of pixel values, often in a compressed form.
991 They are therefore not fully scalable and look pixeled in large zooms.
992 Well-known bitmap image formats are
993 \begin_inset Quotes eld
996 Graphics Interchange Format
997 \begin_inset Quotes erd
1000 (GIF, file extension
1001 \begin_inset Quotes eld
1009 \begin_inset Quotes erd
1013 \begin_inset LatexCommand index
1014 name "GIF|see{Image formats}"
1019 \begin_inset Quotes eld
1022 Portable Network Graphics
1023 \begin_inset Quotes erd
1026 (PNG, file extension
1027 \begin_inset Quotes eld
1035 \begin_inset Quotes erd
1039 \begin_inset LatexCommand index
1040 name "PNG|see{Image formats}"
1045 \begin_inset Quotes eld
1048 Joint Photographic Experts Group
1049 \begin_inset Quotes erd
1052 (JPG, file extension
1053 \begin_inset Quotes eld
1061 \begin_inset Quotes erd
1065 \begin_inset Quotes eld
1073 \begin_inset Quotes erd
1077 \begin_inset LatexCommand index
1078 name "JPG|see{Image formats}"
1085 \begin_layout Description
1087 images consist of vectors and can therefore be scaled to any size
1089 The scaling ability is necessary if you want to create presentations, because
1090 presentations are always scaled by the video projector.
1091 Scaling is also useful for online documents to let the user zoom into diagrams.
1094 ell-known scalable image formats are
1095 \begin_inset Quotes eld
1098 Scalable Vector Graphics
1099 \begin_inset Quotes erd
1102 (SVG, file extension
1103 \begin_inset Quotes eld
1111 \begin_inset Quotes erd
1115 \begin_inset LatexCommand index
1116 name "SVG|see{Image formats}"
1121 \begin_inset Quotes eld
1124 Encapsulated PostScript
1125 \begin_inset Quotes erd
1128 (EPS, file extension
1129 \begin_inset Quotes eld
1137 \begin_inset Quotes erd
1141 \begin_inset LatexCommand index
1142 name "EPS|see{Image formats}"
1147 \begin_inset Quotes eld
1150 Portable Document Format
1151 \begin_inset Quotes erd
1154 (PDF, file extension
1155 \begin_inset Quotes eld
1163 \begin_inset Quotes erd
1167 \begin_inset LatexCommand index
1173 \begin_inset Quotes eld
1177 \begin_inset Quotes erd
1180 (WMF, file extension
1181 \begin_inset Quotes eld
1189 \begin_inset Quotes erd
1193 \begin_inset LatexCommand index
1194 name "SVG|see{Image formats}"
1200 \begin_inset Quotes eld
1204 \begin_inset Quotes erd
1207 , because you can convert any bitmap image to a PDF or EPS-image and the
1208 result will still be a bitmap image.
1209 In this cases only a header with the image properties is added to the original
1214 \begin_layout Standard
1215 In the case of PDF, the original image is additionally compressed.
1221 The PDF-files generated by
1225 are for example bitmap images.
1228 \begin_layout Standard
1229 Normally it is not possible to convert a bitmap image into a scalable one,
1231 Only the image formats PDF and EPS can directly be embedded to PDF and
1232 PostScript output files, respectively.
1233 SVG and WMF-images are recalculated to bitmaps when the output file is
1234 generated because there is currently no adequate WMF/SVG
1235 \begin_inset Formula $\to$
1238 PDF/EPS converter available.
1241 \begin_layout Chapter
1243 \begin_inset LatexCommand label
1249 \begin_inset LatexCommand index
1257 \begin_layout Section
1259 \begin_inset LatexCommand index
1260 name "Table ! Introduction"
1267 \begin_layout Standard
1268 You can insert a table using either the toolbar button
1269 \begin_inset Graphics
1270 filename ../images/tabular-insert.xpm
1278 Insert\SpecialChar \menuseparator
1282 The toolbar button offers you a graphical selection: Move the mouse to
1283 set the column/row number of the table that should be created and then
1284 press a mouse button.
1285 When you use the menu to create a table, a dialog will appear, asking you
1286 for the number of rows and columns.
1288 The default table has lines around any
1289 cell and the first row appears separated from the rest of the table.
1290 This separation occurs due to a double line: The cells of the first row
1291 have a line below them and the cells of the second row have a line above
1293 Here is an example table:
1296 \begin_layout Standard
1298 \begin_inset Tabular
1299 <lyxtabular version="3" rows="4" columns="4">
1301 <column alignment="center" valignment="top" leftline="true" width="0">
1302 <column alignment="center" valignment="top" leftline="true" width="0">
1303 <column alignment="center" valignment="top" leftline="true" width="0">
1304 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
1305 <row topline="true" bottomline="true">
1306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1309 \begin_layout Standard
1315 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1318 \begin_layout Standard
1333 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1336 \begin_layout Standard
1342 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1345 \begin_layout Standard
1352 <row topline="true">
1353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1356 \begin_layout Standard
1371 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1374 \begin_layout Standard
1380 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1383 \begin_layout Standard
1389 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1392 \begin_layout Standard
1399 <row topline="true">
1400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1403 \begin_layout Standard
1418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1421 \begin_layout Standard
1427 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1430 \begin_layout Standard
1436 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1439 \begin_layout Standard
1446 <row topline="true" bottomline="true">
1447 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1450 \begin_layout Standard
1465 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1468 \begin_layout Standard
1474 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1477 \begin_layout Standard
1483 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1486 \begin_layout Standard
1500 \begin_layout Section
1502 \begin_inset LatexCommand index
1503 name "Table ! Dialog"
1510 \begin_layout Standard
1511 You can alter a table by clicking on it with the right mouse button, which
1512 brings up the table dialog.
1513 Here you can adjust the settings of that cell and row/column respectively
1514 where the cursor is currently placed.
1515 Most of the dialog options also work on selections.
1516 This means if you select more cells, columns or rows, the action is done
1517 for the whole selection.
1518 Note that there is a difference between selecting the
1522 of the cell, and the cell itself.
1523 You can alter tables with the following tabs of the table dialog:
1526 \begin_layout Description
1532 Here you can set the horizontal alignment and the width of the current
1534 When you have set a width you can also adjust the vertical alignment of
1536 A given width will allow the cell to have line breaks and multiple paragraphs
1537 of text, see section\InsetSpace ~
1539 \begin_inset LatexCommand ref
1540 reference "sub:Multiple-Lines-in"
1545 If you set no width, the column is as wide as their widest cell content
1548 Furthermore, you can mark one or multiple cells of one row as a multicolumn
1549 cell, see section\InsetSpace ~
1551 \begin_inset LatexCommand ref
1552 reference "sub:Multicolumns"
1558 The rotate check boxes rotates the current cell, a selection, or the whole
1559 table counter-clockwise by 90°.
1560 The rotation is not shown within LyX, only in the output.
1563 \begin_inset Note Greyedout
1566 \begin_layout Standard
1571 Not all DVI-viewers are able to display rotations.
1578 It is also possible to enter a LaTeX-argument which is needed for special
1579 table formattings, see section\InsetSpace ~
1581 \begin_inset LatexCommand ref
1582 reference "sub:Multicolumn-Calculations"
1587 \begin_inset LatexCommand ref
1588 reference "sec:Colored-Tables"
1595 \begin_layout Description
1600 In this tab you can add and delete border lines for the current row/column.
1607 will convert the table to a formal table as described in section\InsetSpace ~
1609 \begin_inset LatexCommand ref
1610 reference "sec:Formal-Tables"
1616 You can also add here space to table rows as decribed in section\InsetSpace ~
1618 \begin_inset LatexCommand ref
1619 reference "sub:Row-Spacing"
1626 \begin_layout Description
1631 This tab is to make a table a so called
1632 \begin_inset Quotes eld
1640 \begin_inset Quotes erd
1643 that can run over several pages.
1644 Section\InsetSpace ~
1646 \begin_inset LatexCommand ref
1647 reference "sec:Longtables"
1652 \begin_inset LatexCommand ref
1653 reference "sec:Special-Longtable-Issues"
1657 describe the longtable features in detail.
1660 \begin_layout Standard
1661 When the table toolbar is opened, you can move the cursor with the arrow
1662 keys from cell to cell and the property of the current cell will immediately
1663 be displayed in the dialog.
1666 \begin_layout Section
1668 \begin_inset LatexCommand index
1669 name "Table ! Toolbar"
1676 \begin_layout Standard
1677 The table toolbar is an alternative to the table dialog to be able to alter
1679 It should normally appear at the bottom of LyX's main window when the cursor
1681 You can alternatively switch it on to appear always, by right-clicking
1682 in LyX's main menu bar.
1685 \begin_layout Standard
1686 The toolbar has the following icons:
1689 \begin_layout Labeling
1690 \labelwidthstring 00.00.0000
1691 \begin_inset Graphics
1692 filename ../images/tabular-feature_append-row.xpm
1697 adds a row below the current cell or selection
1700 \begin_layout Labeling
1701 \labelwidthstring 00.00.0000
1702 \begin_inset Graphics
1703 filename ../images/tabular-feature_append-column.xpm
1708 adds a column right beside the current cell or selection
1711 \begin_layout Labeling
1712 \labelwidthstring 00.00.0000
1713 \begin_inset Graphics
1714 filename ../images/tabular-feature_delete-row.xpm
1719 deletes the current row or selection
1722 \begin_layout Labeling
1723 \labelwidthstring 00.00.0000
1724 \begin_inset Graphics
1725 filename ../images/tabular-feature_delete-column.xpm
1730 deletes the current column or selection
1733 \begin_layout Labeling
1734 \labelwidthstring 00.00.0000
1735 \begin_inset Graphics
1736 filename ../images/tabular-feature_toggle-line-top.xpm
1741 adds a line at the top of the current cell / row or of a selection
1744 \begin_layout Labeling
1745 \labelwidthstring 00.00.0000
1746 \begin_inset Graphics
1747 filename ../images/tabular-feature_toggle-line-bottom.xpm
1752 adds a line at the bottom of the current cell / row or of a selection
1755 \begin_layout Labeling
1756 \labelwidthstring 00.00.0000
1757 \begin_inset Graphics
1758 filename ../images/tabular-feature_toggle-line-left.xpm
1763 adds a line at the left side of the current cell / row or of a selection
1766 \begin_layout Labeling
1767 \labelwidthstring 00.00.0000
1768 \begin_inset Graphics
1769 filename ../images/tabular-feature_toggle-line-right.xpm
1774 adds a line at the right side of the current cell / row or of a selection
1777 \begin_layout Labeling
1778 \labelwidthstring 00.00.0000
1779 \begin_inset Graphics
1780 filename ../images/tabular-feature_set-all-lines.xpm
1785 adds lines around the current or selected cells - if the current cell no
1786 multicolumn this also affects the current row and column
1789 \begin_layout Labeling
1790 \labelwidthstring 00.00.0000
1791 \begin_inset Graphics
1792 filename ../images/tabular-feature_unset-all-lines.xpm
1797 deletes all lines of the current or selected cells - if the current cell
1798 no multicolumn this also affects the current row and column
1801 \begin_layout Labeling
1802 \labelwidthstring 00.00.0000
1803 \begin_inset Graphics
1804 filename ../images/tabular-feature_align-left.xpm
1809 left-aligns the content of the current cell / column
1812 \begin_layout Labeling
1813 \labelwidthstring 00.00.0000
1814 \begin_inset Graphics
1815 filename ../images/tabular-feature_align-center.xpm
1820 centers the content of the current cell / column horizontally
1823 \begin_layout Labeling
1824 \labelwidthstring 00.00.0000
1825 \begin_inset Graphics
1826 filename ../images/tabular-feature_align-right.xpm
1831 right-aligns the content of the current cell / column
1834 \begin_layout Labeling
1835 \labelwidthstring 00.00.0000
1836 \begin_inset Graphics
1837 filename ../images/tabular-feature_valign-top.xpm
1842 aligns the content of the current cell vertically to the top
1845 \begin_layout Labeling
1846 \labelwidthstring 00.00.0000
1847 \begin_inset Graphics
1848 filename ../images/tabular-feature_valign-middle.xpm
1853 centers the content of the current cell vertically
1856 \begin_layout Labeling
1857 \labelwidthstring 00.00.0000
1858 \begin_inset Graphics
1859 filename ../images/tabular-feature_valign-bottom.xpm
1864 aligns the content of the current cell vertically to the bottom
1867 \begin_layout Labeling
1868 \labelwidthstring 00.00.0000
1869 \begin_inset Graphics
1870 filename ../images/tabular-feature_set-rotate-cell.xpm
1875 rotates the current cell or selection counter-clockwise by 90°
1878 \begin_layout Labeling
1879 \labelwidthstring 00.00.0000
1880 \begin_inset Graphics
1881 filename ../images/tabular-feature_set-rotate-tabular.xpm
1886 rotates the whole table counter-clockwise by 90°
1889 \begin_layout Labeling
1890 \labelwidthstring 00.00.0000
1891 \begin_inset Graphics
1892 filename ../images/tabular-feature_multicolumn.xpm
1897 sets the current cell or selection as a multicolumn
1900 \begin_layout Standard
1901 \begin_inset Note Greyedout
1904 \begin_layout Standard
1909 For the output the vertical alignment of the first cell in a row is used
1910 for all following cells in the row.
1918 \begin_layout Section
1920 \begin_inset LatexCommand index
1921 name "Table ! Edit Menu"
1928 \begin_layout Standard
1929 Additionally to the table dialog and toolbar, the menu
1931 Edit\SpecialChar \menuseparator
1934 allows you to add and delete border lines for the current row/column and
1935 to set the current selection as multicolumn.
1936 The menu is only available when the cursor is inside a table.
1939 \begin_layout Section
1941 \begin_inset LatexCommand label
1942 name "sec:Table-Floats"
1947 \begin_inset LatexCommand index
1948 name "Floats ! Tables"
1953 \begin_inset LatexCommand index
1954 name "Table ! Floats"
1961 \begin_layout Standard
1962 For general explanations about floats, have a look at section\InsetSpace ~
1964 \begin_inset LatexCommand ref
1965 reference "sec:FloatIntroduction"
1972 \begin_layout Standard
1973 \begin_inset Float table
1979 \begin_layout Standard
1980 \begin_inset Caption
1982 \begin_layout Standard
1983 \begin_inset LatexCommand label
1984 name "tab:a table float"
1996 \begin_layout Standard
1998 \begin_inset Tabular
1999 <lyxtabular version="3" rows="3" columns="3">
2001 <column alignment="center" valignment="top" leftline="true" width="0pt">
2002 <column alignment="center" valignment="top" leftline="true" width="0pt">
2003 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
2004 <row topline="true" bottomline="true">
2005 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2008 \begin_layout Standard
2023 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2026 \begin_layout Standard
2041 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2044 \begin_layout Standard
2060 <row topline="true">
2061 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2064 \begin_layout Standard
2079 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2082 \begin_layout Standard
2097 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2100 \begin_layout Standard
2116 <row topline="true" bottomline="true">
2117 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2120 \begin_layout Standard
2130 \begin_inset Formula $\int x^{2}dx$
2138 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2141 \begin_layout Standard
2151 \begin_inset Formula $\left[\begin{array}{cc}
2153 c & d\end{array}\right]$
2161 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2164 \begin_layout Standard
2174 \begin_inset Formula $1+1=2$
2195 \begin_layout Standard
2196 Table floats can be inserted using the menu
2198 Insert\SpecialChar \menuseparator
2199 Float\SpecialChar \menuseparator
2202 or the toolbar button
2203 \begin_inset Graphics
2204 filename ../images/float-insert_table.xpm
2213 \begin_layout Standard
2214 The float appears as a collapsible box with a caption that has the label
2216 \begin_inset Quotes eld
2221 \begin_inset Quotes erd
2224 (# is the actual table number).
2225 You can insert tables to the float above or below the caption.
2228 \begin_layout Standard
2231 \begin_inset LatexCommand ref
2232 reference "tab:a table float"
2236 is an example table within a table float.
2239 \begin_layout Standard
2240 Having the caption above the table is the common rule that is unfortunately
2241 not supported in LaTeX's standard classes.
2242 That means if you are using the document classes
2258 there will be no space between the caption and the table.
2259 To insert the needed space, add the following option to the load command
2260 of the LaTeX-package
2265 \begin_inset LatexCommand index
2266 name "LaTeX-packages ! caption"
2270 in your document preamble
2274 \begin_layout Standard
2275 For more information have a look at section\InsetSpace ~
2277 \begin_inset LatexCommand ref
2278 reference "sec:Caption-Placement"
2290 \begin_layout Standard
2296 \begin_layout Standard
2301 , which is described in section\InsetSpace ~
2303 \begin_inset LatexCommand ref
2304 reference "sec:Caption-Formatting"
2308 , is used to adjust the caption format.
2311 \begin_layout Standard
2312 \begin_inset LatexCommand index
2313 name "References ! to Tables"
2317 Tables can be cross-referenced in the text by referencing their label.
2318 To do this insert a label in the caption using the menu
2320 Insert\SpecialChar \menuseparator
2323 or the toolbar button
2324 \begin_inset Graphics
2325 filename ../images/label-insert.xpm
2332 You can now refer to the label using the menu
2334 Insert\SpecialChar \menuseparator
2338 or the toolbar button
2339 \begin_inset Graphics
2340 filename ../images/dialog-show-new-inset_ref.xpm
2348 Referencing is explained in detail in section\InsetSpace ~
2350 \begin_inset LatexCommand ref
2351 reference "sec:Referencing-Floats"
2358 \begin_layout Section
2360 \begin_inset LatexCommand label
2361 name "sec:Longtables"
2366 \begin_inset LatexCommand index
2372 \begin_inset LatexCommand index
2373 name "Table ! Longtables"
2380 \begin_layout Standard
2381 If the table is too long to fit on one page, you can use the option
2391 of the table dialog to split the table automatically over more pages.
2392 Doing this enables some check boxes and you can now define:
2395 \begin_layout Description
2400 : The current row and all rows above, that don't have any special options
2401 defined, are defined to be the header rows of all pages of the longtable;
2402 except for the first page, if
2408 This therefore called the main header.
2411 \begin_layout Description
2417 : The current row and all rows above, that don't have any special options
2418 defined, are defined to be the header rows of the first page of the longtable.
2421 \begin_layout Description
2426 : The current row and all rows below, that don't have any special options
2427 defined, are defined to be the footer rows of all pages of the longtable;
2428 except for the last page, if
2436 \begin_layout Description
2442 : The current row and all rows below, that don't have any special options
2443 defined, are defined to be the footer rows of the last page of the longtable.
2446 \begin_layout Standard
2447 You can also specify a row where the table is splitted.
2448 If you set more than one option in the same table row, you should be aware
2449 of the fact that only the first one is used in the given table row.
2450 The others will then be defined as
2455 In this context, first means first in this order:
2462 header, Footer, Last\InsetSpace ~
2466 See the following longtable to see how it works:
2469 \begin_layout Standard
2471 \begin_inset Tabular
2472 <lyxtabular version="3" rows="69" columns="3">
2473 <features islongtable="true">
2474 <column alignment="left" valignment="top" leftline="true" width="0cm">
2475 <column alignment="left" valignment="top" width="0pt">
2476 <column alignment="right" valignment="top" leftline="true" rightline="true" width="0pt">
2477 <row topline="true" bottomline="true" endfirsthead="true">
2478 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2481 \begin_layout Standard
2484 Example Phone List (ignore the names)
2489 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2492 \begin_layout Standard
2498 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2501 \begin_layout Standard
2508 <row topline="true" bottomline="true" endfirsthead="true">
2509 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2512 \begin_layout Standard
2520 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2523 \begin_layout Standard
2529 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2532 \begin_layout Standard
2541 <row topline="true" bottomline="true" endhead="true">
2542 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2545 \begin_layout Standard
2553 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2556 \begin_layout Standard
2562 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2565 \begin_layout Standard
2572 <row topline="true" bottomline="true" endhead="true">
2573 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2576 \begin_layout Standard
2584 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2587 \begin_layout Standard
2593 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2596 \begin_layout Standard
2605 <row topline="true" bottomline="true" endfoot="true">
2606 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
2609 \begin_layout Standard
2610 continued on next page
2615 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2618 \begin_layout Standard
2624 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2627 \begin_layout Standard
2635 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2638 \begin_layout Standard
2646 <cell alignment="center" valignment="top" topline="true" usebox="none">
2649 \begin_layout Standard
2655 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2658 \begin_layout Standard
2666 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2669 \begin_layout Standard
2677 <cell alignment="center" valignment="top" topline="true" usebox="none">
2680 \begin_layout Standard
2686 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2689 \begin_layout Standard
2697 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2700 \begin_layout Standard
2708 <cell alignment="center" valignment="top" topline="true" usebox="none">
2711 \begin_layout Standard
2717 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2720 \begin_layout Standard
2728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2731 \begin_layout Standard
2739 <cell alignment="center" valignment="top" topline="true" usebox="none">
2742 \begin_layout Standard
2748 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2751 \begin_layout Standard
2759 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2762 \begin_layout Standard
2770 <cell alignment="center" valignment="top" topline="true" usebox="none">
2773 \begin_layout Standard
2779 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2782 \begin_layout Standard
2790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2793 \begin_layout Standard
2801 <cell alignment="center" valignment="top" topline="true" usebox="none">
2804 \begin_layout Standard
2810 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2813 \begin_layout Standard
2821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2824 \begin_layout Standard
2832 <cell alignment="center" valignment="top" topline="true" usebox="none">
2835 \begin_layout Standard
2841 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2844 \begin_layout Standard
2852 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2855 \begin_layout Standard
2863 <cell alignment="center" valignment="top" topline="true" usebox="none">
2866 \begin_layout Standard
2872 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2875 \begin_layout Standard
2883 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2886 \begin_layout Standard
2894 <cell alignment="center" valignment="top" topline="true" usebox="none">
2897 \begin_layout Standard
2903 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2906 \begin_layout Standard
2914 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2917 \begin_layout Standard
2925 <cell alignment="center" valignment="top" topline="true" usebox="none">
2928 \begin_layout Standard
2934 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2937 \begin_layout Standard
2945 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2948 \begin_layout Standard
2956 <cell alignment="center" valignment="top" topline="true" usebox="none">
2959 \begin_layout Standard
2965 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2968 \begin_layout Standard
2976 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2979 \begin_layout Standard
2987 <cell alignment="center" valignment="top" topline="true" usebox="none">
2990 \begin_layout Standard
2996 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2999 \begin_layout Standard
3007 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3010 \begin_layout Standard
3018 <cell alignment="center" valignment="top" topline="true" usebox="none">
3021 \begin_layout Standard
3027 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3030 \begin_layout Standard
3038 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3041 \begin_layout Standard
3049 <cell alignment="center" valignment="top" topline="true" usebox="none">
3052 \begin_layout Standard
3058 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3061 \begin_layout Standard
3069 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3072 \begin_layout Standard
3080 <cell alignment="center" valignment="top" topline="true" usebox="none">
3083 \begin_layout Standard
3089 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3092 \begin_layout Standard
3100 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3103 \begin_layout Standard
3111 <cell alignment="center" valignment="top" topline="true" usebox="none">
3114 \begin_layout Standard
3120 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3123 \begin_layout Standard
3131 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3134 \begin_layout Standard
3142 <cell alignment="center" valignment="top" topline="true" usebox="none">
3145 \begin_layout Standard
3151 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3154 \begin_layout Standard
3162 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3165 \begin_layout Standard
3173 <cell alignment="center" valignment="top" topline="true" usebox="none">
3176 \begin_layout Standard
3182 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3185 \begin_layout Standard
3193 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3196 \begin_layout Standard
3204 <cell alignment="center" valignment="top" topline="true" usebox="none">
3207 \begin_layout Standard
3213 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3216 \begin_layout Standard
3224 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3227 \begin_layout Standard
3235 <cell alignment="center" valignment="top" topline="true" usebox="none">
3238 \begin_layout Standard
3244 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3247 \begin_layout Standard
3255 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3258 \begin_layout Standard
3266 <cell alignment="center" valignment="top" topline="true" usebox="none">
3269 \begin_layout Standard
3275 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3278 \begin_layout Standard
3286 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3289 \begin_layout Standard
3297 <cell alignment="center" valignment="top" topline="true" usebox="none">
3300 \begin_layout Standard
3306 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3309 \begin_layout Standard
3317 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3320 \begin_layout Standard
3328 <cell alignment="center" valignment="top" topline="true" usebox="none">
3331 \begin_layout Standard
3337 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3340 \begin_layout Standard
3348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3351 \begin_layout Standard
3359 <cell alignment="center" valignment="top" topline="true" usebox="none">
3362 \begin_layout Standard
3368 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3371 \begin_layout Standard
3379 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3382 \begin_layout Standard
3390 <cell alignment="center" valignment="top" topline="true" usebox="none">
3393 \begin_layout Standard
3399 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3402 \begin_layout Standard
3410 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3413 \begin_layout Standard
3421 <cell alignment="center" valignment="top" topline="true" usebox="none">
3424 \begin_layout Standard
3430 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3433 \begin_layout Standard
3441 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3444 \begin_layout Standard
3452 <cell alignment="center" valignment="top" topline="true" usebox="none">
3455 \begin_layout Standard
3461 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3464 \begin_layout Standard
3472 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3475 \begin_layout Standard
3483 <cell alignment="center" valignment="top" topline="true" usebox="none">
3486 \begin_layout Standard
3492 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3495 \begin_layout Standard
3503 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3506 \begin_layout Standard
3514 <cell alignment="center" valignment="top" topline="true" usebox="none">
3517 \begin_layout Standard
3523 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3526 \begin_layout Standard
3534 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3537 \begin_layout Standard
3545 <cell alignment="center" valignment="top" topline="true" usebox="none">
3548 \begin_layout Standard
3554 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3557 \begin_layout Standard
3564 <row bottomline="true">
3565 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3568 \begin_layout Standard
3576 <cell alignment="center" valignment="top" topline="true" usebox="none">
3579 \begin_layout Standard
3585 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3588 \begin_layout Standard
3595 <row bottomline="true">
3596 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3599 \begin_layout Standard
3605 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
3608 \begin_layout Standard
3614 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3617 \begin_layout Standard
3625 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3628 \begin_layout Standard
3636 <cell alignment="center" valignment="top" topline="true" usebox="none">
3639 \begin_layout Standard
3645 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3648 \begin_layout Standard
3656 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3659 \begin_layout Standard
3667 <cell alignment="center" valignment="top" topline="true" usebox="none">
3670 \begin_layout Standard
3676 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3679 \begin_layout Standard
3687 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3690 \begin_layout Standard
3698 <cell alignment="center" valignment="top" topline="true" usebox="none">
3701 \begin_layout Standard
3707 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3710 \begin_layout Standard
3718 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3721 \begin_layout Standard
3729 <cell alignment="center" valignment="top" topline="true" usebox="none">
3732 \begin_layout Standard
3738 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3741 \begin_layout Standard
3749 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3752 \begin_layout Standard
3760 <cell alignment="center" valignment="top" topline="true" usebox="none">
3763 \begin_layout Standard
3769 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3772 \begin_layout Standard
3780 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3783 \begin_layout Standard
3791 <cell alignment="center" valignment="top" topline="true" usebox="none">
3794 \begin_layout Standard
3800 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3803 \begin_layout Standard
3811 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3814 \begin_layout Standard
3822 <cell alignment="center" valignment="top" topline="true" usebox="none">
3825 \begin_layout Standard
3831 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3834 \begin_layout Standard
3842 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3845 \begin_layout Standard
3853 <cell alignment="center" valignment="top" topline="true" usebox="none">
3856 \begin_layout Standard
3862 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3865 \begin_layout Standard
3873 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3876 \begin_layout Standard
3884 <cell alignment="center" valignment="top" topline="true" usebox="none">
3887 \begin_layout Standard
3893 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3896 \begin_layout Standard
3904 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3907 \begin_layout Standard
3915 <cell alignment="center" valignment="top" topline="true" usebox="none">
3918 \begin_layout Standard
3924 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3927 \begin_layout Standard
3935 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3938 \begin_layout Standard
3946 <cell alignment="center" valignment="top" topline="true" usebox="none">
3949 \begin_layout Standard
3955 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3958 \begin_layout Standard
3966 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3969 \begin_layout Standard
3977 <cell alignment="center" valignment="top" topline="true" usebox="none">
3980 \begin_layout Standard
3986 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3989 \begin_layout Standard
3997 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4000 \begin_layout Standard
4008 <cell alignment="center" valignment="top" topline="true" usebox="none">
4011 \begin_layout Standard
4017 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4020 \begin_layout Standard
4028 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4031 \begin_layout Standard
4039 <cell alignment="center" valignment="top" topline="true" usebox="none">
4042 \begin_layout Standard
4048 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4051 \begin_layout Standard
4059 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4062 \begin_layout Standard
4070 <cell alignment="center" valignment="top" topline="true" usebox="none">
4073 \begin_layout Standard
4079 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4082 \begin_layout Standard
4090 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4093 \begin_layout Standard
4101 <cell alignment="center" valignment="top" topline="true" usebox="none">
4104 \begin_layout Standard
4110 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4113 \begin_layout Standard
4121 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4124 \begin_layout Standard
4132 <cell alignment="center" valignment="top" topline="true" usebox="none">
4135 \begin_layout Standard
4141 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4144 \begin_layout Standard
4152 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4155 \begin_layout Standard
4163 <cell alignment="center" valignment="top" topline="true" usebox="none">
4166 \begin_layout Standard
4172 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4175 \begin_layout Standard
4183 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4186 \begin_layout Standard
4194 <cell alignment="center" valignment="top" topline="true" usebox="none">
4197 \begin_layout Standard
4203 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4206 \begin_layout Standard
4214 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4217 \begin_layout Standard
4225 <cell alignment="center" valignment="top" topline="true" usebox="none">
4228 \begin_layout Standard
4234 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4237 \begin_layout Standard
4245 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4248 \begin_layout Standard
4256 <cell alignment="center" valignment="top" topline="true" usebox="none">
4259 \begin_layout Standard
4265 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4268 \begin_layout Standard
4276 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4279 \begin_layout Standard
4287 <cell alignment="center" valignment="top" topline="true" usebox="none">
4290 \begin_layout Standard
4296 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4299 \begin_layout Standard
4307 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4310 \begin_layout Standard
4318 <cell alignment="center" valignment="top" topline="true" usebox="none">
4321 \begin_layout Standard
4327 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4330 \begin_layout Standard
4338 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4341 \begin_layout Standard
4349 <cell alignment="center" valignment="top" topline="true" usebox="none">
4352 \begin_layout Standard
4358 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4361 \begin_layout Standard
4369 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4372 \begin_layout Standard
4380 <cell alignment="center" valignment="top" topline="true" usebox="none">
4383 \begin_layout Standard
4389 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4392 \begin_layout Standard
4400 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4403 \begin_layout Standard
4411 <cell alignment="center" valignment="top" topline="true" usebox="none">
4414 \begin_layout Standard
4420 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4423 \begin_layout Standard
4431 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4434 \begin_layout Standard
4442 <cell alignment="center" valignment="top" topline="true" usebox="none">
4445 \begin_layout Standard
4451 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4454 \begin_layout Standard
4462 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4465 \begin_layout Standard
4473 <cell alignment="center" valignment="top" topline="true" usebox="none">
4476 \begin_layout Standard
4482 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4485 \begin_layout Standard
4493 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4496 \begin_layout Standard
4504 <cell alignment="center" valignment="top" topline="true" usebox="none">
4507 \begin_layout Standard
4513 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4516 \begin_layout Standard
4524 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4527 \begin_layout Standard
4535 <cell alignment="center" valignment="top" topline="true" usebox="none">
4538 \begin_layout Standard
4544 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4547 \begin_layout Standard
4554 <row bottomline="true">
4555 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4558 \begin_layout Standard
4566 <cell alignment="center" valignment="top" topline="true" usebox="none">
4569 \begin_layout Standard
4575 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4578 \begin_layout Standard
4585 <row bottomline="true" endlastfoot="true">
4586 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
4589 \begin_layout Standard
4595 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4598 \begin_layout Standard
4604 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4607 \begin_layout Standard
4622 \begin_layout Standard
4626 addtocounter{table}{-1}
4632 \begin_inset Note Note
4635 \begin_layout Standard
4636 See greyed-out note in section\InsetSpace ~
4638 \begin_inset LatexCommand ref
4639 reference "sub:Longtable-Captions"
4643 for an explanation of this command.
4651 \begin_layout Subsection
4652 Footnotes in Longtables
4653 \begin_inset LatexCommand label
4654 name "sub:Footnotes-in-Longtables"
4659 \begin_inset LatexCommand index
4660 name "Longtables ! Footnotes"
4667 \begin_layout Standard
4668 Footnotes can be inserted to every longtable cell.
4669 They appear at the bottom of the page where the table cell with the footnote
4673 \begin_inset LatexCommand ref
4674 reference "tab:DiffCaptions"
4678 has for example a footnote.
4681 \begin_layout Subsection
4683 \begin_inset LatexCommand index
4684 name "Longtables ! Captions"
4689 \begin_inset LatexCommand label
4690 name "sub:Longtable-Captions"
4697 \begin_layout Standard
4698 A longtable cannot be put into a table float because floats can only be
4699 on one page but the caption environment of floats can also be used for
4703 \begin_layout Standard
4704 As LyX does not yet fully support captions in longtables, a hack is needed
4708 \begin_layout Enumerate
4714 \begin_layout Enumerate
4715 Mark the first row and disable its upper line.
4718 \begin_layout Enumerate
4719 Insert a caption via the menu
4721 Insert\SpecialChar \menuseparator
4724 into the first table cell.
4726 You can also add a short title for the caption.
4729 \begin_layout Enumerate
4731 \begin_inset Quotes eld
4743 \begin_inset Quotes erd
4746 as ERT behind the caption.
4749 \begin_layout Standard
4750 A short title that will appear in the LOT instead of the full title.
4759 behind the caption omits the vertical lines between the following cells
4761 The first table row is now only a dummy row for the caption, the actual
4762 table starts with the second row.
4765 \begin_layout Standard
4766 Here is a short longtable to see how it works:
4769 \begin_layout Standard
4770 \begin_inset Tabular
4771 <lyxtabular version="3" rows="6" columns="5">
4772 <features islongtable="true">
4773 <column alignment="center" valignment="top" leftline="true" width="0">
4774 <column alignment="center" valignment="top" leftline="true" width="0">
4775 <column alignment="center" valignment="top" leftline="true" width="0">
4776 <column alignment="center" valignment="top" leftline="true" width="0">
4777 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
4779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4782 \begin_layout Standard
4783 \begin_inset Caption
4785 \begin_layout Standard
4786 Longtable with caption
4790 \begin_layout Standard
4805 \begin_layout Standard
4821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4824 \begin_layout Standard
4830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4833 \begin_layout Standard
4839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4842 \begin_layout Standard
4848 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4851 \begin_layout Standard
4858 <row topline="true">
4859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4862 \begin_layout Standard
4868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4871 \begin_layout Standard
4877 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4880 \begin_layout Standard
4886 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4889 \begin_layout Standard
4895 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4898 \begin_layout Standard
4905 <row topline="true">
4906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4909 \begin_layout Standard
4915 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4918 \begin_layout Standard
4924 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4927 \begin_layout Standard
4933 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4936 \begin_layout Standard
4942 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4945 \begin_layout Standard
4952 <row topline="true">
4953 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4956 \begin_layout Standard
4962 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4965 \begin_layout Standard
4971 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4974 \begin_layout Standard
4980 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4983 \begin_layout Standard
4989 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4992 \begin_layout Standard
4999 <row topline="true">
5000 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5003 \begin_layout Standard
5009 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5012 \begin_layout Standard
5018 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5021 \begin_layout Standard
5027 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5030 \begin_layout Standard
5036 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5039 \begin_layout Standard
5046 <row topline="true" bottomline="true">
5047 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5050 \begin_layout Standard
5056 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5059 \begin_layout Standard
5065 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5068 \begin_layout Standard
5074 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5077 \begin_layout Standard
5083 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5086 \begin_layout Standard
5100 \begin_layout Standard
5101 \begin_inset VSpace medskip
5105 \begin_inset Note Greyedout
5108 \begin_layout Standard
5113 The table number is increased for every longtable, also if you didn't set
5115 For this reason you could have the case that e.g.
5117 2.4 follows on Table\InsetSpace ~
5118 2.1 in the list of tables if there are two longtables
5120 To avoid this you can add the following command in ERT behind every longtable
5124 \begin_layout Standard
5129 addtocounter{table}{-1}
5137 \begin_layout Standard
5138 \begin_inset Note Greyedout
5141 \begin_layout Standard
5146 If you are using the LaTeX-package
5151 \begin_inset LatexCommand index
5152 name "LaTeX-packages ! hyperref"
5156 to link cross-references, the link to a longtable caption will always point
5157 to the beginning of the document.
5165 \begin_layout Subsubsection
5166 References to Longtables
5167 \begin_inset LatexCommand index
5168 name "Longtables ! References"
5175 \begin_layout Standard
5176 \begin_inset Tabular
5177 <lyxtabular version="3" rows="6" columns="5">
5178 <features islongtable="true">
5179 <column alignment="center" valignment="top" leftline="true" width="0">
5180 <column alignment="center" valignment="top" leftline="true" width="0">
5181 <column alignment="center" valignment="top" leftline="true" width="0">
5182 <column alignment="center" valignment="top" leftline="true" width="0">
5183 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5185 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5188 \begin_layout Standard
5189 \begin_inset Caption
5191 \begin_layout Standard
5192 Referenced longtable
5193 \begin_inset LatexCommand label
5194 name "tab:RefExample"
5207 \begin_layout Standard
5223 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5226 \begin_layout Standard
5232 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5235 \begin_layout Standard
5241 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5244 \begin_layout Standard
5250 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5253 \begin_layout Standard
5260 <row topline="true">
5261 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5264 \begin_layout Standard
5270 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5273 \begin_layout Standard
5279 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5282 \begin_layout Standard
5288 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5291 \begin_layout Standard
5297 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5300 \begin_layout Standard
5307 <row topline="true">
5308 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5311 \begin_layout Standard
5317 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5320 \begin_layout Standard
5326 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5329 \begin_layout Standard
5335 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5338 \begin_layout Standard
5344 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5347 \begin_layout Standard
5354 <row topline="true">
5355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5358 \begin_layout Standard
5364 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5367 \begin_layout Standard
5373 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5376 \begin_layout Standard
5382 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5385 \begin_layout Standard
5391 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5394 \begin_layout Standard
5401 <row topline="true">
5402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5405 \begin_layout Standard
5411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5414 \begin_layout Standard
5420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5423 \begin_layout Standard
5429 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5432 \begin_layout Standard
5438 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5441 \begin_layout Standard
5448 <row topline="true" bottomline="true">
5449 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5452 \begin_layout Standard
5458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5461 \begin_layout Standard
5467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5470 \begin_layout Standard
5476 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5479 \begin_layout Standard
5485 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5488 \begin_layout Standard
5502 \begin_layout Standard
5503 To reference a longtable, insert a label into the caption.
5504 Note that you have to add the label prefix
5505 \begin_inset Quotes eld
5513 \begin_inset Quotes eld
5516 manually in the label field.
5519 \begin_layout Standard
5520 This is a reference to Table\InsetSpace ~
5522 \begin_inset LatexCommand ref
5523 reference "tab:RefExample"
5530 \begin_layout Standard
5531 The caption layout can be set together with all other caption of your document
5532 using the LaTeX-package
5537 \begin_inset LatexCommand index
5538 name "LaTeX-packages ! caption"
5542 , see section\InsetSpace ~
5544 \begin_inset LatexCommand ref
5545 reference "sec:Caption-Formatting"
5552 \begin_layout Subsubsection
5554 \begin_inset LatexCommand index
5555 name "Longtables ! Caption Width"
5562 \begin_layout Standard
5563 The maximal width of of caption lines is defined by the length
5570 Its default value is 4\InsetSpace \thinspace{}
5572 To change it add the following command to your document preamble or as
5573 ERT into your document before the longtable that should be affected
5576 \begin_layout Standard
5586 \begin_layout Standard
5587 where the width could have one of the units listed in appendix\InsetSpace ~
5589 \begin_inset LatexCommand ref
5590 reference "cha:Units-available-in"
5597 \begin_layout Standard
5598 The following tables show the difference:
5601 \begin_layout Standard
5602 \begin_inset Tabular
5603 <lyxtabular version="3" rows="6" columns="5">
5604 <features islongtable="true">
5605 <column alignment="center" valignment="top" leftline="true" width="0">
5606 <column alignment="center" valignment="top" leftline="true" width="0">
5607 <column alignment="center" valignment="top" leftline="true" width="0">
5608 <column alignment="center" valignment="top" leftline="true" width="0">
5609 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5611 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5614 \begin_layout Standard
5615 \begin_inset Caption
5617 \begin_layout Standard
5618 long full title with default width long full title with default width long
5619 full title with default width
5623 \begin_layout Standard
5624 caption with default width
5638 \begin_layout Standard
5654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5657 \begin_layout Standard
5663 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5666 \begin_layout Standard
5672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5675 \begin_layout Standard
5681 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5684 \begin_layout Standard
5691 <row topline="true">
5692 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5695 \begin_layout Standard
5701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5704 \begin_layout Standard
5710 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5713 \begin_layout Standard
5719 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5722 \begin_layout Standard
5728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5731 \begin_layout Standard
5738 <row topline="true">
5739 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5742 \begin_layout Standard
5748 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5751 \begin_layout Standard
5757 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5760 \begin_layout Standard
5766 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5769 \begin_layout Standard
5775 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5778 \begin_layout Standard
5785 <row topline="true">
5786 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5789 \begin_layout Standard
5795 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5798 \begin_layout Standard
5804 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5807 \begin_layout Standard
5813 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5816 \begin_layout Standard
5822 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5825 \begin_layout Standard
5832 <row topline="true">
5833 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5836 \begin_layout Standard
5842 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5845 \begin_layout Standard
5851 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5854 \begin_layout Standard
5860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5863 \begin_layout Standard
5869 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5872 \begin_layout Standard
5879 <row topline="true" bottomline="true">
5880 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5883 \begin_layout Standard
5889 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5892 \begin_layout Standard
5898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5901 \begin_layout Standard
5907 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5910 \begin_layout Standard
5916 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5919 \begin_layout Standard
5933 \begin_layout Standard
5937 \begin_layout Standard
5949 \begin_inset Tabular
5950 <lyxtabular version="3" rows="6" columns="5">
5951 <features islongtable="true">
5952 <column alignment="center" valignment="top" leftline="true" width="0">
5953 <column alignment="center" valignment="top" leftline="true" width="0">
5954 <column alignment="center" valignment="top" leftline="true" width="0">
5955 <column alignment="center" valignment="top" leftline="true" width="0">
5956 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5958 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5961 \begin_layout Standard
5962 \begin_inset Caption
5964 \begin_layout Standard
5965 long full title with width set to 5\InsetSpace \thinspace{}
5966 cm long full title with width set to
5967 5\InsetSpace \thinspace{}
5968 cm long full title with width set to 5\InsetSpace \thinspace{}
5973 \begin_layout Standard
5974 caption with width\InsetSpace \thinspace{}
5975 =\InsetSpace \thinspace{}
5976 5\InsetSpace \thinspace{}
5991 \begin_layout Standard
6007 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6010 \begin_layout Standard
6016 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6019 \begin_layout Standard
6025 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6028 \begin_layout Standard
6034 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6037 \begin_layout Standard
6044 <row topline="true">
6045 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6048 \begin_layout Standard
6054 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6057 \begin_layout Standard
6063 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6066 \begin_layout Standard
6072 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6075 \begin_layout Standard
6081 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6084 \begin_layout Standard
6091 <row topline="true">
6092 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6095 \begin_layout Standard
6101 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6104 \begin_layout Standard
6110 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6113 \begin_layout Standard
6119 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6122 \begin_layout Standard
6128 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6131 \begin_layout Standard
6138 <row topline="true">
6139 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6142 \begin_layout Standard
6148 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6151 \begin_layout Standard
6157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6160 \begin_layout Standard
6166 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6169 \begin_layout Standard
6175 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6178 \begin_layout Standard
6185 <row topline="true">
6186 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6189 \begin_layout Standard
6195 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6198 \begin_layout Standard
6204 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6207 \begin_layout Standard
6213 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6216 \begin_layout Standard
6222 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6225 \begin_layout Standard
6232 <row topline="true" bottomline="true">
6233 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6236 \begin_layout Standard
6242 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6245 \begin_layout Standard
6251 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6254 \begin_layout Standard
6260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6263 \begin_layout Standard
6269 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6272 \begin_layout Standard
6286 \begin_layout Standard
6290 \begin_layout Standard
6304 \begin_layout Standard
6305 \begin_inset Note Greyedout
6308 \begin_layout Standard
6313 When the LaTeX-package
6318 \begin_inset LatexCommand index
6319 name "LaTeX-packages ! caption"
6323 is used, as in this document, the full page width is used for the caption
6324 when you use the default value of 4\InsetSpace \thinspace{}
6332 To get in this case exactly a 4\InsetSpace \thinspace{}
6333 in wide caption, you can either use a value
6334 slightly different from 4.0\InsetSpace \thinspace{}
6336 3.99\InsetSpace \thinspace{}
6337 in, or the LaTeX-command
6341 captionsetup{width=value}
6343 that is provided by the
6355 \begin_layout Subsubsection
6356 Different Captions for Table Pages
6357 \begin_inset LatexCommand index
6358 name "Longtables ! Different Captions for Pages"
6365 \begin_layout Standard
6366 When the other captions should differ from the one of the first table page,
6367 insert a caption with a non-empty short title in a dummy caption row marked
6369 The caption used for the other table pages is inserted as caption without
6370 a short title in a dummy caption row that is marked as main header.
6371 When this caption shouldn't include the table number, use the command
6374 \begin_layout Standard
6379 caption*{caption text}
6382 \begin_layout Standard
6383 instead of LyX's caption box.
6384 The label to reference the table is inserted into the caption of the first
6388 \begin_inset LatexCommand ref
6389 reference "tab:DiffCaptions"
6393 is an example for a longtable with different heading where the second caption
6394 doesn't include the table number.
6397 \begin_layout Standard
6399 \begin_inset Tabular
6400 <lyxtabular version="3" rows="60" columns="3">
6401 <features islongtable="true">
6402 <column alignment="left" valignment="top" leftline="true" width="0cm">
6403 <column alignment="left" valignment="top" rightline="true" width="0pt">
6404 <column alignment="right" valignment="top" rightline="true" width="0pt">
6405 <row endfirsthead="true">
6406 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6409 \begin_layout Standard
6410 \begin_inset Caption
6412 \begin_layout Standard
6414 \begin_inset LatexCommand label
6415 name "tab:DiffCaptions"
6423 \begin_layout Standard
6438 \begin_layout Standard
6454 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6457 \begin_layout Standard
6463 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6466 \begin_layout Standard
6473 <row topline="true" bottomline="true" endfirsthead="true">
6474 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6477 \begin_layout Standard
6480 Example Phone List (ignore the names)
6485 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6488 \begin_layout Standard
6494 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6497 \begin_layout Standard
6504 <row topline="true" bottomline="true" endfirsthead="true">
6505 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6508 \begin_layout Standard
6516 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6519 \begin_layout Standard
6525 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6528 \begin_layout Standard
6537 <row bottomline="true" endhead="true">
6538 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6541 \begin_layout Standard
6545 \begin_layout Standard
6549 caption*{Continued Example Phone List}
6563 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6566 \begin_layout Standard
6572 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6575 \begin_layout Standard
6582 <row topline="true" bottomline="true" endhead="true">
6583 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6586 \begin_layout Standard
6594 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6597 \begin_layout Standard
6603 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6606 \begin_layout Standard
6613 <row topline="true" bottomline="true" endhead="true">
6614 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6617 \begin_layout Standard
6625 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6628 \begin_layout Standard
6634 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6637 \begin_layout Standard
6646 <row topline="true" bottomline="true" endfoot="true">
6647 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
6650 \begin_layout Standard
6651 continued on next page
6656 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6659 \begin_layout Standard
6665 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6668 \begin_layout Standard
6676 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6679 \begin_layout Standard
6687 <cell alignment="center" valignment="top" topline="true" usebox="none">
6690 \begin_layout Standard
6696 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6699 \begin_layout Standard
6707 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6710 \begin_layout Standard
6718 <cell alignment="center" valignment="top" topline="true" usebox="none">
6721 \begin_layout Standard
6727 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6730 \begin_layout Standard
6738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6741 \begin_layout Standard
6749 <cell alignment="center" valignment="top" topline="true" usebox="none">
6752 \begin_layout Standard
6758 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6761 \begin_layout Standard
6769 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6772 \begin_layout Standard
6780 <cell alignment="center" valignment="top" topline="true" usebox="none">
6783 \begin_layout Standard
6789 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6792 \begin_layout Standard
6800 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6803 \begin_layout Standard
6811 <cell alignment="center" valignment="top" topline="true" usebox="none">
6814 \begin_layout Standard
6820 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6823 \begin_layout Standard
6831 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6834 \begin_layout Standard
6842 <cell alignment="center" valignment="top" topline="true" usebox="none">
6845 \begin_layout Standard
6851 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6854 \begin_layout Standard
6862 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6865 \begin_layout Standard
6873 <cell alignment="center" valignment="top" topline="true" usebox="none">
6876 \begin_layout Standard
6882 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6885 \begin_layout Standard
6893 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6896 \begin_layout Standard
6904 <cell alignment="center" valignment="top" topline="true" usebox="none">
6907 \begin_layout Standard
6913 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6916 \begin_layout Standard
6924 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6927 \begin_layout Standard
6935 <cell alignment="center" valignment="top" topline="true" usebox="none">
6938 \begin_layout Standard
6944 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6947 \begin_layout Standard
6955 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6958 \begin_layout Standard
6966 <cell alignment="center" valignment="top" topline="true" usebox="none">
6969 \begin_layout Standard
6975 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6978 \begin_layout Standard
6986 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6989 \begin_layout Standard
6997 <cell alignment="center" valignment="top" topline="true" usebox="none">
7000 \begin_layout Standard
7006 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7009 \begin_layout Standard
7017 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7020 \begin_layout Standard
7028 <cell alignment="center" valignment="top" topline="true" usebox="none">
7031 \begin_layout Standard
7037 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7040 \begin_layout Standard
7048 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7051 \begin_layout Standard
7059 <cell alignment="center" valignment="top" topline="true" usebox="none">
7062 \begin_layout Standard
7068 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7071 \begin_layout Standard
7079 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7082 \begin_layout Standard
7090 <cell alignment="center" valignment="top" topline="true" usebox="none">
7093 \begin_layout Standard
7099 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7102 \begin_layout Standard
7110 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7113 \begin_layout Standard
7122 \begin_layout Standard
7133 <cell alignment="center" valignment="top" topline="true" usebox="none">
7136 \begin_layout Standard
7142 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7145 \begin_layout Standard
7153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7156 \begin_layout Standard
7164 <cell alignment="center" valignment="top" topline="true" usebox="none">
7167 \begin_layout Standard
7173 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7176 \begin_layout Standard
7184 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7187 \begin_layout Standard
7195 <cell alignment="center" valignment="top" topline="true" usebox="none">
7198 \begin_layout Standard
7204 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7207 \begin_layout Standard
7215 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7218 \begin_layout Standard
7226 <cell alignment="center" valignment="top" topline="true" usebox="none">
7229 \begin_layout Standard
7235 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7238 \begin_layout Standard
7246 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7249 \begin_layout Standard
7257 <cell alignment="center" valignment="top" topline="true" usebox="none">
7260 \begin_layout Standard
7266 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7269 \begin_layout Standard
7277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7280 \begin_layout Standard
7288 <cell alignment="center" valignment="top" topline="true" usebox="none">
7291 \begin_layout Standard
7297 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7300 \begin_layout Standard
7308 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7311 \begin_layout Standard
7319 <cell alignment="center" valignment="top" topline="true" usebox="none">
7322 \begin_layout Standard
7328 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7331 \begin_layout Standard
7339 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7342 \begin_layout Standard
7350 <cell alignment="center" valignment="top" topline="true" usebox="none">
7353 \begin_layout Standard
7359 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7362 \begin_layout Standard
7370 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7373 \begin_layout Standard
7381 <cell alignment="center" valignment="top" topline="true" usebox="none">
7384 \begin_layout Standard
7390 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7393 \begin_layout Standard
7401 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7404 \begin_layout Standard
7412 <cell alignment="center" valignment="top" topline="true" usebox="none">
7415 \begin_layout Standard
7421 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7424 \begin_layout Standard
7432 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7435 \begin_layout Standard
7443 <cell alignment="center" valignment="top" topline="true" usebox="none">
7446 \begin_layout Standard
7452 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7455 \begin_layout Standard
7463 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7466 \begin_layout Standard
7474 <cell alignment="center" valignment="top" topline="true" usebox="none">
7477 \begin_layout Standard
7483 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7486 \begin_layout Standard
7494 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7497 \begin_layout Standard
7505 <cell alignment="center" valignment="top" topline="true" usebox="none">
7508 \begin_layout Standard
7514 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7517 \begin_layout Standard
7525 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7528 \begin_layout Standard
7536 <cell alignment="center" valignment="top" topline="true" usebox="none">
7539 \begin_layout Standard
7545 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7548 \begin_layout Standard
7556 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7559 \begin_layout Standard
7567 <cell alignment="center" valignment="top" topline="true" usebox="none">
7570 \begin_layout Standard
7576 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7579 \begin_layout Standard
7587 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7590 \begin_layout Standard
7598 <cell alignment="center" valignment="top" topline="true" usebox="none">
7601 \begin_layout Standard
7607 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7610 \begin_layout Standard
7617 <row bottomline="true">
7618 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7621 \begin_layout Standard
7629 <cell alignment="center" valignment="top" topline="true" usebox="none">
7632 \begin_layout Standard
7638 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7641 \begin_layout Standard
7648 <row bottomline="true">
7649 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7652 \begin_layout Standard
7658 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
7661 \begin_layout Standard
7667 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7670 \begin_layout Standard
7678 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7681 \begin_layout Standard
7689 <cell alignment="center" valignment="top" topline="true" usebox="none">
7692 \begin_layout Standard
7698 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7701 \begin_layout Standard
7709 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7712 \begin_layout Standard
7720 <cell alignment="center" valignment="top" topline="true" usebox="none">
7723 \begin_layout Standard
7729 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7732 \begin_layout Standard
7740 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7743 \begin_layout Standard
7751 <cell alignment="center" valignment="top" topline="true" usebox="none">
7754 \begin_layout Standard
7760 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7763 \begin_layout Standard
7771 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7774 \begin_layout Standard
7782 <cell alignment="center" valignment="top" topline="true" usebox="none">
7785 \begin_layout Standard
7791 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7794 \begin_layout Standard
7802 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7805 \begin_layout Standard
7813 <cell alignment="center" valignment="top" topline="true" usebox="none">
7816 \begin_layout Standard
7822 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7825 \begin_layout Standard
7833 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7836 \begin_layout Standard
7844 <cell alignment="center" valignment="top" topline="true" usebox="none">
7847 \begin_layout Standard
7853 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7856 \begin_layout Standard
7864 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7867 \begin_layout Standard
7875 <cell alignment="center" valignment="top" topline="true" usebox="none">
7878 \begin_layout Standard
7884 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7887 \begin_layout Standard
7895 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7898 \begin_layout Standard
7906 <cell alignment="center" valignment="top" topline="true" usebox="none">
7909 \begin_layout Standard
7915 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7918 \begin_layout Standard
7926 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7929 \begin_layout Standard
7937 <cell alignment="center" valignment="top" topline="true" usebox="none">
7940 \begin_layout Standard
7946 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7949 \begin_layout Standard
7957 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7960 \begin_layout Standard
7968 <cell alignment="center" valignment="top" topline="true" usebox="none">
7971 \begin_layout Standard
7977 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7980 \begin_layout Standard
7988 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7991 \begin_layout Standard
7999 <cell alignment="center" valignment="top" topline="true" usebox="none">
8002 \begin_layout Standard
8008 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8011 \begin_layout Standard
8019 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8022 \begin_layout Standard
8030 <cell alignment="center" valignment="top" topline="true" usebox="none">
8033 \begin_layout Standard
8039 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8042 \begin_layout Standard
8050 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8053 \begin_layout Standard
8061 <cell alignment="center" valignment="top" topline="true" usebox="none">
8064 \begin_layout Standard
8070 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8073 \begin_layout Standard
8081 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8084 \begin_layout Standard
8092 <cell alignment="center" valignment="top" topline="true" usebox="none">
8095 \begin_layout Standard
8101 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8104 \begin_layout Standard
8112 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8115 \begin_layout Standard
8123 <cell alignment="center" valignment="top" topline="true" usebox="none">
8126 \begin_layout Standard
8132 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8135 \begin_layout Standard
8143 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8146 \begin_layout Standard
8154 <cell alignment="center" valignment="top" topline="true" usebox="none">
8157 \begin_layout Standard
8163 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8166 \begin_layout Standard
8174 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8177 \begin_layout Standard
8185 <cell alignment="center" valignment="top" topline="true" usebox="none">
8188 \begin_layout Standard
8194 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8197 \begin_layout Standard
8205 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8208 \begin_layout Standard
8216 <cell alignment="center" valignment="top" topline="true" usebox="none">
8219 \begin_layout Standard
8225 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8228 \begin_layout Standard
8236 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8239 \begin_layout Standard
8247 <cell alignment="center" valignment="top" topline="true" usebox="none">
8250 \begin_layout Standard
8256 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8259 \begin_layout Standard
8266 <row bottomline="true">
8267 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8270 \begin_layout Standard
8278 <cell alignment="center" valignment="top" topline="true" usebox="none">
8281 \begin_layout Standard
8287 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8290 \begin_layout Standard
8297 <row bottomline="true" endlastfoot="true">
8298 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
8301 \begin_layout Standard
8307 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8310 \begin_layout Standard
8316 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8319 \begin_layout Standard
8333 \begin_layout Section
8334 Special Longtable Issues
8335 \begin_inset LatexCommand label
8336 name "sec:Special-Longtable-Issues"
8343 \begin_layout Subsection
8344 Longtable Calculation
8345 \begin_inset LatexCommand index
8346 name "Longtables ! Calculation"
8353 \begin_layout Standard
8354 LaTeX calculates the height of table pages and their page breaks using so
8356 Chunks are pieces of the tables that are at once in LaTeX's memory.
8357 The default value is historically set to only 20 table rows.
8358 If you are using longtables with many pages this may slow down the creation
8360 You can safely increase the chunk size to values of 100-1000 by adding
8361 this command line to your document preamble:
8364 \begin_layout Standard
8369 setcounter{LTchunksize}{100}
8372 \begin_layout Subsection
8373 Floats and Longtables
8374 \begin_inset LatexCommand index
8375 name "Longtables ! Floats"
8382 \begin_layout Standard
8383 There might be problems when a float appears on the same page where a longtable
8385 To avoid such situation, add the command
8391 as ERT before your longtable.
8394 \begin_layout Subsection
8396 \begin_inset LatexCommand index
8397 name "Longtables ! Forced Page Breaks"
8404 \begin_layout Standard
8405 By default tables are only broken between rows.
8406 If you have a cell with multiples lines and want to have a page break within
8407 the cell, insert the new line command
8408 \begin_inset Quotes eld
8420 \begin_inset Quotes erd
8423 as ERT at this point of the cell where it should be broken.
8432 command you have to insert in ERT so many
8433 \begin_inset Quotes eld
8441 \begin_inset Quotes erd
8444 characters like the number of the following table columns.
8449 is the character to separate table cells.
8450 Write in ERT after each
8454 the content of the corresponding following cell and delete the content
8465 command, insert so many
8469 characters like the number of table columns before the current column.
8470 In Table\InsetSpace ~
8472 \begin_inset LatexCommand ref
8473 reference "tab:ForcedPagebreak"
8477 the cell that should be broken is in the second column followed by another
8479 Therefore the following command was inserted in the cell as ERT behind
8481 \begin_inset Quotes eld
8489 \begin_inset Quotes erd
8495 \begin_layout Standard
8507 \begin_layout Standard
8509 \begin_inset Quotes eld
8513 \begin_inset Quotes erd
8516 in the third columns of the row was deleted.
8517 If your footer row of the longtable has for a certain reason no upper line
8518 but you would have a horizontal line where the cell is broken, use this
8522 \begin_layout Standard
8536 \begin_layout Standard
8537 When the cell to be broken is in the last column, the command
8540 \begin_layout Standard
8547 parf\SpecialChar \textcompwordmark{}
8551 \begin_layout Standard
8552 must be inserted as ERT at the beginning of the cell.
8553 This assures that the part of the cell that will be displayed on the new
8554 page appears with the full width.
8557 \begin_layout Standard
8559 \begin_inset Tabular
8560 <lyxtabular version="3" rows="39" columns="3">
8561 <features islongtable="true">
8562 <column alignment="left" valignment="top" leftline="true" width="0cm">
8563 <column alignment="left" valignment="top" rightline="true" width="3cm">
8564 <column alignment="right" valignment="top" rightline="true" width="0pt">
8565 <row endfirsthead="true">
8566 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8569 \begin_layout Standard
8570 \begin_inset Caption
8572 \begin_layout Standard
8573 Table with forced page break in table cell
8574 \begin_inset LatexCommand label
8575 name "tab:ForcedPagebreak"
8583 \begin_layout Standard
8584 Table with forced page break in table cell
8598 \begin_layout Standard
8614 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8617 \begin_layout Standard
8623 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8626 \begin_layout Standard
8633 <row topline="true" bottomline="true" endfirsthead="true">
8634 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8637 \begin_layout Standard
8640 Example Phone List (ignore the names)
8645 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8648 \begin_layout Standard
8654 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8657 \begin_layout Standard
8664 <row topline="true" bottomline="true" endfirsthead="true">
8665 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8668 \begin_layout Standard
8676 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8679 \begin_layout Standard
8685 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8688 \begin_layout Standard
8697 <row bottomline="true" endhead="true">
8698 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8701 \begin_layout Standard
8705 \begin_layout Standard
8709 caption*{Continued table with forced page break in table cell}
8723 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8726 \begin_layout Standard
8732 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8735 \begin_layout Standard
8742 <row topline="true" bottomline="true" endhead="true">
8743 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8746 \begin_layout Standard
8754 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8757 \begin_layout Standard
8763 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8766 \begin_layout Standard
8773 <row topline="true" bottomline="true" endhead="true">
8774 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8777 \begin_layout Standard
8785 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8788 \begin_layout Standard
8794 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8797 \begin_layout Standard
8806 <row topline="true" bottomline="true" endfoot="true">
8807 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
8810 \begin_layout Standard
8811 continued on next page
8816 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8819 \begin_layout Standard
8825 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8828 \begin_layout Standard
8836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8839 \begin_layout Standard
8847 <cell alignment="center" valignment="top" topline="true" usebox="none">
8850 \begin_layout Standard
8856 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8859 \begin_layout Standard
8867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8870 \begin_layout Standard
8878 <cell alignment="center" valignment="top" topline="true" usebox="none">
8881 \begin_layout Standard
8887 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8890 \begin_layout Standard
8898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8901 \begin_layout Standard
8909 <cell alignment="center" valignment="top" topline="true" usebox="none">
8912 \begin_layout Standard
8918 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8921 \begin_layout Standard
8929 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8932 \begin_layout Standard
8940 <cell alignment="center" valignment="top" topline="true" usebox="none">
8943 \begin_layout Standard
8949 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8952 \begin_layout Standard
8960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8963 \begin_layout Standard
8971 <cell alignment="center" valignment="top" topline="true" usebox="none">
8974 \begin_layout Standard
8980 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8983 \begin_layout Standard
8991 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8994 \begin_layout Standard
9002 <cell alignment="center" valignment="top" topline="true" usebox="none">
9005 \begin_layout Standard
9011 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9014 \begin_layout Standard
9022 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9025 \begin_layout Standard
9033 <cell alignment="center" valignment="top" topline="true" usebox="none">
9036 \begin_layout Standard
9042 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9045 \begin_layout Standard
9053 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9056 \begin_layout Standard
9064 <cell alignment="center" valignment="top" topline="true" usebox="none">
9067 \begin_layout Standard
9073 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9076 \begin_layout Standard
9084 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9087 \begin_layout Standard
9095 <cell alignment="center" valignment="top" topline="true" usebox="none">
9098 \begin_layout Standard
9104 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9107 \begin_layout Standard
9115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9118 \begin_layout Standard
9126 <cell alignment="center" valignment="top" topline="true" usebox="none">
9129 \begin_layout Standard
9135 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9138 \begin_layout Standard
9146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9149 \begin_layout Standard
9157 <cell alignment="center" valignment="top" topline="true" usebox="none">
9160 \begin_layout Standard
9166 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9169 \begin_layout Standard
9177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9180 \begin_layout Standard
9188 <cell alignment="center" valignment="top" topline="true" usebox="none">
9191 \begin_layout Standard
9197 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9200 \begin_layout Standard
9208 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9211 \begin_layout Standard
9219 <cell alignment="center" valignment="top" topline="true" usebox="none">
9222 \begin_layout Standard
9228 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9231 \begin_layout Standard
9239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9242 \begin_layout Standard
9250 <cell alignment="center" valignment="top" topline="true" usebox="none">
9253 \begin_layout Standard
9259 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9262 \begin_layout Standard
9270 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9273 \begin_layout Standard
9281 <cell alignment="center" valignment="top" topline="true" usebox="none">
9284 \begin_layout Standard
9290 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9293 \begin_layout Standard
9301 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9304 \begin_layout Standard
9312 <cell alignment="center" valignment="top" topline="true" usebox="none">
9315 \begin_layout Standard
9321 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9324 \begin_layout Standard
9332 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9335 \begin_layout Standard
9343 <cell alignment="center" valignment="top" topline="true" usebox="none">
9346 \begin_layout Standard
9352 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9355 \begin_layout Standard
9363 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9366 \begin_layout Standard
9374 <cell alignment="center" valignment="top" topline="true" usebox="none">
9377 \begin_layout Standard
9383 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9386 \begin_layout Standard
9394 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9397 \begin_layout Standard
9405 <cell alignment="center" valignment="top" topline="true" usebox="none">
9408 \begin_layout Standard
9414 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9417 \begin_layout Standard
9425 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9428 \begin_layout Standard
9436 <cell alignment="center" valignment="top" topline="true" usebox="none">
9439 \begin_layout Standard
9445 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9448 \begin_layout Standard
9456 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9459 \begin_layout Standard
9467 <cell alignment="center" valignment="top" topline="true" usebox="none">
9470 \begin_layout Standard
9476 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9479 \begin_layout Standard
9487 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9490 \begin_layout Standard
9498 <cell alignment="center" valignment="top" topline="true" usebox="none">
9501 \begin_layout Standard
9507 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9510 \begin_layout Standard
9518 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9521 \begin_layout Standard
9529 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9532 \begin_layout Standard
9534 Fürst von Montecompatri, 11.
9535 Fürst von Sulmona und Vivaro, 10.
9536 Fürst von Rossano, 5.
9537 Herzog von Canemorte, 11.
9538 Herzog von Palombara, 5.
9539 Herzog von Castelchiodato,
9543 \begin_layout Standard
9552 \begin_layout Standard
9560 Herzog von Poggionativo, 11.
9561 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
9562 Graf von Valinfreda, 11.
9563 Baron von Cropalati, 11.
9564 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
9569 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9572 \begin_layout Standard
9580 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9583 \begin_layout Standard
9591 <cell alignment="center" valignment="top" topline="true" usebox="none">
9594 \begin_layout Standard
9600 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9603 \begin_layout Standard
9611 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9614 \begin_layout Standard
9622 <cell alignment="center" valignment="top" topline="true" usebox="none">
9625 \begin_layout Standard
9631 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9634 \begin_layout Standard
9642 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9645 \begin_layout Standard
9653 <cell alignment="center" valignment="top" topline="true" usebox="none">
9656 \begin_layout Standard
9662 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9665 \begin_layout Standard
9673 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9676 \begin_layout Standard
9684 <cell alignment="center" valignment="top" topline="true" usebox="none">
9687 \begin_layout Standard
9693 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9696 \begin_layout Standard
9704 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9707 \begin_layout Standard
9715 <cell alignment="center" valignment="top" topline="true" usebox="none">
9718 \begin_layout Standard
9724 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9727 \begin_layout Standard
9735 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9738 \begin_layout Standard
9746 <cell alignment="center" valignment="top" topline="true" usebox="none">
9749 \begin_layout Standard
9755 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9758 \begin_layout Standard
9766 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9769 \begin_layout Standard
9777 <cell alignment="center" valignment="top" topline="true" usebox="none">
9780 \begin_layout Standard
9786 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9789 \begin_layout Standard
9796 <row bottomline="true">
9797 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9800 \begin_layout Standard
9808 <cell alignment="center" valignment="top" topline="true" usebox="none">
9811 \begin_layout Standard
9817 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9820 \begin_layout Standard
9827 <row endlastfoot="true">
9828 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9831 \begin_layout Standard
9837 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9840 \begin_layout Standard
9846 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9849 \begin_layout Standard
9863 \begin_layout Section
9864 Multiple Lines Columns and Rows
9867 \begin_layout Subsection
9868 Multiple Lines in Table Cells
9869 \begin_inset LatexCommand label
9870 name "sub:Multiple-Lines-in"
9875 \begin_inset LatexCommand index
9876 name "Multiple Lines in Table Cells"
9881 \begin_inset LatexCommand index
9882 name "Table ! Linebreaks"
9889 \begin_layout Standard
9891 \begin_inset Float table
9897 \begin_layout Standard
9898 \begin_inset Caption
9900 \begin_layout Standard
9901 \begin_inset LatexCommand label
9902 name "tab:Table-with-multiple"
9906 Table with multiple lines in cells
9914 \begin_layout Standard
9916 \begin_inset Tabular
9917 <lyxtabular version="3" rows="3" columns="3">
9919 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
9920 <column alignment="center" valignment="middle" leftline="true" width="0">
9921 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
9922 <row topline="true">
9923 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9926 \begin_layout Standard
9931 \begin_layout Standard
9945 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9948 \begin_layout Standard
9954 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9957 \begin_layout Standard
9964 <row topline="true">
9965 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9968 \begin_layout Standard
9974 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9977 \begin_layout Standard
9983 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9986 \begin_layout Standard
9993 <row topline="true" bottomline="true">
9994 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9997 \begin_layout Standard
10003 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10006 \begin_layout Standard
10012 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10015 \begin_layout Standard
10034 \begin_layout Standard
10035 Adjusting a fixed width for a column, enables to enter text as a paragraph
10036 with multiple lines and hyphenations.
10039 \begin_layout Standard
10040 To produce Table\InsetSpace ~
10042 \begin_inset LatexCommand ref
10043 reference "tab:Table-with-multiple"
10047 , create a 3×3 table, mark the first cell and right-click on it.
10048 In the appearing table dialog we set a cell width of 2.5\InsetSpace \thinspace{}
10049 cm and choose centered
10050 for the vertical and horizontal alignment.
10051 The vertical alignment is used for all cells of the row.
10052 As our text is smaller than than 2.5\InsetSpace \thinspace{}
10053 cm, only one line will appear.
10054 To get two lines, we add a line break with the command
10057 \begin_layout Standard
10065 \begin_layout Standard
10067 If the text is wider than the set cell width it will automatically be broken
10071 \begin_layout Standard
10072 If you have a long word in a cell with a fixed width, it cannot be hyphenated
10073 by LaTeX if it is the first entry.
10074 Therefore you need to insert something, to make the word not being the
10075 first entry: Add the command
10078 \begin_layout Standard
10086 \begin_layout Standard
10087 in ERT before the word.
10088 As the space is zero, it doesn't change the output.
10091 \begin_inset LatexCommand ref
10092 reference "tab:Table-with-and"
10099 \begin_layout Standard
10100 \begin_inset Float table
10106 \begin_layout Standard
10107 \begin_inset Caption
10109 \begin_layout Standard
10110 \begin_inset LatexCommand label
10111 name "tab:Table-with-and"
10115 Table with and without hyphenation
10123 \begin_layout Standard
10127 \begin_inset Tabular
10128 <lyxtabular version="3" rows="3" columns="3">
10130 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10131 <column alignment="center" valignment="middle" leftline="true" width="0">
10132 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
10133 <row topline="true">
10134 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10137 \begin_layout Standard
10138 verylongtablecellword
10143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10146 \begin_layout Standard
10152 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10155 \begin_layout Standard
10162 <row topline="true">
10163 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10166 \begin_layout Standard
10172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10175 \begin_layout Standard
10181 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10184 \begin_layout Standard
10191 <row topline="true" bottomline="true">
10192 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10195 \begin_layout Standard
10201 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10204 \begin_layout Standard
10210 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10213 \begin_layout Standard
10227 \begin_inset Tabular
10228 <lyxtabular version="3" rows="3" columns="3">
10230 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10231 <column alignment="center" valignment="middle" leftline="true" width="0">
10232 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
10233 <row topline="true">
10234 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10237 \begin_layout Standard
10241 \begin_layout Standard
10250 verylongtablecellword
10255 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10258 \begin_layout Standard
10264 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10267 \begin_layout Standard
10274 <row topline="true">
10275 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10278 \begin_layout Standard
10284 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10287 \begin_layout Standard
10293 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10296 \begin_layout Standard
10303 <row topline="true" bottomline="true">
10304 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10307 \begin_layout Standard
10313 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10316 \begin_layout Standard
10322 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10325 \begin_layout Standard
10346 \begin_layout Standard
10352 \begin_layout Subsection
10354 \begin_inset LatexCommand label
10355 name "sub:Multicolumns"
10360 \begin_inset LatexCommand index
10361 name "Multicolumns"
10366 \begin_inset LatexCommand index
10367 name "Table ! Multicolumns"
10374 \begin_layout Subsubsection
10378 \begin_layout Standard
10379 To span a cell over multiple columns, mark as much cells within a line that
10380 should be one spanned cell and use either the table-toolbar button
10381 \begin_inset Graphics
10382 filename ../images/tabular-feature_multicolumn.xpm
10384 scaleBeforeRotation
10390 Edit\SpecialChar \menuseparator
10391 Table\SpecialChar \menuseparator
10394 , or right click on the marked cells and choose multicolumn in the appearing
10395 table dialog under the tab
10402 \begin_layout Standard
10403 Multicolumns have there own cell settings.
10404 That means changing cell borders, cell alignment, and the width only affects
10406 Here is an example table with a multicolumn cell in the first row and one
10407 in the last row without the upper border:
10410 \begin_layout Standard
10412 \begin_inset Tabular
10413 <lyxtabular version="3" rows="3" columns="4">
10414 <features firstHeadTopDL="true" firstHeadBottomDL="true">
10415 <column alignment="center" valignment="top" leftline="true" width="0pt">
10416 <column alignment="center" valignment="middle" leftline="true" width="0">
10417 <column alignment="center" valignment="top" leftline="true" width="0in">
10418 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
10419 <row topline="true" bottomline="true">
10420 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10423 \begin_layout Standard
10429 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
10432 \begin_layout Standard
10438 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10441 \begin_layout Standard
10447 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10450 \begin_layout Standard
10457 <row topline="true">
10458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10461 \begin_layout Standard
10476 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10479 \begin_layout Standard
10485 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10488 \begin_layout Standard
10494 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10497 \begin_layout Standard
10504 <row topline="true" bottomline="true">
10505 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10508 \begin_layout Standard
10514 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10517 \begin_layout Standard
10523 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10526 \begin_layout Standard
10532 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10535 \begin_layout Standard
10549 \begin_layout Subsubsection
10550 Multicolumn Calculations
10551 \begin_inset LatexCommand label
10552 name "sub:Multicolumn-Calculations"
10557 \begin_inset LatexCommand index
10558 name "Multicolumns ! Calculations"
10565 \begin_layout Standard
10566 LyX supports multicolumns directly, but we have to take notice of the cell
10567 width of the columns spanned by the multicolumn cell.
10570 \begin_layout Standard
10571 \begin_inset Float table
10576 \begin_layout Standard
10577 \begin_inset Caption
10579 \begin_layout Standard
10580 \begin_inset LatexCommand label
10581 name "tab:Table-with-centered"
10585 Table with centered multicolumn text above two columns that have exactly
10586 half the width of the multicolumn cell
10587 \begin_inset OptArg
10590 \begin_layout Standard
10591 Perfect multicolumn table
10604 \begin_layout Standard
10606 \begin_inset Tabular
10607 <lyxtabular version="3" rows="3" columns="3">
10609 <column alignment="center" valignment="middle" leftline="true" width="0" special=">{\centering}m{1.25cm-6.2pt}">
10610 <column alignment="center" valignment="middle" leftline="true" width="0">
10611 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10612 <row topline="true">
10613 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
10616 \begin_layout Standard
10617 multiple lines multicolumn
10622 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10625 \begin_layout Standard
10631 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10634 \begin_layout Standard
10641 <row topline="true">
10642 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10645 \begin_layout Standard
10651 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10654 \begin_layout Standard
10660 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10663 \begin_layout Standard
10670 <row topline="true" bottomline="true">
10671 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10674 \begin_layout Standard
10680 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10683 \begin_layout Standard
10689 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10692 \begin_layout Standard
10711 \begin_layout Standard
10712 To create for example Table\InsetSpace ~
10714 \begin_inset LatexCommand ref
10715 reference "tab:Table-with-centered"
10719 , mark the first two cells in the first row of a 3×3 table and right-click
10721 Now choose for this cell
10729 and a width of 2.5\InsetSpace \thinspace{}
10730 cm in the table dialog.
10731 The spanned columns should have exactly half the width of the multicolumn
10732 cell, so that you would adjust a width of 1.25\InsetSpace \thinspace{}
10733 cm for the first column.
10734 The second column has then automatically a width of 1.25\InsetSpace \thinspace{}
10736 width - width of first column).
10737 This was done for Table\InsetSpace ~
10739 \begin_inset LatexCommand ref
10740 reference "tab:Table-without-half"
10747 \begin_layout Standard
10748 \begin_inset Float table
10753 \begin_layout Standard
10754 \begin_inset Caption
10756 \begin_layout Standard
10757 \begin_inset LatexCommand label
10758 name "tab:Table-without-half"
10762 Table where the spanned table columns have not exactly half the width of
10763 the multicolumn cell
10764 \begin_inset OptArg
10767 \begin_layout Standard
10768 Imperfect multicolumn table
10781 \begin_layout Standard
10783 \begin_inset Tabular
10784 <lyxtabular version="3" rows="3" columns="3">
10786 <column alignment="center" valignment="top" leftline="true" width="1.25cm">
10787 <column alignment="center" valignment="top" leftline="true" width="0">
10788 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10789 <row topline="true" bottomline="true">
10790 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
10793 \begin_layout Standard
10794 multiple lines multicolumn
10799 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10802 \begin_layout Standard
10808 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10811 \begin_layout Standard
10818 <row topline="true">
10819 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10822 \begin_layout Standard
10828 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10831 \begin_layout Standard
10837 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10840 \begin_layout Standard
10847 <row topline="true" bottomline="true">
10848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10851 \begin_layout Standard
10857 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10860 \begin_layout Standard
10866 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10869 \begin_layout Standard
10888 \begin_layout Standard
10889 You can see that the first column has not the half width of the multicolumn
10890 cell, it is a bit bigger.
10891 The reason is that the given width of a cell
10892 \begin_inset Formula $W_{g}$
10895 is not its total width
10896 \begin_inset Formula $W_{\mathrm{tot}}$
10899 because a cell is always a bit larger than its given width.
10900 Appendix\InsetSpace ~
10902 \begin_inset LatexCommand eqref
10903 reference "cha:Explanation-of-Equation"
10907 explains it in detail.
10910 \begin_layout Standard
10911 The needed given width
10912 \begin_inset Formula $W_{g\, n}$
10919 columns are spanned can be calculated, so that each column has a total
10921 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
10925 \begin_inset Formula \begin{equation}
10926 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
10933 \begin_layout Standard
10934 In our case we have
10935 \begin_inset Formula $n=2$
10939 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
10942 cm and the default values for the lengths, so that equation
10943 \begin_inset LatexCommand ref
10949 \begin_inset Formula \begin{equation}
10950 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
10957 \begin_layout Standard
10958 To enable calculations in LaTeX, the LaTeX-package
10962 must be loaded with the document preamble line
10963 \begin_inset LatexCommand index
10964 name "LaTeX-packages ! calc"
10971 \begin_layout Standard
10979 \begin_layout Standard
10980 LyX does not allow to calculate lengths in the width-field of the table
10982 Therefore you have to format the column by inserting a LaTeX-argument in
10984 Here is an overview about the arguments:
10987 \begin_layout Itemize
10992 creates cell with a fixed width, its text is vertically top-aligned
10995 \begin_layout Itemize
11000 creates cell with a fixed width, its text is vertically centered
11003 \begin_layout Itemize
11008 creates cell with a fixed width, its text is vertically bottom-aligned
11011 \begin_layout Standard
11012 By entering a LaTeX-argument, all cell settings set in the table dialog
11016 \begin_layout Standard
11017 \begin_inset Note Greyedout
11020 \begin_layout Standard
11025 Due to a bug, LyX shows the overwritten settings anyway.
11033 \begin_layout Standard
11034 As the text should be horizontally centered, the command
11041 You can now enter the following LaTeX-argument for the first spanned column:
11044 \begin_layout Standard
11049 centering}m{1.25cm-6.2pt}
11052 \begin_layout Standard
11057 means, that the commands inside the braces are applied before the cell
11061 \begin_layout Standard
11062 Although we have chosen centered alignment for the text of the multicolumn
11063 cell, it is still left aligned.
11064 This is because LyX only applies the alignment to single columns.
11065 So we have to use for the multicolumn the LaTeX-argument
11068 \begin_layout Standard
11076 \begin_layout Subsection
11078 \begin_inset LatexCommand index
11084 \begin_inset LatexCommand index
11085 name "Table ! Multirows"
11090 \begin_inset LatexCommand index
11091 name "LaTeX-packages ! multirow"
11098 \begin_layout Standard
11099 In contrary to multicolumns multirows are not yet supported by LyX so a
11100 bit of ERT needs to be used.
11101 To use multirows load the LaTeX-package
11105 in your document preamble with the command
11108 \begin_layout Standard
11113 usepackage{multirow}
11116 \begin_layout Standard
11117 Multirows are created with the command
11120 \begin_layout Standard
11125 multirow{number of rows}{cell width}{cell entry}
11128 \begin_layout Standard
11129 To create the following table:
11132 \begin_layout Standard
11137 \begin_layout Standard
11151 \begin_inset Tabular
11152 <lyxtabular version="3" rows="3" columns="3">
11154 <column alignment="center" valignment="top" leftline="true" width="0">
11155 <column alignment="center" valignment="top" leftline="true" width="0">
11156 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
11157 <row topline="true">
11158 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11161 \begin_layout Standard
11167 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11170 \begin_layout Standard
11176 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11179 \begin_layout Standard
11186 <row topline="true">
11187 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11190 \begin_layout Standard
11194 \begin_layout Standard
11198 multirow{2}{2.5cm}{
11207 \begin_layout Standard
11219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11222 \begin_layout Standard
11228 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11231 \begin_layout Standard
11238 <row topline="true" bottomline="true">
11239 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11242 \begin_layout Standard
11248 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11251 \begin_layout Standard
11257 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11260 \begin_layout Standard
11275 \begin_layout Standard
11291 \begin_layout Standard
11292 create a 3×3 table.
11293 To get rid of the line above the last cell in the first column, the cell
11294 is marked as multicolumn and the upper border is unset.
11295 The multirow is now created in the second row of the first column by inserting
11299 \begin_layout Standard
11304 multirow{2}{2.5cm}{
11307 \begin_layout Standard
11309 According to the command parameters the multirow spans now two rows and
11310 has a width of 2.5\InsetSpace \thinspace{}
11312 The content of the multirow cell follows outside the ERT box and the command
11313 is finished with a right brace
11317 in another ERT-box behind the text.
11320 \begin_layout Standard
11327 left-aligns its content by default.
11328 To override the default, renew the command
11337 \begin_layout Standard
11349 \begin_layout Standard
11350 in ERT in the document preamble.
11351 Then all entries of multirow cells in the document are centered.
11352 If centering is only needed for several tables, you can renew the command
11353 in an ERT box just before the table instead of the preamble.
11354 If the text should be right-aligned, replace
11367 To return to left-alignment
11376 \begin_layout Section
11378 \begin_inset LatexCommand label
11379 name "sec:Formal-Tables"
11384 \begin_inset LatexCommand index
11385 name "Table ! Formal"
11392 \begin_layout Standard
11393 Tables are often typeset in books similar to Table\InsetSpace ~
11395 \begin_inset LatexCommand ref
11396 reference "tab:Example-booktabs-table"
11401 This kind of tables is called
11402 \begin_inset Quotes eld
11410 \begin_inset Quotes erd
11414 To make a table a formal table use the option
11422 tab of the table dialog.
11425 \begin_layout Standard
11426 \begin_inset Float table
11432 \begin_layout Standard
11433 \begin_inset Caption
11435 \begin_layout Standard
11436 \begin_inset LatexCommand label
11437 name "tab:Example-booktabs-table"
11441 Example booktabs-table
11449 \begin_layout Standard
11451 \begin_inset Tabular
11452 <lyxtabular version="3" rows="8" columns="4">
11453 <features booktabs="true">
11454 <column alignment="center" valignment="top" rightline="true" width="0">
11455 <column alignment="center" valignment="top" width="0">
11456 <column alignment="center" valignment="top" width="0">
11457 <column alignment="center" valignment="top" width="0">
11458 <row topline="true">
11459 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11462 \begin_layout Standard
11468 <cell alignment="center" valignment="top" topline="true" usebox="none">
11471 \begin_layout Standard
11473 \begin_inset Formula $\,$
11481 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
11484 \begin_layout Standard
11486 \begin_inset Formula $\,$
11494 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11497 \begin_layout Standard
11505 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11508 \begin_layout Standard
11512 \begin_layout Standard
11525 \begin_layout Standard
11534 Detector thickness [µm]
11539 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11542 \begin_layout Standard
11548 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11551 \begin_layout Standard
11557 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11560 \begin_layout Standard
11567 <row topline="true">
11568 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11571 \begin_layout Standard
11577 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11580 \begin_layout Standard
11586 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11589 \begin_layout Standard
11595 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11598 \begin_layout Standard
11605 <row topspace="default">
11606 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11609 \begin_layout Standard
11610 Spatial resolution [µm]
11615 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11618 \begin_layout Standard
11624 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11627 \begin_layout Standard
11633 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11636 \begin_layout Standard
11643 <row topspace="default">
11644 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11647 \begin_layout Standard
11649 \begin_inset Formula $f_{\mathrm{max}}$
11657 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11660 \begin_layout Standard
11666 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11669 \begin_layout Standard
11675 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11678 \begin_layout Standard
11685 <row topspace="default">
11686 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11689 \begin_layout Standard
11693 \begin_layout Standard
11697 cmidrule(l{10pt}){1-1}
11702 LSF-spatial resolution
11707 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11710 \begin_layout Standard
11716 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11719 \begin_layout Standard
11725 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11728 \begin_layout Standard
11736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11739 \begin_layout Standard
11745 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11748 \begin_layout Standard
11754 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11757 \begin_layout Standard
11763 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11766 \begin_layout Standard
11773 <row bottomline="true">
11774 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11777 \begin_layout Standard
11783 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11786 \begin_layout Standard
11792 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11795 \begin_layout Standard
11801 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11804 \begin_layout Standard
11823 \begin_layout Standard
11824 Spaces to table rows can be added using the
11828 tab of the table dialog as described in section\InsetSpace ~
11830 \begin_inset LatexCommand ref
11831 reference "sub:Row-Spacing"
11838 \begin_layout Standard
11839 In contrary to normal tables, formal tables have no vertical table lines.
11840 The horizontal table lines can be set like for normal tables but they appear
11841 with different width in the output:
11843 The first and the last table line have
11844 a default width of 0.08\InsetSpace \thinspace{}
11845 em while the other lines have a default width of
11846 0.05\InsetSpace \thinspace{}
11850 \begin_layout Standard
11851 The default widths can be changed with the following preamble lines
11854 \begin_layout Standard
11874 \begin_layout Standard
11875 This example is for the first line, the so called
11880 If you want to change the width for the last line, replace
11889 To change the width for the other lines replace
11898 You can use all units listed in appendix\InsetSpace ~
11900 \begin_inset LatexCommand ref
11901 reference "cha:Units-available-in"
11908 \begin_layout Standard
11909 Lines that don't span over all table columns can be created by setting a
11910 table line for multicolumn cells.
11911 LyX will then internally use the command
11917 to create this line.
11921 \begin_layout Standard
11926 cmidrule[width](trim){startcol-endcol}
11929 \begin_layout Standard
11936 are are currently not supported by LyX so you have to use ERT to be able
11944 s can manually be created by inserting the command as ERT as first cell
11945 entry of the first cell of a row.
11946 The line is then drawn in the output above the current row.
11949 \begin_layout Standard
11950 The default for the width is 0.03\InsetSpace \thinspace{}
11952 Startcol is the number of the column where the line starts and endcol the
11953 column number where the line ends.
11954 The endcol always needs to be specified, also when the line should span
11956 The optional parameter trim could be either
11964 where the trimwidth is also optional.
11965 Using for example the parameter
11969 means that the line is trimmed from its left end by 2\InsetSpace \thinspace{}
11971 If you don't specify the trimwidth the lines are trimmed by the default
11972 of 0.5\InsetSpace \thinspace{}
11976 \begin_layout Standard
11977 \begin_inset VSpace bigskip
11982 \begin_inset LatexCommand ref
11983 reference "tab:Example-booktabs-table"
11987 was created using the commands
11990 \begin_layout Standard
12000 \begin_layout Standard
12001 at the beginning of the in the second row and
12004 \begin_layout Standard
12009 cmidrule(l{10pt}){1-1}
12012 \begin_layout Standard
12016 \begin_layout Standard
12017 \begin_inset VSpace bigskip
12023 \begin_layout Standard
12024 You might want to have overlapping
12030 s like in Table\InsetSpace ~
12032 \begin_inset LatexCommand ref
12033 reference "tab:Special-booktabs-table"
12038 This can be achieved with the ERT command
12041 \begin_layout Standard
12049 \begin_layout Standard
12050 The command that was used for the second row of Table\InsetSpace ~
12052 \begin_inset LatexCommand ref
12053 reference "tab:Special-booktabs-table"
12060 \begin_layout Standard
12074 \begin_layout Standard
12075 The command for the sixth row is
12078 \begin_layout Standard
12090 \begin_layout Standard
12091 \begin_inset VSpace bigskip
12097 \begin_layout Standard
12098 If you are anyway not satisfied with the border line spacing, you can use
12099 the following command to produce lines that span over all table columns
12104 \begin_layout Standard
12109 specialrule{width}{space above}{space below}
12112 \begin_layout Standard
12113 For more informations about these specialties, we refer to the manual of
12119 \begin_inset LatexCommand cite
12125 \begin_inset LatexCommand index
12126 name "LaTeX-packages ! booktabs"
12133 \begin_layout Standard
12134 \begin_inset Float table
12140 \begin_layout Standard
12141 \begin_inset Caption
12143 \begin_layout Standard
12144 \begin_inset LatexCommand label
12145 name "tab:Special-booktabs-table"
12149 Special booktabs-table
12157 \begin_layout Standard
12159 \begin_inset Tabular
12160 <lyxtabular version="3" rows="8" columns="4">
12161 <features booktabs="true">
12162 <column alignment="center" valignment="top" width="0">
12163 <column alignment="center" valignment="top" width="0">
12164 <column alignment="center" valignment="top" width="0">
12165 <column alignment="center" valignment="top" width="0">
12166 <row topline="true">
12167 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12170 \begin_layout Standard
12176 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12179 \begin_layout Standard
12180 Medipix\InsetSpace \thinspace{}
12186 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
12189 \begin_layout Standard
12190 Medipix\InsetSpace \thinspace{}
12196 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12199 \begin_layout Standard
12207 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12210 \begin_layout Standard
12214 \begin_layout Standard
12227 \begin_layout Standard
12240 \begin_layout Standard
12253 \begin_layout Standard
12262 Detector thickness [µm]
12267 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12270 \begin_layout Standard
12276 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12279 \begin_layout Standard
12285 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12288 \begin_layout Standard
12295 <row topline="true">
12296 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12299 \begin_layout Standard
12305 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12308 \begin_layout Standard
12314 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12317 \begin_layout Standard
12323 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12326 \begin_layout Standard
12333 <row topspace="default">
12334 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12337 \begin_layout Standard
12338 Spatial resolution [µm]
12343 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12346 \begin_layout Standard
12352 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12355 \begin_layout Standard
12361 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12364 \begin_layout Standard
12371 <row topspace="default">
12372 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12375 \begin_layout Standard
12377 \begin_inset Formula $f_{\mathrm{max}}$
12385 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12388 \begin_layout Standard
12394 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12397 \begin_layout Standard
12403 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12406 \begin_layout Standard
12413 <row topline="true">
12414 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12417 \begin_layout Standard
12421 \begin_layout Standard
12434 \begin_layout Standard
12443 LSF-spatial resolution
12448 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12451 \begin_layout Standard
12457 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12460 \begin_layout Standard
12466 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12469 \begin_layout Standard
12477 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12480 \begin_layout Standard
12486 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12489 \begin_layout Standard
12495 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12498 \begin_layout Standard
12504 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12507 \begin_layout Standard
12514 <row bottomline="true">
12515 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12518 \begin_layout Standard
12524 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12527 \begin_layout Standard
12533 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12536 \begin_layout Standard
12542 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12545 \begin_layout Standard
12564 \begin_layout Section
12565 Vertical Table Alignment
12566 \begin_inset LatexCommand index
12567 name "Table ! Alignment"
12574 \begin_layout Standard
12575 To align tables vertically in a text line the table must be inside a box.
12576 The box can then be vertically aligned as described in section\InsetSpace ~
12578 \begin_inset LatexCommand ref
12579 reference "sec:Box-Dialog"
12586 \begin_layout Standard
12587 In the following example the tables are inside a minipage
12591 \begin_layout Standard
12592 Minipages are described in section\InsetSpace ~
12594 \begin_inset LatexCommand ref
12595 reference "sec:Minipages"
12604 box that has a width of 15\InsetSpace \thinspace{}
12608 \begin_layout Itemize
12610 \begin_inset Box Frameless
12619 height_special "totalheight"
12622 \begin_layout Standard
12623 \begin_inset Tabular
12624 <lyxtabular version="3" rows="3" columns="3">
12626 <column alignment="center" valignment="top" leftline="true" width="0">
12627 <column alignment="center" valignment="top" leftline="true" width="0">
12628 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12629 <row topline="true">
12630 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12633 \begin_layout Standard
12639 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12642 \begin_layout Standard
12648 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12651 \begin_layout Standard
12658 <row topline="true">
12659 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12662 \begin_layout Standard
12668 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12671 \begin_layout Standard
12677 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12680 \begin_layout Standard
12687 <row topline="true" bottomline="true">
12688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12691 \begin_layout Standard
12697 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12700 \begin_layout Standard
12706 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12709 \begin_layout Standard
12729 \begin_layout Standard
12741 \begin_inset Box Frameless
12750 height_special "totalheight"
12753 \begin_layout Standard
12754 \begin_inset Tabular
12755 <lyxtabular version="3" rows="3" columns="3">
12757 <column alignment="center" valignment="top" leftline="true" width="0">
12758 <column alignment="center" valignment="top" leftline="true" width="0">
12759 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12760 <row topline="true">
12761 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12764 \begin_layout Standard
12770 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12773 \begin_layout Standard
12779 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12782 \begin_layout Standard
12789 <row topline="true">
12790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12793 \begin_layout Standard
12799 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12802 \begin_layout Standard
12808 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12811 \begin_layout Standard
12818 <row topline="true" bottomline="true">
12819 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12822 \begin_layout Standard
12828 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12831 \begin_layout Standard
12837 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12840 \begin_layout Standard
12860 \begin_layout Standard
12870 \begin_layout Itemize
12872 \begin_inset Box Frameless
12881 height_special "totalheight"
12884 \begin_layout Standard
12885 \begin_inset Tabular
12886 <lyxtabular version="3" rows="3" columns="3">
12888 <column alignment="center" valignment="top" leftline="true" width="0">
12889 <column alignment="center" valignment="top" leftline="true" width="0">
12890 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12891 <row topline="true">
12892 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12895 \begin_layout Standard
12901 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12904 \begin_layout Standard
12910 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12913 \begin_layout Standard
12920 <row topline="true">
12921 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12924 \begin_layout Standard
12930 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12933 \begin_layout Standard
12939 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12942 \begin_layout Standard
12949 <row topline="true" bottomline="true">
12950 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12953 \begin_layout Standard
12959 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12962 \begin_layout Standard
12968 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12971 \begin_layout Standard
12990 \begin_layout Itemize
12992 \begin_inset Box Frameless
13001 height_special "totalheight"
13004 \begin_layout Standard
13005 \begin_inset Tabular
13006 <lyxtabular version="3" rows="3" columns="3">
13008 <column alignment="center" valignment="top" leftline="true" width="0">
13009 <column alignment="center" valignment="top" leftline="true" width="0">
13010 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13011 <row topline="true">
13012 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13015 \begin_layout Standard
13021 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13024 \begin_layout Standard
13030 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13033 \begin_layout Standard
13040 <row topline="true">
13041 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13044 \begin_layout Standard
13050 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13053 \begin_layout Standard
13059 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13062 \begin_layout Standard
13069 <row topline="true" bottomline="true">
13070 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13073 \begin_layout Standard
13079 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13082 \begin_layout Standard
13088 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13091 \begin_layout Standard
13111 \begin_layout Standard
13123 \begin_inset Box Frameless
13132 height_special "totalheight"
13135 \begin_layout Standard
13136 \begin_inset Tabular
13137 <lyxtabular version="3" rows="3" columns="3">
13139 <column alignment="center" valignment="top" leftline="true" width="0">
13140 <column alignment="center" valignment="top" leftline="true" width="0">
13141 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13142 <row topline="true">
13143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13146 \begin_layout Standard
13152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13155 \begin_layout Standard
13161 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13164 \begin_layout Standard
13171 <row topline="true">
13172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13175 \begin_layout Standard
13181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13184 \begin_layout Standard
13190 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13193 \begin_layout Standard
13200 <row topline="true" bottomline="true">
13201 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13204 \begin_layout Standard
13210 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13213 \begin_layout Standard
13219 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13222 \begin_layout Standard
13242 \begin_layout Standard
13252 \begin_layout Standard
13253 As you can see, the content of the first and last table row is not correctly
13254 aligned with the text line where the table is in.
13255 To get this alignment, the minipage box must be set into a raisebox
13259 \begin_layout Standard
13260 Raiseboxes are described in section\InsetSpace ~
13262 \begin_inset LatexCommand ref
13263 reference "sub:Vertical-Alignment"
13273 In the example above the second table in the first item is aligned using
13277 \begin_layout Standard
13287 \begin_layout Standard
13289 Behind the box the closing brace
13293 is inserted as ERT.
13294 For the second table in the last item the command
13297 \begin_layout Standard
13307 \begin_layout Standard
13311 \begin_layout Standard
13312 \begin_inset Note Greyedout
13315 \begin_layout Standard
13320 The alignment of the table row content to the surrounding text line is
13322 The needed factor of the
13328 command for this alignment depends on the document font, the font size,
13329 and the table line thickness.
13337 \begin_layout Section
13339 \begin_inset LatexCommand label
13340 name "sec:Colored-Tables"
13345 \begin_inset LatexCommand index
13346 name "Table ! Color"
13353 \begin_layout Subsection
13355 \begin_inset LatexCommand index
13356 name "Table Color ! for Cells"
13361 \begin_inset LatexCommand index
13362 name "Color ! for Table Cells"
13369 \begin_layout Standard
13370 \begin_inset Float table
13376 \begin_layout Standard
13377 \begin_inset Caption
13379 \begin_layout Standard
13380 \begin_inset LatexCommand label
13381 name "tab:Table-colored-without"
13385 Table colored without using the package
13390 \begin_inset OptArg
13393 \begin_layout Standard
13394 Table without colortbl
13407 \begin_layout Standard
13409 \begin_inset Tabular
13410 <lyxtabular version="3" rows="3" columns="3">
13412 <column alignment="center" valignment="top" leftline="true" width="0">
13413 <column alignment="center" valignment="top" leftline="true" width="0">
13414 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13415 <row topline="true">
13416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13419 \begin_layout Standard
13427 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13430 \begin_layout Standard
13438 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13441 \begin_layout Standard
13450 <row topline="true">
13451 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13454 \begin_layout Standard
13462 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13465 \begin_layout Standard
13473 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13476 \begin_layout Standard
13485 <row topline="true" bottomline="true">
13486 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13489 \begin_layout Standard
13497 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13500 \begin_layout Standard
13508 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13511 \begin_layout Standard
13532 \begin_layout Standard
13533 If you only need colored text, mark the cells and choose a color in the
13536 Edit\SpecialChar \menuseparator
13541 This was used to create Table\InsetSpace ~
13543 \begin_inset LatexCommand ref
13544 reference "tab:Table-colored-without"
13549 In any other case you have to use the LaTeX-package
13554 \begin_inset LatexCommand index
13555 name "LaTeX-packages ! colortbl"
13562 \begin_layout Standard
13563 To create colored tables,
13567 must be loaded in the preamble with the line
13570 \begin_layout Standard
13575 usepackage{colortbl}
13578 \begin_layout Standard
13579 The color of a column is adjusted with the command
13582 \begin_layout Standard
13587 columncolor{name of color}
13590 \begin_layout Standard
13596 More about the command
13600 is described in section\InsetSpace ~
13602 \begin_inset LatexCommand ref
13603 reference "sub:Multicolumn-Calculations"
13610 \begin_layout Standard
13611 The following color names are predefined:
13614 \begin_layout Standard
13648 \begin_layout Standard
13649 \begin_inset VSpace medskip
13655 \begin_layout Standard
13656 You can also define your own color with the command
13659 \begin_layout Standard
13664 def\SpecialChar \textcompwordmark{}
13665 inecolor{color name}{color model}{color values}
13668 \begin_layout Standard
13669 The color model can be
13672 \begin_layout Labeling
13673 \labelwidthstring 00.00.0000
13674 cmyk: cyan, magenta, yellow, black
13677 \begin_layout Labeling
13678 \labelwidthstring 00.00.0000
13679 rgb: red, green blue
13682 \begin_layout Labeling
13683 \labelwidthstring 00.00.0000
13687 \begin_layout Standard
13688 and the color values are comma separated numbers between 0 and 1 describing
13689 the factor for the corresponding color of the color model.
13692 \begin_layout Standard
13693 You can e.\InsetSpace \thinspace{}
13699 " in the preamble with
13702 \begin_layout Standard
13707 def\SpecialChar \textcompwordmark{}
13708 inecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
13711 \begin_layout Standard
13719 \begin_layout Standard
13724 def\SpecialChar \textcompwordmark{}
13725 inecolor{lightgray}{gray}{0.8}
13728 \begin_layout Standard
13729 \begin_inset VSpace medskip
13735 \begin_layout Standard
13736 Lines are colored with the command
13739 \begin_layout Standard
13744 rowcolor{name of color}
13747 \begin_layout Standard
13748 and cells are colored with the command
13751 \begin_layout Standard
13756 cellcolor{name of color}
13759 \begin_layout Standard
13760 Both commands are inserted at the beginning of a cell as ERT.
13763 \begin_layout Standard
13764 To color characters in the table, mark the cells and use the LyX menu
13766 Edit\SpecialChar \menuseparator
13771 If a cell contains ERT mark only the characters, otherwise the colored
13772 ERT will cause LaTeX-errors.
13775 \begin_layout Standard
13776 \begin_inset Note Greyedout
13779 \begin_layout Standard
13784 Not all DVI-viewers are able to display self-defined colors.
13792 \begin_layout Standard
13793 \begin_inset VSpace bigskip
13799 \begin_layout Standard
13800 To create Table\InsetSpace ~
13802 \begin_inset LatexCommand ref
13803 reference "tab:Table-colored-using"
13807 do the following: The color of the first column should be
13815 \begin_layout Standard
13820 columncolor{darkgreen}
13825 \begin_layout Standard
13826 as LaTeX-argument for this column.
13827 The first row should be blue, therefore the ERT command
13830 \begin_layout Standard
13838 \begin_layout Standard
13839 is inserted to the first cell of this row.
13840 Note that this overwrites the column color for the first cell.
13841 The last cell of the last row is colored magenta by inserting the ERT command
13844 \begin_layout Standard
13852 \begin_layout Standard
13853 The characters could now be colored using the menu
13855 Edit\SpecialChar \menuseparator
13862 \begin_layout Standard
13863 \begin_inset Float table
13869 \begin_layout Standard
13870 \begin_inset Caption
13872 \begin_layout Standard
13873 \begin_inset LatexCommand label
13874 name "tab:Table-colored-using"
13878 Table colored using the package
13883 \begin_inset OptArg
13886 \begin_layout Standard
13887 Table with colortbl
13900 \begin_layout Standard
13902 \begin_inset Tabular
13903 <lyxtabular version="3" rows="3" columns="3">
13905 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
13906 <column alignment="center" valignment="top" width="0">
13907 <column alignment="center" valignment="top" width="0">
13909 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13912 \begin_layout Standard
13916 \begin_layout Standard
13932 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13935 \begin_layout Standard
13943 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13946 \begin_layout Standard
13956 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13959 \begin_layout Standard
13967 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13970 \begin_layout Standard
13978 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13981 \begin_layout Standard
13991 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13994 \begin_layout Standard
14002 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14005 \begin_layout Standard
14013 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14016 \begin_layout Standard
14020 \begin_layout Standard
14049 \begin_layout Subsection
14051 \begin_inset LatexCommand index
14052 name "Table Color ! for Lines"
14057 \begin_inset LatexCommand index
14058 name "Color ! for Table Lines"
14065 \begin_layout Standard
14066 As described in section\InsetSpace ~
14068 \begin_inset LatexCommand ref
14069 reference "sub:Line-Thickness"
14073 , the line thickness for all lines in a table can be adjusted with the length
14081 It is set to 1.5\InsetSpace \thinspace{}
14082 pt for all tables of this section.
14086 \begin_layout Standard
14092 arrayrulewidth}{1.5pt}
14100 \begin_layout Standard
14101 To color vertical lines for example with green, create the following column
14102 format in the document preamble, according to the description in section\InsetSpace ~
14104 \begin_inset LatexCommand ref
14105 reference "sub:Customized-Format"
14112 \begin_layout Standard
14117 newcolumntype{W}{!{
14124 \begin_layout Standard
14125 For Table\InsetSpace ~
14127 \begin_inset LatexCommand ref
14128 reference "tab:Table-with-vertical-colored"
14136 was used for the last column and
14140 for the other columns.
14143 \begin_layout Standard
14144 If you want to have several colors, define more column formats.
14147 \begin_layout Standard
14148 \begin_inset Float table
14153 \begin_layout Standard
14154 \begin_inset Caption
14156 \begin_layout Standard
14157 \begin_inset LatexCommand label
14158 name "tab:Table-with-vertical-colored"
14162 Table with colored vertical lines
14170 \begin_layout Standard
14172 \begin_inset Tabular
14173 <lyxtabular version="3" rows="3" columns="3">
14175 <column alignment="center" valignment="top" width="0" special="Wc">
14176 <column alignment="center" valignment="top" width="0" special="Wc">
14177 <column alignment="center" valignment="top" width="0" special="WcW">
14178 <row topline="true">
14179 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14182 \begin_layout Standard
14188 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14191 \begin_layout Standard
14197 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14200 \begin_layout Standard
14207 <row topline="true">
14208 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14211 \begin_layout Standard
14217 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14220 \begin_layout Standard
14226 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14229 \begin_layout Standard
14236 <row topline="true" bottomline="true">
14237 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14240 \begin_layout Standard
14246 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14249 \begin_layout Standard
14255 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14258 \begin_layout Standard
14277 \begin_layout Standard
14278 \begin_inset VSpace bigskip
14281 To color horizontal lines for example with red, like in Table\InsetSpace ~
14283 \begin_inset LatexCommand ref
14284 reference "tab:Table-with-horizontal-colored"
14288 , insert these commands in ERT before the table or table float:
14291 \begin_layout Standard
14312 \begin_layout Standard
14323 arrayrulecolor{red}
14327 arrayrulecolor{black}}
14330 \begin_layout Standard
14334 \begin_layout Standard
14345 \begin_layout Standard
14354 \begin_layout Standard
14358 arrayrulecolor{red}
14362 arrayrulecolor{black}}
14368 \begin_inset Float table
14373 \begin_layout Standard
14374 \begin_inset Caption
14376 \begin_layout Standard
14377 \begin_inset LatexCommand label
14378 name "tab:Table-with-horizontal-colored"
14382 Table with colored horizontal lines
14390 \begin_layout Standard
14392 \begin_inset Tabular
14393 <lyxtabular version="3" rows="3" columns="3">
14395 <column alignment="center" valignment="top" leftline="true" width="0">
14396 <column alignment="center" valignment="top" leftline="true" width="0">
14397 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14398 <row topline="true">
14399 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14402 \begin_layout Standard
14408 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14411 \begin_layout Standard
14417 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14420 \begin_layout Standard
14427 <row topline="true">
14428 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14431 \begin_layout Standard
14437 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14440 \begin_layout Standard
14446 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14449 \begin_layout Standard
14456 <row topline="true" bottomline="true">
14457 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14460 \begin_layout Standard
14466 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14469 \begin_layout Standard
14475 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14478 \begin_layout Standard
14497 \begin_layout Standard
14501 \begin_layout Standard
14513 \begin_layout Standard
14514 To return to the default line color black, insert this command in ERT behind
14515 the table or table float:
14518 \begin_layout Standard
14530 \begin_layout Standard
14533 \begin_inset LatexCommand ref
14534 reference "tab:Table-with-colored"
14538 is an example with colored vertical and horizontal lines.
14541 \begin_layout Standard
14542 \begin_inset Float table
14548 \begin_layout Standard
14549 \begin_inset Caption
14551 \begin_layout Standard
14552 \begin_inset LatexCommand label
14553 name "tab:Table-with-colored"
14557 Table with colored lines
14565 \begin_layout Standard
14567 \begin_inset Tabular
14568 <lyxtabular version="3" rows="3" columns="3">
14570 <column alignment="center" valignment="top" width="0" special="Wc">
14571 <column alignment="center" valignment="top" width="0" special="Wc">
14572 <column alignment="center" valignment="top" width="0" special="WcW">
14573 <row topline="true">
14574 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14577 \begin_layout Standard
14583 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14586 \begin_layout Standard
14592 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14595 \begin_layout Standard
14602 <row topline="true">
14603 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14606 \begin_layout Standard
14612 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14615 \begin_layout Standard
14621 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14624 \begin_layout Standard
14631 <row topline="true" bottomline="true" topspace="default">
14632 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14635 \begin_layout Standard
14641 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14644 \begin_layout Standard
14650 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14653 \begin_layout Standard
14672 \begin_layout Standard
14676 \begin_layout Standard
14692 \begin_layout Standard
14696 \begin_layout Standard
14702 arrayrulewidth}{0.4pt}
14710 \begin_layout Section
14711 Table Customization
14712 \begin_inset LatexCommand index
14713 name "Table Customization"
14718 \begin_inset LatexCommand index
14719 name "Table ! Customization"
14726 \begin_layout Subsection
14728 \begin_inset LatexCommand label
14729 name "sub:Row-Spacing"
14734 \begin_inset LatexCommand index
14735 name "Table Customization ! Row Spacing"
14742 \begin_layout Standard
14743 You can add vertical space to table rows in the
14747 tab of the table dialog.
14748 You find there three possibilities:
14751 \begin_layout Description
14754 row will add space above the characters of the table row.
14755 If the table is a formal table
14759 \begin_layout Standard
14760 Formal tables are explained in section\InsetSpace ~
14762 \begin_inset LatexCommand ref
14763 reference "sec:Formal-Tables"
14772 LyX will insert as default 0.5\InsetSpace \thinspace{}
14774 For normal tables the inserted space will unfortunately destroy the vertical
14775 table lines as in the following table:
14776 \begin_inset VSpace medskip
14785 \begin_layout Standard
14797 \begin_inset Tabular
14798 <lyxtabular version="3" rows="3" columns="1">
14800 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14801 <row topline="true">
14802 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14805 \begin_layout Standard
14812 <row topline="true" topspace="3mm">
14813 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14816 \begin_layout Standard
14817 3\InsetSpace \thinspace{}
14818 mm space top of row
14824 <row topline="true" bottomline="true">
14825 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14828 \begin_layout Standard
14845 \begin_layout Standard
14855 \begin_inset VSpace medskip
14860 So inserting space to the top of row for normal tables is only useful when
14861 you don't have vertical lines.
14864 \begin_layout Description
14865 Bottom\InsetSpace ~
14867 row will add space below the characters of the table row.
14868 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
14870 normal tables the default size is 2\InsetSpace \thinspace{}
14874 \begin_layout Description
14875 Between\InsetSpace ~
14876 rows adds space between the current and the following row.
14877 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
14879 For normal tables the inserted space will unfortunately destroy the vertical
14880 table lines as in the following table:
14881 \begin_inset VSpace medskip
14890 \begin_layout Standard
14902 \begin_inset Tabular
14903 <lyxtabular version="3" rows="3" columns="1">
14905 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14906 <row topline="true">
14907 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14910 \begin_layout Standard
14917 <row topline="true" interlinespace="3mm">
14918 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14921 \begin_layout Standard
14922 \begin_inset Formula $\downarrow$
14925 3\InsetSpace \thinspace{}
14926 mm space between row
14927 \begin_inset Formula $\downarrow$
14936 <row topline="true" bottomline="true">
14937 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14940 \begin_layout Standard
14941 \begin_inset Formula $\uparrow$
14944 3\InsetSpace \thinspace{}
14945 mm space between row
14946 \begin_inset Formula $\uparrow$
14965 \begin_layout Standard
14975 \begin_inset VSpace medskip
14980 So inserting space between rows for normal tables is only useful when you
14981 don't have vertical lines.
14984 \begin_layout Standard
14985 \begin_inset VSpace bigskip
14988 When you want to add extra height to all cells of all tables, you can do
14989 this with the following preamble lines:
14992 \begin_layout Standard
14997 @ifundef\SpecialChar \textcompwordmark{}
14998 ined{extrarowheight}
15004 \begin_layout Standard
15015 usepackage{array}}{}
15021 extrarowheight}{height}
15024 \begin_layout Standard
15025 But this has the disadvantage that the cell texts are no longer exactly
15026 vertically centered.
15031 will be loaded automatically by LyX when you use self defined table formats.
15032 To avoid that it is loaded twice the command
15036 @ifundef\SpecialChar \textcompwordmark{}
15039 is used in the above command.)
15042 \begin_layout Subsection
15043 Special Cell Alignment
15044 \begin_inset LatexCommand index
15045 name "Table Customization ! Special Cell Alignment"
15052 \begin_layout Standard
15053 Sometimes it looks better when the cell entries of a column are aligned
15054 with a special character, e.\InsetSpace \thinspace{}
15056 with the decimal separator as in Table\InsetSpace ~
15058 \begin_inset LatexCommand ref
15059 reference "tab:Table-cells-of"
15066 \begin_layout Standard
15067 \begin_inset Float table
15073 \begin_layout Standard
15074 \begin_inset Caption
15076 \begin_layout Standard
15077 \begin_inset LatexCommand label
15078 name "tab:Table-cells-of"
15082 Table cells of a column aligned with the decimal separator.
15090 \begin_layout Standard
15092 \begin_inset Tabular
15093 <lyxtabular version="3" rows="4" columns="2">
15095 <column alignment="right" valignment="top" width="0">
15096 <column alignment="left" valignment="top" width="0" special="@{}l">
15097 <row bottomline="true">
15098 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15101 \begin_layout Standard
15107 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15110 \begin_layout Standard
15118 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15121 \begin_layout Standard
15127 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15130 \begin_layout Standard
15138 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15141 \begin_layout Standard
15147 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15150 \begin_layout Standard
15158 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15161 \begin_layout Standard
15167 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15170 \begin_layout Standard
15189 \begin_layout Standard
15190 This table was created with a 4×2 table.
15191 The heading is a centered multicolumn.
15192 The first column is right-aligned and contains the digits before the decimal
15193 point and the decimal point.
15194 The second column is left aligned and contains the digits after the decimal
15196 To omit the space that is normally between two table columns, use the following
15197 LaTeX-argument for the second column:
15200 \begin_layout Standard
15206 \begin_layout Standard
15209 \begin_inset LatexCommand ref
15210 reference "tab:Several-table-cell"
15214 shows some example alignments.
15215 For the alignment with the relation sign, you must add the second smallest
15216 math-space at the beginning of the last column to get the correct space
15217 surrounding the relation sign.
15220 \begin_layout Standard
15221 \begin_inset Float table
15226 \begin_layout Standard
15227 \begin_inset Caption
15229 \begin_layout Standard
15230 \begin_inset LatexCommand label
15231 name "tab:Several-table-cell"
15235 Several table cell alignments.
15243 \begin_layout Standard
15245 \begin_inset Tabular
15246 <lyxtabular version="3" rows="4" columns="6">
15248 <column alignment="right" valignment="top" width="0">
15249 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15250 <column alignment="right" valignment="top" width="0">
15251 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15252 <column alignment="right" valignment="top" width="0">
15253 <column alignment="left" valignment="top" width="0" special="@{}l">
15254 <row bottomline="true">
15255 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15258 \begin_layout Standard
15264 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15267 \begin_layout Standard
15273 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15276 \begin_layout Standard
15282 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15285 \begin_layout Standard
15291 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15294 \begin_layout Standard
15300 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15303 \begin_layout Standard
15311 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15314 \begin_layout Standard
15320 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15323 \begin_layout Standard
15324 24\InsetSpace \thinspace{}
15330 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15333 \begin_layout Standard
15334 \begin_inset Formula $10\cdot$
15342 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15345 \begin_layout Standard
15346 \begin_inset Formula $10^{\mbox{-}17}$
15354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15357 \begin_layout Standard
15358 \begin_inset Formula $\Gamma(t)\propto$
15366 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15369 \begin_layout Standard
15370 \begin_inset Formula $\:\Upsilon(t)$
15380 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15383 \begin_layout Standard
15389 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15392 \begin_layout Standard
15393 768\InsetSpace \thinspace{}
15399 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15402 \begin_layout Standard
15403 \begin_inset Formula $5.78\cdot$
15411 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15414 \begin_layout Standard
15415 \begin_inset Formula $10^{7}$
15423 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15426 \begin_layout Standard
15427 \begin_inset Formula $A\ne$
15435 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15438 \begin_layout Standard
15439 \begin_inset Formula $\: B_{\mathrm{red}}$
15449 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15452 \begin_layout Standard
15458 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15461 \begin_layout Standard
15462 6\InsetSpace \thinspace{}
15468 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15471 \begin_layout Standard
15473 \begin_inset Formula $33.5\cdot$
15481 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15484 \begin_layout Standard
15485 \begin_inset Formula $10^{4}$
15493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15496 \begin_layout Standard
15497 \begin_inset Formula $\sin(\alpha)\ge$
15505 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15508 \begin_layout Standard
15509 \begin_inset Formula $\:\sin(\beta)$
15530 \begin_layout Standard
15531 \begin_inset VSpace bigskip
15534 There is also the LaTeX-package
15539 \begin_inset LatexCommand index
15540 name "LaTeX-packages ! dcolumn"
15544 that provides table cell alignments.
15545 But this unfortunately treats the cell entries as math and doesn't allow
15546 formulas in table cells: The first column of Table\InsetSpace ~
15548 \begin_inset LatexCommand ref
15549 reference "tab:Several-table-cell"
15557 like the first column in Table\InsetSpace ~
15559 \begin_inset LatexCommand ref
15560 reference "tab:Alignments-when"
15564 and only with some tricks like the expected.
15565 The alignment of the second and third column of Table\InsetSpace ~
15567 \begin_inset LatexCommand ref
15568 reference "tab:Several-table-cell"
15572 is not possible with
15579 \begin_layout Standard
15580 \begin_inset Float table
15586 \begin_layout Standard
15587 \begin_inset Caption
15589 \begin_layout Standard
15590 \begin_inset LatexCommand label
15591 name "tab:Alignments-when"
15595 Alignments when LaTeX-package dcolumn is used.
15596 For all column alignments tricks have to be used to get the output.
15604 \begin_layout Standard
15606 \begin_inset Tabular
15607 <lyxtabular version="3" rows="4" columns="3">
15609 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{-1}">
15610 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{4.9}">
15611 <column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
15612 <row bottomline="true">
15613 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15616 \begin_layout Standard
15622 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15625 \begin_layout Standard
15631 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15634 \begin_layout Standard
15642 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15645 \begin_layout Standard
15646 12x24\InsetSpace \thinspace{}
15652 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15655 \begin_layout Standard
15656 12x24\InsetSpace \thinspace{}
15658 \begin_inset Formula $\mbox{bottles}$
15666 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15669 \begin_layout Standard
15674 \begin_layout Standard
15684 \begin_inset Formula $\mbox{bottles}$
15694 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15697 \begin_layout Standard
15698 1024x768\InsetSpace \thinspace{}
15704 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15707 \begin_layout Standard
15708 1024x768\InsetSpace \thinspace{}
15710 \begin_inset Formula $\mbox{Pixels}$
15718 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15721 \begin_layout Standard
15726 \begin_layout Standard
15736 \begin_inset Formula $\mbox{Pixels}$
15746 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15749 \begin_layout Standard
15750 32x6\InsetSpace \thinspace{}
15756 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15759 \begin_layout Standard
15760 32x6\InsetSpace \thinspace{}
15762 \begin_inset Formula $\mbox{cm}$
15770 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15773 \begin_layout Standard
15778 \begin_layout Standard
15788 \begin_inset Formula $\mbox{cm}$
15809 \begin_layout Subsection
15810 Customized Cell/Column Format
15811 \begin_inset LatexCommand label
15812 name "sub:Customized-Format"
15817 \begin_inset LatexCommand index
15818 name "Table Customization ! Cell/Column Format"
15825 \begin_layout Standard
15826 Calculating the needed width for spanned columns like in section\InsetSpace ~
15828 \begin_inset LatexCommand ref
15829 reference "sub:Multicolumn-Calculations"
15833 is very annoying if you have several tables with multicolumn cells.
15834 To make life easier, you can define a cell/column format in the preamble,
15835 so that it can be used in all tables of the document.
15836 The format is defined with the command
15839 \begin_layout Standard
15844 newcolumntype{name of format}[number of arguments]{commands}
15847 \begin_layout Standard
15848 The format name may only consist of one letter.
15873 are predefined and cannot be used.
15874 But all letters are allowed as capitals.
15877 \begin_layout Standard
15878 \begin_inset VSpace medskip
15884 \begin_layout Standard
15885 For vertically and horizontally centered multicolumn cells with a fixed
15886 width you can define the cell format
15889 \begin_layout Standard
15894 newcolumntype{M}[1]{>{
15901 \begin_layout Standard
15908 avoids the problem of hyphenating the first word, as described in section\InsetSpace ~
15910 \begin_inset LatexCommand ref
15911 reference "sub:Multiple-Lines-in"
15916 Now you can simply enter
15919 \begin_layout Standard
15925 \begin_layout Standard
15926 as LaTeX-argument in the table dialog to create a multicolumn.
15929 \begin_layout Standard
15930 \begin_inset VSpace bigskip
15936 \begin_layout Standard
15937 For cells spanned by a multicolumn cell, you can define the format
15940 \begin_layout Standard
15945 newcolumntype{S}[2]{>{
15955 \begin_layout Standard
15966 newcolumntype{S}[2]
15970 \begin_layout Standard
15981 arrayrulewidth)*(1-#2))/#2}}
15984 \begin_layout Standard
15985 This format uses equation
15986 \begin_inset LatexCommand eqref
15991 to calculate the needed width so that each spanned cell has the same width.
15994 \begin_layout Standard
15998 \begin_layout Standard
16001 S{width of multicolumn cell}{number of spanned columns}
16004 \begin_layout Standard
16005 as LaTeX-argument of the column.
16008 \begin_layout Standard
16009 \begin_inset VSpace bigskip
16015 \begin_layout Standard
16016 For colored columns, you can define
16019 \begin_layout Standard
16024 newcolumntype{K}[1]{>{
16031 \begin_layout Standard
16033 \begin_inset Quotes eld
16037 \begin_inset Quotes erd
16040 at the end creates a column with a flexible width whose text is horizontally
16045 \begin_layout Standard
16051 \begin_layout Standard
16055 \begin_layout Standard
16056 \begin_inset VSpace bigskip
16062 \begin_layout Standard
16063 To create Table\InsetSpace ~
16065 \begin_inset LatexCommand ref
16066 reference "tab:Table-using-user-defined"
16070 use the LaTeX-arguments
16073 \begin_layout Standard
16079 \begin_layout Standard
16080 for the first column and the multicolumn,
16083 \begin_layout Standard
16089 \begin_layout Standard
16090 for the the last column, and
16093 \begin_layout Standard
16099 \begin_layout Standard
16100 for the cells in the second column.
16103 \begin_layout Standard
16104 \begin_inset Float table
16110 \begin_layout Standard
16111 \begin_inset Caption
16113 \begin_layout Standard
16114 \begin_inset LatexCommand label
16115 name "tab:Table-using-user-defined"
16119 Table using user-defined table formats
16127 \begin_layout Standard
16129 \begin_inset Tabular
16130 <lyxtabular version="3" rows="3" columns="4">
16132 <column alignment="center" valignment="middle" leftline="true" width="2.5cm" special="M{2.5cm}">
16133 <column alignment="center" valignment="middle" leftline="true" width="0" special="S{2.5cm}{2}">
16134 <column alignment="center" valignment="middle" leftline="true" width="0">
16135 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0" special="K{red}">
16136 <row topline="true">
16137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16140 \begin_layout Standard
16141 verylongtablecellword
16146 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none" special="M{2.5cm}">
16149 \begin_layout Standard
16150 multiple lines multicolumn
16155 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16158 \begin_layout Standard
16164 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16167 \begin_layout Standard
16174 <row topline="true">
16175 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16178 \begin_layout Standard
16184 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16187 \begin_layout Standard
16193 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16196 \begin_layout Standard
16202 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16205 \begin_layout Standard
16212 <row topline="true" bottomline="true">
16213 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16216 \begin_layout Standard
16222 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16225 \begin_layout Standard
16231 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16234 \begin_layout Standard
16240 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16243 \begin_layout Standard
16262 \begin_layout Subsection
16264 \begin_inset LatexCommand label
16265 name "sub:Line-Thickness"
16270 \begin_inset LatexCommand index
16271 name "Table Customization ! Line Thickness"
16278 \begin_layout Standard
16279 The line thickness for all lines in a table can be adjusted with the length
16287 To set for example a line thickness of 1.5\InsetSpace \thinspace{}
16288 pt, like in Table\InsetSpace ~
16290 \begin_inset LatexCommand ref
16291 reference "tab:Table-with-1.5"
16295 , insert the command
16298 \begin_layout Standard
16305 arrayrulewidth}{1.5pt}
16308 \begin_layout Standard
16309 in ERT before the table or table float.
16310 The changed thickness is valid for all following tables.
16311 To use the default value again, set
16317 to 0.4\InsetSpace \thinspace{}
16318 pt in ERT behind the table or table float.
16321 \begin_layout Standard
16325 \begin_layout Standard
16331 arrayrulewidth}{1.5pt}
16337 \begin_inset Float table
16342 \begin_layout Standard
16343 \begin_inset Caption
16345 \begin_layout Standard
16346 \begin_inset LatexCommand label
16347 name "tab:Table-with-1.5"
16351 Table with 1.5\InsetSpace \thinspace{}
16360 \begin_layout Standard
16362 \begin_inset Tabular
16363 <lyxtabular version="3" rows="3" columns="3">
16365 <column alignment="center" valignment="top" leftline="true" width="0">
16366 <column alignment="center" valignment="top" leftline="true" width="0">
16367 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16368 <row topline="true">
16369 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16372 \begin_layout Standard
16378 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16381 \begin_layout Standard
16387 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16390 \begin_layout Standard
16397 <row topline="true">
16398 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16401 \begin_layout Standard
16407 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16410 \begin_layout Standard
16416 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16419 \begin_layout Standard
16426 <row topline="true" bottomline="true">
16427 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16430 \begin_layout Standard
16436 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16439 \begin_layout Standard
16445 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16448 \begin_layout Standard
16468 \begin_layout Standard
16474 arrayrulewidth}{0.4pt}
16482 \begin_layout Standard
16483 \begin_inset VSpace bigskip
16486 To set the line thickness to 1.5\InsetSpace \thinspace{}
16487 pt only for horizontal lines, like in Table\InsetSpace ~
16489 \begin_inset LatexCommand ref
16490 reference "tab:Table-with-horizontal"
16494 , insert these commands in ERT before the table or table float:
16497 \begin_layout Standard
16520 arrayrulewidth 1.5pt}
16530 arrayrulewidth 0.4pt}}
16533 \begin_layout Standard
16534 To return to the default line thickness, insert this command in ERT behind
16535 the table or table float:
16538 \begin_layout Standard
16550 \begin_layout Standard
16554 \begin_layout Standard
16565 \begin_layout Standard
16574 \begin_layout Standard
16582 arrayrulewidth 1.5pt}
16585 \begin_layout Standard
16595 arrayrulewidth 0.4pt}}
16601 \begin_inset Float table
16606 \begin_layout Standard
16607 \begin_inset Caption
16609 \begin_layout Standard
16610 \begin_inset LatexCommand label
16611 name "tab:Table-with-horizontal"
16615 Table with 1.5\InsetSpace \thinspace{}
16616 pt thick horizontal lines
16624 \begin_layout Standard
16626 \begin_inset Tabular
16627 <lyxtabular version="3" rows="3" columns="3">
16629 <column alignment="center" valignment="top" leftline="true" width="0">
16630 <column alignment="center" valignment="top" leftline="true" width="0">
16631 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16632 <row topline="true">
16633 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16636 \begin_layout Standard
16642 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16645 \begin_layout Standard
16651 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16654 \begin_layout Standard
16661 <row topline="true">
16662 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16665 \begin_layout Standard
16671 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16674 \begin_layout Standard
16680 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16683 \begin_layout Standard
16690 <row topline="true" bottomline="true">
16691 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16694 \begin_layout Standard
16700 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16703 \begin_layout Standard
16709 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16712 \begin_layout Standard
16732 \begin_layout Standard
16748 \begin_layout Standard
16749 \begin_inset VSpace bigskip
16752 To set the line thickness to 1.5\InsetSpace \thinspace{}
16753 pt only for vertical lines, create the following
16754 column format in the document preamble, according to the description in
16755 section\InsetSpace ~
16757 \begin_inset LatexCommand ref
16758 reference "sub:Customized-Format"
16765 \begin_layout Standard
16770 newcolumntype{V}{!{
16772 vrule width 1.5pt}}
16775 \begin_layout Standard
16776 For Table\InsetSpace ~
16778 \begin_inset LatexCommand ref
16779 reference "tab:Table-with-vertical"
16786 \begin_layout Standard
16792 \begin_layout Standard
16793 was used for the last column and
16796 \begin_layout Standard
16802 \begin_layout Standard
16803 for the other columns.
16806 \begin_layout Standard
16807 \begin_inset Float table
16812 \begin_layout Standard
16813 \begin_inset Caption
16815 \begin_layout Standard
16816 \begin_inset LatexCommand label
16817 name "tab:Table-with-vertical"
16821 Table with 1.5\InsetSpace \thinspace{}
16822 pt thick vertical lines
16830 \begin_layout Standard
16832 \begin_inset Tabular
16833 <lyxtabular version="3" rows="3" columns="3">
16835 <column alignment="center" valignment="top" width="0" special="Vc">
16836 <column alignment="center" valignment="top" width="0" special="Vc">
16837 <column alignment="center" valignment="top" width="0" special="VcV">
16838 <row topline="true">
16839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16842 \begin_layout Standard
16848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16851 \begin_layout Standard
16857 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16860 \begin_layout Standard
16867 <row topline="true">
16868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16871 \begin_layout Standard
16877 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16880 \begin_layout Standard
16886 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16889 \begin_layout Standard
16896 <row topline="true" bottomline="true">
16897 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16900 \begin_layout Standard
16906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16909 \begin_layout Standard
16915 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16918 \begin_layout Standard
16937 \begin_layout Subsection
16939 \begin_inset LatexCommand index
16940 name "Table Customization ! Dashed Lines"
16947 \begin_layout Standard
16951 \begin_layout Standard
16961 \begin_inset Note Note
16964 \begin_layout Standard
16965 The following section will only be displayed when you have the LaTeX-package
16978 \begin_layout Standard
16979 \begin_inset Float table
16985 \begin_layout Standard
16986 \begin_inset Caption
16988 \begin_layout Standard
16989 \begin_inset LatexCommand label
16990 name "tab:Table-with-dashed"
16994 Table with dashed lines
17002 \begin_layout Standard
17004 \begin_inset Tabular
17005 <lyxtabular version="3" rows="5" columns="5">
17007 <column alignment="center" valignment="top" leftline="true" width="0">
17008 <column alignment="center" valignment="top" leftline="true" width="0">
17009 <column alignment="center" valignment="top" width="0" special=":c">
17010 <column alignment="center" valignment="top" leftline="true" width="0">
17011 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
17012 <row topline="true" bottomline="true">
17013 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17016 \begin_layout Standard
17022 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17025 \begin_layout Standard
17031 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17034 \begin_layout Standard
17040 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17043 \begin_layout Standard
17049 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17052 \begin_layout Standard
17059 <row topline="true">
17060 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17063 \begin_layout Standard
17069 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17072 \begin_layout Standard
17078 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17081 \begin_layout Standard
17087 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17090 \begin_layout Standard
17096 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17099 \begin_layout Standard
17107 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17110 \begin_layout Standard
17114 \begin_layout Standard
17128 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17131 \begin_layout Standard
17137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17140 \begin_layout Standard
17146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17149 \begin_layout Standard
17155 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17158 \begin_layout Standard
17165 <row topline="true">
17166 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17169 \begin_layout Standard
17173 \begin_layout Standard
17187 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17190 \begin_layout Standard
17196 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="c:">
17199 \begin_layout Standard
17205 <cell multicolumn="1" alignment="center" valignment="top" rightline="true" usebox="none" special="c:">
17208 \begin_layout Standard
17214 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17217 \begin_layout Standard
17224 <row topline="true" bottomline="true">
17225 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17228 \begin_layout Standard
17234 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17237 \begin_layout Standard
17243 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17246 \begin_layout Standard
17252 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17255 \begin_layout Standard
17261 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17264 \begin_layout Standard
17283 \begin_layout Standard
17284 LyX doesn't natively support dashed lines, so you have to use ERT.
17285 As prerequisite the LaTeX-package
17290 \begin_inset LatexCommand index
17291 name "LaTeX-packages ! arydshln"
17295 must be loaded in the document preamble with the command
17298 \begin_layout Standard
17303 usepackage{arydshln}
17306 \begin_layout Standard
17307 To make a vertical line dashed, enter the colon
17308 \begin_inset Quotes eld
17312 \begin_inset Quotes erd
17315 together with the character for the horizontal alignment as LaTeX-argument
17316 in the table cell dialog.
17319 \begin_layout Standard
17320 For a horizontal dashed line add the command
17323 \begin_layout Standard
17331 \begin_layout Standard
17332 in ERT as first element of the first cell in the table row.
17335 \begin_layout Standard
17336 For dashed multicolumn lines use the command
17339 \begin_layout Standard
17344 cdashline{line number
17349 \begin_layout Standard
17350 in ERT as first element of the first cell in the table row.
17351 If you have for example a multicolumn spanning over columns 2 to 4 and
17352 you want to have a dashed line above, add the command
17355 \begin_layout Standard
17363 \begin_layout Standard
17364 as first element of the first cell in the row of the multicolumn.
17367 \begin_layout Standard
17368 \begin_inset VSpace bigskip
17374 \begin_layout Standard
17377 \begin_inset LatexCommand ref
17378 reference "tab:Table-with-dashed"
17383 \begin_inset Quotes eld
17391 \begin_inset Quotes erd
17394 as LaTeX-argument of the third column.
17401 was inserted to the first cell of the third row and the the ERT command
17410 was inserted to the first cell of the fourth row.
17413 \begin_layout Standard
17414 \begin_inset Note Greyedout
17417 \begin_layout Standard
17422 The used LaTeX-package
17426 is apparently not compatible with the LaTeX-package
17431 \begin_inset LatexCommand index
17432 name "LaTeX-packages ! colortbl"
17436 that is used for colored tables in section\InsetSpace ~
17438 \begin_inset LatexCommand ref
17439 reference "sec:Colored-Tables"
17444 That means colored tables cannot have dashed lines.
17452 \begin_layout Standard
17456 \begin_layout Standard
17466 \begin_inset Note Note
17469 \begin_layout Standard
17470 The following will be displayed when the LaTeX-package
17482 \begin_layout Standard
17483 You need to install the package
17487 to see the contents of this section in the output.
17490 \begin_layout Standard
17494 \begin_layout Standard
17506 \begin_layout Chapter
17508 \begin_inset LatexCommand index
17514 \begin_inset LatexCommand label
17522 \begin_layout Section
17524 \begin_inset LatexCommand label
17525 name "sec:FloatIntroduction"
17530 \begin_inset LatexCommand index
17531 name "Floats ! Introduction"
17538 \begin_layout Standard
17539 A float is a block of text associated with some sort of label, which doesn't
17540 have a fixed location.
17542 \begin_inset Quotes eld
17546 \begin_inset Quotes erd
17549 forward or backward a page or two, to wherever it fits best.
17556 Margin\InsetSpace ~
17559 are also floats, because they can float to the next page when there are
17560 too many notes at the page.
17563 \begin_layout Standard
17564 Floats allow a high quality layout.
17565 Images and tables can evenly be spread to the pages to avoid white space
17566 and pages without text.
17567 As the floating often destroys the context between the text and the image/table
17568 , every float can be referenced in the text.
17569 Floats are therefore numbered.
17570 Referencing is described in section\InsetSpace ~
17572 \begin_inset LatexCommand ref
17573 reference "sec:Referencing-Floats"
17580 \begin_layout Standard
17581 To insert a float, use the menu
17583 Insert\SpecialChar \menuseparator
17591 inset, a box with a label.
17592 The label will automatically be translated to the document language in
17594 Behind the label you can insert the caption text.
17595 The image or table is inserted above or below the caption in a separate
17596 paragraph within the float.
17597 More about the caption placement is described in section\InsetSpace ~
17599 \begin_inset LatexCommand ref
17600 reference "sec:Caption-Placement"
17605 To keep your LyX-document readable, you can open and close the float box
17606 by left-clicking on the box label.
17607 A closed float box looks like this:
17608 \begin_inset Graphics
17609 filename clipart/floatQt4.png
17611 scaleBeforeRotation
17615 -- a gray button with a red label.
17618 \begin_layout Standard
17619 It is recommended to insert floats as a separate paragraph to avoid possible
17620 LaTeX-errors that can occur when the surrounding text is specially formatted.
17623 \begin_layout Standard
17624 Existing figures or tables can be put into a float by marking them and then
17625 pressing the corresponding toolbar button for a new float.
17628 \begin_layout Section
17632 \begin_layout Standard
17633 Besides figure and table floats that are described in section\InsetSpace ~
17635 \begin_inset LatexCommand ref
17636 reference "sec:Figure-Floats"
17641 \begin_inset LatexCommand ref
17642 reference "sec:Table-Floats"
17646 , respectively, LyX offers the float types
17659 \begin_layout Subsection
17661 \begin_inset LatexCommand index
17662 name "Floats ! Algorithms"
17669 \begin_layout Standard
17670 \begin_inset Float algorithm
17676 \begin_layout Standard
17677 \begin_inset Caption
17679 \begin_layout Standard
17680 \begin_inset LatexCommand label
17681 name "alg:Example-Algorithm-float"
17685 Example Algorithm float
17693 \begin_layout LyX-Code
17696 Sum:= Sum + A(I); /*comment*/
17699 \begin_inset VSpace -4mm
17710 \begin_layout Standard
17711 This float type is inserted with the menu
17713 Insert\SpecialChar \menuseparator
17714 Floats\SpecialChar \menuseparator
17718 It is used for program codes and descriptions of algorithms.
17719 A possible environment for algorithms is the
17723 , described in LyX's
17728 Algorithm\InsetSpace ~
17730 \begin_inset LatexCommand ref
17731 reference "alg:Example-Algorithm-float"
17735 is an example of an algorithm float where -4\InsetSpace \thinspace{}
17736 mm vertical space was added
17737 at the end of the float to have the bottom rule exactly below the last
17741 \begin_layout Standard
17742 The float label is not automatically translated into the document language.
17743 If your document is not in English, you have to do this manually by adding
17744 the following line to the document preamble
17749 \begin_layout Standard
17754 floatname{algorithm}{your\InsetSpace ~
17758 \begin_layout Standard
17765 \begin_inset Quotes eld
17773 \begin_inset Quotes erd
17779 \begin_layout Description
17784 When the LaTeX-package
17789 \begin_inset LatexCommand index
17790 name "LaTeX-packages ! hyperref"
17794 is used to link cross-references to floats in the PDF-output, it must be
17795 loaded in the document preamble before the definition of floats to be able
17796 to reference floats.
17797 As LyX sets the float definition for algorithm floats automatically before
17798 the user editable part of the document preamble, you need to insert the
17799 following preamble lines
17803 the loading command of
17810 \begin_inset VSpace defskip
17817 newfloat{Xalgorithm}{tbp}{loa}
17821 floatname{Xalgorithm}{your\InsetSpace ~
17834 renewenvironment{algorithm}[1][tbp]
17840 \begin_layout Standard
17851 begin{Xalgorithm}[#1]}{
17854 \begin_inset VSpace defskip
17860 \begin_layout Standard
17861 Algorithm floats are not by default numbered in the scheme
17862 \begin_inset Quotes eld
17866 \begin_inset Quotes erd
17869 like it is the case for table and figure floats in many document-classes.
17870 To number algorithm floats in the same scheme, add this command to your
17874 \begin_layout Standard
17879 numberwithin{algorithm}{chapter}
17882 \begin_layout Standard
17883 If you use the LaTeX-package
17887 , add this line instead
17895 (the commands from above) to the preamble:
17898 \begin_layout Standard
17903 numberwithin{Xalgorithm}{chapter}
17906 \begin_layout Standard
17907 To be able to use the command
17918 in the document settings the option
17928 \begin_layout Subsection
17930 \begin_inset LatexCommand index
17931 name "Floats ! Text Wrap Floats"
17936 \begin_inset LatexCommand label
17937 name "sub:floatflt-wrap-float"
17944 \begin_layout Standard
17945 This float type is used if you want to
17946 \begin_inset Quotes eld
17950 \begin_inset Quotes erd
17953 text around a figure so that it only occupies some fraction of the column
17955 It can be inserted using the menu
17956 \begin_inset Wrap figure
17961 \begin_layout Standard
17962 \begin_inset Graphics
17963 filename clipart/mobius.eps
17966 scaleBeforeRotation
17967 rotateOrigin center
17974 \begin_layout Standard
17975 \begin_inset Caption
17977 \begin_layout Standard
17978 \begin_inset LatexCommand label
17979 name "fig:This-is-a"
17983 This is a wrapped figure, and this is the brilliant caption that describes
17985 \begin_inset VSpace medskip
18000 Insert\SpecialChar \menuseparator
18001 Floats\SpecialChar \menuseparator
18006 if the LaTeX-package
18008 f\SpecialChar \textcompwordmark{}
18009 loatf\SpecialChar \textcompwordmark{}
18013 \begin_inset LatexCommand index
18014 name "LaTeX-packages ! floatflt"
18022 \begin_layout Standard
18023 Installing a LaTeX-package is explained it in the
18033 The width and placement of the float is adjusted by right-clicking on the
18035 Figure\InsetSpace ~
18037 \begin_inset LatexCommand ref
18038 reference "fig:This-is-a"
18042 is an example text wrap float with a width of 40
18043 \begin_inset Formula $\,$
18050 \begin_layout Standard
18051 Available units are explained in
18052 \begin_inset LatexCommand ref
18053 reference "cha:Units-available-in"
18062 Some space was added under the caption to separate it better from the surroundi
18066 \begin_layout Standard
18069 f\SpecialChar \textcompwordmark{}
18070 loatf\SpecialChar \textcompwordmark{}
18073 also supports table wrap floats, but they are not yet supported by LyX.
18074 If you need this, read the documentation of
18076 f\SpecialChar \textcompwordmark{}
18077 loatf\SpecialChar \textcompwordmark{}
18081 \begin_inset LatexCommand cite
18089 \begin_layout Standard
18090 \begin_inset Note Greyedout
18093 \begin_layout Standard
18099 wrap float floats are fragile! E.\InsetSpace \thinspace{}
18101 having a figure too close to the bottom
18102 of the page can mess things up in the way that the float doesn't appear
18103 in the output or that it is placed over some other text.
18107 \begin_layout Standard
18108 The better solution is to use the LaTeX-package
18110 wrapf\SpecialChar \textcompwordmark{}
18114 \begin_inset LatexCommand index
18115 name "LaTeX-packages ! wrapfig\\vspace{4mm}"
18121 f\SpecialChar \textcompwordmark{}
18122 loatf\SpecialChar \textcompwordmark{}
18125 , but it is currently not supported by LyX.
18138 \begin_layout Standard
18142 \begin_layout Itemize
18143 Wrap floats should not be placed in paragraphs that run over a page break.
18144 That means that wrap floats should better be inserted to the exact place
18145 when the document is nearly finished and you are able to estimate where
18146 page breaks will appear.
18149 \begin_layout Itemize
18150 Wrap floats should either be placed in an own paragraph before the paragraph
18151 where they should wrap into or within a paragraph.
18154 \begin_layout Itemize
18155 Wrap floats in consecutive paragraphs may cause troubles, so assure that
18156 there is a text paragraph between them as separator.
18159 \begin_layout Itemize
18160 Wrap floats are not allowed in section headings or tables.
18163 \begin_layout Section
18165 \begin_inset LatexCommand label
18166 name "sec:Float-Numbering"
18171 \begin_inset LatexCommand index
18172 name "Floats ! Numbering"
18179 \begin_layout Standard
18180 Floats are usually numbered either independent from the sections the floats
18181 are in, or in the scheme
18182 \begin_inset Quotes eld
18186 \begin_inset Quotes erd
18190 \begin_inset Quotes eld
18194 \begin_inset Quotes erd
18198 This depends on the used document class.
18201 \begin_layout Standard
18202 To change the section independent numbering, you can use this command in
18203 the document preamble:
18206 \begin_layout Standard
18218 \begin_layout Standard
18225 is the command that prints the table number, for figure floats, the command
18239 prints in the command above the table number as small roman number.
18242 \begin_layout Standard
18243 To change the numbering scheme for example to
18244 \begin_inset Quotes eld
18248 \begin_inset Quotes erd
18251 , use this command in the preamble:
18254 \begin_layout Standard
18259 numberwithin{table}{subsection}
18262 \begin_layout Standard
18263 To be able to use the command
18274 in the document settings the option
18284 \begin_layout Standard
18285 Please also have a look at section\InsetSpace ~
18287 \begin_inset LatexCommand ref
18288 reference "sub:Footnote-Numbering"
18292 for the details and important notes about the numbering commands.
18295 \begin_layout Section
18297 \begin_inset LatexCommand label
18298 name "sec:Referencing-Floats"
18303 \begin_inset LatexCommand index
18304 name "Floats ! References"
18309 \begin_inset LatexCommand index
18317 \begin_layout Standard
18318 To reference a float, insert a label into its caption using the menu
18320 Insert\SpecialChar \menuseparator
18323 or the toolbar button
18324 \begin_inset Graphics
18325 filename ../images/label-insert.xpm
18327 scaleBeforeRotation
18332 A grey label box like this one:
18333 \begin_inset Graphics
18334 filename clipart/labelQt4.png
18336 scaleBeforeRotation
18340 will be inserted and the label window pops up asking for the label text.
18341 LyX offers as text the first words of the caption with a prefix.
18342 The prefix depends on the float type, e.\InsetSpace \thinspace{}
18344 for figure floats the prefix will
18352 \begin_layout Standard
18353 The label is used as anchor and name for the reference.
18354 You can refer to the label using the menu
18356 Insert\SpecialChar \menuseparator
18359 or the toolbar button
18360 \begin_inset Graphics
18361 filename ../images/dialog-show-new-inset_ref.xpm
18363 scaleBeforeRotation
18368 A grey cross-reference box like this one:
18369 \begin_inset Graphics
18370 filename clipart/referenceQt4.png
18372 scaleBeforeRotation
18376 will be inserted and the cross-reference window appear showing all labels
18378 If you have multiple LyX-documents opened, choose the one you are working
18379 on from the drop-list at the top of the dialog.
18380 You can now sort the labels alphabetically and then choose one.
18381 At the position of the cross-reference box the float number will appear
18385 \begin_layout Standard
18386 It is recommended to use a protected space between the cross-reference name
18387 and its number to avoid line breaks between them.
18388 If a cross-reference refers to a non-existing label, you will see two question
18389 marks in the output instead of the reference.
18392 \begin_layout Standard
18393 You can change labels at any time by clicking on the label box.
18394 References to the changed label will automatically change its link to the
18395 new label text, so that you don't need to take care about this.
18398 \begin_layout Standard
18405 in the cross-reference window sets the cursor before the referred label.
18406 The button text changes then to Go\InsetSpace ~
18407 Back and you can use it to set the cursor
18408 back to the cross-reference.
18409 Right-clicking on a cross-reference box also sets the cursor before the
18410 referenced label but without a possibility to go back.
18413 \begin_layout Subsection
18414 Cross-Reference Formats
18415 \begin_inset LatexCommand label
18416 name "sub:Cross-Reference-Formats"
18421 \begin_inset LatexCommand index
18422 name "References ! Formats"
18429 \begin_layout Standard
18430 There are six varieties of cross-references:
18433 \begin_layout Description
18434 <reference>: prints the float number, this is the default:
18435 \begin_inset LatexCommand ref
18436 reference "fig:Two-distorted-images"
18443 \begin_layout Description
18444 (<reference>): prints the float number within two parentheses, this is the
18445 style normally used to reference formulas, especially when the reference
18447 \begin_inset Quotes eld
18451 \begin_inset Quotes erd
18455 \begin_inset LatexCommand eqref
18463 \begin_layout Description
18464 <page>: prints the page number: Page\InsetSpace ~
18466 \begin_inset LatexCommand pageref
18467 reference "fig:Two-distorted-images"
18474 \begin_layout Description
18477 <page>: prints the text "on page" and the page number:
18478 \begin_inset LatexCommand vpageref
18479 reference "fig:Two-distorted-images"
18486 \begin_layout Description
18487 <reference>\InsetSpace ~
18490 <page>: prints the float number, the text "on page", and
18492 \begin_inset LatexCommand vref
18493 reference "fig:Two-distorted-images"
18500 \begin_layout Description
18501 Formatted\InsetSpace ~
18502 reference: prints a self defined cross-reference format.
18504 \begin_inset Note Greyedout
18507 \begin_layout Standard
18512 This feature is only available when you have the LaTeX-package
18524 \begin_layout Standard
18525 Note that the style <page> won't print the page number if the label is on
18526 the previous, the same, or the next page.
18527 You will e.\InsetSpace \thinspace{}
18530 \begin_inset Quotes eld
18538 \begin_inset Quotes erd
18544 \begin_layout Standard
18545 The number and current page of the referred document part in the output,
18546 is automatically calculated by LaTeX.
18547 The varieties are adjusted in the field
18551 of the cross-reference window, that appear when you click on the cross-referenc
18555 \begin_layout Subsection
18556 Referencing Subfigures
18557 \begin_inset LatexCommand label
18558 name "sub:Referencing-Subfigures"
18563 \begin_inset LatexCommand index
18564 name "References ! to Subfigures"
18571 \begin_layout Standard
18572 Currently referencing subfigures is not supported by LyX, so you have to
18573 use LaTeX-commands.
18574 The label is the created with the command
18577 \begin_layout Standard
18582 label{fig:YourLabelName}
18585 \begin_layout Standard
18586 that is directly inserted into the subfigure caption field.
18587 To reference the label add this command in ERT
18590 \begin_layout Standard
18595 ref{fig:YourLabelName}
18598 \begin_layout Standard
18599 to the position in your document where the reference should be placed.
18600 Here is a reference to a subfigure: Subfigure\InsetSpace ~
18605 \begin_layout Standard
18617 \begin_layout Subsection
18618 Automatic Reference Naming
18619 \begin_inset LatexCommand index
18620 name "References ! Automatic Reference Naming"
18627 \begin_layout Standard
18632 provides a very useful feature that cross-references automatically include
18633 the name of the referenced floats (or text parts like sections).
18634 You save to write e.\InsetSpace \thinspace{}
18637 \begin_inset Quotes eld
18641 \begin_inset Quotes erd
18644 before every reference box.
18645 To get this automatic reference naming, you have to load the LaTeX-package
18651 \begin_inset LatexCommand index
18652 name "LaTeX-packages ! hyperref"
18656 in the document preamble with
18659 \begin_layout Standard
18664 usepackage[pdfborder={0 0 0}]{hyperref}
18679 \begin_layout Standard
18684 is used to link cross-references in the DVI- and PDF-output, this means
18685 that the reader of your document will be able to click on a table of content
18686 (TOC) entry or on a reference and he will be shown the referenced document
18692 also creates PDF-bookmarks for every section of your document to make it
18693 easier for readers to navigate through the document.
18694 This is also used in this document but when you have a look in the document
18695 preamble you will find various options in the load command of
18700 To learn more about the
18704 package, we refer to its documentation
18705 \begin_inset LatexCommand cite
18713 \begin_layout Standard
18714 \begin_inset Note Greyedout
18717 \begin_layout Standard
18722 Automatic reference naming cannot be used when you use cross-references
18725 Formatted\InsetSpace ~
18728 style, described in section\InsetSpace ~
18730 \begin_inset LatexCommand ref
18731 reference "sub:Cross-Reference-Formats"
18743 \begin_layout Subsection
18745 \begin_inset LatexCommand label
18746 name "sub:Reference-Position"
18751 \begin_inset LatexCommand index
18752 name "References ! Reference Position"
18759 \begin_layout Standard
18765 \begin_inset LatexCommand index
18766 name "LaTeX-packages ! hyperref"
18770 to link cross-references in the output, you will see that clicking on an
18771 image float reference jumps to the image label.
18772 The caption will be the first text part on the screen, so that you cannot
18773 see the image without scrolling.
18774 This is because the reference link anchor is placed at the position of
18776 With the use of the package
18781 \begin_inset LatexCommand index
18782 name "LaTeX-packages ! hypcap"
18786 , which is part of the LaTeX-package
18791 \begin_inset LatexCommand index
18792 name "LaTeX-packages ! oberdiek"
18796 , the link anchor is placed at the beginning of a float.
18797 To use this feature for figure floats, load
18801 in the document preamble with the line
18804 \begin_layout Standard
18809 usepackage[f\SpecialChar \textcompwordmark{}
18813 \begin_layout Standard
18818 for all floats but this isn't recommended for stability reasons.
18819 For more informations, have a look at
18824 \begin_inset LatexCommand cite
18832 \begin_layout Standard
18833 \begin_inset Note Greyedout
18836 \begin_layout Standard
18845 must be loaded after
18849 in the document preamble.
18857 \begin_layout Standard
18858 \begin_inset Note Greyedout
18861 \begin_layout Standard
18870 has no effect for references to subfigures.
18878 \begin_layout Section
18880 \begin_inset LatexCommand label
18881 name "sec:Float-Placement"
18886 \begin_inset LatexCommand index
18887 name "Floats ! Placement"
18894 \begin_layout Standard
18895 Right-clicking on a float-box opens a dialog where you can alter the placement
18896 options that LaTeX uses for positioning the float.
18903 is only useful for two-column documents: If you select it, the float will
18904 span across both columns on the page instead of being confined to just
18909 Rotate\InsetSpace ~
18912 is used to rotate floats, see section
18913 \begin_inset LatexCommand ref
18914 reference "sec:Rotated-Floats"
18921 \begin_layout Standard
18922 You can use one ore more of the following options in the float dialog to
18923 set the placement for a particular float when you uncheck the option
18926 default\InsetSpace ~
18932 \begin_layout Description
18935 possible try to place the float on the position where it is inserted
18938 \begin_layout Description
18941 page try to place the float on the top of the current page
18944 \begin_layout Description
18945 Bottom\InsetSpace ~
18947 page try to place the float on the bottom of the current page
18950 \begin_layout Description
18953 floats try to place the float on an own page
18956 \begin_layout Standard
18957 The order of the above option is
18962 That means, if you use the default placement, LaTeX will first try out
18975 , and then the others.
18976 If you don't use the default, LaTeX will try only the checked options but
18978 If none of the 4 placements are possible the procedure is internally repeated
18979 but it is tried to put the float on the following page.
18982 \begin_layout Standard
18983 By default, each option has its own rules:
18986 \begin_layout Labeling
18987 \labelwidthstring 00.00.0000
18994 only floats occupying less than 70\InsetSpace \thinspace{}
18995 % of the page can be placed at the top
19005 \begin_layout Labeling
19006 \labelwidthstring 00.00.0000
19009 Bottom\InsetSpace ~
19013 : only floats occupying less than 30\InsetSpace \thinspace{}
19014 % of the page can be placed at the bottom
19025 \begin_layout Labeling
19026 \labelwidthstring 00.00.0000
19033 : only if more than 50\InsetSpace \thinspace{}
19034 % of the page are occupied by floats, several floats
19035 can be set together on a page.
19040 f\SpecialChar \textcompwordmark{}
19046 \begin_layout Standard
19047 If you don't like these rules, you can ignore them by using the additional
19050 Ignore\InsetSpace ~
19056 You can also redefine the rules with LaTeX-commands that are given in parenthese
19057 s behind the rules description above.
19058 To increase for example the often too small default of the bottom-rule
19059 to 50\InsetSpace \thinspace{}
19060 % of the page, add this line to your document preamble:
19063 \begin_layout Standard
19070 bottomfraction}{0.5}
19073 \begin_layout Standard
19074 Sometimes you might need, under all circumstances, a float to be placed
19075 exactly at the position where it is inserted.
19076 For this case you can use the option
19082 Use this option very rarely and only if the document is nearly ready to
19084 Because the float is then no longer able to
19085 \begin_inset Quotes eld
19089 \begin_inset Quotes erd
19092 when you change your document and this will often destroy the page layout.
19095 \begin_layout Standard
19096 There are no placement options for text wrap floats, because they are always
19097 surrounded by the text of a certain paragraph.
19098 \begin_inset VSpace bigskip
19104 \begin_layout Standard
19105 Sometimes you have the problem that a float is placed at the top of a page
19106 while its corresponding section starts at the middle of the page, so that
19107 the reader could think the float is part of the previous section.
19108 To avoid this the LaTeX-command
19112 suppressf\SpecialChar \textcompwordmark{}
19116 It suppresses a given float placement for the page where it is inserted
19117 and can therefore be used to avoid that floats could be set before a section
19119 To get this, add these commands to your document preamble:
19122 \begin_layout Standard
19139 suppressf\SpecialChar \textcompwordmark{}
19145 \begin_layout Standard
19146 You can define the same for all section headings, like chapters and subsections.
19147 This definition is not recommended to be used for small text parts like
19148 subsubsections because LaTeX may then have problems to find a suitable
19152 \begin_layout Standard
19153 \begin_inset VSpace bigskip
19156 In some cases it is required to have all figures/tables at the end of the
19158 For this purpose the LaTeX-package
19160 endf\SpecialChar \textcompwordmark{}
19164 \begin_inset LatexCommand index
19165 name "LaTeX-packages ! endfloat"
19170 It puts all figure and table floats at the end of the document into own
19172 At the original float position a text hint like
19173 \begin_inset Quotes eld
19178 [Figure\InsetSpace ~
19182 \begin_inset Quotes erd
19186 The endfloat-package is loaded in the preamble with the line
19189 \begin_layout Standard
19194 usepackage[options]{endf\SpecialChar \textcompwordmark{}
19198 \begin_layout Standard
19199 There are various package options to format the created figure/table sections.
19200 For more information we refer to the
19202 endf\SpecialChar \textcompwordmark{}
19206 \begin_inset LatexCommand cite
19214 \begin_inset Note Greyedout
19217 \begin_layout Standard
19220 Note: endf\SpecialChar \textcompwordmark{}
19223 doesn't provide an automatic translation for the text hint, you have to
19224 do this manually, see section\InsetSpace ~
19226 \begin_inset LatexCommand cite
19239 \begin_inset Note Greyedout
19242 \begin_layout Standard
19247 There is currently a bug in
19249 endf\SpecialChar \textcompwordmark{}
19252 when the caption contains a German
19253 \begin_inset Quotes eld
19257 \begin_inset Quotes erd
19261 Use in this case the command
19262 \begin_inset Quotes eld
19272 \begin_inset Quotes erd
19276 \begin_inset Quotes eld
19280 \begin_inset Quotes erd
19291 \begin_layout Standard
19292 \begin_inset VSpace bigskip
19295 For more details about float placements, have a look at LaTeX books,
19296 \begin_inset LatexCommand cite
19297 key "latexcompanion,latexguide,latexbook"
19304 \begin_layout Section
19306 \begin_inset LatexCommand label
19307 name "sec:Rotated-Floats"
19312 \begin_inset LatexCommand index
19313 name "Floats ! Rotating"
19320 \begin_layout Standard
19321 Especially for wide tables you might have floats rotated.
19322 To rotate a whole float including the caption, right-click on the float-box
19325 Rotate\InsetSpace ~
19331 \begin_layout Standard
19332 Rotated floats are always placed on its own page (or column, when you have
19333 a two-column document).
19334 They are normally rotated so that you can read them from the outside margin
19335 -- to the left on even pages, to the right on odd pages.
19336 To force a certain rotation direction for all pages, you can add either
19339 f\SpecialChar \textcompwordmark{}
19344 f\SpecialChar \textcompwordmark{}
19347 to the document class options.
19350 \begin_layout Standard
19351 Referencing rotated floats is the same like for normal floats, the caption
19352 format is also the same: Table\InsetSpace ~
19354 \begin_inset LatexCommand ref
19355 reference "tab:Rotated-table"
19359 is an example of a rotated table float.
19362 \begin_layout Standard
19363 \begin_inset Note Greyedout
19366 \begin_layout Standard
19371 Not all DVI-viewers are able to display rotated floats.
19379 \begin_layout Standard
19380 \begin_inset Float table
19385 \begin_layout Standard
19386 \begin_inset Caption
19388 \begin_layout Standard
19389 \begin_inset LatexCommand label
19390 name "tab:Rotated-table"
19402 \begin_layout Standard
19404 \begin_inset Tabular
19405 <lyxtabular version="3" rows="1" columns="5">
19407 <column alignment="center" valignment="top" leftline="true" width="0">
19408 <column alignment="center" valignment="top" leftline="true" width="0">
19409 <column alignment="center" valignment="top" leftline="true" width="0">
19410 <column alignment="center" valignment="top" leftline="true" width="0">
19411 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19412 <row topline="true" bottomline="true">
19413 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19416 \begin_layout Standard
19422 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19425 \begin_layout Standard
19431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19434 \begin_layout Standard
19440 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19443 \begin_layout Standard
19449 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19452 \begin_layout Standard
19471 \begin_layout Section
19473 \begin_inset LatexCommand index
19474 name "Caption ! Formatting"
19479 \begin_inset LatexCommand index
19480 name "Floats ! Caption Formatting"
19485 \begin_inset LatexCommand index
19486 name "LaTeX-packages ! caption"
19491 \begin_inset LatexCommand label
19492 name "sec:Caption-Formatting"
19499 \begin_layout Standard
19504 environment is the default paragraph environment for
19509 On the LyX screen captions appear as label, e.\InsetSpace \thinspace{}
19512 \begin_inset Quotes eld
19520 \begin_inset Quotes erd
19523 followed by the caption text.
19525 \begin_inset Quotes eld
19529 \begin_inset Quotes erd
19532 is the actual reference number.
19533 By default the label and the number are in the same font as the caption
19534 text and a colon follows the number to divide the label from the text.
19535 This caption format is not suitable for all document formats.
19539 \begin_layout Standard
19540 To change the default caption format, load the LaTeX-package
19545 \begin_inset LatexCommand index
19546 name "LaTeX-packages ! caption"
19550 in the document preamble with this line:
19553 \begin_layout Standard
19558 usepackage[format definition]{caption}
19561 \begin_layout Standard
19562 To have for example the label and the number in sans-serif bold font and
19563 the table captions always above the table like in this document, use the
19567 \begin_layout Standard
19572 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
19575 \begin_layout Standard
19576 You can also define different caption formats for the different float types.
19577 In this case load the
19581 package without format specific options and define the different formats
19582 with the help of the command
19585 \begin_layout Standard
19590 captionsetup[float type]{format definition}
19593 \begin_layout Standard
19594 in the document preamble.
19595 For example the caption formats of Figure\InsetSpace ~
19597 \begin_inset LatexCommand ref
19598 reference "fig:This-is-an-fig"
19602 and Table\InsetSpace ~
19604 \begin_inset LatexCommand ref
19605 reference "tab:This-is-an-tab"
19609 can be created using these commands in the document preamble:
19612 \begin_layout Standard
19617 usepackage[tableposition=top]{caption}
19625 captionsetup[f\SpecialChar \textcompwordmark{}
19626 igure]{labelfont={tt}, textfont=it, indention=1cm,%
19632 \begin_layout Standard
19640 captionsetup[figure]
19651 captionsetup[table]{labelfont={bf,sf}}
19654 \begin_layout Standard
19655 \begin_inset Note Greyedout
19658 \begin_layout Standard
19667 has no effect when a
19672 \begin_inset LatexCommand index
19673 name "LaTeX-packages ! koma-script"
19677 document class is used.
19678 In this case the document class option
19690 \begin_layout Standard
19691 For more information about the package
19695 we refer to its documentation
19696 \begin_inset LatexCommand cite
19697 key "caption,caption-de"
19704 \begin_layout Standard
19705 To change the label name from e.g.
19707 \begin_inset Quotes eld
19711 \begin_inset Quotes erd
19715 \begin_inset Quotes eld
19719 \begin_inset Quotes erd
19722 use this preamble command:
19725 \begin_layout Standard
19732 fnum@figure}{Image~
19737 \begin_layout Standard
19744 inserts the figure number and
19747 \begin_inset Quotes eld
19753 \begin_inset Quotes erd
19756 creates a protected space.
19759 \begin_layout Standard
19760 \begin_inset VSpace bigskip
19768 \begin_inset LatexCommand index
19769 name "LaTeX-packages ! koma-script"
19775 article (koma-script)
19783 letter (koma-script)
19787 report (koma-script)
19789 \InsetSpace \thinspace{}
19790 ), you can alternatively to the
19798 's built-in command
19805 For example, to have the caption label in bold, add this command to your
19809 \begin_layout Standard
19814 setkomafont{captionlabel}{
19819 \begin_layout Standard
19820 For more information about
19831 \begin_inset LatexCommand cite
19832 key "koma-script,koma-script-de"
19839 \begin_layout Standard
19843 \begin_layout Standard
19847 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
19854 \begin_inset Note Note
19857 \begin_layout Standard
19858 The caption format is changed only for this example.
19866 \begin_layout Standard
19867 \begin_inset Float figure
19873 \begin_layout Standard
19875 \begin_inset Graphics
19876 filename clipart/mobius.eps
19879 scaleBeforeRotation
19886 \begin_layout Standard
19887 \begin_inset Caption
19889 \begin_layout Standard
19890 \begin_inset LatexCommand label
19891 name "fig:This-is-an-fig"
19895 This is an example figure caption that is longer than one line to show the
19896 different caption format.
19897 Here a self-defined caption format is used.
19910 \begin_layout Standard
19914 \begin_layout Standard
19918 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
19927 \begin_layout Standard
19928 \begin_inset Float table
19934 \begin_layout Standard
19935 \begin_inset Caption
19937 \begin_layout Standard
19938 \begin_inset LatexCommand label
19939 name "tab:This-is-an-tab"
19943 This is an example table caption that is longer than one line to show the
19944 different caption format.
19945 Here the standard caption format for tables in this document is used.
19953 \begin_layout Standard
19955 \begin_inset Tabular
19956 <lyxtabular version="3" rows="1" columns="5">
19958 <column alignment="center" valignment="top" leftline="true" width="0">
19959 <column alignment="center" valignment="top" leftline="true" width="0">
19960 <column alignment="center" valignment="top" leftline="true" width="0">
19961 <column alignment="center" valignment="top" leftline="true" width="0">
19962 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19963 <row topline="true" bottomline="true">
19964 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19967 \begin_layout Standard
19973 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19976 \begin_layout Standard
19982 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19985 \begin_layout Standard
19991 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19994 \begin_layout Standard
20000 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20003 \begin_layout Standard
20022 \begin_layout Section
20024 \begin_inset LatexCommand index
20025 name "Caption ! Placement"
20030 \begin_inset LatexCommand index
20031 name "Floats ! Caption Placement"
20036 \begin_inset LatexCommand label
20037 name "sec:Caption-Placement"
20044 \begin_layout Standard
20045 The common caption placement rule is:
20048 \begin_layout Description
20049 Figure: Caption is set below the figure
20052 \begin_layout Description
20053 Table: Caption is set above the table
20056 \begin_layout Standard
20057 Having the caption above the table is unfortunately not supported in LaTeX's
20059 That means if you are using the document classes
20075 there will be no space between the caption and the table.
20076 To insert the needed space, add the following option to the load command
20077 of the LaTeX-package
20081 in your document preamble
20085 \begin_layout Standard
20086 See section\InsetSpace ~
20088 \begin_inset LatexCommand ref
20089 reference "sec:Caption-Formatting"
20093 for more information of the package
20105 \begin_layout Standard
20111 \begin_layout Standard
20117 \begin_inset LatexCommand index
20118 name "LaTeX-packages ! koma-script"
20124 article (koma-script)
20132 letter (koma-script)
20136 report (koma-script)
20138 \InsetSpace \thinspace{}
20139 ), you can alternatively to the
20143 package set the document class option
20150 \begin_layout Standard
20151 \begin_inset VSpace bigskip
20154 It is also possible to set the caption beside a figure or table.
20155 To get this the LaTeX-package
20160 \begin_inset LatexCommand index
20161 name "LaTeX-packages ! sidecap"
20165 has to be loaded in the document preamble with the line
20168 \begin_layout Standard
20173 usepackage[option]{sidecap}
20176 \begin_layout Standard
20177 If you set no option, the caption is placed on the side of the outer page
20178 margin -- to the right on odd pages, to the left on even pages.
20179 You can change the placement to inner margin with the option
20184 To force the placement always to the right or left, use the option
20195 \begin_layout Standard
20196 To place in LyX the caption of a float on the side, it is necessary to add
20197 these commands to the document preamble:
20200 \begin_layout Standard
20206 \begin_layout Standard
20219 \begin_layout Standard
20240 \begin_layout Standard
20261 \begin_layout Standard
20272 renewenvironment{table}{
20279 \begin_layout Standard
20292 \begin_layout Standard
20313 \begin_layout Standard
20331 \begin_layout Standard
20344 \begin_layout Standard
20359 f\SpecialChar \textcompwordmark{}
20366 \begin_layout Standard
20379 MyEndf\SpecialChar \textcompwordmark{}
20382 endf\SpecialChar \textcompwordmark{}
20389 \begin_layout Standard
20400 renewenvironment{f\SpecialChar \textcompwordmark{}
20403 begin{SCf\SpecialChar \textcompwordmark{}
20406 end{SCf\SpecialChar \textcompwordmark{}
20410 \begin_layout Standard
20423 \begin_layout Standard
20436 f\SpecialChar \textcompwordmark{}
20445 \begin_layout Standard
20458 endf\SpecialChar \textcompwordmark{}
20461 MyEndf\SpecialChar \textcompwordmark{}
20465 \begin_layout Standard
20471 \begin_layout Standard
20472 The commands allow you to redefine the floats so that the caption is set
20474 For figure floats use the command
20477 \begin_layout Standard
20485 \begin_layout Standard
20486 in ERT before the float.
20487 Behind the float insert the command
20490 \begin_layout Standard
20498 \begin_layout Standard
20499 in ERT to get back to the original float definition.
20502 \begin_layout Standard
20503 For table floats use the corresponding commands
20506 \begin_layout Standard
20520 \begin_layout Standard
20521 Figure\InsetSpace ~
20523 \begin_inset LatexCommand ref
20524 reference "fig:cap-beside-fig"
20528 and Table\InsetSpace ~
20530 \begin_inset LatexCommand ref
20531 reference "tab:cap-beside-tab"
20535 are examples where the caption is set beside.
20538 \begin_layout Standard
20539 You can see in the examples that the caption text appears at the top of
20540 the floats for table floats and at the bottom for figure floats.
20541 To change this, you can use the command
20544 \begin_layout Standard
20549 sidecaptionvpos{float type}{placement}
20552 \begin_layout Standard
20553 in the document preamble or in ERT before the float.
20554 The float type is either
20562 , the placement can be
20563 \begin_inset Quotes eld
20571 \begin_inset Quotes erd
20575 \begin_inset Quotes eld
20583 \begin_inset Quotes erd
20587 \begin_inset Quotes eld
20595 \begin_inset Quotes erd
20599 To have for example the caption of figure floats vertically centered, use
20603 \begin_layout Standard
20608 sidecaptionvpos{f\SpecialChar \textcompwordmark{}
20612 \begin_layout Standard
20613 This was used for Figure\InsetSpace ~
20615 \begin_inset LatexCommand ref
20616 reference "fig:cap-beside-fig-2"
20623 \begin_layout Standard
20624 \begin_inset VSpace medskip
20627 For more information about the package
20631 we refer to its documentation
20632 \begin_inset LatexCommand cite
20640 \begin_layout Standard
20641 \begin_inset Note Greyedout
20644 \begin_layout Standard
20654 \begin_inset LatexCommand index
20655 name "LaTeX-packages ! hypcap"
20659 , described in section\InsetSpace ~
20661 \begin_inset LatexCommand ref
20662 reference "sub:Reference-Position"
20666 , has no effect on floats with the caption set beside.
20674 \begin_layout Standard
20678 \begin_layout Standard
20690 \begin_layout Standard
20691 \begin_inset Float figure
20696 \begin_layout Standard
20697 \begin_inset Graphics
20698 filename clipart/escher-lsd.eps
20700 scaleBeforeRotation
20707 \begin_layout Standard
20708 \begin_inset Caption
20710 \begin_layout Standard
20711 \begin_inset LatexCommand label
20712 name "fig:cap-beside-fig"
20716 This is a caption beside a figure.
20729 \begin_layout Standard
20733 \begin_layout Standard
20745 \begin_layout Standard
20746 \begin_inset Float table
20751 \begin_layout Standard
20752 \begin_inset Caption
20754 \begin_layout Standard
20755 \begin_inset LatexCommand label
20756 name "tab:cap-beside-tab"
20760 This is a caption beside a table.
20768 \begin_layout Standard
20769 \begin_inset Tabular
20770 <lyxtabular version="3" rows="4" columns="5">
20772 <column alignment="center" valignment="top" leftline="true" width="0">
20773 <column alignment="center" valignment="top" leftline="true" width="0">
20774 <column alignment="center" valignment="top" leftline="true" width="0">
20775 <column alignment="center" valignment="top" leftline="true" width="0">
20776 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
20777 <row topline="true">
20778 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20781 \begin_layout Standard
20787 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20790 \begin_layout Standard
20796 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20799 \begin_layout Standard
20805 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20808 \begin_layout Standard
20814 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20817 \begin_layout Standard
20824 <row topline="true">
20825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20828 \begin_layout Standard
20834 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20837 \begin_layout Standard
20843 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20846 \begin_layout Standard
20852 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20855 \begin_layout Standard
20861 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20864 \begin_layout Standard
20871 <row topline="true">
20872 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20875 \begin_layout Standard
20881 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20884 \begin_layout Standard
20890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20893 \begin_layout Standard
20899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20902 \begin_layout Standard
20908 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20911 \begin_layout Standard
20918 <row topline="true" bottomline="true">
20919 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20922 \begin_layout Standard
20928 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20931 \begin_layout Standard
20937 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20940 \begin_layout Standard
20946 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20949 \begin_layout Standard
20955 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20958 \begin_layout Standard
20977 \begin_layout Standard
20981 \begin_layout Standard
20993 \begin_layout Standard
20997 \begin_layout Standard
21001 sidecaptionvpos{figure}{c}
21007 \begin_inset Float figure
21012 \begin_layout Standard
21013 \begin_inset Graphics
21014 filename clipart/escher-lsd.eps
21016 scaleBeforeRotation
21023 \begin_layout Standard
21024 \begin_inset Caption
21026 \begin_layout Standard
21027 \begin_inset LatexCommand label
21028 name "fig:cap-beside-fig-2"
21032 This is a vertically centered caption beside a figure.
21045 \begin_layout Standard
21049 \begin_layout Standard
21061 \begin_layout Section
21063 \begin_inset LatexCommand label
21064 name "sec:Listings-of-Floats"
21069 \begin_inset LatexCommand index
21070 name "Floats ! Float Lists"
21077 \begin_layout Standard
21078 Similar to the the table of contents where the sections of the document
21079 are listed, there are listings for all float types, like the figures of
21081 You can insert them via the
21083 Insert\SpecialChar \menuseparator
21091 \begin_layout Standard
21092 The list entries are the float captions or its short title, the float number,
21093 and the page number where they appear in the document.
21096 \begin_layout Standard
21097 You can find the list of figures and tables at the end of this document.
21100 \begin_layout Chapter
21104 \begin_layout Section
21108 \begin_layout Standard
21121 \begin_layout Standard
21129 \begin_inset LatexCommand label
21130 name "sec:LyX-Notes"
21135 \begin_inset LatexCommand index
21136 name "Notes ! LyX Notes"
21141 \begin_inset Note Note
21144 \begin_layout Standard
21147 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
21148 are displayed wrongly in PDF-bookmarks.
21149 For more information about this, have a look at
21150 \begin_inset LatexCommand cite
21163 \begin_layout Standard
21164 Notes are inserted with the toolbar button
21165 \begin_inset Graphics
21166 filename ../images/note-insert.xpm
21168 scaleBeforeRotation
21174 Insert\SpecialChar \menuseparator
21178 There are five types of notes:
21181 \begin_layout Description
21183 Note This note type is for internal notes that won't appear in the output.
21184 Its note-box looks like this:
21189 \begin_inset Graphics
21190 filename clipart/LyXNoteImageQt4.png
21193 scaleBeforeRotation
21198 \begin_inset Note Note
21201 \begin_layout Standard
21202 This is text in a note box that doesn't appear in the output.
21210 \begin_layout Description
21211 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
21212 ent, when you export the document to LaTeX via the menu
21214 File\SpecialChar \menuseparator
21215 Export\SpecialChar \menuseparator
21216 LaTeX (pdflatex) / LaTeX (plain)
21219 Its note-box looks like this:
21224 \begin_inset Graphics
21225 filename clipart/CommentNoteImageQt4.png
21228 scaleBeforeRotation
21233 \begin_inset Note Comment
21236 \begin_layout Standard
21237 This is text in a note box that only appears as comment in LaTeX-files.
21245 \begin_layout Description
21246 Greyed\InsetSpace ~
21247 Out This note will appear in the output as grey text.
21248 Its note-box looks like this:
21253 \begin_inset Graphics
21254 filename clipart/GreyedOutNoteImageQt4.png
21257 scaleBeforeRotation
21267 \begin_layout Standard
21271 renewenvironment{lyxgreyedout}
21274 \begin_layout Standard
21278 textcolor[gray]{0.8}
21288 \begin_inset Note Greyedout
21291 \begin_layout Standard
21296 \begin_layout Standard
21297 This is an example footnote within a greyed out note.
21302 of a comment that appears in the output as grey text.
21311 \begin_layout Standard
21315 renewenvironment{lyxgreyedout}
21318 \begin_layout Standard
21332 \begin_inset Note Note
21335 \begin_layout Standard
21336 The greyed out note is here redefined to show it with the original LyX definitio
21337 n because greyed out notes are redefined in the preamble of this document,
21338 as described below, to have blue text.
21347 As you can see in the example, the first line of greyed out notes is a bit
21348 indented and greyed out notes can have footnotes.
21351 \begin_layout Description
21352 Framed This note will appear in the output as framed text.
21353 Its note-box looks like this:
21358 \begin_inset Graphics
21359 filename clipart/FramedNoteImageQt4.png
21362 scaleBeforeRotation
21367 \begin_inset Note Framed
21370 \begin_layout Standard
21371 This is text in a note box that appears framed in the output.
21376 In contrary to framed boxes
21380 \begin_layout Standard
21381 Framed boxes are described in section\InsetSpace ~
21383 \begin_inset LatexCommand ref
21384 reference "sec:Framed-Boxes"
21393 the frame uses always the whole text width and the note is set into its
21397 \begin_layout Description
21398 Shaded This note will appear in the output with red background color.
21399 Its note box looks like this:
21404 \begin_inset Graphics
21405 filename clipart/ShadedNoteImageQt4.png
21408 scaleBeforeRotation
21413 \begin_inset Note Shaded
21416 \begin_layout Standard
21417 This text in a note box appears in the output with red background.
21422 In contrary to colored boxes
21426 \begin_layout Standard
21427 Colored boxes are described in section\InsetSpace ~
21429 \begin_inset LatexCommand ref
21430 reference "sec:Colored-Boxes"
21439 the note uses always the whole text width and the note is set into its
21443 \begin_layout Standard
21444 \begin_inset VSpace bigskip
21447 When you use the toolbar button
21448 \begin_inset Graphics
21449 filename ../images/note-insert.xpm
21451 scaleBeforeRotation
21461 You can switch between the five note types by right-clicking on the note-box.
21466 If you want to turn existing text into a note, mark it and click on the
21482 \begin_layout Standard
21483 \begin_inset VSpace bigskip
21486 You can change the text color of the greyed out notes in the preamble with
21487 the following command:
21490 \begin_layout Standard
21495 renewenvironment{lyxgreyedout}
21501 \begin_layout Standard
21519 \begin_layout Standard
21520 The available colors and the method to define own colors is explained in
21521 section\InsetSpace ~
21523 \begin_inset LatexCommand ref
21524 reference "sec:Colored-Tables"
21531 \begin_layout Standard
21532 Notes that appear in blue in this document are set using greyed out notes
21536 \begin_layout Standard
21537 \begin_inset VSpace bigskip
21543 \begin_layout Standard
21552 notes can be set in the
21559 \begin_layout Standard
21560 The default frame width for
21564 notes is 0.4\InsetSpace \thinspace{}
21565 pt; it can be changed by changing the size
21572 The default space between the note content and the frame is 9\InsetSpace \thinspace{}
21574 be changed by changing the size
21581 For example the frame appearance of the following
21585 note is set with the ERT commands
21588 \begin_layout Standard
21598 \begin_layout Standard
21602 \begin_layout Standard
21614 \begin_inset Note Framed
21617 \begin_layout Standard
21631 \begin_layout Standard
21645 \begin_layout Standard
21646 \begin_inset VSpace bigskip
21652 \begin_layout Standard
21657 notes the default space between the note content and the note border is
21658 3\InsetSpace \thinspace{}
21659 pt; it can be changed by changing the size
21667 The default background color red can be changed with the command
21671 def\SpecialChar \textcompwordmark{}
21679 def\SpecialChar \textcompwordmark{}
21682 command is explained in section\InsetSpace ~
21684 \begin_inset LatexCommand ref
21685 reference "sec:Colored-Tables"
21693 \begin_layout Standard
21700 \SpecialChar \textcompwordmark{}
21705 requires the LaTeX-package
21709 in the preamble, see section\InsetSpace ~
21711 \begin_inset LatexCommand ref
21712 reference "sec:Colored-Boxes"
21724 \begin_layout Standard
21725 For example the appearance of the following
21729 note is set with the ERT commands
21732 \begin_layout Standard
21745 def\SpecialChar \textcompwordmark{}
21746 inecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21749 \begin_layout Standard
21753 \begin_layout Standard
21766 \begin_layout Standard
21770 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21776 \begin_inset Note Shaded
21779 \begin_layout Standard
21782 This is yellow text in a
21792 note with darkgreen background.
21801 \begin_layout Standard
21814 \begin_layout Standard
21818 definecolor{shadecolor}{rgb}{1,0,0}
21826 \begin_layout Section
21828 \begin_inset LatexCommand label
21829 name "sec:Footnotes"
21834 \begin_inset LatexCommand index
21835 name "Notes ! Footnotes"
21840 \begin_inset LatexCommand index
21848 \begin_layout Standard
21849 Footnotes can be inserted using the toolbar button
21850 \begin_inset Graphics
21851 filename ../images/footnote-insert.xpm
21853 scaleBeforeRotation
21859 Insert\SpecialChar \menuseparator
21871 then the following footnote-box:
21872 \begin_inset Graphics
21873 filename clipart/footnoteQt4.png
21875 scaleBeforeRotation
21883 where you can enter the footnote text.
21884 If you want to turn existing text into a footnote, mark it and click on
21900 \begin_layout Standard
21901 Here is an example footnote:
21909 \begin_layout Standard
21910 \begin_inset LatexCommand label
21911 name "foot:This-is-an"
21915 This is an example footnote.
21928 \begin_layout Standard
21932 newcounter{MyRepeatFoot}
21935 \begin_layout Standard
21939 setcounter{MyRepeatFoot}{
21949 \begin_layout Standard
21950 The footnote will appear in the output as a superscript number at the text
21951 position where the footnote box is placed.
21952 The footnote text is placed at the bottom of the current page.
21953 The footnote number is calculated by LaTeX, the numbers are consecutive.
21954 It depends on your document-class, if the footnote number is reset for
21958 \begin_layout Standard
21959 Footnotes can be referenced like floats: Insert a label into the footnote
21960 and cross-reference this label in the text as described in section\InsetSpace ~
21962 \begin_inset LatexCommand ref
21963 reference "sec:Referencing-Floats"
21969 This is a cross-reference of Footnote\InsetSpace ~
21971 \begin_inset LatexCommand ref
21972 reference "foot:This-is-an"
21979 \begin_layout Standard
21980 \begin_inset VSpace defskip
21983 To use footnotes within tables, you have to use minipages, see section\InsetSpace ~
21985 \begin_inset LatexCommand ref
21986 reference "sec:Minipages"
21991 Footnotes within longtables are described in section\InsetSpace ~
21993 \begin_inset LatexCommand ref
21994 reference "sub:Footnotes-in-Longtables"
22001 \begin_layout Standard
22002 \begin_inset VSpace defskip
22005 To create only a mark for a footnote, use the command
22009 footnotemark[number]
22012 This is used when you have the same annotation several times in a text
22013 but doesn't want to print the footnote text every time.
22016 the number of the repeating footnote while you are writing the text, you
22017 have to store its number.
22018 For the following footnote mark example, these commands were inserted in
22019 ERT behind Footnote\InsetSpace ~
22021 \begin_inset LatexCommand ref
22022 reference "foot:This-is-an"
22026 to store the footnote number:
22029 \begin_layout Standard
22034 newcounter{MyRepeatFoot}
22038 setcounter{MyRepeatFoot}{
22043 \begin_layout Standard
22044 The footnote mark was then created with this command:
22047 \begin_layout Standard
22057 \begin_layout Standard
22058 Here is an example footnote mark:
22066 \begin_layout Standard
22080 \begin_layout Subsection
22082 \begin_inset LatexCommand label
22083 name "sub:Footnote-Numbering"
22088 \begin_inset LatexCommand index
22089 name "Footnotes ! Numbering"
22096 \begin_layout Standard
22097 To reset the footnote number back to 1 after each section
22099 , add this command to your document preamble:
22102 \begin_layout Standard
22107 @addtoreset{footnote}{section}
22110 \begin_layout Standard
22111 \begin_inset VSpace bigskip
22114 The following preamble command changes the footnote numbering style to small
22118 \begin_layout Standard
22130 \begin_layout Standard
22134 \begin_layout Standard
22147 This is a footnote with roman numbering:
22151 \begin_layout Standard
22152 This is an example footnote with roman numbering.
22160 \begin_layout Standard
22161 To change the numbering style to capital roman numerals replace in the command
22176 \begin_inset Quotes eld
22180 \begin_inset Quotes erd
22183 footnotes with capital or small Latin letters use
22197 \begin_inset Quotes eld
22201 \begin_inset Quotes erd
22204 footnotes with symbols use
22213 \begin_layout Standard
22214 \begin_inset Note Greyedout
22217 \begin_layout Standard
22222 You can only number 26 footnotes with Latin letters, because this numbering
22223 is limited to single letters.
22231 \begin_inset Note Greyedout
22234 \begin_layout Standard
22239 You can only number 9 footnotes with symbols.
22247 \begin_layout Standard
22248 To return to the default numbering style when you changed to another one,
22261 in the command above.
22265 \begin_layout Standard
22281 \begin_layout Standard
22282 \begin_inset VSpace bigskip
22288 \begin_layout Standard
22289 If you want to have footnotes numbered in the scheme
22290 \begin_inset Quotes eld
22294 \begin_inset Quotes erd
22297 , add the following command to your document preamble:
22300 \begin_layout Standard
22305 numberwithin{footnote}{chapter}
22308 \begin_layout Standard
22309 To be able to use the command
22320 in the document settings the option
22330 \begin_layout Standard
22334 \begin_layout Standard
22338 numberwithin{footnote}{chapter}
22343 This is another example footnote:
22349 \begin_layout Standard
22350 This is a footnote numbered in the scheme
22351 \begin_inset Quotes eld
22355 \begin_inset Quotes erd
22369 \begin_layout Standard
22385 \begin_layout Standard
22386 \begin_inset Note Greyedout
22389 \begin_layout Standard
22400 always prints out the footnote number as arabic number; previous redefinitions
22401 to get non-arabic numbers are overwritten.
22409 \begin_layout Standard
22410 So to get for example the scheme
22411 \begin_inset Quotes eld
22417 \begin_inset Quotes erd
22420 , use this command instead of
22429 \begin_layout Standard
22443 \begin_layout Subsection
22445 \begin_inset LatexCommand index
22446 name "Footnotes ! Placement"
22453 \begin_layout Standard
22454 If you have several footnotes in one page, they appear without vertical
22455 space between them at the bottom of the page.
22456 To make them better readable you can e.\InsetSpace \thinspace{}
22458 add 1.5\InsetSpace \thinspace{}
22459 mm space with the following
22463 \begin_layout Standard
22485 \begin_layout Standard
22486 \begin_inset VSpace bigskip
22489 In a two-column document the footnotes appear at the bottom of every column,
22490 see Figure\InsetSpace ~
22492 \begin_inset LatexCommand ref
22493 reference "fig:Standard-footnote-placement"
22498 If the footnotes should only appear at the bottom of the right column,
22499 as in Figure\InsetSpace ~
22501 \begin_inset LatexCommand ref
22502 reference "fig:Footnote-placement-in"
22506 , use the LaTeX-package
22511 \begin_inset LatexCommand index
22512 name "LaTeX-packages ! ftnright"
22516 with this command in the document preamble:
22519 \begin_layout Standard
22524 usepackage{ftnright}
22527 \begin_layout Standard
22528 \begin_inset Float figure
22534 \begin_layout Standard
22538 \begin_layout Standard
22548 \begin_inset Graphics
22549 filename clipart/without_fntright.pdf
22551 scaleBeforeRotation
22559 \begin_layout Standard
22569 \begin_layout Standard
22570 \begin_inset Caption
22572 \begin_layout Standard
22573 \begin_inset LatexCommand label
22574 name "fig:Standard-footnote-placement"
22578 Standard footnote placement in two-column documents.
22591 \begin_layout Standard
22592 \begin_inset Float figure
22598 \begin_layout Standard
22602 \begin_layout Standard
22612 \begin_inset Graphics
22613 filename clipart/with_fntright.pdf
22615 scaleBeforeRotation
22623 \begin_layout Standard
22633 \begin_layout Standard
22634 \begin_inset Caption
22636 \begin_layout Standard
22637 \begin_inset LatexCommand label
22638 name "fig:Footnote-placement-in"
22642 Footnote placement in two-column documents when the LaTeX-package
22659 \begin_layout Standard
22660 \begin_inset VSpace bigskip
22663 In some scientific literature it is usual to collect the footnotes and print
22664 them in a separate paragraph at the the end of a section, like in Figure\InsetSpace ~
22666 \begin_inset LatexCommand ref
22667 reference "fig:Endnotes----footnotes"
22672 They are then so called
22673 \begin_inset Quotes eld
22677 \begin_inset Quotes erd
22681 To use endnotes instead of footnotes in your document, load the LaTeX-package
22687 \begin_inset LatexCommand index
22688 name "LaTeX-packages ! endnotes"
22692 with the document preamble lines
22695 \begin_layout Standard
22700 usepackage{endnotes}
22711 \begin_layout Standard
22712 To insert the collected footnotes, insert the command
22715 \begin_layout Standard
22723 \begin_layout Standard
22724 in ERT at the the end of a section or chapter.
22727 \begin_layout Standard
22728 \begin_inset Float figure
22733 \begin_layout Standard
22738 \begin_layout Standard
22748 \begin_inset Graphics
22749 filename clipart/endnotes.pdf
22750 scaleBeforeRotation
22758 \begin_layout Standard
22768 \begin_layout Standard
22769 \begin_inset Caption
22771 \begin_layout Standard
22772 \begin_inset LatexCommand label
22773 name "fig:Endnotes----footnotes"
22777 Endnotes -- footnotes are printed in a separate paragraph at the end of
22778 sections or chapters.
22791 \begin_layout Standard
22792 \begin_inset VSpace medskip
22795 The paragraph heading for the endnotes isn't automatically translated into
22796 the document language, this must be done manually.
22797 The following preamble command translate the default English name
22798 \begin_inset Quotes eld
22802 \begin_inset Quotes erd
22805 to the German translation
22806 \begin_inset Quotes eld
22810 \begin_inset Quotes erd
22816 \begin_layout Standard
22823 notesname}{Anmerkungen}
22826 \begin_layout Standard
22827 \begin_inset VSpace medskip
22830 The numbering of endnotes can be changed like the footnote numbering as
22831 described in section\InsetSpace ~
22833 \begin_inset LatexCommand ref
22834 reference "sub:Footnote-Numbering"
22838 ; just replace the command
22851 To reset the endnote number use the command
22857 as described in section\InsetSpace ~
22859 \begin_inset LatexCommand ref
22860 reference "sub:Footnote-Numbering"
22864 and replace the command parameter
22875 \begin_layout Standard
22876 To create only a mark for an endnote, use the command
22880 endnotemark[number]
22882 similar to the command
22888 , described in section\InsetSpace ~
22890 \begin_inset LatexCommand ref
22891 reference "sec:Footnotes"
22898 \begin_layout Standard
22899 \begin_inset VSpace bigskip
22902 Footnotes can also be placed in the page margin and the footnote text alignment
22903 can be changed, see the LaTeX-package
22908 \begin_inset LatexCommand index
22909 name "LaTeX-packages ! footmisc"
22914 \begin_inset LatexCommand cite
22919 for more information about this.
22922 \begin_layout Standard
22923 For various further footnote formatting issues have a look at LaTeX-books,
22925 \begin_inset LatexCommand cite
22926 key "latexcompanion,latexguide,latexbook"
22933 \begin_layout Section
22935 \begin_inset LatexCommand index
22936 name "Notes ! Margin Notes"
22943 \begin_layout Standard
22944 Margin notes look and behave in LyX like footnotes.
22945 They are inserted via the menu
22947 Insert\SpecialChar \menuseparator
22948 Marginal\InsetSpace ~
22951 or the toolbar button
22952 \begin_inset Graphics
22953 filename ../images/marginalnote-insert.xpm
22955 scaleBeforeRotation
22970 \begin_inset Quotes eld
22974 \begin_inset Quotes erd
22977 appears where you can enter the text of the margin note.
22980 \begin_layout Standard
22981 At the side is an example margin note.
22985 \begin_inset Marginal
22988 \begin_layout Standard
22989 This is a margin note.
22997 \begin_layout Standard
22998 Margin notes appear at the right side in single-sided documents.
22999 In double-sided documents they appear in the outer margin -- left on even
23000 pages, right on odd pages.
23001 The text of margin notes is aligned opposite to the outer margin -- right-align
23002 ed when the note appears in the left margin.
23003 The first line of the margin note is placed at the position of the text
23004 line where it is inserted in the document.
23007 \begin_layout Standard
23008 \begin_inset VSpace bigskip
23011 To place the margin note in the inner margin, add the command
23014 \begin_layout Standard
23022 \begin_layout Standard
23023 in ERT before a margin note.
23024 The new placement is valid for all following margin notes.
23028 \begin_layout Standard
23038 \begin_inset Marginal
23041 \begin_layout Standard
23042 This is a margin note in the inner margin.
23054 \begin_inset Note Greyedout
23057 \begin_layout Standard
23062 There is often not enough space in the inner margin so that the notes are
23063 not correctly displayed in the output.
23071 \begin_layout Standard
23072 To return to the default placement insert the command
23075 \begin_layout Standard
23083 \begin_layout Standard
23088 \begin_layout Standard
23098 \begin_inset Note Greyedout
23101 \begin_layout Standard
23106 The command is ignored when it is within a paragraph where also the command
23121 \begin_layout Standard
23122 \begin_inset VSpace bigskip
23129 \begin_inset Marginal
23132 \begin_layout Standard
23133 AVeryLongMarginParWord that isn't hyphenated.
23141 Similar to the case described in section\InsetSpace ~
23143 \begin_inset LatexCommand ref
23144 reference "sub:Multiple-Lines-in"
23148 , long words cannot be hyphenated when they are the first word in a margin
23150 To avoid this, insert the command
23153 \begin_layout Standard
23161 \begin_layout Standard
23162 in ERT before the word
23166 \begin_inset Marginal
23169 \begin_layout Standard
23173 \begin_layout Standard
23182 AVeryLongMarginParWord that is hyphenated.
23190 \begin_layout Standard
23191 \begin_inset VSpace bigskip
23197 \begin_layout Standard
23198 \begin_inset Note Greyedout
23201 \begin_layout Standard
23206 Margin notes can normally not be used inside tables, floats, and footnotes.
23214 \begin_layout Standard
23215 \begin_inset VSpace bigskip
23221 \begin_layout Standard
23225 \begin_layout Standard
23235 \begin_inset Note Note
23238 \begin_layout Standard
23239 The following section will only be displayed when you have the LaTeX-package
23252 \begin_layout Standard
23253 This restriction can be evaded by using the LaTeX-package
23258 \begin_inset LatexCommand index
23259 name "LaTeX-packages ! marginnote"
23264 By adding these two lines to your document preamble, the command used by
23265 LyX for margin notes is redefined to use the command provided by the
23272 \begin_layout Standard
23277 usepackage{marginnote}
23288 \begin_layout Standard
23289 This is also used in this document because
23293 has another useful feature: You can set a vertical offset for the note.
23294 This is often needed when too many margin notes are too close together
23295 or for a better page layout.
23296 The offset is set in LyX as ERT directly behind the margin note in the
23300 \begin_layout Standard
23306 \begin_layout Standard
23307 where the offset is a length with one of the units listed in Table\InsetSpace ~
23309 \begin_inset LatexCommand ref
23310 reference "tab:Units"
23315 A negative value shifts the note up, a positive value shifts it down.
23319 For example the margin note beside this text line is shifted up 1.5\InsetSpace \thinspace{}
23322 \begin_inset Quotes eld
23332 \begin_inset Quotes erd
23336 \begin_inset Marginal
23339 \begin_layout Standard
23340 This margin note is shifted up 1.5\InsetSpace \thinspace{}
23341 cm from its original position.
23353 \begin_layout Standard
23363 \begin_layout Standard
23364 \begin_inset VSpace medskip
23371 you can also change the alignment of the text in the margin note.
23372 For example the commands
23375 \begin_layout Standard
23382 raggedleftmarginnote}{
23390 raggedrightmarginnote}{
23395 \begin_layout Standard
23396 set the alignment to centered.
23401 raggedleftmarginnote
23403 denotes margin notes that appear at the left side.
23410 \begin_layout Standard
23416 raggedleftmarginnote}{
23421 \begin_layout Standard
23427 raggedrightmarginnote}{
23435 \begin_inset Marginal
23438 \begin_layout Standard
23439 The text of this margin note is centered.
23450 \begin_layout Standard
23457 raggedleftmarginnote}{
23465 raggedrightmarginnote}{
23474 \begin_layout Standard
23480 raggedleftmarginnote}{
23485 \begin_layout Standard
23491 raggedrightmarginnote}{
23501 \begin_layout Standard
23502 \begin_inset VSpace medskip
23505 For the other features of
23509 we refer to its documentation
23510 \begin_inset LatexCommand cite
23518 \begin_layout Standard
23519 \begin_inset VSpace bigskip
23522 You can adjust the layout of margin notes by changing its definition.
23523 To create for example a header for all margin notes with the underlined,
23524 sans-serif, and bold header text
23525 \begin_inset Quotes eld
23537 \begin_inset Quotes erd
23540 , add this to your document preamble:
23543 \begin_layout Standard
23566 \begin_layout Standard
23583 underbar{Attention!}}}%
23589 \begin_layout Standard
23607 \begin_layout Standard
23614 \begin_layout Standard
23625 \begin_layout Standard
23636 \begin_layout Standard
23644 underbar{Attention!}}}%
23647 \begin_layout Standard
23661 \begin_inset Marginal
23664 \begin_layout Standard
23665 This is a margin note with a defined heading.
23677 \begin_layout Standard
23691 \begin_layout Standard
23708 \begin_inset Note Note
23711 \begin_layout Standard
23712 The margin note format is changed only for this example.
23720 \begin_layout Standard
23724 \begin_layout Standard
23734 \begin_inset Note Note
23737 \begin_layout Standard
23738 The following will be displayed when the LaTeX-package
23750 \begin_layout Standard
23751 You need to install the LaTeX-package
23755 to see the following part of this section in the output.
23758 \begin_layout Standard
23762 \begin_layout Standard
23774 \begin_layout Chapter
23778 \begin_layout Section
23780 \begin_inset LatexCommand index
23781 name "Boxes ! Introduction"
23788 \begin_layout Standard
23789 Boxes are used to format a block of text.
23790 Boxes can be used to write documents with multiple languages, see section\InsetSpace ~
23792 \begin_inset LatexCommand ref
23793 reference "sec:Minipages"
23797 , to frame texts, see section\InsetSpace ~
23799 \begin_inset LatexCommand ref
23800 reference "sec:Framed-Boxes"
23804 , to prevent words to be hyphenated, see section\InsetSpace ~
23806 \begin_inset LatexCommand ref
23807 reference "sec:Prevent-Hyphenation"
23811 , to align text, see section\InsetSpace ~
23813 \begin_inset LatexCommand ref
23814 reference "sub:Vertical-Alignment"
23818 , or to set the background color of texts, see section\InsetSpace ~
23820 \begin_inset LatexCommand ref
23821 reference "sec:Colored-Boxes"
23828 \begin_layout Standard
23829 Boxes can be inserted with the menu
23831 Insert\SpecialChar \menuseparator
23835 A grey box with the label
23840 \begin_inset Graphics
23841 filename clipart/BoxInsetDefaultQt4.png
23843 scaleBeforeRotation
23847 , will be inserted.
23848 The box type can be specified by right-clicking on the box.
23849 The appearing box dialog offers the
23867 is the default for new boxes and is explained in section\InsetSpace ~
23869 \begin_inset LatexCommand ref
23870 reference "sec:Minipages"
23878 is described in section\InsetSpace ~
23880 \begin_inset LatexCommand ref
23881 reference "sec:Parboxes"
23888 \begin_layout Standard
23889 Boxes aren't numbered and can therefore not be referenced like floats or
23893 \begin_layout Standard
23894 \begin_inset Note Greyedout
23897 \begin_layout Standard
23902 Due to a bug in LyX you have to insert a protected space behind a box when
23903 you want to separate in a line the box from the following text with a space.
23911 \begin_layout Standard
23912 \begin_inset Note Greyedout
23915 \begin_layout Standard
23920 Boxes must not be the item in an
23936 \begin_layout Standard
23937 \begin_inset Note Greyedout
23940 \begin_layout Standard
23945 For an unknown reason you can only set the
23954 when you use a framed box.
23960 type and without frames are explained in section\InsetSpace ~
23962 \begin_inset LatexCommand ref
23963 reference "sec:Prevent-Hyphenation"
23975 \begin_layout Section
23977 \begin_inset LatexCommand label
23978 name "sec:Box-Dialog"
23983 \begin_inset LatexCommand index
23984 name "Boxes ! Box Dialog"
23989 \begin_inset LatexCommand index
23990 name "Boxes ! Alignment"
23997 \begin_layout Standard
23998 In the box dialog you can adjust the box geometry in the fields
24007 The available units for the geometry are explained in Table\InsetSpace ~
24009 \begin_inset LatexCommand ref
24010 reference "tab:Units"
24019 offers the following additional sizes:
24022 \begin_layout Description
24023 Depth This is the plain text
24024 \begin_inset Quotes eld
24028 \begin_inset Quotes erd
24032 It ignores the total depth when there are multiple text lines in the box:
24039 \begin_inset Box Boxed
24048 height_special "depth"
24051 \begin_layout Standard
24053 Box height set to 1\InsetSpace \thinspace{}
24066 \begin_layout Description
24067 Height This is the heigth of the text that is inside the box.
24068 A value of e.\InsetSpace \thinspace{}
24070 2 for this size will set the box heigth to 2 times the text
24072 \begin_inset Box Boxed
24081 height_special "height"
24084 \begin_layout Standard
24086 Box height set to 2\InsetSpace \thinspace{}
24095 \begin_layout Description
24097 Height This is the Height\InsetSpace \thinspace{}
24098 +\InsetSpace \thinspace{}
24100 \begin_inset Box Boxed
24109 height_special "totalheight"
24112 \begin_layout Standard
24114 Box height set to 1\InsetSpace \thinspace{}
24124 \begin_layout Description
24125 Width This set the width of the box as heigth:
24126 \begin_inset Box Boxed
24135 height_special "width"
24138 \begin_layout Standard
24140 Box height set to 1\InsetSpace \thinspace{}
24149 \begin_layout Standard
24150 \begin_inset VSpace bigskip
24153 When you have chosen an
24158 , the vertical box alignment can be:
24161 \begin_layout Description
24162 Top This is an example text line.
24164 \begin_inset Box Boxed
24173 height_special "totalheight"
24176 \begin_layout Standard
24178 This box is top-aligned.
24184 This is an example text line.
24187 \begin_layout Description
24188 Middle This is an example text line.
24190 \begin_inset Box Boxed
24199 height_special "totalheight"
24202 \begin_layout Standard
24204 This box is middle-aligned.
24210 This is an example text line.
24213 \begin_layout Description
24214 Bottom This is an example text line.
24216 \begin_inset Box Boxed
24225 height_special "totalheight"
24228 \begin_layout Standard
24230 This box is bottom-aligned.
24236 This is an example text line.
24239 \begin_layout Standard
24240 The horizontal box alignment can be set via LyX's paragraph dialog when
24241 you set the box into its own paragraph.
24244 \begin_layout Standard
24245 \begin_inset VSpace bigskip
24248 When you have chosen an
24253 , the box content can be vertical aligned to:
24256 \begin_layout Description
24257 top This is an example text line.
24259 \begin_inset Box Boxed
24268 height_special "totalheight"
24271 \begin_layout Standard
24273 This box text is top-aligned.
24279 This is an example text line.
24282 \begin_layout Description
24283 middle This is an example text line.
24285 \begin_inset Box Boxed
24294 height_special "totalheight"
24297 \begin_layout Standard
24299 This box text is middle-aligned.
24305 This is an example text line.
24308 \begin_layout Description
24309 bottom This is an example text line.
24311 \begin_inset Box Boxed
24320 height_special "totalheight"
24323 \begin_layout Standard
24325 This box text is bottom-aligned.
24331 This is an example text line.
24334 \begin_layout Description
24335 stretch This is an example text line.
24337 \begin_inset Box Boxed
24346 height_special "totalheight"
24349 \begin_layout Standard
24354 \begin_layout Standard
24359 \begin_layout Standard
24367 This is an example text line.
24370 \begin_layout Standard
24371 To stretch the box content, it must consist of more than one paragraph.
24372 In the example above every text line is in an own paragraph.
24375 \begin_layout Standard
24376 \begin_inset VSpace bigskip
24379 To align the box content horizontally you can use LyX's paragraph dialog
24380 when you have chosen an
24388 \begin_layout Standard
24390 \begin_inset Box Boxed
24399 height_special "totalheight"
24402 \begin_layout Standard
24407 \begin_layout Standard
24412 \begin_layout Standard
24422 \begin_layout Standard
24423 If you haven't set an
24428 , you can align the box content horizontally in the box dialog.
24431 \begin_layout Standard
24433 \begin_inset Box Boxed
24442 height_special "totalheight"
24445 \begin_layout Standard
24447 This box text is horizontally stretched.
24455 \begin_layout Section
24457 \begin_inset LatexCommand label
24458 name "sec:Framed-Boxes"
24463 \begin_inset LatexCommand index
24464 name "Boxes ! Frames"
24471 \begin_layout Standard
24472 The frame style of the box can be specified in the box-dialog in the drop-down
24478 The following frame types are possible:
24481 \begin_layout Description
24482 Rectangular\InsetSpace ~
24483 box This draws a rectangle frame around the box.
24484 The frame line thickness has the size of
24492 \begin_inset Box Boxed
24501 height_special "totalheight"
24504 \begin_layout Standard
24514 \begin_layout Description
24517 thin This draws an oval frame around the box.
24518 The frame line thickness has the size 0.4\InsetSpace \thinspace{}
24521 \begin_inset Box ovalbox
24530 height_special "totalheight"
24533 \begin_layout Standard
24543 \begin_layout Description
24546 thick This draws an oval frame around the box.
24547 The frame line thickness has the size 0.8\InsetSpace \thinspace{}
24550 \begin_inset Box Ovalbox
24559 height_special "totalheight"
24562 \begin_layout Standard
24572 \begin_layout Description
24573 Shadow\InsetSpace ~
24574 box This draws a rectangle frame with a shadow around the box.
24575 The frame line thickness has the size of
24581 , the shadow has a width of 4\InsetSpace \thinspace{}
24584 \begin_inset Box Shadowbox
24593 height_special "totalheight"
24596 \begin_layout Standard
24606 \begin_layout Description
24607 Double\InsetSpace ~
24608 box This draws a double-line rectangle frame around the box.
24609 The line thickness of the inner frame is 0.75\InsetSpace \thinspace{}
24616 , the thickness of the outer frame is 1.5\InsetSpace \thinspace{}
24624 The distance between the lines is 1.5\InsetSpace \thinspace{}
24631 \InsetSpace \thinspace{}
24632 +\InsetSpace \thinspace{}
24633 0.5\InsetSpace \thinspace{}
24636 \begin_inset Box Doublebox
24645 height_special "totalheight"
24648 \begin_layout Standard
24658 \begin_layout Standard
24659 \begin_inset VSpace bigskip
24662 LyX's box label will change to the used frame style when you set a frame.
24663 To be able to use the different frame styles, the LaTeX-package
24668 \begin_inset LatexCommand index
24669 name "LaTeX-packages ! fancybox"
24676 \begin_layout Standard
24677 \begin_inset VSpace bigskip
24680 The default value for the size
24686 is 0.4\InsetSpace \thinspace{}
24688 It can be changed with the following command in ERT to e.\InsetSpace \thinspace{}
24690 2\InsetSpace \thinspace{}
24694 \begin_layout Standard
24704 \begin_layout Standard
24708 \begin_layout Standard
24720 \begin_inset Box Boxed
24729 height_special "totalheight"
24732 \begin_layout Standard
24734 Rectangular box with
24740 \InsetSpace \thinspace{}
24741 =\InsetSpace \thinspace{}
24742 2\InsetSpace \thinspace{}
24752 \begin_layout Standard
24766 \begin_layout Standard
24767 \begin_inset VSpace bigskip
24770 The space between the frame and the box content is for all frame styles
24771 by default 3\InsetSpace \thinspace{}
24773 You can change it by setting the length
24780 For example the command
24783 \begin_layout Standard
24793 \begin_layout Standard
24794 sets the value to 10\InsetSpace \thinspace{}
24795 pt, like for the following box:
24798 \begin_layout Standard
24802 \begin_layout Standard
24814 \begin_inset Box Boxed
24823 height_special "totalheight"
24826 \begin_layout Standard
24828 Rectangular box with
24834 \InsetSpace \thinspace{}
24835 =\InsetSpace \thinspace{}
24836 10\InsetSpace \thinspace{}
24846 \begin_layout Standard
24860 \begin_layout Standard
24861 \begin_inset VSpace bigskip
24864 The diameter of the round corners of the oval boxes can be set with the
24875 \begin_layout Standard
24883 \begin_layout Standard
24884 sets the diameter to 1\InsetSpace \thinspace{}
24889 \begin_layout Standard
24897 \begin_layout Standard
24898 sets the diameter to
24900 num\InsetSpace \thinspace{}
24901 ×\InsetSpace \thinspace{}
24902 minimum(width and heigth of box)
24914 \begin_layout Standard
24918 \begin_layout Standard
24928 \begin_inset Box Ovalbox
24937 height_special "totalheight"
24940 \begin_layout Standard
24948 \InsetSpace \thinspace{}
24949 =\InsetSpace \thinspace{}
24950 1.5\InsetSpace \thinspace{}
24960 \begin_layout Standard
24972 \begin_layout Standard
24973 \begin_inset VSpace bigskip
24976 The size of the shadow can be adjusted by changing the length
24983 It it set to 2\InsetSpace \thinspace{}
24984 pt for the following box by this command:
24987 \begin_layout Standard
24997 \begin_layout Standard
25001 \begin_layout Standard
25013 \begin_inset Box Shadowbox
25022 height_special "totalheight"
25025 \begin_layout Standard
25033 \InsetSpace \thinspace{}
25034 =\InsetSpace \thinspace{}
25035 2\InsetSpace \thinspace{}
25045 \begin_layout Standard
25059 \begin_layout Standard
25060 \begin_inset VSpace bigskip
25063 Changed lengths and widths are valid for all boxes following the commands
25067 \begin_layout Section
25069 \begin_inset LatexCommand label
25070 name "sec:Minipages"
25075 \begin_inset LatexCommand index
25076 name "Boxes ! Minipages"
25083 \begin_layout Standard
25084 Minipages are treated by LaTeX as pages within pages and can therefore for
25085 example have their own footnotes.
25088 \begin_layout Standard
25089 Minipages are useful when you write documents with different languages.
25092 \begin_layout Standard
25093 Below are two example minipages side by side.
25094 Their width is set to 45\InsetSpace \thinspace{}
25095 col% and they are separated by a horizontal fill,
25096 that was inserted via the menu
25098 Insert\SpecialChar \menuseparator
25099 Special\InsetSpace ~
25100 Formatting\SpecialChar \menuseparator
25101 Horizontal\InsetSpace ~
25107 \begin_layout Standard
25108 \begin_inset Box Frameless
25117 height_special "totalheight"
25120 \begin_layout Standard
25123 Dies ist ein deutscher Text.
25124 Dies ist ein deutscher Text.
25125 Dies ist ein deutscher Text.
25126 Dies ist ein deutscher Text.
25127 Dies ist ein deutscher Text.
25128 Dies ist ein deutscher Text.
25129 Dies ist ein deutscher Text.
25130 Dies ist ein deutscher Text.
25131 Dies ist ein deutscher Text.
25132 Dies ist ein deutscher Text.
25133 Dies ist ein deutscher Text.
25134 Dies ist ein deutscher Text.
25135 Dies ist ein deutscher Text
25139 \begin_layout Standard
25142 Dies ist eine deutsche Fußnote.
25148 Dies ist ein deutscher Text.
25149 Dies ist ein deutscher Text.
25157 \begin_inset Box Frameless
25166 height_special "totalheight"
25169 \begin_layout Standard
25170 This is an English Text.
25171 This is an English Text.
25172 This is an English Text.
25173 This is an English Text.
25174 This is an English Text.
25175 This is an English Text.
25176 This is an English Text.
25177 This is an English Text.
25178 This is an English Text.
25179 This is an English Text.
25180 This is an English Text.
25181 This is an English Text.
25182 This is an English Text.
25183 This is an English Text.
25184 This is an English Text.
25185 This is an English Text.
25189 \begin_layout Standard
25190 This is an English footnote.
25195 This is an English Text.
25204 \begin_layout Standard
25205 \begin_inset VSpace bigskip
25208 Another application for minipages are footnotes within tables.
25209 Due to a LaTeX restriction footnotes within tables doesn't appear at the
25210 bottom of the current page.
25211 But when you put the table with the footnote to a minipage, the footnote
25212 will appear at its bottom, numbered with Latin letters.
25213 The footnote number is reset to 1 in every minipage but not outside the
25217 \begin_layout Standard
25218 The footnote of this table doesn't appear:
25219 \begin_inset Tabular
25220 <lyxtabular version="3" rows="3" columns="4">
25222 <column alignment="center" valignment="top" leftline="true" width="0pt">
25223 <column alignment="center" valignment="top" leftline="true" width="0pt">
25224 <column alignment="center" valignment="top" leftline="true" width="0pt">
25225 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25226 <row topline="true">
25227 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25230 \begin_layout Standard
25236 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25239 \begin_layout Standard
25245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25248 \begin_layout Standard
25253 \begin_layout Standard
25254 This is a footnote within a table.
25264 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25267 \begin_layout Standard
25274 <row topline="true">
25275 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25278 \begin_layout Standard
25284 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25287 \begin_layout Standard
25293 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25296 \begin_layout Standard
25302 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25305 \begin_layout Standard
25312 <row topline="true" bottomline="true">
25313 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25316 \begin_layout Standard
25322 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25325 \begin_layout Standard
25331 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25334 \begin_layout Standard
25340 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25343 \begin_layout Standard
25357 \begin_layout Standard
25359 \begin_inset Box Frameless
25368 height_special "totalheight"
25371 \begin_layout Standard
25373 \begin_inset Tabular
25374 <lyxtabular version="3" rows="3" columns="4">
25376 <column alignment="center" valignment="top" leftline="true" width="0pt">
25377 <column alignment="center" valignment="top" leftline="true" width="0pt">
25378 <column alignment="center" valignment="top" leftline="true" width="0pt">
25379 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25380 <row topline="true">
25381 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25384 \begin_layout Standard
25390 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25393 \begin_layout Standard
25399 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25402 \begin_layout Standard
25407 \begin_layout Standard
25408 This is a footnote within a table.
25418 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25421 \begin_layout Standard
25428 <row topline="true">
25429 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25432 \begin_layout Standard
25438 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25441 \begin_layout Standard
25447 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25450 \begin_layout Standard
25456 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25459 \begin_layout Standard
25466 <row topline="true" bottomline="true">
25467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25470 \begin_layout Standard
25476 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25479 \begin_layout Standard
25485 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25488 \begin_layout Standard
25494 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25497 \begin_layout Standard
25516 \begin_layout Standard
25517 \begin_inset VSpace bigskip
25520 The document-wide paragraph settings are ignored within minipages.
25521 That means that there will be no space between paragraphs in minipages
25522 although you set it to e.\InsetSpace \thinspace{}
25528 in the document settings.
25531 \begin_layout Standard
25532 Minipages can also be used to set a background color for text parts, see
25533 section\InsetSpace ~
25535 \begin_inset LatexCommand ref
25536 reference "sub:Color-for-Paragraphs"
25543 \begin_layout Standard
25544 \begin_inset Note Greyedout
25547 \begin_layout Standard
25552 You cannot have floats or margin notes inside minipages but minipages can
25553 be used inside tables, floats, and other boxes.
25561 \begin_layout Section
25563 \begin_inset LatexCommand label
25564 name "sec:Parboxes"
25569 \begin_inset LatexCommand index
25570 name "Boxes ! Parboxes"
25577 \begin_layout Standard
25578 Parboxes are very similar to minipages with the difference that they cannot
25580 The main difference to minipages is that minipages are in contrary to parboxes
25581 no real boxes but LaTeX-environments.
25584 \begin_layout Standard
25586 \begin_inset Box Frameless
25595 height_special "totalheight"
25598 \begin_layout Standard
25599 This a text within a parbox.
25600 This a text within a parbox.
25603 \begin_layout Standard
25604 This footnote won't appear:
25608 \begin_layout Standard
25609 This footnote is inside a parbox and will therefore not appear.
25622 \begin_layout Section
25623 Boxes for Words and Characters
25624 \begin_inset LatexCommand index
25625 name "Boxes ! for Characters"
25632 \begin_layout Subsection
25633 Prevent Hyphenation
25634 \begin_inset LatexCommand label
25635 name "sec:Prevent-Hyphenation"
25640 \begin_inset LatexCommand index
25641 name "Boxes ! to Prevent Hyphenation"
25648 \begin_layout Standard
25649 You can use a special kind of boxes to prevent words or text to be hyphenated.
25652 e is an example text:
25655 \begin_layout Standard
25656 This line is an example to show how you can prevent the hyphenation of
25657 \begin_inset Quotes eld
25661 \begin_inset Quotes erd
25667 \begin_layout Standard
25668 To prevent the hyphenation of the word
25669 \begin_inset Quotes eld
25673 \begin_inset Quotes erd
25679 \begin_layout Standard
25687 \begin_layout Standard
25688 in ERT before the word.
25689 Behind the word insert a closing brace
25690 \begin_inset Quotes eld
25698 \begin_inset Quotes erd
25705 \begin_layout Standard
25717 \begin_layout Standard
25718 This is the result:
25721 \begin_layout Standard
25722 This line is an example to show how you can prevent the hyphenation of
25726 \begin_layout Standard
25736 \begin_inset Quotes eld
25740 \begin_inset Quotes erd
25747 \begin_layout Standard
25757 \begin_layout Standard
25758 You can alternatively set the command
25759 \begin_inset Quotes eld
25769 \begin_inset Quotes grd
25772 as ERT directly before the word:
25775 \begin_layout Standard
25776 This line is an example to show how you can prevent the hyphenation of
25777 \begin_inset Quotes eld
25784 \begin_layout Standard
25794 \begin_inset Quotes erd
25800 \begin_layout Standard
25801 Of course the word now protrudes over the side margin.
25802 To avoid this, add via the menu
25804 Insert\SpecialChar \menuseparator
25805 Special\InsetSpace ~
25806 Formatting\SpecialChar \menuseparator
25814 ) a line break before the word:
25817 \begin_layout Standard
25818 This line is an example to show how you can prevent the hyphenation of
25824 \begin_layout Standard
25834 \begin_inset Quotes eld
25838 \begin_inset Quotes erd
25845 \begin_layout Standard
25855 \begin_layout Subsection
25857 \begin_inset LatexCommand label
25858 name "sub:Vertical-Alignment"
25863 \begin_inset LatexCommand index
25864 name "Boxes ! for Vertical Alignment"
25869 \begin_inset LatexCommand index
25870 name "Boxes ! Raiseboxes"
25877 \begin_layout Standard
25878 With the help of the command
25884 you can align words, characters or other boxes vertically to the surrounding
25892 is used with the following scheme:
25895 \begin_layout Standard
25900 raisebox{lift}[height][depth]{box content}
25903 \begin_layout Standard
25904 The lift can be a positive value to raise the box or a negative value to
25908 \begin_layout Standard
25909 To align for example the word
25910 \begin_inset Quotes eld
25914 \begin_inset Quotes erd
25917 so that the bottom of the
25918 \begin_inset Quotes eld
25922 \begin_inset Quotes erd
25926 \begin_inset Quotes eld
25930 \begin_inset Quotes erd
25933 is at the baseline, insert the command
25936 \begin_layout Standard
25946 \begin_layout Standard
25947 in ERT before the word.
25948 Behind the word insert a closing brace
25949 \begin_inset Quotes eld
25957 \begin_inset Quotes erd
25962 This is the result:
25965 \begin_layout Standard
25966 This is a text line with the word
25970 \begin_layout Standard
25982 \begin_inset Quotes eld
25986 \begin_inset Quotes erd
25993 \begin_layout Standard
26003 \begin_layout Standard
26004 \begin_inset VSpace bigskip
26007 When you raise or lower characters in a line, the line distance will be
26011 \begin_layout Standard
26012 This is a text line with the word
26016 \begin_layout Standard
26028 \begin_inset Quotes eld
26032 \begin_inset Quotes erd
26039 \begin_layout Standard
26048 This is a text line with the word
26052 \begin_layout Standard
26062 \begin_inset Quotes eld
26066 \begin_inset Quotes erd
26073 \begin_layout Standard
26083 \begin_layout Standard
26084 If you want to prevent this for a certain reason, set the box height to
26089 \begin_layout Standard
26099 \begin_layout Standard
26100 This is a text line with the word
26104 \begin_layout Standard
26116 \begin_inset Quotes eld
26120 \begin_inset Quotes erd
26127 \begin_layout Standard
26136 This is a text line with the word
26140 \begin_layout Standard
26144 raisebox{0.5cm}[0pt]{
26150 \begin_inset Quotes eld
26154 \begin_inset Quotes erd
26161 \begin_layout Standard
26171 \begin_layout Section
26173 \begin_inset LatexCommand label
26174 name "sec:Colored-Boxes"
26179 \begin_inset LatexCommand index
26180 name "Boxes ! Color"
26187 \begin_layout Subsection
26189 \begin_inset LatexCommand index
26190 name "Color ! for Text"
26197 \begin_layout Standard
26198 To color the background of text the text must be put into a so called
26199 \begin_inset Quotes eld
26203 \begin_inset Quotes erd
26207 This requires that the LaTeX-package
26212 \begin_inset LatexCommand index
26213 name "LaTeX-packages ! color"
26217 is loaded in the document preamble with the command
26220 \begin_layout Standard
26225 @ifundef\SpecialChar \textcompwordmark{}
26232 \begin_layout Standard
26243 usepackage{color}}{}
26246 \begin_layout Standard
26251 will be loaded automatically by LyX when you color text
26255 \begin_layout Standard
26256 To avoid that it is loaded twice the command
26260 @ifundef\SpecialChar \textcompwordmark{}
26271 \begin_layout Standard
26272 \begin_inset VSpace medskip
26275 Colorboxes are created with the command
26282 This will be used with the following scheme:
26285 \begin_layout Standard
26290 colorbox{color}{box content}
26293 \begin_layout Standard
26294 The box content can also be a box and colorboxes can also be within other
26298 \begin_layout Standard
26299 The following colors are predefined:
26338 You can also define your own color as described in section\InsetSpace ~
26340 \begin_inset LatexCommand ref
26341 reference "sec:Colored-Tables"
26348 \begin_layout Standard
26349 To have e.\InsetSpace \thinspace{}
26351 a red background for a word, insert the command
26354 \begin_layout Standard
26362 \begin_layout Standard
26363 before the word in ERT.
26364 Behind the word insert a closing brace
26365 \begin_inset Quotes eld
26373 \begin_inset Quotes erd
26378 This is the result:
26381 \begin_layout Standard
26382 This is a line where the word
26386 \begin_layout Standard
26396 \begin_inset Quotes eld
26400 \begin_inset Quotes erd
26407 \begin_layout Standard
26414 has a red background.
26417 \begin_layout Standard
26418 \begin_inset VSpace bigskip
26421 If you would have the box frame in a different color, you can use the command
26428 with the following scheme:
26431 \begin_layout Standard
26436 fcolorbox{frame color}{box color}{box content}
26439 \begin_layout Standard
26453 The frame thickness and the space between the frame and the box content
26454 can be adjusted with the lengths
26466 , respectively, as described in section\InsetSpace ~
26468 \begin_inset LatexCommand ref
26469 reference "sec:Framed-Boxes"
26476 \begin_layout Standard
26477 For the following example the command
26480 \begin_layout Standard
26485 fcolorbox{cyan}{magenta}{
26488 \begin_layout Standard
26492 \begin_layout Standard
26493 Here is an example where the frame line thickness was set to 1\InsetSpace \thinspace{}
26500 \begin_layout Standard
26515 \begin_layout Standard
26519 fcolorbox{cyan}{magenta}{
26524 This is text within a colored, framed box.
26528 \begin_layout Standard
26538 \begin_layout Standard
26539 \begin_inset VSpace bigskip
26542 Of course you can also have colored text inside a colorbox:
26548 \begin_layout Standard
26552 fcolorbox{cyan}{magenta}{
26559 This is colored text within a colored, framed box.
26565 \begin_layout Standard
26576 \begin_layout Standard
26590 \begin_layout Standard
26593 \begin_inset VSpace medskip
26599 \begin_layout Standard
26600 \begin_inset Note Greyedout
26603 \begin_layout Standard
26608 Text in colorboxes cannot have line breaks.
26609 To color multiple text lines or paragraphs, use a box inside a colorbox
26610 as described in the following.
26618 \begin_layout Subsection
26619 Color for Paragraphs
26620 \begin_inset LatexCommand label
26621 name "sub:Color-for-Paragraphs"
26626 \begin_inset LatexCommand index
26627 name "Color ! for Paragraphs"
26634 \begin_layout Standard
26635 To set the background color for more than one text line, put the text into
26637 Before the minipage insert the
26646 \begin_layout Standard
26654 \begin_layout Standard
26656 Behind the minipage insert a closing brace
26657 \begin_inset Quotes eld
26665 \begin_inset Quotes erd
26671 \begin_layout Standard
26675 \begin_layout Standard
26679 colorbox{lightgrey}{
26685 \begin_inset Box Frameless
26694 height_special "totalheight"
26697 \begin_layout Standard
26698 This is text with background color.
26699 This is text with background color.
26702 \begin_layout Standard
26703 \begin_inset VSpace defskip
26706 The text can have footnotes
26710 \begin_layout Standard
26711 Another example footnote
26716 and can include tables and figures.
26719 \begin_layout Standard
26721 \begin_inset Tabular
26722 <lyxtabular version="3" rows="3" columns="3">
26724 <column alignment="center" valignment="top" leftline="true" width="0">
26725 <column alignment="center" valignment="top" leftline="true" width="0">
26726 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
26727 <row topline="true">
26728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26731 \begin_layout Standard
26737 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26740 \begin_layout Standard
26746 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26749 \begin_layout Standard
26756 <row topline="true">
26757 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26760 \begin_layout Standard
26766 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26769 \begin_layout Standard
26771 \begin_inset Quotes erd
26779 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26782 \begin_layout Standard
26789 <row topline="true" bottomline="true">
26790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26793 \begin_layout Standard
26799 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26802 \begin_layout Standard
26808 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26811 \begin_layout Standard
26831 \begin_layout Standard
26841 \begin_layout Section
26842 URLs (Uniform Resource Locators)
26843 \begin_inset LatexCommand index
26851 \begin_layout Standard
26852 Links to web pages or email addresses can be inserted via the menu
26854 Insert\SpecialChar \menuseparator
26858 The appearing URL dialog has two fields; the
26866 field for the URL description, which will be typeset as plain text immediately
26870 \begin_layout Standard
26871 Here is an example URL:
26872 \begin_inset LatexCommand url
26873 name "LyX's homepage"
26874 target "http://www.lyx.org"
26881 \begin_layout Standard
26884 Generate\InsetSpace ~
26887 in the URL dialog does nothing.
26888 This relict will be removed in the next LyX-version.
26891 \begin_layout Standard
26892 You cannot change the style of the link text.
26897 field will have the default text style of the document while the text of
26902 field will have the style
26903 \begin_inset Quotes eld
26911 \begin_inset Quotes erd
26917 \begin_layout Standard
26918 When you use the LaTeX-package
26923 \begin_inset LatexCommand index
26924 name "LaTeX-packages ! hyperref"
26928 to link cross-references in the output, URLs will automatically become
26929 clickable hyperlinks in DVI and PDF-output.
26932 \begin_layout Standard
26933 \begin_inset Note Greyedout
26936 \begin_layout Standard
26941 When you use the following characters: "%", "#", "^", you have to write
26942 them with a preceding backslash, e.\InsetSpace \thinspace{}
26945 \begin_inset Quotes eld
26951 \begin_inset Quotes erd
26955 URLs must not end with a backslash.
26963 \begin_layout Standard
26964 \begin_inset VSpace bigskip
26967 To create real hyperlinks without the force to write the link location to
26968 the text, you can use the command
26971 \begin_layout Standard
26976 href{link location}{link text}
26979 \begin_layout Standard
26981 To get for example a link to LyX's web page, write the command
26984 \begin_layout Standard
26989 href{http://www.lyx.org}{
26992 \begin_layout Standard
26994 Insert after the command the link text
26995 \begin_inset Quotes eld
26999 \begin_inset Quotes erd
27002 as normal text followed by a closing brace
27003 \begin_inset Quotes eld
27011 \begin_inset Quotes erd
27015 This is the result:
27019 \begin_layout Standard
27023 href{http://www.lyx.org}{
27032 \begin_layout Standard
27042 \begin_layout Standard
27043 To link to email addresses, add the prefix
27044 \begin_inset Quotes eld
27052 \begin_inset Quotes erd
27055 to the link location:
27061 \begin_layout Standard
27065 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's documentation}{
27070 lyx-docs mailing list
27074 \begin_layout Standard
27084 \begin_layout Standard
27091 instead of LyX's URL box has the advantage that you can specify the text
27092 style of the link text like for all other text parts.
27093 You can then set hyphenation points and forced linebreaks to have long
27094 link text broken at the page margin.
27095 You are furthermore able to change the text style for all URLs in your
27096 document with an option in
27100 's load command and the restrictions mentioned above doesn't apply for
27109 \begin_layout Chapter
27111 \begin_inset LatexCommand index
27112 name "External Stuff"
27119 \begin_layout Standard
27122 Insert\SpecialChar \menuseparator
27125 you can insert external material to your document.
27129 \begin_layout Description
27131 Document Another LyX document; its content is directly inserted to your
27135 \begin_layout Description
27137 Text A text document; every of its text lines is inserted to your document
27141 \begin_layout Description
27145 Lines A text document; its text lines are inserted as they
27147 Empty text lines creates a new paragraph in your document.
27150 \begin_layout Description
27151 External\InsetSpace ~
27152 Material Files in various formats.
27155 \begin_layout Description
27157 Document LyX or LaTeX-documents.
27160 \begin_layout Section
27162 \begin_inset LatexCommand index
27163 name "External Stuff ! External Material"
27170 \begin_layout Standard
27171 The external material feature allows you to insert files to your document
27172 without converting them previously to a format that can be read by the
27173 document output format because LyX takes care of needed conversions.
27174 This is similar to images that can be inserted in various image formats
27178 \begin_layout Standard
27179 External material can be inserted via the
27183 dialog that is accessible with the menu
27185 Insert\SpecialChar \menuseparator
27186 File\SpecialChar \menuseparator
27187 External\InsetSpace ~
27191 Currently the following file types (
27198 \begin_layout Description
27199 ChessDiagram This template supports chess position diagrams made with the
27204 \begin_layout Standard
27208 href{http://en.wikipedia.org/wiki/XBoard}{
27221 \begin_layout Standard
27231 \begin_layout Description
27232 Date This inserts the date in the form
27237 This is a date inserted as external material:
27238 \begin_inset External
27246 The date is not shown within LyX, only in the output.
27247 There are two other methods of inserting a date: Via menu
27249 Insert\SpecialChar \menuseparator
27252 and with the LaTeX command
27259 The different methods are compared in Table\InsetSpace ~
27261 \begin_inset LatexCommand ref
27262 reference "tab:Comparison-of-the"
27269 \begin_layout Description
27270 LilyPond This template is used for music notation typeset with the program
27274 \begin_layout Standard
27287 \begin_layout Standard
27291 href{http://en.wikipedia.org/wiki/LilyPond}{
27304 \begin_layout Standard
27312 \begin_inset Note Note
27315 \begin_layout Standard
27322 breaks the line while the remaining text in the line is stretched to the
27331 \begin_layout Description
27332 RasterImage This can be used for bitmap images.
27333 Nearly all popular image formats are supported.
27334 The image can be treated in the
27338 dialog like the images that are usually included via the
27342 dialog as described in section\InsetSpace ~
27344 \begin_inset LatexCommand ref
27345 reference "sec:Graphics-Dialog"
27350 The difference is that only raster images are allowed, that means that
27351 PDF and EPS-images are not supported.
27354 \begin_layout Description
27355 XFig This template supports images created with the program
27359 \begin_layout Standard
27363 href{http://en.wikipedia.org/wiki/Xfig}{
27376 \begin_layout Standard
27386 \begin_layout Standard
27387 \begin_inset Float table
27393 \begin_layout Standard
27394 \begin_inset Caption
27396 \begin_layout Standard
27397 \begin_inset LatexCommand label
27398 name "tab:Comparison-of-the"
27402 Comparison of the date input methods.
27410 \begin_layout Standard
27412 \begin_inset Tabular
27413 <lyxtabular version="3" rows="4" columns="4">
27415 <column alignment="center" valignment="top" leftline="true" width="0">
27416 <column alignment="center" valignment="top" leftline="true" width="0">
27417 <column alignment="center" valignment="top" leftline="true" width="0">
27418 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27419 <row topline="true">
27420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27423 \begin_layout Standard
27429 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27432 \begin_layout Standard
27435 External Material\SpecialChar \menuseparator
27441 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27444 \begin_layout Standard
27447 Insert\SpecialChar \menuseparator
27453 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27456 \begin_layout Standard
27467 <row topline="true">
27468 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27471 \begin_layout Standard
27477 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27480 \begin_layout Standard
27486 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27489 \begin_layout Standard
27495 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27498 \begin_layout Standard
27505 <row topline="true">
27506 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27509 \begin_layout Standard
27515 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27518 \begin_layout Standard
27524 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27527 \begin_layout Standard
27533 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27536 \begin_layout Standard
27543 <row topline="true" bottomline="true">
27544 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27547 \begin_layout Standard
27553 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27556 \begin_layout Standard
27562 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27565 \begin_layout Standard
27571 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27574 \begin_layout Standard
27593 \begin_layout Standard
27594 When you use the option
27606 dialog, only the path to the inserted file is shown in the output.
27609 material is displayed in LyX either as box like this:
27610 \begin_inset Graphics
27611 filename clipart/ExternalMaterialQt4.png
27613 scaleBeforeRotation
27617 or as image, depending on the setting in the
27629 \begin_layout Standard
27636 manual explains how you can define your own templates.
27639 \begin_layout Section
27641 \begin_inset LatexCommand label
27642 name "sec:Child-Documents"
27647 \begin_inset LatexCommand index
27648 name "External Stuff ! Child Documents"
27653 \begin_inset LatexCommand index
27654 name "Files ! Include"
27661 \begin_layout Standard
27662 Child documents are used when you have a long document consisting of several
27663 larger parts or sections.
27664 For maintenance it is often useful and sometimes even required to split
27665 the document in several files that can be revised separately.
27666 The different documents are then the so called child documents and a master
27667 document connects them to print the full document or parts of it.
27670 \begin_layout Standard
27671 Included documents are displayed in LyX as a box like this:
27672 \begin_inset Graphics
27673 filename clipart/ChildDocumentQt4.png
27675 scaleBeforeRotation
27679 To include child documents to a master document use the menu
27681 Insert\SpecialChar \menuseparator
27682 File\SpecialChar \menuseparator
27687 A dialog pops up where you can choose between four include methods:
27690 \begin_layout Description
27691 Include You can include LyX and LaTeX-documents.
27700 dialog, the included documents will be opened in LyX in a new file tab
27701 so that you can modify it.
27706 \begin_layout Standard
27707 Here is a child document inserted using
27712 \begin_inset Include \include{DummyDocument1.lyx}
27720 \begin_layout Standard
27721 The section numbering includes the sections of the included files in the
27722 order they are inserted in the master document.
27723 The included example document has for example a subsection that is numbered
27724 as subsection of this section.
27725 Labels of included documents can be referenced: Subsection\InsetSpace ~
27727 \begin_inset LatexCommand ref
27728 reference "sub:External-Subsection-1"
27735 \begin_layout Standard
27736 The preamble of the child document is ignored, only the preamble of the
27737 master document is used.
27738 Included documents are inserted starting on a new page and end with a pagebreak.
27741 \begin_layout Standard
27742 With the LaTeX-command
27748 you can specify which included child documents are processed when the output
27750 This is useful when you are perhaps only working on a certain chapter of
27751 your large document as this saves compiling time.
27758 is inserted to the master document preamble.
27759 It takes a comma-separated list of the filenames as argument, e.g.
27762 \begin_layout Standard
27767 includeonly{chapter1,chapter5}
27770 \begin_layout Standard
27771 will only process the included files named
27772 \begin_inset Quotes eld
27776 \begin_inset Quotes erd
27780 \begin_inset Quotes eld
27784 \begin_inset Quotes erd
27788 \begin_inset Quotes eld
27792 \begin_inset Quotes erd
27798 \begin_layout Standard
27799 \begin_inset Note Greyedout
27802 \begin_layout Standard
27807 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
27808 w the document in case that the child document uses another document class
27809 than the master document as this will lead to unexpected outputs.
27817 \begin_layout Description
27818 Input This method is very similar to the Include method.
27819 The differences are:
27823 \begin_layout Itemize
27824 Input files don't start with a new page and don't end with a pagebreak.
27827 \begin_layout Itemize
27828 Input files can be previewed in LyX when
27830 Instant\InsetSpace ~
27833 is enabled in LyX's preferences under
27837 feel\SpecialChar \menuseparator
27843 \begin_layout Itemize
27854 \begin_layout Standard
27855 Here is a child document inserted using
27860 \begin_inset Include \input{DummyDocument2.lyx}
27868 \begin_layout Description
27869 Verbatim With this method every text file can be included.
27870 The file is shown in the output with its source code, no command used in
27871 the text is invoked.
27872 You can use the option
27874 Mark spaces in output
27876 that displays the character
27877 \begin_inset Quotes eld
27884 \begin_layout Standard
27894 \begin_inset Quotes erd
27897 for every space character in the source code.
27898 The difference to the method via the menu
27900 Insert\SpecialChar \menuseparator
27901 File\SpecialChar \menuseparator
27905 is that the document content is not shown in LyX.
27908 \begin_layout Standard
27909 Here is a child document inserted as Verbatim:
27910 \begin_inset Include \verbatiminput{DummyTextDocument.txt}
27916 \begin_inset VSpace bigskip
27919 Here is a child document inserted as Verbatim using the
27921 Mark spaces in output
27924 \begin_inset Include \verbatiminput*{DummyTextDocument.txt}
27932 \begin_layout Standard
27933 \begin_inset VSpace bigskip
27939 \begin_layout Standard
27940 \begin_inset Note Greyedout
27943 \begin_layout Standard
27948 As you can see in the examples above, the text of the documents included
27953 is not broken at the end of the document lines.
27961 \begin_layout Description
27962 Listings This type is described in chapter\InsetSpace ~
27964 \begin_inset LatexCommand ref
27965 reference "cha:Program-Code-Listings"
27972 \begin_layout Standard
27973 \begin_inset Note Greyedout
27976 \begin_layout Standard
27981 Including the same document twice in a document using different methods
27982 could cause LaTeX-problems.
27990 \begin_layout Chapter
27991 Program Code Listings
27992 \begin_inset LatexCommand label
27993 name "cha:Program-Code-Listings"
27998 \begin_inset LatexCommand index
28004 \begin_inset LatexCommand index
28005 name "Program Code"
28010 \begin_inset LatexCommand index
28011 name "Floats ! Listings"
28018 \begin_layout Standard
28019 To include and typeset program code you can use the
28023 inset that can be inserted via the menu
28025 Insert\SpecialChar \menuseparator
28034 \begin_inset LatexCommand index
28035 name "LaTeX-packages ! listings"
28039 provides a powerful and flexible way to insert program source code to your
28043 \begin_layout Standard
28044 When right-clicking on a listings inset a dialog pops up where you can set
28045 the listings format.
28048 \begin_layout Standard
28049 By default, a listing starts a new paragraph in the output.
28050 The placement option
28052 Inline\InsetSpace ~
28055 prints the listing inline like this:
28056 \begin_inset listings
28057 lstparams "language={C++}"
28061 \begin_layout Standard
28074 creates a listings float where you can specify the placement options
28075 \begin_inset Quotes eld
28083 \begin_inset Quotes erd
28087 \begin_inset Quotes eld
28095 \begin_inset Quotes erd
28099 \begin_inset Quotes eld
28107 \begin_inset Quotes erd
28111 \begin_inset Quotes eld
28119 \begin_inset Quotes erd
28122 corresponding to the float placement options described in section\InsetSpace ~
28124 \begin_inset LatexCommand ref
28125 reference "sec:Float-Placement"
28130 The placement options can be mixed and are inserted without any separation,
28131 e.\InsetSpace \thinspace{}
28134 \begin_inset Quotes eld
28142 \begin_inset Quotes erd
28147 \begin_inset Quotes eld
28151 \begin_inset Quotes erd
28154 has sometimes no effect, but you don't need to use the
28158 option in this case as also non-float listings can have captions and be
28162 \begin_layout Standard
28163 You can add captions to listings with the menu
28165 Insert\SpecialChar \menuseparator
28169 Listings can be referenced like floats: Listing\InsetSpace ~
28171 \begin_inset LatexCommand ref
28172 reference "lst:Example-Listing"
28179 \begin_layout Standard
28180 \begin_inset listings
28181 lstparams "language=Python"
28185 \begin_layout Standard
28187 \begin_inset Caption
28189 \begin_layout Standard
28190 \begin_inset LatexCommand label
28191 name "lst:Example-Listing"
28195 Example Listing float
28200 # Example listing float
28203 \begin_layout Standard
28208 \begin_layout Standard
28210 'this is a python function'
28213 \begin_layout Standard
28223 \begin_layout Standard
28224 When you have set a programming language in the listings dialog, the keywords
28225 of this language will be recognized and specially typeset in the output.
28226 In the example listings the Python keyword
28227 \begin_inset Quotes eld
28231 \begin_inset Quotes erd
28234 is recognized and printed bold in the output.
28237 \begin_layout Standard
28238 \begin_inset Note Greyedout
28241 \begin_layout Standard
28246 If you don't get bold keywords when using typewriter fonts, your typewriter
28247 font probably doesn't provide a bold shape.
28248 In this case select a different one in the menu
28250 Document\SpecialChar \menuseparator
28251 Settings\SpecialChar \menuseparator
28263 provide bold shapes.)
28271 \begin_layout Standard
28277 of the listings dialog you can specify the line numbering style.
28278 You can insert a number to specify which lines are numbered to the field
28284 When you insert e.g.
28286 \begin_inset Quotes eld
28290 \begin_inset Quotes erd
28293 , only every 3rd line will be numbered.
28296 \begin_layout Standard
28297 You can furthermore specify a range of lines, only these will then appear
28301 Extended\InsetSpace ~
28304 should be used when you use national characters like the German umlauts
28307 Here is an example listing with left line numbering, step
28309 \begin_inset Quotes eld
28313 \begin_inset Quotes erd
28317 \begin_inset Quotes eld
28321 \begin_inset Quotes erd
28325 \begin_inset Quotes eld
28328 Extended\InsetSpace ~
28330 \begin_inset Quotes erd
28334 \begin_inset Quotes eld
28340 \begin_inset Quotes erd
28343 , range lines 3\InsetSpace \thinspace{}
28344 -\InsetSpace \thinspace{}
28348 \begin_layout Standard
28349 \begin_inset listings
28350 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
28354 \begin_layout Standard
28359 \begin_layout Standard
28361 'this is a python function'
28364 \begin_layout Standard
28369 \begin_layout Standard
28374 \begin_layout Standard
28376 'This is a German word: Tschüß'
28379 \begin_layout Standard
28384 \begin_layout Standard
28389 \begin_layout Standard
28391 'this is a python function'
28394 \begin_layout Standard
28404 \begin_layout Standard
28405 \begin_inset Note Greyedout
28408 \begin_layout Standard
28413 Due to a bug in the
28417 package the line numbering is shifted by a line by every previous listing.
28418 That's the reason why the lines 2 and 5 are numbered in the above listing
28419 and not the lines 3 and 6.
28427 \begin_layout Standard
28428 \begin_inset VSpace bigskip
28434 \begin_layout Standard
28435 It is also possible to print lines from a file as listing.
28436 To do this, use the menu
28438 Insert\SpecialChar \menuseparator
28439 File\SpecialChar \menuseparator
28442 and choose the type
28450 \begin_layout Standard
28451 The other child document types are described in section\InsetSpace ~
28453 \begin_inset LatexCommand ref
28454 reference "sec:Child-Documents"
28463 In the child document dialog you can specify the listing parameters in
28465 To show a list of all available parameters, type in a question mark
28466 \begin_inset Quotes eld
28470 \begin_inset Quotes erd
28476 \begin_layout Standard
28477 To reference child document listings, write a label text into the corresponding
28478 field of the child document dialog.
28479 The label can then be referenced using the menu
28481 Insert\SpecialChar \menuseparator
28487 \begin_layout Standard
28488 Listing\InsetSpace ~
28490 \begin_inset LatexCommand ref
28491 reference "lst:file-listing"
28495 is an example for a listing of a file; there the lines 10\InsetSpace \thinspace{}
28496 -\InsetSpace \thinspace{}
28501 \begin_layout Standard
28502 \begin_inset Include \lstinputlisting{EmbeddedObjects.lyx}[breaklines=true,caption={Lines 10 - 15 of this LyX file},firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15]
28510 \begin_layout Standard
28511 \begin_inset VSpace bigskip
28517 \begin_layout Standard
28518 Global listings settings can be set in the
28520 Document\SpecialChar \menuseparator
28521 Settings\SpecialChar \menuseparator
28525 To get there a list of available options, type in a question mark
28526 \begin_inset Quotes eld
28530 \begin_inset Quotes erd
28535 Listings\InsetSpace ~
28541 \begin_layout Standard
28542 For more information about the
28546 package, we refer to its documentation
28547 \begin_inset LatexCommand cite
28555 \begin_layout Standard
28561 \begin_layout Chapter
28567 \begin_layout Standard
28580 \begin_layout Standard
28588 \begin_inset LatexCommand index
28594 \begin_inset LatexCommand label
28595 name "cha:Units-available-in"
28600 \begin_inset Note Note
28603 \begin_layout Standard
28606 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
28607 are displayed wrongly in PDF-bookmarks.
28608 For more information about this, have a look at
28609 \begin_inset LatexCommand cite
28622 \begin_layout Standard
28623 To understand the units described in this documentation, Table\InsetSpace ~
28625 \begin_inset LatexCommand ref
28626 reference "tab:Units"
28630 explains all units available in LyX.
28633 \begin_layout Standard
28634 \begin_inset Float table
28640 \begin_layout Standard
28641 \begin_inset Caption
28643 \begin_layout Standard
28644 \begin_inset LatexCommand label
28657 \begin_layout Standard
28658 \begin_inset VSpace medskip
28664 \begin_layout Standard
28666 \begin_inset Tabular
28667 <lyxtabular version="3" rows="20" columns="2">
28669 <column alignment="center" valignment="top" leftline="true" width="0">
28670 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
28671 <row topline="true" bottomline="true">
28672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28675 \begin_layout Standard
28681 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28684 \begin_layout Standard
28691 <row topline="true">
28692 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28695 \begin_layout Standard
28701 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28704 \begin_layout Standard
28711 <row topline="true">
28712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28715 \begin_layout Standard
28721 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28724 \begin_layout Standard
28731 <row topline="true">
28732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28735 \begin_layout Standard
28741 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28744 \begin_layout Standard
28751 <row topline="true">
28752 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28755 \begin_layout Standard
28761 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28764 \begin_layout Standard
28765 point (72.27\InsetSpace \thinspace{}
28766 pt = 1\InsetSpace \thinspace{}
28773 <row topline="true">
28774 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28777 \begin_layout Standard
28783 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28786 \begin_layout Standard
28787 pica (1\InsetSpace \thinspace{}
28788 pc = 12\InsetSpace \thinspace{}
28795 <row topline="true">
28796 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28799 \begin_layout Standard
28805 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28808 \begin_layout Standard
28809 scaled point (65536\InsetSpace \thinspace{}
28810 sp = 1\InsetSpace \thinspace{}
28817 <row topline="true">
28818 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28821 \begin_layout Standard
28827 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28830 \begin_layout Standard
28831 big point (72\InsetSpace \thinspace{}
28832 bp = 1\InsetSpace \thinspace{}
28839 <row topline="true">
28840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28843 \begin_layout Standard
28849 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28852 \begin_layout Standard
28853 didot (1\InsetSpace \thinspace{}
28855 \begin_inset Formula $\approx$
28858 0.376\InsetSpace \thinspace{}
28865 <row topline="true">
28866 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28869 \begin_layout Standard
28875 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28878 \begin_layout Standard
28879 cicero (1\InsetSpace \thinspace{}
28880 cc = 12\InsetSpace \thinspace{}
28887 <row topline="true">
28888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28891 \begin_layout Standard
28897 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28900 \begin_layout Standard
28901 % of original image width
28907 <row topline="true">
28908 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28911 \begin_layout Standard
28917 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28920 \begin_layout Standard
28927 <row topline="true">
28928 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28931 \begin_layout Standard
28937 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28940 \begin_layout Standard
28947 <row topline="true">
28948 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28951 \begin_layout Standard
28957 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28960 \begin_layout Standard
28967 <row topline="true">
28968 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28971 \begin_layout Standard
28977 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28980 \begin_layout Standard
28987 <row topline="true">
28988 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28991 \begin_layout Standard
28997 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29000 \begin_layout Standard
29007 <row topline="true">
29008 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29011 \begin_layout Standard
29017 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29020 \begin_layout Standard
29027 <row topline="true">
29028 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29031 \begin_layout Standard
29037 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29040 \begin_layout Standard
29051 <row topline="true">
29052 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29055 \begin_layout Standard
29061 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29064 \begin_layout Standard
29075 <row topline="true" bottomline="true">
29076 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29079 \begin_layout Standard
29085 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29088 \begin_layout Standard
29089 math unit (1\InsetSpace \thinspace{}
29090 mu = 1/18\InsetSpace \thinspace{}
29109 \begin_layout Chapter
29110 Output File Formats with Graphics
29111 \begin_inset LatexCommand label
29112 name "cha:Output-File-Formats"
29119 \begin_layout Section
29121 \begin_inset LatexCommand index
29122 name "File Formats ! DVI"
29127 \begin_inset LatexCommand index
29128 name "DVI|see{File Formats}"
29135 \begin_layout Standard
29136 This file type has the extension
29137 \begin_inset Quotes eld
29145 \begin_inset Quotes erd
29150 \begin_inset Quotes eld
29154 \begin_inset Quotes erd
29157 (DVI), because it is completely portable; you can move them from one machine
29158 to another without needing to do any sort of conversion.
29159 At the time when this file-format was developed, this was no matter of
29161 DVIs are used for quick previews and as pre-stage for other output formats,
29165 \begin_layout Standard
29166 \begin_inset Note Greyedout
29169 \begin_layout Standard
29174 DVI-files doesn't contain images, they will only be a linked.
29179 So don't forget this, if you move your
29183 file to another computer.
29184 This property can also slow down your computer when you view the DVI.
29185 Because the DVI-viewer has to convert the image in the background to make
29186 it visible when you scroll in the DVI.
29187 So we recommend to use PDF for files with many images.
29190 \begin_layout Standard
29191 You can export your document to DVI by using the menu
29193 File\SpecialChar \menuseparator
29194 Export\SpecialChar \menuseparator
29198 You can view your document as DVI via the
29202 menu or by using the toolbar button
29203 \begin_inset Graphics
29204 filename ../images/buffer-view_dvi.xpm
29206 scaleBeforeRotation
29213 \begin_layout Section
29215 \begin_inset LatexCommand label
29216 name "sec:PostScript"
29221 \begin_inset LatexCommand index
29222 name "File Formats ! PostScript"
29227 \begin_inset LatexCommand index
29228 name "PostScript|see{File Formats}"
29235 \begin_layout Standard
29236 This file type has the extension
29237 \begin_inset Quotes eld
29245 \begin_inset Quotes erd
29249 PostScript was developed by the company
29253 as printer language.
29254 The file contains therefore commands that the printer uses to print the
29256 PostScript can be seen as
29257 \begin_inset Quotes eld
29260 programming language
29261 \begin_inset Quotes erd
29264 ; you can calculate with it and draw diagrams and images
29268 \begin_layout Standard
29269 If you are interested to learn more about this, have a look at the LaTeX-package
29275 \begin_inset LatexCommand cite
29286 Due to this ability, the files are often bigger than PDFs.
29289 \begin_layout Standard
29290 PostScript can only contain images in the format
29291 \begin_inset Quotes eld
29294 Encapsulated PostScript
29295 \begin_inset Quotes erd
29298 (EPS, file extension
29299 \begin_inset Quotes eld
29307 \begin_inset Quotes erd
29311 As LyX allows you to use any known image format in your document, it has
29312 to convert images in the background to EPS.
29313 If you have e.g 50 images in your document, LyX has to do 50 conversions
29314 whenever you view or export your document.
29315 This will slow down your work flow with LyX drastically.
29316 So if you plan to use PostScript, you can insert your images directly as
29317 EPS to avoid this problem.
29320 \begin_layout Standard
29321 You can export your document to PostScript using the menu
29323 File\SpecialChar \menuseparator
29324 Export\SpecialChar \menuseparator
29328 You can view your document as PostScript via the
29332 menu or by using the toolbar button
29333 \begin_inset Graphics
29334 filename ../images/buffer-view_ps.xpm
29336 scaleBeforeRotation
29343 \begin_layout Section
29345 \begin_inset LatexCommand label
29351 \begin_inset LatexCommand index
29352 name "File Formats ! PDF"
29357 \begin_inset LatexCommand index
29365 \begin_layout Standard
29366 This file type has the extension
29367 \begin_inset Quotes eld
29375 \begin_inset Quotes erd
29380 \begin_inset Quotes eld
29383 Portable Document Format
29384 \begin_inset Quotes erd
29387 (PDF) is developed by
29391 as derivative from PostScript.
29392 It is more compressed and it uses much less commands than PostScript.
29394 \begin_inset Quotes eld
29398 \begin_inset Quotes erd
29401 implies, it can be processed at any computer system and the printed output
29402 looks exactly the same.
29405 \begin_layout Standard
29406 PDF can contain images in its own PDF format, in the format
29407 \begin_inset Quotes eld
29410 Joint Photographic Experts Group
29411 \begin_inset Quotes erd
29414 (JPG, file extension
29415 \begin_inset Quotes eld
29423 \begin_inset Quotes erd
29427 \begin_inset Quotes eld
29435 \begin_inset Quotes erd
29438 ), and in the format
29439 \begin_inset Quotes eld
29442 Portable Network Graphics
29443 \begin_inset Quotes erd
29446 (PNG, file extension
29447 \begin_inset Quotes eld
29455 \begin_inset Quotes erd
29459 Nevertheless you can use any other image format, because LyX converts them
29460 in the background to one of these formats.
29461 But as described in the section about PostScript, the image conversion
29462 will slow down your work flow.
29463 So it is recommended to use images in one of the three mentioned formats.
29466 \begin_layout Standard
29467 You can export your document to PDF via the menu
29469 File\SpecialChar \menuseparator
29472 in three different ways:
29475 \begin_layout Description
29477 (ps2pdf) This uses the program
29481 that creates a PDF from a PostScript-version of your file.
29482 The PostScript-version is produced by the program
29486 which uses a DVI-version as intermediate step.
29487 So this export variant consist of three conversions.
29490 \begin_layout Description
29492 (dvipdfm) This uses the program
29496 that converts your file in the background to DVI and in a second step to
29500 \begin_layout Description
29502 (pdflatex) This uses the program
29506 that converts your file directly to PDF.
29509 \begin_layout Standard
29510 It is recommended to use
29519 supports all features of actual PDF-versions, is quick and works stable
29525 is not under development and therefore a bit outdated.
29528 \begin_layout Standard
29529 You can view your document as PDF via the
29533 menu or by using the toolbar button
29534 \begin_inset Graphics
29535 filename ../images/buffer-view_pdf2.xpm
29537 scaleBeforeRotation
29553 \begin_layout Chapter
29554 Explanation of Equation\InsetSpace ~
29556 \begin_inset LatexCommand eqref
29562 \begin_inset LatexCommand label
29563 name "cha:Explanation-of-Equation"
29570 \begin_layout Standard
29576 \begin_inset Formula $W_{\mathrm{tot\, n}}$
29579 can be calculated to
29582 \begin_layout Standard
29583 \begin_inset Formula \begin{equation}
29584 W_{\mathrm{tot}\, n}=n\cdot(W_{g\, n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}\end{equation}
29591 \begin_layout Standard
29593 \begin_inset Formula $W_{g\, n}$
29596 is the given width of all cells.
29603 is the LaTeX-length between the cell text and the cell border, its default
29604 value is 6\InsetSpace \thinspace{}
29612 is the thickness of the cell border line, the default is 0.4\InsetSpace \thinspace{}
29616 \begin_layout Standard
29617 Following equation\InsetSpace ~
29619 \begin_inset LatexCommand eqref
29620 reference "eq:Wtot_n"
29624 , the total width of a multicolumn
29625 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
29631 \begin_layout Standard
29632 \begin_inset Formula \begin{equation}
29633 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
29640 \begin_layout Standard
29641 By setting equation\InsetSpace ~
29643 \begin_inset LatexCommand eqref
29644 reference "eq:Wtot_n"
29649 \begin_inset LatexCommand eqref
29650 reference "eq:Wtot_mult"
29654 equal we can calculate the needed given width
29655 \begin_inset Formula $W_{g\, n}$
29662 columns are spanned, so that each column has a total width of
29663 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
29669 \begin_layout Standard
29670 \begin_inset Formula \begin{equation}
29671 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
29678 \begin_layout Bibliography
29679 \begin_inset LatexCommand bibitem
29680 key "latexcompanion"
29684 Frank Mittelbach and Michel Goossens:
29686 The LaTeX Companion Second Edition.
29689 Addison-Wesley, 2004
29692 \begin_layout Bibliography
29693 \begin_inset LatexCommand bibitem
29698 Helmut Kopka and Patrick W.
29701 A Guide to LaTeX Fourth Edition.
29704 Addison-Wesley, 2003
29707 \begin_layout Bibliography
29708 \begin_inset LatexCommand bibitem
29715 LaTeX: A Document Preparation System.
29718 Addison-Wesley, second edition, 1994
29721 \begin_layout Bibliography
29722 \begin_inset LatexCommand bibitem
29731 \begin_layout Standard
29735 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf}
29745 \begin_layout Standard
29752 of the LaTeX-package
29757 \begin_inset LatexCommand index
29758 name "LaTeX-packages ! booktabs"
29765 \begin_layout Bibliography
29766 \begin_inset LatexCommand bibitem
29775 \begin_layout Standard
29779 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf}{
29788 \begin_layout Standard
29795 of the LaTeX-package
29800 \begin_inset LatexCommand index
29801 name "LaTeX-packages ! caption"
29808 \begin_layout Bibliography
29809 \begin_inset LatexCommand bibitem
29818 \begin_layout Standard
29822 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/anleitung.pdf}
29832 \begin_layout Standard
29839 of the LaTeX-package
29844 \begin_layout Bibliography
29845 \begin_inset LatexCommand bibitem
29854 \begin_layout Standard
29858 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf}
29868 \begin_layout Standard
29875 of the LaTeX-package
29877 endf\SpecialChar \textcompwordmark{}
29881 \begin_inset LatexCommand index
29882 name "LaTeX-packages ! endfloat"
29889 \begin_layout Bibliography
29890 \begin_inset LatexCommand bibitem
29899 \begin_layout Standard
29903 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/floatflt/floatflt.pdf}
29913 \begin_layout Standard
29920 of the LaTeX-package
29922 f\SpecialChar \textcompwordmark{}
29923 loatf\SpecialChar \textcompwordmark{}
29927 \begin_inset LatexCommand index
29928 name "LaTeX-packages ! floatflt"
29935 \begin_layout Bibliography
29936 \begin_inset LatexCommand bibitem
29945 \begin_layout Standard
29949 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf}
29959 \begin_layout Standard
29966 of the LaTeX-package
29971 \begin_inset LatexCommand index
29972 name "LaTeX-packages ! footmisc"
29979 \begin_layout Bibliography
29980 \begin_inset LatexCommand bibitem
29989 \begin_layout Standard
29993 href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf}{
30002 \begin_layout Standard
30009 of the LaTeX-package
30014 \begin_inset LatexCommand index
30015 name "LaTeX-packages ! hyperref"
30022 \begin_layout Bibliography
30023 \begin_inset LatexCommand bibitem
30032 \begin_layout Standard
30036 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf}
30046 \begin_layout Standard
30053 of the LaTeX-package
30058 \begin_inset LatexCommand index
30059 name "LaTeX-packages ! hyperref"
30066 \begin_layout Bibliography
30067 \begin_inset LatexCommand bibitem
30076 \begin_layout Standard
30080 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.p
30090 \begin_layout Standard
30097 of the LaTeX-package
30102 \begin_inset LatexCommand index
30103 name "LaTeX-packages ! koma-script"
30110 \begin_layout Bibliography
30111 \begin_inset LatexCommand bibitem
30112 key "koma-script-de"
30120 \begin_layout Standard
30124 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguide.p
30134 \begin_layout Standard
30141 of the LaTeX-package
30146 \begin_inset LatexCommand index
30147 name "LaTeX-packages ! koma-script"
30154 \begin_layout Bibliography
30155 \begin_inset LatexCommand bibitem
30164 \begin_layout Standard
30168 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf}
30178 \begin_layout Standard
30185 of the LaTeX-package
30190 \begin_inset LatexCommand index
30191 name "LaTeX-packages ! listings"
30198 \begin_layout Bibliography
30199 \begin_inset LatexCommand bibitem
30208 \begin_layout Standard
30212 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.
30222 \begin_layout Standard
30229 of the LaTeX-package
30234 \begin_inset LatexCommand index
30235 name "LaTeX-packages ! marginnote"
30242 \begin_layout Bibliography
30243 \begin_inset LatexCommand bibitem
30252 \begin_layout Standard
30256 href{http://tug.org/PSTricks/main.cgi/}{
30265 \begin_layout Standard
30272 of the LaTeX-package
30277 \begin_inset LatexCommand index
30278 name "LaTeX-packages ! PSTricks"
30285 \begin_layout Bibliography
30286 \begin_inset LatexCommand bibitem
30295 \begin_layout Standard
30299 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf}{
30308 \begin_layout Standard
30315 of the LaTeX-package
30320 \begin_inset LatexCommand index
30321 name "LaTeX-packages ! sidecap"
30328 \begin_layout Bibliography
30329 \begin_inset LatexCommand bibitem
30338 \begin_layout Standard
30342 href{http://wiki.lyx.org/LyX/NewInLyX15}{
30351 \begin_layout Standard
30358 about new LyX-features planned for the release
30365 \begin_layout Standard
30366 \begin_inset LatexCommand printindex
30373 \begin_layout Standard
30374 \begin_inset FloatList figure
30381 \begin_layout Standard
30382 \begin_inset FloatList table