1 #LyX 1.5.0svn created this file. For more info see http://www.lyx.org/
11 % set fonts for nicer pdf view
12 \IfFileExists{lmodern.sty}
13 {\usepackage{lmodern}} % if it exists
15 \usepackage[scaled=0.92]{helvet}
18 } % end if it exists not
20 % link all cross references and URLs
22 \usepackage[colorlinks=true, bookmarks, bookmarksnumbered, bookmarksopen, bookmarksopenlevel=1,
23 linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,
24 pdfpagelayout=OneColumn, pdfnewwindow=true,
25 pdfstartview=XYZ, plainpages=false, pdfpagelabels,
26 pdfauthor={LyX Team}, pdftex,
27 pdftitle={LyX's Figure, Table, Floats, Notes, and Boxes manual},
28 pdfsubject={LyX-documentation about figures, tables, floats, notes, and boxes},
29 pdfkeywords={LyX, Tables, Figures, Floats, Boxes, Notes}]{hyperref}
31 \else % if dvi or ps is produced
33 % link all cross references and URLs in DVI output
34 \usepackage[ps2pdf, colorlinks=true,
35 linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue]{hyperref}
37 \fi % end if pdflatex is used
39 % that links to image floats jumps
40 % to the beginning of the float and
42 \usepackage[figure]{hypcap}
44 % the pages of the TOC are numbered roman
45 % and a PDF-bookmark for the TOC is added
47 \let\myTOC\tableofcontents
48 \renewcommand{\tableofcontents}{%
49 \pdfbookmark[1]{Contents}{}
52 \pagenumbering{arabic}}
54 % provides caption formatting
55 \usepackage[labelfont={bf,sf}, tableposition=top]{caption}[2004/07/16]
57 % provides commands to set caption
58 % beside tables/images
61 \newcommand{\TabBesBeg}{%
63 \let\MyEndtable\endtable
64 \renewenvironment{table}{\begin{SCtable}}{\end{SCtable}}}
66 \newcommand{\TabBesEnd}{%
68 \let\endtable\MyEndtable}
70 \newcommand{\FigBesBeg}{%
72 \let\MyEndfigure\endfigure
73 \renewenvironment{figure}{\begin{SCfigure}}{\end{SCfigure}}}
75 \newcommand{\FigBesEnd}{%
77 \let\endfigure\MyEndfigure}
79 % enables calculation of values,
82 % provides special table cell alignments
85 % increase the bottom float placement fraction
86 \renewcommand{\bottomfraction}{0.5}
88 % avoids that floats are placed before their
89 % corresponding section starts
90 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
92 % speed up the longtable calculation
93 \setcounter{LTchunksize}{100}
95 % used for colored tables
96 \@ifundefined{textcolor}
97 {\usepackage{color}}{}
99 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
100 \definecolor{lightgrey}{gray}{0.8}
103 \usepackage{multirow}
104 %\renewcommand{\multirowsetup}{\centering}
106 % used for book-style tables
107 \usepackage{booktabs}
109 % used to have extra space in table cells,
110 \setlength{\extrarowheight}{2pt}
112 % used for customized tables
115 {>{\centering\hspace{0pt}}m{#1}}
118 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
121 {>{\columncolor{#1}\hspace{0pt}}c}
123 \newcolumntype{V}{!{\vrule width 1.5pt}}
125 \newcolumntype{W}{!{\color{green}\vline}}
128 % To be able to enter the characters ° and · directly in LyX
129 \DeclareInputText{176}{\ifmmode^\circ\else\textdegree\fi}
130 \DeclareInputText{183}{\ifmmode\cdot\else\textperiodcentered\fi}
132 % insert additional vertical space of
133 % 1.5 mm between footnotes
135 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
137 % enable algorithm floats to be referenced
138 \newfloat{Xalgorithm}{tbp}{loa}
139 \floatname{Xalgorithm}{Algorithm}
140 \newcommand{\theHalgorithm}{\theHXalgorithm}
141 \renewenvironment{algorithm}[1][tbp]
142 {\begin{Xalgorithm}[#1]}{\end{Xalgorithm}}
144 % number algorithm floats within chapters
145 \numberwithin{Xalgorithm}{chapter}
147 % redefine the greyed out note
148 \renewenvironment{lyxgreyedout}
149 {\textcolor{blue}\bgroup}{\egroup}
151 % ------------------------------------
152 % used to check for needed LaTeX packages
155 % check for package arydshln
156 % used for tables with dashed lines
157 \newboolean{arydshln}
158 \IfFileExists{arydshln.sty}
159 {\usepackage{arydshln}
160 \setboolean{arydshln}{true}}
161 {\setboolean{arydshln}{false}}
163 % check for package marginnote
164 % used for margin notes
165 \newboolean{marginnote}
166 \IfFileExists{marginnote.sty}
167 {\usepackage{marginnote}
168 \let\marginpar\marginnote
169 \setboolean{marginnote}{true}}
170 {\setboolean{marginnote}{false}}
172 \options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
177 \font_typewriter default
178 \font_default_family default
192 \paperorientation portrait
195 \paragraph_separation skip
197 \quotes_language english
200 \paperpagestyle default
204 \tracking_changes false
205 \output_changes false
215 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
224 \begin_layout Standard
226 If you have comments or error corrections, please send them to the LyX Documenta
233 \begin_layout Standard
237 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's ExtendedInsets manual}{
242 lyx-docs@lists.lyx.org
246 \begin_layout Standard
259 \begin_inset Note Note
262 \begin_layout Standard
263 original author: Uwe Stöhr
279 \begin_layout Standard
280 \begin_inset LatexCommand tableofcontents
287 \begin_layout Standard
288 \begin_inset Note Note
291 \begin_layout Standard
292 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
302 If they are not installed you can export the document anyway but the sections
303 where the packages are required won't appear in the output.
306 \begin_layout Standard
307 The latest PDF-version of this document can be found here:
311 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
319 \begin_layout Chapter
321 \begin_inset LatexCommand label
327 \begin_inset LatexCommand index
333 \begin_inset LatexCommand index
334 name "Graphics|see{Figures}"
341 \begin_layout Section
343 \begin_inset LatexCommand index
344 name "Figures ! Graphics Dialog"
349 \begin_inset LatexCommand label
350 name "sec:Graphics-Dialog"
357 \begin_layout Standard
358 To insert an image into your document, place the cursor at the text position
359 you want and click on the toolbar icon
360 \begin_inset Graphics
361 filename ../images/dialog-show-new-inset_graphics.xpm
369 Insert\SpecialChar \menuseparator
373 Then a dialog will appear to choose the file to load.
374 The image will appear in the output exactly at the position where it is
378 \begin_layout Standard
379 The graphics dialog can be called at any time by right-clicking on an image.
380 This dialog has three tabs:
383 \begin_layout Description
388 Here you can choose an image file and adjust its appearance in the output.
389 The available units for the image size are explained in appendix\InsetSpace ~
391 \begin_inset LatexCommand ref
392 reference "cha:Units-available-in"
398 You can rotate images counter-clockwise by setting a rotation angle and
400 The image will also be rotated inside LyX.
402 Images can be scaled by using
403 a percentage value or by setting the width and height explicitly.
404 If you set only the width or only the height, the other size will be determined
406 If you set both, then the image will be transformed to the given size,
407 possibly distorting it.
408 To prevent the image from distortion, use the option
410 Maintain aspect ratio
413 The image will then be scaled so that its width and height don't exceed
414 the specified dimensions.
416 Images can be opened in a program of your choice
422 The program can be set for every image format in the file format settings
423 in LyX's preferences.
426 \begin_layout Description
431 Alternatively to the usage of scaling units it is possible to set image
432 coordinates to adjust the height and width of the image in the output.
433 The coordinates can also be calculated automatically by pressing the button
445 bounding\InsetSpace ~
448 will only print the image region within the given coordinates.
449 Normally you don't need to take care about image coordinates and can ignore
453 \begin_layout Description
459 In this tab you can modify the appearance of the image within LyX and set
460 the image to be a subfigure of a figure float with an own caption.
461 Subfigures are explained in section\InsetSpace ~
463 \begin_inset LatexCommand ref
464 reference "sec:Figure-Floats"
470 LaTeX experts can also specify on this tab additional LaTeX options.
478 makes the image appear in the output only as a frame with the size of the
488 option only affects zipped EPS-graphics, e.\InsetSpace \thinspace{}
495 When the option is used the images will not be unzipped on export, since
496 LaTeX can handle them as they are.
498 Zipped EPS-graphics are useful to save
499 disk space when you choose PostScript as output format, see appendix\InsetSpace ~
501 \begin_inset LatexCommand ref
502 reference "sec:PostScript"
507 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
518 zgrep %%Bounding x.eps.gz > x.eps.bb
522 The second command creates the bounding box file
523 \begin_inset Quotes eld
527 \begin_inset Quotes erd
530 that is needed by LaTeX for zipped graphics.
533 \begin_layout Standard
534 \begin_inset VSpace bigskip
540 \begin_layout Standard
541 This is an example image in EPS format
545 \begin_layout Standard
546 Image formats are explained in section\InsetSpace ~
548 \begin_inset LatexCommand ref
549 reference "sec:Image-Formats"
558 within a separate, horizontally centered paragraph:
561 \begin_layout Standard
563 \begin_inset Graphics
564 filename clipart/mobius.eps
575 \begin_layout Standard
576 This is the same image like the one above but in draft mode:
579 \begin_layout Standard
581 \begin_inset Graphics
582 filename clipart/mobius.eps
594 \begin_layout Section
596 \begin_inset LatexCommand label
597 name "sec:Figure-Floats"
602 \begin_inset LatexCommand index
603 name "Floats ! Figures"
608 \begin_inset LatexCommand index
609 name "Figures ! Floats"
616 \begin_layout Standard
617 For general explanations about floats, have a look at section\InsetSpace ~
619 \begin_inset LatexCommand ref
620 reference "sec:FloatIntroduction"
627 \begin_layout Standard
629 \begin_inset Graphics
630 filename ../images/float-insert_figure.xpm
638 Insert\SpecialChar \menuseparator
639 Float\SpecialChar \menuseparator
642 inserts a float with a caption that has the label
643 \begin_inset Quotes eld
648 \begin_inset Quotes erd
651 (# is the actual number).
652 You can insert the image above the caption, like in Figure\InsetSpace ~
654 \begin_inset LatexCommand ref
655 reference "fig:kill-plat"
659 or below the caption, like in Figure\InsetSpace ~
661 \begin_inset LatexCommand ref
662 reference "fig:escher"
667 More about the caption placement is described in section\InsetSpace ~
669 \begin_inset LatexCommand ref
670 reference "sec:Caption-Placement"
677 \begin_layout Standard
678 \begin_inset Float figure
683 \begin_layout Standard
685 \begin_inset Graphics
686 filename clipart/platypus.eps
697 \begin_layout Standard
700 \begin_layout Standard
701 \begin_inset LatexCommand label
706 A severely distorted platypus in a float.
719 \begin_layout Standard
720 \begin_inset Float figure
725 \begin_layout Standard
728 \begin_layout Standard
729 \begin_inset LatexCommand label
743 \begin_layout Standard
745 \begin_inset Graphics
746 filename clipart/escher-lsd.eps
762 \begin_layout Standard
763 \begin_inset LatexCommand index
764 name "References ! to Figures"
770 \begin_inset LatexCommand ref
771 reference "fig:kill-plat"
776 \begin_inset LatexCommand ref
777 reference "fig:escher"
781 are examples of referenced figures.
782 Figures can be referenced in the text by referencing their label.
783 To do this insert a label in the caption using the menu
785 Insert\SpecialChar \menuseparator
788 or the toolbar button
789 \begin_inset Graphics
790 filename ../images/label-insert.xpm
797 You can now refer to the label using the menu
799 Insert\SpecialChar \menuseparator
803 or the toolbar button
804 \begin_inset Graphics
805 filename ../images/dialog-show-new-inset_ref.xpm
812 It is important to use references to floats, rather than using vague references
814 \begin_inset Quotes eld
818 \begin_inset Quotes erd
821 , because as LaTeX will reposition the floats in the final document, it
823 \begin_inset Quotes eld
827 \begin_inset Quotes erd
832 Referencing is explained in detail in section\InsetSpace ~
834 \begin_inset LatexCommand ref
835 reference "sec:Referencing-Floats"
842 \begin_layout Standard
843 Normally only one image is inserted to a figure float, but sometimes you
844 might want to use two images with separate subcaptions.
845 This can be set in the tab
850 of the graphics dialog.
851 Choose there the option
855 and enter the subcaption for the image in the caption field.
856 Note that only the main caption of the float is added to the List of Figures.
859 erencing subfigures is explained in section\InsetSpace ~
861 \begin_inset LatexCommand ref
862 reference "sub:Referencing-Subfigures"
869 \begin_layout Standard
872 \begin_inset LatexCommand ref
873 reference "fig:Two-distorted-images"
877 is an example of a figure float with two images set side by side.
878 You can also set the images one below the other.
881 \begin_layout Standard
882 \begin_inset Float figure
887 \begin_layout Standard
891 \begin_inset Graphics
892 filename clipart/escher-lsd.eps
896 subcaptionText "Undefinable structure"
903 \begin_inset Graphics
904 filename clipart/platypus.eps
909 subcaptionText "\label{fig:Platypus} Platypus"
918 \begin_layout Standard
921 \begin_layout Standard
922 \begin_inset LatexCommand label
923 name "fig:Two-distorted-images"
927 Two distorted images.
940 \begin_layout Section
942 \begin_inset LatexCommand label
943 name "sec:Image-Formats"
948 \begin_inset LatexCommand index
954 \begin_inset LatexCommand index
955 name "Figures ! Image Formats"
962 \begin_layout Standard
963 You can insert images in any known file format.
964 But as explained in appendix\InsetSpace ~
966 \begin_inset LatexCommand ref
967 reference "cha:Output-File-Formats"
971 , every output document format allows only a few image formats.
972 LyX uses therefore the program
976 in the background to convert the images to the right format.
977 To increase your work flow by avoiding these conversions in the background,
978 you can use only the image formats that can directly be embedded in the
980 The output file formats are explained in appendix\InsetSpace ~
982 \begin_inset LatexCommand ref
983 reference "cha:Output-File-Formats"
990 \begin_layout Standard
991 Similar to fonts there are two types of image formats:
994 \begin_layout Description
996 images consist of pixel values, often in a compressed form.
997 They are therefore not fully scalable and look pixeled in large zooms.
998 Well-known bitmap image formats are
999 \begin_inset Quotes eld
1002 Graphics Interchange Format
1003 \begin_inset Quotes erd
1006 (GIF, file extension
1007 \begin_inset Quotes eld
1015 \begin_inset Quotes erd
1019 \begin_inset LatexCommand index
1020 name "GIF|see{Image formats}"
1025 \begin_inset Quotes eld
1028 Portable Network Graphics
1029 \begin_inset Quotes erd
1032 (PNG, file extension
1033 \begin_inset Quotes eld
1041 \begin_inset Quotes erd
1045 \begin_inset LatexCommand index
1046 name "PNG|see{Image formats}"
1051 \begin_inset Quotes eld
1054 Joint Photographic Experts Group
1055 \begin_inset Quotes erd
1058 (JPG, file extension
1059 \begin_inset Quotes eld
1067 \begin_inset Quotes erd
1071 \begin_inset Quotes eld
1079 \begin_inset Quotes erd
1083 \begin_inset LatexCommand index
1084 name "JPG|see{Image formats}"
1091 \begin_layout Description
1093 images consist of vectors and can therefore be scaled to any size
1095 The scaling ability is necessary if you want to create presentations, because
1096 presentations are always scaled by the video projector.
1097 Scaling is also useful for online documents to let the user zoom into diagrams.
1100 ell-known scalable image formats are
1101 \begin_inset Quotes eld
1104 Scalable Vector Graphics
1105 \begin_inset Quotes erd
1108 (SVG, file extension
1109 \begin_inset Quotes eld
1117 \begin_inset Quotes erd
1121 \begin_inset LatexCommand index
1122 name "SVG|see{Image formats}"
1127 \begin_inset Quotes eld
1130 Encapsulated PostScript
1131 \begin_inset Quotes erd
1134 (EPS, file extension
1135 \begin_inset Quotes eld
1143 \begin_inset Quotes erd
1147 \begin_inset LatexCommand index
1148 name "EPS|see{Image formats}"
1153 \begin_inset Quotes eld
1156 Portable Document Format
1157 \begin_inset Quotes erd
1160 (PDF, file extension
1161 \begin_inset Quotes eld
1169 \begin_inset Quotes erd
1173 \begin_inset LatexCommand index
1179 \begin_inset Quotes eld
1183 \begin_inset Quotes erd
1186 (WMF, file extension
1187 \begin_inset Quotes eld
1195 \begin_inset Quotes erd
1199 \begin_inset LatexCommand index
1200 name "SVG|see{Image formats}"
1206 \begin_inset Quotes eld
1210 \begin_inset Quotes erd
1213 , because you can convert any bitmap image to a PDF or EPS-image and the
1214 result will still be a bitmap image.
1215 In this cases only a header with the image properties is added to the original
1220 \begin_layout Standard
1221 In the case of PDF, the original image is additionally compressed.
1227 The PDF-files generated by
1231 are for example bitmap images.
1234 \begin_layout Standard
1235 Normally it is not possible to convert a bitmap image into a scalable one,
1237 Only the image formats PDF and EPS can directly be embedded to PDF and
1238 PostScript output files, respectively.
1239 SVG and WMF-images are recalculated to bitmaps when the output file is
1240 generated because there is currently no adequate WMF/SVG
1241 \begin_inset Formula $\to$
1244 PDF/EPS converter available.
1247 \begin_layout Chapter
1249 \begin_inset LatexCommand label
1255 \begin_inset LatexCommand index
1263 \begin_layout Section
1265 \begin_inset LatexCommand index
1266 name "Table ! Introduction"
1273 \begin_layout Standard
1274 You can insert a table using either the toolbar button
1275 \begin_inset Graphics
1276 filename ../images/tabular-insert.xpm
1284 Insert\SpecialChar \menuseparator
1288 The toolbar button offers you a graphical selection: Move the mouse to
1289 set the column/row number of the table that should be created and then
1290 press a mouse button.
1291 When you use the menu to create a table, a dialog will appear, asking you
1292 for the number of rows and columns.
1294 The default table has lines around any
1295 cell and the first row appears separated from the rest of the table.
1296 This separation occurs due to a double line: The cells of the first row
1297 have a line below them and the cells of the second row have a line above
1299 Here is an example table:
1302 \begin_layout Standard
1304 \begin_inset Tabular
1305 <lyxtabular version="3" rows="4" columns="4">
1307 <column alignment="center" valignment="top" leftline="true" width="0">
1308 <column alignment="center" valignment="top" leftline="true" width="0">
1309 <column alignment="center" valignment="top" leftline="true" width="0">
1310 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
1311 <row topline="true" bottomline="true">
1312 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1315 \begin_layout Standard
1321 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1324 \begin_layout Standard
1339 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1342 \begin_layout Standard
1348 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1351 \begin_layout Standard
1358 <row topline="true">
1359 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1362 \begin_layout Standard
1377 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1380 \begin_layout Standard
1386 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1389 \begin_layout Standard
1395 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1398 \begin_layout Standard
1405 <row topline="true">
1406 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1409 \begin_layout Standard
1424 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1427 \begin_layout Standard
1433 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1436 \begin_layout Standard
1442 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1445 \begin_layout Standard
1452 <row topline="true" bottomline="true">
1453 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1456 \begin_layout Standard
1471 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1474 \begin_layout Standard
1480 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1483 \begin_layout Standard
1489 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1492 \begin_layout Standard
1506 \begin_layout Section
1508 \begin_inset LatexCommand index
1509 name "Table ! Dialog"
1516 \begin_layout Standard
1517 You can alter a table by clicking on it with the right mouse button, which
1518 brings up the table dialog.
1519 Here you can adjust the settings of that cell and row/column respectively
1520 where the cursor is currently placed.
1521 Most of the dialog options also work on selections.
1522 This means if you select more cells, columns or rows, the action is done
1523 for the whole selection.
1524 Note that there is a difference between selecting the
1528 of the cell, and the cell itself.
1529 You can alter tables with the following tabs of the table dialog:
1532 \begin_layout Description
1538 Here you can set the horizontal alignment and the width of the current
1540 When you have set a width you can also adjust the vertical alignment of
1542 A given width will allow the cell to have line breaks and multiple paragraphs
1543 of text, see section\InsetSpace ~
1545 \begin_inset LatexCommand ref
1546 reference "sub:Multiple-Lines-in"
1551 If you set no width, the column is as wide as their widest cell content
1554 Furthermore, you can mark one or multiple cells of one row as a multicolumn
1555 cell, see section\InsetSpace ~
1557 \begin_inset LatexCommand ref
1558 reference "sub:Multicolumns"
1564 The rotate check boxes rotates the current cell, a selection, or the whole
1565 table counter-clockwise by 90°.
1566 The rotation is not shown within LyX, only in the output.
1569 \begin_inset Note Greyedout
1572 \begin_layout Standard
1577 Not all DVI-viewers are able to display rotations.
1584 It is also possible to enter a LaTeX-argument which is needed for special
1585 table formattings, see section\InsetSpace ~
1587 \begin_inset LatexCommand ref
1588 reference "sub:Multicolumn-Calculations"
1593 \begin_inset LatexCommand ref
1594 reference "sec:Colored-Tables"
1601 \begin_layout Description
1606 In this tab you can add and delete border lines for the current row/column.
1613 will convert the table to a formal table as described in section\InsetSpace ~
1615 \begin_inset LatexCommand ref
1616 reference "sec:Formal-Tables"
1622 You can also add here space to table rows as decribed in section\InsetSpace ~
1624 \begin_inset LatexCommand ref
1625 reference "sub:Row-Spacing"
1632 \begin_layout Description
1637 This tab is to make a table a so called
1638 \begin_inset Quotes eld
1646 \begin_inset Quotes erd
1649 that can run over several pages.
1650 Section\InsetSpace ~
1652 \begin_inset LatexCommand ref
1653 reference "sec:Longtables"
1658 \begin_inset LatexCommand ref
1659 reference "sec:Special-Longtable-Issues"
1663 describe the longtable features in detail.
1666 \begin_layout Standard
1667 When the table toolbar is opened, you can move the cursor with the arrow
1668 keys from cell to cell and the property of the current cell will immediately
1669 be displayed in the dialog.
1672 \begin_layout Section
1674 \begin_inset LatexCommand index
1675 name "Table ! Toolbar"
1682 \begin_layout Standard
1683 The table toolbar is an alternative to the table dialog to be able to alter
1685 It should normally appear at the bottom of LyX's main window when the cursor
1687 You can alternatively switch it on to appear always, by right-clicking
1688 in LyX's main menu bar.
1691 \begin_layout Standard
1692 The toolbar has the following icons:
1695 \begin_layout Labeling
1696 \labelwidthstring 00.00.0000
1697 \begin_inset Graphics
1698 filename ../images/tabular-feature_append-row.xpm
1703 adds a row below the current cell or selection
1706 \begin_layout Labeling
1707 \labelwidthstring 00.00.0000
1708 \begin_inset Graphics
1709 filename ../images/tabular-feature_append-column.xpm
1714 adds a column right beside the current cell or selection
1717 \begin_layout Labeling
1718 \labelwidthstring 00.00.0000
1719 \begin_inset Graphics
1720 filename ../images/tabular-feature_delete-row.xpm
1725 deletes the current row or selection
1728 \begin_layout Labeling
1729 \labelwidthstring 00.00.0000
1730 \begin_inset Graphics
1731 filename ../images/tabular-feature_delete-column.xpm
1736 deletes the current column or selection
1739 \begin_layout Labeling
1740 \labelwidthstring 00.00.0000
1741 \begin_inset Graphics
1742 filename ../images/tabular-feature_toggle-line-top.xpm
1747 adds a line at the top of the current cell / row or of a selection
1750 \begin_layout Labeling
1751 \labelwidthstring 00.00.0000
1752 \begin_inset Graphics
1753 filename ../images/tabular-feature_toggle-line-bottom.xpm
1758 adds a line at the bottom of the current cell / row or of a selection
1761 \begin_layout Labeling
1762 \labelwidthstring 00.00.0000
1763 \begin_inset Graphics
1764 filename ../images/tabular-feature_toggle-line-left.xpm
1769 adds a line at the left side of the current cell / row or of a selection
1772 \begin_layout Labeling
1773 \labelwidthstring 00.00.0000
1774 \begin_inset Graphics
1775 filename ../images/tabular-feature_toggle-line-right.xpm
1780 adds a line at the right side of the current cell / row or of a selection
1783 \begin_layout Labeling
1784 \labelwidthstring 00.00.0000
1785 \begin_inset Graphics
1786 filename ../images/tabular-feature_set-all-lines.xpm
1791 adds lines around the current or selected cells - if the current cell no
1792 multicolumn this also affects the current row and column
1795 \begin_layout Labeling
1796 \labelwidthstring 00.00.0000
1797 \begin_inset Graphics
1798 filename ../images/tabular-feature_unset-all-lines.xpm
1803 deletes all lines of the current or selected cells - if the current cell
1804 no multicolumn this also affects the current row and column
1807 \begin_layout Labeling
1808 \labelwidthstring 00.00.0000
1809 \begin_inset Graphics
1810 filename ../images/tabular-feature_align-left.xpm
1815 left-aligns the content of the current cell / column
1818 \begin_layout Labeling
1819 \labelwidthstring 00.00.0000
1820 \begin_inset Graphics
1821 filename ../images/tabular-feature_align-center.xpm
1826 centers the content of the current cell / column horizontally
1829 \begin_layout Labeling
1830 \labelwidthstring 00.00.0000
1831 \begin_inset Graphics
1832 filename ../images/tabular-feature_align-right.xpm
1837 right-aligns the content of the current cell / column
1840 \begin_layout Labeling
1841 \labelwidthstring 00.00.0000
1842 \begin_inset Graphics
1843 filename ../images/tabular-feature_valign-top.xpm
1848 aligns the content of the current cell vertically to the top
1851 \begin_layout Labeling
1852 \labelwidthstring 00.00.0000
1853 \begin_inset Graphics
1854 filename ../images/tabular-feature_valign-middle.xpm
1859 centers the content of the current cell vertically
1862 \begin_layout Labeling
1863 \labelwidthstring 00.00.0000
1864 \begin_inset Graphics
1865 filename ../images/tabular-feature_valign-bottom.xpm
1870 aligns the content of the current cell vertically to the bottom
1873 \begin_layout Labeling
1874 \labelwidthstring 00.00.0000
1875 \begin_inset Graphics
1876 filename ../images/tabular-feature_set-rotate-cell.xpm
1881 rotates the current cell or selection counter-clockwise by 90°
1884 \begin_layout Labeling
1885 \labelwidthstring 00.00.0000
1886 \begin_inset Graphics
1887 filename ../images/tabular-feature_set-rotate-tabular.xpm
1892 rotates the whole table counter-clockwise by 90°
1895 \begin_layout Labeling
1896 \labelwidthstring 00.00.0000
1897 \begin_inset Graphics
1898 filename ../images/tabular-feature_multicolumn.xpm
1903 sets the current cell or selection as a multicolumn
1906 \begin_layout Standard
1907 \begin_inset Note Greyedout
1910 \begin_layout Standard
1915 For the output the vertical alignment of the first cell in a row is used
1916 for all following cells in the row.
1924 \begin_layout Section
1926 \begin_inset LatexCommand index
1927 name "Table ! Edit Menu"
1934 \begin_layout Standard
1935 Additionally to the table dialog and toolbar, the menu
1937 Edit\SpecialChar \menuseparator
1940 allows you to add and delete border lines for the current row/column and
1941 to set the current selection as multicolumn.
1942 The menu is only available when the cursor is inside a table.
1945 \begin_layout Section
1947 \begin_inset LatexCommand label
1948 name "sec:Table-Floats"
1953 \begin_inset LatexCommand index
1954 name "Floats ! Tables"
1959 \begin_inset LatexCommand index
1960 name "Table ! Floats"
1967 \begin_layout Standard
1968 For general explanations about floats, have a look at section\InsetSpace ~
1970 \begin_inset LatexCommand ref
1971 reference "sec:FloatIntroduction"
1978 \begin_layout Standard
1979 \begin_inset Float table
1985 \begin_layout Standard
1986 \begin_inset Caption
1988 \begin_layout Standard
1989 \begin_inset LatexCommand label
1990 name "tab:a table float"
2002 \begin_layout Standard
2004 \begin_inset Tabular
2005 <lyxtabular version="3" rows="3" columns="3">
2007 <column alignment="center" valignment="top" leftline="true" width="0pt">
2008 <column alignment="center" valignment="top" leftline="true" width="0pt">
2009 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
2010 <row topline="true" bottomline="true">
2011 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2014 \begin_layout Standard
2029 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2032 \begin_layout Standard
2047 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2050 \begin_layout Standard
2066 <row topline="true">
2067 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2070 \begin_layout Standard
2085 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2088 \begin_layout Standard
2103 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2106 \begin_layout Standard
2122 <row topline="true" bottomline="true">
2123 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2126 \begin_layout Standard
2136 \begin_inset Formula $\int x^{2}dx$
2144 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2147 \begin_layout Standard
2157 \begin_inset Formula $\left[\begin{array}{cc}
2159 c & d\end{array}\right]$
2167 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2170 \begin_layout Standard
2180 \begin_inset Formula $1+1=2$
2201 \begin_layout Standard
2202 Table floats can be inserted using the menu
2204 Insert\SpecialChar \menuseparator
2205 Float\SpecialChar \menuseparator
2208 or the toolbar button
2209 \begin_inset Graphics
2210 filename ../images/float-insert_table.xpm
2219 \begin_layout Standard
2220 The float appears as a collapsible box with a caption that has the label
2222 \begin_inset Quotes eld
2227 \begin_inset Quotes erd
2230 (# is the actual table number).
2231 You can insert tables to the float above or below the caption.
2234 \begin_layout Standard
2237 \begin_inset LatexCommand ref
2238 reference "tab:a table float"
2242 is an example table within a table float.
2245 \begin_layout Standard
2246 Having the caption above the table is the common rule that is unfortunately
2247 not supported in LaTeX's standard classes.
2248 That means if you are using the document classes
2264 there will be no space between the caption and the table.
2265 To insert the needed space, add the following option to the load command
2266 of the LaTeX-package
2271 \begin_inset LatexCommand index
2272 name "LaTeX-packages ! caption"
2276 in your document preamble
2280 \begin_layout Standard
2281 For more information have a look at section\InsetSpace ~
2283 \begin_inset LatexCommand ref
2284 reference "sec:Caption-Placement"
2296 \begin_layout Standard
2302 \begin_layout Standard
2307 , which is described in section\InsetSpace ~
2309 \begin_inset LatexCommand ref
2310 reference "sec:Caption-Formatting"
2314 , is used to adjust the caption format.
2317 \begin_layout Standard
2318 \begin_inset LatexCommand index
2319 name "References ! to Tables"
2323 Tables can be cross-referenced in the text by referencing their label.
2324 To do this insert a label in the caption using the menu
2326 Insert\SpecialChar \menuseparator
2329 or the toolbar button
2330 \begin_inset Graphics
2331 filename ../images/label-insert.xpm
2338 You can now refer to the label using the menu
2340 Insert\SpecialChar \menuseparator
2344 or the toolbar button
2345 \begin_inset Graphics
2346 filename ../images/dialog-show-new-inset_ref.xpm
2354 Referencing is explained in detail in section\InsetSpace ~
2356 \begin_inset LatexCommand ref
2357 reference "sec:Referencing-Floats"
2364 \begin_layout Section
2366 \begin_inset LatexCommand label
2367 name "sec:Longtables"
2372 \begin_inset LatexCommand index
2378 \begin_inset LatexCommand index
2379 name "Table ! Longtables"
2386 \begin_layout Standard
2387 If the table is too long to fit on one page, you can use the option
2397 of the table dialog to split the table automatically over more pages.
2398 Doing this enables some check boxes and you can now define:
2401 \begin_layout Description
2406 : The current row and all rows above, that don't have any special options
2407 defined, are defined to be the header rows of all pages of the longtable;
2408 except for the first page, if
2414 This therefore called the main header.
2417 \begin_layout Description
2423 : The current row and all rows above, that don't have any special options
2424 defined, are defined to be the header rows of the first page of the longtable.
2427 \begin_layout Description
2432 : The current row and all rows below, that don't have any special options
2433 defined, are defined to be the footer rows of all pages of the longtable;
2434 except for the last page, if
2442 \begin_layout Description
2448 : The current row and all rows below, that don't have any special options
2449 defined, are defined to be the footer rows of the last page of the longtable.
2452 \begin_layout Standard
2453 You can also specify a row where the table is splitted.
2454 If you set more than one option in the same table row, you should be aware
2455 of the fact that only the first one is used in the given table row.
2456 The others will then be defined as
2461 In this context, first means first in this order:
2468 header, Footer, Last\InsetSpace ~
2472 See the following longtable to see how it works:
2475 \begin_layout Standard
2477 \begin_inset Tabular
2478 <lyxtabular version="3" rows="69" columns="3">
2479 <features islongtable="true">
2480 <column alignment="left" valignment="top" leftline="true" width="0cm">
2481 <column alignment="left" valignment="top" width="0pt">
2482 <column alignment="right" valignment="top" leftline="true" rightline="true" width="0pt">
2483 <row topline="true" bottomline="true" endfirsthead="true">
2484 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2487 \begin_layout Standard
2490 Example Phone List (ignore the names)
2495 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2498 \begin_layout Standard
2504 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2507 \begin_layout Standard
2514 <row topline="true" bottomline="true" endfirsthead="true">
2515 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2518 \begin_layout Standard
2526 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2529 \begin_layout Standard
2535 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2538 \begin_layout Standard
2547 <row topline="true" bottomline="true" endhead="true">
2548 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2551 \begin_layout Standard
2559 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2562 \begin_layout Standard
2568 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2571 \begin_layout Standard
2578 <row topline="true" bottomline="true" endhead="true">
2579 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2582 \begin_layout Standard
2590 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2593 \begin_layout Standard
2599 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2602 \begin_layout Standard
2611 <row topline="true" bottomline="true" endfoot="true">
2612 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
2615 \begin_layout Standard
2616 continued on next page
2621 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2624 \begin_layout Standard
2630 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2633 \begin_layout Standard
2641 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2644 \begin_layout Standard
2652 <cell alignment="center" valignment="top" topline="true" usebox="none">
2655 \begin_layout Standard
2661 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2664 \begin_layout Standard
2672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2675 \begin_layout Standard
2683 <cell alignment="center" valignment="top" topline="true" usebox="none">
2686 \begin_layout Standard
2692 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2695 \begin_layout Standard
2703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2706 \begin_layout Standard
2714 <cell alignment="center" valignment="top" topline="true" usebox="none">
2717 \begin_layout Standard
2723 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2726 \begin_layout Standard
2734 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2737 \begin_layout Standard
2745 <cell alignment="center" valignment="top" topline="true" usebox="none">
2748 \begin_layout Standard
2754 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2757 \begin_layout Standard
2765 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2768 \begin_layout Standard
2776 <cell alignment="center" valignment="top" topline="true" usebox="none">
2779 \begin_layout Standard
2785 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2788 \begin_layout Standard
2796 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2799 \begin_layout Standard
2807 <cell alignment="center" valignment="top" topline="true" usebox="none">
2810 \begin_layout Standard
2816 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2819 \begin_layout Standard
2827 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2830 \begin_layout Standard
2838 <cell alignment="center" valignment="top" topline="true" usebox="none">
2841 \begin_layout Standard
2847 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2850 \begin_layout Standard
2858 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2861 \begin_layout Standard
2869 <cell alignment="center" valignment="top" topline="true" usebox="none">
2872 \begin_layout Standard
2878 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2881 \begin_layout Standard
2889 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2892 \begin_layout Standard
2900 <cell alignment="center" valignment="top" topline="true" usebox="none">
2903 \begin_layout Standard
2909 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2912 \begin_layout Standard
2920 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2923 \begin_layout Standard
2931 <cell alignment="center" valignment="top" topline="true" usebox="none">
2934 \begin_layout Standard
2940 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2943 \begin_layout Standard
2951 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2954 \begin_layout Standard
2962 <cell alignment="center" valignment="top" topline="true" usebox="none">
2965 \begin_layout Standard
2971 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2974 \begin_layout Standard
2982 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2985 \begin_layout Standard
2993 <cell alignment="center" valignment="top" topline="true" usebox="none">
2996 \begin_layout Standard
3002 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3005 \begin_layout Standard
3013 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3016 \begin_layout Standard
3024 <cell alignment="center" valignment="top" topline="true" usebox="none">
3027 \begin_layout Standard
3033 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3036 \begin_layout Standard
3044 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3047 \begin_layout Standard
3055 <cell alignment="center" valignment="top" topline="true" usebox="none">
3058 \begin_layout Standard
3064 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3067 \begin_layout Standard
3075 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3078 \begin_layout Standard
3086 <cell alignment="center" valignment="top" topline="true" usebox="none">
3089 \begin_layout Standard
3095 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3098 \begin_layout Standard
3106 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3109 \begin_layout Standard
3117 <cell alignment="center" valignment="top" topline="true" usebox="none">
3120 \begin_layout Standard
3126 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3129 \begin_layout Standard
3137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3140 \begin_layout Standard
3148 <cell alignment="center" valignment="top" topline="true" usebox="none">
3151 \begin_layout Standard
3157 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3160 \begin_layout Standard
3168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3171 \begin_layout Standard
3179 <cell alignment="center" valignment="top" topline="true" usebox="none">
3182 \begin_layout Standard
3188 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3191 \begin_layout Standard
3199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3202 \begin_layout Standard
3210 <cell alignment="center" valignment="top" topline="true" usebox="none">
3213 \begin_layout Standard
3219 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3222 \begin_layout Standard
3230 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3233 \begin_layout Standard
3241 <cell alignment="center" valignment="top" topline="true" usebox="none">
3244 \begin_layout Standard
3250 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3253 \begin_layout Standard
3261 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3264 \begin_layout Standard
3272 <cell alignment="center" valignment="top" topline="true" usebox="none">
3275 \begin_layout Standard
3281 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3284 \begin_layout Standard
3292 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3295 \begin_layout Standard
3303 <cell alignment="center" valignment="top" topline="true" usebox="none">
3306 \begin_layout Standard
3312 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3315 \begin_layout Standard
3323 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3326 \begin_layout Standard
3334 <cell alignment="center" valignment="top" topline="true" usebox="none">
3337 \begin_layout Standard
3343 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3346 \begin_layout Standard
3354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3357 \begin_layout Standard
3365 <cell alignment="center" valignment="top" topline="true" usebox="none">
3368 \begin_layout Standard
3374 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3377 \begin_layout Standard
3385 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3388 \begin_layout Standard
3396 <cell alignment="center" valignment="top" topline="true" usebox="none">
3399 \begin_layout Standard
3405 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3408 \begin_layout Standard
3416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3419 \begin_layout Standard
3427 <cell alignment="center" valignment="top" topline="true" usebox="none">
3430 \begin_layout Standard
3436 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3439 \begin_layout Standard
3447 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3450 \begin_layout Standard
3458 <cell alignment="center" valignment="top" topline="true" usebox="none">
3461 \begin_layout Standard
3467 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3470 \begin_layout Standard
3478 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3481 \begin_layout Standard
3489 <cell alignment="center" valignment="top" topline="true" usebox="none">
3492 \begin_layout Standard
3498 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3501 \begin_layout Standard
3509 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3512 \begin_layout Standard
3520 <cell alignment="center" valignment="top" topline="true" usebox="none">
3523 \begin_layout Standard
3529 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3532 \begin_layout Standard
3540 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3543 \begin_layout Standard
3551 <cell alignment="center" valignment="top" topline="true" usebox="none">
3554 \begin_layout Standard
3560 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3563 \begin_layout Standard
3570 <row bottomline="true">
3571 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3574 \begin_layout Standard
3582 <cell alignment="center" valignment="top" topline="true" usebox="none">
3585 \begin_layout Standard
3591 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3594 \begin_layout Standard
3601 <row bottomline="true">
3602 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3605 \begin_layout Standard
3611 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
3614 \begin_layout Standard
3620 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3623 \begin_layout Standard
3631 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3634 \begin_layout Standard
3642 <cell alignment="center" valignment="top" topline="true" usebox="none">
3645 \begin_layout Standard
3651 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3654 \begin_layout Standard
3662 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3665 \begin_layout Standard
3673 <cell alignment="center" valignment="top" topline="true" usebox="none">
3676 \begin_layout Standard
3682 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3685 \begin_layout Standard
3693 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3696 \begin_layout Standard
3704 <cell alignment="center" valignment="top" topline="true" usebox="none">
3707 \begin_layout Standard
3713 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3716 \begin_layout Standard
3724 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3727 \begin_layout Standard
3735 <cell alignment="center" valignment="top" topline="true" usebox="none">
3738 \begin_layout Standard
3744 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3747 \begin_layout Standard
3755 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3758 \begin_layout Standard
3766 <cell alignment="center" valignment="top" topline="true" usebox="none">
3769 \begin_layout Standard
3775 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3778 \begin_layout Standard
3786 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3789 \begin_layout Standard
3797 <cell alignment="center" valignment="top" topline="true" usebox="none">
3800 \begin_layout Standard
3806 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3809 \begin_layout Standard
3817 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3820 \begin_layout Standard
3828 <cell alignment="center" valignment="top" topline="true" usebox="none">
3831 \begin_layout Standard
3837 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3840 \begin_layout Standard
3848 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3851 \begin_layout Standard
3859 <cell alignment="center" valignment="top" topline="true" usebox="none">
3862 \begin_layout Standard
3868 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3871 \begin_layout Standard
3879 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3882 \begin_layout Standard
3890 <cell alignment="center" valignment="top" topline="true" usebox="none">
3893 \begin_layout Standard
3899 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3902 \begin_layout Standard
3910 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3913 \begin_layout Standard
3921 <cell alignment="center" valignment="top" topline="true" usebox="none">
3924 \begin_layout Standard
3930 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3933 \begin_layout Standard
3941 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3944 \begin_layout Standard
3952 <cell alignment="center" valignment="top" topline="true" usebox="none">
3955 \begin_layout Standard
3961 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3964 \begin_layout Standard
3972 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3975 \begin_layout Standard
3983 <cell alignment="center" valignment="top" topline="true" usebox="none">
3986 \begin_layout Standard
3992 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3995 \begin_layout Standard
4003 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4006 \begin_layout Standard
4014 <cell alignment="center" valignment="top" topline="true" usebox="none">
4017 \begin_layout Standard
4023 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4026 \begin_layout Standard
4034 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4037 \begin_layout Standard
4045 <cell alignment="center" valignment="top" topline="true" usebox="none">
4048 \begin_layout Standard
4054 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4057 \begin_layout Standard
4065 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4068 \begin_layout Standard
4076 <cell alignment="center" valignment="top" topline="true" usebox="none">
4079 \begin_layout Standard
4085 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4088 \begin_layout Standard
4096 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4099 \begin_layout Standard
4107 <cell alignment="center" valignment="top" topline="true" usebox="none">
4110 \begin_layout Standard
4116 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4119 \begin_layout Standard
4127 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4130 \begin_layout Standard
4138 <cell alignment="center" valignment="top" topline="true" usebox="none">
4141 \begin_layout Standard
4147 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4150 \begin_layout Standard
4158 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4161 \begin_layout Standard
4169 <cell alignment="center" valignment="top" topline="true" usebox="none">
4172 \begin_layout Standard
4178 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4181 \begin_layout Standard
4189 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4192 \begin_layout Standard
4200 <cell alignment="center" valignment="top" topline="true" usebox="none">
4203 \begin_layout Standard
4209 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4212 \begin_layout Standard
4220 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4223 \begin_layout Standard
4231 <cell alignment="center" valignment="top" topline="true" usebox="none">
4234 \begin_layout Standard
4240 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4243 \begin_layout Standard
4251 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4254 \begin_layout Standard
4262 <cell alignment="center" valignment="top" topline="true" usebox="none">
4265 \begin_layout Standard
4271 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4274 \begin_layout Standard
4282 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4285 \begin_layout Standard
4293 <cell alignment="center" valignment="top" topline="true" usebox="none">
4296 \begin_layout Standard
4302 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4305 \begin_layout Standard
4313 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4316 \begin_layout Standard
4324 <cell alignment="center" valignment="top" topline="true" usebox="none">
4327 \begin_layout Standard
4333 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4336 \begin_layout Standard
4344 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4347 \begin_layout Standard
4355 <cell alignment="center" valignment="top" topline="true" usebox="none">
4358 \begin_layout Standard
4364 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4367 \begin_layout Standard
4375 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4378 \begin_layout Standard
4386 <cell alignment="center" valignment="top" topline="true" usebox="none">
4389 \begin_layout Standard
4395 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4398 \begin_layout Standard
4406 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4409 \begin_layout Standard
4417 <cell alignment="center" valignment="top" topline="true" usebox="none">
4420 \begin_layout Standard
4426 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4429 \begin_layout Standard
4437 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4440 \begin_layout Standard
4448 <cell alignment="center" valignment="top" topline="true" usebox="none">
4451 \begin_layout Standard
4457 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4460 \begin_layout Standard
4468 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4471 \begin_layout Standard
4479 <cell alignment="center" valignment="top" topline="true" usebox="none">
4482 \begin_layout Standard
4488 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4491 \begin_layout Standard
4499 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4502 \begin_layout Standard
4510 <cell alignment="center" valignment="top" topline="true" usebox="none">
4513 \begin_layout Standard
4519 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4522 \begin_layout Standard
4530 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4533 \begin_layout Standard
4541 <cell alignment="center" valignment="top" topline="true" usebox="none">
4544 \begin_layout Standard
4550 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4553 \begin_layout Standard
4560 <row bottomline="true">
4561 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4564 \begin_layout Standard
4572 <cell alignment="center" valignment="top" topline="true" usebox="none">
4575 \begin_layout Standard
4581 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4584 \begin_layout Standard
4591 <row bottomline="true" endlastfoot="true">
4592 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
4595 \begin_layout Standard
4601 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4604 \begin_layout Standard
4610 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4613 \begin_layout Standard
4628 \begin_layout Standard
4632 addtocounter{table}{-1}
4638 \begin_inset Note Note
4641 \begin_layout Standard
4642 See greyed-out note in section\InsetSpace ~
4644 \begin_inset LatexCommand ref
4645 reference "sub:Longtable-Captions"
4649 for an explanation of this command.
4657 \begin_layout Subsection
4658 Footnotes in Longtables
4659 \begin_inset LatexCommand label
4660 name "sub:Footnotes-in-Longtables"
4665 \begin_inset LatexCommand index
4666 name "Longtables ! Footnotes"
4673 \begin_layout Standard
4674 Footnotes can be inserted to every longtable cell.
4675 They appear at the bottom of the page where the table cell with the footnote
4679 \begin_inset LatexCommand ref
4680 reference "tab:DiffCaptions"
4684 has for example a footnote.
4687 \begin_layout Subsection
4689 \begin_inset LatexCommand index
4690 name "Longtables ! Captions"
4695 \begin_inset LatexCommand label
4696 name "sub:Longtable-Captions"
4703 \begin_layout Standard
4704 A longtable cannot be put into a table float because floats can only be
4705 on one page but the caption environment of floats can also be used for
4709 \begin_layout Standard
4710 As LyX does not yet fully support captions in longtables, a hack is needed
4714 \begin_layout Enumerate
4720 \begin_layout Enumerate
4721 Mark the first row and disable its upper line.
4724 \begin_layout Enumerate
4725 Insert a caption via the menu
4727 Insert\SpecialChar \menuseparator
4730 into the first table cell.
4732 You can also add a short title for the caption.
4735 \begin_layout Enumerate
4737 \begin_inset Quotes eld
4749 \begin_inset Quotes erd
4752 as ERT behind the caption.
4755 \begin_layout Standard
4756 A short title that will appear in the LOT instead of the full title.
4765 behind the caption omits the vertical lines between the following cells
4767 The first table row is now only a dummy row for the caption, the actual
4768 table starts with the second row.
4771 \begin_layout Standard
4772 Here is a short longtable to see how it works:
4775 \begin_layout Standard
4776 \begin_inset Tabular
4777 <lyxtabular version="3" rows="6" columns="5">
4778 <features islongtable="true">
4779 <column alignment="center" valignment="top" leftline="true" width="0">
4780 <column alignment="center" valignment="top" leftline="true" width="0">
4781 <column alignment="center" valignment="top" leftline="true" width="0">
4782 <column alignment="center" valignment="top" leftline="true" width="0">
4783 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
4785 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4788 \begin_layout Standard
4789 \begin_inset Caption
4791 \begin_layout Standard
4792 Longtable with caption
4796 \begin_layout Standard
4811 \begin_layout Standard
4827 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4830 \begin_layout Standard
4836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4839 \begin_layout Standard
4845 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4848 \begin_layout Standard
4854 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4857 \begin_layout Standard
4864 <row topline="true">
4865 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4868 \begin_layout Standard
4874 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4877 \begin_layout Standard
4883 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4886 \begin_layout Standard
4892 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4895 \begin_layout Standard
4901 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4904 \begin_layout Standard
4911 <row topline="true">
4912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4915 \begin_layout Standard
4921 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4924 \begin_layout Standard
4930 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4933 \begin_layout Standard
4939 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4942 \begin_layout Standard
4948 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4951 \begin_layout Standard
4958 <row topline="true">
4959 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4962 \begin_layout Standard
4968 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4971 \begin_layout Standard
4977 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4980 \begin_layout Standard
4986 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4989 \begin_layout Standard
4995 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4998 \begin_layout Standard
5005 <row topline="true">
5006 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5009 \begin_layout Standard
5015 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5018 \begin_layout Standard
5024 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5027 \begin_layout Standard
5033 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5036 \begin_layout Standard
5042 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5045 \begin_layout Standard
5052 <row topline="true" bottomline="true">
5053 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5056 \begin_layout Standard
5062 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5065 \begin_layout Standard
5071 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5074 \begin_layout Standard
5080 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5083 \begin_layout Standard
5089 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5092 \begin_layout Standard
5106 \begin_layout Standard
5107 \begin_inset VSpace medskip
5111 \begin_inset Note Greyedout
5114 \begin_layout Standard
5119 The table number is increased for every longtable, also if you didn't set
5121 For this reason you could have the case that e.g.
5123 2.4 follows on Table\InsetSpace ~
5124 2.1 in the list of tables if there are two longtables
5126 To avoid this you can add the following command in ERT behind every longtable
5130 \begin_layout Standard
5135 addtocounter{table}{-1}
5143 \begin_layout Standard
5144 \begin_inset Note Greyedout
5147 \begin_layout Standard
5152 If you are using the LaTeX-package
5157 \begin_inset LatexCommand index
5158 name "LaTeX-packages ! hyperref"
5162 to link cross-references, the link to a longtable caption will always point
5163 to the beginning of the document.
5171 \begin_layout Subsubsection
5172 References to Longtables
5173 \begin_inset LatexCommand index
5174 name "Longtables ! References"
5181 \begin_layout Standard
5182 \begin_inset Tabular
5183 <lyxtabular version="3" rows="6" columns="5">
5184 <features islongtable="true">
5185 <column alignment="center" valignment="top" leftline="true" width="0">
5186 <column alignment="center" valignment="top" leftline="true" width="0">
5187 <column alignment="center" valignment="top" leftline="true" width="0">
5188 <column alignment="center" valignment="top" leftline="true" width="0">
5189 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5191 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5194 \begin_layout Standard
5195 \begin_inset Caption
5197 \begin_layout Standard
5198 Referenced longtable
5199 \begin_inset LatexCommand label
5200 name "tab:RefExample"
5213 \begin_layout Standard
5229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5232 \begin_layout Standard
5238 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5241 \begin_layout Standard
5247 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5250 \begin_layout Standard
5256 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5259 \begin_layout Standard
5266 <row topline="true">
5267 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5270 \begin_layout Standard
5276 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5279 \begin_layout Standard
5285 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5288 \begin_layout Standard
5294 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5297 \begin_layout Standard
5303 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5306 \begin_layout Standard
5313 <row topline="true">
5314 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5317 \begin_layout Standard
5323 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5326 \begin_layout Standard
5332 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5335 \begin_layout Standard
5341 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5344 \begin_layout Standard
5350 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5353 \begin_layout Standard
5360 <row topline="true">
5361 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5364 \begin_layout Standard
5370 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5373 \begin_layout Standard
5379 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5382 \begin_layout Standard
5388 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5391 \begin_layout Standard
5397 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5400 \begin_layout Standard
5407 <row topline="true">
5408 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5411 \begin_layout Standard
5417 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5420 \begin_layout Standard
5426 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5429 \begin_layout Standard
5435 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5438 \begin_layout Standard
5444 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5447 \begin_layout Standard
5454 <row topline="true" bottomline="true">
5455 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5458 \begin_layout Standard
5464 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5467 \begin_layout Standard
5473 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5476 \begin_layout Standard
5482 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5485 \begin_layout Standard
5491 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5494 \begin_layout Standard
5508 \begin_layout Standard
5509 To reference a longtable, insert a label into the caption.
5510 Note that you have to add the label prefix
5511 \begin_inset Quotes eld
5519 \begin_inset Quotes eld
5522 manually in the label field.
5525 \begin_layout Standard
5526 This is a reference to Table\InsetSpace ~
5528 \begin_inset LatexCommand ref
5529 reference "tab:RefExample"
5536 \begin_layout Standard
5537 The caption layout can be set together with all other caption of your document
5538 using the LaTeX-package
5543 \begin_inset LatexCommand index
5544 name "LaTeX-packages ! caption"
5548 , see section\InsetSpace ~
5550 \begin_inset LatexCommand ref
5551 reference "sec:Caption-Formatting"
5558 \begin_layout Subsubsection
5560 \begin_inset LatexCommand index
5561 name "Longtables ! Caption Width"
5568 \begin_layout Standard
5569 The maximal width of of caption lines is defined by the length
5576 Its default value is 4\InsetSpace \thinspace{}
5578 To change it add the following command to your document preamble or as
5579 ERT into your document before the longtable that should be affected
5582 \begin_layout Standard
5592 \begin_layout Standard
5593 where the width could have one of the units listed in appendix\InsetSpace ~
5595 \begin_inset LatexCommand ref
5596 reference "cha:Units-available-in"
5603 \begin_layout Standard
5604 The following tables show the difference:
5607 \begin_layout Standard
5608 \begin_inset Tabular
5609 <lyxtabular version="3" rows="6" columns="5">
5610 <features islongtable="true">
5611 <column alignment="center" valignment="top" leftline="true" width="0">
5612 <column alignment="center" valignment="top" leftline="true" width="0">
5613 <column alignment="center" valignment="top" leftline="true" width="0">
5614 <column alignment="center" valignment="top" leftline="true" width="0">
5615 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5620 \begin_layout Standard
5621 \begin_inset Caption
5623 \begin_layout Standard
5624 long full title with default width long full title with default width long
5625 full title with default width
5629 \begin_layout Standard
5630 caption with default width
5644 \begin_layout Standard
5660 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5663 \begin_layout Standard
5669 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5672 \begin_layout Standard
5678 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5681 \begin_layout Standard
5687 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5690 \begin_layout Standard
5697 <row topline="true">
5698 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5701 \begin_layout Standard
5707 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5710 \begin_layout Standard
5716 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5719 \begin_layout Standard
5725 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5728 \begin_layout Standard
5734 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5737 \begin_layout Standard
5744 <row topline="true">
5745 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5748 \begin_layout Standard
5754 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5757 \begin_layout Standard
5763 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5766 \begin_layout Standard
5772 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5775 \begin_layout Standard
5781 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5784 \begin_layout Standard
5791 <row topline="true">
5792 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5795 \begin_layout Standard
5801 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5804 \begin_layout Standard
5810 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5813 \begin_layout Standard
5819 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5822 \begin_layout Standard
5828 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5831 \begin_layout Standard
5838 <row topline="true">
5839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5842 \begin_layout Standard
5848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5851 \begin_layout Standard
5857 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5860 \begin_layout Standard
5866 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5869 \begin_layout Standard
5875 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5878 \begin_layout Standard
5885 <row topline="true" bottomline="true">
5886 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5889 \begin_layout Standard
5895 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5898 \begin_layout Standard
5904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5907 \begin_layout Standard
5913 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5916 \begin_layout Standard
5922 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5925 \begin_layout Standard
5939 \begin_layout Standard
5943 \begin_layout Standard
5955 \begin_inset Tabular
5956 <lyxtabular version="3" rows="6" columns="5">
5957 <features islongtable="true">
5958 <column alignment="center" valignment="top" leftline="true" width="0">
5959 <column alignment="center" valignment="top" leftline="true" width="0">
5960 <column alignment="center" valignment="top" leftline="true" width="0">
5961 <column alignment="center" valignment="top" leftline="true" width="0">
5962 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5964 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5967 \begin_layout Standard
5968 \begin_inset Caption
5970 \begin_layout Standard
5971 long full title with width set to 5\InsetSpace \thinspace{}
5972 cm long full title with width set to
5973 5\InsetSpace \thinspace{}
5974 cm long full title with width set to 5\InsetSpace \thinspace{}
5979 \begin_layout Standard
5980 caption with width\InsetSpace \thinspace{}
5981 =\InsetSpace \thinspace{}
5982 5\InsetSpace \thinspace{}
5997 \begin_layout Standard
6013 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6016 \begin_layout Standard
6022 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6025 \begin_layout Standard
6031 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6034 \begin_layout Standard
6040 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6043 \begin_layout Standard
6050 <row topline="true">
6051 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6054 \begin_layout Standard
6060 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6063 \begin_layout Standard
6069 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6072 \begin_layout Standard
6078 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6081 \begin_layout Standard
6087 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6090 \begin_layout Standard
6097 <row topline="true">
6098 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6101 \begin_layout Standard
6107 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6110 \begin_layout Standard
6116 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6119 \begin_layout Standard
6125 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6128 \begin_layout Standard
6134 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6137 \begin_layout Standard
6144 <row topline="true">
6145 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6148 \begin_layout Standard
6154 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6157 \begin_layout Standard
6163 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6166 \begin_layout Standard
6172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6175 \begin_layout Standard
6181 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6184 \begin_layout Standard
6191 <row topline="true">
6192 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6195 \begin_layout Standard
6201 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6204 \begin_layout Standard
6210 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6213 \begin_layout Standard
6219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6222 \begin_layout Standard
6228 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6231 \begin_layout Standard
6238 <row topline="true" bottomline="true">
6239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6242 \begin_layout Standard
6248 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6251 \begin_layout Standard
6257 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6260 \begin_layout Standard
6266 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6269 \begin_layout Standard
6275 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6278 \begin_layout Standard
6292 \begin_layout Standard
6296 \begin_layout Standard
6310 \begin_layout Standard
6311 \begin_inset Note Greyedout
6314 \begin_layout Standard
6319 When the LaTeX-package
6324 \begin_inset LatexCommand index
6325 name "LaTeX-packages ! caption"
6329 is used, as in this document, the full page width is used for the caption
6330 when you use the default value of 4\InsetSpace \thinspace{}
6338 To get in this case exactly a 4\InsetSpace \thinspace{}
6339 in wide caption, you can either use a value
6340 slightly different from 4.0\InsetSpace \thinspace{}
6342 3.99\InsetSpace \thinspace{}
6343 in, or the LaTeX-command
6347 captionsetup{width=value}
6349 that is provided by the
6361 \begin_layout Subsubsection
6362 Different Captions for Table Pages
6363 \begin_inset LatexCommand index
6364 name "Longtables ! Different Captions for Pages"
6371 \begin_layout Standard
6372 When the other captions should differ from the one of the first table page,
6373 insert a caption with a non-empty short title in a dummy caption row marked
6375 The caption used for the other table pages is inserted as caption without
6376 a short title in a dummy caption row that is marked as main header.
6377 When this caption shouldn't include the table number, use the command
6380 \begin_layout Standard
6385 caption*{caption text}
6388 \begin_layout Standard
6389 instead of LyX's caption box.
6390 The label to reference the table is inserted into the caption of the first
6394 \begin_inset LatexCommand ref
6395 reference "tab:DiffCaptions"
6399 is an example for a longtable with different heading where the second caption
6400 doesn't include the table number.
6403 \begin_layout Standard
6405 \begin_inset Tabular
6406 <lyxtabular version="3" rows="60" columns="3">
6407 <features islongtable="true">
6408 <column alignment="left" valignment="top" leftline="true" width="0cm">
6409 <column alignment="left" valignment="top" rightline="true" width="0pt">
6410 <column alignment="right" valignment="top" rightline="true" width="0pt">
6411 <row endfirsthead="true">
6412 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6415 \begin_layout Standard
6416 \begin_inset Caption
6418 \begin_layout Standard
6420 \begin_inset LatexCommand label
6421 name "tab:DiffCaptions"
6429 \begin_layout Standard
6444 \begin_layout Standard
6460 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6463 \begin_layout Standard
6469 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6472 \begin_layout Standard
6479 <row topline="true" bottomline="true" endfirsthead="true">
6480 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6483 \begin_layout Standard
6486 Example Phone List (ignore the names)
6491 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6494 \begin_layout Standard
6500 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6503 \begin_layout Standard
6510 <row topline="true" bottomline="true" endfirsthead="true">
6511 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6514 \begin_layout Standard
6522 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6525 \begin_layout Standard
6531 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6534 \begin_layout Standard
6543 <row bottomline="true" endhead="true">
6544 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6547 \begin_layout Standard
6551 \begin_layout Standard
6555 caption*{Continued Example Phone List}
6569 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6572 \begin_layout Standard
6578 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6581 \begin_layout Standard
6588 <row topline="true" bottomline="true" endhead="true">
6589 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6592 \begin_layout Standard
6600 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6603 \begin_layout Standard
6609 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6612 \begin_layout Standard
6619 <row topline="true" bottomline="true" endhead="true">
6620 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6623 \begin_layout Standard
6631 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6634 \begin_layout Standard
6640 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6643 \begin_layout Standard
6652 <row topline="true" bottomline="true" endfoot="true">
6653 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
6656 \begin_layout Standard
6657 continued on next page
6662 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6665 \begin_layout Standard
6671 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6674 \begin_layout Standard
6682 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6685 \begin_layout Standard
6693 <cell alignment="center" valignment="top" topline="true" usebox="none">
6696 \begin_layout Standard
6702 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6705 \begin_layout Standard
6713 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6716 \begin_layout Standard
6724 <cell alignment="center" valignment="top" topline="true" usebox="none">
6727 \begin_layout Standard
6733 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6736 \begin_layout Standard
6744 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6747 \begin_layout Standard
6755 <cell alignment="center" valignment="top" topline="true" usebox="none">
6758 \begin_layout Standard
6764 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6767 \begin_layout Standard
6775 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6778 \begin_layout Standard
6786 <cell alignment="center" valignment="top" topline="true" usebox="none">
6789 \begin_layout Standard
6795 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6798 \begin_layout Standard
6806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6809 \begin_layout Standard
6817 <cell alignment="center" valignment="top" topline="true" usebox="none">
6820 \begin_layout Standard
6826 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6829 \begin_layout Standard
6837 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6840 \begin_layout Standard
6848 <cell alignment="center" valignment="top" topline="true" usebox="none">
6851 \begin_layout Standard
6857 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6860 \begin_layout Standard
6868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6871 \begin_layout Standard
6879 <cell alignment="center" valignment="top" topline="true" usebox="none">
6882 \begin_layout Standard
6888 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6891 \begin_layout Standard
6899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6902 \begin_layout Standard
6910 <cell alignment="center" valignment="top" topline="true" usebox="none">
6913 \begin_layout Standard
6919 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6922 \begin_layout Standard
6930 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6933 \begin_layout Standard
6941 <cell alignment="center" valignment="top" topline="true" usebox="none">
6944 \begin_layout Standard
6950 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6953 \begin_layout Standard
6961 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6964 \begin_layout Standard
6972 <cell alignment="center" valignment="top" topline="true" usebox="none">
6975 \begin_layout Standard
6981 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6984 \begin_layout Standard
6992 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6995 \begin_layout Standard
7003 <cell alignment="center" valignment="top" topline="true" usebox="none">
7006 \begin_layout Standard
7012 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7015 \begin_layout Standard
7023 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7026 \begin_layout Standard
7034 <cell alignment="center" valignment="top" topline="true" usebox="none">
7037 \begin_layout Standard
7043 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7046 \begin_layout Standard
7054 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7057 \begin_layout Standard
7065 <cell alignment="center" valignment="top" topline="true" usebox="none">
7068 \begin_layout Standard
7074 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7077 \begin_layout Standard
7085 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7088 \begin_layout Standard
7096 <cell alignment="center" valignment="top" topline="true" usebox="none">
7099 \begin_layout Standard
7105 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7108 \begin_layout Standard
7116 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7119 \begin_layout Standard
7128 \begin_layout Standard
7139 <cell alignment="center" valignment="top" topline="true" usebox="none">
7142 \begin_layout Standard
7148 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7151 \begin_layout Standard
7159 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7162 \begin_layout Standard
7170 <cell alignment="center" valignment="top" topline="true" usebox="none">
7173 \begin_layout Standard
7179 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7182 \begin_layout Standard
7190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7193 \begin_layout Standard
7201 <cell alignment="center" valignment="top" topline="true" usebox="none">
7204 \begin_layout Standard
7210 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7213 \begin_layout Standard
7221 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7224 \begin_layout Standard
7232 <cell alignment="center" valignment="top" topline="true" usebox="none">
7235 \begin_layout Standard
7241 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7244 \begin_layout Standard
7252 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7255 \begin_layout Standard
7263 <cell alignment="center" valignment="top" topline="true" usebox="none">
7266 \begin_layout Standard
7272 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7275 \begin_layout Standard
7283 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7286 \begin_layout Standard
7294 <cell alignment="center" valignment="top" topline="true" usebox="none">
7297 \begin_layout Standard
7303 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7306 \begin_layout Standard
7314 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7317 \begin_layout Standard
7325 <cell alignment="center" valignment="top" topline="true" usebox="none">
7328 \begin_layout Standard
7334 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7337 \begin_layout Standard
7345 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7348 \begin_layout Standard
7356 <cell alignment="center" valignment="top" topline="true" usebox="none">
7359 \begin_layout Standard
7365 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7368 \begin_layout Standard
7376 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7379 \begin_layout Standard
7387 <cell alignment="center" valignment="top" topline="true" usebox="none">
7390 \begin_layout Standard
7396 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7399 \begin_layout Standard
7407 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7410 \begin_layout Standard
7418 <cell alignment="center" valignment="top" topline="true" usebox="none">
7421 \begin_layout Standard
7427 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7430 \begin_layout Standard
7438 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7441 \begin_layout Standard
7449 <cell alignment="center" valignment="top" topline="true" usebox="none">
7452 \begin_layout Standard
7458 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7461 \begin_layout Standard
7469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7472 \begin_layout Standard
7480 <cell alignment="center" valignment="top" topline="true" usebox="none">
7483 \begin_layout Standard
7489 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7492 \begin_layout Standard
7500 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7503 \begin_layout Standard
7511 <cell alignment="center" valignment="top" topline="true" usebox="none">
7514 \begin_layout Standard
7520 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7523 \begin_layout Standard
7531 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7534 \begin_layout Standard
7542 <cell alignment="center" valignment="top" topline="true" usebox="none">
7545 \begin_layout Standard
7551 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7554 \begin_layout Standard
7562 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7565 \begin_layout Standard
7573 <cell alignment="center" valignment="top" topline="true" usebox="none">
7576 \begin_layout Standard
7582 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7585 \begin_layout Standard
7593 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7596 \begin_layout Standard
7604 <cell alignment="center" valignment="top" topline="true" usebox="none">
7607 \begin_layout Standard
7613 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7616 \begin_layout Standard
7623 <row bottomline="true">
7624 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7627 \begin_layout Standard
7635 <cell alignment="center" valignment="top" topline="true" usebox="none">
7638 \begin_layout Standard
7644 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7647 \begin_layout Standard
7654 <row bottomline="true">
7655 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7658 \begin_layout Standard
7664 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
7667 \begin_layout Standard
7673 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7676 \begin_layout Standard
7684 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7687 \begin_layout Standard
7695 <cell alignment="center" valignment="top" topline="true" usebox="none">
7698 \begin_layout Standard
7704 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7707 \begin_layout Standard
7715 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7718 \begin_layout Standard
7726 <cell alignment="center" valignment="top" topline="true" usebox="none">
7729 \begin_layout Standard
7735 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7738 \begin_layout Standard
7746 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7749 \begin_layout Standard
7757 <cell alignment="center" valignment="top" topline="true" usebox="none">
7760 \begin_layout Standard
7766 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7769 \begin_layout Standard
7777 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7780 \begin_layout Standard
7788 <cell alignment="center" valignment="top" topline="true" usebox="none">
7791 \begin_layout Standard
7797 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7800 \begin_layout Standard
7808 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7811 \begin_layout Standard
7819 <cell alignment="center" valignment="top" topline="true" usebox="none">
7822 \begin_layout Standard
7828 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7831 \begin_layout Standard
7839 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7842 \begin_layout Standard
7850 <cell alignment="center" valignment="top" topline="true" usebox="none">
7853 \begin_layout Standard
7859 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7862 \begin_layout Standard
7870 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7873 \begin_layout Standard
7881 <cell alignment="center" valignment="top" topline="true" usebox="none">
7884 \begin_layout Standard
7890 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7893 \begin_layout Standard
7901 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7904 \begin_layout Standard
7912 <cell alignment="center" valignment="top" topline="true" usebox="none">
7915 \begin_layout Standard
7921 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7924 \begin_layout Standard
7932 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7935 \begin_layout Standard
7943 <cell alignment="center" valignment="top" topline="true" usebox="none">
7946 \begin_layout Standard
7952 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7955 \begin_layout Standard
7963 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7966 \begin_layout Standard
7974 <cell alignment="center" valignment="top" topline="true" usebox="none">
7977 \begin_layout Standard
7983 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7986 \begin_layout Standard
7994 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7997 \begin_layout Standard
8005 <cell alignment="center" valignment="top" topline="true" usebox="none">
8008 \begin_layout Standard
8014 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8017 \begin_layout Standard
8025 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8028 \begin_layout Standard
8036 <cell alignment="center" valignment="top" topline="true" usebox="none">
8039 \begin_layout Standard
8045 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8048 \begin_layout Standard
8056 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8059 \begin_layout Standard
8067 <cell alignment="center" valignment="top" topline="true" usebox="none">
8070 \begin_layout Standard
8076 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8079 \begin_layout Standard
8087 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8090 \begin_layout Standard
8098 <cell alignment="center" valignment="top" topline="true" usebox="none">
8101 \begin_layout Standard
8107 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8110 \begin_layout Standard
8118 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8121 \begin_layout Standard
8129 <cell alignment="center" valignment="top" topline="true" usebox="none">
8132 \begin_layout Standard
8138 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8141 \begin_layout Standard
8149 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8152 \begin_layout Standard
8160 <cell alignment="center" valignment="top" topline="true" usebox="none">
8163 \begin_layout Standard
8169 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8172 \begin_layout Standard
8180 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8183 \begin_layout Standard
8191 <cell alignment="center" valignment="top" topline="true" usebox="none">
8194 \begin_layout Standard
8200 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8203 \begin_layout Standard
8211 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8214 \begin_layout Standard
8222 <cell alignment="center" valignment="top" topline="true" usebox="none">
8225 \begin_layout Standard
8231 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8234 \begin_layout Standard
8242 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8245 \begin_layout Standard
8253 <cell alignment="center" valignment="top" topline="true" usebox="none">
8256 \begin_layout Standard
8262 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8265 \begin_layout Standard
8272 <row bottomline="true">
8273 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8276 \begin_layout Standard
8284 <cell alignment="center" valignment="top" topline="true" usebox="none">
8287 \begin_layout Standard
8293 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8296 \begin_layout Standard
8303 <row bottomline="true" endlastfoot="true">
8304 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
8307 \begin_layout Standard
8313 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8316 \begin_layout Standard
8322 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8325 \begin_layout Standard
8339 \begin_layout Section
8340 Special Longtable Issues
8341 \begin_inset LatexCommand label
8342 name "sec:Special-Longtable-Issues"
8349 \begin_layout Subsection
8350 Longtable Calculation
8351 \begin_inset LatexCommand index
8352 name "Longtables ! Calculation"
8359 \begin_layout Standard
8360 LaTeX calculates the height of table pages and their page breaks using so
8362 Chunks are pieces of the tables that are at once in LaTeX's memory.
8363 The default value is historically set to only 20 table rows.
8364 If you are using longtables with many pages this may slow down the creation
8366 You can safely increase the chunk size to values of 100-1000 by adding
8367 this command line to your document preamble:
8370 \begin_layout Standard
8375 setcounter{LTchunksize}{100}
8378 \begin_layout Subsection
8379 Floats and Longtables
8380 \begin_inset LatexCommand index
8381 name "Longtables ! Floats"
8388 \begin_layout Standard
8389 There might be problems when a float appears on the same page where a longtable
8391 To avoid such situation, add the command
8397 as ERT before your longtable.
8400 \begin_layout Subsection
8402 \begin_inset LatexCommand index
8403 name "Longtables ! Forced Page Breaks"
8410 \begin_layout Standard
8411 By default tables are only broken between rows.
8412 If you have a cell with multiples lines and want to have a page break within
8413 the cell, insert the new line command
8414 \begin_inset Quotes eld
8426 \begin_inset Quotes erd
8429 as ERT at this point of the cell where it should be broken.
8438 command you have to insert in ERT so many
8439 \begin_inset Quotes eld
8447 \begin_inset Quotes erd
8450 characters like the number of the following table columns.
8455 is the character to separate table cells.
8456 Write in ERT after each
8460 the content of the corresponding following cell and delete the content
8471 command, insert so many
8475 characters like the number of table columns before the current column.
8476 In Table\InsetSpace ~
8478 \begin_inset LatexCommand ref
8479 reference "tab:ForcedPagebreak"
8483 the cell that should be broken is in the second column followed by another
8485 Therefore the following command was inserted in the cell as ERT behind
8487 \begin_inset Quotes eld
8495 \begin_inset Quotes erd
8501 \begin_layout Standard
8513 \begin_layout Standard
8515 \begin_inset Quotes eld
8519 \begin_inset Quotes erd
8522 in the third columns of the row was deleted.
8523 If your footer row of the longtable has for a certain reason no upper line
8524 but you would have a horizontal line where the cell is broken, use this
8528 \begin_layout Standard
8542 \begin_layout Standard
8543 When the cell to be broken is in the last column, the command
8546 \begin_layout Standard
8553 parf\SpecialChar \textcompwordmark{}
8557 \begin_layout Standard
8558 must be inserted as ERT at the beginning of the cell.
8559 This assures that the part of the cell that will be displayed on the new
8560 page appears with the full width.
8563 \begin_layout Standard
8565 \begin_inset Tabular
8566 <lyxtabular version="3" rows="39" columns="3">
8567 <features islongtable="true">
8568 <column alignment="left" valignment="top" leftline="true" width="0cm">
8569 <column alignment="left" valignment="top" rightline="true" width="3cm">
8570 <column alignment="right" valignment="top" rightline="true" width="0pt">
8571 <row endfirsthead="true">
8572 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8575 \begin_layout Standard
8576 \begin_inset Caption
8578 \begin_layout Standard
8579 Table with forced page break in table cell
8580 \begin_inset LatexCommand label
8581 name "tab:ForcedPagebreak"
8589 \begin_layout Standard
8590 Table with forced page break in table cell
8604 \begin_layout Standard
8620 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8623 \begin_layout Standard
8629 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8632 \begin_layout Standard
8639 <row topline="true" bottomline="true" endfirsthead="true">
8640 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8643 \begin_layout Standard
8646 Example Phone List (ignore the names)
8651 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8654 \begin_layout Standard
8660 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8663 \begin_layout Standard
8670 <row topline="true" bottomline="true" endfirsthead="true">
8671 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8674 \begin_layout Standard
8682 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8685 \begin_layout Standard
8691 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8694 \begin_layout Standard
8703 <row bottomline="true" endhead="true">
8704 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8707 \begin_layout Standard
8711 \begin_layout Standard
8715 caption*{Continued table with forced page break in table cell}
8729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8732 \begin_layout Standard
8738 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8741 \begin_layout Standard
8748 <row topline="true" bottomline="true" endhead="true">
8749 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8752 \begin_layout Standard
8760 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8763 \begin_layout Standard
8769 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8772 \begin_layout Standard
8779 <row topline="true" bottomline="true" endhead="true">
8780 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8783 \begin_layout Standard
8791 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8794 \begin_layout Standard
8800 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8803 \begin_layout Standard
8812 <row topline="true" bottomline="true" endfoot="true">
8813 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
8816 \begin_layout Standard
8817 continued on next page
8822 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8825 \begin_layout Standard
8831 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8834 \begin_layout Standard
8842 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8845 \begin_layout Standard
8853 <cell alignment="center" valignment="top" topline="true" usebox="none">
8856 \begin_layout Standard
8862 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8865 \begin_layout Standard
8873 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8876 \begin_layout Standard
8884 <cell alignment="center" valignment="top" topline="true" usebox="none">
8887 \begin_layout Standard
8893 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8896 \begin_layout Standard
8904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8907 \begin_layout Standard
8915 <cell alignment="center" valignment="top" topline="true" usebox="none">
8918 \begin_layout Standard
8924 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8927 \begin_layout Standard
8935 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8938 \begin_layout Standard
8946 <cell alignment="center" valignment="top" topline="true" usebox="none">
8949 \begin_layout Standard
8955 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8958 \begin_layout Standard
8966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8969 \begin_layout Standard
8977 <cell alignment="center" valignment="top" topline="true" usebox="none">
8980 \begin_layout Standard
8986 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8989 \begin_layout Standard
8997 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9000 \begin_layout Standard
9008 <cell alignment="center" valignment="top" topline="true" usebox="none">
9011 \begin_layout Standard
9017 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9020 \begin_layout Standard
9028 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9031 \begin_layout Standard
9039 <cell alignment="center" valignment="top" topline="true" usebox="none">
9042 \begin_layout Standard
9048 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9051 \begin_layout Standard
9059 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9062 \begin_layout Standard
9070 <cell alignment="center" valignment="top" topline="true" usebox="none">
9073 \begin_layout Standard
9079 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9082 \begin_layout Standard
9090 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9093 \begin_layout Standard
9101 <cell alignment="center" valignment="top" topline="true" usebox="none">
9104 \begin_layout Standard
9110 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9113 \begin_layout Standard
9121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9124 \begin_layout Standard
9132 <cell alignment="center" valignment="top" topline="true" usebox="none">
9135 \begin_layout Standard
9141 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9144 \begin_layout Standard
9152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9155 \begin_layout Standard
9163 <cell alignment="center" valignment="top" topline="true" usebox="none">
9166 \begin_layout Standard
9172 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9175 \begin_layout Standard
9183 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9186 \begin_layout Standard
9194 <cell alignment="center" valignment="top" topline="true" usebox="none">
9197 \begin_layout Standard
9203 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9206 \begin_layout Standard
9214 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9217 \begin_layout Standard
9225 <cell alignment="center" valignment="top" topline="true" usebox="none">
9228 \begin_layout Standard
9234 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9237 \begin_layout Standard
9245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9248 \begin_layout Standard
9256 <cell alignment="center" valignment="top" topline="true" usebox="none">
9259 \begin_layout Standard
9265 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9268 \begin_layout Standard
9276 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9279 \begin_layout Standard
9287 <cell alignment="center" valignment="top" topline="true" usebox="none">
9290 \begin_layout Standard
9296 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9299 \begin_layout Standard
9307 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9310 \begin_layout Standard
9318 <cell alignment="center" valignment="top" topline="true" usebox="none">
9321 \begin_layout Standard
9327 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9330 \begin_layout Standard
9338 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9341 \begin_layout Standard
9349 <cell alignment="center" valignment="top" topline="true" usebox="none">
9352 \begin_layout Standard
9358 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9361 \begin_layout Standard
9369 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9372 \begin_layout Standard
9380 <cell alignment="center" valignment="top" topline="true" usebox="none">
9383 \begin_layout Standard
9389 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9392 \begin_layout Standard
9400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9403 \begin_layout Standard
9411 <cell alignment="center" valignment="top" topline="true" usebox="none">
9414 \begin_layout Standard
9420 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9423 \begin_layout Standard
9431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9434 \begin_layout Standard
9442 <cell alignment="center" valignment="top" topline="true" usebox="none">
9445 \begin_layout Standard
9451 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9454 \begin_layout Standard
9462 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9465 \begin_layout Standard
9473 <cell alignment="center" valignment="top" topline="true" usebox="none">
9476 \begin_layout Standard
9482 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9485 \begin_layout Standard
9493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9496 \begin_layout Standard
9504 <cell alignment="center" valignment="top" topline="true" usebox="none">
9507 \begin_layout Standard
9513 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9516 \begin_layout Standard
9524 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9527 \begin_layout Standard
9535 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9538 \begin_layout Standard
9540 Fürst von Montecompatri, 11.
9541 Fürst von Sulmona und Vivaro, 10.
9542 Fürst von Rossano, 5.
9543 Herzog von Canemorte, 11.
9544 Herzog von Palombara, 5.
9545 Herzog von Castelchiodato,
9549 \begin_layout Standard
9558 \begin_layout Standard
9566 Herzog von Poggionativo, 11.
9567 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
9568 Graf von Valinfreda, 11.
9569 Baron von Cropalati, 11.
9570 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
9575 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9578 \begin_layout Standard
9586 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9589 \begin_layout Standard
9597 <cell alignment="center" valignment="top" topline="true" usebox="none">
9600 \begin_layout Standard
9606 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9609 \begin_layout Standard
9617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9620 \begin_layout Standard
9628 <cell alignment="center" valignment="top" topline="true" usebox="none">
9631 \begin_layout Standard
9637 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9640 \begin_layout Standard
9648 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9651 \begin_layout Standard
9659 <cell alignment="center" valignment="top" topline="true" usebox="none">
9662 \begin_layout Standard
9668 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9671 \begin_layout Standard
9679 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9682 \begin_layout Standard
9690 <cell alignment="center" valignment="top" topline="true" usebox="none">
9693 \begin_layout Standard
9699 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9702 \begin_layout Standard
9710 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9713 \begin_layout Standard
9721 <cell alignment="center" valignment="top" topline="true" usebox="none">
9724 \begin_layout Standard
9730 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9733 \begin_layout Standard
9741 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9744 \begin_layout Standard
9752 <cell alignment="center" valignment="top" topline="true" usebox="none">
9755 \begin_layout Standard
9761 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9764 \begin_layout Standard
9772 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9775 \begin_layout Standard
9783 <cell alignment="center" valignment="top" topline="true" usebox="none">
9786 \begin_layout Standard
9792 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9795 \begin_layout Standard
9802 <row bottomline="true">
9803 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9806 \begin_layout Standard
9814 <cell alignment="center" valignment="top" topline="true" usebox="none">
9817 \begin_layout Standard
9823 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9826 \begin_layout Standard
9833 <row endlastfoot="true">
9834 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9837 \begin_layout Standard
9843 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9846 \begin_layout Standard
9852 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9855 \begin_layout Standard
9869 \begin_layout Section
9870 Multiple Lines Columns and Rows
9873 \begin_layout Subsection
9874 Multiple Lines in Table Cells
9875 \begin_inset LatexCommand label
9876 name "sub:Multiple-Lines-in"
9881 \begin_inset LatexCommand index
9882 name "Multiple Lines in Table Cells"
9887 \begin_inset LatexCommand index
9888 name "Table ! Linebreaks"
9895 \begin_layout Standard
9897 \begin_inset Float table
9903 \begin_layout Standard
9904 \begin_inset Caption
9906 \begin_layout Standard
9907 \begin_inset LatexCommand label
9908 name "tab:Table-with-multiple"
9912 Table with multiple lines in cells
9920 \begin_layout Standard
9922 \begin_inset Tabular
9923 <lyxtabular version="3" rows="3" columns="3">
9925 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
9926 <column alignment="center" valignment="middle" leftline="true" width="0">
9927 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
9928 <row topline="true">
9929 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9932 \begin_layout Standard
9937 \begin_layout Standard
9951 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9954 \begin_layout Standard
9960 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9963 \begin_layout Standard
9970 <row topline="true">
9971 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9974 \begin_layout Standard
9980 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9983 \begin_layout Standard
9989 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9992 \begin_layout Standard
9999 <row topline="true" bottomline="true">
10000 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10003 \begin_layout Standard
10009 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10012 \begin_layout Standard
10018 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10021 \begin_layout Standard
10040 \begin_layout Standard
10041 Adjusting a fixed width for a column, enables to enter text as a paragraph
10042 with multiple lines and hyphenations.
10045 \begin_layout Standard
10046 To produce Table\InsetSpace ~
10048 \begin_inset LatexCommand ref
10049 reference "tab:Table-with-multiple"
10053 , create a 3×3 table, mark the first cell and right-click on it.
10054 In the appearing table dialog we set a cell width of 2.5\InsetSpace \thinspace{}
10055 cm and choose centered
10056 for the vertical and horizontal alignment.
10057 The vertical alignment is used for all cells of the row.
10058 As our text is smaller than than 2.5\InsetSpace \thinspace{}
10059 cm, only one line will appear.
10060 To get two lines, we add a line break with the command
10063 \begin_layout Standard
10071 \begin_layout Standard
10073 If the text is wider than the set cell width it will automatically be broken
10077 \begin_layout Standard
10078 If you have a long word in a cell with a fixed width, it cannot be hyphenated
10079 by LaTeX if it is the first entry.
10080 Therefore you need to insert something, to make the word not being the
10081 first entry: Add the command
10084 \begin_layout Standard
10092 \begin_layout Standard
10093 in ERT before the word.
10094 As the space is zero, it doesn't change the output.
10097 \begin_inset LatexCommand ref
10098 reference "tab:Table-with-and"
10105 \begin_layout Standard
10106 \begin_inset Float table
10112 \begin_layout Standard
10113 \begin_inset Caption
10115 \begin_layout Standard
10116 \begin_inset LatexCommand label
10117 name "tab:Table-with-and"
10121 Table with and without hyphenation
10129 \begin_layout Standard
10133 \begin_inset Tabular
10134 <lyxtabular version="3" rows="3" columns="3">
10136 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10137 <column alignment="center" valignment="middle" leftline="true" width="0">
10138 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
10139 <row topline="true">
10140 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10143 \begin_layout Standard
10144 verylongtablecellword
10149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10152 \begin_layout Standard
10158 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10161 \begin_layout Standard
10168 <row topline="true">
10169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10172 \begin_layout Standard
10178 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10181 \begin_layout Standard
10187 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10190 \begin_layout Standard
10197 <row topline="true" bottomline="true">
10198 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10201 \begin_layout Standard
10207 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10210 \begin_layout Standard
10216 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10219 \begin_layout Standard
10233 \begin_inset Tabular
10234 <lyxtabular version="3" rows="3" columns="3">
10236 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10237 <column alignment="center" valignment="middle" leftline="true" width="0">
10238 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
10239 <row topline="true">
10240 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10243 \begin_layout Standard
10247 \begin_layout Standard
10256 verylongtablecellword
10261 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10264 \begin_layout Standard
10270 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10273 \begin_layout Standard
10280 <row topline="true">
10281 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10284 \begin_layout Standard
10290 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10293 \begin_layout Standard
10299 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10302 \begin_layout Standard
10309 <row topline="true" bottomline="true">
10310 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10313 \begin_layout Standard
10319 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10322 \begin_layout Standard
10328 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10331 \begin_layout Standard
10352 \begin_layout Standard
10358 \begin_layout Subsection
10360 \begin_inset LatexCommand label
10361 name "sub:Multicolumns"
10366 \begin_inset LatexCommand index
10367 name "Multicolumns"
10372 \begin_inset LatexCommand index
10373 name "Table ! Multicolumns"
10380 \begin_layout Subsubsection
10384 \begin_layout Standard
10385 To span a cell over multiple columns, mark as much cells within a line that
10386 should be one spanned cell and use either the table-toolbar button
10387 \begin_inset Graphics
10388 filename ../images/tabular-feature_multicolumn.xpm
10390 scaleBeforeRotation
10396 Edit\SpecialChar \menuseparator
10397 Table\SpecialChar \menuseparator
10400 , or right click on the marked cells and choose multicolumn in the appearing
10401 table dialog under the tab
10408 \begin_layout Standard
10409 Multicolumns have there own cell settings.
10410 That means changing cell borders, cell alignment, and the width only affects
10412 Here is an example table with a multicolumn cell in the first row and one
10413 in the last row without the upper border:
10416 \begin_layout Standard
10418 \begin_inset Tabular
10419 <lyxtabular version="3" rows="3" columns="4">
10420 <features firstHeadTopDL="true" firstHeadBottomDL="true">
10421 <column alignment="center" valignment="top" leftline="true" width="0pt">
10422 <column alignment="center" valignment="middle" leftline="true" width="0">
10423 <column alignment="center" valignment="top" leftline="true" width="0in">
10424 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
10425 <row topline="true" bottomline="true">
10426 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10429 \begin_layout Standard
10435 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
10438 \begin_layout Standard
10444 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10447 \begin_layout Standard
10453 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10456 \begin_layout Standard
10463 <row topline="true">
10464 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10467 \begin_layout Standard
10482 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10485 \begin_layout Standard
10491 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10494 \begin_layout Standard
10500 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10503 \begin_layout Standard
10510 <row topline="true" bottomline="true">
10511 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10514 \begin_layout Standard
10520 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10523 \begin_layout Standard
10529 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10532 \begin_layout Standard
10538 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10541 \begin_layout Standard
10555 \begin_layout Subsubsection
10556 Multicolumn Calculations
10557 \begin_inset LatexCommand label
10558 name "sub:Multicolumn-Calculations"
10563 \begin_inset LatexCommand index
10564 name "Multicolumns ! Calculations"
10571 \begin_layout Standard
10572 LyX supports multicolumns directly, but we have to take notice of the cell
10573 width of the columns spanned by the multicolumn cell.
10576 \begin_layout Standard
10577 \begin_inset Float table
10582 \begin_layout Standard
10583 \begin_inset Caption
10585 \begin_layout Standard
10586 \begin_inset LatexCommand label
10587 name "tab:Table-with-centered"
10591 Table with centered multicolumn text above two columns that have exactly
10592 half the width of the multicolumn cell
10593 \begin_inset OptArg
10596 \begin_layout Standard
10597 Perfect multicolumn table
10610 \begin_layout Standard
10612 \begin_inset Tabular
10613 <lyxtabular version="3" rows="3" columns="3">
10615 <column alignment="center" valignment="middle" leftline="true" width="0" special=">{\centering}m{1.25cm-6.2pt}">
10616 <column alignment="center" valignment="middle" leftline="true" width="0">
10617 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10618 <row topline="true">
10619 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
10622 \begin_layout Standard
10623 multiple lines multicolumn
10628 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10631 \begin_layout Standard
10637 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10640 \begin_layout Standard
10647 <row topline="true">
10648 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10651 \begin_layout Standard
10657 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10660 \begin_layout Standard
10666 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10669 \begin_layout Standard
10676 <row topline="true" bottomline="true">
10677 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10680 \begin_layout Standard
10686 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10689 \begin_layout Standard
10695 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10698 \begin_layout Standard
10717 \begin_layout Standard
10718 To create for example Table\InsetSpace ~
10720 \begin_inset LatexCommand ref
10721 reference "tab:Table-with-centered"
10725 , mark the first two cells in the first row of a 3×3 table and right-click
10727 Now choose for this cell
10735 and a width of 2.5\InsetSpace \thinspace{}
10736 cm in the table dialog.
10737 The spanned columns should have exactly half the width of the multicolumn
10738 cell, so that you would adjust a width of 1.25\InsetSpace \thinspace{}
10739 cm for the first column.
10740 The second column has then automatically a width of 1.25\InsetSpace \thinspace{}
10742 width - width of first column).
10743 This was done for Table\InsetSpace ~
10745 \begin_inset LatexCommand ref
10746 reference "tab:Table-without-half"
10753 \begin_layout Standard
10754 \begin_inset Float table
10759 \begin_layout Standard
10760 \begin_inset Caption
10762 \begin_layout Standard
10763 \begin_inset LatexCommand label
10764 name "tab:Table-without-half"
10768 Table where the spanned table columns have not exactly half the width of
10769 the multicolumn cell
10770 \begin_inset OptArg
10773 \begin_layout Standard
10774 Imperfect multicolumn table
10787 \begin_layout Standard
10789 \begin_inset Tabular
10790 <lyxtabular version="3" rows="3" columns="3">
10792 <column alignment="center" valignment="top" leftline="true" width="1.25cm">
10793 <column alignment="center" valignment="top" leftline="true" width="0">
10794 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10795 <row topline="true" bottomline="true">
10796 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
10799 \begin_layout Standard
10800 multiple lines multicolumn
10805 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10808 \begin_layout Standard
10814 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10817 \begin_layout Standard
10824 <row topline="true">
10825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10828 \begin_layout Standard
10834 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10837 \begin_layout Standard
10843 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10846 \begin_layout Standard
10853 <row topline="true" bottomline="true">
10854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10857 \begin_layout Standard
10863 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10866 \begin_layout Standard
10872 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10875 \begin_layout Standard
10894 \begin_layout Standard
10895 You can see that the first column has not the half width of the multicolumn
10896 cell, it is a bit bigger.
10897 The reason is that the given width of a cell
10898 \begin_inset Formula $W_{g}$
10901 is not its total width
10902 \begin_inset Formula $W_{\mathrm{tot}}$
10905 because a cell is always a bit larger than its given width.
10906 Appendix\InsetSpace ~
10908 \begin_inset LatexCommand eqref
10909 reference "cha:Explanation-of-Equation"
10913 explains it in detail.
10916 \begin_layout Standard
10917 The needed given width
10918 \begin_inset Formula $W_{g\, n}$
10925 columns are spanned can be calculated, so that each column has a total
10927 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
10931 \begin_inset Formula \begin{equation}
10932 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)·(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
10939 \begin_layout Standard
10940 In our case we have
10941 \begin_inset Formula $n=2$
10945 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
10948 cm and the default values for the lengths, so that equation
10949 \begin_inset LatexCommand ref
10955 \begin_inset Formula \begin{equation}
10956 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
10963 \begin_layout Standard
10964 To enable calculations in LaTeX, the LaTeX-package
10968 must be loaded with the document preamble line
10969 \begin_inset LatexCommand index
10970 name "LaTeX-packages ! calc"
10977 \begin_layout Standard
10985 \begin_layout Standard
10986 LyX does not allow to calculate lengths in the width-field of the table
10988 Therefore you have to format the column by inserting a LaTeX-argument in
10990 Here is an overview about the arguments:
10993 \begin_layout Itemize
10998 creates cell with a fixed width, its text is vertically top-aligned
11001 \begin_layout Itemize
11006 creates cell with a fixed width, its text is vertically centered
11009 \begin_layout Itemize
11014 creates cell with a fixed width, its text is vertically bottom-aligned
11017 \begin_layout Standard
11018 By entering a LaTeX-argument, all cell settings set in the table dialog
11022 \begin_layout Standard
11023 \begin_inset Note Greyedout
11026 \begin_layout Standard
11031 Due to a bug, LyX shows the overwritten settings anyway.
11039 \begin_layout Standard
11040 As the text should be horizontally centered, the command
11047 You can now enter the following LaTeX-argument for the first spanned column:
11050 \begin_layout Standard
11055 centering}m{1.25cm-6.2pt}
11058 \begin_layout Standard
11063 means, that the commands inside the braces are applied before the cell
11067 \begin_layout Standard
11068 Although we have chosen centered alignment for the text of the multicolumn
11069 cell, it is still left aligned.
11070 This is because LyX only applies the alignment to single columns.
11071 So we have to use for the multicolumn the LaTeX-argument
11074 \begin_layout Standard
11082 \begin_layout Subsection
11084 \begin_inset LatexCommand index
11090 \begin_inset LatexCommand index
11091 name "Table ! Multirows"
11096 \begin_inset LatexCommand index
11097 name "LaTeX-packages ! multirow"
11104 \begin_layout Standard
11105 In contrary to multicolumns multirows are not yet supported by LyX so a
11106 bit of ERT needs to be used.
11107 To use multirows load the LaTeX-package
11111 in your document preamble with the command
11114 \begin_layout Standard
11119 usepackage{multirow}
11122 \begin_layout Standard
11123 Multirows are created with the command
11126 \begin_layout Standard
11131 multirow{number of rows}{cell width}{cell entry}
11134 \begin_layout Standard
11135 To create the following table:
11138 \begin_layout Standard
11143 \begin_layout Standard
11157 \begin_inset Tabular
11158 <lyxtabular version="3" rows="3" columns="3">
11160 <column alignment="center" valignment="top" leftline="true" width="0">
11161 <column alignment="center" valignment="top" leftline="true" width="0">
11162 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
11163 <row topline="true">
11164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11167 \begin_layout Standard
11173 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11176 \begin_layout Standard
11182 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11185 \begin_layout Standard
11192 <row topline="true">
11193 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11196 \begin_layout Standard
11200 \begin_layout Standard
11204 multirow{2}{2.5cm}{
11213 \begin_layout Standard
11225 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11228 \begin_layout Standard
11234 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11237 \begin_layout Standard
11244 <row topline="true" bottomline="true">
11245 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11248 \begin_layout Standard
11254 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11257 \begin_layout Standard
11263 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11266 \begin_layout Standard
11281 \begin_layout Standard
11297 \begin_layout Standard
11298 create a 3×3 table.
11299 To get rid of the line above the last cell in the first column, the cell
11300 is marked as multicolumn and the upper border is unset.
11301 The multirow is now created in the second row of the first column by inserting
11305 \begin_layout Standard
11310 multirow{2}{2.5cm}{
11313 \begin_layout Standard
11315 According to the command parameters the multirow spans now two rows and
11316 has a width of 2.5\InsetSpace \thinspace{}
11318 The content of the multirow cell follows outside the ERT box and the command
11319 is finished with a right brace
11323 in another ERT-box behind the text.
11326 \begin_layout Standard
11333 left-aligns its content by default.
11334 To override the default, renew the command
11343 \begin_layout Standard
11355 \begin_layout Standard
11356 in ERT in the document preamble.
11357 Then all entries of multirow cells in the document are centered.
11358 If centering is only needed for several tables, you can renew the command
11359 in an ERT box just before the table instead of the preamble.
11360 If the text should be right-aligned, replace
11373 To return to left-alignment
11382 \begin_layout Section
11384 \begin_inset LatexCommand label
11385 name "sec:Formal-Tables"
11390 \begin_inset LatexCommand index
11391 name "Table ! Formal"
11398 \begin_layout Standard
11399 Tables are often typeset in books similar to Table\InsetSpace ~
11401 \begin_inset LatexCommand ref
11402 reference "tab:Example-booktabs-table"
11407 This kind of tables is called
11408 \begin_inset Quotes eld
11416 \begin_inset Quotes erd
11420 To make a table a formal table use the option
11428 tab of the table dialog.
11431 \begin_layout Standard
11432 \begin_inset Float table
11438 \begin_layout Standard
11439 \begin_inset Caption
11441 \begin_layout Standard
11442 \begin_inset LatexCommand label
11443 name "tab:Example-booktabs-table"
11447 Example booktabs-table
11455 \begin_layout Standard
11457 \begin_inset Tabular
11458 <lyxtabular version="3" rows="8" columns="4">
11459 <features booktabs="true">
11460 <column alignment="center" valignment="top" rightline="true" width="0">
11461 <column alignment="center" valignment="top" width="0">
11462 <column alignment="center" valignment="top" width="0">
11463 <column alignment="center" valignment="top" width="0">
11464 <row topline="true">
11465 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11468 \begin_layout Standard
11474 <cell alignment="center" valignment="top" topline="true" usebox="none">
11477 \begin_layout Standard
11479 \begin_inset Formula $\,$
11487 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
11490 \begin_layout Standard
11492 \begin_inset Formula $\,$
11500 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11503 \begin_layout Standard
11511 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11514 \begin_layout Standard
11518 \begin_layout Standard
11531 \begin_layout Standard
11540 Detector thickness [µm]
11545 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11548 \begin_layout Standard
11554 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11557 \begin_layout Standard
11563 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11566 \begin_layout Standard
11573 <row topline="true">
11574 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11577 \begin_layout Standard
11583 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11586 \begin_layout Standard
11592 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11595 \begin_layout Standard
11601 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11604 \begin_layout Standard
11611 <row topspace="default">
11612 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11615 \begin_layout Standard
11616 Spatial resolution [µm]
11621 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11624 \begin_layout Standard
11630 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11633 \begin_layout Standard
11639 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11642 \begin_layout Standard
11649 <row topspace="default">
11650 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11653 \begin_layout Standard
11655 \begin_inset Formula $f_{\mathrm{max}}$
11663 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11666 \begin_layout Standard
11672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11675 \begin_layout Standard
11681 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11684 \begin_layout Standard
11691 <row topspace="default">
11692 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11695 \begin_layout Standard
11699 \begin_layout Standard
11703 cmidrule(l{10pt}){1-1}
11708 LSF-spatial resolution
11713 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11716 \begin_layout Standard
11722 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11725 \begin_layout Standard
11731 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11734 \begin_layout Standard
11742 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11745 \begin_layout Standard
11751 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11754 \begin_layout Standard
11760 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11763 \begin_layout Standard
11769 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11772 \begin_layout Standard
11779 <row bottomline="true">
11780 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11783 \begin_layout Standard
11789 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11792 \begin_layout Standard
11798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11801 \begin_layout Standard
11807 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11810 \begin_layout Standard
11829 \begin_layout Standard
11830 Spaces to table rows can be added using the
11834 tab of the table dialog as described in section\InsetSpace ~
11836 \begin_inset LatexCommand ref
11837 reference "sub:Row-Spacing"
11844 \begin_layout Standard
11845 In contrary to normal tables, formal tables have no vertical table lines.
11846 The horizontal table lines can be set like for normal tables but they appear
11847 with different width in the output:
11849 The first and the last table line have
11850 a default width of 0.08\InsetSpace \thinspace{}
11851 em while the other lines have a default width of
11852 0.05\InsetSpace \thinspace{}
11856 \begin_layout Standard
11857 The default widths can be changed with the following preamble lines
11860 \begin_layout Standard
11880 \begin_layout Standard
11881 This example is for the first line, the so called
11886 If you want to change the width for the last line, replace
11895 To change the width for the other lines replace
11904 You can use all units listed in appendix\InsetSpace ~
11906 \begin_inset LatexCommand ref
11907 reference "cha:Units-available-in"
11914 \begin_layout Standard
11915 Lines that don't span over all table columns can be created by setting a
11916 table line for multicolumn cells.
11917 LyX will then internally use the command
11923 to create this line.
11927 \begin_layout Standard
11932 cmidrule[width](trim){startcol-endcol}
11935 \begin_layout Standard
11942 are are currently not supported by LyX so you have to use ERT to be able
11950 s can manually be created by inserting the command as ERT as first cell
11951 entry of the first cell of a row.
11952 The line is then drawn in the output above the current row.
11955 \begin_layout Standard
11956 The default for the width is 0.03\InsetSpace \thinspace{}
11958 Startcol is the number of the column where the line starts and endcol the
11959 column number where the line ends.
11960 The endcol always needs to be specified, also when the line should span
11962 The optional parameter trim could be either
11970 where the trimwidth is also optional.
11971 Using for example the parameter
11975 means that the line is trimmed from its left end by 2\InsetSpace \thinspace{}
11977 If you don't specify the trimwidth the lines are trimmed by the default
11978 of 0.5\InsetSpace \thinspace{}
11982 \begin_layout Standard
11983 \begin_inset VSpace bigskip
11988 \begin_inset LatexCommand ref
11989 reference "tab:Example-booktabs-table"
11993 was created using the commands
11996 \begin_layout Standard
12006 \begin_layout Standard
12007 at the beginning of the in the second row and
12010 \begin_layout Standard
12015 cmidrule(l{10pt}){1-1}
12018 \begin_layout Standard
12022 \begin_layout Standard
12023 \begin_inset VSpace bigskip
12029 \begin_layout Standard
12030 You might want to have overlapping
12036 s like in Table\InsetSpace ~
12038 \begin_inset LatexCommand ref
12039 reference "tab:Special-booktabs-table"
12044 This can be achieved with the ERT command
12047 \begin_layout Standard
12055 \begin_layout Standard
12056 The command that was used for the second row of Table\InsetSpace ~
12058 \begin_inset LatexCommand ref
12059 reference "tab:Special-booktabs-table"
12066 \begin_layout Standard
12080 \begin_layout Standard
12081 The command for the sixth row is
12084 \begin_layout Standard
12096 \begin_layout Standard
12097 \begin_inset VSpace bigskip
12103 \begin_layout Standard
12104 If you are anyway not satisfied with the border line spacing, you can use
12105 the following command to produce lines that span over all table columns
12110 \begin_layout Standard
12115 specialrule{width}{space above}{space below}
12118 \begin_layout Standard
12119 For more informations about these specialties, we refer to the manual of
12125 \begin_inset LatexCommand cite
12131 \begin_inset LatexCommand index
12132 name "LaTeX-packages ! booktabs"
12139 \begin_layout Standard
12140 \begin_inset Float table
12146 \begin_layout Standard
12147 \begin_inset Caption
12149 \begin_layout Standard
12150 \begin_inset LatexCommand label
12151 name "tab:Special-booktabs-table"
12155 Special booktabs-table
12163 \begin_layout Standard
12165 \begin_inset Tabular
12166 <lyxtabular version="3" rows="8" columns="4">
12167 <features booktabs="true">
12168 <column alignment="center" valignment="top" width="0">
12169 <column alignment="center" valignment="top" width="0">
12170 <column alignment="center" valignment="top" width="0">
12171 <column alignment="center" valignment="top" width="0">
12172 <row topline="true">
12173 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12176 \begin_layout Standard
12182 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12185 \begin_layout Standard
12186 Medipix\InsetSpace \thinspace{}
12192 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
12195 \begin_layout Standard
12196 Medipix\InsetSpace \thinspace{}
12202 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12205 \begin_layout Standard
12213 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12216 \begin_layout Standard
12220 \begin_layout Standard
12233 \begin_layout Standard
12246 \begin_layout Standard
12259 \begin_layout Standard
12268 Detector thickness [µm]
12273 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12276 \begin_layout Standard
12282 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12285 \begin_layout Standard
12291 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12294 \begin_layout Standard
12301 <row topline="true">
12302 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12305 \begin_layout Standard
12311 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12314 \begin_layout Standard
12320 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12323 \begin_layout Standard
12329 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12332 \begin_layout Standard
12339 <row topspace="default">
12340 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12343 \begin_layout Standard
12344 Spatial resolution [µm]
12349 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12352 \begin_layout Standard
12358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12361 \begin_layout Standard
12367 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12370 \begin_layout Standard
12377 <row topspace="default">
12378 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12381 \begin_layout Standard
12383 \begin_inset Formula $f_{\mathrm{max}}$
12391 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12394 \begin_layout Standard
12400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12403 \begin_layout Standard
12409 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12412 \begin_layout Standard
12419 <row topline="true">
12420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12423 \begin_layout Standard
12427 \begin_layout Standard
12440 \begin_layout Standard
12449 LSF-spatial resolution
12454 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12457 \begin_layout Standard
12463 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12466 \begin_layout Standard
12472 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12475 \begin_layout Standard
12483 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12486 \begin_layout Standard
12492 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12495 \begin_layout Standard
12501 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12504 \begin_layout Standard
12510 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12513 \begin_layout Standard
12520 <row bottomline="true">
12521 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12524 \begin_layout Standard
12530 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12533 \begin_layout Standard
12539 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12542 \begin_layout Standard
12548 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12551 \begin_layout Standard
12570 \begin_layout Section
12571 Vertical Table Alignment
12572 \begin_inset LatexCommand index
12573 name "Table ! Alignment"
12580 \begin_layout Standard
12581 To align tables vertically in a text line the table must be inside a box.
12582 The box can then be vertically aligned as described in section\InsetSpace ~
12584 \begin_inset LatexCommand ref
12585 reference "sec:Box-Dialog"
12592 \begin_layout Standard
12593 In the following example the tables are inside a minipage
12597 \begin_layout Standard
12598 Minipages are described in section\InsetSpace ~
12600 \begin_inset LatexCommand ref
12601 reference "sec:Minipages"
12610 box that has a width of 15\InsetSpace \thinspace{}
12614 \begin_layout Itemize
12616 \begin_inset Box Frameless
12625 height_special "totalheight"
12628 \begin_layout Standard
12629 \begin_inset Tabular
12630 <lyxtabular version="3" rows="3" columns="3">
12632 <column alignment="center" valignment="top" leftline="true" width="0">
12633 <column alignment="center" valignment="top" leftline="true" width="0">
12634 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12635 <row topline="true">
12636 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12639 \begin_layout Standard
12645 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12648 \begin_layout Standard
12654 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12657 \begin_layout Standard
12664 <row topline="true">
12665 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12668 \begin_layout Standard
12674 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12677 \begin_layout Standard
12683 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12686 \begin_layout Standard
12693 <row topline="true" bottomline="true">
12694 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12697 \begin_layout Standard
12703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12706 \begin_layout Standard
12712 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12715 \begin_layout Standard
12735 \begin_layout Standard
12747 \begin_inset Box Frameless
12756 height_special "totalheight"
12759 \begin_layout Standard
12760 \begin_inset Tabular
12761 <lyxtabular version="3" rows="3" columns="3">
12763 <column alignment="center" valignment="top" leftline="true" width="0">
12764 <column alignment="center" valignment="top" leftline="true" width="0">
12765 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12766 <row topline="true">
12767 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12770 \begin_layout Standard
12776 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12779 \begin_layout Standard
12785 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12788 \begin_layout Standard
12795 <row topline="true">
12796 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12799 \begin_layout Standard
12805 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12808 \begin_layout Standard
12814 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12817 \begin_layout Standard
12824 <row topline="true" bottomline="true">
12825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12828 \begin_layout Standard
12834 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12837 \begin_layout Standard
12843 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12846 \begin_layout Standard
12866 \begin_layout Standard
12876 \begin_layout Itemize
12878 \begin_inset Box Frameless
12887 height_special "totalheight"
12890 \begin_layout Standard
12891 \begin_inset Tabular
12892 <lyxtabular version="3" rows="3" columns="3">
12894 <column alignment="center" valignment="top" leftline="true" width="0">
12895 <column alignment="center" valignment="top" leftline="true" width="0">
12896 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12897 <row topline="true">
12898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12901 \begin_layout Standard
12907 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12910 \begin_layout Standard
12916 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12919 \begin_layout Standard
12926 <row topline="true">
12927 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12930 \begin_layout Standard
12936 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12939 \begin_layout Standard
12945 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12948 \begin_layout Standard
12955 <row topline="true" bottomline="true">
12956 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12959 \begin_layout Standard
12965 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12968 \begin_layout Standard
12974 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12977 \begin_layout Standard
12996 \begin_layout Itemize
12998 \begin_inset Box Frameless
13007 height_special "totalheight"
13010 \begin_layout Standard
13011 \begin_inset Tabular
13012 <lyxtabular version="3" rows="3" columns="3">
13014 <column alignment="center" valignment="top" leftline="true" width="0">
13015 <column alignment="center" valignment="top" leftline="true" width="0">
13016 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13017 <row topline="true">
13018 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13021 \begin_layout Standard
13027 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13030 \begin_layout Standard
13036 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13039 \begin_layout Standard
13046 <row topline="true">
13047 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13050 \begin_layout Standard
13056 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13059 \begin_layout Standard
13065 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13068 \begin_layout Standard
13075 <row topline="true" bottomline="true">
13076 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13079 \begin_layout Standard
13085 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13088 \begin_layout Standard
13094 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13097 \begin_layout Standard
13117 \begin_layout Standard
13129 \begin_inset Box Frameless
13138 height_special "totalheight"
13141 \begin_layout Standard
13142 \begin_inset Tabular
13143 <lyxtabular version="3" rows="3" columns="3">
13145 <column alignment="center" valignment="top" leftline="true" width="0">
13146 <column alignment="center" valignment="top" leftline="true" width="0">
13147 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13148 <row topline="true">
13149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13152 \begin_layout Standard
13158 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13161 \begin_layout Standard
13167 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13170 \begin_layout Standard
13177 <row topline="true">
13178 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13181 \begin_layout Standard
13187 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13190 \begin_layout Standard
13196 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13199 \begin_layout Standard
13206 <row topline="true" bottomline="true">
13207 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13210 \begin_layout Standard
13216 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13219 \begin_layout Standard
13225 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13228 \begin_layout Standard
13248 \begin_layout Standard
13258 \begin_layout Standard
13259 As you can see, the content of the first and last table row is not correctly
13260 aligned with the text line where the table is in.
13261 To get this alignment, the minipage box must be set into a raisebox
13265 \begin_layout Standard
13266 Raiseboxes are described in section\InsetSpace ~
13268 \begin_inset LatexCommand ref
13269 reference "sub:Vertical-Alignment"
13279 In the example above the second table in the first item is aligned using
13283 \begin_layout Standard
13293 \begin_layout Standard
13295 Behind the box the closing brace
13299 is inserted as ERT.
13300 For the second table in the last item the command
13303 \begin_layout Standard
13313 \begin_layout Standard
13317 \begin_layout Standard
13318 \begin_inset Note Greyedout
13321 \begin_layout Standard
13326 The alignment of the table row content to the surrounding text line is
13328 The needed factor of the
13334 command for this alignment depends on the document font, the font size,
13335 and the table line thickness.
13343 \begin_layout Section
13345 \begin_inset LatexCommand label
13346 name "sec:Colored-Tables"
13351 \begin_inset LatexCommand index
13352 name "Table ! Color"
13359 \begin_layout Subsection
13361 \begin_inset LatexCommand index
13362 name "Table Color ! for Cells"
13367 \begin_inset LatexCommand index
13368 name "Color ! for Table Cells"
13375 \begin_layout Standard
13376 \begin_inset Float table
13382 \begin_layout Standard
13383 \begin_inset Caption
13385 \begin_layout Standard
13386 \begin_inset LatexCommand label
13387 name "tab:Table-colored-without"
13391 Table colored without using the package
13396 \begin_inset OptArg
13399 \begin_layout Standard
13400 Table without colortbl
13413 \begin_layout Standard
13415 \begin_inset Tabular
13416 <lyxtabular version="3" rows="3" columns="3">
13418 <column alignment="center" valignment="top" leftline="true" width="0">
13419 <column alignment="center" valignment="top" leftline="true" width="0">
13420 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13421 <row topline="true">
13422 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13425 \begin_layout Standard
13433 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13436 \begin_layout Standard
13444 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13447 \begin_layout Standard
13456 <row topline="true">
13457 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13460 \begin_layout Standard
13468 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13471 \begin_layout Standard
13479 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13482 \begin_layout Standard
13491 <row topline="true" bottomline="true">
13492 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13495 \begin_layout Standard
13503 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13506 \begin_layout Standard
13514 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13517 \begin_layout Standard
13538 \begin_layout Standard
13539 If you only need colored text, mark the cells and choose a color in the
13542 Edit\SpecialChar \menuseparator
13547 This was used to create Table\InsetSpace ~
13549 \begin_inset LatexCommand ref
13550 reference "tab:Table-colored-without"
13555 In any other case you have to use the LaTeX-package
13560 \begin_inset LatexCommand index
13561 name "LaTeX-packages ! colortbl"
13568 \begin_layout Standard
13569 To create colored tables,
13573 must be loaded in the preamble with the line
13576 \begin_layout Standard
13581 usepackage{colortbl}
13584 \begin_layout Standard
13585 The color of a column is adjusted with the command
13588 \begin_layout Standard
13593 columncolor{name of color}
13596 \begin_layout Standard
13602 More about the command
13606 is described in section\InsetSpace ~
13608 \begin_inset LatexCommand ref
13609 reference "sub:Multicolumn-Calculations"
13616 \begin_layout Standard
13617 The following color names are predefined:
13620 \begin_layout Standard
13654 \begin_layout Standard
13655 \begin_inset VSpace medskip
13661 \begin_layout Standard
13662 You can also define your own color with the command
13665 \begin_layout Standard
13670 def\SpecialChar \textcompwordmark{}
13671 inecolor{color name}{color model}{color values}
13674 \begin_layout Standard
13675 The color model can be
13678 \begin_layout Labeling
13679 \labelwidthstring 00.00.0000
13680 cmyk: cyan, magenta, yellow, black
13683 \begin_layout Labeling
13684 \labelwidthstring 00.00.0000
13685 rgb: red, green blue
13688 \begin_layout Labeling
13689 \labelwidthstring 00.00.0000
13693 \begin_layout Standard
13694 and the color values are comma separated numbers between 0 and 1 describing
13695 the factor for the corresponding color of the color model.
13698 \begin_layout Standard
13699 You can e.\InsetSpace \thinspace{}
13705 " in the preamble with
13708 \begin_layout Standard
13713 def\SpecialChar \textcompwordmark{}
13714 inecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
13717 \begin_layout Standard
13725 \begin_layout Standard
13730 def\SpecialChar \textcompwordmark{}
13731 inecolor{lightgray}{gray}{0.8}
13734 \begin_layout Standard
13735 \begin_inset VSpace medskip
13741 \begin_layout Standard
13742 Lines are colored with the command
13745 \begin_layout Standard
13750 rowcolor{name of color}
13753 \begin_layout Standard
13754 and cells are colored with the command
13757 \begin_layout Standard
13762 cellcolor{name of color}
13765 \begin_layout Standard
13766 Both commands are inserted at the beginning of a cell as ERT.
13769 \begin_layout Standard
13770 To color characters in the table, mark the cells and use the LyX menu
13772 Edit\SpecialChar \menuseparator
13777 If a cell contains ERT mark only the characters, otherwise the colored
13778 ERT will cause LaTeX-errors.
13781 \begin_layout Standard
13782 \begin_inset Note Greyedout
13785 \begin_layout Standard
13790 Not all DVI-viewers are able to display self-defined colors.
13798 \begin_layout Standard
13799 \begin_inset VSpace bigskip
13805 \begin_layout Standard
13806 To create Table\InsetSpace ~
13808 \begin_inset LatexCommand ref
13809 reference "tab:Table-colored-using"
13813 do the following: The color of the first column should be
13821 \begin_layout Standard
13826 columncolor{darkgreen}
13831 \begin_layout Standard
13832 as LaTeX-argument for this column.
13833 The first row should be blue, therefore the ERT command
13836 \begin_layout Standard
13844 \begin_layout Standard
13845 is inserted to the first cell of this row.
13846 Note that this overwrites the column color for the first cell.
13847 The last cell of the last row is colored magenta by inserting the ERT command
13850 \begin_layout Standard
13858 \begin_layout Standard
13859 The characters could now be colored using the menu
13861 Edit\SpecialChar \menuseparator
13868 \begin_layout Standard
13869 \begin_inset Float table
13875 \begin_layout Standard
13876 \begin_inset Caption
13878 \begin_layout Standard
13879 \begin_inset LatexCommand label
13880 name "tab:Table-colored-using"
13884 Table colored using the package
13889 \begin_inset OptArg
13892 \begin_layout Standard
13893 Table with colortbl
13906 \begin_layout Standard
13908 \begin_inset Tabular
13909 <lyxtabular version="3" rows="3" columns="3">
13911 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
13912 <column alignment="center" valignment="top" width="0">
13913 <column alignment="center" valignment="top" width="0">
13915 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13918 \begin_layout Standard
13922 \begin_layout Standard
13938 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13941 \begin_layout Standard
13949 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13952 \begin_layout Standard
13962 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13965 \begin_layout Standard
13973 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13976 \begin_layout Standard
13984 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13987 \begin_layout Standard
13997 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14000 \begin_layout Standard
14008 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14011 \begin_layout Standard
14019 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14022 \begin_layout Standard
14026 \begin_layout Standard
14055 \begin_layout Subsection
14057 \begin_inset LatexCommand index
14058 name "Table Color ! for Lines"
14063 \begin_inset LatexCommand index
14064 name "Color ! for Table Lines"
14071 \begin_layout Standard
14072 As described in section\InsetSpace ~
14074 \begin_inset LatexCommand ref
14075 reference "sub:Line-Thickness"
14079 , the line thickness for all lines in a table can be adjusted with the length
14087 It is set to 1.5\InsetSpace \thinspace{}
14088 pt for all tables of this section.
14092 \begin_layout Standard
14098 arrayrulewidth}{1.5pt}
14106 \begin_layout Standard
14107 To color vertical lines for example with green, create the following column
14108 format in the document preamble, according to the description in section\InsetSpace ~
14110 \begin_inset LatexCommand ref
14111 reference "sub:Customized-Format"
14118 \begin_layout Standard
14123 newcolumntype{W}{!{
14130 \begin_layout Standard
14131 For Table\InsetSpace ~
14133 \begin_inset LatexCommand ref
14134 reference "tab:Table-with-vertical-colored"
14141 \begin_layout Standard
14147 \begin_layout Standard
14148 was used for the last column and
14151 \begin_layout Standard
14157 \begin_layout Standard
14158 for the other columns.
14161 \begin_layout Standard
14162 If you want to have several colors, define more column formats.
14165 \begin_layout Standard
14166 \begin_inset Float table
14171 \begin_layout Standard
14172 \begin_inset Caption
14174 \begin_layout Standard
14175 \begin_inset LatexCommand label
14176 name "tab:Table-with-vertical-colored"
14180 Table with colored vertical lines
14188 \begin_layout Standard
14190 \begin_inset Tabular
14191 <lyxtabular version="3" rows="3" columns="3">
14193 <column alignment="center" valignment="top" width="0" special="Wc">
14194 <column alignment="center" valignment="top" width="0" special="Wc">
14195 <column alignment="center" valignment="top" width="0" special="WcW">
14196 <row topline="true">
14197 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14200 \begin_layout Standard
14206 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14209 \begin_layout Standard
14215 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14218 \begin_layout Standard
14225 <row topline="true">
14226 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14229 \begin_layout Standard
14235 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14238 \begin_layout Standard
14244 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14247 \begin_layout Standard
14254 <row topline="true" bottomline="true">
14255 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14258 \begin_layout Standard
14264 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14267 \begin_layout Standard
14273 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14276 \begin_layout Standard
14295 \begin_layout Standard
14296 \begin_inset VSpace bigskip
14299 To color horizontal lines for example with red, like in Table\InsetSpace ~
14301 \begin_inset LatexCommand ref
14302 reference "tab:Table-with-horizontal-colored"
14306 , insert these commands in ERT before the table or table float:
14309 \begin_layout Standard
14326 arrayrulecolor{red}
14330 arrayrulecolor{black}}
14333 \begin_layout Standard
14337 \begin_layout Standard
14348 \begin_layout Standard
14356 arrayrulecolor{red}
14360 arrayrulecolor{black}}
14366 \begin_inset Float table
14371 \begin_layout Standard
14372 \begin_inset Caption
14374 \begin_layout Standard
14375 \begin_inset LatexCommand label
14376 name "tab:Table-with-horizontal-colored"
14380 Table with colored horizontal lines
14388 \begin_layout Standard
14390 \begin_inset Tabular
14391 <lyxtabular version="3" rows="3" columns="3">
14393 <column alignment="center" valignment="top" leftline="true" width="0">
14394 <column alignment="center" valignment="top" leftline="true" width="0">
14395 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14396 <row topline="true">
14397 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14400 \begin_layout Standard
14406 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14409 \begin_layout Standard
14415 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14418 \begin_layout Standard
14425 <row topline="true">
14426 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14429 \begin_layout Standard
14435 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14438 \begin_layout Standard
14444 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14447 \begin_layout Standard
14454 <row topline="true" bottomline="true">
14455 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14458 \begin_layout Standard
14464 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14467 \begin_layout Standard
14473 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14476 \begin_layout Standard
14495 \begin_layout Standard
14499 \begin_layout Standard
14511 \begin_layout Standard
14512 To return to the default line color black, insert this command in ERT behind
14513 the table or table float:
14516 \begin_layout Standard
14528 \begin_layout Standard
14531 \begin_inset LatexCommand ref
14532 reference "tab:Table-with-colored"
14536 is an example with colored vertical and horizontal lines.
14539 \begin_layout Standard
14540 \begin_inset Float table
14545 \begin_layout Standard
14546 \begin_inset Caption
14548 \begin_layout Standard
14549 \begin_inset LatexCommand label
14550 name "tab:Table-with-colored"
14554 Table with colored lines
14562 \begin_layout Standard
14564 \begin_inset Tabular
14565 <lyxtabular version="3" rows="3" columns="3">
14567 <column alignment="center" valignment="top" width="0" special="Wc">
14568 <column alignment="center" valignment="top" width="0" special="Wc">
14569 <column alignment="center" valignment="top" width="0" special="WcW">
14570 <row topline="true">
14571 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14574 \begin_layout Standard
14580 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14583 \begin_layout Standard
14589 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14592 \begin_layout Standard
14599 <row topline="true">
14600 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14603 \begin_layout Standard
14609 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14612 \begin_layout Standard
14618 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14621 \begin_layout Standard
14628 <row topline="true" bottomline="true" topspace="default">
14629 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14632 \begin_layout Standard
14638 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14641 \begin_layout Standard
14647 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14650 \begin_layout Standard
14669 \begin_layout Standard
14673 \begin_layout Standard
14689 \begin_layout Standard
14693 \begin_layout Standard
14699 arrayrulewidth}{0.4pt}
14707 \begin_layout Section
14708 Table Customization
14709 \begin_inset LatexCommand index
14710 name "Table Customization"
14715 \begin_inset LatexCommand index
14716 name "Table ! Customization"
14723 \begin_layout Subsection
14725 \begin_inset LatexCommand label
14726 name "sub:Row-Spacing"
14731 \begin_inset LatexCommand index
14732 name "Table Customization ! Row Spacing"
14739 \begin_layout Standard
14740 You can add vertical space to table rows in the
14744 tab of the table dialog.
14745 You find there three possibilities:
14748 \begin_layout Description
14751 row will add space above the characters of the table row.
14752 If the table is a formal table
14756 \begin_layout Standard
14757 Formal tables are explained in section\InsetSpace ~
14759 \begin_inset LatexCommand ref
14760 reference "sec:Formal-Tables"
14769 LyX will insert as default 0.5\InsetSpace \thinspace{}
14771 For normal tables the inserted space will unfortunately destroy the vertical
14772 table lines as in the following table:
14773 \begin_inset VSpace defskip
14782 \begin_layout Standard
14794 \begin_inset Tabular
14795 <lyxtabular version="3" rows="3" columns="1">
14797 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14798 <row topline="true">
14799 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14802 \begin_layout Standard
14809 <row topline="true" topspace="3mm">
14810 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14813 \begin_layout Standard
14814 3\InsetSpace \thinspace{}
14815 mm space top of row
14821 <row topline="true" bottomline="true">
14822 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14825 \begin_layout Standard
14842 \begin_layout Standard
14852 \begin_inset VSpace defskip
14857 So inserting space to the top of row for normal tables is only useful when
14858 you don't have vertical lines.
14861 \begin_layout Description
14862 Bottom\InsetSpace ~
14864 row will add space below the characters of the table row.
14865 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
14867 normal tables the default size is 2\InsetSpace \thinspace{}
14871 \begin_layout Description
14872 Between\InsetSpace ~
14873 rows adds space between the current and the following row.
14874 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
14876 For normal tables the inserted space will unfortunately destroy the vertical
14877 table lines as in the following table:
14878 \begin_inset VSpace defskip
14887 \begin_layout Standard
14899 \begin_inset Tabular
14900 <lyxtabular version="3" rows="3" columns="1">
14902 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14903 <row topline="true">
14904 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14907 \begin_layout Standard
14914 <row topline="true" interlinespace="3mm">
14915 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14918 \begin_layout Standard
14919 \begin_inset Formula $\downarrow$
14922 3\InsetSpace \thinspace{}
14923 mm space between row
14924 \begin_inset Formula $\downarrow$
14933 <row topline="true" bottomline="true">
14934 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14937 \begin_layout Standard
14938 \begin_inset Formula $\uparrow$
14941 3\InsetSpace \thinspace{}
14942 mm space between row
14943 \begin_inset Formula $\uparrow$
14962 \begin_layout Standard
14972 \begin_inset VSpace defskip
14977 So inserting space between rows for normal tables is only useful when you
14978 don't have vertical lines.
14981 \begin_layout Standard
14982 When you want to add extra height to all cells of all tables, you can do
14983 this with the following preamble line:
14986 \begin_layout Standard
14993 extrarowheight}{height}
14996 \begin_layout Standard
14997 But this has the disadvantage that the cell texts are no longer exactly
14998 vertically centered.
15001 \begin_layout Subsection
15002 Special Cell Alignment
15003 \begin_inset LatexCommand index
15004 name "Table Customization ! Special Cell Alignment"
15011 \begin_layout Standard
15012 Sometimes it looks better when the cell entries of a column are aligned
15013 with a special character, e.\InsetSpace \thinspace{}
15015 with the decimal separator as in Table\InsetSpace ~
15017 \begin_inset LatexCommand ref
15018 reference "tab:Table-cells-of"
15025 \begin_layout Standard
15026 \begin_inset Float table
15032 \begin_layout Standard
15033 \begin_inset Caption
15035 \begin_layout Standard
15036 \begin_inset LatexCommand label
15037 name "tab:Table-cells-of"
15041 Table cells of a column aligned with the decimal separator.
15049 \begin_layout Standard
15051 \begin_inset Tabular
15052 <lyxtabular version="3" rows="4" columns="2">
15054 <column alignment="right" valignment="top" width="0">
15055 <column alignment="left" valignment="top" width="0" special="@{}l">
15056 <row bottomline="true">
15057 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15060 \begin_layout Standard
15066 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15069 \begin_layout Standard
15077 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15080 \begin_layout Standard
15086 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15089 \begin_layout Standard
15097 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15100 \begin_layout Standard
15106 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15109 \begin_layout Standard
15117 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15120 \begin_layout Standard
15126 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15129 \begin_layout Standard
15148 \begin_layout Standard
15149 This table was created with a 4×2 table.
15150 The heading is a centered multicolumn.
15151 The first column is right-aligned and contains the digits before the decimal
15152 point and the decimal point.
15153 The second column is left aligned and contains the digits after the decimal
15155 To omit the space that is normally between two table columns, use the following
15156 LaTeX-argument for the second column:
15159 \begin_layout Standard
15165 \begin_layout Standard
15168 \begin_inset LatexCommand ref
15169 reference "tab:Several-table-cell"
15173 shows some example alignments.
15174 For the alignment with the relation sign, you must add the second smallest
15175 math-space at the beginning of the last column to get the correct space
15176 surrounding the relation sign.
15179 \begin_layout Standard
15180 \begin_inset Float table
15185 \begin_layout Standard
15186 \begin_inset Caption
15188 \begin_layout Standard
15189 \begin_inset LatexCommand label
15190 name "tab:Several-table-cell"
15194 Several table cell alignments.
15202 \begin_layout Standard
15204 \begin_inset Tabular
15205 <lyxtabular version="3" rows="4" columns="6">
15207 <column alignment="right" valignment="top" width="0">
15208 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15209 <column alignment="right" valignment="top" width="0">
15210 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15211 <column alignment="right" valignment="top" width="0">
15212 <column alignment="left" valignment="top" width="0" special="@{}l">
15213 <row bottomline="true">
15214 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15217 \begin_layout Standard
15223 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15226 \begin_layout Standard
15232 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15235 \begin_layout Standard
15241 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15244 \begin_layout Standard
15250 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15253 \begin_layout Standard
15259 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15262 \begin_layout Standard
15270 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15273 \begin_layout Standard
15279 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15282 \begin_layout Standard
15283 24\InsetSpace \thinspace{}
15289 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15292 \begin_layout Standard
15293 \begin_inset Formula $10\cdot$
15301 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15304 \begin_layout Standard
15305 \begin_inset Formula $10^{\mbox{-}17}$
15313 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15316 \begin_layout Standard
15317 \begin_inset Formula $\Gamma(t)\propto$
15325 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15328 \begin_layout Standard
15329 \begin_inset Formula $\:\Upsilon(t)$
15339 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15342 \begin_layout Standard
15348 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15351 \begin_layout Standard
15352 768\InsetSpace \thinspace{}
15358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15361 \begin_layout Standard
15362 \begin_inset Formula $5.78\cdot$
15370 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15373 \begin_layout Standard
15374 \begin_inset Formula $10^{7}$
15382 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15385 \begin_layout Standard
15386 \begin_inset Formula $A\ne$
15394 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15397 \begin_layout Standard
15398 \begin_inset Formula $\: B_{\mathrm{red}}$
15408 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15411 \begin_layout Standard
15417 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15420 \begin_layout Standard
15421 6\InsetSpace \thinspace{}
15427 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15430 \begin_layout Standard
15432 \begin_inset Formula $33.5\cdot$
15440 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15443 \begin_layout Standard
15444 \begin_inset Formula $10^{4}$
15452 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15455 \begin_layout Standard
15456 \begin_inset Formula $\sin(\alpha)\ge$
15464 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15467 \begin_layout Standard
15468 \begin_inset Formula $\:\sin(\beta)$
15489 \begin_layout Standard
15490 \begin_inset VSpace bigskip
15493 There is also the LaTeX-package
15498 \begin_inset LatexCommand index
15499 name "LaTeX-packages ! dcolumn"
15503 that provides table cell alignments.
15504 But this unfortunately treats the cell entries as math and doesn't allow
15505 formulas in table cells: The first column of Table\InsetSpace ~
15507 \begin_inset LatexCommand ref
15508 reference "tab:Several-table-cell"
15516 like the first column in Table\InsetSpace ~
15518 \begin_inset LatexCommand ref
15519 reference "tab:Alignments-when"
15523 and only with some tricks like the expected.
15524 The alignment of the second and third column of Table\InsetSpace ~
15526 \begin_inset LatexCommand ref
15527 reference "tab:Several-table-cell"
15531 is not possible with
15538 \begin_layout Standard
15539 \begin_inset Float table
15545 \begin_layout Standard
15546 \begin_inset Caption
15548 \begin_layout Standard
15549 \begin_inset LatexCommand label
15550 name "tab:Alignments-when"
15554 Alignments when LaTeX-package dcolumn is used.
15555 For all column alignments tricks have to be used to get the output.
15563 \begin_layout Standard
15565 \begin_inset Tabular
15566 <lyxtabular version="3" rows="4" columns="3">
15568 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{-1}">
15569 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{4.9}">
15570 <column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
15571 <row bottomline="true">
15572 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15575 \begin_layout Standard
15581 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15584 \begin_layout Standard
15590 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15593 \begin_layout Standard
15601 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15604 \begin_layout Standard
15605 12x24\InsetSpace \thinspace{}
15611 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15614 \begin_layout Standard
15615 12x24\InsetSpace \thinspace{}
15617 \begin_inset Formula $\mbox{bottles}$
15625 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15628 \begin_layout Standard
15633 \begin_layout Standard
15643 \begin_inset Formula $\mbox{bottles}$
15653 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15656 \begin_layout Standard
15657 1024x768\InsetSpace \thinspace{}
15663 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15666 \begin_layout Standard
15667 1024x768\InsetSpace \thinspace{}
15669 \begin_inset Formula $\mbox{Pixels}$
15677 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15680 \begin_layout Standard
15685 \begin_layout Standard
15695 \begin_inset Formula $\mbox{Pixels}$
15705 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15708 \begin_layout Standard
15709 32x6\InsetSpace \thinspace{}
15715 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15718 \begin_layout Standard
15719 32x6\InsetSpace \thinspace{}
15721 \begin_inset Formula $\mbox{cm}$
15729 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15732 \begin_layout Standard
15737 \begin_layout Standard
15747 \begin_inset Formula $\mbox{cm}$
15768 \begin_layout Subsection
15769 Customized Cell/Column Format
15770 \begin_inset LatexCommand label
15771 name "sub:Customized-Format"
15776 \begin_inset LatexCommand index
15777 name "Table Customization ! Cell/Column Format"
15784 \begin_layout Standard
15785 Calculating the needed width for spanned columns like in section\InsetSpace ~
15787 \begin_inset LatexCommand ref
15788 reference "sub:Multicolumn-Calculations"
15792 is very annoying if you have several tables with multicolumn cells.
15793 To make life easier, you can define a cell/column format in the preamble,
15794 so that it can be used in all tables of the document.
15795 The format is defined with the command
15798 \begin_layout Standard
15803 newcolumntype{name of format}[number of arguments]{commands}
15806 \begin_layout Standard
15807 The format name may only consist of one letter.
15832 are predefined and cannot be used.
15833 But all letters are allowed as capitals.
15836 \begin_layout Standard
15837 \begin_inset VSpace medskip
15843 \begin_layout Standard
15844 For vertically and horizontally centered multicolumn cells with a fixed
15845 width you can define the cell format
15848 \begin_layout Standard
15853 newcolumntype{M}[1]{>{
15860 \begin_layout Standard
15867 avoids the problem of hyphenating the first word, as described in section\InsetSpace ~
15869 \begin_inset LatexCommand ref
15870 reference "sub:Multiple-Lines-in"
15875 Now you can simply enter
15878 \begin_layout Standard
15884 \begin_layout Standard
15885 as LaTeX-argument in the table dialog to create a multicolumn.
15888 \begin_layout Standard
15889 \begin_inset VSpace bigskip
15895 \begin_layout Standard
15896 For cells spanned by a multicolumn cell, you can define the format
15899 \begin_layout Standard
15904 newcolumntype{S}[2]{>{
15914 \begin_layout Standard
15925 newcolumntype{S}[2]
15929 \begin_layout Standard
15940 arrayrulewidth)*(1-#2))/#2}}
15943 \begin_layout Standard
15944 This format uses equation
15945 \begin_inset LatexCommand eqref
15950 to calculate the needed width so that each spanned cell has the same width.
15953 \begin_layout Standard
15957 \begin_layout Standard
15960 S{width of multicolumn cell}{number of spanned columns}
15963 \begin_layout Standard
15964 as LaTeX-argument of the column.
15967 \begin_layout Standard
15968 \begin_inset VSpace bigskip
15974 \begin_layout Standard
15975 For colored columns, you can define
15978 \begin_layout Standard
15983 newcolumntype{K}[1]{>{
15990 \begin_layout Standard
15992 \begin_inset Quotes eld
15996 \begin_inset Quotes erd
15999 at the end creates a column with a flexible width whose text is horizontally
16004 \begin_layout Standard
16010 \begin_layout Standard
16014 \begin_layout Standard
16015 \begin_inset VSpace bigskip
16021 \begin_layout Standard
16022 To create Table\InsetSpace ~
16024 \begin_inset LatexCommand ref
16025 reference "tab:Table-using-user-defined"
16029 use the LaTeX-arguments
16032 \begin_layout Standard
16038 \begin_layout Standard
16039 for the first column and the multicolumn,
16042 \begin_layout Standard
16048 \begin_layout Standard
16049 for the the last column, and
16052 \begin_layout Standard
16058 \begin_layout Standard
16059 for the cells in the second column.
16062 \begin_layout Standard
16063 \begin_inset Float table
16069 \begin_layout Standard
16070 \begin_inset Caption
16072 \begin_layout Standard
16073 \begin_inset LatexCommand label
16074 name "tab:Table-using-user-defined"
16078 Table using user-defined table formats
16086 \begin_layout Standard
16088 \begin_inset Tabular
16089 <lyxtabular version="3" rows="3" columns="4">
16091 <column alignment="center" valignment="middle" leftline="true" width="2.5cm" special="M{2.5cm}">
16092 <column alignment="center" valignment="middle" leftline="true" width="0" special="S{2.5cm}{2}">
16093 <column alignment="center" valignment="middle" leftline="true" width="0">
16094 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0" special="K{red}">
16095 <row topline="true">
16096 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16099 \begin_layout Standard
16100 verylongtablecellword
16105 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none" special="M{2.5cm}">
16108 \begin_layout Standard
16109 multiple lines multicolumn
16114 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16117 \begin_layout Standard
16123 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16126 \begin_layout Standard
16133 <row topline="true">
16134 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16137 \begin_layout Standard
16143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16146 \begin_layout Standard
16152 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16155 \begin_layout Standard
16161 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16164 \begin_layout Standard
16171 <row topline="true" bottomline="true">
16172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16175 \begin_layout Standard
16181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16184 \begin_layout Standard
16190 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16193 \begin_layout Standard
16199 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16202 \begin_layout Standard
16221 \begin_layout Subsection
16223 \begin_inset LatexCommand label
16224 name "sub:Line-Thickness"
16229 \begin_inset LatexCommand index
16230 name "Table Customization ! Line Thickness"
16237 \begin_layout Standard
16238 The line thickness for all lines in a table can be adjusted with the length
16246 To set for example a line thickness of 1.5\InsetSpace \thinspace{}
16247 pt, like in Table\InsetSpace ~
16249 \begin_inset LatexCommand ref
16250 reference "tab:Table-with-1.5"
16254 , insert the command
16257 \begin_layout Standard
16264 arrayrulewidth}{1.5pt}
16267 \begin_layout Standard
16268 in ERT before the table or table float.
16269 The changed thickness is valid for all following tables.
16270 To use the default value again, set
16276 to 0.4\InsetSpace \thinspace{}
16277 pt in ERT behind the table or table float.
16280 \begin_layout Standard
16284 \begin_layout Standard
16290 arrayrulewidth}{1.5pt}
16296 \begin_inset Float table
16301 \begin_layout Standard
16302 \begin_inset Caption
16304 \begin_layout Standard
16305 \begin_inset LatexCommand label
16306 name "tab:Table-with-1.5"
16310 Table with 1.5\InsetSpace \thinspace{}
16319 \begin_layout Standard
16321 \begin_inset Tabular
16322 <lyxtabular version="3" rows="3" columns="3">
16324 <column alignment="center" valignment="top" leftline="true" width="0">
16325 <column alignment="center" valignment="top" leftline="true" width="0">
16326 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16327 <row topline="true">
16328 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16331 \begin_layout Standard
16337 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16340 \begin_layout Standard
16346 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16349 \begin_layout Standard
16356 <row topline="true">
16357 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16360 \begin_layout Standard
16366 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16369 \begin_layout Standard
16375 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16378 \begin_layout Standard
16385 <row topline="true" bottomline="true">
16386 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16389 \begin_layout Standard
16395 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16398 \begin_layout Standard
16404 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16407 \begin_layout Standard
16427 \begin_layout Standard
16433 arrayrulewidth}{0.4pt}
16441 \begin_layout Standard
16442 \begin_inset VSpace bigskip
16445 To set the line thickness to 1.5\InsetSpace \thinspace{}
16446 pt only for horizontal lines, like in Table\InsetSpace ~
16448 \begin_inset LatexCommand ref
16449 reference "tab:Table-with-horizontal"
16453 , insert these commands in ERT before the table or table float:
16456 \begin_layout Standard
16479 arrayrulewidth 1.5pt}
16489 arrayrulewidth 0.4pt}}
16492 \begin_layout Standard
16493 To return to the default line thickness, insert this command in ERT behind
16494 the table or table float:
16497 \begin_layout Standard
16509 \begin_layout Standard
16513 \begin_layout Standard
16524 \begin_layout Standard
16533 \begin_layout Standard
16541 arrayrulewidth 1.5pt}
16544 \begin_layout Standard
16554 arrayrulewidth 0.4pt}}
16560 \begin_inset Float table
16565 \begin_layout Standard
16566 \begin_inset Caption
16568 \begin_layout Standard
16569 \begin_inset LatexCommand label
16570 name "tab:Table-with-horizontal"
16574 Table with 1.5\InsetSpace \thinspace{}
16575 pt thick horizontal lines
16583 \begin_layout Standard
16585 \begin_inset Tabular
16586 <lyxtabular version="3" rows="3" columns="3">
16588 <column alignment="center" valignment="top" leftline="true" width="0">
16589 <column alignment="center" valignment="top" leftline="true" width="0">
16590 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16591 <row topline="true">
16592 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16595 \begin_layout Standard
16601 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16604 \begin_layout Standard
16610 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16613 \begin_layout Standard
16620 <row topline="true">
16621 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16624 \begin_layout Standard
16630 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16633 \begin_layout Standard
16639 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16642 \begin_layout Standard
16649 <row topline="true" bottomline="true">
16650 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16653 \begin_layout Standard
16659 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16662 \begin_layout Standard
16668 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16671 \begin_layout Standard
16691 \begin_layout Standard
16707 \begin_layout Standard
16708 \begin_inset VSpace bigskip
16711 To set the line thickness to 1.5\InsetSpace \thinspace{}
16712 pt only for vertical lines, create the following
16713 column format in the document preamble, according to the description in
16714 section\InsetSpace ~
16716 \begin_inset LatexCommand ref
16717 reference "sub:Customized-Format"
16724 \begin_layout Standard
16729 newcolumntype{V}{!{
16731 vrule width 1.5pt}}
16734 \begin_layout Standard
16735 For Table\InsetSpace ~
16737 \begin_inset LatexCommand ref
16738 reference "tab:Table-with-vertical"
16745 \begin_layout Standard
16751 \begin_layout Standard
16752 was used for the last column and
16755 \begin_layout Standard
16761 \begin_layout Standard
16762 for the other columns.
16765 \begin_layout Standard
16766 \begin_inset Float table
16771 \begin_layout Standard
16772 \begin_inset Caption
16774 \begin_layout Standard
16775 \begin_inset LatexCommand label
16776 name "tab:Table-with-vertical"
16780 Table with 1.5\InsetSpace \thinspace{}
16781 pt thick vertical lines
16789 \begin_layout Standard
16791 \begin_inset Tabular
16792 <lyxtabular version="3" rows="3" columns="3">
16794 <column alignment="center" valignment="top" width="0" special="Vc">
16795 <column alignment="center" valignment="top" width="0" special="Vc">
16796 <column alignment="center" valignment="top" width="0" special="VcV">
16797 <row topline="true">
16798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16801 \begin_layout Standard
16807 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16810 \begin_layout Standard
16816 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16819 \begin_layout Standard
16826 <row topline="true">
16827 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16830 \begin_layout Standard
16836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16839 \begin_layout Standard
16845 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16848 \begin_layout Standard
16855 <row topline="true" bottomline="true">
16856 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16859 \begin_layout Standard
16865 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16868 \begin_layout Standard
16874 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16877 \begin_layout Standard
16896 \begin_layout Subsection
16898 \begin_inset LatexCommand index
16899 name "Table Customization ! Dashed Lines"
16906 \begin_layout Standard
16910 \begin_layout Standard
16920 \begin_inset Note Note
16923 \begin_layout Standard
16924 The following section will only be displayed when you have the LaTeX-package
16937 \begin_layout Standard
16938 \begin_inset Float table
16944 \begin_layout Standard
16945 \begin_inset Caption
16947 \begin_layout Standard
16948 \begin_inset LatexCommand label
16949 name "tab:Table-with-dashed"
16953 Table with dashed lines
16961 \begin_layout Standard
16963 \begin_inset Tabular
16964 <lyxtabular version="3" rows="5" columns="5">
16966 <column alignment="center" valignment="top" leftline="true" width="0">
16967 <column alignment="center" valignment="top" leftline="true" width="0">
16968 <column alignment="center" valignment="top" width="0" special=":c">
16969 <column alignment="center" valignment="top" leftline="true" width="0">
16970 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16971 <row topline="true" bottomline="true">
16972 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16975 \begin_layout Standard
16981 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16984 \begin_layout Standard
16990 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16993 \begin_layout Standard
16999 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17002 \begin_layout Standard
17008 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17011 \begin_layout Standard
17018 <row topline="true">
17019 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17022 \begin_layout Standard
17028 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17031 \begin_layout Standard
17037 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17040 \begin_layout Standard
17046 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17049 \begin_layout Standard
17055 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17058 \begin_layout Standard
17066 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17069 \begin_layout Standard
17073 \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" usebox="none">
17099 \begin_layout Standard
17105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17108 \begin_layout Standard
17114 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17117 \begin_layout Standard
17124 <row topline="true">
17125 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17128 \begin_layout Standard
17132 \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" usebox="none" special="c:">
17158 \begin_layout Standard
17164 <cell multicolumn="1" alignment="center" valignment="top" rightline="true" usebox="none" special="c:">
17167 \begin_layout Standard
17173 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17176 \begin_layout Standard
17183 <row topline="true" bottomline="true">
17184 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17187 \begin_layout Standard
17193 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17196 \begin_layout Standard
17202 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17205 \begin_layout Standard
17211 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17214 \begin_layout Standard
17220 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17223 \begin_layout Standard
17242 \begin_layout Standard
17243 LyX doesn't natively support dashed lines, so you have to use ERT.
17244 As prerequisite the LaTeX-package
17249 \begin_inset LatexCommand index
17250 name "LaTeX-packages ! arydshln"
17254 must be loaded in the document preamble with the command
17257 \begin_layout Standard
17262 usepackage{arydshln}
17265 \begin_layout Standard
17266 To make a vertical line dashed, enter the colon
17267 \begin_inset Quotes eld
17271 \begin_inset Quotes erd
17274 together with the character for the horizontal alignment as LaTeX-argument
17275 in the table cell dialog.
17278 \begin_layout Standard
17279 For a horizontal dashed line add the command
17282 \begin_layout Standard
17290 \begin_layout Standard
17291 in ERT as first element of the first cell in the table row.
17294 \begin_layout Standard
17295 For dashed multicolumn lines use the command
17298 \begin_layout Standard
17303 cdashline{line number
17308 \begin_layout Standard
17309 in ERT as first element of the first cell in the table row.
17310 If you have for example a multicolumn spanning over columns 2 to 4 and
17311 you want to have a dashed line above, add the command
17314 \begin_layout Standard
17322 \begin_layout Standard
17323 as first element of the first cell in the row of the multicolumn.
17326 \begin_layout Standard
17327 \begin_inset VSpace bigskip
17333 \begin_layout Standard
17336 \begin_inset LatexCommand ref
17337 reference "tab:Table-with-dashed"
17342 \begin_inset Quotes eld
17350 \begin_inset Quotes erd
17353 as LaTeX-argument of the third column.
17360 was inserted to the first cell of the third row and the the ERT command
17369 was inserted to the first cell of the fourth row.
17372 \begin_layout Standard
17373 \begin_inset Note Greyedout
17376 \begin_layout Standard
17381 The used LaTeX-package
17385 is apparently not compatible with the LaTeX-package
17390 \begin_inset LatexCommand index
17391 name "LaTeX-packages ! colortbl"
17395 that is used for colored tables in section\InsetSpace ~
17397 \begin_inset LatexCommand ref
17398 reference "sec:Colored-Tables"
17403 That means colored tables cannot have dashed lines.
17411 \begin_layout Standard
17415 \begin_layout Standard
17425 \begin_inset Note Note
17428 \begin_layout Standard
17429 The following will be displayed when the LaTeX-package
17441 \begin_layout Standard
17442 You need to install the package
17446 to see the contents of this section in the output.
17449 \begin_layout Standard
17453 \begin_layout Standard
17465 \begin_layout Chapter
17467 \begin_inset LatexCommand index
17473 \begin_inset LatexCommand label
17481 \begin_layout Section
17483 \begin_inset LatexCommand label
17484 name "sec:FloatIntroduction"
17489 \begin_inset LatexCommand index
17490 name "Floats ! Introduction"
17497 \begin_layout Standard
17498 A float is a block of text associated with some sort of label, which doesn't
17499 have a fixed location.
17501 \begin_inset Quotes eld
17505 \begin_inset Quotes erd
17508 forward or backward a page or two, to wherever it fits best.
17515 Margin\InsetSpace ~
17518 are also floats, because they can float to the next page when there are
17519 too many notes at the page.
17522 \begin_layout Standard
17523 Floats allow a high quality layout.
17524 Images and tables can evenly be spread to the pages to avoid white space
17525 and pages without text.
17526 As the floating often destroys the context between the text and the image/table
17527 , every float can be referenced in the text.
17528 Floats are therefore numbered.
17529 Referencing is described in section\InsetSpace ~
17531 \begin_inset LatexCommand ref
17532 reference "sec:Referencing-Floats"
17539 \begin_layout Standard
17540 To insert a float, use the menu
17542 Insert\SpecialChar \menuseparator
17550 inset, a box with a label.
17551 The label will automatically be translated to the document language in
17553 Behind the label you can insert the caption text.
17554 The image or table is inserted above or below the caption in a separate
17555 paragraph within the float.
17556 More about the caption placement is described in section\InsetSpace ~
17558 \begin_inset LatexCommand ref
17559 reference "sec:Caption-Placement"
17564 To keep your LyX-document readable, you can open and close the float box
17565 by left-clicking on the box label.
17566 A closed float box looks like this:
17567 \begin_inset Graphics
17568 filename clipart/floatQt4.png
17570 scaleBeforeRotation
17574 -- a gray button with a red label.
17577 \begin_layout Standard
17578 It is recommended to insert floats as a separate paragraph to avoid possible
17579 LaTeX-errors that can occur when the surrounding text is specially formatted.
17582 \begin_layout Standard
17583 Existing figures or tables can be put into a float by marking them and then
17584 pressing the corresponding toolbar button for a new float.
17587 \begin_layout Section
17591 \begin_layout Standard
17592 Besides figure and table floats that are described in section\InsetSpace ~
17594 \begin_inset LatexCommand ref
17595 reference "sec:Figure-Floats"
17600 \begin_inset LatexCommand ref
17601 reference "sec:Table-Floats"
17605 , respectively, LyX offers the float types
17618 \begin_layout Subsection
17620 \begin_inset LatexCommand index
17621 name "Floats ! Algorithms"
17628 \begin_layout Standard
17629 \begin_inset Float algorithm
17635 \begin_layout Standard
17636 \begin_inset Caption
17638 \begin_layout Standard
17639 \begin_inset LatexCommand label
17640 name "alg:Example-Algorithm-float"
17644 Example Algorithm float
17652 \begin_layout LyX-Code
17655 Sum:= Sum + A(I); /*comment*/
17658 \begin_inset VSpace -4mm
17669 \begin_layout Standard
17670 This float type is inserted with the menu
17672 Insert\SpecialChar \menuseparator
17673 Floats\SpecialChar \menuseparator
17677 It is used for program codes and descriptions of algorithms.
17678 A possible environment for algorithms is the
17682 , described in LyX's
17687 Algorithm\InsetSpace ~
17689 \begin_inset LatexCommand ref
17690 reference "alg:Example-Algorithm-float"
17694 is an example of an algorithm float where -4\InsetSpace \thinspace{}
17695 mm vertical space was added
17696 at the end of the float to have the bottom rule exactly below the last
17700 \begin_layout Standard
17701 The float label is not automatically translated into the document language.
17702 If your document is not in English, you have to do this manually by adding
17703 the following line to the document preamble
17708 \begin_layout Standard
17713 floatname{algorithm}{your\InsetSpace ~
17717 \begin_layout Standard
17724 \begin_inset Quotes eld
17732 \begin_inset Quotes erd
17738 \begin_layout Description
17743 When the LaTeX-package
17748 \begin_inset LatexCommand index
17749 name "LaTeX-packages ! hyperref"
17753 is used to link cross-references to floats in the PDF-output, it must be
17754 loaded in the document preamble before the definition of floats to be able
17755 to reference floats.
17756 As LyX sets the float definition for algorithm floats automatically before
17757 the user editable part of the document preamble, you need to insert the
17758 following preamble lines
17762 the loading command of
17769 \begin_inset VSpace defskip
17776 newfloat{Xalgorithm}{tbp}{loa}
17780 floatname{Xalgorithm}{your\InsetSpace ~
17793 renewenvironment{algorithm}[1][tbp]
17799 \begin_layout Standard
17810 begin{Xalgorithm}[#1]}{
17813 \begin_inset VSpace defskip
17819 \begin_layout Standard
17820 Algorithm floats are not by default numbered in the scheme
17821 \begin_inset Quotes eld
17825 \begin_inset Quotes erd
17828 like it is the case for table and figure floats in many document-classes.
17829 To number algorithm floats in the same scheme, add this command to your
17833 \begin_layout Standard
17838 numberwithin{algorithm}{chapter}
17841 \begin_layout Standard
17842 If you use the LaTeX-package
17846 , add this line instead
17854 (the commands from above) to the preamble:
17857 \begin_layout Standard
17862 numberwithin{Xalgorithm}{chapter}
17865 \begin_layout Standard
17866 To be able to use the command
17877 in the document settings the option
17887 \begin_layout Subsection
17889 \begin_inset LatexCommand index
17890 name "Floats ! Text Wrap Floats"
17895 \begin_inset LatexCommand label
17896 name "sub:floatflt-wrap-float"
17903 \begin_layout Standard
17904 This float type is used if you want to
17905 \begin_inset Quotes eld
17909 \begin_inset Quotes erd
17912 text around a figure so that it only occupies some fraction of the column
17914 It can be inserted using the menu
17915 \begin_inset Wrap figure
17920 \begin_layout Standard
17921 \begin_inset Graphics
17922 filename clipart/mobius.eps
17925 scaleBeforeRotation
17926 rotateOrigin center
17933 \begin_layout Standard
17934 \begin_inset Caption
17936 \begin_layout Standard
17937 \begin_inset LatexCommand label
17938 name "fig:This-is-a"
17942 This is a wrapped figure, and this is the brilliant caption that describes
17944 \begin_inset VSpace medskip
17959 Insert\SpecialChar \menuseparator
17960 Floats\SpecialChar \menuseparator
17965 if the LaTeX-package
17967 f\SpecialChar \textcompwordmark{}
17968 loatf\SpecialChar \textcompwordmark{}
17972 \begin_inset LatexCommand index
17973 name "LaTeX-packages ! floatflt"
17981 \begin_layout Standard
17982 Installing a LaTeX-package is explained it in the
17992 The width and placement of the float is adjusted by right-clicking on the
17994 Figure\InsetSpace ~
17996 \begin_inset LatexCommand ref
17997 reference "fig:This-is-a"
18001 is an example text wrap float with a width of 40
18002 \begin_inset Formula $\,$
18009 \begin_layout Standard
18010 Available units are explained in
18011 \begin_inset LatexCommand ref
18012 reference "cha:Units-available-in"
18021 Some space was added under the caption to separate it better from the surroundi
18025 \begin_layout Standard
18028 f\SpecialChar \textcompwordmark{}
18029 loatf\SpecialChar \textcompwordmark{}
18032 also supports table wrap floats, but they are not yet supported by LyX.
18033 If you need this, read the documentation of
18035 f\SpecialChar \textcompwordmark{}
18036 loatf\SpecialChar \textcompwordmark{}
18040 \begin_inset LatexCommand cite
18048 \begin_layout Standard
18049 \begin_inset Note Greyedout
18052 \begin_layout Standard
18058 wrap float floats are fragile! E.\InsetSpace \thinspace{}
18060 having a figure too close to the bottom
18061 of the page can mess things up in the way that the float doesn't appear
18062 in the output or that it is placed over some other text.
18066 \begin_layout Standard
18067 The better solution is to use the LaTeX-package
18069 wrapf\SpecialChar \textcompwordmark{}
18073 \begin_inset LatexCommand index
18074 name "LaTeX-packages ! wrapfig\\vspace{4mm}"
18080 f\SpecialChar \textcompwordmark{}
18081 loatf\SpecialChar \textcompwordmark{}
18084 , but it is currently not supported by LyX.
18097 \begin_layout Standard
18101 \begin_layout Itemize
18102 Wrap floats should not be placed in paragraphs that run over a page break.
18103 That means that wrap floats should better be inserted to the exact place
18104 when the document is nearly finished and you are able to estimate where
18105 page breaks will appear.
18108 \begin_layout Itemize
18109 Wrap floats should either be placed in an own paragraph before the paragraph
18110 where they should wrap into or within a paragraph.
18113 \begin_layout Itemize
18114 Wrap floats in consecutive paragraphs may cause troubles, so assure that
18115 there is a text paragraph between them as separator.
18118 \begin_layout Itemize
18119 Wrap floats are not allowed in section headings or tables.
18122 \begin_layout Section
18124 \begin_inset LatexCommand label
18125 name "sec:Float-Numbering"
18130 \begin_inset LatexCommand index
18131 name "Floats ! Numbering"
18138 \begin_layout Standard
18139 Floats are usually numbered either independent from the sections the floats
18140 are in, or in the scheme
18141 \begin_inset Quotes eld
18145 \begin_inset Quotes erd
18149 \begin_inset Quotes eld
18153 \begin_inset Quotes erd
18157 This depends on the used document class.
18160 \begin_layout Standard
18161 To change the section independent numbering, you can use this command in
18162 the document preamble:
18165 \begin_layout Standard
18177 \begin_layout Standard
18184 is the command that prints the table number, for figure floats, the command
18198 prints in the command above the table number as small roman number.
18201 \begin_layout Standard
18202 To change the numbering scheme for example to
18203 \begin_inset Quotes eld
18207 \begin_inset Quotes erd
18210 , use this command in the preamble:
18213 \begin_layout Standard
18218 numberwithin{table}{subsection}
18221 \begin_layout Standard
18222 To be able to use the command
18233 in the document settings the option
18243 \begin_layout Standard
18244 Please also have a look at section\InsetSpace ~
18246 \begin_inset LatexCommand ref
18247 reference "sub:Footnote-Numbering"
18251 for the details and important notes about the numbering commands.
18254 \begin_layout Section
18256 \begin_inset LatexCommand label
18257 name "sec:Referencing-Floats"
18262 \begin_inset LatexCommand index
18263 name "Floats ! References"
18268 \begin_inset LatexCommand index
18276 \begin_layout Standard
18277 To reference a float, insert a label into its caption using the menu
18279 Insert\SpecialChar \menuseparator
18282 or the toolbar button
18283 \begin_inset Graphics
18284 filename ../images/label-insert.xpm
18286 scaleBeforeRotation
18291 A grey label box like this one:
18292 \begin_inset Graphics
18293 filename clipart/labelQt4.png
18295 scaleBeforeRotation
18299 will be inserted and the label window pops up asking for the label text.
18300 LyX offers as text the first words of the caption with a prefix.
18301 The prefix depends on the float type, e.\InsetSpace \thinspace{}
18303 for figure floats the prefix will
18311 \begin_layout Standard
18312 The label is used as anchor and name for the reference.
18313 You can refer to the label using the menu
18315 Insert\SpecialChar \menuseparator
18318 or the toolbar button
18319 \begin_inset Graphics
18320 filename ../images/dialog-show-new-inset_ref.xpm
18322 scaleBeforeRotation
18327 A grey cross-reference box like this one:
18328 \begin_inset Graphics
18329 filename clipart/referenceQt4.png
18331 scaleBeforeRotation
18335 will be inserted and the cross-reference window appear showing all labels
18337 If you have multiple LyX-documents opened, choose the one you are working
18338 on from the drop-list at the top of the dialog.
18339 You can now sort the labels alphabetically and then choose one.
18340 At the position of the cross-reference box the float number will appear
18344 \begin_layout Standard
18345 It is recommended to use a protected space between the cross-reference name
18346 and its number to avoid line breaks between them.
18347 If a cross-reference refers to a non-existing label, you will see two question
18348 marks in the output instead of the reference.
18351 \begin_layout Standard
18352 You can change labels at any time by clicking on the label box.
18353 References to the changed label will automatically change its link to the
18354 new label text, so that you don't need to take care about this.
18357 \begin_layout Standard
18364 in the cross-reference window sets the cursor before the referred label.
18365 The button text changes then to Go\InsetSpace ~
18366 Back and you can use it to set the cursor
18367 back to the cross-reference.
18368 Right-clicking on a cross-reference box also sets the cursor before the
18369 referenced label but without a possibility to go back.
18372 \begin_layout Subsection
18373 Cross-Reference Formats
18374 \begin_inset LatexCommand label
18375 name "sub:Cross-Reference-Formats"
18380 \begin_inset LatexCommand index
18381 name "References ! Formats"
18388 \begin_layout Standard
18389 There are six varieties of cross-references:
18392 \begin_layout Description
18393 <reference>: prints the float number, this is the default:
18394 \begin_inset LatexCommand ref
18395 reference "fig:Two-distorted-images"
18402 \begin_layout Description
18403 (<reference>): prints the float number within two parentheses, this is the
18404 style normally used to reference formulas, especially when the reference
18406 \begin_inset Quotes eld
18410 \begin_inset Quotes erd
18414 \begin_inset LatexCommand eqref
18422 \begin_layout Description
18423 <page>: prints the page number: Page\InsetSpace ~
18425 \begin_inset LatexCommand pageref
18426 reference "fig:Two-distorted-images"
18433 \begin_layout Description
18436 <page>: prints the text "on page" and the page number:
18437 \begin_inset LatexCommand vpageref
18438 reference "fig:Two-distorted-images"
18445 \begin_layout Description
18446 <reference>\InsetSpace ~
18449 <page>: prints the float number, the text "on page", and
18451 \begin_inset LatexCommand vref
18452 reference "fig:Two-distorted-images"
18459 \begin_layout Description
18460 Formatted\InsetSpace ~
18461 reference: prints a self defined cross-reference format.
18463 \begin_inset Note Greyedout
18466 \begin_layout Standard
18471 This feature is only available when you have the LaTeX-package
18483 \begin_layout Standard
18484 Note that the style <page> won't print the page number if the label is on
18485 the previous, the same, or the next page.
18486 You will e.\InsetSpace \thinspace{}
18489 \begin_inset Quotes eld
18497 \begin_inset Quotes erd
18503 \begin_layout Standard
18504 The number and current page of the referred document part in the output,
18505 is automatically calculated by LaTeX.
18506 The varieties are adjusted in the field
18510 of the cross-reference window, that appear when you click on the cross-referenc
18514 \begin_layout Subsection
18515 Referencing Subfigures
18516 \begin_inset LatexCommand label
18517 name "sub:Referencing-Subfigures"
18522 \begin_inset LatexCommand index
18523 name "References ! to Subfigures"
18530 \begin_layout Standard
18531 Currently referencing subfigures is not supported by LyX, so you have to
18532 use LaTeX-commands.
18533 The label is the created with the command
18536 \begin_layout Standard
18541 label{fig:YourLabelName}
18544 \begin_layout Standard
18545 that is directly inserted into the subfigure caption field.
18546 To reference the label add this command in ERT
18549 \begin_layout Standard
18554 ref{fig:YourLabelName}
18557 \begin_layout Standard
18558 to the position in your document where the reference should be placed.
18559 Here is a reference to a subfigure: Subfigure\InsetSpace ~
18564 \begin_layout Standard
18576 \begin_layout Subsection
18577 Automatic Reference Naming
18578 \begin_inset LatexCommand index
18579 name "References ! Automatic Reference Naming"
18586 \begin_layout Standard
18591 provides a very useful feature that cross-references automatically include
18592 the name of the referenced floats (or text parts like sections).
18593 You save to write e.\InsetSpace \thinspace{}
18596 \begin_inset Quotes eld
18600 \begin_inset Quotes erd
18603 before every reference box.
18604 To get this automatic reference naming, you have to load the LaTeX-package
18610 \begin_inset LatexCommand index
18611 name "LaTeX-packages ! hyperref"
18615 in the document preamble with
18618 \begin_layout Standard
18623 usepackage[pdfborder={0 0 0}]{hyperref}
18638 \begin_layout Standard
18643 is used to link cross-references in the DVI- and PDF-output, this means
18644 that the reader of your document will be able to click on a table of content
18645 (TOC) entry or on a reference and he will be shown the referenced document
18651 also creates PDF-bookmarks for every section of your document to make it
18652 easier for readers to navigate through the document.
18653 This is also used in this document but when you have a look in the document
18654 preamble you will find various options in the load command of
18659 To learn more about the
18663 package, we refer to its documentation
18664 \begin_inset LatexCommand cite
18672 \begin_layout Standard
18673 \begin_inset Note Greyedout
18676 \begin_layout Standard
18681 Automatic reference naming cannot be used when you use cross-references
18684 Formatted\InsetSpace ~
18687 style, described in section\InsetSpace ~
18689 \begin_inset LatexCommand ref
18690 reference "sub:Cross-Reference-Formats"
18702 \begin_layout Subsection
18704 \begin_inset LatexCommand label
18705 name "sub:Reference-Position"
18710 \begin_inset LatexCommand index
18711 name "References ! Reference Position"
18718 \begin_layout Standard
18724 \begin_inset LatexCommand index
18725 name "LaTeX-packages ! hyperref"
18729 to link cross-references in the output, you will see that clicking on an
18730 image float reference jumps to the image label.
18731 The caption will be the first text part on the screen, so that you cannot
18732 see the image without scrolling.
18733 This is because the reference link anchor is placed at the position of
18735 With the use of the package
18740 \begin_inset LatexCommand index
18741 name "LaTeX-packages ! hypcap"
18745 , which is part of the LaTeX-package
18750 \begin_inset LatexCommand index
18751 name "LaTeX-packages ! oberdiek"
18755 , the link anchor is placed at the beginning of a float.
18756 To use this feature for figure floats, load
18760 in the document preamble with the line
18763 \begin_layout Standard
18768 usepackage[f\SpecialChar \textcompwordmark{}
18772 \begin_layout Standard
18777 for all floats but this isn't recommended for stability reasons.
18778 For more informations, have a look at
18783 \begin_inset LatexCommand cite
18791 \begin_layout Standard
18792 \begin_inset Note Greyedout
18795 \begin_layout Standard
18804 must be loaded after
18808 in the document preamble.
18816 \begin_layout Standard
18817 \begin_inset Note Greyedout
18820 \begin_layout Standard
18829 has no effect for references to subfigures.
18837 \begin_layout Section
18839 \begin_inset LatexCommand label
18840 name "sec:Float-Placement"
18845 \begin_inset LatexCommand index
18846 name "Floats ! Placement"
18853 \begin_layout Standard
18854 Right-clicking on a float-box opens a dialog where you can alter the placement
18855 options that LaTeX uses for positioning the float.
18862 is only useful for two-column documents: If you select it, the float will
18863 span across both columns on the page instead of being confined to just
18868 Rotate\InsetSpace ~
18871 is used to rotate floats, see section
18872 \begin_inset LatexCommand ref
18873 reference "sec:Rotated-Floats"
18880 \begin_layout Standard
18881 You can use one ore more of the following options in the float dialog to
18882 set the placement for a particular float when you uncheck the option
18885 default\InsetSpace ~
18891 \begin_layout Description
18894 possible try to place the float on the position where it is inserted
18897 \begin_layout Description
18900 page try to place the float on the top of the current page
18903 \begin_layout Description
18904 Bottom\InsetSpace ~
18906 page try to place the float on the bottom of the current page
18909 \begin_layout Description
18912 floats try to place the float on an own page
18915 \begin_layout Standard
18916 The order of the above option is
18921 That means, if you use the default placement, LaTeX will first try out
18934 , and then the others.
18935 If you don't use the default, LaTeX will try only the checked options but
18937 If none of the 4 placements are possible the procedure is internally repeated
18938 but it is tried to put the float on the following page.
18941 \begin_layout Standard
18942 By default, each option has its own rules:
18945 \begin_layout Labeling
18946 \labelwidthstring 00.00.0000
18953 only floats occupying less than 70\InsetSpace \thinspace{}
18954 % of the page can be placed at the top
18964 \begin_layout Labeling
18965 \labelwidthstring 00.00.0000
18968 Bottom\InsetSpace ~
18972 : only floats occupying less than 30\InsetSpace \thinspace{}
18973 % of the page can be placed at the bottom
18984 \begin_layout Labeling
18985 \labelwidthstring 00.00.0000
18992 : only if more than 50\InsetSpace \thinspace{}
18993 % of the page are occupied by floats, several floats
18994 can be set together on a page.
19004 \begin_layout Standard
19005 If you don't like these rules, you can ignore them by using the additional
19008 Ignore\InsetSpace ~
19014 You can also redefine the rules with LaTeX-commands that are given in parenthese
19015 s behind the rules description above.
19016 To increase for example the often too small default of the bottom-rule
19017 to 50\InsetSpace \thinspace{}
19018 % of the page, add this line to your document preamble:
19021 \begin_layout Standard
19028 bottomfraction}{0.5}
19031 \begin_layout Standard
19032 Sometimes you might need, under all circumstances, a float to be placed
19033 exactly at the position where it is inserted.
19034 For this case you can use the option
19040 Use this option very rarely and only if the document is nearly ready to
19042 Because the float is then no longer able to
19043 \begin_inset Quotes eld
19047 \begin_inset Quotes erd
19050 when you change your document and this will often destroy the page layout.
19053 \begin_layout Standard
19054 There are no placement options for text wrap floats, because they are always
19055 surrounded by the text of a certain paragraph.
19056 \begin_inset VSpace bigskip
19062 \begin_layout Standard
19063 Sometimes you have the problem that a float is placed at the top of a page
19064 while its corresponding section starts at the middle of the page, so that
19065 the reader could think the float is part of the previous section.
19066 To avoid this the LaTeX-command
19070 suppressf\SpecialChar \textcompwordmark{}
19074 It suppresses a given float placement for the page where it is inserted
19075 and can therefore be used to avoid that floats could be set before a section
19077 To get this, add these commands to your document preamble:
19080 \begin_layout Standard
19097 suppressf\SpecialChar \textcompwordmark{}
19103 \begin_layout Standard
19104 You can define the same for all section headings, like chapters and subsections.
19105 This definition is not recommended to be used for small text parts like
19106 subsubsections because LaTeX may then have problems to find a suitable
19110 \begin_layout Standard
19111 \begin_inset VSpace bigskip
19114 In some cases it is required to have all figures/tables at the end of the
19116 For this purpose the LaTeX-package
19118 endf\SpecialChar \textcompwordmark{}
19122 \begin_inset LatexCommand index
19123 name "LaTeX-packages ! endfloat"
19128 It puts all figure and table floats at the end of the document into own
19130 At the original float position a text hint like
19131 \begin_inset Quotes eld
19136 [Figure\InsetSpace ~
19140 \begin_inset Quotes erd
19144 The endfloat-package is loaded in the preamble with the line
19147 \begin_layout Standard
19152 usepackage[options]{endf\SpecialChar \textcompwordmark{}
19156 \begin_layout Standard
19157 There are various package options to format the created figure/table sections.
19158 For more information we refer to the
19160 endf\SpecialChar \textcompwordmark{}
19164 \begin_inset LatexCommand cite
19172 \begin_inset Note Greyedout
19175 \begin_layout Standard
19178 Note: endf\SpecialChar \textcompwordmark{}
19181 doesn't provide an automatic translation for the text hint, you have to
19182 do this manually, see section\InsetSpace ~
19184 \begin_inset LatexCommand cite
19197 \begin_inset Note Greyedout
19200 \begin_layout Standard
19205 There is currently a bug in
19207 endf\SpecialChar \textcompwordmark{}
19210 when the caption contains a German
19211 \begin_inset Quotes eld
19215 \begin_inset Quotes erd
19219 Use in this case the command
19220 \begin_inset Quotes eld
19230 \begin_inset Quotes erd
19234 \begin_inset Quotes eld
19238 \begin_inset Quotes erd
19249 \begin_layout Standard
19250 \begin_inset VSpace bigskip
19253 For more details about float placements, have a look at LaTeX books,
19254 \begin_inset LatexCommand cite
19255 key "latexcompanion,latexguide,latexbook"
19262 \begin_layout Section
19264 \begin_inset LatexCommand label
19265 name "sec:Rotated-Floats"
19270 \begin_inset LatexCommand index
19271 name "Floats ! Rotating"
19278 \begin_layout Standard
19279 Especially for wide tables you might have floats rotated.
19280 To rotate a whole float including the caption, right-click on the float-box
19283 Rotate\InsetSpace ~
19289 \begin_layout Standard
19290 Rotated floats are always placed on its own page (or column, when you have
19291 a two-column document).
19292 They are normally rotated so that you can read them from the outside margin
19293 -- to the left on even pages, to the right on odd pages.
19294 To force a certain rotation direction for all pages, you can add either
19297 f\SpecialChar \textcompwordmark{}
19302 f\SpecialChar \textcompwordmark{}
19305 to the document class options.
19308 \begin_layout Standard
19309 Referencing rotated floats is the same like for normal floats, the caption
19310 format is also the same: Table\InsetSpace ~
19312 \begin_inset LatexCommand ref
19313 reference "tab:Rotated-table"
19317 is an example of a rotated table float.
19320 \begin_layout Standard
19321 \begin_inset Note Greyedout
19324 \begin_layout Standard
19329 Not all DVI-viewers are able to display rotated floats.
19337 \begin_layout Standard
19338 \begin_inset Float table
19343 \begin_layout Standard
19344 \begin_inset Caption
19346 \begin_layout Standard
19347 \begin_inset LatexCommand label
19348 name "tab:Rotated-table"
19360 \begin_layout Standard
19362 \begin_inset Tabular
19363 <lyxtabular version="3" rows="1" columns="5">
19365 <column alignment="center" valignment="top" leftline="true" width="0">
19366 <column alignment="center" valignment="top" leftline="true" width="0">
19367 <column alignment="center" valignment="top" leftline="true" width="0">
19368 <column alignment="center" valignment="top" leftline="true" width="0">
19369 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19370 <row topline="true" bottomline="true">
19371 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19374 \begin_layout Standard
19380 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19383 \begin_layout Standard
19389 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19392 \begin_layout Standard
19398 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19401 \begin_layout Standard
19407 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19410 \begin_layout Standard
19429 \begin_layout Section
19431 \begin_inset LatexCommand index
19432 name "Caption ! Formatting"
19437 \begin_inset LatexCommand index
19438 name "Floats ! Caption Formatting"
19443 \begin_inset LatexCommand index
19444 name "LaTeX-packages ! caption"
19449 \begin_inset LatexCommand label
19450 name "sec:Caption-Formatting"
19457 \begin_layout Standard
19462 environment is the default paragraph environment for
19467 On the LyX screen captions appear as label, e.\InsetSpace \thinspace{}
19470 \begin_inset Quotes eld
19478 \begin_inset Quotes erd
19481 followed by the caption text.
19483 \begin_inset Quotes eld
19487 \begin_inset Quotes erd
19490 is the actual reference number.
19491 By default the label and the number are in the same font as the caption
19492 text and a colon follows the number to divide the label from the text.
19493 This caption format is not suitable for all document formats.
19497 \begin_layout Standard
19498 To change the default caption format, load the LaTeX-package
19503 \begin_inset LatexCommand index
19504 name "LaTeX-packages ! caption"
19508 in the document preamble with this line:
19511 \begin_layout Standard
19516 usepackage[format definition]{caption}
19519 \begin_layout Standard
19520 To have for example the label and the number in sans-serif bold font and
19521 the table captions always above the table like in this document, use the
19525 \begin_layout Standard
19530 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
19533 \begin_layout Standard
19534 You can also define different caption formats for the different float types.
19535 In this case load the
19539 package without format specific options and define the different formats
19540 with the help of the command
19543 \begin_layout Standard
19548 captionsetup[float type]{format definition}
19551 \begin_layout Standard
19552 in the document preamble.
19553 For example the caption formats of Figure\InsetSpace ~
19555 \begin_inset LatexCommand ref
19556 reference "fig:This-is-an-fig"
19560 and Table\InsetSpace ~
19562 \begin_inset LatexCommand ref
19563 reference "tab:This-is-an-tab"
19567 can be created using these commands in the document preamble:
19570 \begin_layout Standard
19575 usepackage[tableposition=top]{caption}
19583 captionsetup[f\SpecialChar \textcompwordmark{}
19584 igure]{labelfont={tt}, textfont=it, indention=1cm,%
19590 \begin_layout Standard
19598 captionsetup[figure]
19609 captionsetup[table]{labelfont={bf,sf}}
19612 \begin_layout Standard
19613 \begin_inset Note Greyedout
19616 \begin_layout Standard
19625 has no effect when a
19630 \begin_inset LatexCommand index
19631 name "LaTeX-packages ! koma-script"
19635 document class is used.
19636 In this case the document class option
19648 \begin_layout Standard
19649 For more information about the package
19653 we refer to its documentation
19654 \begin_inset LatexCommand cite
19655 key "caption,caption-de"
19662 \begin_layout Standard
19663 To change the label name from e.g.
19665 \begin_inset Quotes eld
19669 \begin_inset Quotes erd
19673 \begin_inset Quotes eld
19677 \begin_inset Quotes erd
19680 use this preamble command:
19683 \begin_layout Standard
19690 fnum@figure}{Image~
19695 \begin_layout Standard
19702 inserts the figure number and
19705 \begin_inset Quotes eld
19711 \begin_inset Quotes erd
19714 creates a protected space.
19717 \begin_layout Standard
19718 \begin_inset VSpace bigskip
19726 \begin_inset LatexCommand index
19727 name "LaTeX-packages ! koma-script"
19733 article (koma-script)
19741 letter (koma-script)
19745 report (koma-script)
19747 \InsetSpace \thinspace{}
19748 ), you can alternatively to the
19756 's built-in command
19763 For example, to have the caption label in bold, add this command to your
19767 \begin_layout Standard
19772 setkomafont{captionlabel}{
19777 \begin_layout Standard
19778 For more information about
19789 \begin_inset LatexCommand cite
19790 key "koma-script,koma-script-de"
19797 \begin_layout Standard
19801 \begin_layout Standard
19805 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
19812 \begin_inset Note Note
19815 \begin_layout Standard
19816 The caption format is changed only for this example.
19824 \begin_layout Standard
19825 \begin_inset Float figure
19831 \begin_layout Standard
19833 \begin_inset Graphics
19834 filename clipart/mobius.eps
19837 scaleBeforeRotation
19844 \begin_layout Standard
19845 \begin_inset Caption
19847 \begin_layout Standard
19848 \begin_inset LatexCommand label
19849 name "fig:This-is-an-fig"
19853 This is an example figure caption that is longer than one line to show the
19854 different caption format.
19855 Here a self-defined caption format is used.
19868 \begin_layout Standard
19872 \begin_layout Standard
19876 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
19885 \begin_layout Standard
19886 \begin_inset Float table
19892 \begin_layout Standard
19893 \begin_inset Caption
19895 \begin_layout Standard
19896 \begin_inset LatexCommand label
19897 name "tab:This-is-an-tab"
19901 This is an example table caption that is longer than one line to show the
19902 different caption format.
19903 Here the standard caption format for tables in this document is used.
19911 \begin_layout Standard
19913 \begin_inset Tabular
19914 <lyxtabular version="3" rows="1" columns="5">
19916 <column alignment="center" valignment="top" leftline="true" width="0">
19917 <column alignment="center" valignment="top" leftline="true" width="0">
19918 <column alignment="center" valignment="top" leftline="true" width="0">
19919 <column alignment="center" valignment="top" leftline="true" width="0">
19920 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19921 <row topline="true" bottomline="true">
19922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19925 \begin_layout Standard
19931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19934 \begin_layout Standard
19940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19943 \begin_layout Standard
19949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19952 \begin_layout Standard
19958 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19961 \begin_layout Standard
19980 \begin_layout Section
19982 \begin_inset LatexCommand index
19983 name "Caption ! Placement"
19988 \begin_inset LatexCommand index
19989 name "Floats ! Caption Placement"
19994 \begin_inset LatexCommand label
19995 name "sec:Caption-Placement"
20002 \begin_layout Standard
20003 The common caption placement rule is:
20006 \begin_layout Description
20007 Figure: Caption is set below the figure
20010 \begin_layout Description
20011 Table: Caption is set above the table
20014 \begin_layout Standard
20015 Having the caption above the table is unfortunately not supported in LaTeX's
20017 That means if you are using the document classes
20033 there will be no space between the caption and the table.
20034 To insert the needed space, add the following option to the load command
20035 of the LaTeX-package
20039 in your document preamble
20043 \begin_layout Standard
20044 See section\InsetSpace ~
20046 \begin_inset LatexCommand ref
20047 reference "sec:Caption-Formatting"
20051 for more information of the package
20063 \begin_layout Standard
20069 \begin_layout Standard
20075 \begin_inset LatexCommand index
20076 name "LaTeX-packages ! koma-script"
20082 article (koma-script)
20090 letter (koma-script)
20094 report (koma-script)
20096 \InsetSpace \thinspace{}
20097 ), you can alternatively to the
20101 package set the document class option
20108 \begin_layout Standard
20109 \begin_inset VSpace bigskip
20112 It is also possible to set the caption beside a figure or table.
20113 To get this the LaTeX-package
20118 \begin_inset LatexCommand index
20119 name "LaTeX-packages ! sidecap"
20123 has to be loaded in the document preamble with the line
20126 \begin_layout Standard
20131 usepackage[option]{sidecap}
20134 \begin_layout Standard
20135 If you set no option, the caption is placed on the side of the outer page
20136 margin -- to the right on odd pages, to the left on even pages.
20137 You can change the placement to inner margin with the option
20142 To force the placement always to the right or left, use the option
20153 \begin_layout Standard
20154 To place in LyX the caption of a float on the side, it is necessary to add
20155 these commands to the document preamble:
20158 \begin_layout Standard
20164 \begin_layout Standard
20177 \begin_layout Standard
20198 \begin_layout Standard
20219 \begin_layout Standard
20230 renewenvironment{table}{
20237 \begin_layout Standard
20250 \begin_layout Standard
20271 \begin_layout Standard
20289 \begin_layout Standard
20302 \begin_layout Standard
20317 f\SpecialChar \textcompwordmark{}
20324 \begin_layout Standard
20337 MyEndf\SpecialChar \textcompwordmark{}
20340 endf\SpecialChar \textcompwordmark{}
20347 \begin_layout Standard
20358 renewenvironment{f\SpecialChar \textcompwordmark{}
20361 begin{SCf\SpecialChar \textcompwordmark{}
20364 end{SCf\SpecialChar \textcompwordmark{}
20368 \begin_layout Standard
20381 \begin_layout Standard
20394 f\SpecialChar \textcompwordmark{}
20403 \begin_layout Standard
20416 endf\SpecialChar \textcompwordmark{}
20419 MyEndf\SpecialChar \textcompwordmark{}
20423 \begin_layout Standard
20429 \begin_layout Standard
20430 The commands allow you to redefine the floats so that the caption is set
20432 For figure floats use the command
20435 \begin_layout Standard
20443 \begin_layout Standard
20444 in ERT before the float.
20445 Behind the float insert the command
20448 \begin_layout Standard
20456 \begin_layout Standard
20457 in ERT to get back to the original float definition.
20460 \begin_layout Standard
20461 For table floats use the corresponding commands
20464 \begin_layout Standard
20478 \begin_layout Standard
20479 Figure\InsetSpace ~
20481 \begin_inset LatexCommand ref
20482 reference "fig:cap-beside-fig"
20486 and Table\InsetSpace ~
20488 \begin_inset LatexCommand ref
20489 reference "tab:cap-beside-tab"
20493 are examples where the caption is set beside.
20496 \begin_layout Standard
20497 You can see in the examples that the caption text appears at the top of
20498 the floats for table floats and at the bottom for figure floats.
20499 To change this, you can use the command
20502 \begin_layout Standard
20507 sidecaptionvpos{float type}{placement}
20510 \begin_layout Standard
20511 in the document preamble or in ERT before the float.
20512 The float type is either
20520 , the placement can be
20521 \begin_inset Quotes eld
20529 \begin_inset Quotes erd
20533 \begin_inset Quotes eld
20541 \begin_inset Quotes erd
20545 \begin_inset Quotes eld
20553 \begin_inset Quotes erd
20557 To have for example the caption of figure floats vertically centered, use
20561 \begin_layout Standard
20566 sidecaptionvpos{f\SpecialChar \textcompwordmark{}
20570 \begin_layout Standard
20571 This was used for Figure\InsetSpace ~
20573 \begin_inset LatexCommand ref
20574 reference "fig:cap-beside-fig-2"
20581 \begin_layout Standard
20582 \begin_inset VSpace medskip
20585 For more information about the package
20589 we refer to its documentation
20590 \begin_inset LatexCommand cite
20598 \begin_layout Standard
20599 \begin_inset Note Greyedout
20602 \begin_layout Standard
20612 \begin_inset LatexCommand index
20613 name "LaTeX-packages ! hypcap"
20617 , described in section\InsetSpace ~
20619 \begin_inset LatexCommand ref
20620 reference "sub:Reference-Position"
20624 , has no effect on floats with the caption set beside.
20632 \begin_layout Standard
20636 \begin_layout Standard
20648 \begin_layout Standard
20649 \begin_inset Float figure
20654 \begin_layout Standard
20655 \begin_inset Graphics
20656 filename clipart/escher-lsd.eps
20658 scaleBeforeRotation
20665 \begin_layout Standard
20666 \begin_inset Caption
20668 \begin_layout Standard
20669 \begin_inset LatexCommand label
20670 name "fig:cap-beside-fig"
20674 This is a caption beside a figure.
20687 \begin_layout Standard
20691 \begin_layout Standard
20703 \begin_layout Standard
20704 \begin_inset Float table
20709 \begin_layout Standard
20710 \begin_inset Caption
20712 \begin_layout Standard
20713 \begin_inset LatexCommand label
20714 name "tab:cap-beside-tab"
20718 This is a caption beside a table.
20726 \begin_layout Standard
20727 \begin_inset Tabular
20728 <lyxtabular version="3" rows="4" columns="5">
20730 <column alignment="center" valignment="top" leftline="true" width="0">
20731 <column alignment="center" valignment="top" leftline="true" width="0">
20732 <column alignment="center" valignment="top" leftline="true" width="0">
20733 <column alignment="center" valignment="top" leftline="true" width="0">
20734 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
20735 <row topline="true">
20736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20739 \begin_layout Standard
20745 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20748 \begin_layout Standard
20754 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20757 \begin_layout Standard
20763 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20766 \begin_layout Standard
20772 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20775 \begin_layout Standard
20782 <row topline="true">
20783 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20786 \begin_layout Standard
20792 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20795 \begin_layout Standard
20801 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20804 \begin_layout Standard
20810 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20813 \begin_layout Standard
20819 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20822 \begin_layout Standard
20829 <row topline="true">
20830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20833 \begin_layout Standard
20839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20842 \begin_layout Standard
20848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20851 \begin_layout Standard
20857 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20860 \begin_layout Standard
20866 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20869 \begin_layout Standard
20876 <row topline="true" bottomline="true">
20877 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20880 \begin_layout Standard
20886 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20889 \begin_layout Standard
20895 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20898 \begin_layout Standard
20904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20907 \begin_layout Standard
20913 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20916 \begin_layout Standard
20935 \begin_layout Standard
20939 \begin_layout Standard
20951 \begin_layout Standard
20955 \begin_layout Standard
20959 sidecaptionvpos{figure}{c}
20965 \begin_inset Float figure
20970 \begin_layout Standard
20971 \begin_inset Graphics
20972 filename clipart/escher-lsd.eps
20974 scaleBeforeRotation
20981 \begin_layout Standard
20982 \begin_inset Caption
20984 \begin_layout Standard
20985 \begin_inset LatexCommand label
20986 name "fig:cap-beside-fig-2"
20990 This is a vertically centered caption beside a figure.
21003 \begin_layout Standard
21007 \begin_layout Standard
21019 \begin_layout Section
21021 \begin_inset LatexCommand label
21022 name "sec:Listings-of-Floats"
21027 \begin_inset LatexCommand index
21028 name "Floats ! Float Lists"
21035 \begin_layout Standard
21036 Similar to the the table of contents where the sections of the document
21037 are listed, there are listings for all float types, like the figures of
21039 You can insert them via the
21041 Insert\SpecialChar \menuseparator
21049 \begin_layout Standard
21050 The list entries are the float captions or its short title, the float number,
21051 and the page number where they appear in the document.
21054 \begin_layout Standard
21055 You can find the list of figures and tables at the end of this document.
21058 \begin_layout Chapter
21062 \begin_layout Section
21066 \begin_layout Standard
21079 \begin_layout Standard
21087 \begin_inset LatexCommand label
21088 name "sec:LyX-Notes"
21093 \begin_inset LatexCommand index
21094 name "Notes ! LyX Notes"
21099 \begin_inset Note Note
21102 \begin_layout Standard
21105 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
21106 are displayed wrongly in PDF-bookmarks.
21107 For more information about this, have a look at
21108 \begin_inset LatexCommand cite
21121 \begin_layout Standard
21122 Notes are inserted with the toolbar button
21123 \begin_inset Graphics
21124 filename ../images/note-insert.xpm
21126 scaleBeforeRotation
21132 Insert\SpecialChar \menuseparator
21136 There are five types of notes:
21139 \begin_layout Description
21141 Note This note type is for internal notes that won't appear in the output.
21142 Its note-box looks like this:
21147 \begin_inset Graphics
21148 filename clipart/LyXNoteImageQt4.png
21151 scaleBeforeRotation
21156 \begin_inset Note Note
21159 \begin_layout Standard
21160 This is text in a note box that doesn't appear in the output.
21168 \begin_layout Description
21169 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
21170 ent, when you export the document to LaTeX via the menu
21172 File\SpecialChar \menuseparator
21173 Export\SpecialChar \menuseparator
21174 LaTeX (pdflatex) / LaTeX (plain)
21177 Its note-box looks like this:
21182 \begin_inset Graphics
21183 filename clipart/CommentNoteImageQt4.png
21186 scaleBeforeRotation
21191 \begin_inset Note Comment
21194 \begin_layout Standard
21195 This is text in a note box that only appears as comment in LaTeX-files.
21203 \begin_layout Description
21204 Greyed\InsetSpace ~
21205 Out This note will appear in the output as grey text.
21206 Its note-box looks like this:
21211 \begin_inset Graphics
21212 filename clipart/GreyedOutNoteImageQt4.png
21215 scaleBeforeRotation
21225 \begin_layout Standard
21229 renewenvironment{lyxgreyedout}
21232 \begin_layout Standard
21236 textcolor[gray]{0.8}
21246 \begin_inset Note Greyedout
21249 \begin_layout Standard
21254 \begin_layout Standard
21255 This is an example footnote within a greyed out note.
21260 of a comment that appears in the output as grey text.
21269 \begin_layout Standard
21273 renewenvironment{lyxgreyedout}
21276 \begin_layout Standard
21290 \begin_inset Note Note
21293 \begin_layout Standard
21294 The greyed out note is here redefined to show it with the original LyX definitio
21295 n because greyed out notes are redefined in the preamble of this document,
21296 as described below, to have blue text.
21305 As you can see in the example, the first line of greyed out notes is a bit
21306 indented and greyed out notes can have footnotes.
21309 \begin_layout Description
21310 Framed This note will appear in the output as framed text.
21311 Its note-box looks like this:
21316 \begin_inset Graphics
21317 filename clipart/FramedNoteImageQt4.png
21320 scaleBeforeRotation
21325 \begin_inset Note Framed
21328 \begin_layout Standard
21329 This is text in a note box that appears framed in the output.
21334 In contrary to framed boxes
21338 \begin_layout Standard
21339 Framed boxes are described in section\InsetSpace ~
21341 \begin_inset LatexCommand ref
21342 reference "sec:Framed-Boxes"
21351 the frame uses always the whole text width and the note is set into its
21355 \begin_layout Description
21356 Shaded This note will appear in the output with red background color.
21357 Its note box looks like this:
21362 \begin_inset Graphics
21363 filename clipart/ShadedNoteImageQt4.png
21366 scaleBeforeRotation
21371 \begin_inset Note Shaded
21374 \begin_layout Standard
21375 This text in a note box appears in the output with red background.
21380 In contrary to colored boxes
21384 \begin_layout Standard
21385 Colored boxes are described in section\InsetSpace ~
21387 \begin_inset LatexCommand ref
21388 reference "sec:Colored-Boxes"
21397 the note uses always the whole text width and the note is set into its
21401 \begin_layout Standard
21402 \begin_inset VSpace bigskip
21405 When you use the toolbar button
21406 \begin_inset Graphics
21407 filename ../images/note-insert.xpm
21409 scaleBeforeRotation
21419 You can switch between the five note types by right-clicking on the note-box.
21424 If you want to turn existing text into a note, mark it and click on the
21440 \begin_layout Standard
21441 \begin_inset VSpace bigskip
21444 You can change the text color of the greyed out notes in the preamble with
21445 the following command:
21448 \begin_layout Standard
21453 renewenvironment{lyxgreyedout}
21459 \begin_layout Standard
21477 \begin_layout Standard
21478 The available colors and the method to define own colors is explained in
21479 section\InsetSpace ~
21481 \begin_inset LatexCommand ref
21482 reference "sec:Colored-Tables"
21489 \begin_layout Standard
21490 Notes that appear in blue in this document are set using greyed out notes
21494 \begin_layout Standard
21495 \begin_inset VSpace bigskip
21501 \begin_layout Standard
21510 notes can be set in the
21517 \begin_layout Standard
21518 The default frame width for
21522 notes is 0.4\InsetSpace \thinspace{}
21523 pt; it can be changed by changing the size
21530 The default space between the note content and the frame is 9\InsetSpace \thinspace{}
21532 be changed by changing the size
21539 For example the frame appearance of the following
21543 note is set with the ERT commands
21546 \begin_layout Standard
21556 \begin_layout Standard
21560 \begin_layout Standard
21572 \begin_inset Note Framed
21575 \begin_layout Standard
21589 \begin_layout Standard
21603 \begin_layout Standard
21604 \begin_inset VSpace bigskip
21610 \begin_layout Standard
21615 notes the default space between the note content and the note border is
21616 3\InsetSpace \thinspace{}
21617 pt; it can be changed by changing the size
21625 The default background color red can be changed with the command
21629 def\SpecialChar \textcompwordmark{}
21637 def\SpecialChar \textcompwordmark{}
21640 command is explained in section\InsetSpace ~
21642 \begin_inset LatexCommand ref
21643 reference "sec:Colored-Tables"
21651 \begin_layout Standard
21658 \SpecialChar \textcompwordmark{}
21663 requires the LaTeX-package
21667 in the preamble, see section\InsetSpace ~
21669 \begin_inset LatexCommand ref
21670 reference "sec:Colored-Boxes"
21682 \begin_layout Standard
21683 For example the appearance of the following
21687 note is set with the ERT commands
21690 \begin_layout Standard
21703 def\SpecialChar \textcompwordmark{}
21704 inecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21707 \begin_layout Standard
21711 \begin_layout Standard
21724 \begin_layout Standard
21728 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21734 \begin_inset Note Shaded
21737 \begin_layout Standard
21740 This is yellow text in a
21750 note with darkgreen background.
21759 \begin_layout Standard
21772 \begin_layout Standard
21776 definecolor{shadecolor}{rgb}{1,0,0}
21784 \begin_layout Section
21786 \begin_inset LatexCommand label
21787 name "sec:Footnotes"
21792 \begin_inset LatexCommand index
21793 name "Notes ! Footnotes"
21798 \begin_inset LatexCommand index
21806 \begin_layout Standard
21807 Footnotes can be inserted using the toolbar button
21808 \begin_inset Graphics
21809 filename ../images/footnote-insert.xpm
21811 scaleBeforeRotation
21817 Insert\SpecialChar \menuseparator
21829 then the following footnote-box:
21830 \begin_inset Graphics
21831 filename clipart/footnoteQt4.png
21833 scaleBeforeRotation
21841 where you can enter the footnote text.
21842 If you want to turn existing text into a footnote, mark it and click on
21858 \begin_layout Standard
21859 Here is an example footnote:
21867 \begin_layout Standard
21868 \begin_inset LatexCommand label
21869 name "foot:This-is-an"
21873 This is an example footnote.
21886 \begin_layout Standard
21890 newcounter{MyRepeatFoot}
21893 \begin_layout Standard
21897 setcounter{MyRepeatFoot}{
21907 \begin_layout Standard
21908 The footnote will appear in the output as a superscript number at the text
21909 position where the footnote box is placed.
21910 The footnote text is placed at the bottom of the current page.
21911 The footnote number is calculated by LaTeX, the numbers are consecutive.
21912 It depends on your document-class, if the footnote number is reset for
21916 \begin_layout Standard
21917 Footnotes can be referenced like floats: Insert a label into the footnote
21918 and cross-reference this label in the text as described in section\InsetSpace ~
21920 \begin_inset LatexCommand ref
21921 reference "sec:Referencing-Floats"
21927 This is a cross-reference of Footnote\InsetSpace ~
21929 \begin_inset LatexCommand ref
21930 reference "foot:This-is-an"
21937 \begin_layout Standard
21938 \begin_inset VSpace defskip
21941 To use footnotes within tables, you have to use minipages, see section\InsetSpace ~
21943 \begin_inset LatexCommand ref
21944 reference "sec:Minipages"
21949 Footnotes within longtables are described in section\InsetSpace ~
21951 \begin_inset LatexCommand ref
21952 reference "sub:Footnotes-in-Longtables"
21959 \begin_layout Standard
21960 \begin_inset VSpace defskip
21963 To create only a mark for a footnote, use the command
21967 footnotemark[number]
21970 This is used when you have the same annotation several times in a text
21971 but doesn't want to print the footnote text every time.
21974 the number of the repeating footnote while you are writing the text, you
21975 have to store its number.
21976 For the following footnote mark example, these commands were inserted in
21977 ERT behind Footnote\InsetSpace ~
21979 \begin_inset LatexCommand ref
21980 reference "foot:This-is-an"
21984 to store the footnote number:
21987 \begin_layout Standard
21992 newcounter{MyRepeatFoot}
21996 setcounter{MyRepeatFoot}{
22001 \begin_layout Standard
22002 The footnote mark was then created with this command:
22005 \begin_layout Standard
22015 \begin_layout Standard
22016 Here is an example footnote mark:
22024 \begin_layout Standard
22038 \begin_layout Subsection
22040 \begin_inset LatexCommand label
22041 name "sub:Footnote-Numbering"
22046 \begin_inset LatexCommand index
22047 name "Footnotes ! Numbering"
22054 \begin_layout Standard
22055 To reset the footnote number back to 1 after each section
22057 , add this command to your document preamble:
22060 \begin_layout Standard
22065 @addtoreset{footnote}{section}
22068 \begin_layout Standard
22069 \begin_inset VSpace bigskip
22072 The following preamble command changes the footnote numbering style to small
22076 \begin_layout Standard
22088 \begin_layout Standard
22092 \begin_layout Standard
22105 This is a footnote with roman numbering:
22109 \begin_layout Standard
22110 This is an example footnote with roman numbering.
22118 \begin_layout Standard
22119 To change the numbering style to capital roman numerals replace in the command
22134 \begin_inset Quotes eld
22138 \begin_inset Quotes erd
22141 footnotes with capital or small Latin letters use
22155 \begin_inset Quotes eld
22159 \begin_inset Quotes erd
22162 footnotes with symbols use
22171 \begin_layout Standard
22172 \begin_inset Note Greyedout
22175 \begin_layout Standard
22180 You can only number 26 footnotes with Latin letters, because this numbering
22181 is limited to single letters.
22189 \begin_inset Note Greyedout
22192 \begin_layout Standard
22197 You can only number 9 footnotes with symbols.
22205 \begin_layout Standard
22206 To return to the default numbering style when you changed to another one,
22219 in the command above.
22223 \begin_layout Standard
22239 \begin_layout Standard
22240 \begin_inset VSpace bigskip
22246 \begin_layout Standard
22247 If you want to have footnotes numbered in the scheme
22248 \begin_inset Quotes eld
22252 \begin_inset Quotes erd
22255 , add the following command to your document preamble:
22258 \begin_layout Standard
22263 numberwithin{footnote}{chapter}
22266 \begin_layout Standard
22267 To be able to use the command
22278 in the document settings the option
22288 \begin_layout Standard
22292 \begin_layout Standard
22296 numberwithin{footnote}{chapter}
22301 This is another example footnote:
22307 \begin_layout Standard
22308 This is a footnote numbered in the scheme
22309 \begin_inset Quotes eld
22313 \begin_inset Quotes erd
22327 \begin_layout Standard
22343 \begin_layout Standard
22344 \begin_inset Note Greyedout
22347 \begin_layout Standard
22358 always prints out the footnote number as arabic number; previous redefinitions
22359 to get non-arabic numbers are overwritten.
22367 \begin_layout Standard
22368 So to get for example the scheme
22369 \begin_inset Quotes eld
22375 \begin_inset Quotes erd
22378 , use this command instead of
22387 \begin_layout Standard
22401 \begin_layout Subsection
22403 \begin_inset LatexCommand index
22404 name "Footnotes ! Placement"
22411 \begin_layout Standard
22412 If you have several footnotes in one page, they appear without vertical
22413 space between them at the bottom of the page.
22414 To make them better readable you can e.\InsetSpace \thinspace{}
22416 add 1.5\InsetSpace \thinspace{}
22417 mm space with the following
22421 \begin_layout Standard
22443 \begin_layout Standard
22444 \begin_inset VSpace bigskip
22447 In a two-column document the footnotes appear at the bottom of every column,
22448 see Figure\InsetSpace ~
22450 \begin_inset LatexCommand ref
22451 reference "fig:Standard-footnote-placement"
22456 If the footnotes should only appear at the bottom of the right column,
22457 as in Figure\InsetSpace ~
22459 \begin_inset LatexCommand ref
22460 reference "fig:Footnote-placement-in"
22464 , use the LaTeX-package
22469 \begin_inset LatexCommand index
22470 name "LaTeX-packages ! ftnright"
22474 with this command in the document preamble:
22477 \begin_layout Standard
22482 usepackage{ftnright}
22485 \begin_layout Standard
22486 \begin_inset Float figure
22492 \begin_layout Standard
22496 \begin_layout Standard
22506 \begin_inset Graphics
22507 filename clipart/without_fntright.pdf
22509 scaleBeforeRotation
22517 \begin_layout Standard
22527 \begin_layout Standard
22528 \begin_inset Caption
22530 \begin_layout Standard
22531 \begin_inset LatexCommand label
22532 name "fig:Standard-footnote-placement"
22536 Standard footnote placement in two-column documents.
22549 \begin_layout Standard
22550 \begin_inset Float figure
22556 \begin_layout Standard
22560 \begin_layout Standard
22570 \begin_inset Graphics
22571 filename clipart/with_fntright.pdf
22573 scaleBeforeRotation
22581 \begin_layout Standard
22591 \begin_layout Standard
22592 \begin_inset Caption
22594 \begin_layout Standard
22595 \begin_inset LatexCommand label
22596 name "fig:Footnote-placement-in"
22600 Footnote placement in two-column documents when the LaTeX-package
22617 \begin_layout Standard
22618 \begin_inset VSpace bigskip
22621 In some scientific literature it is usual to collect the footnotes and print
22622 them in a separate paragraph at the the end of a section, like in Figure\InsetSpace ~
22624 \begin_inset LatexCommand ref
22625 reference "fig:Endnotes----footnotes"
22630 They are then so called
22631 \begin_inset Quotes eld
22635 \begin_inset Quotes erd
22639 To use endnotes instead of footnotes in your document, load the LaTeX-package
22645 \begin_inset LatexCommand index
22646 name "LaTeX-packages ! endnotes"
22650 with the document preamble lines
22653 \begin_layout Standard
22658 usepackage{endnotes}
22669 \begin_layout Standard
22670 To insert the collected footnotes, insert the command
22673 \begin_layout Standard
22681 \begin_layout Standard
22682 in ERT at the the end of a section or chapter.
22685 \begin_layout Standard
22686 \begin_inset Float figure
22691 \begin_layout Standard
22696 \begin_layout Standard
22706 \begin_inset Graphics
22707 filename clipart/endnotes.pdf
22708 scaleBeforeRotation
22716 \begin_layout Standard
22726 \begin_layout Standard
22727 \begin_inset Caption
22729 \begin_layout Standard
22730 \begin_inset LatexCommand label
22731 name "fig:Endnotes----footnotes"
22735 Endnotes -- footnotes are printed in a separate paragraph at the end of
22736 sections or chapters.
22749 \begin_layout Standard
22750 \begin_inset VSpace medskip
22753 The paragraph heading for the endnotes isn't automatically translated into
22754 the document language, this must be done manually.
22755 The following preamble command translate the default English name
22756 \begin_inset Quotes eld
22760 \begin_inset Quotes erd
22763 to the German translation
22764 \begin_inset Quotes eld
22768 \begin_inset Quotes erd
22774 \begin_layout Standard
22781 notesname}{Anmerkungen}
22784 \begin_layout Standard
22785 \begin_inset VSpace medskip
22788 The numbering of endnotes can be changed like the footnote numbering as
22789 described in section\InsetSpace ~
22791 \begin_inset LatexCommand ref
22792 reference "sub:Footnote-Numbering"
22796 ; just replace the command
22809 To reset the endnote number use the command
22815 as described in section\InsetSpace ~
22817 \begin_inset LatexCommand ref
22818 reference "sub:Footnote-Numbering"
22822 and replace the command parameter
22833 \begin_layout Standard
22834 To create only a mark for an endnote, use the command
22838 endnotemark[number]
22840 similar to the command
22846 , described in section\InsetSpace ~
22848 \begin_inset LatexCommand ref
22849 reference "sec:Footnotes"
22856 \begin_layout Standard
22857 \begin_inset VSpace bigskip
22860 Footnotes can also be placed in the page margin and the footnote text alignment
22861 can be changed, see the LaTeX-package
22866 \begin_inset LatexCommand index
22867 name "LaTeX-packages ! footmisc"
22872 \begin_inset LatexCommand cite
22877 for more information about this.
22880 \begin_layout Standard
22881 For various further footnote formatting issues have a look at LaTeX-books,
22883 \begin_inset LatexCommand cite
22884 key "latexcompanion,latexguide,latexbook"
22891 \begin_layout Section
22893 \begin_inset LatexCommand index
22894 name "Notes ! Margin Notes"
22901 \begin_layout Standard
22902 Margin notes look and behave in LyX like footnotes.
22903 They are inserted via the menu
22905 Insert\SpecialChar \menuseparator
22906 Marginal\InsetSpace ~
22909 or the toolbar button
22910 \begin_inset Graphics
22911 filename ../images/marginalnote-insert.xpm
22913 scaleBeforeRotation
22928 \begin_inset Quotes eld
22932 \begin_inset Quotes erd
22935 appears where you can enter the text of the margin note.
22938 \begin_layout Standard
22939 At the side is an example margin note.
22943 \begin_inset Marginal
22946 \begin_layout Standard
22947 This is a margin note.
22955 \begin_layout Standard
22956 Margin notes appear at the right side in single-sided documents.
22957 In double-sided documents they appear in the outer margin -- left on even
22958 pages, right on odd pages.
22959 The text of margin notes is aligned opposite to the outer margin -- right-align
22960 ed when the note appears in the left margin.
22961 The first line of the margin note is placed at the position of the text
22962 line where it is inserted in the document.
22965 \begin_layout Standard
22966 \begin_inset VSpace bigskip
22969 To place the margin note in the inner margin, add the command
22972 \begin_layout Standard
22980 \begin_layout Standard
22981 in ERT before a margin note.
22982 The new placement is valid for all following margin notes.
22986 \begin_layout Standard
22996 \begin_inset Marginal
22999 \begin_layout Standard
23000 This is a margin note in the inner margin.
23012 \begin_inset Note Greyedout
23015 \begin_layout Standard
23020 There is often not enough space in the inner margin so that the notes are
23021 not correctly displayed in the output.
23029 \begin_layout Standard
23030 To return to the default placement insert the command
23033 \begin_layout Standard
23041 \begin_layout Standard
23046 \begin_layout Standard
23056 \begin_inset Note Greyedout
23059 \begin_layout Standard
23064 The command is ignored when it is within a paragraph where also the command
23079 \begin_layout Standard
23080 \begin_inset VSpace bigskip
23087 \begin_inset Marginal
23090 \begin_layout Standard
23091 AVeryLongMarginParWord that isn't hyphenated.
23099 Similar to the case described in section\InsetSpace ~
23101 \begin_inset LatexCommand ref
23102 reference "sub:Multiple-Lines-in"
23106 , long words cannot be hyphenated when they are the first word in a margin
23108 To avoid this, insert the command
23111 \begin_layout Standard
23119 \begin_layout Standard
23120 in ERT before the word
23124 \begin_inset Marginal
23127 \begin_layout Standard
23131 \begin_layout Standard
23140 AVeryLongMarginParWord that is hyphenated.
23148 \begin_layout Standard
23149 \begin_inset VSpace bigskip
23155 \begin_layout Standard
23156 \begin_inset Note Greyedout
23159 \begin_layout Standard
23164 Margin notes can normally not be used inside tables, floats, and footnotes.
23172 \begin_layout Standard
23173 \begin_inset VSpace bigskip
23179 \begin_layout Standard
23183 \begin_layout Standard
23193 \begin_inset Note Note
23196 \begin_layout Standard
23197 The following section will only be displayed when you have the LaTeX-package
23210 \begin_layout Standard
23211 This restriction can be evaded by using the LaTeX-package
23216 \begin_inset LatexCommand index
23217 name "LaTeX-packages ! marginnote"
23222 By adding these two lines to your document preamble, the command used by
23223 LyX for margin notes is redefined to use the command provided by the
23230 \begin_layout Standard
23235 usepackage{marginnote}
23246 \begin_layout Standard
23247 This is also used in this document because
23251 has another useful feature: You can set a vertical offset for the note.
23252 This is often needed when too many margin notes are too close together
23253 or for a better page layout.
23254 The offset is set in LyX as ERT directly behind the margin note in the
23258 \begin_layout Standard
23264 \begin_layout Standard
23265 where the offset is a length with one of the units listed in Table\InsetSpace ~
23267 \begin_inset LatexCommand ref
23268 reference "tab:Units"
23273 A negative value shifts the note up, a positive value shifts it down.
23277 For example the margin note beside this text line is shifted up 1.5\InsetSpace \thinspace{}
23280 \begin_inset Quotes eld
23290 \begin_inset Quotes erd
23294 \begin_inset Marginal
23297 \begin_layout Standard
23298 This margin note is shifted up 1.5\InsetSpace \thinspace{}
23299 cm from its original position.
23311 \begin_layout Standard
23321 \begin_layout Standard
23322 \begin_inset VSpace medskip
23329 you can also change the alignment of the text in the margin note.
23330 For example the commands
23333 \begin_layout Standard
23340 raggedleftmarginnote}{
23348 raggedrightmarginnote}{
23353 \begin_layout Standard
23354 set the alignment to centered.
23359 raggedleftmarginnote
23361 denotes margin notes that appear at the left side.
23368 \begin_layout Standard
23374 raggedleftmarginnote}{
23379 \begin_layout Standard
23385 raggedrightmarginnote}{
23393 \begin_inset Marginal
23396 \begin_layout Standard
23397 The text of this margin note is centered.
23408 \begin_layout Standard
23415 raggedleftmarginnote}{
23423 raggedrightmarginnote}{
23432 \begin_layout Standard
23438 raggedleftmarginnote}{
23443 \begin_layout Standard
23449 raggedrightmarginnote}{
23459 \begin_layout Standard
23460 \begin_inset VSpace medskip
23463 For the other features of
23467 we refer to its documentation
23468 \begin_inset LatexCommand cite
23476 \begin_layout Standard
23477 \begin_inset VSpace bigskip
23480 You can adjust the layout of margin notes by changing its definition.
23481 To create for example a header for all margin notes with the underlined,
23482 sans-serif, and bold header text
23483 \begin_inset Quotes eld
23495 \begin_inset Quotes erd
23498 , add this to your document preamble:
23501 \begin_layout Standard
23524 \begin_layout Standard
23541 underbar{Attention!}}}%
23547 \begin_layout Standard
23565 \begin_layout Standard
23572 \begin_layout Standard
23583 \begin_layout Standard
23594 \begin_layout Standard
23602 underbar{Attention!}}}%
23605 \begin_layout Standard
23619 \begin_inset Marginal
23622 \begin_layout Standard
23623 This is a margin note with a defined heading.
23635 \begin_layout Standard
23649 \begin_layout Standard
23666 \begin_inset Note Note
23669 \begin_layout Standard
23670 The margin note format is changed only for this example.
23678 \begin_layout Standard
23682 \begin_layout Standard
23692 \begin_inset Note Note
23695 \begin_layout Standard
23696 The following will be displayed when the LaTeX-package
23708 \begin_layout Standard
23709 You need to install the LaTeX-package
23713 to see the following part of this section in the output.
23716 \begin_layout Standard
23720 \begin_layout Standard
23732 \begin_layout Chapter
23736 \begin_layout Section
23738 \begin_inset LatexCommand index
23739 name "Boxes ! Introduction"
23746 \begin_layout Standard
23747 Boxes are used to format a block of text.
23748 Boxes can be used to write documents with multiple languages, see section\InsetSpace ~
23750 \begin_inset LatexCommand ref
23751 reference "sec:Minipages"
23755 , to frame texts, see section\InsetSpace ~
23757 \begin_inset LatexCommand ref
23758 reference "sec:Framed-Boxes"
23762 , to prevent words to be hyphenated, see section\InsetSpace ~
23764 \begin_inset LatexCommand ref
23765 reference "sec:Prevent-Hyphenation"
23769 , to align text, see section\InsetSpace ~
23771 \begin_inset LatexCommand ref
23772 reference "sub:Vertical-Alignment"
23776 , or to set the background color of texts, see section\InsetSpace ~
23778 \begin_inset LatexCommand ref
23779 reference "sec:Colored-Boxes"
23786 \begin_layout Standard
23787 Boxes can be inserted with the menu
23789 Insert\SpecialChar \menuseparator
23793 A grey box with the label
23798 \begin_inset Graphics
23799 filename clipart/BoxInsetDefaultQt4.png
23801 scaleBeforeRotation
23805 , will be inserted.
23806 The box type can be specified by right-clicking on the box.
23807 The appearing box dialog offers the
23825 is the default for new boxes and is explained in section\InsetSpace ~
23827 \begin_inset LatexCommand ref
23828 reference "sec:Minipages"
23836 is described in section\InsetSpace ~
23838 \begin_inset LatexCommand ref
23839 reference "sec:Parboxes"
23846 \begin_layout Standard
23847 Boxes aren't numbered and can therefore not be referenced like floats or
23851 \begin_layout Standard
23852 \begin_inset Note Greyedout
23855 \begin_layout Standard
23860 Due to a bug in LyX you have to insert a protected space behind a box when
23861 you want to separate in a line the box from the following text with a space.
23869 \begin_layout Standard
23870 \begin_inset Note Greyedout
23873 \begin_layout Standard
23878 Boxes must not be the item in an
23894 \begin_layout Standard
23895 \begin_inset Note Greyedout
23898 \begin_layout Standard
23903 For an unknown reason you can only set the
23912 when you use a framed box.
23918 type and without frames are explained in section\InsetSpace ~
23920 \begin_inset LatexCommand ref
23921 reference "sec:Prevent-Hyphenation"
23933 \begin_layout Section
23935 \begin_inset LatexCommand label
23936 name "sec:Box-Dialog"
23941 \begin_inset LatexCommand index
23942 name "Boxes ! Box Dialog"
23947 \begin_inset LatexCommand index
23948 name "Boxes ! Alignment"
23955 \begin_layout Standard
23956 In the box dialog you can adjust the box geometry in the fields
23965 The available units for the geometry are explained in Table\InsetSpace ~
23967 \begin_inset LatexCommand ref
23968 reference "tab:Units"
23977 offers the following additional sizes:
23980 \begin_layout Description
23981 Depth This is the plain text
23982 \begin_inset Quotes eld
23986 \begin_inset Quotes erd
23990 It ignores the total depth when there are multiple text lines in the box:
23997 \begin_inset Box Boxed
24006 height_special "depth"
24009 \begin_layout Standard
24011 Box height set to 1\InsetSpace \thinspace{}
24024 \begin_layout Description
24025 Height This is the heigth of the text that is inside the box.
24026 A value of e.\InsetSpace \thinspace{}
24028 2 for this size will set the box heigth to 2 times the text
24030 \begin_inset Box Boxed
24039 height_special "height"
24042 \begin_layout Standard
24044 Box height set to 2\InsetSpace \thinspace{}
24053 \begin_layout Description
24055 Height This is the Height\InsetSpace \thinspace{}
24056 +\InsetSpace \thinspace{}
24058 \begin_inset Box Boxed
24067 height_special "totalheight"
24070 \begin_layout Standard
24072 Box height set to 1\InsetSpace \thinspace{}
24082 \begin_layout Description
24083 Width This set the width of the box as heigth:
24084 \begin_inset Box Boxed
24093 height_special "width"
24096 \begin_layout Standard
24098 Box height set to 1\InsetSpace \thinspace{}
24107 \begin_layout Standard
24108 \begin_inset VSpace bigskip
24111 When you have chosen an
24116 , the vertical box alignment can be:
24119 \begin_layout Description
24120 Top This is an example text line.
24122 \begin_inset Box Boxed
24131 height_special "totalheight"
24134 \begin_layout Standard
24136 This box is top-aligned.
24142 This is an example text line.
24145 \begin_layout Description
24146 Middle This is an example text line.
24148 \begin_inset Box Boxed
24157 height_special "totalheight"
24160 \begin_layout Standard
24162 This box is middle-aligned.
24168 This is an example text line.
24171 \begin_layout Description
24172 Bottom This is an example text line.
24174 \begin_inset Box Boxed
24183 height_special "totalheight"
24186 \begin_layout Standard
24188 This box is bottom-aligned.
24194 This is an example text line.
24197 \begin_layout Standard
24198 The horizontal box alignment can be set via LyX's paragraph dialog when
24199 you set the box into its own paragraph.
24202 \begin_layout Standard
24203 \begin_inset VSpace bigskip
24206 When you have chosen an
24211 , the box content can be vertical aligned to:
24214 \begin_layout Description
24215 top This is an example text line.
24217 \begin_inset Box Boxed
24226 height_special "totalheight"
24229 \begin_layout Standard
24231 This box text is top-aligned.
24237 This is an example text line.
24240 \begin_layout Description
24241 middle This is an example text line.
24243 \begin_inset Box Boxed
24252 height_special "totalheight"
24255 \begin_layout Standard
24257 This box text is middle-aligned.
24263 This is an example text line.
24266 \begin_layout Description
24267 bottom This is an example text line.
24269 \begin_inset Box Boxed
24278 height_special "totalheight"
24281 \begin_layout Standard
24283 This box text is bottom-aligned.
24289 This is an example text line.
24292 \begin_layout Description
24293 stretch This is an example text line.
24295 \begin_inset Box Boxed
24304 height_special "totalheight"
24307 \begin_layout Standard
24312 \begin_layout Standard
24317 \begin_layout Standard
24325 This is an example text line.
24328 \begin_layout Standard
24329 To stretch the box content, it must consist of more than one paragraph.
24330 In the example above every text line is in an own paragraph.
24333 \begin_layout Standard
24334 \begin_inset VSpace bigskip
24337 To align the box content horizontally you can use LyX's paragraph dialog
24338 when you have chosen an
24346 \begin_layout Standard
24348 \begin_inset Box Boxed
24357 height_special "totalheight"
24360 \begin_layout Standard
24365 \begin_layout Standard
24370 \begin_layout Standard
24380 \begin_layout Standard
24381 If you haven't set an
24386 , you can align the box content horizontally in the box dialog.
24389 \begin_layout Standard
24391 \begin_inset Box Boxed
24400 height_special "totalheight"
24403 \begin_layout Standard
24405 This box text is horizontally stretched.
24413 \begin_layout Section
24415 \begin_inset LatexCommand label
24416 name "sec:Framed-Boxes"
24421 \begin_inset LatexCommand index
24422 name "Boxes ! Frames"
24429 \begin_layout Standard
24430 The frame style of the box can be specified in the box-dialog in the drop-down
24436 The following frame types are possible:
24439 \begin_layout Description
24440 Rectangular\InsetSpace ~
24441 box This draws a rectangle frame around the box.
24442 The frame line thickness has the size of
24450 \begin_inset Box Boxed
24459 height_special "totalheight"
24462 \begin_layout Standard
24472 \begin_layout Description
24475 thin This draws an oval frame around the box.
24476 The frame line thickness has the size 0.4\InsetSpace \thinspace{}
24479 \begin_inset Box ovalbox
24488 height_special "totalheight"
24491 \begin_layout Standard
24501 \begin_layout Description
24504 thick This draws an oval frame around the box.
24505 The frame line thickness has the size 0.8\InsetSpace \thinspace{}
24508 \begin_inset Box Ovalbox
24517 height_special "totalheight"
24520 \begin_layout Standard
24530 \begin_layout Description
24531 Shadow\InsetSpace ~
24532 box This draws a rectangle frame with a shadow around the box.
24533 The frame line thickness has the size of
24539 , the shadow has a width of 4\InsetSpace \thinspace{}
24542 \begin_inset Box Shadowbox
24551 height_special "totalheight"
24554 \begin_layout Standard
24564 \begin_layout Description
24565 Double\InsetSpace ~
24566 box This draws a double-line rectangle frame around the box.
24567 The line thickness of the inner frame is 0.75\InsetSpace \thinspace{}
24574 , the thickness of the outer frame is 1.5\InsetSpace \thinspace{}
24582 The distance between the lines is 1.5\InsetSpace \thinspace{}
24589 \InsetSpace \thinspace{}
24590 +\InsetSpace \thinspace{}
24591 0.5\InsetSpace \thinspace{}
24594 \begin_inset Box Doublebox
24603 height_special "totalheight"
24606 \begin_layout Standard
24616 \begin_layout Standard
24617 \begin_inset VSpace bigskip
24620 LyX's box label will change to the used frame style when you set a frame.
24621 To be able to use the different frame styles, the LaTeX-package
24626 \begin_inset LatexCommand index
24627 name "LaTeX-packages ! fancybox"
24634 \begin_layout Standard
24635 \begin_inset VSpace bigskip
24638 The default value for the size
24644 is 0.4\InsetSpace \thinspace{}
24646 It can be changed with the following command in ERT to e.\InsetSpace \thinspace{}
24648 2\InsetSpace \thinspace{}
24652 \begin_layout Standard
24662 \begin_layout Standard
24666 \begin_layout Standard
24678 \begin_inset Box Boxed
24687 height_special "totalheight"
24690 \begin_layout Standard
24692 Rectangular box with
24698 \InsetSpace \thinspace{}
24699 =\InsetSpace \thinspace{}
24700 2\InsetSpace \thinspace{}
24710 \begin_layout Standard
24724 \begin_layout Standard
24725 \begin_inset VSpace bigskip
24728 The space between the frame and the box content is for all frame styles
24729 by default 3\InsetSpace \thinspace{}
24731 You can change it by setting the length
24738 For example the command
24741 \begin_layout Standard
24751 \begin_layout Standard
24752 sets the value to 10\InsetSpace \thinspace{}
24753 pt, like for the following box:
24756 \begin_layout Standard
24760 \begin_layout Standard
24772 \begin_inset Box Boxed
24781 height_special "totalheight"
24784 \begin_layout Standard
24786 Rectangular box with
24792 \InsetSpace \thinspace{}
24793 =\InsetSpace \thinspace{}
24794 10\InsetSpace \thinspace{}
24804 \begin_layout Standard
24818 \begin_layout Standard
24819 \begin_inset VSpace bigskip
24822 The diameter of the round corners of the oval boxes can be set with the
24833 \begin_layout Standard
24841 \begin_layout Standard
24842 sets the diameter to 1\InsetSpace \thinspace{}
24847 \begin_layout Standard
24855 \begin_layout Standard
24856 sets the diameter to
24858 num\InsetSpace \thinspace{}
24859 ×\InsetSpace \thinspace{}
24860 minimum(width and heigth of box)
24872 \begin_layout Standard
24876 \begin_layout Standard
24886 \begin_inset Box Ovalbox
24895 height_special "totalheight"
24898 \begin_layout Standard
24906 \InsetSpace \thinspace{}
24907 =\InsetSpace \thinspace{}
24908 1.5\InsetSpace \thinspace{}
24918 \begin_layout Standard
24930 \begin_layout Standard
24931 \begin_inset VSpace bigskip
24934 The size of the shadow can be adjusted by changing the length
24941 It it set to 2\InsetSpace \thinspace{}
24942 pt for the following box by this command:
24945 \begin_layout Standard
24955 \begin_layout Standard
24959 \begin_layout Standard
24971 \begin_inset Box Shadowbox
24980 height_special "totalheight"
24983 \begin_layout Standard
24991 \InsetSpace \thinspace{}
24992 =\InsetSpace \thinspace{}
24993 2\InsetSpace \thinspace{}
25003 \begin_layout Standard
25017 \begin_layout Standard
25018 \begin_inset VSpace bigskip
25021 Changed lengths and widths are valid for all boxes following the commands
25025 \begin_layout Section
25027 \begin_inset LatexCommand label
25028 name "sec:Minipages"
25033 \begin_inset LatexCommand index
25034 name "Boxes ! Minipages"
25041 \begin_layout Standard
25042 Minipages are treated by LaTeX as pages within pages and can therefore for
25043 example have their own footnotes.
25046 \begin_layout Standard
25047 Minipages are useful when you write documents with different languages.
25050 \begin_layout Standard
25051 Below are two example minipages side by side.
25052 Their width is set to 45\InsetSpace \thinspace{}
25053 col% and they are separated by a horizontal fill,
25054 that was inserted via the menu
25056 Insert\SpecialChar \menuseparator
25057 Special\InsetSpace ~
25058 Formatting\SpecialChar \menuseparator
25059 Horizontal\InsetSpace ~
25065 \begin_layout Standard
25066 \begin_inset Box Frameless
25075 height_special "totalheight"
25078 \begin_layout Standard
25081 Dies ist ein deutscher Text.
25082 Dies ist ein deutscher Text.
25083 Dies ist ein deutscher Text.
25084 Dies ist ein deutscher Text.
25085 Dies ist ein deutscher Text.
25086 Dies ist ein deutscher Text.
25087 Dies ist ein deutscher Text.
25088 Dies ist ein deutscher Text.
25089 Dies ist ein deutscher Text.
25090 Dies ist ein deutscher Text.
25091 Dies ist ein deutscher Text.
25092 Dies ist ein deutscher Text.
25093 Dies ist ein deutscher Text
25097 \begin_layout Standard
25100 Dies ist eine deutsche Fußnote.
25106 Dies ist ein deutscher Text.
25107 Dies ist ein deutscher Text.
25115 \begin_inset Box Frameless
25124 height_special "totalheight"
25127 \begin_layout Standard
25128 This is an English Text.
25129 This is an English Text.
25130 This is an English Text.
25131 This is an English Text.
25132 This is an English Text.
25133 This is an English Text.
25134 This is an English Text.
25135 This is an English Text.
25136 This is an English Text.
25137 This is an English Text.
25138 This is an English Text.
25139 This is an English Text.
25140 This is an English Text.
25141 This is an English Text.
25142 This is an English Text.
25143 This is an English Text.
25147 \begin_layout Standard
25148 This is an English footnote.
25153 This is an English Text.
25162 \begin_layout Standard
25163 \begin_inset VSpace bigskip
25166 Another application for minipages are footnotes within tables.
25167 Due to a LaTeX restriction footnotes within tables doesn't appear at the
25168 bottom of the current page.
25169 But when you put the table with the footnote to a minipage, the footnote
25170 will appear at its bottom, numbered with Latin letters.
25171 The footnote number is reset to 1 in every minipage but not outside the
25175 \begin_layout Standard
25176 The footnote of this table doesn't appear:
25177 \begin_inset Tabular
25178 <lyxtabular version="3" rows="3" columns="4">
25180 <column alignment="center" valignment="top" leftline="true" width="0pt">
25181 <column alignment="center" valignment="top" leftline="true" width="0pt">
25182 <column alignment="center" valignment="top" leftline="true" width="0pt">
25183 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25184 <row topline="true">
25185 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25188 \begin_layout Standard
25194 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25197 \begin_layout Standard
25203 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25206 \begin_layout Standard
25211 \begin_layout Standard
25212 This is a footnote within a table.
25222 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25225 \begin_layout Standard
25232 <row topline="true">
25233 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25236 \begin_layout Standard
25242 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25245 \begin_layout Standard
25251 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25254 \begin_layout Standard
25260 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25263 \begin_layout Standard
25270 <row topline="true" bottomline="true">
25271 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25274 \begin_layout Standard
25280 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25283 \begin_layout Standard
25289 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25292 \begin_layout Standard
25298 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25301 \begin_layout Standard
25315 \begin_layout Standard
25317 \begin_inset Box Frameless
25326 height_special "totalheight"
25329 \begin_layout Standard
25331 \begin_inset Tabular
25332 <lyxtabular version="3" rows="3" columns="4">
25334 <column alignment="center" valignment="top" leftline="true" width="0pt">
25335 <column alignment="center" valignment="top" leftline="true" width="0pt">
25336 <column alignment="center" valignment="top" leftline="true" width="0pt">
25337 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25338 <row topline="true">
25339 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25342 \begin_layout Standard
25348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25351 \begin_layout Standard
25357 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25360 \begin_layout Standard
25365 \begin_layout Standard
25366 This is a footnote within a table.
25376 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25379 \begin_layout Standard
25386 <row topline="true">
25387 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25390 \begin_layout Standard
25396 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25399 \begin_layout Standard
25405 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25408 \begin_layout Standard
25414 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25417 \begin_layout Standard
25424 <row topline="true" bottomline="true">
25425 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25428 \begin_layout Standard
25434 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25437 \begin_layout Standard
25443 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25446 \begin_layout Standard
25452 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25455 \begin_layout Standard
25474 \begin_layout Standard
25475 \begin_inset VSpace bigskip
25478 The document-wide paragraph settings are ignored within minipages.
25479 That means that there will be no space between paragraphs in minipages
25480 although you set it to e.\InsetSpace \thinspace{}
25486 in the document settings.
25489 \begin_layout Standard
25490 Minipages can also be used to set a background color for text parts, see
25491 section\InsetSpace ~
25493 \begin_inset LatexCommand ref
25494 reference "sub:Color-for-Paragraphs"
25501 \begin_layout Standard
25502 \begin_inset Note Greyedout
25505 \begin_layout Standard
25510 You cannot have floats or margin notes inside minipages but minipages can
25511 be used inside tables, floats, and other boxes.
25519 \begin_layout Section
25521 \begin_inset LatexCommand label
25522 name "sec:Parboxes"
25527 \begin_inset LatexCommand index
25528 name "Boxes ! Parboxes"
25535 \begin_layout Standard
25536 Parboxes are very similar to minipages with the difference that they cannot
25538 The main difference to minipages is that minipages are in contrary to parboxes
25539 no real boxes but LaTeX-environments.
25542 \begin_layout Standard
25544 \begin_inset Box Frameless
25553 height_special "totalheight"
25556 \begin_layout Standard
25557 This a text within a parbox.
25558 This a text within a parbox.
25561 \begin_layout Standard
25562 This footnote won't appear:
25566 \begin_layout Standard
25567 This footnote is inside a parbox and will therefore not appear.
25580 \begin_layout Section
25581 Boxes for Words and Characters
25582 \begin_inset LatexCommand index
25583 name "Boxes ! for Characters"
25590 \begin_layout Subsection
25591 Prevent Hyphenation
25592 \begin_inset LatexCommand label
25593 name "sec:Prevent-Hyphenation"
25598 \begin_inset LatexCommand index
25599 name "Boxes ! to Prevent Hyphenation"
25606 \begin_layout Standard
25607 You can use a special kind of boxes to prevent words or text to be hyphenated.
25610 e is an example text:
25613 \begin_layout Standard
25614 This line is an example to show how you can prevent the hyphenation of
25615 \begin_inset Quotes eld
25619 \begin_inset Quotes erd
25625 \begin_layout Standard
25626 To prevent the hyphenation of the word
25627 \begin_inset Quotes eld
25631 \begin_inset Quotes erd
25637 \begin_layout Standard
25645 \begin_layout Standard
25646 in ERT before the word.
25647 Behind the word insert a closing brace
25648 \begin_inset Quotes eld
25656 \begin_inset Quotes erd
25663 \begin_layout Standard
25675 \begin_layout Standard
25676 This is the result:
25679 \begin_layout Standard
25680 This line is an example to show how you can prevent the hyphenation of
25684 \begin_layout Standard
25694 \begin_inset Quotes eld
25698 \begin_inset Quotes erd
25705 \begin_layout Standard
25715 \begin_layout Standard
25716 You can alternatively set the command
25717 \begin_inset Quotes eld
25727 \begin_inset Quotes grd
25730 as ERT directly before the word:
25733 \begin_layout Standard
25734 This line is an example to show how you can prevent the hyphenation of
25735 \begin_inset Quotes eld
25742 \begin_layout Standard
25752 \begin_inset Quotes erd
25758 \begin_layout Standard
25759 Of course the word now protrudes over the side margin.
25760 To avoid this, add via the menu
25762 Insert\SpecialChar \menuseparator
25763 Special\InsetSpace ~
25764 Formatting\SpecialChar \menuseparator
25772 ) a line break before the word:
25775 \begin_layout Standard
25776 This line is an example to show how you can prevent the hyphenation of
25782 \begin_layout Standard
25792 \begin_inset Quotes eld
25796 \begin_inset Quotes erd
25803 \begin_layout Standard
25813 \begin_layout Subsection
25815 \begin_inset LatexCommand label
25816 name "sub:Vertical-Alignment"
25821 \begin_inset LatexCommand index
25822 name "Boxes ! for Vertical Alignment"
25827 \begin_inset LatexCommand index
25828 name "Boxes ! Raiseboxes"
25835 \begin_layout Standard
25836 With the help of the command
25842 you can align words, characters or other boxes vertically to the surrounding
25850 is used with the following scheme:
25853 \begin_layout Standard
25858 raisebox{lift}[height][depth]{box content}
25861 \begin_layout Standard
25862 The lift can be a positive value to raise the box or a negative value to
25866 \begin_layout Standard
25867 To align for example the word
25868 \begin_inset Quotes eld
25872 \begin_inset Quotes erd
25875 so that the bottom of the
25876 \begin_inset Quotes eld
25880 \begin_inset Quotes erd
25884 \begin_inset Quotes eld
25888 \begin_inset Quotes erd
25891 is at the baseline, insert the command
25894 \begin_layout Standard
25904 \begin_layout Standard
25905 in ERT before the word.
25906 Behind the word insert a closing brace
25907 \begin_inset Quotes eld
25915 \begin_inset Quotes erd
25920 This is the result:
25923 \begin_layout Standard
25924 This is a text line with the word
25928 \begin_layout Standard
25940 \begin_inset Quotes eld
25944 \begin_inset Quotes erd
25951 \begin_layout Standard
25961 \begin_layout Standard
25962 \begin_inset VSpace bigskip
25965 When you raise or lower characters in a line, the line distance will be
25969 \begin_layout Standard
25970 This is a text line with the word
25974 \begin_layout Standard
25986 \begin_inset Quotes eld
25990 \begin_inset Quotes erd
25997 \begin_layout Standard
26006 This is a text line with the word
26010 \begin_layout Standard
26020 \begin_inset Quotes eld
26024 \begin_inset Quotes erd
26031 \begin_layout Standard
26041 \begin_layout Standard
26042 If you want to prevent this for a certain reason, set the box height to
26047 \begin_layout Standard
26057 \begin_layout Standard
26058 This is a text line with the word
26062 \begin_layout Standard
26074 \begin_inset Quotes eld
26078 \begin_inset Quotes erd
26085 \begin_layout Standard
26094 This is a text line with the word
26098 \begin_layout Standard
26102 raisebox{0.5cm}[0pt]{
26108 \begin_inset Quotes eld
26112 \begin_inset Quotes erd
26119 \begin_layout Standard
26129 \begin_layout Section
26131 \begin_inset LatexCommand label
26132 name "sec:Colored-Boxes"
26137 \begin_inset LatexCommand index
26138 name "Boxes ! Color"
26145 \begin_layout Subsection
26147 \begin_inset LatexCommand index
26148 name "Color ! for Text"
26155 \begin_layout Standard
26156 To color the background of text the text must be put into a so called
26157 \begin_inset Quotes eld
26161 \begin_inset Quotes erd
26165 This requires that the LaTeX-package
26170 \begin_inset LatexCommand index
26171 name "LaTeX-packages ! color"
26175 is loaded in the document preamble with the command
26178 \begin_layout Standard
26183 @ifundef\SpecialChar \textcompwordmark{}
26190 \begin_layout Standard
26201 usepackage{color}}{}
26204 \begin_layout Standard
26209 will be loaded automatically by LyX when you color text
26213 \begin_layout Standard
26214 To avoid that it is loaded twice the command
26218 @ifundef\SpecialChar \textcompwordmark{}
26229 \begin_layout Standard
26230 \begin_inset VSpace medskip
26233 Colorboxes are created with the command
26240 This will be used with the following scheme:
26243 \begin_layout Standard
26248 colorbox{color}{box content}
26251 \begin_layout Standard
26252 The box content can also be a box and colorboxes can also be within other
26256 \begin_layout Standard
26257 The following colors are predefined:
26296 You can also define your own color as described in section\InsetSpace ~
26298 \begin_inset LatexCommand ref
26299 reference "sec:Colored-Tables"
26306 \begin_layout Standard
26307 To have e.\InsetSpace \thinspace{}
26309 a red background for a word, insert the command
26312 \begin_layout Standard
26320 \begin_layout Standard
26321 before the word in ERT.
26322 Behind the word insert a closing brace
26323 \begin_inset Quotes eld
26331 \begin_inset Quotes erd
26336 This is the result:
26339 \begin_layout Standard
26340 This is a line where the word
26344 \begin_layout Standard
26354 \begin_inset Quotes eld
26358 \begin_inset Quotes erd
26365 \begin_layout Standard
26372 has a red background.
26375 \begin_layout Standard
26376 \begin_inset VSpace bigskip
26379 If you would have the box frame in a different color, you can use the command
26386 with the following scheme:
26389 \begin_layout Standard
26394 fcolorbox{frame color}{box color}{box content}
26397 \begin_layout Standard
26411 The frame thickness and the space between the frame and the box content
26412 can be adjusted with the lengths
26424 , respectively, as described in section\InsetSpace ~
26426 \begin_inset LatexCommand ref
26427 reference "sec:Framed-Boxes"
26434 \begin_layout Standard
26435 For the following example the command
26438 \begin_layout Standard
26443 fcolorbox{cyan}{magenta}{
26446 \begin_layout Standard
26450 \begin_layout Standard
26451 Here is an example where the frame line thickness was set to 1\InsetSpace \thinspace{}
26458 \begin_layout Standard
26473 \begin_layout Standard
26477 fcolorbox{cyan}{magenta}{
26482 This is text within a colored, framed box.
26486 \begin_layout Standard
26496 \begin_layout Standard
26497 \begin_inset VSpace bigskip
26500 Of course you can also have colored text inside a colorbox:
26506 \begin_layout Standard
26510 fcolorbox{cyan}{magenta}{
26517 This is colored text within a colored, framed box.
26523 \begin_layout Standard
26534 \begin_layout Standard
26548 \begin_layout Standard
26551 \begin_inset VSpace medskip
26557 \begin_layout Standard
26558 \begin_inset Note Greyedout
26561 \begin_layout Standard
26566 Text in colorboxes cannot have line breaks.
26567 To color multiple text lines or paragraphs, use a box inside a colorbox
26568 as described in the following.
26576 \begin_layout Subsection
26577 Color for Paragraphs
26578 \begin_inset LatexCommand label
26579 name "sub:Color-for-Paragraphs"
26584 \begin_inset LatexCommand index
26585 name "Color ! for Paragraphs"
26592 \begin_layout Standard
26593 To set the background color for more than one text line, put the text into
26595 Before the minipage insert the
26604 \begin_layout Standard
26612 \begin_layout Standard
26614 Behind the minipage insert a closing brace
26615 \begin_inset Quotes eld
26623 \begin_inset Quotes erd
26629 \begin_layout Standard
26633 \begin_layout Standard
26637 colorbox{lightgrey}{
26643 \begin_inset Box Frameless
26652 height_special "totalheight"
26655 \begin_layout Standard
26656 This is text with background color.
26657 This is text with background color.
26660 \begin_layout Standard
26661 \begin_inset VSpace defskip
26664 The text can have footnotes
26668 \begin_layout Standard
26669 Another example footnote
26674 and can include tables and figures.
26677 \begin_layout Standard
26679 \begin_inset Tabular
26680 <lyxtabular version="3" rows="3" columns="3">
26682 <column alignment="center" valignment="top" leftline="true" width="0">
26683 <column alignment="center" valignment="top" leftline="true" width="0">
26684 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
26685 <row topline="true">
26686 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26689 \begin_layout Standard
26695 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26698 \begin_layout Standard
26704 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26707 \begin_layout Standard
26714 <row topline="true">
26715 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26718 \begin_layout Standard
26724 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26727 \begin_layout Standard
26729 \begin_inset Quotes erd
26737 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26740 \begin_layout Standard
26747 <row topline="true" bottomline="true">
26748 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26751 \begin_layout Standard
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" rightline="true" usebox="none">
26769 \begin_layout Standard
26789 \begin_layout Standard
26799 \begin_layout Section
26800 URLs (Uniform Resource Locators)
26801 \begin_inset LatexCommand index
26809 \begin_layout Standard
26810 Links to web pages or email addresses can be inserted via the menu
26812 Insert\SpecialChar \menuseparator
26816 The appearing URL dialog has two fields; the
26824 field for the URL description, which will be typeset as plain text immediately
26828 \begin_layout Standard
26829 Here is an example URL:
26830 \begin_inset LatexCommand url
26831 name "LyX's homepage"
26832 target "http://www.lyx.org"
26839 \begin_layout Standard
26842 Generate\InsetSpace ~
26845 in the URL dialog has only an affect when you export your document to the
26847 \begin_inset Quotes eld
26855 \begin_inset Quotes erd
26861 \begin_layout Standard
26862 You cannot change the style of the link text.
26867 field will have the default text style of the document while the text of
26872 field will have the style
26873 \begin_inset Quotes eld
26881 \begin_inset Quotes erd
26887 \begin_layout Standard
26888 When you use the LaTeX-package
26893 \begin_inset LatexCommand index
26894 name "LaTeX-packages ! hyperref"
26898 to link cross-references in the output, URLs will automatically become
26899 clickable hyperlinks in DVI and PDF-output.
26902 \begin_layout Standard
26903 \begin_inset Note Greyedout
26906 \begin_layout Standard
26911 When you use the following characters: "%", "#", "^", you have to write
26912 them with a preceding backslash, e.\InsetSpace \thinspace{}
26915 \begin_inset Quotes eld
26921 \begin_inset Quotes erd
26925 URLs must not end with a backslash.
26933 \begin_layout Standard
26934 \begin_inset VSpace bigskip
26937 To create real hyperlinks without the force to write the link location to
26938 the text, you can use the command
26941 \begin_layout Standard
26946 href{link location}{link text}
26949 \begin_layout Standard
26951 To get for example a link to LyX's web page, write the command
26954 \begin_layout Standard
26959 href{http://www.lyx.org}{
26962 \begin_layout Standard
26964 Insert after the command the link text
26965 \begin_inset Quotes eld
26969 \begin_inset Quotes erd
26972 as normal text followed by a closing brace
26973 \begin_inset Quotes eld
26981 \begin_inset Quotes erd
26985 This is the result:
26989 \begin_layout Standard
26993 href{http://www.lyx.org}{
27002 \begin_layout Standard
27012 \begin_layout Standard
27013 To link to email addresses, add the prefix
27014 \begin_inset Quotes eld
27022 \begin_inset Quotes erd
27025 to the link location:
27031 \begin_layout Standard
27035 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's documentation}{
27040 lyx-docs mailing list
27044 \begin_layout Standard
27054 \begin_layout Standard
27061 instead of LyX's URL box has the advantage that you can specify the text
27062 style of the link text like for all other text parts.
27063 You can then set hyphenation points and forced linebreaks to have long
27064 link text broken at the page margin.
27065 You are furthermore able to change the text style for all URLs in your
27066 document with an option in
27070 's load command and the restrictions mentioned above doesn't apply for
27079 \begin_layout Chapter
27081 \begin_inset LatexCommand index
27082 name "External Stuff"
27089 \begin_layout Standard
27092 Insert\SpecialChar \menuseparator
27095 you can insert external material to your document.
27099 \begin_layout Description
27101 Document Another LyX document; its content is directly inserted to your
27105 \begin_layout Description
27107 Text A text document; every of its text lines is inserted to your document
27111 \begin_layout Description
27115 Lines A text document; its text lines are inserted as they
27117 Empty text lines creates a new paragraph in your document.
27120 \begin_layout Description
27121 External\InsetSpace ~
27122 Material Files in various formats.
27125 \begin_layout Description
27127 Document LyX or LaTeX-documents.
27130 \begin_layout Section
27132 \begin_inset LatexCommand index
27133 name "External Stuff ! External Material"
27140 \begin_layout Standard
27141 The external material feature allows you to insert files to your document
27142 without converting them previously to a format that can be read by the
27143 document output format because LyX takes care of needed conversions.
27144 This is similar to images that can be inserted in various image formats
27148 \begin_layout Standard
27149 External material can be inserted via the
27153 dialog that is accessible with the menu
27155 Insert\SpecialChar \menuseparator
27156 File\SpecialChar \menuseparator
27157 External\InsetSpace ~
27161 Currently the following file types (
27168 \begin_layout Description
27169 ChessDiagram This template supports chess position diagrams made with the
27174 \begin_layout Standard
27178 href{http://en.wikipedia.org/wiki/XBoard}{
27191 \begin_layout Standard
27201 \begin_layout Description
27202 Date This inserts the date in the form
27207 This is a date inserted as external material:
27208 \begin_inset External
27216 The date is not shown within LyX, only in the output.
27217 There are two other methods of inserting a date: Via menu
27219 Insert\SpecialChar \menuseparator
27222 and with the LaTeX command
27229 The different methods are compared in Table\InsetSpace ~
27231 \begin_inset LatexCommand ref
27232 reference "tab:Comparison-of-the"
27239 \begin_layout Description
27240 LilyPond This template is used for music notation typeset with the program
27244 \begin_layout Standard
27257 \begin_layout Standard
27261 href{http://en.wikipedia.org/wiki/LilyPond}{
27274 \begin_layout Standard
27282 \begin_inset Note Note
27285 \begin_layout Standard
27292 breaks the line while the remaining text in the line is stretched to the
27301 \begin_layout Description
27302 RasterImage This can be used for bitmap images.
27303 Nearly all popular image formats are supported.
27304 The image can be treated in the
27308 dialog like the images that are usually included via the
27312 dialog as described in section\InsetSpace ~
27314 \begin_inset LatexCommand ref
27315 reference "sec:Graphics-Dialog"
27320 The difference is that only raster images are allowed, that means that
27321 PDF and EPS-images are not supported.
27324 \begin_layout Description
27325 XFig This template supports images created with the program
27329 \begin_layout Standard
27333 href{http://en.wikipedia.org/wiki/Xfig}{
27346 \begin_layout Standard
27356 \begin_layout Standard
27357 \begin_inset Float table
27363 \begin_layout Standard
27364 \begin_inset Caption
27366 \begin_layout Standard
27367 \begin_inset LatexCommand label
27368 name "tab:Comparison-of-the"
27372 Comparison of the date input methods.
27380 \begin_layout Standard
27382 \begin_inset Tabular
27383 <lyxtabular version="3" rows="4" columns="4">
27385 <column alignment="center" valignment="top" leftline="true" width="0">
27386 <column alignment="center" valignment="top" leftline="true" width="0">
27387 <column alignment="center" valignment="top" leftline="true" width="0">
27388 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27389 <row topline="true">
27390 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27393 \begin_layout Standard
27399 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27402 \begin_layout Standard
27405 External Material\SpecialChar \menuseparator
27411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27414 \begin_layout Standard
27417 Insert\SpecialChar \menuseparator
27423 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27426 \begin_layout Standard
27437 <row topline="true">
27438 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27441 \begin_layout Standard
27447 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27450 \begin_layout Standard
27456 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27459 \begin_layout Standard
27465 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27468 \begin_layout Standard
27475 <row topline="true">
27476 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27479 \begin_layout Standard
27485 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27488 \begin_layout Standard
27494 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27497 \begin_layout Standard
27503 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27506 \begin_layout Standard
27513 <row topline="true" bottomline="true">
27514 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27517 \begin_layout Standard
27523 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27526 \begin_layout Standard
27532 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27535 \begin_layout Standard
27541 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27544 \begin_layout Standard
27563 \begin_layout Standard
27564 When you use the option
27576 dialog, only the path to the inserted file is shown in the output.
27579 material is displayed in LyX either as box like this:
27580 \begin_inset Graphics
27581 filename clipart/ExternalMaterialQt4.png
27583 scaleBeforeRotation
27587 or as image, depending on the setting in the
27599 \begin_layout Standard
27606 manual explains how you can define your own templates.
27609 \begin_layout Section
27611 \begin_inset LatexCommand label
27612 name "sec:Child-Documents"
27617 \begin_inset LatexCommand index
27618 name "External Stuff ! Child Documents"
27623 \begin_inset LatexCommand index
27624 name "Files ! Include"
27631 \begin_layout Standard
27632 Child documents are used when you have a long document consisting of several
27633 larger parts or sections.
27634 For maintenance it is often useful and sometimes even required to split
27635 the document in several files that can be revised separately.
27636 The different documents are then the so called child documents and a master
27637 document connects them to print the full document or parts of it.
27640 \begin_layout Standard
27641 Included documents are displayed in LyX as a box like this:
27642 \begin_inset Graphics
27643 filename clipart/ChildDocumentQt4.png
27645 scaleBeforeRotation
27649 To include child documents to a master document use the menu
27651 Insert\SpecialChar \menuseparator
27652 File\SpecialChar \menuseparator
27657 A dialog pops up where you can choose between four include methods:
27660 \begin_layout Description
27661 Include You can include LyX and LaTeX-documents.
27670 dialog, the included documents will be opened in LyX in a new file tab
27671 so that you can modify it.
27676 \begin_layout Standard
27677 Here is a child document inserted using
27682 \begin_inset Include \include{DummyDocument1.lyx}
27690 \begin_layout Standard
27691 The section numbering includes the sections of the included files in the
27692 order they are inserted in the master document.
27693 The included example document has for example a subsection that is numbered
27694 as subsection of this section.
27695 Labels of included documents can be referenced: Subsection\InsetSpace ~
27697 \begin_inset LatexCommand ref
27698 reference "sub:External-Subsection-1"
27705 \begin_layout Standard
27706 The preamble of the child document is ignored, only the preamble of the
27707 master document is used.
27708 Included documents are inserted starting on a new page and end with a pagebreak.
27711 \begin_layout Standard
27712 With the LaTeX-command
27718 you can specify which included child documents are processed when the output
27720 This is useful when you are perhaps only working on a certain chapter of
27721 your large document as this saves compiling time.
27728 is inserted to the master document preamble.
27729 It takes a comma-separated list of the filenames as argument, e.g.
27732 \begin_layout Standard
27737 includeonly{chapter1,chapter5}
27740 \begin_layout Standard
27741 will only process the included files named
27742 \begin_inset Quotes eld
27746 \begin_inset Quotes erd
27750 \begin_inset Quotes eld
27754 \begin_inset Quotes erd
27758 \begin_inset Quotes eld
27762 \begin_inset Quotes erd
27768 \begin_layout Standard
27769 \begin_inset Note Greyedout
27772 \begin_layout Standard
27777 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
27778 w the document in case that the child document uses another document class
27779 than the master document as this will lead to unexpected outputs.
27787 \begin_layout Description
27788 Input This method is very similar to the Include method.
27789 The differences are:
27793 \begin_layout Itemize
27794 Input files don't start with a new page and don't end with a pagebreak.
27797 \begin_layout Itemize
27798 Input files can be previewed in LyX when
27800 Instant\InsetSpace ~
27803 is enabled in LyX's preferences under
27807 feel\SpecialChar \menuseparator
27813 \begin_layout Itemize
27824 \begin_layout Standard
27825 Here is a child document inserted using
27830 \begin_inset Include \input{DummyDocument2.lyx}
27838 \begin_layout Description
27839 Verbatim With this method every text file can be included.
27840 The file is shown in the output with its source code, no command used in
27841 the text is invoked.
27842 You can use the option
27844 Mark spaces in output
27846 that displays the character
27847 \begin_inset Quotes eld
27854 \begin_layout Standard
27864 \begin_inset Quotes erd
27867 for every space character in the source code.
27868 The difference to the method via the menu
27870 Insert\SpecialChar \menuseparator
27871 File\SpecialChar \menuseparator
27875 is that the document content is not shown in LyX.
27878 \begin_layout Standard
27879 Here is a child document inserted as Verbatim:
27880 \begin_inset Include \verbatiminput{DummyTextDocument.txt}
27886 \begin_inset VSpace bigskip
27889 Here is a child document inserted as Verbatim using the
27891 Mark spaces in output
27894 \begin_inset Include \verbatiminput*{DummyTextDocument.txt}
27902 \begin_layout Standard
27903 \begin_inset VSpace bigskip
27909 \begin_layout Standard
27910 \begin_inset Note Greyedout
27913 \begin_layout Standard
27918 As you can see in the examples above, the text of the documents included
27923 is not broken at the end of the document lines.
27931 \begin_layout Description
27932 Listings This type is described in chapter\InsetSpace ~
27934 \begin_inset LatexCommand ref
27935 reference "cha:Program-Code-Listings"
27942 \begin_layout Standard
27943 \begin_inset Note Greyedout
27946 \begin_layout Standard
27951 Including the same document twice in a document using different methods
27952 could cause LaTeX-problems.
27960 \begin_layout Chapter
27961 Program Code Listings
27962 \begin_inset LatexCommand label
27963 name "cha:Program-Code-Listings"
27968 \begin_inset LatexCommand index
27974 \begin_inset LatexCommand index
27975 name "Program Code"
27980 \begin_inset LatexCommand index
27981 name "Floats ! Listings"
27988 \begin_layout Standard
27989 To include and typeset program code you can use the
27993 inset that can be inserted via the menu
27995 Insert\SpecialChar \menuseparator
28004 \begin_inset LatexCommand index
28005 name "LaTeX-packages ! listings"
28009 provides a powerful and flexible way to insert program source code to your
28013 \begin_layout Standard
28014 When right-clicking on a listings inset a dialog pops up where you can set
28015 the listings format.
28018 \begin_layout Standard
28019 By default, a listing starts a new paragraph in the output.
28020 The placement option
28022 Inline\InsetSpace ~
28025 prints the listing inline like this:
28026 \begin_inset listings
28027 lstparams "language={C++}"
28031 \begin_layout Standard
28044 creates a listings float where you can specify the placement options
28045 \begin_inset Quotes eld
28053 \begin_inset Quotes erd
28057 \begin_inset Quotes eld
28065 \begin_inset Quotes erd
28069 \begin_inset Quotes eld
28077 \begin_inset Quotes erd
28081 \begin_inset Quotes eld
28089 \begin_inset Quotes erd
28092 corresponding to the float placement options described in section\InsetSpace ~
28094 \begin_inset LatexCommand ref
28095 reference "sec:Float-Placement"
28100 The placement options can be mixed and are inserted without any separation,
28101 e.\InsetSpace \thinspace{}
28104 \begin_inset Quotes eld
28112 \begin_inset Quotes erd
28117 \begin_inset Quotes eld
28121 \begin_inset Quotes erd
28124 has sometimes no effect, but you don't need to use the
28128 option in this case as also non-float listings can have captions and be
28132 \begin_layout Standard
28133 You can add captions to listings with the menu
28135 Insert\SpecialChar \menuseparator
28139 Listings can be referenced like floats: Listing\InsetSpace ~
28141 \begin_inset LatexCommand ref
28142 reference "lst:Example-Listing"
28149 \begin_layout Standard
28150 \begin_inset listings
28151 lstparams "language=Python"
28155 \begin_layout Standard
28157 \begin_inset Caption
28159 \begin_layout Standard
28160 \begin_inset LatexCommand label
28161 name "lst:Example-Listing"
28165 Example Listing float
28170 # Example listing float
28173 \begin_layout Standard
28178 \begin_layout Standard
28180 'this is a python function'
28183 \begin_layout Standard
28193 \begin_layout Standard
28194 When you have set a programming language in the listings dialog, the keywords
28195 of this language will be recognized and specially typeset in the output.
28196 In the example listings the Python keyword
28197 \begin_inset Quotes eld
28201 \begin_inset Quotes erd
28204 is recognized and printed bold in the output.
28207 \begin_layout Standard
28213 of the listings dialog you can specify the line numbering style.
28214 You can insert a number to specify which lines are numbered to the field
28220 When you insert e.g.
28222 \begin_inset Quotes eld
28226 \begin_inset Quotes erd
28229 , only every 3rd line will be numbered.
28232 \begin_layout Standard
28233 You can furthermore specify a range of lines, only these will then appear
28237 Extended\InsetSpace ~
28240 should be used when you use national characters like the German umlauts
28243 Here is an example listing with left line numbering, step
28245 \begin_inset Quotes eld
28249 \begin_inset Quotes erd
28253 \begin_inset Quotes eld
28257 \begin_inset Quotes erd
28261 \begin_inset Quotes eld
28264 Extended\InsetSpace ~
28266 \begin_inset Quotes erd
28270 \begin_inset Quotes eld
28276 \begin_inset Quotes erd
28279 , range lines 3\InsetSpace \thinspace{}
28280 -\InsetSpace \thinspace{}
28284 \begin_layout Standard
28285 \begin_inset listings
28286 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
28290 \begin_layout Standard
28295 \begin_layout Standard
28297 'this is a python function'
28300 \begin_layout Standard
28305 \begin_layout Standard
28310 \begin_layout Standard
28312 'This is a German word: Tschüß'
28315 \begin_layout Standard
28320 \begin_layout Standard
28325 \begin_layout Standard
28327 'this is a python function'
28330 \begin_layout Standard
28340 \begin_layout Standard
28341 \begin_inset Note Greyedout
28344 \begin_layout Standard
28349 The line numbering is shifted by a line by every previous listing.
28350 That's the reason why the lines 2 and 5 are numbered in the above listing
28351 and not the lines 3 and 6.
28359 \begin_layout Standard
28360 \begin_inset VSpace bigskip
28366 \begin_layout Standard
28367 It is also possible to print lines from a file as listing.
28368 To do this, use the menu
28370 Insert\SpecialChar \menuseparator
28371 File\SpecialChar \menuseparator
28374 and choose the type
28382 \begin_layout Standard
28383 The other child document types are described in section\InsetSpace ~
28385 \begin_inset LatexCommand ref
28386 reference "sec:Child-Documents"
28395 In the child document dialog you can specify the listing parameters in
28397 To show a list of all available parameters, type in a question mark
28398 \begin_inset Quotes eld
28402 \begin_inset Quotes erd
28408 \begin_layout Standard
28409 To reference child document listings, write a label text into the corresponding
28410 field of the child document dialog.
28411 The label can then be referenced using the menu
28413 Insert\SpecialChar \menuseparator
28419 \begin_layout Standard
28420 Listing\InsetSpace ~
28422 \begin_inset LatexCommand ref
28423 reference "lst:file-listing"
28427 is an example for a listing of a file; there the lines 10\InsetSpace \thinspace{}
28428 -\InsetSpace \thinspace{}
28433 \begin_layout Standard
28434 \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]
28442 \begin_layout Standard
28443 \begin_inset VSpace bigskip
28449 \begin_layout Standard
28450 Global listings settings can be set in the
28452 Document\SpecialChar \menuseparator
28453 Settings\SpecialChar \menuseparator
28457 To get there a list of available options, type in a question mark
28458 \begin_inset Quotes eld
28462 \begin_inset Quotes erd
28467 Listings\InsetSpace ~
28473 \begin_layout Standard
28474 For more information about the
28478 package, we refer to its documentation
28479 \begin_inset LatexCommand cite
28487 \begin_layout Standard
28493 \begin_layout Chapter
28499 \begin_layout Standard
28512 \begin_layout Standard
28520 \begin_inset LatexCommand index
28526 \begin_inset LatexCommand label
28527 name "cha:Units-available-in"
28532 \begin_inset Note Note
28535 \begin_layout Standard
28538 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
28539 are displayed wrongly in PDF-bookmarks.
28540 For more information about this, have a look at
28541 \begin_inset LatexCommand cite
28554 \begin_layout Standard
28555 To understand the units described in this documentation, Table\InsetSpace ~
28557 \begin_inset LatexCommand ref
28558 reference "tab:Units"
28562 explains all units available in LyX.
28565 \begin_layout Standard
28566 \begin_inset Float table
28572 \begin_layout Standard
28573 \begin_inset Caption
28575 \begin_layout Standard
28576 \begin_inset LatexCommand label
28589 \begin_layout Standard
28590 \begin_inset VSpace medskip
28596 \begin_layout Standard
28598 \begin_inset Tabular
28599 <lyxtabular version="3" rows="20" columns="2">
28601 <column alignment="center" valignment="top" leftline="true" width="0">
28602 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
28603 <row topline="true" bottomline="true">
28604 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28607 \begin_layout Standard
28613 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28616 \begin_layout Standard
28623 <row topline="true">
28624 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28627 \begin_layout Standard
28633 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28636 \begin_layout Standard
28643 <row topline="true">
28644 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28647 \begin_layout Standard
28653 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28656 \begin_layout Standard
28663 <row topline="true">
28664 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28667 \begin_layout Standard
28673 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28676 \begin_layout Standard
28683 <row topline="true">
28684 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28687 \begin_layout Standard
28693 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28696 \begin_layout Standard
28697 point (72.27\InsetSpace \thinspace{}
28698 pt = 1\InsetSpace \thinspace{}
28705 <row topline="true">
28706 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28709 \begin_layout Standard
28715 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28718 \begin_layout Standard
28719 pica (1\InsetSpace \thinspace{}
28720 pc = 12\InsetSpace \thinspace{}
28727 <row topline="true">
28728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28731 \begin_layout Standard
28737 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28740 \begin_layout Standard
28741 scaled point (65536\InsetSpace \thinspace{}
28742 sp = 1\InsetSpace \thinspace{}
28749 <row topline="true">
28750 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28753 \begin_layout Standard
28759 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28762 \begin_layout Standard
28763 big point (72\InsetSpace \thinspace{}
28764 bp = 1\InsetSpace \thinspace{}
28771 <row topline="true">
28772 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28775 \begin_layout Standard
28781 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28784 \begin_layout Standard
28785 didot (1\InsetSpace \thinspace{}
28787 \begin_inset Formula $\approx$
28790 0.376\InsetSpace \thinspace{}
28797 <row topline="true">
28798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28801 \begin_layout Standard
28807 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28810 \begin_layout Standard
28811 cicero (1\InsetSpace \thinspace{}
28812 cc = 12\InsetSpace \thinspace{}
28819 <row topline="true">
28820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28823 \begin_layout Standard
28829 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28832 \begin_layout Standard
28833 % of original image width
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
28859 <row topline="true">
28860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28863 \begin_layout Standard
28869 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28872 \begin_layout Standard
28879 <row topline="true">
28880 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28883 \begin_layout Standard
28889 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28892 \begin_layout Standard
28899 <row topline="true">
28900 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28903 \begin_layout Standard
28909 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28912 \begin_layout Standard
28919 <row topline="true">
28920 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28923 \begin_layout Standard
28929 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28932 \begin_layout Standard
28939 <row topline="true">
28940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28943 \begin_layout Standard
28949 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28952 \begin_layout Standard
28959 <row topline="true">
28960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28963 \begin_layout Standard
28969 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28972 \begin_layout Standard
28983 <row topline="true">
28984 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28987 \begin_layout Standard
28993 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28996 \begin_layout Standard
29007 <row topline="true" bottomline="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
29021 math unit (1\InsetSpace \thinspace{}
29022 mu = 1/18\InsetSpace \thinspace{}
29041 \begin_layout Chapter
29042 Output File Formats with Graphics
29043 \begin_inset LatexCommand label
29044 name "cha:Output-File-Formats"
29051 \begin_layout Section
29053 \begin_inset LatexCommand index
29054 name "File Formats ! DVI"
29059 \begin_inset LatexCommand index
29060 name "DVI|see{File Formats}"
29067 \begin_layout Standard
29068 This file type has the extension
29069 \begin_inset Quotes eld
29077 \begin_inset Quotes erd
29082 \begin_inset Quotes eld
29086 \begin_inset Quotes erd
29089 (DVI), because it is completely portable; you can move them from one machine
29090 to another without needing to do any sort of conversion.
29091 At the time when this file-format was developed, this was no matter of
29093 DVIs are used for quick previews and as pre-stage for other output formats,
29097 \begin_layout Standard
29098 \begin_inset Note Greyedout
29101 \begin_layout Standard
29106 DVI-files doesn't contain images, they will only be a linked.
29111 So don't forget this, if you move your
29115 file to another computer.
29116 This property can also slow down your computer when you view the DVI.
29117 Because the DVI-viewer has to convert the image in the background to make
29118 it visible when you scroll in the DVI.
29119 So we recommend to use PDF for files with many images.
29122 \begin_layout Standard
29123 You can export your document to DVI by using the menu
29125 File\SpecialChar \menuseparator
29126 Export\SpecialChar \menuseparator
29130 You can view your document as DVI via the
29134 menu or by using the toolbar button
29135 \begin_inset Graphics
29136 filename ../images/buffer-view_dvi.xpm
29138 scaleBeforeRotation
29145 \begin_layout Section
29147 \begin_inset LatexCommand label
29148 name "sec:PostScript"
29153 \begin_inset LatexCommand index
29154 name "File Formats ! PostScript"
29159 \begin_inset LatexCommand index
29160 name "PostScript|see{File Formats}"
29167 \begin_layout Standard
29168 This file type has the extension
29169 \begin_inset Quotes eld
29177 \begin_inset Quotes erd
29181 PostScript was developed by the company
29185 as printer language.
29186 The file contains therefore commands that the printer uses to print the
29188 PostScript can be seen as
29189 \begin_inset Quotes eld
29192 programming language
29193 \begin_inset Quotes erd
29196 ; you can calculate with it and draw diagrams and images
29200 \begin_layout Standard
29201 If you are interested to learn more about this, have a look at the LaTeX-package
29207 \begin_inset LatexCommand cite
29218 Due to this ability, the files are often bigger than PDFs.
29221 \begin_layout Standard
29222 PostScript can only contain images in the format
29223 \begin_inset Quotes eld
29226 Encapsulated PostScript
29227 \begin_inset Quotes erd
29230 (EPS, file extension
29231 \begin_inset Quotes eld
29239 \begin_inset Quotes erd
29243 As LyX allows you to use any known image format in your document, it has
29244 to convert images in the background to EPS.
29245 If you have e.g 50 images in your document, LyX has to do 50 conversions
29246 whenever you view or export your document.
29247 This will slow down your work flow with LyX drastically.
29248 So if you plan to use PostScript, you can insert your images directly as
29249 EPS to avoid this problem.
29252 \begin_layout Standard
29253 You can export your document to PostScript using the menu
29255 File\SpecialChar \menuseparator
29256 Export\SpecialChar \menuseparator
29260 You can view your document as PostScript via the
29264 menu or by using the toolbar button
29265 \begin_inset Graphics
29266 filename ../images/buffer-view_ps.xpm
29268 scaleBeforeRotation
29275 \begin_layout Section
29277 \begin_inset LatexCommand label
29283 \begin_inset LatexCommand index
29284 name "File Formats ! PDF"
29289 \begin_inset LatexCommand index
29297 \begin_layout Standard
29298 This file type has the extension
29299 \begin_inset Quotes eld
29307 \begin_inset Quotes erd
29312 \begin_inset Quotes eld
29315 Portable Document Format
29316 \begin_inset Quotes erd
29319 (PDF) is developed by
29323 as derivative from PostScript.
29324 It is more compressed and it uses much less commands than PostScript.
29326 \begin_inset Quotes eld
29330 \begin_inset Quotes erd
29333 implies, it can be processed at any computer system and the printed output
29334 looks exactly the same.
29337 \begin_layout Standard
29338 PDF can contain images in its own PDF format, in the format
29339 \begin_inset Quotes eld
29342 Joint Photographic Experts Group
29343 \begin_inset Quotes erd
29346 (JPG, file extension
29347 \begin_inset Quotes eld
29355 \begin_inset Quotes erd
29359 \begin_inset Quotes eld
29367 \begin_inset Quotes erd
29370 ), and in the format
29371 \begin_inset Quotes eld
29374 Portable Network Graphics
29375 \begin_inset Quotes erd
29378 (PNG, file extension
29379 \begin_inset Quotes eld
29387 \begin_inset Quotes erd
29391 Nevertheless you can use any other image format, because LyX converts them
29392 in the background to one of these formats.
29393 But as described in the section about PostScript, the image conversion
29394 will slow down your work flow.
29395 So it is recommended to use images in one of the three mentioned formats.
29398 \begin_layout Standard
29399 You can export your document to PDF via the menu
29401 File\SpecialChar \menuseparator
29404 in three different ways:
29407 \begin_layout Description
29409 (ps2pdf) This uses the program
29413 that creates a PDF from a PostScript-version of your file.
29414 The PostScript-version is produced by the program
29418 which uses a DVI-version as intermediate step.
29419 So this export variant consist of three conversions.
29422 \begin_layout Description
29424 (dvipdfm) This uses the program
29428 that converts your file in the background to DVI and in a second step to
29432 \begin_layout Description
29434 (pdflatex) This uses the program
29438 that converts your file directly to PDF.
29441 \begin_layout Standard
29442 It is recommended to use
29451 supports all features of actual PDF-versions, is quick and works stable
29457 is not under development and therefore a bit outdated.
29460 \begin_layout Standard
29461 You can view your document as PDF via the
29465 menu or by using the toolbar button
29466 \begin_inset Graphics
29467 filename ../images/buffer-view_pdf2.xpm
29469 scaleBeforeRotation
29485 \begin_layout Chapter
29486 Explanation of Equation\InsetSpace ~
29488 \begin_inset LatexCommand eqref
29494 \begin_inset LatexCommand label
29495 name "cha:Explanation-of-Equation"
29502 \begin_layout Standard
29508 \begin_inset Formula $W_{\mathrm{tot\, n}}$
29511 can be calculated to
29514 \begin_layout Standard
29515 \begin_inset Formula \begin{equation}
29516 W_{\mathrm{tot}\, n}=n·(W_{g\, n}+2·\backslash\mbox{tabcolsep})+(n+1)·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}\end{equation}
29523 \begin_layout Standard
29525 \begin_inset Formula $W_{g\, n}$
29528 is the given width of all cells.
29535 is the LaTeX-length between the cell text and the cell border, its default
29536 value is 6\InsetSpace \thinspace{}
29544 is the thickness of the cell border line, the default is 0.4\InsetSpace \thinspace{}
29548 \begin_layout Standard
29549 Following equation\InsetSpace ~
29551 \begin_inset LatexCommand eqref
29552 reference "eq:Wtot_n"
29556 , the total width of a multicolumn
29557 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
29563 \begin_layout Standard
29564 \begin_inset Formula \begin{equation}
29565 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2·\backslash\mbox{tabcolsep}+2·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
29572 \begin_layout Standard
29573 By setting equation\InsetSpace ~
29575 \begin_inset LatexCommand eqref
29576 reference "eq:Wtot_n"
29581 \begin_inset LatexCommand eqref
29582 reference "eq:Wtot_mult"
29586 equal we can calculate the needed given width
29587 \begin_inset Formula $W_{g\, n}$
29594 columns are spanned, so that each column has a total width of
29595 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
29601 \begin_layout Standard
29602 \begin_inset Formula \begin{equation}
29603 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)·(2·\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
29610 \begin_layout Bibliography
29611 \begin_inset LatexCommand bibitem
29612 key "latexcompanion"
29616 Frank Mittelbach and Michel Goossens:
29618 The LaTeX Companion Second Edition.
29621 Addison-Wesley, 2004
29624 \begin_layout Bibliography
29625 \begin_inset LatexCommand bibitem
29630 Helmut Kopka and Patrick W.
29633 A Guide to LaTeX Fourth Edition.
29636 Addison-Wesley, 2003
29639 \begin_layout Bibliography
29640 \begin_inset LatexCommand bibitem
29647 LaTeX: A Document Preparation System.
29650 Addison-Wesley, second edition, 1994
29653 \begin_layout Bibliography
29654 \begin_inset LatexCommand bibitem
29663 \begin_layout Standard
29667 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf}
29677 \begin_layout Standard
29684 of the LaTeX-package
29689 \begin_inset LatexCommand index
29690 name "LaTeX-packages ! booktabs"
29697 \begin_layout Bibliography
29698 \begin_inset LatexCommand bibitem
29707 \begin_layout Standard
29711 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf}{
29720 \begin_layout Standard
29727 of the LaTeX-package
29732 \begin_inset LatexCommand index
29733 name "LaTeX-packages ! caption"
29740 \begin_layout Bibliography
29741 \begin_inset LatexCommand bibitem
29750 \begin_layout Standard
29754 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/anleitung.pdf}
29764 \begin_layout Standard
29771 of the LaTeX-package
29776 \begin_layout Bibliography
29777 \begin_inset LatexCommand bibitem
29786 \begin_layout Standard
29790 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf}
29800 \begin_layout Standard
29807 of the LaTeX-package
29809 endf\SpecialChar \textcompwordmark{}
29813 \begin_inset LatexCommand index
29814 name "LaTeX-packages ! endfloat"
29821 \begin_layout Bibliography
29822 \begin_inset LatexCommand bibitem
29831 \begin_layout Standard
29835 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/floatflt/floatflt.pdf}
29845 \begin_layout Standard
29852 of the LaTeX-package
29854 f\SpecialChar \textcompwordmark{}
29855 loatf\SpecialChar \textcompwordmark{}
29859 \begin_inset LatexCommand index
29860 name "LaTeX-packages ! floatflt"
29867 \begin_layout Bibliography
29868 \begin_inset LatexCommand bibitem
29877 \begin_layout Standard
29881 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf}
29891 \begin_layout Standard
29898 of the LaTeX-package
29903 \begin_inset LatexCommand index
29904 name "LaTeX-packages ! footmisc"
29911 \begin_layout Bibliography
29912 \begin_inset LatexCommand bibitem
29921 \begin_layout Standard
29925 href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf}{
29934 \begin_layout Standard
29941 of the LaTeX-package
29946 \begin_inset LatexCommand index
29947 name "LaTeX-packages ! hyperref"
29954 \begin_layout Bibliography
29955 \begin_inset LatexCommand bibitem
29964 \begin_layout Standard
29968 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf}
29978 \begin_layout Standard
29985 of the LaTeX-package
29990 \begin_inset LatexCommand index
29991 name "LaTeX-packages ! hyperref"
29998 \begin_layout Bibliography
29999 \begin_inset LatexCommand bibitem
30008 \begin_layout Standard
30012 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.p
30022 \begin_layout Standard
30029 of the LaTeX-package
30034 \begin_inset LatexCommand index
30035 name "LaTeX-packages ! koma-script"
30042 \begin_layout Bibliography
30043 \begin_inset LatexCommand bibitem
30044 key "koma-script-de"
30052 \begin_layout Standard
30056 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguide.p
30066 \begin_layout Standard
30073 of the LaTeX-package
30078 \begin_inset LatexCommand index
30079 name "LaTeX-packages ! koma-script"
30086 \begin_layout Bibliography
30087 \begin_inset LatexCommand bibitem
30096 \begin_layout Standard
30100 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf}
30110 \begin_layout Standard
30117 of the LaTeX-package
30122 \begin_inset LatexCommand index
30123 name "LaTeX-packages ! listings"
30130 \begin_layout Bibliography
30131 \begin_inset LatexCommand bibitem
30140 \begin_layout Standard
30144 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.
30154 \begin_layout Standard
30161 of the LaTeX-package
30166 \begin_inset LatexCommand index
30167 name "LaTeX-packages ! marginnote"
30174 \begin_layout Bibliography
30175 \begin_inset LatexCommand bibitem
30184 \begin_layout Standard
30188 href{http://tug.org/PSTricks/main.cgi/}{
30197 \begin_layout Standard
30204 of the LaTeX-package
30209 \begin_inset LatexCommand index
30210 name "LaTeX-packages ! PSTricks"
30217 \begin_layout Bibliography
30218 \begin_inset LatexCommand bibitem
30227 \begin_layout Standard
30231 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf}{
30240 \begin_layout Standard
30247 of the LaTeX-package
30252 \begin_inset LatexCommand index
30253 name "LaTeX-packages ! sidecap"
30260 \begin_layout Bibliography
30261 \begin_inset LatexCommand bibitem
30270 \begin_layout Standard
30274 href{http://wiki.lyx.org/LyX/NewInLyX15}{
30283 \begin_layout Standard
30290 about new LyX-features planned for the release
30297 \begin_layout Standard
30298 \begin_inset LatexCommand printindex
30305 \begin_layout Standard
30306 \begin_inset FloatList figure
30313 \begin_layout Standard
30314 \begin_inset FloatList table