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 \@ifundefined{extrarowheight}
111 {\usepackage{array}}{}
112 \setlength{\extrarowheight}{2pt}
114 % used for customized tables
117 {>{\centering\hspace{0pt}}m{#1}}
120 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
123 {>{\columncolor{#1}\hspace{0pt}}c}
125 \newcolumntype{V}{!{\vrule width 1.5pt}}
127 \newcolumntype{W}{!{\color{green}\vline}}
130 % insert additional vertical space of
131 % 1.5 mm between footnotes
133 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
135 % enable algorithm floats to be referenced
136 \newfloat{Xalgorithm}{tbp}{loa}
137 \floatname{Xalgorithm}{Algorithm}
138 \newcommand{\theHalgorithm}{\theHXalgorithm}
139 \renewenvironment{algorithm}[1][tbp]
140 {\begin{Xalgorithm}[#1]}{\end{Xalgorithm}}
142 % number algorithm floats within chapters
143 \numberwithin{Xalgorithm}{chapter}
145 % redefine the greyed out note
146 \renewenvironment{lyxgreyedout}
147 {\textcolor{blue}\bgroup}{\egroup}
149 % ------------------------------------
150 % used to check for needed LaTeX packages
153 % check for package arydshln
154 % used for tables with dashed lines
155 \newboolean{arydshln}
156 \IfFileExists{arydshln.sty}
157 {\usepackage{arydshln}
158 \setboolean{arydshln}{true}}
159 {\setboolean{arydshln}{false}}
161 % check for package marginnote
162 % used for margin notes
163 \newboolean{marginnote}
164 \IfFileExists{marginnote.sty}
165 {\usepackage{marginnote}
166 \let\marginpar\marginnote
167 \setboolean{marginnote}{true}}
168 {\setboolean{marginnote}{false}}
170 \options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
175 \font_typewriter default
176 \font_default_family default
190 \paperorientation portrait
193 \paragraph_separation skip
195 \quotes_language english
198 \paperpagestyle default
202 \tracking_changes false
203 \output_changes false
210 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
219 \begin_layout Standard
221 If you have comments or error corrections, please send them to the LyX Documenta
228 \begin_layout Standard
232 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's ExtendedInsets manual}{
237 lyx-docs@lists.lyx.org
241 \begin_layout Standard
254 \begin_inset Note Note
257 \begin_layout Standard
258 original author: Uwe Stöhr
274 \begin_layout Standard
275 \begin_inset LatexCommand tableofcontents
282 \begin_layout Standard
283 \begin_inset Note Note
286 \begin_layout Standard
287 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
297 If they are not installed you can export the document anyway but the sections
298 where the packages are required won't appear in the output.
301 \begin_layout Standard
302 The latest PDF-version of this document can be found here:
306 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
314 \begin_layout Chapter
316 \begin_inset LatexCommand label
322 \begin_inset LatexCommand index
328 \begin_inset LatexCommand index
329 name "Graphics|see{Figures}"
336 \begin_layout Section
338 \begin_inset LatexCommand index
339 name "Figures ! Graphics Dialog"
344 \begin_inset LatexCommand label
345 name "sec:Graphics-Dialog"
352 \begin_layout Standard
353 To insert an image into your document, place the cursor at the text position
354 you want and click on the toolbar icon
355 \begin_inset Graphics
356 filename ../images/dialog-show-new-inset_graphics.xpm
364 Insert\SpecialChar \menuseparator
368 Then a dialog will appear to choose the file to load.
369 The image will appear in the output exactly at the position where it is
373 \begin_layout Standard
374 The graphics dialog can be called at any time by right-clicking on an image.
375 This dialog has three tabs:
378 \begin_layout Description
383 Here you can choose an image file and adjust its appearance in the output.
384 The available units for the image size are explained in appendix\InsetSpace ~
386 \begin_inset LatexCommand ref
387 reference "cha:Units-available-in"
393 You can rotate images counter-clockwise by setting a rotation angle and
395 The image will also be rotated inside LyX.
397 Images can be scaled by using
398 a percentage value or by setting the width and height explicitly.
399 If you set only the width or only the height, the other size will be determined
401 If you set both, then the image will be transformed to the given size,
402 possibly distorting it.
403 To prevent the image from distortion, use the option
405 Maintain aspect ratio
408 The image will then be scaled so that its width and height don't exceed
409 the specified dimensions.
411 Images can be opened in a program of your choice
417 The program can be set for every image format in the file format settings
418 in LyX's preferences.
421 \begin_layout Description
426 Alternatively to the usage of scaling units it is possible to set image
427 coordinates to adjust the height and width of the image in the output.
428 The coordinates can also be calculated automatically by pressing the button
440 bounding\InsetSpace ~
443 will only print the image region within the given coordinates.
444 Normally you don't need to take care about image coordinates and can ignore
448 \begin_layout Description
454 In this tab you can modify the appearance of the image within LyX and set
455 the image to be a subfigure of a figure float with an own caption.
456 Subfigures are explained in section\InsetSpace ~
458 \begin_inset LatexCommand ref
459 reference "sec:Figure-Floats"
465 LaTeX experts can also specify on this tab additional LaTeX options.
473 makes the image appear in the output only as a frame with the size of the
483 option only affects zipped EPS-graphics, e.\InsetSpace \thinspace{}
490 When the option is used the images will not be unzipped on export, since
491 LaTeX can handle them as they are.
493 Zipped EPS-graphics are useful to save
494 disk space when you choose PostScript as output format, see appendix\InsetSpace ~
496 \begin_inset LatexCommand ref
497 reference "sec:PostScript"
502 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
513 zgrep %%Bounding x.eps.gz > x.eps.bb
517 The second command creates the bounding box file
518 \begin_inset Quotes eld
522 \begin_inset Quotes erd
525 that is needed by LaTeX for zipped graphics.
528 \begin_layout Standard
529 \begin_inset VSpace bigskip
535 \begin_layout Standard
536 This is an example image in EPS format
540 \begin_layout Standard
541 Image formats are explained in section\InsetSpace ~
543 \begin_inset LatexCommand ref
544 reference "sec:Image-Formats"
553 within a separate, horizontally centered paragraph:
556 \begin_layout Standard
558 \begin_inset Graphics
559 filename clipart/mobius.eps
570 \begin_layout Standard
571 This is the same image like the one above but in draft mode:
574 \begin_layout Standard
576 \begin_inset Graphics
577 filename clipart/mobius.eps
589 \begin_layout Section
591 \begin_inset LatexCommand label
592 name "sec:Figure-Floats"
597 \begin_inset LatexCommand index
598 name "Floats ! Figures"
603 \begin_inset LatexCommand index
604 name "Figures ! Floats"
611 \begin_layout Standard
612 For general explanations about floats, have a look at section\InsetSpace ~
614 \begin_inset LatexCommand ref
615 reference "sec:FloatIntroduction"
622 \begin_layout Standard
624 \begin_inset Graphics
625 filename ../images/float-insert_figure.xpm
633 Insert\SpecialChar \menuseparator
634 Float\SpecialChar \menuseparator
637 inserts a float with a caption that has the label
638 \begin_inset Quotes eld
643 \begin_inset Quotes erd
646 (# is the actual number).
647 You can insert the image above the caption, like in Figure\InsetSpace ~
649 \begin_inset LatexCommand ref
650 reference "fig:kill-plat"
654 or below the caption, like in Figure\InsetSpace ~
656 \begin_inset LatexCommand ref
657 reference "fig:escher"
662 More about the caption placement is described in section\InsetSpace ~
664 \begin_inset LatexCommand ref
665 reference "sec:Caption-Placement"
672 \begin_layout Standard
673 \begin_inset Float figure
678 \begin_layout Standard
680 \begin_inset Graphics
681 filename clipart/platypus.eps
692 \begin_layout Standard
695 \begin_layout Standard
696 \begin_inset LatexCommand label
701 A severely distorted platypus in a float.
714 \begin_layout Standard
715 \begin_inset Float figure
720 \begin_layout Standard
723 \begin_layout Standard
724 \begin_inset LatexCommand label
738 \begin_layout Standard
740 \begin_inset Graphics
741 filename clipart/escher-lsd.eps
757 \begin_layout Standard
758 \begin_inset LatexCommand index
759 name "References ! to Figures"
765 \begin_inset LatexCommand ref
766 reference "fig:kill-plat"
771 \begin_inset LatexCommand ref
772 reference "fig:escher"
776 are examples of referenced figures.
777 Figures can be referenced in the text by referencing their label.
778 To do this insert a label in the caption using the menu
780 Insert\SpecialChar \menuseparator
783 or the toolbar button
784 \begin_inset Graphics
785 filename ../images/label-insert.xpm
792 You can now refer to the label using the menu
794 Insert\SpecialChar \menuseparator
798 or the toolbar button
799 \begin_inset Graphics
800 filename ../images/dialog-show-new-inset_ref.xpm
807 It is important to use references to floats, rather than using vague references
809 \begin_inset Quotes eld
813 \begin_inset Quotes erd
816 , because as LaTeX will reposition the floats in the final document, it
818 \begin_inset Quotes eld
822 \begin_inset Quotes erd
827 Referencing is explained in detail in section\InsetSpace ~
829 \begin_inset LatexCommand ref
830 reference "sec:Referencing-Floats"
837 \begin_layout Standard
838 Normally only one image is inserted to a figure float, but sometimes you
839 might want to use two images with separate subcaptions.
840 This can be set in the tab
845 of the graphics dialog.
846 Choose there the option
850 and enter the subcaption for the image in the caption field.
851 Note that only the main caption of the float is added to the List of Figures.
854 erencing subfigures is explained in section\InsetSpace ~
856 \begin_inset LatexCommand ref
857 reference "sub:Referencing-Subfigures"
864 \begin_layout Standard
867 \begin_inset LatexCommand ref
868 reference "fig:Two-distorted-images"
872 is an example of a figure float with two images set side by side.
873 You can also set the images one below the other.
876 \begin_layout Standard
877 \begin_inset Float figure
882 \begin_layout Standard
886 \begin_inset Graphics
887 filename clipart/escher-lsd.eps
891 subcaptionText "Undefinable structure"
898 \begin_inset Graphics
899 filename clipart/platypus.eps
904 subcaptionText "\label{fig:Platypus} Platypus"
913 \begin_layout Standard
916 \begin_layout Standard
917 \begin_inset LatexCommand label
918 name "fig:Two-distorted-images"
922 Two distorted images.
935 \begin_layout Section
937 \begin_inset LatexCommand label
938 name "sec:Image-Formats"
943 \begin_inset LatexCommand index
949 \begin_inset LatexCommand index
950 name "Figures ! Image Formats"
957 \begin_layout Standard
958 You can insert images in any known file format.
959 But as explained in appendix\InsetSpace ~
961 \begin_inset LatexCommand ref
962 reference "cha:Output-File-Formats"
966 , every output document format allows only a few image formats.
967 LyX uses therefore the program
971 in the background to convert the images to the right format.
972 To increase your work flow by avoiding these conversions in the background,
973 you can use only the image formats that can directly be embedded in the
975 The output file formats are explained in appendix\InsetSpace ~
977 \begin_inset LatexCommand ref
978 reference "cha:Output-File-Formats"
985 \begin_layout Standard
986 Similar to fonts there are two types of image formats:
989 \begin_layout Description
991 images consist of pixel values, often in a compressed form.
992 They are therefore not fully scalable and look pixeled in large zooms.
993 Well-known bitmap image formats are
994 \begin_inset Quotes eld
997 Graphics Interchange Format
998 \begin_inset Quotes erd
1001 (GIF, file extension
1002 \begin_inset Quotes eld
1010 \begin_inset Quotes erd
1014 \begin_inset LatexCommand index
1015 name "GIF|see{Image formats}"
1020 \begin_inset Quotes eld
1023 Portable Network Graphics
1024 \begin_inset Quotes erd
1027 (PNG, file extension
1028 \begin_inset Quotes eld
1036 \begin_inset Quotes erd
1040 \begin_inset LatexCommand index
1041 name "PNG|see{Image formats}"
1046 \begin_inset Quotes eld
1049 Joint Photographic Experts Group
1050 \begin_inset Quotes erd
1053 (JPG, file extension
1054 \begin_inset Quotes eld
1062 \begin_inset Quotes erd
1066 \begin_inset Quotes eld
1074 \begin_inset Quotes erd
1078 \begin_inset LatexCommand index
1079 name "JPG|see{Image formats}"
1086 \begin_layout Description
1088 images consist of vectors and can therefore be scaled to any size
1090 The scaling ability is necessary if you want to create presentations, because
1091 presentations are always scaled by the video projector.
1092 Scaling is also useful for online documents to let the user zoom into diagrams.
1095 ell-known scalable image formats are
1096 \begin_inset Quotes eld
1099 Scalable Vector Graphics
1100 \begin_inset Quotes erd
1103 (SVG, file extension
1104 \begin_inset Quotes eld
1112 \begin_inset Quotes erd
1116 \begin_inset LatexCommand index
1117 name "SVG|see{Image formats}"
1122 \begin_inset Quotes eld
1125 Encapsulated PostScript
1126 \begin_inset Quotes erd
1129 (EPS, file extension
1130 \begin_inset Quotes eld
1138 \begin_inset Quotes erd
1142 \begin_inset LatexCommand index
1143 name "EPS|see{Image formats}"
1148 \begin_inset Quotes eld
1151 Portable Document Format
1152 \begin_inset Quotes erd
1155 (PDF, file extension
1156 \begin_inset Quotes eld
1164 \begin_inset Quotes erd
1168 \begin_inset LatexCommand index
1174 \begin_inset Quotes eld
1178 \begin_inset Quotes erd
1181 (WMF, file extension
1182 \begin_inset Quotes eld
1190 \begin_inset Quotes erd
1194 \begin_inset LatexCommand index
1195 name "SVG|see{Image formats}"
1201 \begin_inset Quotes eld
1205 \begin_inset Quotes erd
1208 , because you can convert any bitmap image to a PDF or EPS-image and the
1209 result will still be a bitmap image.
1210 In this cases only a header with the image properties is added to the original
1215 \begin_layout Standard
1216 In the case of PDF, the original image is additionally compressed.
1222 The PDF-files generated by
1226 are for example bitmap images.
1229 \begin_layout Standard
1230 Normally it is not possible to convert a bitmap image into a scalable one,
1232 Only the image formats PDF and EPS can directly be embedded to PDF and
1233 PostScript output files, respectively.
1234 SVG and WMF-images are recalculated to bitmaps when the output file is
1235 generated because there is currently no adequate WMF/SVG
1236 \begin_inset Formula $\to$
1239 PDF/EPS converter available.
1242 \begin_layout Chapter
1244 \begin_inset LatexCommand label
1250 \begin_inset LatexCommand index
1258 \begin_layout Section
1260 \begin_inset LatexCommand index
1261 name "Table ! Introduction"
1268 \begin_layout Standard
1269 You can insert a table using either the toolbar button
1270 \begin_inset Graphics
1271 filename ../images/tabular-insert.xpm
1279 Insert\SpecialChar \menuseparator
1283 The toolbar button offers you a graphical selection: Move the mouse to
1284 set the column/row number of the table that should be created and then
1285 press a mouse button.
1286 When you use the menu to create a table, a dialog will appear, asking you
1287 for the number of rows and columns.
1289 The default table has lines around any
1290 cell and the first row appears separated from the rest of the table.
1291 This separation occurs due to a double line: The cells of the first row
1292 have a line below them and the cells of the second row have a line above
1294 Here is an example table:
1297 \begin_layout Standard
1299 \begin_inset Tabular
1300 <lyxtabular version="3" rows="4" columns="4">
1302 <column alignment="center" valignment="top" leftline="true" width="0">
1303 <column alignment="center" valignment="top" leftline="true" width="0">
1304 <column alignment="center" valignment="top" leftline="true" width="0">
1305 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
1306 <row topline="true" bottomline="true">
1307 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1310 \begin_layout Standard
1316 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1319 \begin_layout Standard
1334 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1337 \begin_layout Standard
1343 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1346 \begin_layout Standard
1353 <row topline="true">
1354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1357 \begin_layout Standard
1372 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1375 \begin_layout Standard
1381 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1384 \begin_layout Standard
1390 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1393 \begin_layout Standard
1400 <row topline="true">
1401 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1404 \begin_layout Standard
1419 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1422 \begin_layout Standard
1428 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1431 \begin_layout Standard
1437 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1440 \begin_layout Standard
1447 <row topline="true" bottomline="true">
1448 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1451 \begin_layout Standard
1466 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1469 \begin_layout Standard
1475 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1478 \begin_layout Standard
1484 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1487 \begin_layout Standard
1501 \begin_layout Section
1503 \begin_inset LatexCommand index
1504 name "Table ! Dialog"
1511 \begin_layout Standard
1512 You can alter a table by clicking on it with the right mouse button, which
1513 brings up the table dialog.
1514 Here you can adjust the settings of that cell and row/column respectively
1515 where the cursor is currently placed.
1516 Most of the dialog options also work on selections.
1517 This means if you select more cells, columns or rows, the action is done
1518 for the whole selection.
1519 Note that there is a difference between selecting the
1523 of the cell, and the cell itself.
1524 You can alter tables with the following tabs of the table dialog:
1527 \begin_layout Description
1533 Here you can set the horizontal alignment and the width of the current
1535 When you have set a width you can also adjust the vertical alignment of
1537 A given width will allow the cell to have line breaks and multiple paragraphs
1538 of text, see section\InsetSpace ~
1540 \begin_inset LatexCommand ref
1541 reference "sub:Multiple-Lines-in"
1546 If you set no width, the column is as wide as their widest cell content
1549 Furthermore, you can mark one or multiple cells of one row as a multicolumn
1550 cell, see section\InsetSpace ~
1552 \begin_inset LatexCommand ref
1553 reference "sub:Multicolumns"
1559 The rotate check boxes rotates the current cell, a selection, or the whole
1560 table counter-clockwise by 90°.
1561 The rotation is not shown within LyX, only in the output.
1564 \begin_inset Note Greyedout
1567 \begin_layout Standard
1572 Not all DVI-viewers are able to display rotations.
1579 It is also possible to enter a LaTeX-argument which is needed for special
1580 table formattings, see section\InsetSpace ~
1582 \begin_inset LatexCommand ref
1583 reference "sub:Multicolumn-Calculations"
1588 \begin_inset LatexCommand ref
1589 reference "sec:Colored-Tables"
1596 \begin_layout Description
1601 In this tab you can add and delete border lines for the current row/column.
1608 will convert the table to a formal table as described in section\InsetSpace ~
1610 \begin_inset LatexCommand ref
1611 reference "sec:Formal-Tables"
1617 You can also add here space to table rows as decribed in section\InsetSpace ~
1619 \begin_inset LatexCommand ref
1620 reference "sub:Row-Spacing"
1627 \begin_layout Description
1632 This tab is to make a table a so called
1633 \begin_inset Quotes eld
1641 \begin_inset Quotes erd
1644 that can run over several pages.
1645 Section\InsetSpace ~
1647 \begin_inset LatexCommand ref
1648 reference "sec:Longtables"
1653 \begin_inset LatexCommand ref
1654 reference "sec:Special-Longtable-Issues"
1658 describe the longtable features in detail.
1661 \begin_layout Standard
1662 When the table toolbar is opened, you can move the cursor with the arrow
1663 keys from cell to cell and the property of the current cell will immediately
1664 be displayed in the dialog.
1667 \begin_layout Section
1669 \begin_inset LatexCommand index
1670 name "Table ! Toolbar"
1677 \begin_layout Standard
1678 The table toolbar is an alternative to the table dialog to be able to alter
1680 It should normally appear at the bottom of LyX's main window when the cursor
1682 You can alternatively switch it on to appear always, by right-clicking
1683 in LyX's main menu bar.
1686 \begin_layout Standard
1687 The toolbar has the following icons:
1690 \begin_layout Labeling
1691 \labelwidthstring 00.00.0000
1692 \begin_inset Graphics
1693 filename ../images/tabular-feature_append-row.xpm
1698 adds a row below the current cell or selection
1701 \begin_layout Labeling
1702 \labelwidthstring 00.00.0000
1703 \begin_inset Graphics
1704 filename ../images/tabular-feature_append-column.xpm
1709 adds a column right beside the current cell or selection
1712 \begin_layout Labeling
1713 \labelwidthstring 00.00.0000
1714 \begin_inset Graphics
1715 filename ../images/tabular-feature_delete-row.xpm
1720 deletes the current row or selection
1723 \begin_layout Labeling
1724 \labelwidthstring 00.00.0000
1725 \begin_inset Graphics
1726 filename ../images/tabular-feature_delete-column.xpm
1731 deletes the current column or selection
1734 \begin_layout Labeling
1735 \labelwidthstring 00.00.0000
1736 \begin_inset Graphics
1737 filename ../images/tabular-feature_toggle-line-top.xpm
1742 adds a line at the top of the current cell / row or of a selection
1745 \begin_layout Labeling
1746 \labelwidthstring 00.00.0000
1747 \begin_inset Graphics
1748 filename ../images/tabular-feature_toggle-line-bottom.xpm
1753 adds a line at the bottom of the current cell / row or of a selection
1756 \begin_layout Labeling
1757 \labelwidthstring 00.00.0000
1758 \begin_inset Graphics
1759 filename ../images/tabular-feature_toggle-line-left.xpm
1764 adds a line at the left side of the current cell / row or of a selection
1767 \begin_layout Labeling
1768 \labelwidthstring 00.00.0000
1769 \begin_inset Graphics
1770 filename ../images/tabular-feature_toggle-line-right.xpm
1775 adds a line at the right side of the current cell / row or of a selection
1778 \begin_layout Labeling
1779 \labelwidthstring 00.00.0000
1780 \begin_inset Graphics
1781 filename ../images/tabular-feature_set-all-lines.xpm
1786 adds lines around the current or selected cells - if the current cell no
1787 multicolumn this also affects the current row and column
1790 \begin_layout Labeling
1791 \labelwidthstring 00.00.0000
1792 \begin_inset Graphics
1793 filename ../images/tabular-feature_unset-all-lines.xpm
1798 deletes all lines of the current or selected cells - if the current cell
1799 no multicolumn this also affects the current row and column
1802 \begin_layout Labeling
1803 \labelwidthstring 00.00.0000
1804 \begin_inset Graphics
1805 filename ../images/tabular-feature_align-left.xpm
1810 left-aligns the content of the current cell / column
1813 \begin_layout Labeling
1814 \labelwidthstring 00.00.0000
1815 \begin_inset Graphics
1816 filename ../images/tabular-feature_align-center.xpm
1821 centers the content of the current cell / column horizontally
1824 \begin_layout Labeling
1825 \labelwidthstring 00.00.0000
1826 \begin_inset Graphics
1827 filename ../images/tabular-feature_align-right.xpm
1832 right-aligns the content of the current cell / column
1835 \begin_layout Labeling
1836 \labelwidthstring 00.00.0000
1837 \begin_inset Graphics
1838 filename ../images/tabular-feature_valign-top.xpm
1843 aligns the content of the current cell vertically to the top
1846 \begin_layout Labeling
1847 \labelwidthstring 00.00.0000
1848 \begin_inset Graphics
1849 filename ../images/tabular-feature_valign-middle.xpm
1854 centers the content of the current cell vertically
1857 \begin_layout Labeling
1858 \labelwidthstring 00.00.0000
1859 \begin_inset Graphics
1860 filename ../images/tabular-feature_valign-bottom.xpm
1865 aligns the content of the current cell vertically to the bottom
1868 \begin_layout Labeling
1869 \labelwidthstring 00.00.0000
1870 \begin_inset Graphics
1871 filename ../images/tabular-feature_set-rotate-cell.xpm
1876 rotates the current cell or selection counter-clockwise by 90°
1879 \begin_layout Labeling
1880 \labelwidthstring 00.00.0000
1881 \begin_inset Graphics
1882 filename ../images/tabular-feature_set-rotate-tabular.xpm
1887 rotates the whole table counter-clockwise by 90°
1890 \begin_layout Labeling
1891 \labelwidthstring 00.00.0000
1892 \begin_inset Graphics
1893 filename ../images/tabular-feature_multicolumn.xpm
1898 sets the current cell or selection as a multicolumn
1901 \begin_layout Standard
1902 \begin_inset Note Greyedout
1905 \begin_layout Standard
1910 For the output the vertical alignment of the first cell in a row is used
1911 for all following cells in the row.
1919 \begin_layout Section
1921 \begin_inset LatexCommand index
1922 name "Table ! Edit Menu"
1929 \begin_layout Standard
1930 Additionally to the table dialog and toolbar, the menu
1932 Edit\SpecialChar \menuseparator
1935 allows you to add and delete border lines for the current row/column and
1936 to set the current selection as multicolumn.
1937 The menu is only available when the cursor is inside a table.
1940 \begin_layout Section
1942 \begin_inset LatexCommand label
1943 name "sec:Table-Floats"
1948 \begin_inset LatexCommand index
1949 name "Floats ! Tables"
1954 \begin_inset LatexCommand index
1955 name "Table ! Floats"
1962 \begin_layout Standard
1963 For general explanations about floats, have a look at section\InsetSpace ~
1965 \begin_inset LatexCommand ref
1966 reference "sec:FloatIntroduction"
1973 \begin_layout Standard
1974 \begin_inset Float table
1980 \begin_layout Standard
1981 \begin_inset Caption
1983 \begin_layout Standard
1984 \begin_inset LatexCommand label
1985 name "tab:a table float"
1997 \begin_layout Standard
1999 \begin_inset Tabular
2000 <lyxtabular version="3" rows="3" columns="3">
2002 <column alignment="center" valignment="top" leftline="true" width="0pt">
2003 <column alignment="center" valignment="top" leftline="true" width="0pt">
2004 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
2005 <row topline="true" bottomline="true">
2006 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2009 \begin_layout Standard
2024 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2027 \begin_layout Standard
2042 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2045 \begin_layout Standard
2061 <row topline="true">
2062 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2065 \begin_layout Standard
2080 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2083 \begin_layout Standard
2098 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2101 \begin_layout Standard
2117 <row topline="true" bottomline="true">
2118 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2121 \begin_layout Standard
2131 \begin_inset Formula $\int x^{2}dx$
2139 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2142 \begin_layout Standard
2152 \begin_inset Formula $\left[\begin{array}{cc}
2154 c & d\end{array}\right]$
2162 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2165 \begin_layout Standard
2175 \begin_inset Formula $1+1=2$
2196 \begin_layout Standard
2197 Table floats can be inserted using the menu
2199 Insert\SpecialChar \menuseparator
2200 Float\SpecialChar \menuseparator
2203 or the toolbar button
2204 \begin_inset Graphics
2205 filename ../images/float-insert_table.xpm
2214 \begin_layout Standard
2215 The float appears as a collapsible box with a caption that has the label
2217 \begin_inset Quotes eld
2222 \begin_inset Quotes erd
2225 (# is the actual table number).
2226 You can insert tables to the float above or below the caption.
2229 \begin_layout Standard
2232 \begin_inset LatexCommand ref
2233 reference "tab:a table float"
2237 is an example table within a table float.
2240 \begin_layout Standard
2241 Having the caption above the table is the common rule that is unfortunately
2242 not supported in LaTeX's standard classes.
2243 That means if you are using the document classes
2259 there will be no space between the caption and the table.
2260 To insert the needed space, add the following option to the load command
2261 of the LaTeX-package
2266 \begin_inset LatexCommand index
2267 name "LaTeX-packages ! caption"
2271 in your document preamble
2275 \begin_layout Standard
2276 For more information have a look at section\InsetSpace ~
2278 \begin_inset LatexCommand ref
2279 reference "sec:Caption-Placement"
2291 \begin_layout Standard
2297 \begin_layout Standard
2302 , which is described in section\InsetSpace ~
2304 \begin_inset LatexCommand ref
2305 reference "sec:Caption-Formatting"
2309 , is used to adjust the caption format.
2312 \begin_layout Standard
2313 \begin_inset LatexCommand index
2314 name "References ! to Tables"
2318 Tables can be cross-referenced in the text by referencing their label.
2319 To do this insert a label in the caption using the menu
2321 Insert\SpecialChar \menuseparator
2324 or the toolbar button
2325 \begin_inset Graphics
2326 filename ../images/label-insert.xpm
2333 You can now refer to the label using the menu
2335 Insert\SpecialChar \menuseparator
2339 or the toolbar button
2340 \begin_inset Graphics
2341 filename ../images/dialog-show-new-inset_ref.xpm
2349 Referencing is explained in detail in section\InsetSpace ~
2351 \begin_inset LatexCommand ref
2352 reference "sec:Referencing-Floats"
2359 \begin_layout Section
2361 \begin_inset LatexCommand label
2362 name "sec:Longtables"
2367 \begin_inset LatexCommand index
2373 \begin_inset LatexCommand index
2374 name "Table ! Longtables"
2381 \begin_layout Standard
2382 If the table is too long to fit on one page, you can use the option
2392 of the table dialog to split the table automatically over more pages.
2393 Doing this enables some check boxes and you can now define:
2396 \begin_layout Description
2401 : The current row and all rows above, that don't have any special options
2402 defined, are defined to be the header rows of all pages of the longtable;
2403 except for the first page, if
2409 This therefore called the main header.
2412 \begin_layout Description
2418 : The current row and all rows above, that don't have any special options
2419 defined, are defined to be the header rows of the first page of the longtable.
2422 \begin_layout Description
2427 : The current row and all rows below, that don't have any special options
2428 defined, are defined to be the footer rows of all pages of the longtable;
2429 except for the last page, if
2437 \begin_layout Description
2443 : The current row and all rows below, that don't have any special options
2444 defined, are defined to be the footer rows of the last page of the longtable.
2447 \begin_layout Standard
2448 You can also specify a row where the table is splitted.
2449 If you set more than one option in the same table row, you should be aware
2450 of the fact that only the first one is used in the given table row.
2451 The others will then be defined as
2456 In this context, first means first in this order:
2463 header, Footer, Last\InsetSpace ~
2467 See the following longtable to see how it works:
2470 \begin_layout Standard
2472 \begin_inset Tabular
2473 <lyxtabular version="3" rows="69" columns="3">
2474 <features islongtable="true">
2475 <column alignment="left" valignment="top" leftline="true" width="0cm">
2476 <column alignment="left" valignment="top" width="0pt">
2477 <column alignment="right" valignment="top" leftline="true" rightline="true" width="0pt">
2478 <row topline="true" bottomline="true" endfirsthead="true">
2479 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2482 \begin_layout Standard
2485 Example Phone List (ignore the names)
2490 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2493 \begin_layout Standard
2499 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2502 \begin_layout Standard
2509 <row topline="true" bottomline="true" endfirsthead="true">
2510 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2513 \begin_layout Standard
2521 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2524 \begin_layout Standard
2530 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2533 \begin_layout Standard
2542 <row topline="true" bottomline="true" endhead="true">
2543 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2546 \begin_layout Standard
2554 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2557 \begin_layout Standard
2563 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2566 \begin_layout Standard
2573 <row topline="true" bottomline="true" endhead="true">
2574 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2577 \begin_layout Standard
2585 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2588 \begin_layout Standard
2594 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2597 \begin_layout Standard
2606 <row topline="true" bottomline="true" endfoot="true">
2607 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
2610 \begin_layout Standard
2611 continued on next page
2616 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2619 \begin_layout Standard
2625 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2628 \begin_layout Standard
2636 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2639 \begin_layout Standard
2647 <cell alignment="center" valignment="top" topline="true" usebox="none">
2650 \begin_layout Standard
2656 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2659 \begin_layout Standard
2667 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2670 \begin_layout Standard
2678 <cell alignment="center" valignment="top" topline="true" usebox="none">
2681 \begin_layout Standard
2687 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2690 \begin_layout Standard
2698 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2701 \begin_layout Standard
2709 <cell alignment="center" valignment="top" topline="true" usebox="none">
2712 \begin_layout Standard
2718 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2721 \begin_layout Standard
2729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2732 \begin_layout Standard
2740 <cell alignment="center" valignment="top" topline="true" usebox="none">
2743 \begin_layout Standard
2749 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2752 \begin_layout Standard
2760 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2763 \begin_layout Standard
2771 <cell alignment="center" valignment="top" topline="true" usebox="none">
2774 \begin_layout Standard
2780 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2783 \begin_layout Standard
2791 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2794 \begin_layout Standard
2802 <cell alignment="center" valignment="top" topline="true" usebox="none">
2805 \begin_layout Standard
2811 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2814 \begin_layout Standard
2822 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2825 \begin_layout Standard
2833 <cell alignment="center" valignment="top" topline="true" usebox="none">
2836 \begin_layout Standard
2842 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2845 \begin_layout Standard
2853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2856 \begin_layout Standard
2864 <cell alignment="center" valignment="top" topline="true" usebox="none">
2867 \begin_layout Standard
2873 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2876 \begin_layout Standard
2884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2887 \begin_layout Standard
2895 <cell alignment="center" valignment="top" topline="true" usebox="none">
2898 \begin_layout Standard
2904 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2907 \begin_layout Standard
2915 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2918 \begin_layout Standard
2926 <cell alignment="center" valignment="top" topline="true" usebox="none">
2929 \begin_layout Standard
2935 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2938 \begin_layout Standard
2946 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2949 \begin_layout Standard
2957 <cell alignment="center" valignment="top" topline="true" usebox="none">
2960 \begin_layout Standard
2966 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2969 \begin_layout Standard
2977 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2980 \begin_layout Standard
2988 <cell alignment="center" valignment="top" topline="true" usebox="none">
2991 \begin_layout Standard
2997 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3000 \begin_layout Standard
3008 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3011 \begin_layout Standard
3019 <cell alignment="center" valignment="top" topline="true" usebox="none">
3022 \begin_layout Standard
3028 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3031 \begin_layout Standard
3039 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3042 \begin_layout Standard
3050 <cell alignment="center" valignment="top" topline="true" usebox="none">
3053 \begin_layout Standard
3059 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3062 \begin_layout Standard
3070 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3073 \begin_layout Standard
3081 <cell alignment="center" valignment="top" topline="true" usebox="none">
3084 \begin_layout Standard
3090 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3093 \begin_layout Standard
3101 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3104 \begin_layout Standard
3112 <cell alignment="center" valignment="top" topline="true" usebox="none">
3115 \begin_layout Standard
3121 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3124 \begin_layout Standard
3132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3135 \begin_layout Standard
3143 <cell alignment="center" valignment="top" topline="true" usebox="none">
3146 \begin_layout Standard
3152 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3155 \begin_layout Standard
3163 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3166 \begin_layout Standard
3174 <cell alignment="center" valignment="top" topline="true" usebox="none">
3177 \begin_layout Standard
3183 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3186 \begin_layout Standard
3194 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3197 \begin_layout Standard
3205 <cell alignment="center" valignment="top" topline="true" usebox="none">
3208 \begin_layout Standard
3214 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3217 \begin_layout Standard
3225 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3228 \begin_layout Standard
3236 <cell alignment="center" valignment="top" topline="true" usebox="none">
3239 \begin_layout Standard
3245 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3248 \begin_layout Standard
3256 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3259 \begin_layout Standard
3267 <cell alignment="center" valignment="top" topline="true" usebox="none">
3270 \begin_layout Standard
3276 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3279 \begin_layout Standard
3287 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3290 \begin_layout Standard
3298 <cell alignment="center" valignment="top" topline="true" usebox="none">
3301 \begin_layout Standard
3307 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3310 \begin_layout Standard
3318 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3321 \begin_layout Standard
3329 <cell alignment="center" valignment="top" topline="true" usebox="none">
3332 \begin_layout Standard
3338 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3341 \begin_layout Standard
3349 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3352 \begin_layout Standard
3360 <cell alignment="center" valignment="top" topline="true" usebox="none">
3363 \begin_layout Standard
3369 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3372 \begin_layout Standard
3380 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3383 \begin_layout Standard
3391 <cell alignment="center" valignment="top" topline="true" usebox="none">
3394 \begin_layout Standard
3400 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3403 \begin_layout Standard
3411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3414 \begin_layout Standard
3422 <cell alignment="center" valignment="top" topline="true" usebox="none">
3425 \begin_layout Standard
3431 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3434 \begin_layout Standard
3442 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3445 \begin_layout Standard
3453 <cell alignment="center" valignment="top" topline="true" usebox="none">
3456 \begin_layout Standard
3462 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3465 \begin_layout Standard
3473 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3476 \begin_layout Standard
3484 <cell alignment="center" valignment="top" topline="true" usebox="none">
3487 \begin_layout Standard
3493 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3496 \begin_layout Standard
3504 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3507 \begin_layout Standard
3515 <cell alignment="center" valignment="top" topline="true" usebox="none">
3518 \begin_layout Standard
3524 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3527 \begin_layout Standard
3535 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3538 \begin_layout Standard
3546 <cell alignment="center" valignment="top" topline="true" usebox="none">
3549 \begin_layout Standard
3555 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3558 \begin_layout Standard
3565 <row bottomline="true">
3566 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3569 \begin_layout Standard
3577 <cell alignment="center" valignment="top" topline="true" usebox="none">
3580 \begin_layout Standard
3586 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3589 \begin_layout Standard
3596 <row bottomline="true">
3597 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3600 \begin_layout Standard
3606 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
3609 \begin_layout Standard
3615 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3618 \begin_layout Standard
3626 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3629 \begin_layout Standard
3637 <cell alignment="center" valignment="top" topline="true" usebox="none">
3640 \begin_layout Standard
3646 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3649 \begin_layout Standard
3657 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3660 \begin_layout Standard
3668 <cell alignment="center" valignment="top" topline="true" usebox="none">
3671 \begin_layout Standard
3677 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3680 \begin_layout Standard
3688 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3691 \begin_layout Standard
3699 <cell alignment="center" valignment="top" topline="true" usebox="none">
3702 \begin_layout Standard
3708 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3711 \begin_layout Standard
3719 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3722 \begin_layout Standard
3730 <cell alignment="center" valignment="top" topline="true" usebox="none">
3733 \begin_layout Standard
3739 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3742 \begin_layout Standard
3750 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3753 \begin_layout Standard
3761 <cell alignment="center" valignment="top" topline="true" usebox="none">
3764 \begin_layout Standard
3770 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3773 \begin_layout Standard
3781 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3784 \begin_layout Standard
3792 <cell alignment="center" valignment="top" topline="true" usebox="none">
3795 \begin_layout Standard
3801 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3804 \begin_layout Standard
3812 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3815 \begin_layout Standard
3823 <cell alignment="center" valignment="top" topline="true" usebox="none">
3826 \begin_layout Standard
3832 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3835 \begin_layout Standard
3843 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3846 \begin_layout Standard
3854 <cell alignment="center" valignment="top" topline="true" usebox="none">
3857 \begin_layout Standard
3863 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3866 \begin_layout Standard
3874 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3877 \begin_layout Standard
3885 <cell alignment="center" valignment="top" topline="true" usebox="none">
3888 \begin_layout Standard
3894 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3897 \begin_layout Standard
3905 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3908 \begin_layout Standard
3916 <cell alignment="center" valignment="top" topline="true" usebox="none">
3919 \begin_layout Standard
3925 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3928 \begin_layout Standard
3936 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3939 \begin_layout Standard
3947 <cell alignment="center" valignment="top" topline="true" usebox="none">
3950 \begin_layout Standard
3956 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3959 \begin_layout Standard
3967 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3970 \begin_layout Standard
3978 <cell alignment="center" valignment="top" topline="true" usebox="none">
3981 \begin_layout Standard
3987 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3990 \begin_layout Standard
3998 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4001 \begin_layout Standard
4009 <cell alignment="center" valignment="top" topline="true" usebox="none">
4012 \begin_layout Standard
4018 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4021 \begin_layout Standard
4029 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4032 \begin_layout Standard
4040 <cell alignment="center" valignment="top" topline="true" usebox="none">
4043 \begin_layout Standard
4049 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4052 \begin_layout Standard
4060 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4063 \begin_layout Standard
4071 <cell alignment="center" valignment="top" topline="true" usebox="none">
4074 \begin_layout Standard
4080 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4083 \begin_layout Standard
4091 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4094 \begin_layout Standard
4102 <cell alignment="center" valignment="top" topline="true" usebox="none">
4105 \begin_layout Standard
4111 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4114 \begin_layout Standard
4122 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4125 \begin_layout Standard
4133 <cell alignment="center" valignment="top" topline="true" usebox="none">
4136 \begin_layout Standard
4142 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4145 \begin_layout Standard
4153 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4156 \begin_layout Standard
4164 <cell alignment="center" valignment="top" topline="true" usebox="none">
4167 \begin_layout Standard
4173 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4176 \begin_layout Standard
4184 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4187 \begin_layout Standard
4195 <cell alignment="center" valignment="top" topline="true" usebox="none">
4198 \begin_layout Standard
4204 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4207 \begin_layout Standard
4215 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4218 \begin_layout Standard
4226 <cell alignment="center" valignment="top" topline="true" usebox="none">
4229 \begin_layout Standard
4235 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4238 \begin_layout Standard
4246 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4249 \begin_layout Standard
4257 <cell alignment="center" valignment="top" topline="true" usebox="none">
4260 \begin_layout Standard
4266 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4269 \begin_layout Standard
4277 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4280 \begin_layout Standard
4288 <cell alignment="center" valignment="top" topline="true" usebox="none">
4291 \begin_layout Standard
4297 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4300 \begin_layout Standard
4308 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4311 \begin_layout Standard
4319 <cell alignment="center" valignment="top" topline="true" usebox="none">
4322 \begin_layout Standard
4328 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4331 \begin_layout Standard
4339 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4342 \begin_layout Standard
4350 <cell alignment="center" valignment="top" topline="true" usebox="none">
4353 \begin_layout Standard
4359 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4362 \begin_layout Standard
4370 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4373 \begin_layout Standard
4381 <cell alignment="center" valignment="top" topline="true" usebox="none">
4384 \begin_layout Standard
4390 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4393 \begin_layout Standard
4401 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4404 \begin_layout Standard
4412 <cell alignment="center" valignment="top" topline="true" usebox="none">
4415 \begin_layout Standard
4421 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4424 \begin_layout Standard
4432 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4435 \begin_layout Standard
4443 <cell alignment="center" valignment="top" topline="true" usebox="none">
4446 \begin_layout Standard
4452 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4455 \begin_layout Standard
4463 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4466 \begin_layout Standard
4474 <cell alignment="center" valignment="top" topline="true" usebox="none">
4477 \begin_layout Standard
4483 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4486 \begin_layout Standard
4494 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4497 \begin_layout Standard
4505 <cell alignment="center" valignment="top" topline="true" usebox="none">
4508 \begin_layout Standard
4514 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4517 \begin_layout Standard
4525 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4528 \begin_layout Standard
4536 <cell alignment="center" valignment="top" topline="true" usebox="none">
4539 \begin_layout Standard
4545 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4548 \begin_layout Standard
4555 <row bottomline="true">
4556 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4559 \begin_layout Standard
4567 <cell alignment="center" valignment="top" topline="true" usebox="none">
4570 \begin_layout Standard
4576 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4579 \begin_layout Standard
4586 <row bottomline="true" endlastfoot="true">
4587 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
4590 \begin_layout Standard
4596 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4599 \begin_layout Standard
4605 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4608 \begin_layout Standard
4623 \begin_layout Standard
4627 addtocounter{table}{-1}
4633 \begin_inset Note Note
4636 \begin_layout Standard
4637 See greyed-out note in section\InsetSpace ~
4639 \begin_inset LatexCommand ref
4640 reference "sub:Longtable-Captions"
4644 for an explanation of this command.
4652 \begin_layout Subsection
4653 Footnotes in Longtables
4654 \begin_inset LatexCommand label
4655 name "sub:Footnotes-in-Longtables"
4660 \begin_inset LatexCommand index
4661 name "Longtables ! Footnotes"
4668 \begin_layout Standard
4669 Footnotes can be inserted to every longtable cell.
4670 They appear at the bottom of the page where the table cell with the footnote
4674 \begin_inset LatexCommand ref
4675 reference "tab:DiffCaptions"
4679 has for example a footnote.
4682 \begin_layout Subsection
4684 \begin_inset LatexCommand index
4685 name "Longtables ! Captions"
4690 \begin_inset LatexCommand label
4691 name "sub:Longtable-Captions"
4698 \begin_layout Standard
4699 A longtable cannot be put into a table float because floats can only be
4700 on one page but the caption environment of floats can also be used for
4704 \begin_layout Standard
4705 As LyX does not yet fully support captions in longtables, a hack is needed
4709 \begin_layout Enumerate
4715 \begin_layout Enumerate
4716 Mark the first row and disable its upper line.
4719 \begin_layout Enumerate
4720 Insert a caption via the menu
4722 Insert\SpecialChar \menuseparator
4725 into the first table cell.
4727 You can also add a short title for the caption.
4730 \begin_layout Enumerate
4732 \begin_inset Quotes eld
4744 \begin_inset Quotes erd
4747 as ERT behind the caption.
4750 \begin_layout Standard
4751 A short title that will appear in the LOT instead of the full title.
4760 behind the caption omits the vertical lines between the following cells
4762 The first table row is now only a dummy row for the caption, the actual
4763 table starts with the second row.
4766 \begin_layout Standard
4767 Here is a short longtable to see how it works:
4770 \begin_layout Standard
4771 \begin_inset Tabular
4772 <lyxtabular version="3" rows="6" columns="5">
4773 <features islongtable="true">
4774 <column alignment="center" valignment="top" leftline="true" width="0">
4775 <column alignment="center" valignment="top" leftline="true" width="0">
4776 <column alignment="center" valignment="top" leftline="true" width="0">
4777 <column alignment="center" valignment="top" leftline="true" width="0">
4778 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
4780 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4783 \begin_layout Standard
4784 \begin_inset Caption
4786 \begin_layout Standard
4787 Longtable with caption
4791 \begin_layout Standard
4806 \begin_layout Standard
4822 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4825 \begin_layout Standard
4831 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4834 \begin_layout Standard
4840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4843 \begin_layout Standard
4849 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4852 \begin_layout Standard
4859 <row topline="true">
4860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4863 \begin_layout Standard
4869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4872 \begin_layout Standard
4878 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4881 \begin_layout Standard
4887 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4890 \begin_layout Standard
4896 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4899 \begin_layout Standard
4906 <row topline="true">
4907 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4910 \begin_layout Standard
4916 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4919 \begin_layout Standard
4925 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4928 \begin_layout Standard
4934 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4937 \begin_layout Standard
4943 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4946 \begin_layout Standard
4953 <row topline="true">
4954 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4957 \begin_layout Standard
4963 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4966 \begin_layout Standard
4972 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4975 \begin_layout Standard
4981 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4984 \begin_layout Standard
4990 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4993 \begin_layout Standard
5000 <row topline="true">
5001 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5004 \begin_layout Standard
5010 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5013 \begin_layout Standard
5019 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5022 \begin_layout Standard
5028 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5031 \begin_layout Standard
5037 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5040 \begin_layout Standard
5047 <row topline="true" bottomline="true">
5048 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5051 \begin_layout Standard
5057 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5060 \begin_layout Standard
5066 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5069 \begin_layout Standard
5075 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5078 \begin_layout Standard
5084 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5087 \begin_layout Standard
5101 \begin_layout Standard
5102 \begin_inset VSpace medskip
5106 \begin_inset Note Greyedout
5109 \begin_layout Standard
5114 The table number is increased for every longtable, also if you didn't set
5116 For this reason you could have the case that e.g.
5118 2.4 follows on Table\InsetSpace ~
5119 2.1 in the list of tables if there are two longtables
5121 To avoid this you can add the following command in ERT behind every longtable
5125 \begin_layout Standard
5130 addtocounter{table}{-1}
5138 \begin_layout Standard
5139 \begin_inset Note Greyedout
5142 \begin_layout Standard
5147 If you are using the LaTeX-package
5152 \begin_inset LatexCommand index
5153 name "LaTeX-packages ! hyperref"
5157 to link cross-references, the link to a longtable caption will always point
5158 to the beginning of the document.
5166 \begin_layout Subsubsection
5167 References to Longtables
5168 \begin_inset LatexCommand index
5169 name "Longtables ! References"
5176 \begin_layout Standard
5177 \begin_inset Tabular
5178 <lyxtabular version="3" rows="6" columns="5">
5179 <features islongtable="true">
5180 <column alignment="center" valignment="top" leftline="true" width="0">
5181 <column alignment="center" valignment="top" leftline="true" width="0">
5182 <column alignment="center" valignment="top" leftline="true" width="0">
5183 <column alignment="center" valignment="top" leftline="true" width="0">
5184 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5186 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5189 \begin_layout Standard
5190 \begin_inset Caption
5192 \begin_layout Standard
5193 Referenced longtable
5194 \begin_inset LatexCommand label
5195 name "tab:RefExample"
5208 \begin_layout Standard
5224 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5227 \begin_layout Standard
5233 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5236 \begin_layout Standard
5242 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5245 \begin_layout Standard
5251 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5254 \begin_layout Standard
5261 <row topline="true">
5262 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5265 \begin_layout Standard
5271 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5274 \begin_layout Standard
5280 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5283 \begin_layout Standard
5289 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5292 \begin_layout Standard
5298 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5301 \begin_layout Standard
5308 <row topline="true">
5309 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5312 \begin_layout Standard
5318 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5321 \begin_layout Standard
5327 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5330 \begin_layout Standard
5336 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5339 \begin_layout Standard
5345 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5348 \begin_layout Standard
5355 <row topline="true">
5356 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5359 \begin_layout Standard
5365 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5368 \begin_layout Standard
5374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5377 \begin_layout Standard
5383 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5386 \begin_layout Standard
5392 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5395 \begin_layout Standard
5402 <row topline="true">
5403 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5406 \begin_layout Standard
5412 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5415 \begin_layout Standard
5421 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5424 \begin_layout Standard
5430 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5433 \begin_layout Standard
5439 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5442 \begin_layout Standard
5449 <row topline="true" bottomline="true">
5450 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5453 \begin_layout Standard
5459 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5462 \begin_layout Standard
5468 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5471 \begin_layout Standard
5477 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5480 \begin_layout Standard
5486 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5489 \begin_layout Standard
5503 \begin_layout Standard
5504 To reference a longtable, insert a label into the caption.
5505 Note that you have to add the label prefix
5506 \begin_inset Quotes eld
5514 \begin_inset Quotes eld
5517 manually in the label field.
5520 \begin_layout Standard
5521 This is a reference to Table\InsetSpace ~
5523 \begin_inset LatexCommand ref
5524 reference "tab:RefExample"
5531 \begin_layout Standard
5532 The caption layout can be set together with all other caption of your document
5533 using the LaTeX-package
5538 \begin_inset LatexCommand index
5539 name "LaTeX-packages ! caption"
5543 , see section\InsetSpace ~
5545 \begin_inset LatexCommand ref
5546 reference "sec:Caption-Formatting"
5553 \begin_layout Subsubsection
5555 \begin_inset LatexCommand index
5556 name "Longtables ! Caption Width"
5563 \begin_layout Standard
5564 The maximal width of of caption lines is defined by the length
5571 Its default value is 4\InsetSpace \thinspace{}
5573 To change it add the following command to your document preamble or as
5574 ERT into your document before the longtable that should be affected
5577 \begin_layout Standard
5587 \begin_layout Standard
5588 where the width could have one of the units listed in appendix\InsetSpace ~
5590 \begin_inset LatexCommand ref
5591 reference "cha:Units-available-in"
5598 \begin_layout Standard
5599 The following tables show the difference:
5602 \begin_layout Standard
5603 \begin_inset Tabular
5604 <lyxtabular version="3" rows="6" columns="5">
5605 <features islongtable="true">
5606 <column alignment="center" valignment="top" leftline="true" width="0">
5607 <column alignment="center" valignment="top" leftline="true" width="0">
5608 <column alignment="center" valignment="top" leftline="true" width="0">
5609 <column alignment="center" valignment="top" leftline="true" width="0">
5610 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5612 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5615 \begin_layout Standard
5616 \begin_inset Caption
5618 \begin_layout Standard
5619 long full title with default width long full title with default width long
5620 full title with default width
5624 \begin_layout Standard
5625 caption with default width
5639 \begin_layout Standard
5655 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5658 \begin_layout Standard
5664 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5667 \begin_layout Standard
5673 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5676 \begin_layout Standard
5682 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5685 \begin_layout Standard
5692 <row topline="true">
5693 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5696 \begin_layout Standard
5702 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5705 \begin_layout Standard
5711 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5714 \begin_layout Standard
5720 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5723 \begin_layout Standard
5729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5732 \begin_layout Standard
5739 <row topline="true">
5740 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5743 \begin_layout Standard
5749 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5752 \begin_layout Standard
5758 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5761 \begin_layout Standard
5767 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5770 \begin_layout Standard
5776 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5779 \begin_layout Standard
5786 <row topline="true">
5787 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5790 \begin_layout Standard
5796 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5799 \begin_layout Standard
5805 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5808 \begin_layout Standard
5814 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5817 \begin_layout Standard
5823 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5826 \begin_layout Standard
5833 <row topline="true">
5834 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5837 \begin_layout Standard
5843 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5846 \begin_layout Standard
5852 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5855 \begin_layout Standard
5861 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5864 \begin_layout Standard
5870 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5873 \begin_layout Standard
5880 <row topline="true" bottomline="true">
5881 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5884 \begin_layout Standard
5890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5893 \begin_layout Standard
5899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5902 \begin_layout Standard
5908 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5911 \begin_layout Standard
5917 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5920 \begin_layout Standard
5934 \begin_layout Standard
5938 \begin_layout Standard
5950 \begin_inset Tabular
5951 <lyxtabular version="3" rows="6" columns="5">
5952 <features islongtable="true">
5953 <column alignment="center" valignment="top" leftline="true" width="0">
5954 <column alignment="center" valignment="top" leftline="true" width="0">
5955 <column alignment="center" valignment="top" leftline="true" width="0">
5956 <column alignment="center" valignment="top" leftline="true" width="0">
5957 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5959 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5962 \begin_layout Standard
5963 \begin_inset Caption
5965 \begin_layout Standard
5966 long full title with width set to 5\InsetSpace \thinspace{}
5967 cm long full title with width set to
5968 5\InsetSpace \thinspace{}
5969 cm long full title with width set to 5\InsetSpace \thinspace{}
5974 \begin_layout Standard
5975 caption with width\InsetSpace \thinspace{}
5976 =\InsetSpace \thinspace{}
5977 5\InsetSpace \thinspace{}
5992 \begin_layout Standard
6008 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6011 \begin_layout Standard
6017 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6020 \begin_layout Standard
6026 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6029 \begin_layout Standard
6035 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6038 \begin_layout Standard
6045 <row topline="true">
6046 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6049 \begin_layout Standard
6055 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6058 \begin_layout Standard
6064 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6067 \begin_layout Standard
6073 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6076 \begin_layout Standard
6082 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6085 \begin_layout Standard
6092 <row topline="true">
6093 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6096 \begin_layout Standard
6102 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6105 \begin_layout Standard
6111 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6114 \begin_layout Standard
6120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6123 \begin_layout Standard
6129 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6132 \begin_layout Standard
6139 <row topline="true">
6140 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6143 \begin_layout Standard
6149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6152 \begin_layout Standard
6158 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6161 \begin_layout Standard
6167 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6170 \begin_layout Standard
6176 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6179 \begin_layout Standard
6186 <row topline="true">
6187 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6190 \begin_layout Standard
6196 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6199 \begin_layout Standard
6205 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6208 \begin_layout Standard
6214 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6217 \begin_layout Standard
6223 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6226 \begin_layout Standard
6233 <row topline="true" bottomline="true">
6234 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6237 \begin_layout Standard
6243 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6246 \begin_layout Standard
6252 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6255 \begin_layout Standard
6261 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6264 \begin_layout Standard
6270 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6273 \begin_layout Standard
6287 \begin_layout Standard
6291 \begin_layout Standard
6305 \begin_layout Standard
6306 \begin_inset Note Greyedout
6309 \begin_layout Standard
6314 When the LaTeX-package
6319 \begin_inset LatexCommand index
6320 name "LaTeX-packages ! caption"
6324 is used, as in this document, the full page width is used for the caption
6325 when you use the default value of 4\InsetSpace \thinspace{}
6333 To get in this case exactly a 4\InsetSpace \thinspace{}
6334 in wide caption, you can either use a value
6335 slightly different from 4.0\InsetSpace \thinspace{}
6337 3.99\InsetSpace \thinspace{}
6338 in, or the LaTeX-command
6342 captionsetup{width=value}
6344 that is provided by the
6356 \begin_layout Subsubsection
6357 Different Captions for Table Pages
6358 \begin_inset LatexCommand index
6359 name "Longtables ! Different Captions for Pages"
6366 \begin_layout Standard
6367 When the other captions should differ from the one of the first table page,
6368 insert a caption with a non-empty short title in a dummy caption row marked
6370 The caption used for the other table pages is inserted as caption without
6371 a short title in a dummy caption row that is marked as main header.
6372 When this caption shouldn't include the table number, use the command
6375 \begin_layout Standard
6380 caption*{caption text}
6383 \begin_layout Standard
6384 instead of LyX's caption box.
6385 The label to reference the table is inserted into the caption of the first
6389 \begin_inset LatexCommand ref
6390 reference "tab:DiffCaptions"
6394 is an example for a longtable with different heading where the second caption
6395 doesn't include the table number.
6398 \begin_layout Standard
6400 \begin_inset Tabular
6401 <lyxtabular version="3" rows="60" columns="3">
6402 <features islongtable="true">
6403 <column alignment="left" valignment="top" leftline="true" width="0cm">
6404 <column alignment="left" valignment="top" rightline="true" width="0pt">
6405 <column alignment="right" valignment="top" rightline="true" width="0pt">
6406 <row endfirsthead="true">
6407 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6410 \begin_layout Standard
6411 \begin_inset Caption
6413 \begin_layout Standard
6415 \begin_inset LatexCommand label
6416 name "tab:DiffCaptions"
6424 \begin_layout Standard
6439 \begin_layout Standard
6455 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6458 \begin_layout Standard
6464 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6467 \begin_layout Standard
6474 <row topline="true" bottomline="true" endfirsthead="true">
6475 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6478 \begin_layout Standard
6481 Example Phone List (ignore the names)
6486 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6489 \begin_layout Standard
6495 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6498 \begin_layout Standard
6505 <row topline="true" bottomline="true" endfirsthead="true">
6506 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6509 \begin_layout Standard
6517 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6520 \begin_layout Standard
6526 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6529 \begin_layout Standard
6538 <row bottomline="true" endhead="true">
6539 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6542 \begin_layout Standard
6546 \begin_layout Standard
6550 caption*{Continued Example Phone List}
6564 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6567 \begin_layout Standard
6573 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6576 \begin_layout Standard
6583 <row topline="true" bottomline="true" endhead="true">
6584 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6587 \begin_layout Standard
6595 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6598 \begin_layout Standard
6604 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6607 \begin_layout Standard
6614 <row topline="true" bottomline="true" endhead="true">
6615 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6618 \begin_layout Standard
6626 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6629 \begin_layout Standard
6635 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6638 \begin_layout Standard
6647 <row topline="true" bottomline="true" endfoot="true">
6648 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
6651 \begin_layout Standard
6652 continued on next page
6657 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6660 \begin_layout Standard
6666 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6669 \begin_layout Standard
6677 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6680 \begin_layout Standard
6688 <cell alignment="center" valignment="top" topline="true" usebox="none">
6691 \begin_layout Standard
6697 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6700 \begin_layout Standard
6708 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6711 \begin_layout Standard
6719 <cell alignment="center" valignment="top" topline="true" usebox="none">
6722 \begin_layout Standard
6728 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6731 \begin_layout Standard
6739 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6742 \begin_layout Standard
6750 <cell alignment="center" valignment="top" topline="true" usebox="none">
6753 \begin_layout Standard
6759 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6762 \begin_layout Standard
6770 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6773 \begin_layout Standard
6781 <cell alignment="center" valignment="top" topline="true" usebox="none">
6784 \begin_layout Standard
6790 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6793 \begin_layout Standard
6801 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6804 \begin_layout Standard
6812 <cell alignment="center" valignment="top" topline="true" usebox="none">
6815 \begin_layout Standard
6821 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6824 \begin_layout Standard
6832 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6835 \begin_layout Standard
6843 <cell alignment="center" valignment="top" topline="true" usebox="none">
6846 \begin_layout Standard
6852 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6855 \begin_layout Standard
6863 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6866 \begin_layout Standard
6874 <cell alignment="center" valignment="top" topline="true" usebox="none">
6877 \begin_layout Standard
6883 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6886 \begin_layout Standard
6894 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6897 \begin_layout Standard
6905 <cell alignment="center" valignment="top" topline="true" usebox="none">
6908 \begin_layout Standard
6914 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6917 \begin_layout Standard
6925 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6928 \begin_layout Standard
6936 <cell alignment="center" valignment="top" topline="true" usebox="none">
6939 \begin_layout Standard
6945 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6948 \begin_layout Standard
6956 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6959 \begin_layout Standard
6967 <cell alignment="center" valignment="top" topline="true" usebox="none">
6970 \begin_layout Standard
6976 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6979 \begin_layout Standard
6987 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6990 \begin_layout Standard
6998 <cell alignment="center" valignment="top" topline="true" usebox="none">
7001 \begin_layout Standard
7007 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7010 \begin_layout Standard
7018 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7021 \begin_layout Standard
7029 <cell alignment="center" valignment="top" topline="true" usebox="none">
7032 \begin_layout Standard
7038 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7041 \begin_layout Standard
7049 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7052 \begin_layout Standard
7060 <cell alignment="center" valignment="top" topline="true" usebox="none">
7063 \begin_layout Standard
7069 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7072 \begin_layout Standard
7080 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7083 \begin_layout Standard
7091 <cell alignment="center" valignment="top" topline="true" usebox="none">
7094 \begin_layout Standard
7100 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7103 \begin_layout Standard
7111 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7114 \begin_layout Standard
7123 \begin_layout Standard
7134 <cell alignment="center" valignment="top" topline="true" usebox="none">
7137 \begin_layout Standard
7143 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7146 \begin_layout Standard
7154 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7157 \begin_layout Standard
7165 <cell alignment="center" valignment="top" topline="true" usebox="none">
7168 \begin_layout Standard
7174 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7177 \begin_layout Standard
7185 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7188 \begin_layout Standard
7196 <cell alignment="center" valignment="top" topline="true" usebox="none">
7199 \begin_layout Standard
7205 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7208 \begin_layout Standard
7216 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7219 \begin_layout Standard
7227 <cell alignment="center" valignment="top" topline="true" usebox="none">
7230 \begin_layout Standard
7236 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7239 \begin_layout Standard
7247 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7250 \begin_layout Standard
7258 <cell alignment="center" valignment="top" topline="true" usebox="none">
7261 \begin_layout Standard
7267 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7270 \begin_layout Standard
7278 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7281 \begin_layout Standard
7289 <cell alignment="center" valignment="top" topline="true" usebox="none">
7292 \begin_layout Standard
7298 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7301 \begin_layout Standard
7309 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7312 \begin_layout Standard
7320 <cell alignment="center" valignment="top" topline="true" usebox="none">
7323 \begin_layout Standard
7329 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7332 \begin_layout Standard
7340 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7343 \begin_layout Standard
7351 <cell alignment="center" valignment="top" topline="true" usebox="none">
7354 \begin_layout Standard
7360 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7363 \begin_layout Standard
7371 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7374 \begin_layout Standard
7382 <cell alignment="center" valignment="top" topline="true" usebox="none">
7385 \begin_layout Standard
7391 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7394 \begin_layout Standard
7402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7405 \begin_layout Standard
7413 <cell alignment="center" valignment="top" topline="true" usebox="none">
7416 \begin_layout Standard
7422 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7425 \begin_layout Standard
7433 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7436 \begin_layout Standard
7444 <cell alignment="center" valignment="top" topline="true" usebox="none">
7447 \begin_layout Standard
7453 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7456 \begin_layout Standard
7464 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7467 \begin_layout Standard
7475 <cell alignment="center" valignment="top" topline="true" usebox="none">
7478 \begin_layout Standard
7484 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7487 \begin_layout Standard
7495 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7498 \begin_layout Standard
7506 <cell alignment="center" valignment="top" topline="true" usebox="none">
7509 \begin_layout Standard
7515 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7518 \begin_layout Standard
7526 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7529 \begin_layout Standard
7537 <cell alignment="center" valignment="top" topline="true" usebox="none">
7540 \begin_layout Standard
7546 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7549 \begin_layout Standard
7557 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7560 \begin_layout Standard
7568 <cell alignment="center" valignment="top" topline="true" usebox="none">
7571 \begin_layout Standard
7577 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7580 \begin_layout Standard
7588 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7591 \begin_layout Standard
7599 <cell alignment="center" valignment="top" topline="true" usebox="none">
7602 \begin_layout Standard
7608 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7611 \begin_layout Standard
7618 <row bottomline="true">
7619 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7622 \begin_layout Standard
7630 <cell alignment="center" valignment="top" topline="true" usebox="none">
7633 \begin_layout Standard
7639 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7642 \begin_layout Standard
7649 <row bottomline="true">
7650 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7653 \begin_layout Standard
7659 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
7662 \begin_layout Standard
7668 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7671 \begin_layout Standard
7679 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7682 \begin_layout Standard
7690 <cell alignment="center" valignment="top" topline="true" usebox="none">
7693 \begin_layout Standard
7699 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7702 \begin_layout Standard
7710 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7713 \begin_layout Standard
7721 <cell alignment="center" valignment="top" topline="true" usebox="none">
7724 \begin_layout Standard
7730 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7733 \begin_layout Standard
7741 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7744 \begin_layout Standard
7752 <cell alignment="center" valignment="top" topline="true" usebox="none">
7755 \begin_layout Standard
7761 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7764 \begin_layout Standard
7772 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7775 \begin_layout Standard
7783 <cell alignment="center" valignment="top" topline="true" usebox="none">
7786 \begin_layout Standard
7792 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7795 \begin_layout Standard
7803 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7806 \begin_layout Standard
7814 <cell alignment="center" valignment="top" topline="true" usebox="none">
7817 \begin_layout Standard
7823 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7826 \begin_layout Standard
7834 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7837 \begin_layout Standard
7845 <cell alignment="center" valignment="top" topline="true" usebox="none">
7848 \begin_layout Standard
7854 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7857 \begin_layout Standard
7865 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7868 \begin_layout Standard
7876 <cell alignment="center" valignment="top" topline="true" usebox="none">
7879 \begin_layout Standard
7885 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7888 \begin_layout Standard
7896 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7899 \begin_layout Standard
7907 <cell alignment="center" valignment="top" topline="true" usebox="none">
7910 \begin_layout Standard
7916 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7919 \begin_layout Standard
7927 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7930 \begin_layout Standard
7938 <cell alignment="center" valignment="top" topline="true" usebox="none">
7941 \begin_layout Standard
7947 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7950 \begin_layout Standard
7958 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7961 \begin_layout Standard
7969 <cell alignment="center" valignment="top" topline="true" usebox="none">
7972 \begin_layout Standard
7978 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7981 \begin_layout Standard
7989 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7992 \begin_layout Standard
8000 <cell alignment="center" valignment="top" topline="true" usebox="none">
8003 \begin_layout Standard
8009 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8012 \begin_layout Standard
8020 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8023 \begin_layout Standard
8031 <cell alignment="center" valignment="top" topline="true" usebox="none">
8034 \begin_layout Standard
8040 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8043 \begin_layout Standard
8051 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8054 \begin_layout Standard
8062 <cell alignment="center" valignment="top" topline="true" usebox="none">
8065 \begin_layout Standard
8071 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8074 \begin_layout Standard
8082 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8085 \begin_layout Standard
8093 <cell alignment="center" valignment="top" topline="true" usebox="none">
8096 \begin_layout Standard
8102 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8105 \begin_layout Standard
8113 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8116 \begin_layout Standard
8124 <cell alignment="center" valignment="top" topline="true" usebox="none">
8127 \begin_layout Standard
8133 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8136 \begin_layout Standard
8144 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8147 \begin_layout Standard
8155 <cell alignment="center" valignment="top" topline="true" usebox="none">
8158 \begin_layout Standard
8164 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8167 \begin_layout Standard
8175 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8178 \begin_layout Standard
8186 <cell alignment="center" valignment="top" topline="true" usebox="none">
8189 \begin_layout Standard
8195 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8198 \begin_layout Standard
8206 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8209 \begin_layout Standard
8217 <cell alignment="center" valignment="top" topline="true" usebox="none">
8220 \begin_layout Standard
8226 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8229 \begin_layout Standard
8237 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8240 \begin_layout Standard
8248 <cell alignment="center" valignment="top" topline="true" usebox="none">
8251 \begin_layout Standard
8257 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8260 \begin_layout Standard
8267 <row bottomline="true">
8268 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8271 \begin_layout Standard
8279 <cell alignment="center" valignment="top" topline="true" usebox="none">
8282 \begin_layout Standard
8288 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8291 \begin_layout Standard
8298 <row bottomline="true" endlastfoot="true">
8299 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
8302 \begin_layout Standard
8308 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8311 \begin_layout Standard
8317 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8320 \begin_layout Standard
8334 \begin_layout Section
8335 Special Longtable Issues
8336 \begin_inset LatexCommand label
8337 name "sec:Special-Longtable-Issues"
8344 \begin_layout Subsection
8345 Longtable Calculation
8346 \begin_inset LatexCommand index
8347 name "Longtables ! Calculation"
8354 \begin_layout Standard
8355 LaTeX calculates the height of table pages and their page breaks using so
8357 Chunks are pieces of the tables that are at once in LaTeX's memory.
8358 The default value is historically set to only 20 table rows.
8359 If you are using longtables with many pages this may slow down the creation
8361 You can safely increase the chunk size to values of 100-1000 by adding
8362 this command line to your document preamble:
8365 \begin_layout Standard
8370 setcounter{LTchunksize}{100}
8373 \begin_layout Subsection
8374 Floats and Longtables
8375 \begin_inset LatexCommand index
8376 name "Longtables ! Floats"
8383 \begin_layout Standard
8384 There might be problems when a float appears on the same page where a longtable
8386 To avoid such situation, add the command
8392 as ERT before your longtable.
8395 \begin_layout Subsection
8397 \begin_inset LatexCommand index
8398 name "Longtables ! Forced Page Breaks"
8405 \begin_layout Standard
8406 By default tables are only broken between rows.
8407 If you have a cell with multiples lines and want to have a page break within
8408 the cell, insert the new line command
8409 \begin_inset Quotes eld
8421 \begin_inset Quotes erd
8424 as ERT at this point of the cell where it should be broken.
8433 command you have to insert in ERT so many
8434 \begin_inset Quotes eld
8442 \begin_inset Quotes erd
8445 characters like the number of the following table columns.
8450 is the character to separate table cells.
8451 Write in ERT after each
8455 the content of the corresponding following cell and delete the content
8466 command, insert so many
8470 characters like the number of table columns before the current column.
8471 In Table\InsetSpace ~
8473 \begin_inset LatexCommand ref
8474 reference "tab:ForcedPagebreak"
8478 the cell that should be broken is in the second column followed by another
8480 Therefore the following command was inserted in the cell as ERT behind
8482 \begin_inset Quotes eld
8490 \begin_inset Quotes erd
8496 \begin_layout Standard
8508 \begin_layout Standard
8510 \begin_inset Quotes eld
8514 \begin_inset Quotes erd
8517 in the third columns of the row was deleted.
8518 If your footer row of the longtable has for a certain reason no upper line
8519 but you would have a horizontal line where the cell is broken, use this
8523 \begin_layout Standard
8537 \begin_layout Standard
8538 When the cell to be broken is in the last column, the command
8541 \begin_layout Standard
8548 parf\SpecialChar \textcompwordmark{}
8552 \begin_layout Standard
8553 must be inserted as ERT at the beginning of the cell.
8554 This assures that the part of the cell that will be displayed on the new
8555 page appears with the full width.
8558 \begin_layout Standard
8560 \begin_inset Tabular
8561 <lyxtabular version="3" rows="39" columns="3">
8562 <features islongtable="true">
8563 <column alignment="left" valignment="top" leftline="true" width="0cm">
8564 <column alignment="left" valignment="top" rightline="true" width="3cm">
8565 <column alignment="right" valignment="top" rightline="true" width="0pt">
8566 <row endfirsthead="true">
8567 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8570 \begin_layout Standard
8571 \begin_inset Caption
8573 \begin_layout Standard
8574 Table with forced page break in table cell
8575 \begin_inset LatexCommand label
8576 name "tab:ForcedPagebreak"
8584 \begin_layout Standard
8585 Table with forced page break in table cell
8599 \begin_layout Standard
8615 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8618 \begin_layout Standard
8624 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8627 \begin_layout Standard
8634 <row topline="true" bottomline="true" endfirsthead="true">
8635 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8638 \begin_layout Standard
8641 Example Phone List (ignore the names)
8646 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8649 \begin_layout Standard
8655 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8658 \begin_layout Standard
8665 <row topline="true" bottomline="true" endfirsthead="true">
8666 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8669 \begin_layout Standard
8677 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8680 \begin_layout Standard
8686 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8689 \begin_layout Standard
8698 <row bottomline="true" endhead="true">
8699 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8702 \begin_layout Standard
8706 \begin_layout Standard
8710 caption*{Continued table with forced page break in table cell}
8724 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8727 \begin_layout Standard
8733 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8736 \begin_layout Standard
8743 <row topline="true" bottomline="true" endhead="true">
8744 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8747 \begin_layout Standard
8755 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8758 \begin_layout Standard
8764 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8767 \begin_layout Standard
8774 <row topline="true" bottomline="true" endhead="true">
8775 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8778 \begin_layout Standard
8786 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8789 \begin_layout Standard
8795 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8798 \begin_layout Standard
8807 <row topline="true" bottomline="true" endfoot="true">
8808 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
8811 \begin_layout Standard
8812 continued on next page
8817 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8820 \begin_layout Standard
8826 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8829 \begin_layout Standard
8837 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8840 \begin_layout Standard
8848 <cell alignment="center" valignment="top" topline="true" usebox="none">
8851 \begin_layout Standard
8857 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8860 \begin_layout Standard
8868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8871 \begin_layout Standard
8879 <cell alignment="center" valignment="top" topline="true" usebox="none">
8882 \begin_layout Standard
8888 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8891 \begin_layout Standard
8899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8902 \begin_layout Standard
8910 <cell alignment="center" valignment="top" topline="true" usebox="none">
8913 \begin_layout Standard
8919 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8922 \begin_layout Standard
8930 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8933 \begin_layout Standard
8941 <cell alignment="center" valignment="top" topline="true" usebox="none">
8944 \begin_layout Standard
8950 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8953 \begin_layout Standard
8961 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8964 \begin_layout Standard
8972 <cell alignment="center" valignment="top" topline="true" usebox="none">
8975 \begin_layout Standard
8981 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8984 \begin_layout Standard
8992 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8995 \begin_layout Standard
9003 <cell alignment="center" valignment="top" topline="true" usebox="none">
9006 \begin_layout Standard
9012 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9015 \begin_layout Standard
9023 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9026 \begin_layout Standard
9034 <cell alignment="center" valignment="top" topline="true" usebox="none">
9037 \begin_layout Standard
9043 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9046 \begin_layout Standard
9054 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9057 \begin_layout Standard
9065 <cell alignment="center" valignment="top" topline="true" usebox="none">
9068 \begin_layout Standard
9074 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9077 \begin_layout Standard
9085 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9088 \begin_layout Standard
9096 <cell alignment="center" valignment="top" topline="true" usebox="none">
9099 \begin_layout Standard
9105 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9108 \begin_layout Standard
9116 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9119 \begin_layout Standard
9127 <cell alignment="center" valignment="top" topline="true" usebox="none">
9130 \begin_layout Standard
9136 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9139 \begin_layout Standard
9147 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9150 \begin_layout Standard
9158 <cell alignment="center" valignment="top" topline="true" usebox="none">
9161 \begin_layout Standard
9167 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9170 \begin_layout Standard
9178 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9181 \begin_layout Standard
9189 <cell alignment="center" valignment="top" topline="true" usebox="none">
9192 \begin_layout Standard
9198 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9201 \begin_layout Standard
9209 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9212 \begin_layout Standard
9220 <cell alignment="center" valignment="top" topline="true" usebox="none">
9223 \begin_layout Standard
9229 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9232 \begin_layout Standard
9240 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9243 \begin_layout Standard
9251 <cell alignment="center" valignment="top" topline="true" usebox="none">
9254 \begin_layout Standard
9260 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9263 \begin_layout Standard
9271 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9274 \begin_layout Standard
9282 <cell alignment="center" valignment="top" topline="true" usebox="none">
9285 \begin_layout Standard
9291 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9294 \begin_layout Standard
9302 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9305 \begin_layout Standard
9313 <cell alignment="center" valignment="top" topline="true" usebox="none">
9316 \begin_layout Standard
9322 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9325 \begin_layout Standard
9333 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9336 \begin_layout Standard
9344 <cell alignment="center" valignment="top" topline="true" usebox="none">
9347 \begin_layout Standard
9353 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9356 \begin_layout Standard
9364 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9367 \begin_layout Standard
9375 <cell alignment="center" valignment="top" topline="true" usebox="none">
9378 \begin_layout Standard
9384 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9387 \begin_layout Standard
9395 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9398 \begin_layout Standard
9406 <cell alignment="center" valignment="top" topline="true" usebox="none">
9409 \begin_layout Standard
9415 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9418 \begin_layout Standard
9426 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9429 \begin_layout Standard
9437 <cell alignment="center" valignment="top" topline="true" usebox="none">
9440 \begin_layout Standard
9446 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9449 \begin_layout Standard
9457 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9460 \begin_layout Standard
9468 <cell alignment="center" valignment="top" topline="true" usebox="none">
9471 \begin_layout Standard
9477 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9480 \begin_layout Standard
9488 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9491 \begin_layout Standard
9499 <cell alignment="center" valignment="top" topline="true" usebox="none">
9502 \begin_layout Standard
9508 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9511 \begin_layout Standard
9519 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9522 \begin_layout Standard
9530 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9533 \begin_layout Standard
9535 Fürst von Montecompatri, 11.
9536 Fürst von Sulmona und Vivaro, 10.
9537 Fürst von Rossano, 5.
9538 Herzog von Canemorte, 11.
9539 Herzog von Palombara, 5.
9540 Herzog von Castelchiodato,
9544 \begin_layout Standard
9553 \begin_layout Standard
9561 Herzog von Poggionativo, 11.
9562 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
9563 Graf von Valinfreda, 11.
9564 Baron von Cropalati, 11.
9565 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
9570 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9573 \begin_layout Standard
9581 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9584 \begin_layout Standard
9592 <cell alignment="center" valignment="top" topline="true" usebox="none">
9595 \begin_layout Standard
9601 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9604 \begin_layout Standard
9612 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9615 \begin_layout Standard
9623 <cell alignment="center" valignment="top" topline="true" usebox="none">
9626 \begin_layout Standard
9632 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9635 \begin_layout Standard
9643 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9646 \begin_layout Standard
9654 <cell alignment="center" valignment="top" topline="true" usebox="none">
9657 \begin_layout Standard
9663 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9666 \begin_layout Standard
9674 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9677 \begin_layout Standard
9685 <cell alignment="center" valignment="top" topline="true" usebox="none">
9688 \begin_layout Standard
9694 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9697 \begin_layout Standard
9705 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9708 \begin_layout Standard
9716 <cell alignment="center" valignment="top" topline="true" usebox="none">
9719 \begin_layout Standard
9725 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9728 \begin_layout Standard
9736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9739 \begin_layout Standard
9747 <cell alignment="center" valignment="top" topline="true" usebox="none">
9750 \begin_layout Standard
9756 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9759 \begin_layout Standard
9767 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9770 \begin_layout Standard
9778 <cell alignment="center" valignment="top" topline="true" usebox="none">
9781 \begin_layout Standard
9787 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9790 \begin_layout Standard
9797 <row bottomline="true">
9798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9801 \begin_layout Standard
9809 <cell alignment="center" valignment="top" topline="true" usebox="none">
9812 \begin_layout Standard
9818 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9821 \begin_layout Standard
9828 <row endlastfoot="true">
9829 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9832 \begin_layout Standard
9838 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9841 \begin_layout Standard
9847 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9850 \begin_layout Standard
9864 \begin_layout Section
9865 Multiple Lines Columns and Rows
9868 \begin_layout Subsection
9869 Multiple Lines in Table Cells
9870 \begin_inset LatexCommand label
9871 name "sub:Multiple-Lines-in"
9876 \begin_inset LatexCommand index
9877 name "Multiple Lines in Table Cells"
9882 \begin_inset LatexCommand index
9883 name "Table ! Linebreaks"
9890 \begin_layout Standard
9892 \begin_inset Float table
9898 \begin_layout Standard
9899 \begin_inset Caption
9901 \begin_layout Standard
9902 \begin_inset LatexCommand label
9903 name "tab:Table-with-multiple"
9907 Table with multiple lines in cells
9915 \begin_layout Standard
9917 \begin_inset Tabular
9918 <lyxtabular version="3" rows="3" columns="3">
9920 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
9921 <column alignment="center" valignment="middle" leftline="true" width="0">
9922 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
9923 <row topline="true">
9924 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9927 \begin_layout Standard
9932 \begin_layout Standard
9946 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9949 \begin_layout Standard
9955 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9958 \begin_layout Standard
9965 <row topline="true">
9966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9969 \begin_layout Standard
9975 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9978 \begin_layout Standard
9984 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9987 \begin_layout Standard
9994 <row topline="true" bottomline="true">
9995 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9998 \begin_layout Standard
10004 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10007 \begin_layout Standard
10013 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10016 \begin_layout Standard
10035 \begin_layout Standard
10036 Adjusting a fixed width for a column, enables to enter text as a paragraph
10037 with multiple lines and hyphenations.
10040 \begin_layout Standard
10041 To produce Table\InsetSpace ~
10043 \begin_inset LatexCommand ref
10044 reference "tab:Table-with-multiple"
10048 , create a 3×3 table, mark the first cell and right-click on it.
10049 In the appearing table dialog we set a cell width of 2.5\InsetSpace \thinspace{}
10050 cm and choose centered
10051 for the vertical and horizontal alignment.
10052 The vertical alignment is used for all cells of the row.
10053 As our text is smaller than than 2.5\InsetSpace \thinspace{}
10054 cm, only one line will appear.
10055 To get two lines, we add a line break with the command
10058 \begin_layout Standard
10066 \begin_layout Standard
10068 If the text is wider than the set cell width it will automatically be broken
10072 \begin_layout Standard
10073 If you have a long word in a cell with a fixed width, it cannot be hyphenated
10074 by LaTeX if it is the first entry.
10075 Therefore you need to insert something, to make the word not being the
10076 first entry: Add the command
10079 \begin_layout Standard
10087 \begin_layout Standard
10088 in ERT before the word.
10089 As the space is zero, it doesn't change the output.
10092 \begin_inset LatexCommand ref
10093 reference "tab:Table-with-and"
10100 \begin_layout Standard
10101 \begin_inset Float table
10107 \begin_layout Standard
10108 \begin_inset Caption
10110 \begin_layout Standard
10111 \begin_inset LatexCommand label
10112 name "tab:Table-with-and"
10116 Table with and without hyphenation
10124 \begin_layout Standard
10128 \begin_inset Tabular
10129 <lyxtabular version="3" rows="3" columns="3">
10131 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10132 <column alignment="center" valignment="middle" leftline="true" width="0">
10133 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
10134 <row topline="true">
10135 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10138 \begin_layout Standard
10139 verylongtablecellword
10144 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10147 \begin_layout Standard
10153 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10156 \begin_layout Standard
10163 <row topline="true">
10164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10167 \begin_layout Standard
10173 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10176 \begin_layout Standard
10182 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10185 \begin_layout Standard
10192 <row topline="true" bottomline="true">
10193 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10196 \begin_layout Standard
10202 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10205 \begin_layout Standard
10211 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10214 \begin_layout Standard
10228 \begin_inset Tabular
10229 <lyxtabular version="3" rows="3" columns="3">
10231 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10232 <column alignment="center" valignment="middle" leftline="true" width="0">
10233 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
10234 <row topline="true">
10235 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10238 \begin_layout Standard
10242 \begin_layout Standard
10251 verylongtablecellword
10256 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10259 \begin_layout Standard
10265 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10268 \begin_layout Standard
10275 <row topline="true">
10276 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10279 \begin_layout Standard
10285 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10288 \begin_layout Standard
10294 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10297 \begin_layout Standard
10304 <row topline="true" bottomline="true">
10305 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10308 \begin_layout Standard
10314 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10317 \begin_layout Standard
10323 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10326 \begin_layout Standard
10347 \begin_layout Standard
10353 \begin_layout Subsection
10355 \begin_inset LatexCommand label
10356 name "sub:Multicolumns"
10361 \begin_inset LatexCommand index
10362 name "Multicolumns"
10367 \begin_inset LatexCommand index
10368 name "Table ! Multicolumns"
10375 \begin_layout Subsubsection
10379 \begin_layout Standard
10380 To span a cell over multiple columns, mark as much cells within a line that
10381 should be one spanned cell and use either the table-toolbar button
10382 \begin_inset Graphics
10383 filename ../images/tabular-feature_multicolumn.xpm
10385 scaleBeforeRotation
10391 Edit\SpecialChar \menuseparator
10392 Table\SpecialChar \menuseparator
10395 , or right click on the marked cells and choose multicolumn in the appearing
10396 table dialog under the tab
10403 \begin_layout Standard
10404 Multicolumns have there own cell settings.
10405 That means changing cell borders, cell alignment, and the width only affects
10407 Here is an example table with a multicolumn cell in the first row and one
10408 in the last row without the upper border:
10411 \begin_layout Standard
10413 \begin_inset Tabular
10414 <lyxtabular version="3" rows="3" columns="4">
10415 <features firstHeadTopDL="true" firstHeadBottomDL="true">
10416 <column alignment="center" valignment="top" leftline="true" width="0pt">
10417 <column alignment="center" valignment="middle" leftline="true" width="0">
10418 <column alignment="center" valignment="top" leftline="true" width="0in">
10419 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
10420 <row topline="true" bottomline="true">
10421 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10424 \begin_layout Standard
10430 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
10433 \begin_layout Standard
10439 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10442 \begin_layout Standard
10448 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10451 \begin_layout Standard
10458 <row topline="true">
10459 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10462 \begin_layout Standard
10477 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10480 \begin_layout Standard
10486 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10489 \begin_layout Standard
10495 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10498 \begin_layout Standard
10505 <row topline="true" bottomline="true">
10506 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10509 \begin_layout Standard
10515 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10518 \begin_layout Standard
10524 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10527 \begin_layout Standard
10533 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10536 \begin_layout Standard
10550 \begin_layout Subsubsection
10551 Multicolumn Calculations
10552 \begin_inset LatexCommand label
10553 name "sub:Multicolumn-Calculations"
10558 \begin_inset LatexCommand index
10559 name "Multicolumns ! Calculations"
10566 \begin_layout Standard
10567 LyX supports multicolumns directly, but we have to take notice of the cell
10568 width of the columns spanned by the multicolumn cell.
10571 \begin_layout Standard
10572 \begin_inset Float table
10577 \begin_layout Standard
10578 \begin_inset Caption
10580 \begin_layout Standard
10581 \begin_inset LatexCommand label
10582 name "tab:Table-with-centered"
10586 Table with centered multicolumn text above two columns that have exactly
10587 half the width of the multicolumn cell
10588 \begin_inset OptArg
10591 \begin_layout Standard
10592 Perfect multicolumn table
10605 \begin_layout Standard
10607 \begin_inset Tabular
10608 <lyxtabular version="3" rows="3" columns="3">
10610 <column alignment="center" valignment="middle" leftline="true" width="0" special=">{\centering}m{1.25cm-6.2pt}">
10611 <column alignment="center" valignment="middle" leftline="true" width="0">
10612 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10613 <row topline="true">
10614 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
10617 \begin_layout Standard
10618 multiple lines multicolumn
10623 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10626 \begin_layout Standard
10632 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10635 \begin_layout Standard
10642 <row topline="true">
10643 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10646 \begin_layout Standard
10652 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10655 \begin_layout Standard
10661 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10664 \begin_layout Standard
10671 <row topline="true" bottomline="true">
10672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10675 \begin_layout Standard
10681 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10684 \begin_layout Standard
10690 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10693 \begin_layout Standard
10712 \begin_layout Standard
10713 To create for example Table\InsetSpace ~
10715 \begin_inset LatexCommand ref
10716 reference "tab:Table-with-centered"
10720 , mark the first two cells in the first row of a 3×3 table and right-click
10722 Now choose for this cell
10730 and a width of 2.5\InsetSpace \thinspace{}
10731 cm in the table dialog.
10732 The spanned columns should have exactly half the width of the multicolumn
10733 cell, so that you would adjust a width of 1.25\InsetSpace \thinspace{}
10734 cm for the first column.
10735 The second column has then automatically a width of 1.25\InsetSpace \thinspace{}
10737 width - width of first column).
10738 This was done for Table\InsetSpace ~
10740 \begin_inset LatexCommand ref
10741 reference "tab:Table-without-half"
10748 \begin_layout Standard
10749 \begin_inset Float table
10754 \begin_layout Standard
10755 \begin_inset Caption
10757 \begin_layout Standard
10758 \begin_inset LatexCommand label
10759 name "tab:Table-without-half"
10763 Table where the spanned table columns have not exactly half the width of
10764 the multicolumn cell
10765 \begin_inset OptArg
10768 \begin_layout Standard
10769 Imperfect multicolumn table
10782 \begin_layout Standard
10784 \begin_inset Tabular
10785 <lyxtabular version="3" rows="3" columns="3">
10787 <column alignment="center" valignment="top" leftline="true" width="1.25cm">
10788 <column alignment="center" valignment="top" leftline="true" width="0">
10789 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10790 <row topline="true" bottomline="true">
10791 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
10794 \begin_layout Standard
10795 multiple lines multicolumn
10800 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10803 \begin_layout Standard
10809 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10812 \begin_layout Standard
10819 <row topline="true">
10820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10823 \begin_layout Standard
10829 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10832 \begin_layout Standard
10838 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10841 \begin_layout Standard
10848 <row topline="true" bottomline="true">
10849 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10852 \begin_layout Standard
10858 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10861 \begin_layout Standard
10867 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10870 \begin_layout Standard
10889 \begin_layout Standard
10890 You can see that the first column has not the half width of the multicolumn
10891 cell, it is a bit bigger.
10892 The reason is that the given width of a cell
10893 \begin_inset Formula $W_{g}$
10896 is not its total width
10897 \begin_inset Formula $W_{\mathrm{tot}}$
10900 because a cell is always a bit larger than its given width.
10901 Appendix\InsetSpace ~
10903 \begin_inset LatexCommand eqref
10904 reference "cha:Explanation-of-Equation"
10908 explains it in detail.
10911 \begin_layout Standard
10912 The needed given width
10913 \begin_inset Formula $W_{g\, n}$
10920 columns are spanned can be calculated, so that each column has a total
10922 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
10926 \begin_inset Formula \begin{equation}
10927 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)·(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
10934 \begin_layout Standard
10935 In our case we have
10936 \begin_inset Formula $n=2$
10940 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
10943 cm and the default values for the lengths, so that equation
10944 \begin_inset LatexCommand ref
10950 \begin_inset Formula \begin{equation}
10951 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
10958 \begin_layout Standard
10959 To enable calculations in LaTeX, the LaTeX-package
10963 must be loaded with the document preamble line
10964 \begin_inset LatexCommand index
10965 name "LaTeX-packages ! calc"
10972 \begin_layout Standard
10980 \begin_layout Standard
10981 LyX does not allow to calculate lengths in the width-field of the table
10983 Therefore you have to format the column by inserting a LaTeX-argument in
10985 Here is an overview about the arguments:
10988 \begin_layout Itemize
10993 creates cell with a fixed width, its text is vertically top-aligned
10996 \begin_layout Itemize
11001 creates cell with a fixed width, its text is vertically centered
11004 \begin_layout Itemize
11009 creates cell with a fixed width, its text is vertically bottom-aligned
11012 \begin_layout Standard
11013 By entering a LaTeX-argument, all cell settings set in the table dialog
11017 \begin_layout Standard
11018 \begin_inset Note Greyedout
11021 \begin_layout Standard
11026 Due to a bug, LyX shows the overwritten settings anyway.
11034 \begin_layout Standard
11035 As the text should be horizontally centered, the command
11042 You can now enter the following LaTeX-argument for the first spanned column:
11045 \begin_layout Standard
11050 centering}m{1.25cm-6.2pt}
11053 \begin_layout Standard
11058 means, that the commands inside the braces are applied before the cell
11062 \begin_layout Standard
11063 Although we have chosen centered alignment for the text of the multicolumn
11064 cell, it is still left aligned.
11065 This is because LyX only applies the alignment to single columns.
11066 So we have to use for the multicolumn the LaTeX-argument
11069 \begin_layout Standard
11077 \begin_layout Subsection
11079 \begin_inset LatexCommand index
11085 \begin_inset LatexCommand index
11086 name "Table ! Multirows"
11091 \begin_inset LatexCommand index
11092 name "LaTeX-packages ! multirow"
11099 \begin_layout Standard
11100 In contrary to multicolumns multirows are not yet supported by LyX so a
11101 bit of ERT needs to be used.
11102 To use multirows load the LaTeX-package
11106 in your document preamble with the command
11109 \begin_layout Standard
11114 usepackage{multirow}
11117 \begin_layout Standard
11118 Multirows are created with the command
11121 \begin_layout Standard
11126 multirow{number of rows}{cell width}{cell entry}
11129 \begin_layout Standard
11130 To create the following table:
11133 \begin_layout Standard
11138 \begin_layout Standard
11152 \begin_inset Tabular
11153 <lyxtabular version="3" rows="3" columns="3">
11155 <column alignment="center" valignment="top" leftline="true" width="0">
11156 <column alignment="center" valignment="top" leftline="true" width="0">
11157 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
11158 <row topline="true">
11159 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11162 \begin_layout Standard
11168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11171 \begin_layout Standard
11177 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11180 \begin_layout Standard
11187 <row topline="true">
11188 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11191 \begin_layout Standard
11195 \begin_layout Standard
11199 multirow{2}{2.5cm}{
11208 \begin_layout Standard
11220 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11223 \begin_layout Standard
11229 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11232 \begin_layout Standard
11239 <row topline="true" bottomline="true">
11240 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11243 \begin_layout Standard
11249 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11252 \begin_layout Standard
11258 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11261 \begin_layout Standard
11276 \begin_layout Standard
11292 \begin_layout Standard
11293 create a 3×3 table.
11294 To get rid of the line above the last cell in the first column, the cell
11295 is marked as multicolumn and the upper border is unset.
11296 The multirow is now created in the second row of the first column by inserting
11300 \begin_layout Standard
11305 multirow{2}{2.5cm}{
11308 \begin_layout Standard
11310 According to the command parameters the multirow spans now two rows and
11311 has a width of 2.5\InsetSpace \thinspace{}
11313 The content of the multirow cell follows outside the ERT box and the command
11314 is finished with a right brace
11318 in another ERT-box behind the text.
11321 \begin_layout Standard
11328 left-aligns its content by default.
11329 To override the default, renew the command
11338 \begin_layout Standard
11350 \begin_layout Standard
11351 in ERT in the document preamble.
11352 Then all entries of multirow cells in the document are centered.
11353 If centering is only needed for several tables, you can renew the command
11354 in an ERT box just before the table instead of the preamble.
11355 If the text should be right-aligned, replace
11368 To return to left-alignment
11377 \begin_layout Section
11379 \begin_inset LatexCommand label
11380 name "sec:Formal-Tables"
11385 \begin_inset LatexCommand index
11386 name "Table ! Formal"
11393 \begin_layout Standard
11394 Tables are often typeset in books similar to Table\InsetSpace ~
11396 \begin_inset LatexCommand ref
11397 reference "tab:Example-booktabs-table"
11402 This kind of tables is called
11403 \begin_inset Quotes eld
11411 \begin_inset Quotes erd
11415 To make a table a formal table use the option
11423 tab of the table dialog.
11426 \begin_layout Standard
11427 \begin_inset Float table
11433 \begin_layout Standard
11434 \begin_inset Caption
11436 \begin_layout Standard
11437 \begin_inset LatexCommand label
11438 name "tab:Example-booktabs-table"
11442 Example booktabs-table
11450 \begin_layout Standard
11452 \begin_inset Tabular
11453 <lyxtabular version="3" rows="8" columns="4">
11454 <features booktabs="true">
11455 <column alignment="center" valignment="top" rightline="true" width="0">
11456 <column alignment="center" valignment="top" width="0">
11457 <column alignment="center" valignment="top" width="0">
11458 <column alignment="center" valignment="top" width="0">
11459 <row topline="true">
11460 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11463 \begin_layout Standard
11469 <cell alignment="center" valignment="top" topline="true" usebox="none">
11472 \begin_layout Standard
11474 \begin_inset Formula $\,$
11482 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
11485 \begin_layout Standard
11487 \begin_inset Formula $\,$
11495 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11498 \begin_layout Standard
11506 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11509 \begin_layout Standard
11513 \begin_layout Standard
11526 \begin_layout Standard
11535 Detector thickness [µm]
11540 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11543 \begin_layout Standard
11549 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11552 \begin_layout Standard
11558 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11561 \begin_layout Standard
11568 <row topline="true">
11569 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11572 \begin_layout Standard
11578 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11581 \begin_layout Standard
11587 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11590 \begin_layout Standard
11596 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11599 \begin_layout Standard
11606 <row topspace="default">
11607 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11610 \begin_layout Standard
11611 Spatial resolution [µm]
11616 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11619 \begin_layout Standard
11625 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11628 \begin_layout Standard
11634 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11637 \begin_layout Standard
11644 <row topspace="default">
11645 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11648 \begin_layout Standard
11650 \begin_inset Formula $f_{\mathrm{max}}$
11658 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11661 \begin_layout Standard
11667 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11670 \begin_layout Standard
11676 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11679 \begin_layout Standard
11686 <row topspace="default">
11687 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11690 \begin_layout Standard
11694 \begin_layout Standard
11698 cmidrule(l{10pt}){1-1}
11703 LSF-spatial resolution
11708 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11711 \begin_layout Standard
11717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11720 \begin_layout Standard
11726 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11729 \begin_layout Standard
11737 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11740 \begin_layout Standard
11746 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11749 \begin_layout Standard
11755 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11758 \begin_layout Standard
11764 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11767 \begin_layout Standard
11774 <row bottomline="true">
11775 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11778 \begin_layout Standard
11784 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11787 \begin_layout Standard
11793 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11796 \begin_layout Standard
11802 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11805 \begin_layout Standard
11824 \begin_layout Standard
11825 Spaces to table rows can be added using the
11829 tab of the table dialog as described in section\InsetSpace ~
11831 \begin_inset LatexCommand ref
11832 reference "sub:Row-Spacing"
11839 \begin_layout Standard
11840 In contrary to normal tables, formal tables have no vertical table lines.
11841 The horizontal table lines can be set like for normal tables but they appear
11842 with different width in the output:
11844 The first and the last table line have
11845 a default width of 0.08\InsetSpace \thinspace{}
11846 em while the other lines have a default width of
11847 0.05\InsetSpace \thinspace{}
11851 \begin_layout Standard
11852 The default widths can be changed with the following preamble lines
11855 \begin_layout Standard
11875 \begin_layout Standard
11876 This example is for the first line, the so called
11881 If you want to change the width for the last line, replace
11890 To change the width for the other lines replace
11899 You can use all units listed in appendix\InsetSpace ~
11901 \begin_inset LatexCommand ref
11902 reference "cha:Units-available-in"
11909 \begin_layout Standard
11910 Lines that don't span over all table columns can be created by setting a
11911 table line for multicolumn cells.
11912 LyX will then internally use the command
11918 to create this line.
11922 \begin_layout Standard
11927 cmidrule[width](trim){startcol-endcol}
11930 \begin_layout Standard
11937 are are currently not supported by LyX so you have to use ERT to be able
11945 s can manually be created by inserting the command as ERT as first cell
11946 entry of the first cell of a row.
11947 The line is then drawn in the output above the current row.
11950 \begin_layout Standard
11951 The default for the width is 0.03\InsetSpace \thinspace{}
11953 Startcol is the number of the column where the line starts and endcol the
11954 column number where the line ends.
11955 The endcol always needs to be specified, also when the line should span
11957 The optional parameter trim could be either
11965 where the trimwidth is also optional.
11966 Using for example the parameter
11970 means that the line is trimmed from its left end by 2\InsetSpace \thinspace{}
11972 If you don't specify the trimwidth the lines are trimmed by the default
11973 of 0.5\InsetSpace \thinspace{}
11977 \begin_layout Standard
11978 \begin_inset VSpace bigskip
11983 \begin_inset LatexCommand ref
11984 reference "tab:Example-booktabs-table"
11988 was created using the commands
11991 \begin_layout Standard
12001 \begin_layout Standard
12002 at the beginning of the in the second row and
12005 \begin_layout Standard
12010 cmidrule(l{10pt}){1-1}
12013 \begin_layout Standard
12017 \begin_layout Standard
12018 \begin_inset VSpace bigskip
12024 \begin_layout Standard
12025 You might want to have overlapping
12031 s like in Table\InsetSpace ~
12033 \begin_inset LatexCommand ref
12034 reference "tab:Special-booktabs-table"
12039 This can be achieved with the ERT command
12042 \begin_layout Standard
12050 \begin_layout Standard
12051 The command that was used for the second row of Table\InsetSpace ~
12053 \begin_inset LatexCommand ref
12054 reference "tab:Special-booktabs-table"
12061 \begin_layout Standard
12075 \begin_layout Standard
12076 The command for the sixth row is
12079 \begin_layout Standard
12091 \begin_layout Standard
12092 \begin_inset VSpace bigskip
12098 \begin_layout Standard
12099 If you are anyway not satisfied with the border line spacing, you can use
12100 the following command to produce lines that span over all table columns
12105 \begin_layout Standard
12110 specialrule{width}{space above}{space below}
12113 \begin_layout Standard
12114 For more informations about these specialties, we refer to the manual of
12120 \begin_inset LatexCommand cite
12126 \begin_inset LatexCommand index
12127 name "LaTeX-packages ! booktabs"
12134 \begin_layout Standard
12135 \begin_inset Float table
12141 \begin_layout Standard
12142 \begin_inset Caption
12144 \begin_layout Standard
12145 \begin_inset LatexCommand label
12146 name "tab:Special-booktabs-table"
12150 Special booktabs-table
12158 \begin_layout Standard
12160 \begin_inset Tabular
12161 <lyxtabular version="3" rows="8" columns="4">
12162 <features booktabs="true">
12163 <column alignment="center" valignment="top" width="0">
12164 <column alignment="center" valignment="top" width="0">
12165 <column alignment="center" valignment="top" width="0">
12166 <column alignment="center" valignment="top" width="0">
12167 <row topline="true">
12168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12171 \begin_layout Standard
12177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12180 \begin_layout Standard
12181 Medipix\InsetSpace \thinspace{}
12187 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
12190 \begin_layout Standard
12191 Medipix\InsetSpace \thinspace{}
12197 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12200 \begin_layout Standard
12208 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12211 \begin_layout Standard
12215 \begin_layout Standard
12228 \begin_layout Standard
12241 \begin_layout Standard
12254 \begin_layout Standard
12263 Detector thickness [µm]
12268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12271 \begin_layout Standard
12277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12280 \begin_layout Standard
12286 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12289 \begin_layout Standard
12296 <row topline="true">
12297 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12300 \begin_layout Standard
12306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12309 \begin_layout Standard
12315 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12318 \begin_layout Standard
12324 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12327 \begin_layout Standard
12334 <row topspace="default">
12335 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12338 \begin_layout Standard
12339 Spatial resolution [µm]
12344 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12347 \begin_layout Standard
12353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12356 \begin_layout Standard
12362 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12365 \begin_layout Standard
12372 <row topspace="default">
12373 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12376 \begin_layout Standard
12378 \begin_inset Formula $f_{\mathrm{max}}$
12386 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12389 \begin_layout Standard
12395 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12398 \begin_layout Standard
12404 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12407 \begin_layout Standard
12414 <row topline="true">
12415 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12418 \begin_layout Standard
12422 \begin_layout Standard
12435 \begin_layout Standard
12444 LSF-spatial resolution
12449 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12452 \begin_layout Standard
12458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12461 \begin_layout Standard
12467 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12470 \begin_layout Standard
12478 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12481 \begin_layout Standard
12487 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12490 \begin_layout Standard
12496 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12499 \begin_layout Standard
12505 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12508 \begin_layout Standard
12515 <row bottomline="true">
12516 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12519 \begin_layout Standard
12525 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12528 \begin_layout Standard
12534 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12537 \begin_layout Standard
12543 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12546 \begin_layout Standard
12565 \begin_layout Section
12566 Vertical Table Alignment
12567 \begin_inset LatexCommand index
12568 name "Table ! Alignment"
12575 \begin_layout Standard
12576 To align tables vertically in a text line the table must be inside a box.
12577 The box can then be vertically aligned as described in section\InsetSpace ~
12579 \begin_inset LatexCommand ref
12580 reference "sec:Box-Dialog"
12587 \begin_layout Standard
12588 In the following example the tables are inside a minipage
12592 \begin_layout Standard
12593 Minipages are described in section\InsetSpace ~
12595 \begin_inset LatexCommand ref
12596 reference "sec:Minipages"
12605 box that has a width of 15\InsetSpace \thinspace{}
12609 \begin_layout Itemize
12611 \begin_inset Box Frameless
12620 height_special "totalheight"
12623 \begin_layout Standard
12624 \begin_inset Tabular
12625 <lyxtabular version="3" rows="3" columns="3">
12627 <column alignment="center" valignment="top" leftline="true" width="0">
12628 <column alignment="center" valignment="top" leftline="true" width="0">
12629 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12630 <row topline="true">
12631 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12634 \begin_layout Standard
12640 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12643 \begin_layout Standard
12649 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12652 \begin_layout Standard
12659 <row topline="true">
12660 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12663 \begin_layout Standard
12669 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12672 \begin_layout Standard
12678 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12681 \begin_layout Standard
12688 <row topline="true" bottomline="true">
12689 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12692 \begin_layout Standard
12698 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12701 \begin_layout Standard
12707 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12710 \begin_layout Standard
12730 \begin_layout Standard
12742 \begin_inset Box Frameless
12751 height_special "totalheight"
12754 \begin_layout Standard
12755 \begin_inset Tabular
12756 <lyxtabular version="3" rows="3" columns="3">
12758 <column alignment="center" valignment="top" leftline="true" width="0">
12759 <column alignment="center" valignment="top" leftline="true" width="0">
12760 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12761 <row topline="true">
12762 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12765 \begin_layout Standard
12771 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12774 \begin_layout Standard
12780 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12783 \begin_layout Standard
12790 <row topline="true">
12791 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12794 \begin_layout Standard
12800 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12803 \begin_layout Standard
12809 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12812 \begin_layout Standard
12819 <row topline="true" bottomline="true">
12820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12823 \begin_layout Standard
12829 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12832 \begin_layout Standard
12838 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12841 \begin_layout Standard
12861 \begin_layout Standard
12871 \begin_layout Itemize
12873 \begin_inset Box Frameless
12882 height_special "totalheight"
12885 \begin_layout Standard
12886 \begin_inset Tabular
12887 <lyxtabular version="3" rows="3" columns="3">
12889 <column alignment="center" valignment="top" leftline="true" width="0">
12890 <column alignment="center" valignment="top" leftline="true" width="0">
12891 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12892 <row topline="true">
12893 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12896 \begin_layout Standard
12902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12905 \begin_layout Standard
12911 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12914 \begin_layout Standard
12921 <row topline="true">
12922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12925 \begin_layout Standard
12931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12934 \begin_layout Standard
12940 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12943 \begin_layout Standard
12950 <row topline="true" bottomline="true">
12951 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12954 \begin_layout Standard
12960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12963 \begin_layout Standard
12969 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12972 \begin_layout Standard
12991 \begin_layout Itemize
12993 \begin_inset Box Frameless
13002 height_special "totalheight"
13005 \begin_layout Standard
13006 \begin_inset Tabular
13007 <lyxtabular version="3" rows="3" columns="3">
13009 <column alignment="center" valignment="top" leftline="true" width="0">
13010 <column alignment="center" valignment="top" leftline="true" width="0">
13011 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13012 <row topline="true">
13013 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13016 \begin_layout Standard
13022 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13025 \begin_layout Standard
13031 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13034 \begin_layout Standard
13041 <row topline="true">
13042 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13045 \begin_layout Standard
13051 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13054 \begin_layout Standard
13060 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13063 \begin_layout Standard
13070 <row topline="true" bottomline="true">
13071 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13074 \begin_layout Standard
13080 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13083 \begin_layout Standard
13089 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13092 \begin_layout Standard
13112 \begin_layout Standard
13124 \begin_inset Box Frameless
13133 height_special "totalheight"
13136 \begin_layout Standard
13137 \begin_inset Tabular
13138 <lyxtabular version="3" rows="3" columns="3">
13140 <column alignment="center" valignment="top" leftline="true" width="0">
13141 <column alignment="center" valignment="top" leftline="true" width="0">
13142 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13143 <row topline="true">
13144 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13147 \begin_layout Standard
13153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13156 \begin_layout Standard
13162 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13165 \begin_layout Standard
13172 <row topline="true">
13173 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13176 \begin_layout Standard
13182 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13185 \begin_layout Standard
13191 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13194 \begin_layout Standard
13201 <row topline="true" bottomline="true">
13202 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13205 \begin_layout Standard
13211 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13214 \begin_layout Standard
13220 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13223 \begin_layout Standard
13243 \begin_layout Standard
13253 \begin_layout Standard
13254 As you can see, the content of the first and last table row is not correctly
13255 aligned with the text line where the table is in.
13256 To get this alignment, the minipage box must be set into a raisebox
13260 \begin_layout Standard
13261 Raiseboxes are described in section\InsetSpace ~
13263 \begin_inset LatexCommand ref
13264 reference "sub:Vertical-Alignment"
13274 In the example above the second table in the first item is aligned using
13278 \begin_layout Standard
13288 \begin_layout Standard
13290 Behind the box the closing brace
13294 is inserted as ERT.
13295 For the second table in the last item the command
13298 \begin_layout Standard
13308 \begin_layout Standard
13312 \begin_layout Standard
13313 \begin_inset Note Greyedout
13316 \begin_layout Standard
13321 The alignment of the table row content to the surrounding text line is
13323 The needed factor of the
13329 command for this alignment depends on the document font, the font size,
13330 and the table line thickness.
13338 \begin_layout Section
13340 \begin_inset LatexCommand label
13341 name "sec:Colored-Tables"
13346 \begin_inset LatexCommand index
13347 name "Table ! Color"
13354 \begin_layout Subsection
13356 \begin_inset LatexCommand index
13357 name "Table Color ! for Cells"
13362 \begin_inset LatexCommand index
13363 name "Color ! for Table Cells"
13370 \begin_layout Standard
13371 \begin_inset Float table
13377 \begin_layout Standard
13378 \begin_inset Caption
13380 \begin_layout Standard
13381 \begin_inset LatexCommand label
13382 name "tab:Table-colored-without"
13386 Table colored without using the package
13391 \begin_inset OptArg
13394 \begin_layout Standard
13395 Table without colortbl
13408 \begin_layout Standard
13410 \begin_inset Tabular
13411 <lyxtabular version="3" rows="3" columns="3">
13413 <column alignment="center" valignment="top" leftline="true" width="0">
13414 <column alignment="center" valignment="top" leftline="true" width="0">
13415 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13416 <row topline="true">
13417 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13420 \begin_layout Standard
13428 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13431 \begin_layout Standard
13439 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13442 \begin_layout Standard
13451 <row topline="true">
13452 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13455 \begin_layout Standard
13463 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13466 \begin_layout Standard
13474 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13477 \begin_layout Standard
13486 <row topline="true" bottomline="true">
13487 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13490 \begin_layout Standard
13498 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13501 \begin_layout Standard
13509 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13512 \begin_layout Standard
13533 \begin_layout Standard
13534 If you only need colored text, mark the cells and choose a color in the
13537 Edit\SpecialChar \menuseparator
13542 This was used to create Table\InsetSpace ~
13544 \begin_inset LatexCommand ref
13545 reference "tab:Table-colored-without"
13550 In any other case you have to use the LaTeX-package
13555 \begin_inset LatexCommand index
13556 name "LaTeX-packages ! colortbl"
13563 \begin_layout Standard
13564 To create colored tables,
13568 must be loaded in the preamble with the line
13571 \begin_layout Standard
13576 usepackage{colortbl}
13579 \begin_layout Standard
13580 The color of a column is adjusted with the command
13583 \begin_layout Standard
13588 columncolor{name of color}
13591 \begin_layout Standard
13597 More about the command
13601 is described in section\InsetSpace ~
13603 \begin_inset LatexCommand ref
13604 reference "sub:Multicolumn-Calculations"
13611 \begin_layout Standard
13612 The following color names are predefined:
13615 \begin_layout Standard
13649 \begin_layout Standard
13650 \begin_inset VSpace medskip
13656 \begin_layout Standard
13657 You can also define your own color with the command
13660 \begin_layout Standard
13665 def\SpecialChar \textcompwordmark{}
13666 inecolor{color name}{color model}{color values}
13669 \begin_layout Standard
13670 The color model can be
13673 \begin_layout Labeling
13674 \labelwidthstring 00.00.0000
13675 cmyk: cyan, magenta, yellow, black
13678 \begin_layout Labeling
13679 \labelwidthstring 00.00.0000
13680 rgb: red, green blue
13683 \begin_layout Labeling
13684 \labelwidthstring 00.00.0000
13688 \begin_layout Standard
13689 and the color values are comma separated numbers between 0 and 1 describing
13690 the factor for the corresponding color of the color model.
13693 \begin_layout Standard
13694 You can e.\InsetSpace \thinspace{}
13700 " in the preamble with
13703 \begin_layout Standard
13708 def\SpecialChar \textcompwordmark{}
13709 inecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
13712 \begin_layout Standard
13720 \begin_layout Standard
13725 def\SpecialChar \textcompwordmark{}
13726 inecolor{lightgray}{gray}{0.8}
13729 \begin_layout Standard
13730 \begin_inset VSpace medskip
13736 \begin_layout Standard
13737 Lines are colored with the command
13740 \begin_layout Standard
13745 rowcolor{name of color}
13748 \begin_layout Standard
13749 and cells are colored with the command
13752 \begin_layout Standard
13757 cellcolor{name of color}
13760 \begin_layout Standard
13761 Both commands are inserted at the beginning of a cell as ERT.
13764 \begin_layout Standard
13765 To color characters in the table, mark the cells and use the LyX menu
13767 Edit\SpecialChar \menuseparator
13772 If a cell contains ERT mark only the characters, otherwise the colored
13773 ERT will cause LaTeX-errors.
13776 \begin_layout Standard
13777 \begin_inset Note Greyedout
13780 \begin_layout Standard
13785 Not all DVI-viewers are able to display self-defined colors.
13793 \begin_layout Standard
13794 \begin_inset VSpace bigskip
13800 \begin_layout Standard
13801 To create Table\InsetSpace ~
13803 \begin_inset LatexCommand ref
13804 reference "tab:Table-colored-using"
13808 do the following: The color of the first column should be
13816 \begin_layout Standard
13821 columncolor{darkgreen}
13826 \begin_layout Standard
13827 as LaTeX-argument for this column.
13828 The first row should be blue, therefore the ERT command
13831 \begin_layout Standard
13839 \begin_layout Standard
13840 is inserted to the first cell of this row.
13841 Note that this overwrites the column color for the first cell.
13842 The last cell of the last row is colored magenta by inserting the ERT command
13845 \begin_layout Standard
13853 \begin_layout Standard
13854 The characters could now be colored using the menu
13856 Edit\SpecialChar \menuseparator
13863 \begin_layout Standard
13864 \begin_inset Float table
13870 \begin_layout Standard
13871 \begin_inset Caption
13873 \begin_layout Standard
13874 \begin_inset LatexCommand label
13875 name "tab:Table-colored-using"
13879 Table colored using the package
13884 \begin_inset OptArg
13887 \begin_layout Standard
13888 Table with colortbl
13901 \begin_layout Standard
13903 \begin_inset Tabular
13904 <lyxtabular version="3" rows="3" columns="3">
13906 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
13907 <column alignment="center" valignment="top" width="0">
13908 <column alignment="center" valignment="top" width="0">
13910 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13913 \begin_layout Standard
13917 \begin_layout Standard
13933 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13936 \begin_layout Standard
13944 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13947 \begin_layout Standard
13957 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13960 \begin_layout Standard
13968 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13971 \begin_layout Standard
13979 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13982 \begin_layout Standard
13992 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13995 \begin_layout Standard
14003 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14006 \begin_layout Standard
14014 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14017 \begin_layout Standard
14021 \begin_layout Standard
14050 \begin_layout Subsection
14052 \begin_inset LatexCommand index
14053 name "Table Color ! for Lines"
14058 \begin_inset LatexCommand index
14059 name "Color ! for Table Lines"
14066 \begin_layout Standard
14067 As described in section\InsetSpace ~
14069 \begin_inset LatexCommand ref
14070 reference "sub:Line-Thickness"
14074 , the line thickness for all lines in a table can be adjusted with the length
14082 It is set to 1.5\InsetSpace \thinspace{}
14083 pt for all tables of this section.
14087 \begin_layout Standard
14093 arrayrulewidth}{1.5pt}
14101 \begin_layout Standard
14102 To color vertical lines for example with green, create the following column
14103 format in the document preamble, according to the description in section\InsetSpace ~
14105 \begin_inset LatexCommand ref
14106 reference "sub:Customized-Format"
14113 \begin_layout Standard
14118 newcolumntype{W}{!{
14125 \begin_layout Standard
14126 For Table\InsetSpace ~
14128 \begin_inset LatexCommand ref
14129 reference "tab:Table-with-vertical-colored"
14137 was used for the last column and
14141 for the other columns.
14144 \begin_layout Standard
14145 If you want to have several colors, define more column formats.
14148 \begin_layout Standard
14149 \begin_inset Float table
14154 \begin_layout Standard
14155 \begin_inset Caption
14157 \begin_layout Standard
14158 \begin_inset LatexCommand label
14159 name "tab:Table-with-vertical-colored"
14163 Table with colored vertical lines
14171 \begin_layout Standard
14173 \begin_inset Tabular
14174 <lyxtabular version="3" rows="3" columns="3">
14176 <column alignment="center" valignment="top" width="0" special="Wc">
14177 <column alignment="center" valignment="top" width="0" special="Wc">
14178 <column alignment="center" valignment="top" width="0" special="WcW">
14179 <row topline="true">
14180 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14183 \begin_layout Standard
14189 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14192 \begin_layout Standard
14198 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14201 \begin_layout Standard
14208 <row topline="true">
14209 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14212 \begin_layout Standard
14218 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14221 \begin_layout Standard
14227 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14230 \begin_layout Standard
14237 <row topline="true" bottomline="true">
14238 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14241 \begin_layout Standard
14247 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14250 \begin_layout Standard
14256 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14259 \begin_layout Standard
14278 \begin_layout Standard
14279 \begin_inset VSpace bigskip
14282 To color horizontal lines for example with red, like in Table\InsetSpace ~
14284 \begin_inset LatexCommand ref
14285 reference "tab:Table-with-horizontal-colored"
14289 , insert these commands in ERT before the table or table float:
14292 \begin_layout Standard
14313 \begin_layout Standard
14324 arrayrulecolor{red}
14328 arrayrulecolor{black}}
14331 \begin_layout Standard
14335 \begin_layout Standard
14346 \begin_layout Standard
14355 \begin_layout Standard
14359 arrayrulecolor{red}
14363 arrayrulecolor{black}}
14369 \begin_inset Float table
14374 \begin_layout Standard
14375 \begin_inset Caption
14377 \begin_layout Standard
14378 \begin_inset LatexCommand label
14379 name "tab:Table-with-horizontal-colored"
14383 Table with colored horizontal lines
14391 \begin_layout Standard
14393 \begin_inset Tabular
14394 <lyxtabular version="3" rows="3" columns="3">
14396 <column alignment="center" valignment="top" leftline="true" width="0">
14397 <column alignment="center" valignment="top" leftline="true" width="0">
14398 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14399 <row topline="true">
14400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14403 \begin_layout Standard
14409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14412 \begin_layout Standard
14418 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14421 \begin_layout Standard
14428 <row topline="true">
14429 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14432 \begin_layout Standard
14438 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14441 \begin_layout Standard
14447 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14450 \begin_layout Standard
14457 <row topline="true" bottomline="true">
14458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14461 \begin_layout Standard
14467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14470 \begin_layout Standard
14476 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14479 \begin_layout Standard
14498 \begin_layout Standard
14502 \begin_layout Standard
14514 \begin_layout Standard
14515 To return to the default line color black, insert this command in ERT behind
14516 the table or table float:
14519 \begin_layout Standard
14531 \begin_layout Standard
14534 \begin_inset LatexCommand ref
14535 reference "tab:Table-with-colored"
14539 is an example with colored vertical and horizontal lines.
14542 \begin_layout Standard
14543 \begin_inset Float table
14549 \begin_layout Standard
14550 \begin_inset Caption
14552 \begin_layout Standard
14553 \begin_inset LatexCommand label
14554 name "tab:Table-with-colored"
14558 Table with colored lines
14566 \begin_layout Standard
14568 \begin_inset Tabular
14569 <lyxtabular version="3" rows="3" columns="3">
14571 <column alignment="center" valignment="top" width="0" special="Wc">
14572 <column alignment="center" valignment="top" width="0" special="Wc">
14573 <column alignment="center" valignment="top" width="0" special="WcW">
14574 <row topline="true">
14575 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14578 \begin_layout Standard
14584 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14587 \begin_layout Standard
14593 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14596 \begin_layout Standard
14603 <row topline="true">
14604 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14607 \begin_layout Standard
14613 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14616 \begin_layout Standard
14622 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14625 \begin_layout Standard
14632 <row topline="true" bottomline="true" topspace="default">
14633 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14636 \begin_layout Standard
14642 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14645 \begin_layout Standard
14651 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14654 \begin_layout Standard
14673 \begin_layout Standard
14677 \begin_layout Standard
14693 \begin_layout Standard
14697 \begin_layout Standard
14703 arrayrulewidth}{0.4pt}
14711 \begin_layout Section
14712 Table Customization
14713 \begin_inset LatexCommand index
14714 name "Table Customization"
14719 \begin_inset LatexCommand index
14720 name "Table ! Customization"
14727 \begin_layout Subsection
14729 \begin_inset LatexCommand label
14730 name "sub:Row-Spacing"
14735 \begin_inset LatexCommand index
14736 name "Table Customization ! Row Spacing"
14743 \begin_layout Standard
14744 You can add vertical space to table rows in the
14748 tab of the table dialog.
14749 You find there three possibilities:
14752 \begin_layout Description
14755 row will add space above the characters of the table row.
14756 If the table is a formal table
14760 \begin_layout Standard
14761 Formal tables are explained in section\InsetSpace ~
14763 \begin_inset LatexCommand ref
14764 reference "sec:Formal-Tables"
14773 LyX will insert as default 0.5\InsetSpace \thinspace{}
14775 For normal tables the inserted space will unfortunately destroy the vertical
14776 table lines as in the following table:
14777 \begin_inset VSpace medskip
14786 \begin_layout Standard
14798 \begin_inset Tabular
14799 <lyxtabular version="3" rows="3" columns="1">
14801 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14802 <row topline="true">
14803 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14806 \begin_layout Standard
14813 <row topline="true" topspace="3mm">
14814 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14817 \begin_layout Standard
14818 3\InsetSpace \thinspace{}
14819 mm space top of row
14825 <row topline="true" bottomline="true">
14826 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14829 \begin_layout Standard
14846 \begin_layout Standard
14856 \begin_inset VSpace medskip
14861 So inserting space to the top of row for normal tables is only useful when
14862 you don't have vertical lines.
14865 \begin_layout Description
14866 Bottom\InsetSpace ~
14868 row will add space below the characters of the table row.
14869 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
14871 normal tables the default size is 2\InsetSpace \thinspace{}
14875 \begin_layout Description
14876 Between\InsetSpace ~
14877 rows adds space between the current and the following row.
14878 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
14880 For normal tables the inserted space will unfortunately destroy the vertical
14881 table lines as in the following table:
14882 \begin_inset VSpace medskip
14891 \begin_layout Standard
14903 \begin_inset Tabular
14904 <lyxtabular version="3" rows="3" columns="1">
14906 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14907 <row topline="true">
14908 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14911 \begin_layout Standard
14918 <row topline="true" interlinespace="3mm">
14919 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14922 \begin_layout Standard
14923 \begin_inset Formula $\downarrow$
14926 3\InsetSpace \thinspace{}
14927 mm space between row
14928 \begin_inset Formula $\downarrow$
14937 <row topline="true" bottomline="true">
14938 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14941 \begin_layout Standard
14942 \begin_inset Formula $\uparrow$
14945 3\InsetSpace \thinspace{}
14946 mm space between row
14947 \begin_inset Formula $\uparrow$
14966 \begin_layout Standard
14976 \begin_inset VSpace medskip
14981 So inserting space between rows for normal tables is only useful when you
14982 don't have vertical lines.
14985 \begin_layout Standard
14986 \begin_inset VSpace bigskip
14989 When you want to add extra height to all cells of all tables, you can do
14990 this with the following preamble lines:
14993 \begin_layout Standard
14998 @ifundef\SpecialChar \textcompwordmark{}
14999 ined{extrarowheight}
15005 \begin_layout Standard
15016 usepackage{array}}{}
15022 extrarowheight}{height}
15025 \begin_layout Standard
15026 But this has the disadvantage that the cell texts are no longer exactly
15027 vertically centered.
15032 will be loaded automatically by LyX when you use self defined table formats.
15033 To avoid that it is loaded twice the command
15037 @ifundef\SpecialChar \textcompwordmark{}
15040 is used in the above command.)
15043 \begin_layout Subsection
15044 Special Cell Alignment
15045 \begin_inset LatexCommand index
15046 name "Table Customization ! Special Cell Alignment"
15053 \begin_layout Standard
15054 Sometimes it looks better when the cell entries of a column are aligned
15055 with a special character, e.\InsetSpace \thinspace{}
15057 with the decimal separator as in Table\InsetSpace ~
15059 \begin_inset LatexCommand ref
15060 reference "tab:Table-cells-of"
15067 \begin_layout Standard
15068 \begin_inset Float table
15074 \begin_layout Standard
15075 \begin_inset Caption
15077 \begin_layout Standard
15078 \begin_inset LatexCommand label
15079 name "tab:Table-cells-of"
15083 Table cells of a column aligned with the decimal separator.
15091 \begin_layout Standard
15093 \begin_inset Tabular
15094 <lyxtabular version="3" rows="4" columns="2">
15096 <column alignment="right" valignment="top" width="0">
15097 <column alignment="left" valignment="top" width="0" special="@{}l">
15098 <row bottomline="true">
15099 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15102 \begin_layout Standard
15108 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15111 \begin_layout Standard
15119 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15122 \begin_layout Standard
15128 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15131 \begin_layout Standard
15139 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15142 \begin_layout Standard
15148 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15151 \begin_layout Standard
15159 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15162 \begin_layout Standard
15168 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15171 \begin_layout Standard
15190 \begin_layout Standard
15191 This table was created with a 4×2 table.
15192 The heading is a centered multicolumn.
15193 The first column is right-aligned and contains the digits before the decimal
15194 point and the decimal point.
15195 The second column is left aligned and contains the digits after the decimal
15197 To omit the space that is normally between two table columns, use the following
15198 LaTeX-argument for the second column:
15201 \begin_layout Standard
15207 \begin_layout Standard
15210 \begin_inset LatexCommand ref
15211 reference "tab:Several-table-cell"
15215 shows some example alignments.
15216 For the alignment with the relation sign, you must add the second smallest
15217 math-space at the beginning of the last column to get the correct space
15218 surrounding the relation sign.
15221 \begin_layout Standard
15222 \begin_inset Float table
15227 \begin_layout Standard
15228 \begin_inset Caption
15230 \begin_layout Standard
15231 \begin_inset LatexCommand label
15232 name "tab:Several-table-cell"
15236 Several table cell alignments.
15244 \begin_layout Standard
15246 \begin_inset Tabular
15247 <lyxtabular version="3" rows="4" columns="6">
15249 <column alignment="right" valignment="top" width="0">
15250 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15251 <column alignment="right" valignment="top" width="0">
15252 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15253 <column alignment="right" valignment="top" width="0">
15254 <column alignment="left" valignment="top" width="0" special="@{}l">
15255 <row bottomline="true">
15256 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15259 \begin_layout Standard
15265 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15268 \begin_layout Standard
15274 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15277 \begin_layout Standard
15283 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15286 \begin_layout Standard
15292 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15295 \begin_layout Standard
15301 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15304 \begin_layout Standard
15312 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15315 \begin_layout Standard
15321 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15324 \begin_layout Standard
15325 24\InsetSpace \thinspace{}
15331 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15334 \begin_layout Standard
15335 \begin_inset Formula $10\cdot$
15343 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15346 \begin_layout Standard
15347 \begin_inset Formula $10^{\mbox{-}17}$
15355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15358 \begin_layout Standard
15359 \begin_inset Formula $\Gamma(t)\propto$
15367 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15370 \begin_layout Standard
15371 \begin_inset Formula $\:\Upsilon(t)$
15381 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15384 \begin_layout Standard
15390 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15393 \begin_layout Standard
15394 768\InsetSpace \thinspace{}
15400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15403 \begin_layout Standard
15404 \begin_inset Formula $5.78\cdot$
15412 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15415 \begin_layout Standard
15416 \begin_inset Formula $10^{7}$
15424 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15427 \begin_layout Standard
15428 \begin_inset Formula $A\ne$
15436 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15439 \begin_layout Standard
15440 \begin_inset Formula $\: B_{\mathrm{red}}$
15450 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15453 \begin_layout Standard
15459 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15462 \begin_layout Standard
15463 6\InsetSpace \thinspace{}
15469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15472 \begin_layout Standard
15474 \begin_inset Formula $33.5\cdot$
15482 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15485 \begin_layout Standard
15486 \begin_inset Formula $10^{4}$
15494 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15497 \begin_layout Standard
15498 \begin_inset Formula $\sin(\alpha)\ge$
15506 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15509 \begin_layout Standard
15510 \begin_inset Formula $\:\sin(\beta)$
15531 \begin_layout Standard
15532 \begin_inset VSpace bigskip
15535 There is also the LaTeX-package
15540 \begin_inset LatexCommand index
15541 name "LaTeX-packages ! dcolumn"
15545 that provides table cell alignments.
15546 But this unfortunately treats the cell entries as math and doesn't allow
15547 formulas in table cells: The first column of Table\InsetSpace ~
15549 \begin_inset LatexCommand ref
15550 reference "tab:Several-table-cell"
15558 like the first column in Table\InsetSpace ~
15560 \begin_inset LatexCommand ref
15561 reference "tab:Alignments-when"
15565 and only with some tricks like the expected.
15566 The alignment of the second and third column of Table\InsetSpace ~
15568 \begin_inset LatexCommand ref
15569 reference "tab:Several-table-cell"
15573 is not possible with
15580 \begin_layout Standard
15581 \begin_inset Float table
15587 \begin_layout Standard
15588 \begin_inset Caption
15590 \begin_layout Standard
15591 \begin_inset LatexCommand label
15592 name "tab:Alignments-when"
15596 Alignments when LaTeX-package dcolumn is used.
15597 For all column alignments tricks have to be used to get the output.
15605 \begin_layout Standard
15607 \begin_inset Tabular
15608 <lyxtabular version="3" rows="4" columns="3">
15610 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{-1}">
15611 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{4.9}">
15612 <column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
15613 <row bottomline="true">
15614 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15617 \begin_layout Standard
15623 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15626 \begin_layout Standard
15632 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15635 \begin_layout Standard
15643 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15646 \begin_layout Standard
15647 12x24\InsetSpace \thinspace{}
15653 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15656 \begin_layout Standard
15657 12x24\InsetSpace \thinspace{}
15659 \begin_inset Formula $\mbox{bottles}$
15667 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15670 \begin_layout Standard
15675 \begin_layout Standard
15685 \begin_inset Formula $\mbox{bottles}$
15695 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15698 \begin_layout Standard
15699 1024x768\InsetSpace \thinspace{}
15705 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15708 \begin_layout Standard
15709 1024x768\InsetSpace \thinspace{}
15711 \begin_inset Formula $\mbox{Pixels}$
15719 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15722 \begin_layout Standard
15727 \begin_layout Standard
15737 \begin_inset Formula $\mbox{Pixels}$
15747 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15750 \begin_layout Standard
15751 32x6\InsetSpace \thinspace{}
15757 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15760 \begin_layout Standard
15761 32x6\InsetSpace \thinspace{}
15763 \begin_inset Formula $\mbox{cm}$
15771 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15774 \begin_layout Standard
15779 \begin_layout Standard
15789 \begin_inset Formula $\mbox{cm}$
15810 \begin_layout Subsection
15811 Customized Cell/Column Format
15812 \begin_inset LatexCommand label
15813 name "sub:Customized-Format"
15818 \begin_inset LatexCommand index
15819 name "Table Customization ! Cell/Column Format"
15826 \begin_layout Standard
15827 Calculating the needed width for spanned columns like in section\InsetSpace ~
15829 \begin_inset LatexCommand ref
15830 reference "sub:Multicolumn-Calculations"
15834 is very annoying if you have several tables with multicolumn cells.
15835 To make life easier, you can define a cell/column format in the preamble,
15836 so that it can be used in all tables of the document.
15837 The format is defined with the command
15840 \begin_layout Standard
15845 newcolumntype{name of format}[number of arguments]{commands}
15848 \begin_layout Standard
15849 The format name may only consist of one letter.
15874 are predefined and cannot be used.
15875 But all letters are allowed as capitals.
15878 \begin_layout Standard
15879 \begin_inset VSpace medskip
15885 \begin_layout Standard
15886 For vertically and horizontally centered multicolumn cells with a fixed
15887 width you can define the cell format
15890 \begin_layout Standard
15895 newcolumntype{M}[1]{>{
15902 \begin_layout Standard
15909 avoids the problem of hyphenating the first word, as described in section\InsetSpace ~
15911 \begin_inset LatexCommand ref
15912 reference "sub:Multiple-Lines-in"
15917 Now you can simply enter
15920 \begin_layout Standard
15926 \begin_layout Standard
15927 as LaTeX-argument in the table dialog to create a multicolumn.
15930 \begin_layout Standard
15931 \begin_inset VSpace bigskip
15937 \begin_layout Standard
15938 For cells spanned by a multicolumn cell, you can define the format
15941 \begin_layout Standard
15946 newcolumntype{S}[2]{>{
15956 \begin_layout Standard
15967 newcolumntype{S}[2]
15971 \begin_layout Standard
15982 arrayrulewidth)*(1-#2))/#2}}
15985 \begin_layout Standard
15986 This format uses equation
15987 \begin_inset LatexCommand eqref
15992 to calculate the needed width so that each spanned cell has the same width.
15995 \begin_layout Standard
15999 \begin_layout Standard
16002 S{width of multicolumn cell}{number of spanned columns}
16005 \begin_layout Standard
16006 as LaTeX-argument of the column.
16009 \begin_layout Standard
16010 \begin_inset VSpace bigskip
16016 \begin_layout Standard
16017 For colored columns, you can define
16020 \begin_layout Standard
16025 newcolumntype{K}[1]{>{
16032 \begin_layout Standard
16034 \begin_inset Quotes eld
16038 \begin_inset Quotes erd
16041 at the end creates a column with a flexible width whose text is horizontally
16046 \begin_layout Standard
16052 \begin_layout Standard
16056 \begin_layout Standard
16057 \begin_inset VSpace bigskip
16063 \begin_layout Standard
16064 To create Table\InsetSpace ~
16066 \begin_inset LatexCommand ref
16067 reference "tab:Table-using-user-defined"
16071 use the LaTeX-arguments
16074 \begin_layout Standard
16080 \begin_layout Standard
16081 for the first column and the multicolumn,
16084 \begin_layout Standard
16090 \begin_layout Standard
16091 for the the last column, and
16094 \begin_layout Standard
16100 \begin_layout Standard
16101 for the cells in the second column.
16104 \begin_layout Standard
16105 \begin_inset Float table
16111 \begin_layout Standard
16112 \begin_inset Caption
16114 \begin_layout Standard
16115 \begin_inset LatexCommand label
16116 name "tab:Table-using-user-defined"
16120 Table using user-defined table formats
16128 \begin_layout Standard
16130 \begin_inset Tabular
16131 <lyxtabular version="3" rows="3" columns="4">
16133 <column alignment="center" valignment="middle" leftline="true" width="2.5cm" special="M{2.5cm}">
16134 <column alignment="center" valignment="middle" leftline="true" width="0" special="S{2.5cm}{2}">
16135 <column alignment="center" valignment="middle" leftline="true" width="0">
16136 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0" special="K{red}">
16137 <row topline="true">
16138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16141 \begin_layout Standard
16142 verylongtablecellword
16147 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none" special="M{2.5cm}">
16150 \begin_layout Standard
16151 multiple lines multicolumn
16156 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16159 \begin_layout Standard
16165 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16168 \begin_layout Standard
16175 <row topline="true">
16176 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16179 \begin_layout Standard
16185 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16188 \begin_layout Standard
16194 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16197 \begin_layout Standard
16203 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16206 \begin_layout Standard
16213 <row topline="true" bottomline="true">
16214 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16217 \begin_layout Standard
16223 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16226 \begin_layout Standard
16232 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16235 \begin_layout Standard
16241 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16244 \begin_layout Standard
16263 \begin_layout Subsection
16265 \begin_inset LatexCommand label
16266 name "sub:Line-Thickness"
16271 \begin_inset LatexCommand index
16272 name "Table Customization ! Line Thickness"
16279 \begin_layout Standard
16280 The line thickness for all lines in a table can be adjusted with the length
16288 To set for example a line thickness of 1.5\InsetSpace \thinspace{}
16289 pt, like in Table\InsetSpace ~
16291 \begin_inset LatexCommand ref
16292 reference "tab:Table-with-1.5"
16296 , insert the command
16299 \begin_layout Standard
16306 arrayrulewidth}{1.5pt}
16309 \begin_layout Standard
16310 in ERT before the table or table float.
16311 The changed thickness is valid for all following tables.
16312 To use the default value again, set
16318 to 0.4\InsetSpace \thinspace{}
16319 pt in ERT behind the table or table float.
16322 \begin_layout Standard
16326 \begin_layout Standard
16332 arrayrulewidth}{1.5pt}
16338 \begin_inset Float table
16343 \begin_layout Standard
16344 \begin_inset Caption
16346 \begin_layout Standard
16347 \begin_inset LatexCommand label
16348 name "tab:Table-with-1.5"
16352 Table with 1.5\InsetSpace \thinspace{}
16361 \begin_layout Standard
16363 \begin_inset Tabular
16364 <lyxtabular version="3" rows="3" columns="3">
16366 <column alignment="center" valignment="top" leftline="true" width="0">
16367 <column alignment="center" valignment="top" leftline="true" width="0">
16368 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16369 <row topline="true">
16370 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16373 \begin_layout Standard
16379 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16382 \begin_layout Standard
16388 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16391 \begin_layout Standard
16398 <row topline="true">
16399 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16402 \begin_layout Standard
16408 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16411 \begin_layout Standard
16417 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16420 \begin_layout Standard
16427 <row topline="true" bottomline="true">
16428 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16431 \begin_layout Standard
16437 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16440 \begin_layout Standard
16446 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16449 \begin_layout Standard
16469 \begin_layout Standard
16475 arrayrulewidth}{0.4pt}
16483 \begin_layout Standard
16484 \begin_inset VSpace bigskip
16487 To set the line thickness to 1.5\InsetSpace \thinspace{}
16488 pt only for horizontal lines, like in Table\InsetSpace ~
16490 \begin_inset LatexCommand ref
16491 reference "tab:Table-with-horizontal"
16495 , insert these commands in ERT before the table or table float:
16498 \begin_layout Standard
16521 arrayrulewidth 1.5pt}
16531 arrayrulewidth 0.4pt}}
16534 \begin_layout Standard
16535 To return to the default line thickness, insert this command in ERT behind
16536 the table or table float:
16539 \begin_layout Standard
16551 \begin_layout Standard
16555 \begin_layout Standard
16566 \begin_layout Standard
16575 \begin_layout Standard
16583 arrayrulewidth 1.5pt}
16586 \begin_layout Standard
16596 arrayrulewidth 0.4pt}}
16602 \begin_inset Float table
16607 \begin_layout Standard
16608 \begin_inset Caption
16610 \begin_layout Standard
16611 \begin_inset LatexCommand label
16612 name "tab:Table-with-horizontal"
16616 Table with 1.5\InsetSpace \thinspace{}
16617 pt thick horizontal lines
16625 \begin_layout Standard
16627 \begin_inset Tabular
16628 <lyxtabular version="3" rows="3" columns="3">
16630 <column alignment="center" valignment="top" leftline="true" width="0">
16631 <column alignment="center" valignment="top" leftline="true" width="0">
16632 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16633 <row topline="true">
16634 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16637 \begin_layout Standard
16643 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16646 \begin_layout Standard
16652 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16655 \begin_layout Standard
16662 <row topline="true">
16663 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16666 \begin_layout Standard
16672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16675 \begin_layout Standard
16681 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16684 \begin_layout Standard
16691 <row topline="true" bottomline="true">
16692 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16695 \begin_layout Standard
16701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16704 \begin_layout Standard
16710 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16713 \begin_layout Standard
16733 \begin_layout Standard
16749 \begin_layout Standard
16750 \begin_inset VSpace bigskip
16753 To set the line thickness to 1.5\InsetSpace \thinspace{}
16754 pt only for vertical lines, create the following
16755 column format in the document preamble, according to the description in
16756 section\InsetSpace ~
16758 \begin_inset LatexCommand ref
16759 reference "sub:Customized-Format"
16766 \begin_layout Standard
16771 newcolumntype{V}{!{
16773 vrule width 1.5pt}}
16776 \begin_layout Standard
16777 For Table\InsetSpace ~
16779 \begin_inset LatexCommand ref
16780 reference "tab:Table-with-vertical"
16787 \begin_layout Standard
16793 \begin_layout Standard
16794 was used for the last column and
16797 \begin_layout Standard
16803 \begin_layout Standard
16804 for the other columns.
16807 \begin_layout Standard
16808 \begin_inset Float table
16813 \begin_layout Standard
16814 \begin_inset Caption
16816 \begin_layout Standard
16817 \begin_inset LatexCommand label
16818 name "tab:Table-with-vertical"
16822 Table with 1.5\InsetSpace \thinspace{}
16823 pt thick vertical lines
16831 \begin_layout Standard
16833 \begin_inset Tabular
16834 <lyxtabular version="3" rows="3" columns="3">
16836 <column alignment="center" valignment="top" width="0" special="Vc">
16837 <column alignment="center" valignment="top" width="0" special="Vc">
16838 <column alignment="center" valignment="top" width="0" special="VcV">
16839 <row topline="true">
16840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16843 \begin_layout Standard
16849 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16852 \begin_layout Standard
16858 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16861 \begin_layout Standard
16868 <row topline="true">
16869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16872 \begin_layout Standard
16878 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16881 \begin_layout Standard
16887 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16890 \begin_layout Standard
16897 <row topline="true" bottomline="true">
16898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16901 \begin_layout Standard
16907 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16910 \begin_layout Standard
16916 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16919 \begin_layout Standard
16938 \begin_layout Subsection
16940 \begin_inset LatexCommand index
16941 name "Table Customization ! Dashed Lines"
16948 \begin_layout Standard
16952 \begin_layout Standard
16962 \begin_inset Note Note
16965 \begin_layout Standard
16966 The following section will only be displayed when you have the LaTeX-package
16979 \begin_layout Standard
16980 \begin_inset Float table
16986 \begin_layout Standard
16987 \begin_inset Caption
16989 \begin_layout Standard
16990 \begin_inset LatexCommand label
16991 name "tab:Table-with-dashed"
16995 Table with dashed lines
17003 \begin_layout Standard
17005 \begin_inset Tabular
17006 <lyxtabular version="3" rows="5" columns="5">
17008 <column alignment="center" valignment="top" leftline="true" width="0">
17009 <column alignment="center" valignment="top" leftline="true" width="0">
17010 <column alignment="center" valignment="top" width="0" special=":c">
17011 <column alignment="center" valignment="top" leftline="true" width="0">
17012 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
17013 <row topline="true" bottomline="true">
17014 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17017 \begin_layout Standard
17023 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17026 \begin_layout Standard
17032 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17035 \begin_layout Standard
17041 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17044 \begin_layout Standard
17050 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17053 \begin_layout Standard
17060 <row topline="true">
17061 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17064 \begin_layout Standard
17070 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17073 \begin_layout Standard
17079 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17082 \begin_layout Standard
17088 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17091 \begin_layout Standard
17097 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17100 \begin_layout Standard
17108 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17111 \begin_layout Standard
17115 \begin_layout Standard
17129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17132 \begin_layout Standard
17138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17141 \begin_layout Standard
17147 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17150 \begin_layout Standard
17156 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17159 \begin_layout Standard
17166 <row topline="true">
17167 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17170 \begin_layout Standard
17174 \begin_layout Standard
17188 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17191 \begin_layout Standard
17197 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="c:">
17200 \begin_layout Standard
17206 <cell multicolumn="1" alignment="center" valignment="top" rightline="true" usebox="none" special="c:">
17209 \begin_layout Standard
17215 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17218 \begin_layout Standard
17225 <row topline="true" bottomline="true">
17226 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17229 \begin_layout Standard
17235 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17238 \begin_layout Standard
17244 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17247 \begin_layout Standard
17253 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17256 \begin_layout Standard
17262 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17265 \begin_layout Standard
17284 \begin_layout Standard
17285 LyX doesn't natively support dashed lines, so you have to use ERT.
17286 As prerequisite the LaTeX-package
17291 \begin_inset LatexCommand index
17292 name "LaTeX-packages ! arydshln"
17296 must be loaded in the document preamble with the command
17299 \begin_layout Standard
17304 usepackage{arydshln}
17307 \begin_layout Standard
17308 To make a vertical line dashed, enter the colon
17309 \begin_inset Quotes eld
17313 \begin_inset Quotes erd
17316 together with the character for the horizontal alignment as LaTeX-argument
17317 in the table cell dialog.
17320 \begin_layout Standard
17321 For a horizontal dashed line add the command
17324 \begin_layout Standard
17332 \begin_layout Standard
17333 in ERT as first element of the first cell in the table row.
17336 \begin_layout Standard
17337 For dashed multicolumn lines use the command
17340 \begin_layout Standard
17345 cdashline{line number
17350 \begin_layout Standard
17351 in ERT as first element of the first cell in the table row.
17352 If you have for example a multicolumn spanning over columns 2 to 4 and
17353 you want to have a dashed line above, add the command
17356 \begin_layout Standard
17364 \begin_layout Standard
17365 as first element of the first cell in the row of the multicolumn.
17368 \begin_layout Standard
17369 \begin_inset VSpace bigskip
17375 \begin_layout Standard
17378 \begin_inset LatexCommand ref
17379 reference "tab:Table-with-dashed"
17384 \begin_inset Quotes eld
17392 \begin_inset Quotes erd
17395 as LaTeX-argument of the third column.
17402 was inserted to the first cell of the third row and the the ERT command
17411 was inserted to the first cell of the fourth row.
17414 \begin_layout Standard
17415 \begin_inset Note Greyedout
17418 \begin_layout Standard
17423 The used LaTeX-package
17427 is apparently not compatible with the LaTeX-package
17432 \begin_inset LatexCommand index
17433 name "LaTeX-packages ! colortbl"
17437 that is used for colored tables in section\InsetSpace ~
17439 \begin_inset LatexCommand ref
17440 reference "sec:Colored-Tables"
17445 That means colored tables cannot have dashed lines.
17453 \begin_layout Standard
17457 \begin_layout Standard
17467 \begin_inset Note Note
17470 \begin_layout Standard
17471 The following will be displayed when the LaTeX-package
17483 \begin_layout Standard
17484 You need to install the package
17488 to see the contents of this section in the output.
17491 \begin_layout Standard
17495 \begin_layout Standard
17507 \begin_layout Chapter
17509 \begin_inset LatexCommand index
17515 \begin_inset LatexCommand label
17523 \begin_layout Section
17525 \begin_inset LatexCommand label
17526 name "sec:FloatIntroduction"
17531 \begin_inset LatexCommand index
17532 name "Floats ! Introduction"
17539 \begin_layout Standard
17540 A float is a block of text associated with some sort of label, which doesn't
17541 have a fixed location.
17543 \begin_inset Quotes eld
17547 \begin_inset Quotes erd
17550 forward or backward a page or two, to wherever it fits best.
17557 Margin\InsetSpace ~
17560 are also floats, because they can float to the next page when there are
17561 too many notes at the page.
17564 \begin_layout Standard
17565 Floats allow a high quality layout.
17566 Images and tables can evenly be spread to the pages to avoid white space
17567 and pages without text.
17568 As the floating often destroys the context between the text and the image/table
17569 , every float can be referenced in the text.
17570 Floats are therefore numbered.
17571 Referencing is described in section\InsetSpace ~
17573 \begin_inset LatexCommand ref
17574 reference "sec:Referencing-Floats"
17581 \begin_layout Standard
17582 To insert a float, use the menu
17584 Insert\SpecialChar \menuseparator
17592 inset, a box with a label.
17593 The label will automatically be translated to the document language in
17595 Behind the label you can insert the caption text.
17596 The image or table is inserted above or below the caption in a separate
17597 paragraph within the float.
17598 More about the caption placement is described in section\InsetSpace ~
17600 \begin_inset LatexCommand ref
17601 reference "sec:Caption-Placement"
17606 To keep your LyX-document readable, you can open and close the float box
17607 by left-clicking on the box label.
17608 A closed float box looks like this:
17609 \begin_inset Graphics
17610 filename clipart/floatQt4.png
17612 scaleBeforeRotation
17616 -- a gray button with a red label.
17619 \begin_layout Standard
17620 It is recommended to insert floats as a separate paragraph to avoid possible
17621 LaTeX-errors that can occur when the surrounding text is specially formatted.
17624 \begin_layout Standard
17625 Existing figures or tables can be put into a float by marking them and then
17626 pressing the corresponding toolbar button for a new float.
17629 \begin_layout Section
17633 \begin_layout Standard
17634 Besides figure and table floats that are described in section\InsetSpace ~
17636 \begin_inset LatexCommand ref
17637 reference "sec:Figure-Floats"
17642 \begin_inset LatexCommand ref
17643 reference "sec:Table-Floats"
17647 , respectively, LyX offers the float types
17660 \begin_layout Subsection
17662 \begin_inset LatexCommand index
17663 name "Floats ! Algorithms"
17670 \begin_layout Standard
17671 \begin_inset Float algorithm
17677 \begin_layout Standard
17678 \begin_inset Caption
17680 \begin_layout Standard
17681 \begin_inset LatexCommand label
17682 name "alg:Example-Algorithm-float"
17686 Example Algorithm float
17694 \begin_layout LyX-Code
17697 Sum:= Sum + A(I); /*comment*/
17700 \begin_inset VSpace -4mm
17711 \begin_layout Standard
17712 This float type is inserted with the menu
17714 Insert\SpecialChar \menuseparator
17715 Floats\SpecialChar \menuseparator
17719 It is used for program codes and descriptions of algorithms.
17720 A possible environment for algorithms is the
17724 , described in LyX's
17729 Algorithm\InsetSpace ~
17731 \begin_inset LatexCommand ref
17732 reference "alg:Example-Algorithm-float"
17736 is an example of an algorithm float where -4\InsetSpace \thinspace{}
17737 mm vertical space was added
17738 at the end of the float to have the bottom rule exactly below the last
17742 \begin_layout Standard
17743 The float label is not automatically translated into the document language.
17744 If your document is not in English, you have to do this manually by adding
17745 the following line to the document preamble
17750 \begin_layout Standard
17755 floatname{algorithm}{your\InsetSpace ~
17759 \begin_layout Standard
17766 \begin_inset Quotes eld
17774 \begin_inset Quotes erd
17780 \begin_layout Description
17785 When the LaTeX-package
17790 \begin_inset LatexCommand index
17791 name "LaTeX-packages ! hyperref"
17795 is used to link cross-references to floats in the PDF-output, it must be
17796 loaded in the document preamble before the definition of floats to be able
17797 to reference floats.
17798 As LyX sets the float definition for algorithm floats automatically before
17799 the user editable part of the document preamble, you need to insert the
17800 following preamble lines
17804 the loading command of
17811 \begin_inset VSpace defskip
17818 newfloat{Xalgorithm}{tbp}{loa}
17822 floatname{Xalgorithm}{your\InsetSpace ~
17835 renewenvironment{algorithm}[1][tbp]
17841 \begin_layout Standard
17852 begin{Xalgorithm}[#1]}{
17855 \begin_inset VSpace defskip
17861 \begin_layout Standard
17862 Algorithm floats are not by default numbered in the scheme
17863 \begin_inset Quotes eld
17867 \begin_inset Quotes erd
17870 like it is the case for table and figure floats in many document-classes.
17871 To number algorithm floats in the same scheme, add this command to your
17875 \begin_layout Standard
17880 numberwithin{algorithm}{chapter}
17883 \begin_layout Standard
17884 If you use the LaTeX-package
17888 , add this line instead
17896 (the commands from above) to the preamble:
17899 \begin_layout Standard
17904 numberwithin{Xalgorithm}{chapter}
17907 \begin_layout Standard
17908 To be able to use the command
17919 in the document settings the option
17929 \begin_layout Subsection
17931 \begin_inset LatexCommand index
17932 name "Floats ! Text Wrap Floats"
17937 \begin_inset LatexCommand label
17938 name "sub:floatflt-wrap-float"
17945 \begin_layout Standard
17946 This float type is used if you want to
17947 \begin_inset Quotes eld
17951 \begin_inset Quotes erd
17954 text around a figure so that it only occupies some fraction of the column
17956 It can be inserted using the menu
17957 \begin_inset Wrap figure
17962 \begin_layout Standard
17963 \begin_inset Graphics
17964 filename clipart/mobius.eps
17967 scaleBeforeRotation
17968 rotateOrigin center
17975 \begin_layout Standard
17976 \begin_inset Caption
17978 \begin_layout Standard
17979 \begin_inset LatexCommand label
17980 name "fig:This-is-a"
17984 This is a wrapped figure, and this is the brilliant caption that describes
17986 \begin_inset VSpace medskip
18001 Insert\SpecialChar \menuseparator
18002 Floats\SpecialChar \menuseparator
18007 if the LaTeX-package
18009 f\SpecialChar \textcompwordmark{}
18010 loatf\SpecialChar \textcompwordmark{}
18014 \begin_inset LatexCommand index
18015 name "LaTeX-packages ! floatflt"
18023 \begin_layout Standard
18024 Installing a LaTeX-package is explained it in the
18034 The width and placement of the float is adjusted by right-clicking on the
18036 Figure\InsetSpace ~
18038 \begin_inset LatexCommand ref
18039 reference "fig:This-is-a"
18043 is an example text wrap float with a width of 40
18044 \begin_inset Formula $\,$
18051 \begin_layout Standard
18052 Available units are explained in
18053 \begin_inset LatexCommand ref
18054 reference "cha:Units-available-in"
18063 Some space was added under the caption to separate it better from the surroundi
18067 \begin_layout Standard
18070 f\SpecialChar \textcompwordmark{}
18071 loatf\SpecialChar \textcompwordmark{}
18074 also supports table wrap floats, but they are not yet supported by LyX.
18075 If you need this, read the documentation of
18077 f\SpecialChar \textcompwordmark{}
18078 loatf\SpecialChar \textcompwordmark{}
18082 \begin_inset LatexCommand cite
18090 \begin_layout Standard
18091 \begin_inset Note Greyedout
18094 \begin_layout Standard
18100 wrap float floats are fragile! E.\InsetSpace \thinspace{}
18102 having a figure too close to the bottom
18103 of the page can mess things up in the way that the float doesn't appear
18104 in the output or that it is placed over some other text.
18108 \begin_layout Standard
18109 The better solution is to use the LaTeX-package
18111 wrapf\SpecialChar \textcompwordmark{}
18115 \begin_inset LatexCommand index
18116 name "LaTeX-packages ! wrapfig\\vspace{4mm}"
18122 f\SpecialChar \textcompwordmark{}
18123 loatf\SpecialChar \textcompwordmark{}
18126 , but it is currently not supported by LyX.
18139 \begin_layout Standard
18143 \begin_layout Itemize
18144 Wrap floats should not be placed in paragraphs that run over a page break.
18145 That means that wrap floats should better be inserted to the exact place
18146 when the document is nearly finished and you are able to estimate where
18147 page breaks will appear.
18150 \begin_layout Itemize
18151 Wrap floats should either be placed in an own paragraph before the paragraph
18152 where they should wrap into or within a paragraph.
18155 \begin_layout Itemize
18156 Wrap floats in consecutive paragraphs may cause troubles, so assure that
18157 there is a text paragraph between them as separator.
18160 \begin_layout Itemize
18161 Wrap floats are not allowed in section headings or tables.
18164 \begin_layout Section
18166 \begin_inset LatexCommand label
18167 name "sec:Float-Numbering"
18172 \begin_inset LatexCommand index
18173 name "Floats ! Numbering"
18180 \begin_layout Standard
18181 Floats are usually numbered either independent from the sections the floats
18182 are in, or in the scheme
18183 \begin_inset Quotes eld
18187 \begin_inset Quotes erd
18191 \begin_inset Quotes eld
18195 \begin_inset Quotes erd
18199 This depends on the used document class.
18202 \begin_layout Standard
18203 To change the section independent numbering, you can use this command in
18204 the document preamble:
18207 \begin_layout Standard
18219 \begin_layout Standard
18226 is the command that prints the table number, for figure floats, the command
18240 prints in the command above the table number as small roman number.
18243 \begin_layout Standard
18244 To change the numbering scheme for example to
18245 \begin_inset Quotes eld
18249 \begin_inset Quotes erd
18252 , use this command in the preamble:
18255 \begin_layout Standard
18260 numberwithin{table}{subsection}
18263 \begin_layout Standard
18264 To be able to use the command
18275 in the document settings the option
18285 \begin_layout Standard
18286 Please also have a look at section\InsetSpace ~
18288 \begin_inset LatexCommand ref
18289 reference "sub:Footnote-Numbering"
18293 for the details and important notes about the numbering commands.
18296 \begin_layout Section
18298 \begin_inset LatexCommand label
18299 name "sec:Referencing-Floats"
18304 \begin_inset LatexCommand index
18305 name "Floats ! References"
18310 \begin_inset LatexCommand index
18318 \begin_layout Standard
18319 To reference a float, insert a label into its caption using the menu
18321 Insert\SpecialChar \menuseparator
18324 or the toolbar button
18325 \begin_inset Graphics
18326 filename ../images/label-insert.xpm
18328 scaleBeforeRotation
18333 A grey label box like this one:
18334 \begin_inset Graphics
18335 filename clipart/labelQt4.png
18337 scaleBeforeRotation
18341 will be inserted and the label window pops up asking for the label text.
18342 LyX offers as text the first words of the caption with a prefix.
18343 The prefix depends on the float type, e.\InsetSpace \thinspace{}
18345 for figure floats the prefix will
18353 \begin_layout Standard
18354 The label is used as anchor and name for the reference.
18355 You can refer to the label using the menu
18357 Insert\SpecialChar \menuseparator
18360 or the toolbar button
18361 \begin_inset Graphics
18362 filename ../images/dialog-show-new-inset_ref.xpm
18364 scaleBeforeRotation
18369 A grey cross-reference box like this one:
18370 \begin_inset Graphics
18371 filename clipart/referenceQt4.png
18373 scaleBeforeRotation
18377 will be inserted and the cross-reference window appear showing all labels
18379 If you have multiple LyX-documents opened, choose the one you are working
18380 on from the drop-list at the top of the dialog.
18381 You can now sort the labels alphabetically and then choose one.
18382 At the position of the cross-reference box the float number will appear
18386 \begin_layout Standard
18387 It is recommended to use a protected space between the cross-reference name
18388 and its number to avoid line breaks between them.
18389 If a cross-reference refers to a non-existing label, you will see two question
18390 marks in the output instead of the reference.
18393 \begin_layout Standard
18394 You can change labels at any time by clicking on the label box.
18395 References to the changed label will automatically change its link to the
18396 new label text, so that you don't need to take care about this.
18399 \begin_layout Standard
18406 in the cross-reference window sets the cursor before the referred label.
18407 The button text changes then to Go\InsetSpace ~
18408 Back and you can use it to set the cursor
18409 back to the cross-reference.
18410 Right-clicking on a cross-reference box also sets the cursor before the
18411 referenced label but without a possibility to go back.
18414 \begin_layout Subsection
18415 Cross-Reference Formats
18416 \begin_inset LatexCommand label
18417 name "sub:Cross-Reference-Formats"
18422 \begin_inset LatexCommand index
18423 name "References ! Formats"
18430 \begin_layout Standard
18431 There are six varieties of cross-references:
18434 \begin_layout Description
18435 <reference>: prints the float number, this is the default:
18436 \begin_inset LatexCommand ref
18437 reference "fig:Two-distorted-images"
18444 \begin_layout Description
18445 (<reference>): prints the float number within two parentheses, this is the
18446 style normally used to reference formulas, especially when the reference
18448 \begin_inset Quotes eld
18452 \begin_inset Quotes erd
18456 \begin_inset LatexCommand eqref
18464 \begin_layout Description
18465 <page>: prints the page number: Page\InsetSpace ~
18467 \begin_inset LatexCommand pageref
18468 reference "fig:Two-distorted-images"
18475 \begin_layout Description
18478 <page>: prints the text "on page" and the page number:
18479 \begin_inset LatexCommand vpageref
18480 reference "fig:Two-distorted-images"
18487 \begin_layout Description
18488 <reference>\InsetSpace ~
18491 <page>: prints the float number, the text "on page", and
18493 \begin_inset LatexCommand vref
18494 reference "fig:Two-distorted-images"
18501 \begin_layout Description
18502 Formatted\InsetSpace ~
18503 reference: prints a self defined cross-reference format.
18505 \begin_inset Note Greyedout
18508 \begin_layout Standard
18513 This feature is only available when you have the LaTeX-package
18525 \begin_layout Standard
18526 Note that the style <page> won't print the page number if the label is on
18527 the previous, the same, or the next page.
18528 You will e.\InsetSpace \thinspace{}
18531 \begin_inset Quotes eld
18539 \begin_inset Quotes erd
18545 \begin_layout Standard
18546 The number and current page of the referred document part in the output,
18547 is automatically calculated by LaTeX.
18548 The varieties are adjusted in the field
18552 of the cross-reference window, that appear when you click on the cross-referenc
18556 \begin_layout Subsection
18557 Referencing Subfigures
18558 \begin_inset LatexCommand label
18559 name "sub:Referencing-Subfigures"
18564 \begin_inset LatexCommand index
18565 name "References ! to Subfigures"
18572 \begin_layout Standard
18573 Currently referencing subfigures is not supported by LyX, so you have to
18574 use LaTeX-commands.
18575 The label is the created with the command
18578 \begin_layout Standard
18583 label{fig:YourLabelName}
18586 \begin_layout Standard
18587 that is directly inserted into the subfigure caption field.
18588 To reference the label add this command in ERT
18591 \begin_layout Standard
18596 ref{fig:YourLabelName}
18599 \begin_layout Standard
18600 to the position in your document where the reference should be placed.
18601 Here is a reference to a subfigure: Subfigure\InsetSpace ~
18606 \begin_layout Standard
18618 \begin_layout Subsection
18619 Automatic Reference Naming
18620 \begin_inset LatexCommand index
18621 name "References ! Automatic Reference Naming"
18628 \begin_layout Standard
18633 provides a very useful feature that cross-references automatically include
18634 the name of the referenced floats (or text parts like sections).
18635 You save to write e.\InsetSpace \thinspace{}
18638 \begin_inset Quotes eld
18642 \begin_inset Quotes erd
18645 before every reference box.
18646 To get this automatic reference naming, you have to load the LaTeX-package
18652 \begin_inset LatexCommand index
18653 name "LaTeX-packages ! hyperref"
18657 in the document preamble with
18660 \begin_layout Standard
18665 usepackage[pdfborder={0 0 0}]{hyperref}
18680 \begin_layout Standard
18685 is used to link cross-references in the DVI- and PDF-output, this means
18686 that the reader of your document will be able to click on a table of content
18687 (TOC) entry or on a reference and he will be shown the referenced document
18693 also creates PDF-bookmarks for every section of your document to make it
18694 easier for readers to navigate through the document.
18695 This is also used in this document but when you have a look in the document
18696 preamble you will find various options in the load command of
18701 To learn more about the
18705 package, we refer to its documentation
18706 \begin_inset LatexCommand cite
18714 \begin_layout Standard
18715 \begin_inset Note Greyedout
18718 \begin_layout Standard
18723 Automatic reference naming cannot be used when you use cross-references
18726 Formatted\InsetSpace ~
18729 style, described in section\InsetSpace ~
18731 \begin_inset LatexCommand ref
18732 reference "sub:Cross-Reference-Formats"
18744 \begin_layout Subsection
18746 \begin_inset LatexCommand label
18747 name "sub:Reference-Position"
18752 \begin_inset LatexCommand index
18753 name "References ! Reference Position"
18760 \begin_layout Standard
18766 \begin_inset LatexCommand index
18767 name "LaTeX-packages ! hyperref"
18771 to link cross-references in the output, you will see that clicking on an
18772 image float reference jumps to the image label.
18773 The caption will be the first text part on the screen, so that you cannot
18774 see the image without scrolling.
18775 This is because the reference link anchor is placed at the position of
18777 With the use of the package
18782 \begin_inset LatexCommand index
18783 name "LaTeX-packages ! hypcap"
18787 , which is part of the LaTeX-package
18792 \begin_inset LatexCommand index
18793 name "LaTeX-packages ! oberdiek"
18797 , the link anchor is placed at the beginning of a float.
18798 To use this feature for figure floats, load
18802 in the document preamble with the line
18805 \begin_layout Standard
18810 usepackage[f\SpecialChar \textcompwordmark{}
18814 \begin_layout Standard
18819 for all floats but this isn't recommended for stability reasons.
18820 For more informations, have a look at
18825 \begin_inset LatexCommand cite
18833 \begin_layout Standard
18834 \begin_inset Note Greyedout
18837 \begin_layout Standard
18846 must be loaded after
18850 in the document preamble.
18858 \begin_layout Standard
18859 \begin_inset Note Greyedout
18862 \begin_layout Standard
18871 has no effect for references to subfigures.
18879 \begin_layout Section
18881 \begin_inset LatexCommand label
18882 name "sec:Float-Placement"
18887 \begin_inset LatexCommand index
18888 name "Floats ! Placement"
18895 \begin_layout Standard
18896 Right-clicking on a float-box opens a dialog where you can alter the placement
18897 options that LaTeX uses for positioning the float.
18904 is only useful for two-column documents: If you select it, the float will
18905 span across both columns on the page instead of being confined to just
18910 Rotate\InsetSpace ~
18913 is used to rotate floats, see section
18914 \begin_inset LatexCommand ref
18915 reference "sec:Rotated-Floats"
18922 \begin_layout Standard
18923 You can use one ore more of the following options in the float dialog to
18924 set the placement for a particular float when you uncheck the option
18927 default\InsetSpace ~
18933 \begin_layout Description
18936 possible try to place the float on the position where it is inserted
18939 \begin_layout Description
18942 page try to place the float on the top of the current page
18945 \begin_layout Description
18946 Bottom\InsetSpace ~
18948 page try to place the float on the bottom of the current page
18951 \begin_layout Description
18954 floats try to place the float on an own page
18957 \begin_layout Standard
18958 The order of the above option is
18963 That means, if you use the default placement, LaTeX will first try out
18976 , and then the others.
18977 If you don't use the default, LaTeX will try only the checked options but
18979 If none of the 4 placements are possible the procedure is internally repeated
18980 but it is tried to put the float on the following page.
18983 \begin_layout Standard
18984 By default, each option has its own rules:
18987 \begin_layout Labeling
18988 \labelwidthstring 00.00.0000
18995 only floats occupying less than 70\InsetSpace \thinspace{}
18996 % of the page can be placed at the top
19006 \begin_layout Labeling
19007 \labelwidthstring 00.00.0000
19010 Bottom\InsetSpace ~
19014 : only floats occupying less than 30\InsetSpace \thinspace{}
19015 % of the page can be placed at the bottom
19026 \begin_layout Labeling
19027 \labelwidthstring 00.00.0000
19034 : only if more than 50\InsetSpace \thinspace{}
19035 % of the page are occupied by floats, several floats
19036 can be set together on a page.
19041 f\SpecialChar \textcompwordmark{}
19047 \begin_layout Standard
19048 If you don't like these rules, you can ignore them by using the additional
19051 Ignore\InsetSpace ~
19057 You can also redefine the rules with LaTeX-commands that are given in parenthese
19058 s behind the rules description above.
19059 To increase for example the often too small default of the bottom-rule
19060 to 50\InsetSpace \thinspace{}
19061 % of the page, add this line to your document preamble:
19064 \begin_layout Standard
19071 bottomfraction}{0.5}
19074 \begin_layout Standard
19075 Sometimes you might need, under all circumstances, a float to be placed
19076 exactly at the position where it is inserted.
19077 For this case you can use the option
19083 Use this option very rarely and only if the document is nearly ready to
19085 Because the float is then no longer able to
19086 \begin_inset Quotes eld
19090 \begin_inset Quotes erd
19093 when you change your document and this will often destroy the page layout.
19096 \begin_layout Standard
19097 There are no placement options for text wrap floats, because they are always
19098 surrounded by the text of a certain paragraph.
19099 \begin_inset VSpace bigskip
19105 \begin_layout Standard
19106 Sometimes you have the problem that a float is placed at the top of a page
19107 while its corresponding section starts at the middle of the page, so that
19108 the reader could think the float is part of the previous section.
19109 To avoid this the LaTeX-command
19113 suppressf\SpecialChar \textcompwordmark{}
19117 It suppresses a given float placement for the page where it is inserted
19118 and can therefore be used to avoid that floats could be set before a section
19120 To get this, add these commands to your document preamble:
19123 \begin_layout Standard
19140 suppressf\SpecialChar \textcompwordmark{}
19146 \begin_layout Standard
19147 You can define the same for all section headings, like chapters and subsections.
19148 This definition is not recommended to be used for small text parts like
19149 subsubsections because LaTeX may then have problems to find a suitable
19153 \begin_layout Standard
19154 \begin_inset VSpace bigskip
19157 In some cases it is required to have all figures/tables at the end of the
19159 For this purpose the LaTeX-package
19161 endf\SpecialChar \textcompwordmark{}
19165 \begin_inset LatexCommand index
19166 name "LaTeX-packages ! endfloat"
19171 It puts all figure and table floats at the end of the document into own
19173 At the original float position a text hint like
19174 \begin_inset Quotes eld
19179 [Figure\InsetSpace ~
19183 \begin_inset Quotes erd
19187 The endfloat-package is loaded in the preamble with the line
19190 \begin_layout Standard
19195 usepackage[options]{endf\SpecialChar \textcompwordmark{}
19199 \begin_layout Standard
19200 There are various package options to format the created figure/table sections.
19201 For more information we refer to the
19203 endf\SpecialChar \textcompwordmark{}
19207 \begin_inset LatexCommand cite
19215 \begin_inset Note Greyedout
19218 \begin_layout Standard
19221 Note: endf\SpecialChar \textcompwordmark{}
19224 doesn't provide an automatic translation for the text hint, you have to
19225 do this manually, see section\InsetSpace ~
19227 \begin_inset LatexCommand cite
19240 \begin_inset Note Greyedout
19243 \begin_layout Standard
19248 There is currently a bug in
19250 endf\SpecialChar \textcompwordmark{}
19253 when the caption contains a German
19254 \begin_inset Quotes eld
19258 \begin_inset Quotes erd
19262 Use in this case the command
19263 \begin_inset Quotes eld
19273 \begin_inset Quotes erd
19277 \begin_inset Quotes eld
19281 \begin_inset Quotes erd
19292 \begin_layout Standard
19293 \begin_inset VSpace bigskip
19296 For more details about float placements, have a look at LaTeX books,
19297 \begin_inset LatexCommand cite
19298 key "latexcompanion,latexguide,latexbook"
19305 \begin_layout Section
19307 \begin_inset LatexCommand label
19308 name "sec:Rotated-Floats"
19313 \begin_inset LatexCommand index
19314 name "Floats ! Rotating"
19321 \begin_layout Standard
19322 Especially for wide tables you might have floats rotated.
19323 To rotate a whole float including the caption, right-click on the float-box
19326 Rotate\InsetSpace ~
19332 \begin_layout Standard
19333 Rotated floats are always placed on its own page (or column, when you have
19334 a two-column document).
19335 They are normally rotated so that you can read them from the outside margin
19336 -- to the left on even pages, to the right on odd pages.
19337 To force a certain rotation direction for all pages, you can add either
19340 f\SpecialChar \textcompwordmark{}
19345 f\SpecialChar \textcompwordmark{}
19348 to the document class options.
19351 \begin_layout Standard
19352 Referencing rotated floats is the same like for normal floats, the caption
19353 format is also the same: Table\InsetSpace ~
19355 \begin_inset LatexCommand ref
19356 reference "tab:Rotated-table"
19360 is an example of a rotated table float.
19363 \begin_layout Standard
19364 \begin_inset Note Greyedout
19367 \begin_layout Standard
19372 Not all DVI-viewers are able to display rotated floats.
19380 \begin_layout Standard
19381 \begin_inset Float table
19386 \begin_layout Standard
19387 \begin_inset Caption
19389 \begin_layout Standard
19390 \begin_inset LatexCommand label
19391 name "tab:Rotated-table"
19403 \begin_layout Standard
19405 \begin_inset Tabular
19406 <lyxtabular version="3" rows="1" columns="5">
19408 <column alignment="center" valignment="top" leftline="true" width="0">
19409 <column alignment="center" valignment="top" leftline="true" width="0">
19410 <column alignment="center" valignment="top" leftline="true" width="0">
19411 <column alignment="center" valignment="top" leftline="true" width="0">
19412 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19413 <row topline="true" bottomline="true">
19414 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19417 \begin_layout Standard
19423 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19426 \begin_layout Standard
19432 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19435 \begin_layout Standard
19441 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19444 \begin_layout Standard
19450 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19453 \begin_layout Standard
19472 \begin_layout Section
19474 \begin_inset LatexCommand index
19475 name "Caption ! Formatting"
19480 \begin_inset LatexCommand index
19481 name "Floats ! Caption Formatting"
19486 \begin_inset LatexCommand index
19487 name "LaTeX-packages ! caption"
19492 \begin_inset LatexCommand label
19493 name "sec:Caption-Formatting"
19500 \begin_layout Standard
19505 environment is the default paragraph environment for
19510 On the LyX screen captions appear as label, e.\InsetSpace \thinspace{}
19513 \begin_inset Quotes eld
19521 \begin_inset Quotes erd
19524 followed by the caption text.
19526 \begin_inset Quotes eld
19530 \begin_inset Quotes erd
19533 is the actual reference number.
19534 By default the label and the number are in the same font as the caption
19535 text and a colon follows the number to divide the label from the text.
19536 This caption format is not suitable for all document formats.
19540 \begin_layout Standard
19541 To change the default caption format, load the LaTeX-package
19546 \begin_inset LatexCommand index
19547 name "LaTeX-packages ! caption"
19551 in the document preamble with this line:
19554 \begin_layout Standard
19559 usepackage[format definition]{caption}
19562 \begin_layout Standard
19563 To have for example the label and the number in sans-serif bold font and
19564 the table captions always above the table like in this document, use the
19568 \begin_layout Standard
19573 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
19576 \begin_layout Standard
19577 You can also define different caption formats for the different float types.
19578 In this case load the
19582 package without format specific options and define the different formats
19583 with the help of the command
19586 \begin_layout Standard
19591 captionsetup[float type]{format definition}
19594 \begin_layout Standard
19595 in the document preamble.
19596 For example the caption formats of Figure\InsetSpace ~
19598 \begin_inset LatexCommand ref
19599 reference "fig:This-is-an-fig"
19603 and Table\InsetSpace ~
19605 \begin_inset LatexCommand ref
19606 reference "tab:This-is-an-tab"
19610 can be created using these commands in the document preamble:
19613 \begin_layout Standard
19618 usepackage[tableposition=top]{caption}
19626 captionsetup[f\SpecialChar \textcompwordmark{}
19627 igure]{labelfont={tt}, textfont=it, indention=1cm,%
19633 \begin_layout Standard
19641 captionsetup[figure]
19652 captionsetup[table]{labelfont={bf,sf}}
19655 \begin_layout Standard
19656 \begin_inset Note Greyedout
19659 \begin_layout Standard
19668 has no effect when a
19673 \begin_inset LatexCommand index
19674 name "LaTeX-packages ! koma-script"
19678 document class is used.
19679 In this case the document class option
19691 \begin_layout Standard
19692 For more information about the package
19696 we refer to its documentation
19697 \begin_inset LatexCommand cite
19698 key "caption,caption-de"
19705 \begin_layout Standard
19706 To change the label name from e.g.
19708 \begin_inset Quotes eld
19712 \begin_inset Quotes erd
19716 \begin_inset Quotes eld
19720 \begin_inset Quotes erd
19723 use this preamble command:
19726 \begin_layout Standard
19733 fnum@figure}{Image~
19738 \begin_layout Standard
19745 inserts the figure number and
19748 \begin_inset Quotes eld
19754 \begin_inset Quotes erd
19757 creates a protected space.
19760 \begin_layout Standard
19761 \begin_inset VSpace bigskip
19769 \begin_inset LatexCommand index
19770 name "LaTeX-packages ! koma-script"
19776 article (koma-script)
19784 letter (koma-script)
19788 report (koma-script)
19790 \InsetSpace \thinspace{}
19791 ), you can alternatively to the
19799 's built-in command
19806 For example, to have the caption label in bold, add this command to your
19810 \begin_layout Standard
19815 setkomafont{captionlabel}{
19820 \begin_layout Standard
19821 For more information about
19832 \begin_inset LatexCommand cite
19833 key "koma-script,koma-script-de"
19840 \begin_layout Standard
19844 \begin_layout Standard
19848 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
19855 \begin_inset Note Note
19858 \begin_layout Standard
19859 The caption format is changed only for this example.
19867 \begin_layout Standard
19868 \begin_inset Float figure
19874 \begin_layout Standard
19876 \begin_inset Graphics
19877 filename clipart/mobius.eps
19880 scaleBeforeRotation
19887 \begin_layout Standard
19888 \begin_inset Caption
19890 \begin_layout Standard
19891 \begin_inset LatexCommand label
19892 name "fig:This-is-an-fig"
19896 This is an example figure caption that is longer than one line to show the
19897 different caption format.
19898 Here a self-defined caption format is used.
19911 \begin_layout Standard
19915 \begin_layout Standard
19919 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
19928 \begin_layout Standard
19929 \begin_inset Float table
19935 \begin_layout Standard
19936 \begin_inset Caption
19938 \begin_layout Standard
19939 \begin_inset LatexCommand label
19940 name "tab:This-is-an-tab"
19944 This is an example table caption that is longer than one line to show the
19945 different caption format.
19946 Here the standard caption format for tables in this document is used.
19954 \begin_layout Standard
19956 \begin_inset Tabular
19957 <lyxtabular version="3" rows="1" columns="5">
19959 <column alignment="center" valignment="top" leftline="true" width="0">
19960 <column alignment="center" valignment="top" leftline="true" width="0">
19961 <column alignment="center" valignment="top" leftline="true" width="0">
19962 <column alignment="center" valignment="top" leftline="true" width="0">
19963 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19964 <row topline="true" bottomline="true">
19965 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19968 \begin_layout Standard
19974 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19977 \begin_layout Standard
19983 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19986 \begin_layout Standard
19992 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19995 \begin_layout Standard
20001 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20004 \begin_layout Standard
20023 \begin_layout Section
20025 \begin_inset LatexCommand index
20026 name "Caption ! Placement"
20031 \begin_inset LatexCommand index
20032 name "Floats ! Caption Placement"
20037 \begin_inset LatexCommand label
20038 name "sec:Caption-Placement"
20045 \begin_layout Standard
20046 The common caption placement rule is:
20049 \begin_layout Description
20050 Figure: Caption is set below the figure
20053 \begin_layout Description
20054 Table: Caption is set above the table
20057 \begin_layout Standard
20058 Having the caption above the table is unfortunately not supported in LaTeX's
20060 That means if you are using the document classes
20076 there will be no space between the caption and the table.
20077 To insert the needed space, add the following option to the load command
20078 of the LaTeX-package
20082 in your document preamble
20086 \begin_layout Standard
20087 See section\InsetSpace ~
20089 \begin_inset LatexCommand ref
20090 reference "sec:Caption-Formatting"
20094 for more information of the package
20106 \begin_layout Standard
20112 \begin_layout Standard
20118 \begin_inset LatexCommand index
20119 name "LaTeX-packages ! koma-script"
20125 article (koma-script)
20133 letter (koma-script)
20137 report (koma-script)
20139 \InsetSpace \thinspace{}
20140 ), you can alternatively to the
20144 package set the document class option
20151 \begin_layout Standard
20152 \begin_inset VSpace bigskip
20155 It is also possible to set the caption beside a figure or table.
20156 To get this the LaTeX-package
20161 \begin_inset LatexCommand index
20162 name "LaTeX-packages ! sidecap"
20166 has to be loaded in the document preamble with the line
20169 \begin_layout Standard
20174 usepackage[option]{sidecap}
20177 \begin_layout Standard
20178 If you set no option, the caption is placed on the side of the outer page
20179 margin -- to the right on odd pages, to the left on even pages.
20180 You can change the placement to inner margin with the option
20185 To force the placement always to the right or left, use the option
20196 \begin_layout Standard
20197 To place in LyX the caption of a float on the side, it is necessary to add
20198 these commands to the document preamble:
20201 \begin_layout Standard
20207 \begin_layout Standard
20220 \begin_layout Standard
20241 \begin_layout Standard
20262 \begin_layout Standard
20273 renewenvironment{table}{
20280 \begin_layout Standard
20293 \begin_layout Standard
20314 \begin_layout Standard
20332 \begin_layout Standard
20345 \begin_layout Standard
20360 f\SpecialChar \textcompwordmark{}
20367 \begin_layout Standard
20380 MyEndf\SpecialChar \textcompwordmark{}
20383 endf\SpecialChar \textcompwordmark{}
20390 \begin_layout Standard
20401 renewenvironment{f\SpecialChar \textcompwordmark{}
20404 begin{SCf\SpecialChar \textcompwordmark{}
20407 end{SCf\SpecialChar \textcompwordmark{}
20411 \begin_layout Standard
20424 \begin_layout Standard
20437 f\SpecialChar \textcompwordmark{}
20446 \begin_layout Standard
20459 endf\SpecialChar \textcompwordmark{}
20462 MyEndf\SpecialChar \textcompwordmark{}
20466 \begin_layout Standard
20472 \begin_layout Standard
20473 The commands allow you to redefine the floats so that the caption is set
20475 For figure floats use the command
20478 \begin_layout Standard
20486 \begin_layout Standard
20487 in ERT before the float.
20488 Behind the float insert the command
20491 \begin_layout Standard
20499 \begin_layout Standard
20500 in ERT to get back to the original float definition.
20503 \begin_layout Standard
20504 For table floats use the corresponding commands
20507 \begin_layout Standard
20521 \begin_layout Standard
20522 Figure\InsetSpace ~
20524 \begin_inset LatexCommand ref
20525 reference "fig:cap-beside-fig"
20529 and Table\InsetSpace ~
20531 \begin_inset LatexCommand ref
20532 reference "tab:cap-beside-tab"
20536 are examples where the caption is set beside.
20539 \begin_layout Standard
20540 You can see in the examples that the caption text appears at the top of
20541 the floats for table floats and at the bottom for figure floats.
20542 To change this, you can use the command
20545 \begin_layout Standard
20550 sidecaptionvpos{float type}{placement}
20553 \begin_layout Standard
20554 in the document preamble or in ERT before the float.
20555 The float type is either
20563 , the placement can be
20564 \begin_inset Quotes eld
20572 \begin_inset Quotes erd
20576 \begin_inset Quotes eld
20584 \begin_inset Quotes erd
20588 \begin_inset Quotes eld
20596 \begin_inset Quotes erd
20600 To have for example the caption of figure floats vertically centered, use
20604 \begin_layout Standard
20609 sidecaptionvpos{f\SpecialChar \textcompwordmark{}
20613 \begin_layout Standard
20614 This was used for Figure\InsetSpace ~
20616 \begin_inset LatexCommand ref
20617 reference "fig:cap-beside-fig-2"
20624 \begin_layout Standard
20625 \begin_inset VSpace medskip
20628 For more information about the package
20632 we refer to its documentation
20633 \begin_inset LatexCommand cite
20641 \begin_layout Standard
20642 \begin_inset Note Greyedout
20645 \begin_layout Standard
20655 \begin_inset LatexCommand index
20656 name "LaTeX-packages ! hypcap"
20660 , described in section\InsetSpace ~
20662 \begin_inset LatexCommand ref
20663 reference "sub:Reference-Position"
20667 , has no effect on floats with the caption set beside.
20675 \begin_layout Standard
20679 \begin_layout Standard
20691 \begin_layout Standard
20692 \begin_inset Float figure
20697 \begin_layout Standard
20698 \begin_inset Graphics
20699 filename clipart/escher-lsd.eps
20701 scaleBeforeRotation
20708 \begin_layout Standard
20709 \begin_inset Caption
20711 \begin_layout Standard
20712 \begin_inset LatexCommand label
20713 name "fig:cap-beside-fig"
20717 This is a caption beside a figure.
20730 \begin_layout Standard
20734 \begin_layout Standard
20746 \begin_layout Standard
20747 \begin_inset Float table
20752 \begin_layout Standard
20753 \begin_inset Caption
20755 \begin_layout Standard
20756 \begin_inset LatexCommand label
20757 name "tab:cap-beside-tab"
20761 This is a caption beside a table.
20769 \begin_layout Standard
20770 \begin_inset Tabular
20771 <lyxtabular version="3" rows="4" columns="5">
20773 <column alignment="center" valignment="top" leftline="true" width="0">
20774 <column alignment="center" valignment="top" leftline="true" width="0">
20775 <column alignment="center" valignment="top" leftline="true" width="0">
20776 <column alignment="center" valignment="top" leftline="true" width="0">
20777 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
20778 <row topline="true">
20779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20782 \begin_layout Standard
20788 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20791 \begin_layout Standard
20797 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20800 \begin_layout Standard
20806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20809 \begin_layout Standard
20815 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20818 \begin_layout Standard
20825 <row topline="true">
20826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20829 \begin_layout Standard
20835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20838 \begin_layout Standard
20844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20847 \begin_layout Standard
20853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20856 \begin_layout Standard
20862 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20865 \begin_layout Standard
20872 <row topline="true">
20873 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20876 \begin_layout Standard
20882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20885 \begin_layout Standard
20891 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20894 \begin_layout Standard
20900 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20903 \begin_layout Standard
20909 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20912 \begin_layout Standard
20919 <row topline="true" bottomline="true">
20920 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20923 \begin_layout Standard
20929 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20932 \begin_layout Standard
20938 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20941 \begin_layout Standard
20947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20950 \begin_layout Standard
20956 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20959 \begin_layout Standard
20978 \begin_layout Standard
20982 \begin_layout Standard
20994 \begin_layout Standard
20998 \begin_layout Standard
21002 sidecaptionvpos{figure}{c}
21008 \begin_inset Float figure
21013 \begin_layout Standard
21014 \begin_inset Graphics
21015 filename clipart/escher-lsd.eps
21017 scaleBeforeRotation
21024 \begin_layout Standard
21025 \begin_inset Caption
21027 \begin_layout Standard
21028 \begin_inset LatexCommand label
21029 name "fig:cap-beside-fig-2"
21033 This is a vertically centered caption beside a figure.
21046 \begin_layout Standard
21050 \begin_layout Standard
21062 \begin_layout Section
21064 \begin_inset LatexCommand label
21065 name "sec:Listings-of-Floats"
21070 \begin_inset LatexCommand index
21071 name "Floats ! Float Lists"
21078 \begin_layout Standard
21079 Similar to the the table of contents where the sections of the document
21080 are listed, there are listings for all float types, like the figures of
21082 You can insert them via the
21084 Insert\SpecialChar \menuseparator
21092 \begin_layout Standard
21093 The list entries are the float captions or its short title, the float number,
21094 and the page number where they appear in the document.
21097 \begin_layout Standard
21098 You can find the list of figures and tables at the end of this document.
21101 \begin_layout Chapter
21105 \begin_layout Section
21109 \begin_layout Standard
21122 \begin_layout Standard
21130 \begin_inset LatexCommand label
21131 name "sec:LyX-Notes"
21136 \begin_inset LatexCommand index
21137 name "Notes ! LyX Notes"
21142 \begin_inset Note Note
21145 \begin_layout Standard
21148 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
21149 are displayed wrongly in PDF-bookmarks.
21150 For more information about this, have a look at
21151 \begin_inset LatexCommand cite
21164 \begin_layout Standard
21165 Notes are inserted with the toolbar button
21166 \begin_inset Graphics
21167 filename ../images/note-insert.xpm
21169 scaleBeforeRotation
21175 Insert\SpecialChar \menuseparator
21179 There are five types of notes:
21182 \begin_layout Description
21184 Note This note type is for internal notes that won't appear in the output.
21185 Its note-box looks like this:
21190 \begin_inset Graphics
21191 filename clipart/LyXNoteImageQt4.png
21194 scaleBeforeRotation
21199 \begin_inset Note Note
21202 \begin_layout Standard
21203 This is text in a note box that doesn't appear in the output.
21211 \begin_layout Description
21212 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
21213 ent, when you export the document to LaTeX via the menu
21215 File\SpecialChar \menuseparator
21216 Export\SpecialChar \menuseparator
21217 LaTeX (pdflatex) / LaTeX (plain)
21220 Its note-box looks like this:
21225 \begin_inset Graphics
21226 filename clipart/CommentNoteImageQt4.png
21229 scaleBeforeRotation
21234 \begin_inset Note Comment
21237 \begin_layout Standard
21238 This is text in a note box that only appears as comment in LaTeX-files.
21246 \begin_layout Description
21247 Greyed\InsetSpace ~
21248 Out This note will appear in the output as grey text.
21249 Its note-box looks like this:
21254 \begin_inset Graphics
21255 filename clipart/GreyedOutNoteImageQt4.png
21258 scaleBeforeRotation
21268 \begin_layout Standard
21272 renewenvironment{lyxgreyedout}
21275 \begin_layout Standard
21279 textcolor[gray]{0.8}
21289 \begin_inset Note Greyedout
21292 \begin_layout Standard
21297 \begin_layout Standard
21298 This is an example footnote within a greyed out note.
21303 of a comment that appears in the output as grey text.
21312 \begin_layout Standard
21316 renewenvironment{lyxgreyedout}
21319 \begin_layout Standard
21333 \begin_inset Note Note
21336 \begin_layout Standard
21337 The greyed out note is here redefined to show it with the original LyX definitio
21338 n because greyed out notes are redefined in the preamble of this document,
21339 as described below, to have blue text.
21348 As you can see in the example, the first line of greyed out notes is a bit
21349 indented and greyed out notes can have footnotes.
21352 \begin_layout Description
21353 Framed This note will appear in the output as framed text.
21354 Its note-box looks like this:
21359 \begin_inset Graphics
21360 filename clipart/FramedNoteImageQt4.png
21363 scaleBeforeRotation
21368 \begin_inset Note Framed
21371 \begin_layout Standard
21372 This is text in a note box that appears framed in the output.
21377 In contrary to framed boxes
21381 \begin_layout Standard
21382 Framed boxes are described in section\InsetSpace ~
21384 \begin_inset LatexCommand ref
21385 reference "sec:Framed-Boxes"
21394 the frame uses always the whole text width and the note is set into its
21398 \begin_layout Description
21399 Shaded This note will appear in the output with red background color.
21400 Its note box looks like this:
21405 \begin_inset Graphics
21406 filename clipart/ShadedNoteImageQt4.png
21409 scaleBeforeRotation
21414 \begin_inset Note Shaded
21417 \begin_layout Standard
21418 This text in a note box appears in the output with red background.
21423 In contrary to colored boxes
21427 \begin_layout Standard
21428 Colored boxes are described in section\InsetSpace ~
21430 \begin_inset LatexCommand ref
21431 reference "sec:Colored-Boxes"
21440 the note uses always the whole text width and the note is set into its
21444 \begin_layout Standard
21445 \begin_inset VSpace bigskip
21448 When you use the toolbar button
21449 \begin_inset Graphics
21450 filename ../images/note-insert.xpm
21452 scaleBeforeRotation
21462 You can switch between the five note types by right-clicking on the note-box.
21467 If you want to turn existing text into a note, mark it and click on the
21483 \begin_layout Standard
21484 \begin_inset VSpace bigskip
21487 You can change the text color of the greyed out notes in the preamble with
21488 the following command:
21491 \begin_layout Standard
21496 renewenvironment{lyxgreyedout}
21502 \begin_layout Standard
21520 \begin_layout Standard
21521 The available colors and the method to define own colors is explained in
21522 section\InsetSpace ~
21524 \begin_inset LatexCommand ref
21525 reference "sec:Colored-Tables"
21532 \begin_layout Standard
21533 Notes that appear in blue in this document are set using greyed out notes
21537 \begin_layout Standard
21538 \begin_inset VSpace bigskip
21544 \begin_layout Standard
21553 notes can be set in the
21560 \begin_layout Standard
21561 The default frame width for
21565 notes is 0.4\InsetSpace \thinspace{}
21566 pt; it can be changed by changing the size
21573 The default space between the note content and the frame is 9\InsetSpace \thinspace{}
21575 be changed by changing the size
21582 For example the frame appearance of the following
21586 note is set with the ERT commands
21589 \begin_layout Standard
21599 \begin_layout Standard
21603 \begin_layout Standard
21615 \begin_inset Note Framed
21618 \begin_layout Standard
21632 \begin_layout Standard
21646 \begin_layout Standard
21647 \begin_inset VSpace bigskip
21653 \begin_layout Standard
21658 notes the default space between the note content and the note border is
21659 3\InsetSpace \thinspace{}
21660 pt; it can be changed by changing the size
21668 The default background color red can be changed with the command
21672 def\SpecialChar \textcompwordmark{}
21680 def\SpecialChar \textcompwordmark{}
21683 command is explained in section\InsetSpace ~
21685 \begin_inset LatexCommand ref
21686 reference "sec:Colored-Tables"
21694 \begin_layout Standard
21701 \SpecialChar \textcompwordmark{}
21706 requires the LaTeX-package
21710 in the preamble, see section\InsetSpace ~
21712 \begin_inset LatexCommand ref
21713 reference "sec:Colored-Boxes"
21725 \begin_layout Standard
21726 For example the appearance of the following
21730 note is set with the ERT commands
21733 \begin_layout Standard
21746 def\SpecialChar \textcompwordmark{}
21747 inecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21750 \begin_layout Standard
21754 \begin_layout Standard
21767 \begin_layout Standard
21771 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21777 \begin_inset Note Shaded
21780 \begin_layout Standard
21783 This is yellow text in a
21793 note with darkgreen background.
21802 \begin_layout Standard
21815 \begin_layout Standard
21819 definecolor{shadecolor}{rgb}{1,0,0}
21827 \begin_layout Section
21829 \begin_inset LatexCommand label
21830 name "sec:Footnotes"
21835 \begin_inset LatexCommand index
21836 name "Notes ! Footnotes"
21841 \begin_inset LatexCommand index
21849 \begin_layout Standard
21850 Footnotes can be inserted using the toolbar button
21851 \begin_inset Graphics
21852 filename ../images/footnote-insert.xpm
21854 scaleBeforeRotation
21860 Insert\SpecialChar \menuseparator
21872 then the following footnote-box:
21873 \begin_inset Graphics
21874 filename clipart/footnoteQt4.png
21876 scaleBeforeRotation
21884 where you can enter the footnote text.
21885 If you want to turn existing text into a footnote, mark it and click on
21901 \begin_layout Standard
21902 Here is an example footnote:
21910 \begin_layout Standard
21911 \begin_inset LatexCommand label
21912 name "foot:This-is-an"
21916 This is an example footnote.
21929 \begin_layout Standard
21933 newcounter{MyRepeatFoot}
21936 \begin_layout Standard
21940 setcounter{MyRepeatFoot}{
21950 \begin_layout Standard
21951 The footnote will appear in the output as a superscript number at the text
21952 position where the footnote box is placed.
21953 The footnote text is placed at the bottom of the current page.
21954 The footnote number is calculated by LaTeX, the numbers are consecutive.
21955 It depends on your document-class, if the footnote number is reset for
21959 \begin_layout Standard
21960 Footnotes can be referenced like floats: Insert a label into the footnote
21961 and cross-reference this label in the text as described in section\InsetSpace ~
21963 \begin_inset LatexCommand ref
21964 reference "sec:Referencing-Floats"
21970 This is a cross-reference of Footnote\InsetSpace ~
21972 \begin_inset LatexCommand ref
21973 reference "foot:This-is-an"
21980 \begin_layout Standard
21981 \begin_inset VSpace defskip
21984 To use footnotes within tables, you have to use minipages, see section\InsetSpace ~
21986 \begin_inset LatexCommand ref
21987 reference "sec:Minipages"
21992 Footnotes within longtables are described in section\InsetSpace ~
21994 \begin_inset LatexCommand ref
21995 reference "sub:Footnotes-in-Longtables"
22002 \begin_layout Standard
22003 \begin_inset VSpace defskip
22006 To create only a mark for a footnote, use the command
22010 footnotemark[number]
22013 This is used when you have the same annotation several times in a text
22014 but doesn't want to print the footnote text every time.
22017 the number of the repeating footnote while you are writing the text, you
22018 have to store its number.
22019 For the following footnote mark example, these commands were inserted in
22020 ERT behind Footnote\InsetSpace ~
22022 \begin_inset LatexCommand ref
22023 reference "foot:This-is-an"
22027 to store the footnote number:
22030 \begin_layout Standard
22035 newcounter{MyRepeatFoot}
22039 setcounter{MyRepeatFoot}{
22044 \begin_layout Standard
22045 The footnote mark was then created with this command:
22048 \begin_layout Standard
22058 \begin_layout Standard
22059 Here is an example footnote mark:
22067 \begin_layout Standard
22081 \begin_layout Subsection
22083 \begin_inset LatexCommand label
22084 name "sub:Footnote-Numbering"
22089 \begin_inset LatexCommand index
22090 name "Footnotes ! Numbering"
22097 \begin_layout Standard
22098 To reset the footnote number back to 1 after each section
22100 , add this command to your document preamble:
22103 \begin_layout Standard
22108 @addtoreset{footnote}{section}
22111 \begin_layout Standard
22112 \begin_inset VSpace bigskip
22115 The following preamble command changes the footnote numbering style to small
22119 \begin_layout Standard
22131 \begin_layout Standard
22135 \begin_layout Standard
22148 This is a footnote with roman numbering:
22152 \begin_layout Standard
22153 This is an example footnote with roman numbering.
22161 \begin_layout Standard
22162 To change the numbering style to capital roman numerals replace in the command
22177 \begin_inset Quotes eld
22181 \begin_inset Quotes erd
22184 footnotes with capital or small Latin letters use
22198 \begin_inset Quotes eld
22202 \begin_inset Quotes erd
22205 footnotes with symbols use
22214 \begin_layout Standard
22215 \begin_inset Note Greyedout
22218 \begin_layout Standard
22223 You can only number 26 footnotes with Latin letters, because this numbering
22224 is limited to single letters.
22232 \begin_inset Note Greyedout
22235 \begin_layout Standard
22240 You can only number 9 footnotes with symbols.
22248 \begin_layout Standard
22249 To return to the default numbering style when you changed to another one,
22262 in the command above.
22266 \begin_layout Standard
22282 \begin_layout Standard
22283 \begin_inset VSpace bigskip
22289 \begin_layout Standard
22290 If you want to have footnotes numbered in the scheme
22291 \begin_inset Quotes eld
22295 \begin_inset Quotes erd
22298 , add the following command to your document preamble:
22301 \begin_layout Standard
22306 numberwithin{footnote}{chapter}
22309 \begin_layout Standard
22310 To be able to use the command
22321 in the document settings the option
22331 \begin_layout Standard
22335 \begin_layout Standard
22339 numberwithin{footnote}{chapter}
22344 This is another example footnote:
22350 \begin_layout Standard
22351 This is a footnote numbered in the scheme
22352 \begin_inset Quotes eld
22356 \begin_inset Quotes erd
22370 \begin_layout Standard
22386 \begin_layout Standard
22387 \begin_inset Note Greyedout
22390 \begin_layout Standard
22401 always prints out the footnote number as arabic number; previous redefinitions
22402 to get non-arabic numbers are overwritten.
22410 \begin_layout Standard
22411 So to get for example the scheme
22412 \begin_inset Quotes eld
22418 \begin_inset Quotes erd
22421 , use this command instead of
22430 \begin_layout Standard
22444 \begin_layout Subsection
22446 \begin_inset LatexCommand index
22447 name "Footnotes ! Placement"
22454 \begin_layout Standard
22455 If you have several footnotes in one page, they appear without vertical
22456 space between them at the bottom of the page.
22457 To make them better readable you can e.\InsetSpace \thinspace{}
22459 add 1.5\InsetSpace \thinspace{}
22460 mm space with the following
22464 \begin_layout Standard
22486 \begin_layout Standard
22487 \begin_inset VSpace bigskip
22490 In a two-column document the footnotes appear at the bottom of every column,
22491 see Figure\InsetSpace ~
22493 \begin_inset LatexCommand ref
22494 reference "fig:Standard-footnote-placement"
22499 If the footnotes should only appear at the bottom of the right column,
22500 as in Figure\InsetSpace ~
22502 \begin_inset LatexCommand ref
22503 reference "fig:Footnote-placement-in"
22507 , use the LaTeX-package
22512 \begin_inset LatexCommand index
22513 name "LaTeX-packages ! ftnright"
22517 with this command in the document preamble:
22520 \begin_layout Standard
22525 usepackage{ftnright}
22528 \begin_layout Standard
22529 \begin_inset Float figure
22535 \begin_layout Standard
22539 \begin_layout Standard
22549 \begin_inset Graphics
22550 filename clipart/without_fntright.pdf
22552 scaleBeforeRotation
22560 \begin_layout Standard
22570 \begin_layout Standard
22571 \begin_inset Caption
22573 \begin_layout Standard
22574 \begin_inset LatexCommand label
22575 name "fig:Standard-footnote-placement"
22579 Standard footnote placement in two-column documents.
22592 \begin_layout Standard
22593 \begin_inset Float figure
22599 \begin_layout Standard
22603 \begin_layout Standard
22613 \begin_inset Graphics
22614 filename clipart/with_fntright.pdf
22616 scaleBeforeRotation
22624 \begin_layout Standard
22634 \begin_layout Standard
22635 \begin_inset Caption
22637 \begin_layout Standard
22638 \begin_inset LatexCommand label
22639 name "fig:Footnote-placement-in"
22643 Footnote placement in two-column documents when the LaTeX-package
22660 \begin_layout Standard
22661 \begin_inset VSpace bigskip
22664 In some scientific literature it is usual to collect the footnotes and print
22665 them in a separate paragraph at the the end of a section, like in Figure\InsetSpace ~
22667 \begin_inset LatexCommand ref
22668 reference "fig:Endnotes----footnotes"
22673 They are then so called
22674 \begin_inset Quotes eld
22678 \begin_inset Quotes erd
22682 To use endnotes instead of footnotes in your document, load the LaTeX-package
22688 \begin_inset LatexCommand index
22689 name "LaTeX-packages ! endnotes"
22693 with the document preamble lines
22696 \begin_layout Standard
22701 usepackage{endnotes}
22712 \begin_layout Standard
22713 To insert the collected footnotes, insert the command
22716 \begin_layout Standard
22724 \begin_layout Standard
22725 in ERT at the the end of a section or chapter.
22728 \begin_layout Standard
22729 \begin_inset Float figure
22734 \begin_layout Standard
22739 \begin_layout Standard
22749 \begin_inset Graphics
22750 filename clipart/endnotes.pdf
22751 scaleBeforeRotation
22759 \begin_layout Standard
22769 \begin_layout Standard
22770 \begin_inset Caption
22772 \begin_layout Standard
22773 \begin_inset LatexCommand label
22774 name "fig:Endnotes----footnotes"
22778 Endnotes -- footnotes are printed in a separate paragraph at the end of
22779 sections or chapters.
22792 \begin_layout Standard
22793 \begin_inset VSpace medskip
22796 The paragraph heading for the endnotes isn't automatically translated into
22797 the document language, this must be done manually.
22798 The following preamble command translate the default English name
22799 \begin_inset Quotes eld
22803 \begin_inset Quotes erd
22806 to the German translation
22807 \begin_inset Quotes eld
22811 \begin_inset Quotes erd
22817 \begin_layout Standard
22824 notesname}{Anmerkungen}
22827 \begin_layout Standard
22828 \begin_inset VSpace medskip
22831 The numbering of endnotes can be changed like the footnote numbering as
22832 described in section\InsetSpace ~
22834 \begin_inset LatexCommand ref
22835 reference "sub:Footnote-Numbering"
22839 ; just replace the command
22852 To reset the endnote number use the command
22858 as described in section\InsetSpace ~
22860 \begin_inset LatexCommand ref
22861 reference "sub:Footnote-Numbering"
22865 and replace the command parameter
22876 \begin_layout Standard
22877 To create only a mark for an endnote, use the command
22881 endnotemark[number]
22883 similar to the command
22889 , described in section\InsetSpace ~
22891 \begin_inset LatexCommand ref
22892 reference "sec:Footnotes"
22899 \begin_layout Standard
22900 \begin_inset VSpace bigskip
22903 Footnotes can also be placed in the page margin and the footnote text alignment
22904 can be changed, see the LaTeX-package
22909 \begin_inset LatexCommand index
22910 name "LaTeX-packages ! footmisc"
22915 \begin_inset LatexCommand cite
22920 for more information about this.
22923 \begin_layout Standard
22924 For various further footnote formatting issues have a look at LaTeX-books,
22926 \begin_inset LatexCommand cite
22927 key "latexcompanion,latexguide,latexbook"
22934 \begin_layout Section
22936 \begin_inset LatexCommand index
22937 name "Notes ! Margin Notes"
22944 \begin_layout Standard
22945 Margin notes look and behave in LyX like footnotes.
22946 They are inserted via the menu
22948 Insert\SpecialChar \menuseparator
22949 Marginal\InsetSpace ~
22952 or the toolbar button
22953 \begin_inset Graphics
22954 filename ../images/marginalnote-insert.xpm
22956 scaleBeforeRotation
22971 \begin_inset Quotes eld
22975 \begin_inset Quotes erd
22978 appears where you can enter the text of the margin note.
22981 \begin_layout Standard
22982 At the side is an example margin note.
22986 \begin_inset Marginal
22989 \begin_layout Standard
22990 This is a margin note.
22998 \begin_layout Standard
22999 Margin notes appear at the right side in single-sided documents.
23000 In double-sided documents they appear in the outer margin -- left on even
23001 pages, right on odd pages.
23002 The text of margin notes is aligned opposite to the outer margin -- right-align
23003 ed when the note appears in the left margin.
23004 The first line of the margin note is placed at the position of the text
23005 line where it is inserted in the document.
23008 \begin_layout Standard
23009 \begin_inset VSpace bigskip
23012 To place the margin note in the inner margin, add the command
23015 \begin_layout Standard
23023 \begin_layout Standard
23024 in ERT before a margin note.
23025 The new placement is valid for all following margin notes.
23029 \begin_layout Standard
23039 \begin_inset Marginal
23042 \begin_layout Standard
23043 This is a margin note in the inner margin.
23055 \begin_inset Note Greyedout
23058 \begin_layout Standard
23063 There is often not enough space in the inner margin so that the notes are
23064 not correctly displayed in the output.
23072 \begin_layout Standard
23073 To return to the default placement insert the command
23076 \begin_layout Standard
23084 \begin_layout Standard
23089 \begin_layout Standard
23099 \begin_inset Note Greyedout
23102 \begin_layout Standard
23107 The command is ignored when it is within a paragraph where also the command
23122 \begin_layout Standard
23123 \begin_inset VSpace bigskip
23130 \begin_inset Marginal
23133 \begin_layout Standard
23134 AVeryLongMarginParWord that isn't hyphenated.
23142 Similar to the case described in section\InsetSpace ~
23144 \begin_inset LatexCommand ref
23145 reference "sub:Multiple-Lines-in"
23149 , long words cannot be hyphenated when they are the first word in a margin
23151 To avoid this, insert the command
23154 \begin_layout Standard
23162 \begin_layout Standard
23163 in ERT before the word
23167 \begin_inset Marginal
23170 \begin_layout Standard
23174 \begin_layout Standard
23183 AVeryLongMarginParWord that is hyphenated.
23191 \begin_layout Standard
23192 \begin_inset VSpace bigskip
23198 \begin_layout Standard
23199 \begin_inset Note Greyedout
23202 \begin_layout Standard
23207 Margin notes can normally not be used inside tables, floats, and footnotes.
23215 \begin_layout Standard
23216 \begin_inset VSpace bigskip
23222 \begin_layout Standard
23226 \begin_layout Standard
23236 \begin_inset Note Note
23239 \begin_layout Standard
23240 The following section will only be displayed when you have the LaTeX-package
23253 \begin_layout Standard
23254 This restriction can be evaded by using the LaTeX-package
23259 \begin_inset LatexCommand index
23260 name "LaTeX-packages ! marginnote"
23265 By adding these two lines to your document preamble, the command used by
23266 LyX for margin notes is redefined to use the command provided by the
23273 \begin_layout Standard
23278 usepackage{marginnote}
23289 \begin_layout Standard
23290 This is also used in this document because
23294 has another useful feature: You can set a vertical offset for the note.
23295 This is often needed when too many margin notes are too close together
23296 or for a better page layout.
23297 The offset is set in LyX as ERT directly behind the margin note in the
23301 \begin_layout Standard
23307 \begin_layout Standard
23308 where the offset is a length with one of the units listed in Table\InsetSpace ~
23310 \begin_inset LatexCommand ref
23311 reference "tab:Units"
23316 A negative value shifts the note up, a positive value shifts it down.
23320 For example the margin note beside this text line is shifted up 1.5\InsetSpace \thinspace{}
23323 \begin_inset Quotes eld
23333 \begin_inset Quotes erd
23337 \begin_inset Marginal
23340 \begin_layout Standard
23341 This margin note is shifted up 1.5\InsetSpace \thinspace{}
23342 cm from its original position.
23354 \begin_layout Standard
23364 \begin_layout Standard
23365 \begin_inset VSpace medskip
23372 you can also change the alignment of the text in the margin note.
23373 For example the commands
23376 \begin_layout Standard
23383 raggedleftmarginnote}{
23391 raggedrightmarginnote}{
23396 \begin_layout Standard
23397 set the alignment to centered.
23402 raggedleftmarginnote
23404 denotes margin notes that appear at the left side.
23411 \begin_layout Standard
23417 raggedleftmarginnote}{
23422 \begin_layout Standard
23428 raggedrightmarginnote}{
23436 \begin_inset Marginal
23439 \begin_layout Standard
23440 The text of this margin note is centered.
23451 \begin_layout Standard
23458 raggedleftmarginnote}{
23466 raggedrightmarginnote}{
23475 \begin_layout Standard
23481 raggedleftmarginnote}{
23486 \begin_layout Standard
23492 raggedrightmarginnote}{
23502 \begin_layout Standard
23503 \begin_inset VSpace medskip
23506 For the other features of
23510 we refer to its documentation
23511 \begin_inset LatexCommand cite
23519 \begin_layout Standard
23520 \begin_inset VSpace bigskip
23523 You can adjust the layout of margin notes by changing its definition.
23524 To create for example a header for all margin notes with the underlined,
23525 sans-serif, and bold header text
23526 \begin_inset Quotes eld
23538 \begin_inset Quotes erd
23541 , add this to your document preamble:
23544 \begin_layout Standard
23567 \begin_layout Standard
23584 underbar{Attention!}}}%
23590 \begin_layout Standard
23608 \begin_layout Standard
23615 \begin_layout Standard
23626 \begin_layout Standard
23637 \begin_layout Standard
23645 underbar{Attention!}}}%
23648 \begin_layout Standard
23662 \begin_inset Marginal
23665 \begin_layout Standard
23666 This is a margin note with a defined heading.
23678 \begin_layout Standard
23692 \begin_layout Standard
23709 \begin_inset Note Note
23712 \begin_layout Standard
23713 The margin note format is changed only for this example.
23721 \begin_layout Standard
23725 \begin_layout Standard
23735 \begin_inset Note Note
23738 \begin_layout Standard
23739 The following will be displayed when the LaTeX-package
23751 \begin_layout Standard
23752 You need to install the LaTeX-package
23756 to see the following part of this section in the output.
23759 \begin_layout Standard
23763 \begin_layout Standard
23775 \begin_layout Chapter
23779 \begin_layout Section
23781 \begin_inset LatexCommand index
23782 name "Boxes ! Introduction"
23789 \begin_layout Standard
23790 Boxes are used to format a block of text.
23791 Boxes can be used to write documents with multiple languages, see section\InsetSpace ~
23793 \begin_inset LatexCommand ref
23794 reference "sec:Minipages"
23798 , to frame texts, see section\InsetSpace ~
23800 \begin_inset LatexCommand ref
23801 reference "sec:Framed-Boxes"
23805 , to prevent words to be hyphenated, see section\InsetSpace ~
23807 \begin_inset LatexCommand ref
23808 reference "sec:Prevent-Hyphenation"
23812 , to align text, see section\InsetSpace ~
23814 \begin_inset LatexCommand ref
23815 reference "sub:Vertical-Alignment"
23819 , or to set the background color of texts, see section\InsetSpace ~
23821 \begin_inset LatexCommand ref
23822 reference "sec:Colored-Boxes"
23829 \begin_layout Standard
23830 Boxes can be inserted with the menu
23832 Insert\SpecialChar \menuseparator
23836 A grey box with the label
23841 \begin_inset Graphics
23842 filename clipart/BoxInsetDefaultQt4.png
23844 scaleBeforeRotation
23848 , will be inserted.
23849 The box type can be specified by right-clicking on the box.
23850 The appearing box dialog offers the
23868 is the default for new boxes and is explained in section\InsetSpace ~
23870 \begin_inset LatexCommand ref
23871 reference "sec:Minipages"
23879 is described in section\InsetSpace ~
23881 \begin_inset LatexCommand ref
23882 reference "sec:Parboxes"
23889 \begin_layout Standard
23890 Boxes aren't numbered and can therefore not be referenced like floats or
23894 \begin_layout Standard
23895 \begin_inset Note Greyedout
23898 \begin_layout Standard
23903 Due to a bug in LyX you have to insert a protected space behind a box when
23904 you want to separate in a line the box from the following text with a space.
23912 \begin_layout Standard
23913 \begin_inset Note Greyedout
23916 \begin_layout Standard
23921 Boxes must not be the item in an
23937 \begin_layout Standard
23938 \begin_inset Note Greyedout
23941 \begin_layout Standard
23946 For an unknown reason you can only set the
23955 when you use a framed box.
23961 type and without frames are explained in section\InsetSpace ~
23963 \begin_inset LatexCommand ref
23964 reference "sec:Prevent-Hyphenation"
23976 \begin_layout Section
23978 \begin_inset LatexCommand label
23979 name "sec:Box-Dialog"
23984 \begin_inset LatexCommand index
23985 name "Boxes ! Box Dialog"
23990 \begin_inset LatexCommand index
23991 name "Boxes ! Alignment"
23998 \begin_layout Standard
23999 In the box dialog you can adjust the box geometry in the fields
24008 The available units for the geometry are explained in Table\InsetSpace ~
24010 \begin_inset LatexCommand ref
24011 reference "tab:Units"
24020 offers the following additional sizes:
24023 \begin_layout Description
24024 Depth This is the plain text
24025 \begin_inset Quotes eld
24029 \begin_inset Quotes erd
24033 It ignores the total depth when there are multiple text lines in the box:
24040 \begin_inset Box Boxed
24049 height_special "depth"
24052 \begin_layout Standard
24054 Box height set to 1\InsetSpace \thinspace{}
24067 \begin_layout Description
24068 Height This is the heigth of the text that is inside the box.
24069 A value of e.\InsetSpace \thinspace{}
24071 2 for this size will set the box heigth to 2 times the text
24073 \begin_inset Box Boxed
24082 height_special "height"
24085 \begin_layout Standard
24087 Box height set to 2\InsetSpace \thinspace{}
24096 \begin_layout Description
24098 Height This is the Height\InsetSpace \thinspace{}
24099 +\InsetSpace \thinspace{}
24101 \begin_inset Box Boxed
24110 height_special "totalheight"
24113 \begin_layout Standard
24115 Box height set to 1\InsetSpace \thinspace{}
24125 \begin_layout Description
24126 Width This set the width of the box as heigth:
24127 \begin_inset Box Boxed
24136 height_special "width"
24139 \begin_layout Standard
24141 Box height set to 1\InsetSpace \thinspace{}
24150 \begin_layout Standard
24151 \begin_inset VSpace bigskip
24154 When you have chosen an
24159 , the vertical box alignment can be:
24162 \begin_layout Description
24163 Top This is an example text line.
24165 \begin_inset Box Boxed
24174 height_special "totalheight"
24177 \begin_layout Standard
24179 This box is top-aligned.
24185 This is an example text line.
24188 \begin_layout Description
24189 Middle This is an example text line.
24191 \begin_inset Box Boxed
24200 height_special "totalheight"
24203 \begin_layout Standard
24205 This box is middle-aligned.
24211 This is an example text line.
24214 \begin_layout Description
24215 Bottom This is an example text line.
24217 \begin_inset Box Boxed
24226 height_special "totalheight"
24229 \begin_layout Standard
24231 This box is bottom-aligned.
24237 This is an example text line.
24240 \begin_layout Standard
24241 The horizontal box alignment can be set via LyX's paragraph dialog when
24242 you set the box into its own paragraph.
24245 \begin_layout Standard
24246 \begin_inset VSpace bigskip
24249 When you have chosen an
24254 , the box content can be vertical aligned to:
24257 \begin_layout Description
24258 top This is an example text line.
24260 \begin_inset Box Boxed
24269 height_special "totalheight"
24272 \begin_layout Standard
24274 This box text is top-aligned.
24280 This is an example text line.
24283 \begin_layout Description
24284 middle This is an example text line.
24286 \begin_inset Box Boxed
24295 height_special "totalheight"
24298 \begin_layout Standard
24300 This box text is middle-aligned.
24306 This is an example text line.
24309 \begin_layout Description
24310 bottom This is an example text line.
24312 \begin_inset Box Boxed
24321 height_special "totalheight"
24324 \begin_layout Standard
24326 This box text is bottom-aligned.
24332 This is an example text line.
24335 \begin_layout Description
24336 stretch This is an example text line.
24338 \begin_inset Box Boxed
24347 height_special "totalheight"
24350 \begin_layout Standard
24355 \begin_layout Standard
24360 \begin_layout Standard
24368 This is an example text line.
24371 \begin_layout Standard
24372 To stretch the box content, it must consist of more than one paragraph.
24373 In the example above every text line is in an own paragraph.
24376 \begin_layout Standard
24377 \begin_inset VSpace bigskip
24380 To align the box content horizontally you can use LyX's paragraph dialog
24381 when you have chosen an
24389 \begin_layout Standard
24391 \begin_inset Box Boxed
24400 height_special "totalheight"
24403 \begin_layout Standard
24408 \begin_layout Standard
24413 \begin_layout Standard
24423 \begin_layout Standard
24424 If you haven't set an
24429 , you can align the box content horizontally in the box dialog.
24432 \begin_layout Standard
24434 \begin_inset Box Boxed
24443 height_special "totalheight"
24446 \begin_layout Standard
24448 This box text is horizontally stretched.
24456 \begin_layout Section
24458 \begin_inset LatexCommand label
24459 name "sec:Framed-Boxes"
24464 \begin_inset LatexCommand index
24465 name "Boxes ! Frames"
24472 \begin_layout Standard
24473 The frame style of the box can be specified in the box-dialog in the drop-down
24479 The following frame types are possible:
24482 \begin_layout Description
24483 Rectangular\InsetSpace ~
24484 box This draws a rectangle frame around the box.
24485 The frame line thickness has the size of
24493 \begin_inset Box Boxed
24502 height_special "totalheight"
24505 \begin_layout Standard
24515 \begin_layout Description
24518 thin This draws an oval frame around the box.
24519 The frame line thickness has the size 0.4\InsetSpace \thinspace{}
24522 \begin_inset Box ovalbox
24531 height_special "totalheight"
24534 \begin_layout Standard
24544 \begin_layout Description
24547 thick This draws an oval frame around the box.
24548 The frame line thickness has the size 0.8\InsetSpace \thinspace{}
24551 \begin_inset Box Ovalbox
24560 height_special "totalheight"
24563 \begin_layout Standard
24573 \begin_layout Description
24574 Shadow\InsetSpace ~
24575 box This draws a rectangle frame with a shadow around the box.
24576 The frame line thickness has the size of
24582 , the shadow has a width of 4\InsetSpace \thinspace{}
24585 \begin_inset Box Shadowbox
24594 height_special "totalheight"
24597 \begin_layout Standard
24607 \begin_layout Description
24608 Double\InsetSpace ~
24609 box This draws a double-line rectangle frame around the box.
24610 The line thickness of the inner frame is 0.75\InsetSpace \thinspace{}
24617 , the thickness of the outer frame is 1.5\InsetSpace \thinspace{}
24625 The distance between the lines is 1.5\InsetSpace \thinspace{}
24632 \InsetSpace \thinspace{}
24633 +\InsetSpace \thinspace{}
24634 0.5\InsetSpace \thinspace{}
24637 \begin_inset Box Doublebox
24646 height_special "totalheight"
24649 \begin_layout Standard
24659 \begin_layout Standard
24660 \begin_inset VSpace bigskip
24663 LyX's box label will change to the used frame style when you set a frame.
24664 To be able to use the different frame styles, the LaTeX-package
24669 \begin_inset LatexCommand index
24670 name "LaTeX-packages ! fancybox"
24677 \begin_layout Standard
24678 \begin_inset VSpace bigskip
24681 The default value for the size
24687 is 0.4\InsetSpace \thinspace{}
24689 It can be changed with the following command in ERT to e.\InsetSpace \thinspace{}
24691 2\InsetSpace \thinspace{}
24695 \begin_layout Standard
24705 \begin_layout Standard
24709 \begin_layout Standard
24721 \begin_inset Box Boxed
24730 height_special "totalheight"
24733 \begin_layout Standard
24735 Rectangular box with
24741 \InsetSpace \thinspace{}
24742 =\InsetSpace \thinspace{}
24743 2\InsetSpace \thinspace{}
24753 \begin_layout Standard
24767 \begin_layout Standard
24768 \begin_inset VSpace bigskip
24771 The space between the frame and the box content is for all frame styles
24772 by default 3\InsetSpace \thinspace{}
24774 You can change it by setting the length
24781 For example the command
24784 \begin_layout Standard
24794 \begin_layout Standard
24795 sets the value to 10\InsetSpace \thinspace{}
24796 pt, like for the following box:
24799 \begin_layout Standard
24803 \begin_layout Standard
24815 \begin_inset Box Boxed
24824 height_special "totalheight"
24827 \begin_layout Standard
24829 Rectangular box with
24835 \InsetSpace \thinspace{}
24836 =\InsetSpace \thinspace{}
24837 10\InsetSpace \thinspace{}
24847 \begin_layout Standard
24861 \begin_layout Standard
24862 \begin_inset VSpace bigskip
24865 The diameter of the round corners of the oval boxes can be set with the
24876 \begin_layout Standard
24884 \begin_layout Standard
24885 sets the diameter to 1\InsetSpace \thinspace{}
24890 \begin_layout Standard
24898 \begin_layout Standard
24899 sets the diameter to
24901 num\InsetSpace \thinspace{}
24902 ×\InsetSpace \thinspace{}
24903 minimum(width and heigth of box)
24915 \begin_layout Standard
24919 \begin_layout Standard
24929 \begin_inset Box Ovalbox
24938 height_special "totalheight"
24941 \begin_layout Standard
24949 \InsetSpace \thinspace{}
24950 =\InsetSpace \thinspace{}
24951 1.5\InsetSpace \thinspace{}
24961 \begin_layout Standard
24973 \begin_layout Standard
24974 \begin_inset VSpace bigskip
24977 The size of the shadow can be adjusted by changing the length
24984 It it set to 2\InsetSpace \thinspace{}
24985 pt for the following box by this command:
24988 \begin_layout Standard
24998 \begin_layout Standard
25002 \begin_layout Standard
25014 \begin_inset Box Shadowbox
25023 height_special "totalheight"
25026 \begin_layout Standard
25034 \InsetSpace \thinspace{}
25035 =\InsetSpace \thinspace{}
25036 2\InsetSpace \thinspace{}
25046 \begin_layout Standard
25060 \begin_layout Standard
25061 \begin_inset VSpace bigskip
25064 Changed lengths and widths are valid for all boxes following the commands
25068 \begin_layout Section
25070 \begin_inset LatexCommand label
25071 name "sec:Minipages"
25076 \begin_inset LatexCommand index
25077 name "Boxes ! Minipages"
25084 \begin_layout Standard
25085 Minipages are treated by LaTeX as pages within pages and can therefore for
25086 example have their own footnotes.
25089 \begin_layout Standard
25090 Minipages are useful when you write documents with different languages.
25093 \begin_layout Standard
25094 Below are two example minipages side by side.
25095 Their width is set to 45\InsetSpace \thinspace{}
25096 col% and they are separated by a horizontal fill,
25097 that was inserted via the menu
25099 Insert\SpecialChar \menuseparator
25100 Special\InsetSpace ~
25101 Formatting\SpecialChar \menuseparator
25102 Horizontal\InsetSpace ~
25108 \begin_layout Standard
25109 \begin_inset Box Frameless
25118 height_special "totalheight"
25121 \begin_layout Standard
25124 Dies ist ein deutscher Text.
25125 Dies ist ein deutscher Text.
25126 Dies ist ein deutscher Text.
25127 Dies ist ein deutscher Text.
25128 Dies ist ein deutscher Text.
25129 Dies ist ein deutscher Text.
25130 Dies ist ein deutscher Text.
25131 Dies ist ein deutscher Text.
25132 Dies ist ein deutscher Text.
25133 Dies ist ein deutscher Text.
25134 Dies ist ein deutscher Text.
25135 Dies ist ein deutscher Text.
25136 Dies ist ein deutscher Text
25140 \begin_layout Standard
25143 Dies ist eine deutsche Fußnote.
25149 Dies ist ein deutscher Text.
25150 Dies ist ein deutscher Text.
25158 \begin_inset Box Frameless
25167 height_special "totalheight"
25170 \begin_layout Standard
25171 This is an English Text.
25172 This is an English Text.
25173 This is an English Text.
25174 This is an English Text.
25175 This is an English Text.
25176 This is an English Text.
25177 This is an English Text.
25178 This is an English Text.
25179 This is an English Text.
25180 This is an English Text.
25181 This is an English Text.
25182 This is an English Text.
25183 This is an English Text.
25184 This is an English Text.
25185 This is an English Text.
25186 This is an English Text.
25190 \begin_layout Standard
25191 This is an English footnote.
25196 This is an English Text.
25205 \begin_layout Standard
25206 \begin_inset VSpace bigskip
25209 Another application for minipages are footnotes within tables.
25210 Due to a LaTeX restriction footnotes within tables doesn't appear at the
25211 bottom of the current page.
25212 But when you put the table with the footnote to a minipage, the footnote
25213 will appear at its bottom, numbered with Latin letters.
25214 The footnote number is reset to 1 in every minipage but not outside the
25218 \begin_layout Standard
25219 The footnote of this table doesn't appear:
25220 \begin_inset Tabular
25221 <lyxtabular version="3" rows="3" columns="4">
25223 <column alignment="center" valignment="top" leftline="true" width="0pt">
25224 <column alignment="center" valignment="top" leftline="true" width="0pt">
25225 <column alignment="center" valignment="top" leftline="true" width="0pt">
25226 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25227 <row topline="true">
25228 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25231 \begin_layout Standard
25237 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25240 \begin_layout Standard
25246 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25249 \begin_layout Standard
25254 \begin_layout Standard
25255 This is a footnote within a table.
25265 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25268 \begin_layout Standard
25275 <row topline="true">
25276 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25279 \begin_layout Standard
25285 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25288 \begin_layout Standard
25294 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25297 \begin_layout Standard
25303 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25306 \begin_layout Standard
25313 <row topline="true" bottomline="true">
25314 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25317 \begin_layout Standard
25323 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25326 \begin_layout Standard
25332 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25335 \begin_layout Standard
25341 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25344 \begin_layout Standard
25358 \begin_layout Standard
25360 \begin_inset Box Frameless
25369 height_special "totalheight"
25372 \begin_layout Standard
25374 \begin_inset Tabular
25375 <lyxtabular version="3" rows="3" columns="4">
25377 <column alignment="center" valignment="top" leftline="true" width="0pt">
25378 <column alignment="center" valignment="top" leftline="true" width="0pt">
25379 <column alignment="center" valignment="top" leftline="true" width="0pt">
25380 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25381 <row topline="true">
25382 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25385 \begin_layout Standard
25391 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25394 \begin_layout Standard
25400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25403 \begin_layout Standard
25408 \begin_layout Standard
25409 This is a footnote within a table.
25419 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25422 \begin_layout Standard
25429 <row topline="true">
25430 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25433 \begin_layout Standard
25439 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25442 \begin_layout Standard
25448 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25451 \begin_layout Standard
25457 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25460 \begin_layout Standard
25467 <row topline="true" bottomline="true">
25468 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25471 \begin_layout Standard
25477 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25480 \begin_layout Standard
25486 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25489 \begin_layout Standard
25495 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25498 \begin_layout Standard
25517 \begin_layout Standard
25518 \begin_inset VSpace bigskip
25521 The document-wide paragraph settings are ignored within minipages.
25522 That means that there will be no space between paragraphs in minipages
25523 although you set it to e.\InsetSpace \thinspace{}
25529 in the document settings.
25532 \begin_layout Standard
25533 Minipages can also be used to set a background color for text parts, see
25534 section\InsetSpace ~
25536 \begin_inset LatexCommand ref
25537 reference "sub:Color-for-Paragraphs"
25544 \begin_layout Standard
25545 \begin_inset Note Greyedout
25548 \begin_layout Standard
25553 You cannot have floats or margin notes inside minipages but minipages can
25554 be used inside tables, floats, and other boxes.
25562 \begin_layout Section
25564 \begin_inset LatexCommand label
25565 name "sec:Parboxes"
25570 \begin_inset LatexCommand index
25571 name "Boxes ! Parboxes"
25578 \begin_layout Standard
25579 Parboxes are very similar to minipages with the difference that they cannot
25581 The main difference to minipages is that minipages are in contrary to parboxes
25582 no real boxes but LaTeX-environments.
25585 \begin_layout Standard
25587 \begin_inset Box Frameless
25596 height_special "totalheight"
25599 \begin_layout Standard
25600 This a text within a parbox.
25601 This a text within a parbox.
25604 \begin_layout Standard
25605 This footnote won't appear:
25609 \begin_layout Standard
25610 This footnote is inside a parbox and will therefore not appear.
25623 \begin_layout Section
25624 Boxes for Words and Characters
25625 \begin_inset LatexCommand index
25626 name "Boxes ! for Characters"
25633 \begin_layout Subsection
25634 Prevent Hyphenation
25635 \begin_inset LatexCommand label
25636 name "sec:Prevent-Hyphenation"
25641 \begin_inset LatexCommand index
25642 name "Boxes ! to Prevent Hyphenation"
25649 \begin_layout Standard
25650 You can use a special kind of boxes to prevent words or text to be hyphenated.
25653 e is an example text:
25656 \begin_layout Standard
25657 This line is an example to show how you can prevent the hyphenation of
25658 \begin_inset Quotes eld
25662 \begin_inset Quotes erd
25668 \begin_layout Standard
25669 To prevent the hyphenation of the word
25670 \begin_inset Quotes eld
25674 \begin_inset Quotes erd
25680 \begin_layout Standard
25688 \begin_layout Standard
25689 in ERT before the word.
25690 Behind the word insert a closing brace
25691 \begin_inset Quotes eld
25699 \begin_inset Quotes erd
25706 \begin_layout Standard
25718 \begin_layout Standard
25719 This is the result:
25722 \begin_layout Standard
25723 This line is an example to show how you can prevent the hyphenation of
25727 \begin_layout Standard
25737 \begin_inset Quotes eld
25741 \begin_inset Quotes erd
25748 \begin_layout Standard
25758 \begin_layout Standard
25759 You can alternatively set the command
25760 \begin_inset Quotes eld
25770 \begin_inset Quotes grd
25773 as ERT directly before the word:
25776 \begin_layout Standard
25777 This line is an example to show how you can prevent the hyphenation of
25778 \begin_inset Quotes eld
25785 \begin_layout Standard
25795 \begin_inset Quotes erd
25801 \begin_layout Standard
25802 Of course the word now protrudes over the side margin.
25803 To avoid this, add via the menu
25805 Insert\SpecialChar \menuseparator
25806 Special\InsetSpace ~
25807 Formatting\SpecialChar \menuseparator
25815 ) a line break before the word:
25818 \begin_layout Standard
25819 This line is an example to show how you can prevent the hyphenation of
25825 \begin_layout Standard
25835 \begin_inset Quotes eld
25839 \begin_inset Quotes erd
25846 \begin_layout Standard
25856 \begin_layout Subsection
25858 \begin_inset LatexCommand label
25859 name "sub:Vertical-Alignment"
25864 \begin_inset LatexCommand index
25865 name "Boxes ! for Vertical Alignment"
25870 \begin_inset LatexCommand index
25871 name "Boxes ! Raiseboxes"
25878 \begin_layout Standard
25879 With the help of the command
25885 you can align words, characters or other boxes vertically to the surrounding
25893 is used with the following scheme:
25896 \begin_layout Standard
25901 raisebox{lift}[height][depth]{box content}
25904 \begin_layout Standard
25905 The lift can be a positive value to raise the box or a negative value to
25909 \begin_layout Standard
25910 To align for example the word
25911 \begin_inset Quotes eld
25915 \begin_inset Quotes erd
25918 so that the bottom of the
25919 \begin_inset Quotes eld
25923 \begin_inset Quotes erd
25927 \begin_inset Quotes eld
25931 \begin_inset Quotes erd
25934 is at the baseline, insert the command
25937 \begin_layout Standard
25947 \begin_layout Standard
25948 in ERT before the word.
25949 Behind the word insert a closing brace
25950 \begin_inset Quotes eld
25958 \begin_inset Quotes erd
25963 This is the result:
25966 \begin_layout Standard
25967 This is a text line with the word
25971 \begin_layout Standard
25983 \begin_inset Quotes eld
25987 \begin_inset Quotes erd
25994 \begin_layout Standard
26004 \begin_layout Standard
26005 \begin_inset VSpace bigskip
26008 When you raise or lower characters in a line, the line distance will be
26012 \begin_layout Standard
26013 This is a text line with the word
26017 \begin_layout Standard
26029 \begin_inset Quotes eld
26033 \begin_inset Quotes erd
26040 \begin_layout Standard
26049 This is a text line with the word
26053 \begin_layout Standard
26063 \begin_inset Quotes eld
26067 \begin_inset Quotes erd
26074 \begin_layout Standard
26084 \begin_layout Standard
26085 If you want to prevent this for a certain reason, set the box height to
26090 \begin_layout Standard
26100 \begin_layout Standard
26101 This is a text line with the word
26105 \begin_layout Standard
26117 \begin_inset Quotes eld
26121 \begin_inset Quotes erd
26128 \begin_layout Standard
26137 This is a text line with the word
26141 \begin_layout Standard
26145 raisebox{0.5cm}[0pt]{
26151 \begin_inset Quotes eld
26155 \begin_inset Quotes erd
26162 \begin_layout Standard
26172 \begin_layout Section
26174 \begin_inset LatexCommand label
26175 name "sec:Colored-Boxes"
26180 \begin_inset LatexCommand index
26181 name "Boxes ! Color"
26188 \begin_layout Subsection
26190 \begin_inset LatexCommand index
26191 name "Color ! for Text"
26198 \begin_layout Standard
26199 To color the background of text the text must be put into a so called
26200 \begin_inset Quotes eld
26204 \begin_inset Quotes erd
26208 This requires that the LaTeX-package
26213 \begin_inset LatexCommand index
26214 name "LaTeX-packages ! color"
26218 is loaded in the document preamble with the command
26221 \begin_layout Standard
26226 @ifundef\SpecialChar \textcompwordmark{}
26233 \begin_layout Standard
26244 usepackage{color}}{}
26247 \begin_layout Standard
26252 will be loaded automatically by LyX when you color text
26256 \begin_layout Standard
26257 To avoid that it is loaded twice the command
26261 @ifundef\SpecialChar \textcompwordmark{}
26272 \begin_layout Standard
26273 \begin_inset VSpace medskip
26276 Colorboxes are created with the command
26283 This will be used with the following scheme:
26286 \begin_layout Standard
26291 colorbox{color}{box content}
26294 \begin_layout Standard
26295 The box content can also be a box and colorboxes can also be within other
26299 \begin_layout Standard
26300 The following colors are predefined:
26339 You can also define your own color as described in section\InsetSpace ~
26341 \begin_inset LatexCommand ref
26342 reference "sec:Colored-Tables"
26349 \begin_layout Standard
26350 To have e.\InsetSpace \thinspace{}
26352 a red background for a word, insert the command
26355 \begin_layout Standard
26363 \begin_layout Standard
26364 before the word in ERT.
26365 Behind the word insert a closing brace
26366 \begin_inset Quotes eld
26374 \begin_inset Quotes erd
26379 This is the result:
26382 \begin_layout Standard
26383 This is a line where the word
26387 \begin_layout Standard
26397 \begin_inset Quotes eld
26401 \begin_inset Quotes erd
26408 \begin_layout Standard
26415 has a red background.
26418 \begin_layout Standard
26419 \begin_inset VSpace bigskip
26422 If you would have the box frame in a different color, you can use the command
26429 with the following scheme:
26432 \begin_layout Standard
26437 fcolorbox{frame color}{box color}{box content}
26440 \begin_layout Standard
26454 The frame thickness and the space between the frame and the box content
26455 can be adjusted with the lengths
26467 , respectively, as described in section\InsetSpace ~
26469 \begin_inset LatexCommand ref
26470 reference "sec:Framed-Boxes"
26477 \begin_layout Standard
26478 For the following example the command
26481 \begin_layout Standard
26486 fcolorbox{cyan}{magenta}{
26489 \begin_layout Standard
26493 \begin_layout Standard
26494 Here is an example where the frame line thickness was set to 1\InsetSpace \thinspace{}
26501 \begin_layout Standard
26516 \begin_layout Standard
26520 fcolorbox{cyan}{magenta}{
26525 This is text within a colored, framed box.
26529 \begin_layout Standard
26539 \begin_layout Standard
26540 \begin_inset VSpace bigskip
26543 Of course you can also have colored text inside a colorbox:
26549 \begin_layout Standard
26553 fcolorbox{cyan}{magenta}{
26560 This is colored text within a colored, framed box.
26566 \begin_layout Standard
26577 \begin_layout Standard
26591 \begin_layout Standard
26594 \begin_inset VSpace medskip
26600 \begin_layout Standard
26601 \begin_inset Note Greyedout
26604 \begin_layout Standard
26609 Text in colorboxes cannot have line breaks.
26610 To color multiple text lines or paragraphs, use a box inside a colorbox
26611 as described in the following.
26619 \begin_layout Subsection
26620 Color for Paragraphs
26621 \begin_inset LatexCommand label
26622 name "sub:Color-for-Paragraphs"
26627 \begin_inset LatexCommand index
26628 name "Color ! for Paragraphs"
26635 \begin_layout Standard
26636 To set the background color for more than one text line, put the text into
26638 Before the minipage insert the
26647 \begin_layout Standard
26655 \begin_layout Standard
26657 Behind the minipage insert a closing brace
26658 \begin_inset Quotes eld
26666 \begin_inset Quotes erd
26672 \begin_layout Standard
26676 \begin_layout Standard
26680 colorbox{lightgrey}{
26686 \begin_inset Box Frameless
26695 height_special "totalheight"
26698 \begin_layout Standard
26699 This is text with background color.
26700 This is text with background color.
26703 \begin_layout Standard
26704 \begin_inset VSpace defskip
26707 The text can have footnotes
26711 \begin_layout Standard
26712 Another example footnote
26717 and can include tables and figures.
26720 \begin_layout Standard
26722 \begin_inset Tabular
26723 <lyxtabular version="3" rows="3" columns="3">
26725 <column alignment="center" valignment="top" leftline="true" width="0">
26726 <column alignment="center" valignment="top" leftline="true" width="0">
26727 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
26728 <row topline="true">
26729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26732 \begin_layout Standard
26738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26741 \begin_layout Standard
26747 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26750 \begin_layout Standard
26757 <row topline="true">
26758 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26761 \begin_layout Standard
26767 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26770 \begin_layout Standard
26772 \begin_inset Quotes erd
26780 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26783 \begin_layout Standard
26790 <row topline="true" bottomline="true">
26791 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26794 \begin_layout Standard
26800 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26803 \begin_layout Standard
26809 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26812 \begin_layout Standard
26832 \begin_layout Standard
26842 \begin_layout Section
26843 URLs (Uniform Resource Locators)
26844 \begin_inset LatexCommand index
26852 \begin_layout Standard
26853 Links to web pages or email addresses can be inserted via the menu
26855 Insert\SpecialChar \menuseparator
26859 The appearing URL dialog has two fields; the
26867 field for the URL description, which will be typeset as plain text immediately
26871 \begin_layout Standard
26872 Here is an example URL:
26873 \begin_inset LatexCommand url
26874 name "LyX's homepage"
26875 target "http://www.lyx.org"
26882 \begin_layout Standard
26885 Generate\InsetSpace ~
26888 in the URL dialog has only an affect when you export your document to the
26890 \begin_inset Quotes eld
26898 \begin_inset Quotes erd
26904 \begin_layout Standard
26905 You cannot change the style of the link text.
26910 field will have the default text style of the document while the text of
26915 field will have the style
26916 \begin_inset Quotes eld
26924 \begin_inset Quotes erd
26930 \begin_layout Standard
26931 When you use the LaTeX-package
26936 \begin_inset LatexCommand index
26937 name "LaTeX-packages ! hyperref"
26941 to link cross-references in the output, URLs will automatically become
26942 clickable hyperlinks in DVI and PDF-output.
26945 \begin_layout Standard
26946 \begin_inset Note Greyedout
26949 \begin_layout Standard
26954 When you use the following characters: "%", "#", "^", you have to write
26955 them with a preceding backslash, e.\InsetSpace \thinspace{}
26958 \begin_inset Quotes eld
26964 \begin_inset Quotes erd
26968 URLs must not end with a backslash.
26976 \begin_layout Standard
26977 \begin_inset VSpace bigskip
26980 To create real hyperlinks without the force to write the link location to
26981 the text, you can use the command
26984 \begin_layout Standard
26989 href{link location}{link text}
26992 \begin_layout Standard
26994 To get for example a link to LyX's web page, write the command
26997 \begin_layout Standard
27002 href{http://www.lyx.org}{
27005 \begin_layout Standard
27007 Insert after the command the link text
27008 \begin_inset Quotes eld
27012 \begin_inset Quotes erd
27015 as normal text followed by a closing brace
27016 \begin_inset Quotes eld
27024 \begin_inset Quotes erd
27028 This is the result:
27032 \begin_layout Standard
27036 href{http://www.lyx.org}{
27045 \begin_layout Standard
27055 \begin_layout Standard
27056 To link to email addresses, add the prefix
27057 \begin_inset Quotes eld
27065 \begin_inset Quotes erd
27068 to the link location:
27074 \begin_layout Standard
27078 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's documentation}{
27083 lyx-docs mailing list
27087 \begin_layout Standard
27097 \begin_layout Standard
27104 instead of LyX's URL box has the advantage that you can specify the text
27105 style of the link text like for all other text parts.
27106 You can then set hyphenation points and forced linebreaks to have long
27107 link text broken at the page margin.
27108 You are furthermore able to change the text style for all URLs in your
27109 document with an option in
27113 's load command and the restrictions mentioned above doesn't apply for
27122 \begin_layout Chapter
27124 \begin_inset LatexCommand index
27125 name "External Stuff"
27132 \begin_layout Standard
27135 Insert\SpecialChar \menuseparator
27138 you can insert external material to your document.
27142 \begin_layout Description
27144 Document Another LyX document; its content is directly inserted to your
27148 \begin_layout Description
27150 Text A text document; every of its text lines is inserted to your document
27154 \begin_layout Description
27158 Lines A text document; its text lines are inserted as they
27160 Empty text lines creates a new paragraph in your document.
27163 \begin_layout Description
27164 External\InsetSpace ~
27165 Material Files in various formats.
27168 \begin_layout Description
27170 Document LyX or LaTeX-documents.
27173 \begin_layout Section
27175 \begin_inset LatexCommand index
27176 name "External Stuff ! External Material"
27183 \begin_layout Standard
27184 The external material feature allows you to insert files to your document
27185 without converting them previously to a format that can be read by the
27186 document output format because LyX takes care of needed conversions.
27187 This is similar to images that can be inserted in various image formats
27191 \begin_layout Standard
27192 External material can be inserted via the
27196 dialog that is accessible with the menu
27198 Insert\SpecialChar \menuseparator
27199 File\SpecialChar \menuseparator
27200 External\InsetSpace ~
27204 Currently the following file types (
27211 \begin_layout Description
27212 ChessDiagram This template supports chess position diagrams made with the
27217 \begin_layout Standard
27221 href{http://en.wikipedia.org/wiki/XBoard}{
27234 \begin_layout Standard
27244 \begin_layout Description
27245 Date This inserts the date in the form
27250 This is a date inserted as external material:
27251 \begin_inset External
27259 The date is not shown within LyX, only in the output.
27260 There are two other methods of inserting a date: Via menu
27262 Insert\SpecialChar \menuseparator
27265 and with the LaTeX command
27272 The different methods are compared in Table\InsetSpace ~
27274 \begin_inset LatexCommand ref
27275 reference "tab:Comparison-of-the"
27282 \begin_layout Description
27283 LilyPond This template is used for music notation typeset with the program
27287 \begin_layout Standard
27300 \begin_layout Standard
27304 href{http://en.wikipedia.org/wiki/LilyPond}{
27317 \begin_layout Standard
27325 \begin_inset Note Note
27328 \begin_layout Standard
27335 breaks the line while the remaining text in the line is stretched to the
27344 \begin_layout Description
27345 RasterImage This can be used for bitmap images.
27346 Nearly all popular image formats are supported.
27347 The image can be treated in the
27351 dialog like the images that are usually included via the
27355 dialog as described in section\InsetSpace ~
27357 \begin_inset LatexCommand ref
27358 reference "sec:Graphics-Dialog"
27363 The difference is that only raster images are allowed, that means that
27364 PDF and EPS-images are not supported.
27367 \begin_layout Description
27368 XFig This template supports images created with the program
27372 \begin_layout Standard
27376 href{http://en.wikipedia.org/wiki/Xfig}{
27389 \begin_layout Standard
27399 \begin_layout Standard
27400 \begin_inset Float table
27406 \begin_layout Standard
27407 \begin_inset Caption
27409 \begin_layout Standard
27410 \begin_inset LatexCommand label
27411 name "tab:Comparison-of-the"
27415 Comparison of the date input methods.
27423 \begin_layout Standard
27425 \begin_inset Tabular
27426 <lyxtabular version="3" rows="4" columns="4">
27428 <column alignment="center" valignment="top" leftline="true" width="0">
27429 <column alignment="center" valignment="top" leftline="true" width="0">
27430 <column alignment="center" valignment="top" leftline="true" width="0">
27431 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27432 <row topline="true">
27433 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27436 \begin_layout Standard
27442 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27445 \begin_layout Standard
27448 External Material\SpecialChar \menuseparator
27454 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27457 \begin_layout Standard
27460 Insert\SpecialChar \menuseparator
27466 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27469 \begin_layout Standard
27480 <row topline="true">
27481 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27484 \begin_layout Standard
27490 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27493 \begin_layout Standard
27499 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27502 \begin_layout Standard
27508 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27511 \begin_layout Standard
27518 <row topline="true">
27519 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27522 \begin_layout Standard
27528 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27531 \begin_layout Standard
27537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27540 \begin_layout Standard
27546 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27549 \begin_layout Standard
27556 <row topline="true" bottomline="true">
27557 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27560 \begin_layout Standard
27566 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27569 \begin_layout Standard
27575 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27578 \begin_layout Standard
27584 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27587 \begin_layout Standard
27606 \begin_layout Standard
27607 When you use the option
27619 dialog, only the path to the inserted file is shown in the output.
27622 material is displayed in LyX either as box like this:
27623 \begin_inset Graphics
27624 filename clipart/ExternalMaterialQt4.png
27626 scaleBeforeRotation
27630 or as image, depending on the setting in the
27642 \begin_layout Standard
27649 manual explains how you can define your own templates.
27652 \begin_layout Section
27654 \begin_inset LatexCommand label
27655 name "sec:Child-Documents"
27660 \begin_inset LatexCommand index
27661 name "External Stuff ! Child Documents"
27666 \begin_inset LatexCommand index
27667 name "Files ! Include"
27674 \begin_layout Standard
27675 Child documents are used when you have a long document consisting of several
27676 larger parts or sections.
27677 For maintenance it is often useful and sometimes even required to split
27678 the document in several files that can be revised separately.
27679 The different documents are then the so called child documents and a master
27680 document connects them to print the full document or parts of it.
27683 \begin_layout Standard
27684 Included documents are displayed in LyX as a box like this:
27685 \begin_inset Graphics
27686 filename clipart/ChildDocumentQt4.png
27688 scaleBeforeRotation
27692 To include child documents to a master document use the menu
27694 Insert\SpecialChar \menuseparator
27695 File\SpecialChar \menuseparator
27700 A dialog pops up where you can choose between four include methods:
27703 \begin_layout Description
27704 Include You can include LyX and LaTeX-documents.
27713 dialog, the included documents will be opened in LyX in a new file tab
27714 so that you can modify it.
27719 \begin_layout Standard
27720 Here is a child document inserted using
27725 \begin_inset Include \include{DummyDocument1.lyx}
27733 \begin_layout Standard
27734 The section numbering includes the sections of the included files in the
27735 order they are inserted in the master document.
27736 The included example document has for example a subsection that is numbered
27737 as subsection of this section.
27738 Labels of included documents can be referenced: Subsection\InsetSpace ~
27740 \begin_inset LatexCommand ref
27741 reference "sub:External-Subsection-1"
27748 \begin_layout Standard
27749 The preamble of the child document is ignored, only the preamble of the
27750 master document is used.
27751 Included documents are inserted starting on a new page and end with a pagebreak.
27754 \begin_layout Standard
27755 With the LaTeX-command
27761 you can specify which included child documents are processed when the output
27763 This is useful when you are perhaps only working on a certain chapter of
27764 your large document as this saves compiling time.
27771 is inserted to the master document preamble.
27772 It takes a comma-separated list of the filenames as argument, e.g.
27775 \begin_layout Standard
27780 includeonly{chapter1,chapter5}
27783 \begin_layout Standard
27784 will only process the included files named
27785 \begin_inset Quotes eld
27789 \begin_inset Quotes erd
27793 \begin_inset Quotes eld
27797 \begin_inset Quotes erd
27801 \begin_inset Quotes eld
27805 \begin_inset Quotes erd
27811 \begin_layout Standard
27812 \begin_inset Note Greyedout
27815 \begin_layout Standard
27820 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
27821 w the document in case that the child document uses another document class
27822 than the master document as this will lead to unexpected outputs.
27830 \begin_layout Description
27831 Input This method is very similar to the Include method.
27832 The differences are:
27836 \begin_layout Itemize
27837 Input files don't start with a new page and don't end with a pagebreak.
27840 \begin_layout Itemize
27841 Input files can be previewed in LyX when
27843 Instant\InsetSpace ~
27846 is enabled in LyX's preferences under
27850 feel\SpecialChar \menuseparator
27856 \begin_layout Itemize
27867 \begin_layout Standard
27868 Here is a child document inserted using
27873 \begin_inset Include \input{DummyDocument2.lyx}
27881 \begin_layout Description
27882 Verbatim With this method every text file can be included.
27883 The file is shown in the output with its source code, no command used in
27884 the text is invoked.
27885 You can use the option
27887 Mark spaces in output
27889 that displays the character
27890 \begin_inset Quotes eld
27897 \begin_layout Standard
27907 \begin_inset Quotes erd
27910 for every space character in the source code.
27911 The difference to the method via the menu
27913 Insert\SpecialChar \menuseparator
27914 File\SpecialChar \menuseparator
27918 is that the document content is not shown in LyX.
27921 \begin_layout Standard
27922 Here is a child document inserted as Verbatim:
27923 \begin_inset Include \verbatiminput{DummyTextDocument.txt}
27929 \begin_inset VSpace bigskip
27932 Here is a child document inserted as Verbatim using the
27934 Mark spaces in output
27937 \begin_inset Include \verbatiminput*{DummyTextDocument.txt}
27945 \begin_layout Standard
27946 \begin_inset VSpace bigskip
27952 \begin_layout Standard
27953 \begin_inset Note Greyedout
27956 \begin_layout Standard
27961 As you can see in the examples above, the text of the documents included
27966 is not broken at the end of the document lines.
27974 \begin_layout Description
27975 Listings This type is described in chapter\InsetSpace ~
27977 \begin_inset LatexCommand ref
27978 reference "cha:Program-Code-Listings"
27985 \begin_layout Standard
27986 \begin_inset Note Greyedout
27989 \begin_layout Standard
27994 Including the same document twice in a document using different methods
27995 could cause LaTeX-problems.
28003 \begin_layout Chapter
28004 Program Code Listings
28005 \begin_inset LatexCommand label
28006 name "cha:Program-Code-Listings"
28011 \begin_inset LatexCommand index
28017 \begin_inset LatexCommand index
28018 name "Program Code"
28023 \begin_inset LatexCommand index
28024 name "Floats ! Listings"
28031 \begin_layout Standard
28032 To include and typeset program code you can use the
28036 inset that can be inserted via the menu
28038 Insert\SpecialChar \menuseparator
28047 \begin_inset LatexCommand index
28048 name "LaTeX-packages ! listings"
28052 provides a powerful and flexible way to insert program source code to your
28056 \begin_layout Standard
28057 When right-clicking on a listings inset a dialog pops up where you can set
28058 the listings format.
28061 \begin_layout Standard
28062 By default, a listing starts a new paragraph in the output.
28063 The placement option
28065 Inline\InsetSpace ~
28068 prints the listing inline like this:
28069 \begin_inset listings
28070 lstparams "language={C++}"
28074 \begin_layout Standard
28087 creates a listings float where you can specify the placement options
28088 \begin_inset Quotes eld
28096 \begin_inset Quotes erd
28100 \begin_inset Quotes eld
28108 \begin_inset Quotes erd
28112 \begin_inset Quotes eld
28120 \begin_inset Quotes erd
28124 \begin_inset Quotes eld
28132 \begin_inset Quotes erd
28135 corresponding to the float placement options described in section\InsetSpace ~
28137 \begin_inset LatexCommand ref
28138 reference "sec:Float-Placement"
28143 The placement options can be mixed and are inserted without any separation,
28144 e.\InsetSpace \thinspace{}
28147 \begin_inset Quotes eld
28155 \begin_inset Quotes erd
28160 \begin_inset Quotes eld
28164 \begin_inset Quotes erd
28167 has sometimes no effect, but you don't need to use the
28171 option in this case as also non-float listings can have captions and be
28175 \begin_layout Standard
28176 You can add captions to listings with the menu
28178 Insert\SpecialChar \menuseparator
28182 Listings can be referenced like floats: Listing\InsetSpace ~
28184 \begin_inset LatexCommand ref
28185 reference "lst:Example-Listing"
28192 \begin_layout Standard
28193 \begin_inset listings
28194 lstparams "language=Python"
28198 \begin_layout Standard
28200 \begin_inset Caption
28202 \begin_layout Standard
28203 \begin_inset LatexCommand label
28204 name "lst:Example-Listing"
28208 Example Listing float
28213 # Example listing float
28216 \begin_layout Standard
28221 \begin_layout Standard
28223 'this is a python function'
28226 \begin_layout Standard
28236 \begin_layout Standard
28237 When you have set a programming language in the listings dialog, the keywords
28238 of this language will be recognized and specially typeset in the output.
28239 In the example listings the Python keyword
28240 \begin_inset Quotes eld
28244 \begin_inset Quotes erd
28247 is recognized and printed bold in the output.
28250 \begin_layout Standard
28251 \begin_inset Note Greyedout
28254 \begin_layout Standard
28259 If you don't get bold keywords when using typewriter fonts, your typewriter
28260 font probably doesn't provide a bold shape.
28261 In this case select a different one in the menu
28263 Document\SpecialChar \menuseparator
28264 Settings\SpecialChar \menuseparator
28276 provide bold shapes.)
28284 \begin_layout Standard
28290 of the listings dialog you can specify the line numbering style.
28291 You can insert a number to specify which lines are numbered to the field
28297 When you insert e.g.
28299 \begin_inset Quotes eld
28303 \begin_inset Quotes erd
28306 , only every 3rd line will be numbered.
28309 \begin_layout Standard
28310 You can furthermore specify a range of lines, only these will then appear
28314 Extended\InsetSpace ~
28317 should be used when you use national characters like the German umlauts
28320 Here is an example listing with left line numbering, step
28322 \begin_inset Quotes eld
28326 \begin_inset Quotes erd
28330 \begin_inset Quotes eld
28334 \begin_inset Quotes erd
28338 \begin_inset Quotes eld
28341 Extended\InsetSpace ~
28343 \begin_inset Quotes erd
28347 \begin_inset Quotes eld
28353 \begin_inset Quotes erd
28356 , range lines 3\InsetSpace \thinspace{}
28357 -\InsetSpace \thinspace{}
28361 \begin_layout Standard
28362 \begin_inset listings
28363 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
28367 \begin_layout Standard
28372 \begin_layout Standard
28374 'this is a python function'
28377 \begin_layout Standard
28382 \begin_layout Standard
28387 \begin_layout Standard
28389 'This is a German word: Tschüß'
28392 \begin_layout Standard
28397 \begin_layout Standard
28402 \begin_layout Standard
28404 'this is a python function'
28407 \begin_layout Standard
28417 \begin_layout Standard
28418 \begin_inset Note Greyedout
28421 \begin_layout Standard
28426 Due to a bug in the
28430 package the line numbering is shifted by a line by every previous listing.
28431 That's the reason why the lines 2 and 5 are numbered in the above listing
28432 and not the lines 3 and 6.
28440 \begin_layout Standard
28441 \begin_inset VSpace bigskip
28447 \begin_layout Standard
28448 It is also possible to print lines from a file as listing.
28449 To do this, use the menu
28451 Insert\SpecialChar \menuseparator
28452 File\SpecialChar \menuseparator
28455 and choose the type
28463 \begin_layout Standard
28464 The other child document types are described in section\InsetSpace ~
28466 \begin_inset LatexCommand ref
28467 reference "sec:Child-Documents"
28476 In the child document dialog you can specify the listing parameters in
28478 To show a list of all available parameters, type in a question mark
28479 \begin_inset Quotes eld
28483 \begin_inset Quotes erd
28489 \begin_layout Standard
28490 To reference child document listings, write a label text into the corresponding
28491 field of the child document dialog.
28492 The label can then be referenced using the menu
28494 Insert\SpecialChar \menuseparator
28500 \begin_layout Standard
28501 Listing\InsetSpace ~
28503 \begin_inset LatexCommand ref
28504 reference "lst:file-listing"
28508 is an example for a listing of a file; there the lines 10\InsetSpace \thinspace{}
28509 -\InsetSpace \thinspace{}
28514 \begin_layout Standard
28515 \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]
28523 \begin_layout Standard
28524 \begin_inset VSpace bigskip
28530 \begin_layout Standard
28531 Global listings settings can be set in the
28533 Document\SpecialChar \menuseparator
28534 Settings\SpecialChar \menuseparator
28538 To get there a list of available options, type in a question mark
28539 \begin_inset Quotes eld
28543 \begin_inset Quotes erd
28548 Listings\InsetSpace ~
28554 \begin_layout Standard
28555 For more information about the
28559 package, we refer to its documentation
28560 \begin_inset LatexCommand cite
28568 \begin_layout Standard
28574 \begin_layout Chapter
28580 \begin_layout Standard
28593 \begin_layout Standard
28601 \begin_inset LatexCommand index
28607 \begin_inset LatexCommand label
28608 name "cha:Units-available-in"
28613 \begin_inset Note Note
28616 \begin_layout Standard
28619 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
28620 are displayed wrongly in PDF-bookmarks.
28621 For more information about this, have a look at
28622 \begin_inset LatexCommand cite
28635 \begin_layout Standard
28636 To understand the units described in this documentation, Table\InsetSpace ~
28638 \begin_inset LatexCommand ref
28639 reference "tab:Units"
28643 explains all units available in LyX.
28646 \begin_layout Standard
28647 \begin_inset Float table
28653 \begin_layout Standard
28654 \begin_inset Caption
28656 \begin_layout Standard
28657 \begin_inset LatexCommand label
28670 \begin_layout Standard
28671 \begin_inset VSpace medskip
28677 \begin_layout Standard
28679 \begin_inset Tabular
28680 <lyxtabular version="3" rows="20" columns="2">
28682 <column alignment="center" valignment="top" leftline="true" width="0">
28683 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
28684 <row topline="true" bottomline="true">
28685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28688 \begin_layout Standard
28694 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28697 \begin_layout Standard
28704 <row topline="true">
28705 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28708 \begin_layout Standard
28714 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28717 \begin_layout Standard
28724 <row topline="true">
28725 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28728 \begin_layout Standard
28734 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28737 \begin_layout Standard
28744 <row topline="true">
28745 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28748 \begin_layout Standard
28754 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28757 \begin_layout Standard
28764 <row topline="true">
28765 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28768 \begin_layout Standard
28774 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28777 \begin_layout Standard
28778 point (72.27\InsetSpace \thinspace{}
28779 pt = 1\InsetSpace \thinspace{}
28786 <row topline="true">
28787 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28790 \begin_layout Standard
28796 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28799 \begin_layout Standard
28800 pica (1\InsetSpace \thinspace{}
28801 pc = 12\InsetSpace \thinspace{}
28808 <row topline="true">
28809 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28812 \begin_layout Standard
28818 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28821 \begin_layout Standard
28822 scaled point (65536\InsetSpace \thinspace{}
28823 sp = 1\InsetSpace \thinspace{}
28830 <row topline="true">
28831 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28834 \begin_layout Standard
28840 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28843 \begin_layout Standard
28844 big point (72\InsetSpace \thinspace{}
28845 bp = 1\InsetSpace \thinspace{}
28852 <row topline="true">
28853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28856 \begin_layout Standard
28862 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28865 \begin_layout Standard
28866 didot (1\InsetSpace \thinspace{}
28868 \begin_inset Formula $\approx$
28871 0.376\InsetSpace \thinspace{}
28878 <row topline="true">
28879 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28882 \begin_layout Standard
28888 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28891 \begin_layout Standard
28892 cicero (1\InsetSpace \thinspace{}
28893 cc = 12\InsetSpace \thinspace{}
28900 <row topline="true">
28901 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28904 \begin_layout Standard
28910 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28913 \begin_layout Standard
28914 % of original image width
28920 <row topline="true">
28921 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28924 \begin_layout Standard
28930 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28933 \begin_layout Standard
28940 <row topline="true">
28941 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28944 \begin_layout Standard
28950 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28953 \begin_layout Standard
28960 <row topline="true">
28961 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28964 \begin_layout Standard
28970 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28973 \begin_layout Standard
28980 <row topline="true">
28981 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28984 \begin_layout Standard
28990 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28993 \begin_layout Standard
29000 <row topline="true">
29001 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29004 \begin_layout Standard
29010 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29013 \begin_layout Standard
29020 <row topline="true">
29021 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29024 \begin_layout Standard
29030 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29033 \begin_layout Standard
29040 <row topline="true">
29041 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29044 \begin_layout Standard
29050 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29053 \begin_layout Standard
29064 <row topline="true">
29065 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29068 \begin_layout Standard
29074 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29077 \begin_layout Standard
29088 <row topline="true" bottomline="true">
29089 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29092 \begin_layout Standard
29098 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29101 \begin_layout Standard
29102 math unit (1\InsetSpace \thinspace{}
29103 mu = 1/18\InsetSpace \thinspace{}
29122 \begin_layout Chapter
29123 Output File Formats with Graphics
29124 \begin_inset LatexCommand label
29125 name "cha:Output-File-Formats"
29132 \begin_layout Section
29134 \begin_inset LatexCommand index
29135 name "File Formats ! DVI"
29140 \begin_inset LatexCommand index
29141 name "DVI|see{File Formats}"
29148 \begin_layout Standard
29149 This file type has the extension
29150 \begin_inset Quotes eld
29158 \begin_inset Quotes erd
29163 \begin_inset Quotes eld
29167 \begin_inset Quotes erd
29170 (DVI), because it is completely portable; you can move them from one machine
29171 to another without needing to do any sort of conversion.
29172 At the time when this file-format was developed, this was no matter of
29174 DVIs are used for quick previews and as pre-stage for other output formats,
29178 \begin_layout Standard
29179 \begin_inset Note Greyedout
29182 \begin_layout Standard
29187 DVI-files doesn't contain images, they will only be a linked.
29192 So don't forget this, if you move your
29196 file to another computer.
29197 This property can also slow down your computer when you view the DVI.
29198 Because the DVI-viewer has to convert the image in the background to make
29199 it visible when you scroll in the DVI.
29200 So we recommend to use PDF for files with many images.
29203 \begin_layout Standard
29204 You can export your document to DVI by using the menu
29206 File\SpecialChar \menuseparator
29207 Export\SpecialChar \menuseparator
29211 You can view your document as DVI via the
29215 menu or by using the toolbar button
29216 \begin_inset Graphics
29217 filename ../images/buffer-view_dvi.xpm
29219 scaleBeforeRotation
29226 \begin_layout Section
29228 \begin_inset LatexCommand label
29229 name "sec:PostScript"
29234 \begin_inset LatexCommand index
29235 name "File Formats ! PostScript"
29240 \begin_inset LatexCommand index
29241 name "PostScript|see{File Formats}"
29248 \begin_layout Standard
29249 This file type has the extension
29250 \begin_inset Quotes eld
29258 \begin_inset Quotes erd
29262 PostScript was developed by the company
29266 as printer language.
29267 The file contains therefore commands that the printer uses to print the
29269 PostScript can be seen as
29270 \begin_inset Quotes eld
29273 programming language
29274 \begin_inset Quotes erd
29277 ; you can calculate with it and draw diagrams and images
29281 \begin_layout Standard
29282 If you are interested to learn more about this, have a look at the LaTeX-package
29288 \begin_inset LatexCommand cite
29299 Due to this ability, the files are often bigger than PDFs.
29302 \begin_layout Standard
29303 PostScript can only contain images in the format
29304 \begin_inset Quotes eld
29307 Encapsulated PostScript
29308 \begin_inset Quotes erd
29311 (EPS, file extension
29312 \begin_inset Quotes eld
29320 \begin_inset Quotes erd
29324 As LyX allows you to use any known image format in your document, it has
29325 to convert images in the background to EPS.
29326 If you have e.g 50 images in your document, LyX has to do 50 conversions
29327 whenever you view or export your document.
29328 This will slow down your work flow with LyX drastically.
29329 So if you plan to use PostScript, you can insert your images directly as
29330 EPS to avoid this problem.
29333 \begin_layout Standard
29334 You can export your document to PostScript using the menu
29336 File\SpecialChar \menuseparator
29337 Export\SpecialChar \menuseparator
29341 You can view your document as PostScript via the
29345 menu or by using the toolbar button
29346 \begin_inset Graphics
29347 filename ../images/buffer-view_ps.xpm
29349 scaleBeforeRotation
29356 \begin_layout Section
29358 \begin_inset LatexCommand label
29364 \begin_inset LatexCommand index
29365 name "File Formats ! PDF"
29370 \begin_inset LatexCommand index
29378 \begin_layout Standard
29379 This file type has the extension
29380 \begin_inset Quotes eld
29388 \begin_inset Quotes erd
29393 \begin_inset Quotes eld
29396 Portable Document Format
29397 \begin_inset Quotes erd
29400 (PDF) is developed by
29404 as derivative from PostScript.
29405 It is more compressed and it uses much less commands than PostScript.
29407 \begin_inset Quotes eld
29411 \begin_inset Quotes erd
29414 implies, it can be processed at any computer system and the printed output
29415 looks exactly the same.
29418 \begin_layout Standard
29419 PDF can contain images in its own PDF format, in the format
29420 \begin_inset Quotes eld
29423 Joint Photographic Experts Group
29424 \begin_inset Quotes erd
29427 (JPG, file extension
29428 \begin_inset Quotes eld
29436 \begin_inset Quotes erd
29440 \begin_inset Quotes eld
29448 \begin_inset Quotes erd
29451 ), and in the format
29452 \begin_inset Quotes eld
29455 Portable Network Graphics
29456 \begin_inset Quotes erd
29459 (PNG, file extension
29460 \begin_inset Quotes eld
29468 \begin_inset Quotes erd
29472 Nevertheless you can use any other image format, because LyX converts them
29473 in the background to one of these formats.
29474 But as described in the section about PostScript, the image conversion
29475 will slow down your work flow.
29476 So it is recommended to use images in one of the three mentioned formats.
29479 \begin_layout Standard
29480 You can export your document to PDF via the menu
29482 File\SpecialChar \menuseparator
29485 in three different ways:
29488 \begin_layout Description
29490 (ps2pdf) This uses the program
29494 that creates a PDF from a PostScript-version of your file.
29495 The PostScript-version is produced by the program
29499 which uses a DVI-version as intermediate step.
29500 So this export variant consist of three conversions.
29503 \begin_layout Description
29505 (dvipdfm) This uses the program
29509 that converts your file in the background to DVI and in a second step to
29513 \begin_layout Description
29515 (pdflatex) This uses the program
29519 that converts your file directly to PDF.
29522 \begin_layout Standard
29523 It is recommended to use
29532 supports all features of actual PDF-versions, is quick and works stable
29538 is not under development and therefore a bit outdated.
29541 \begin_layout Standard
29542 You can view your document as PDF via the
29546 menu or by using the toolbar button
29547 \begin_inset Graphics
29548 filename ../images/buffer-view_pdf2.xpm
29550 scaleBeforeRotation
29566 \begin_layout Chapter
29567 Explanation of Equation\InsetSpace ~
29569 \begin_inset LatexCommand eqref
29575 \begin_inset LatexCommand label
29576 name "cha:Explanation-of-Equation"
29583 \begin_layout Standard
29589 \begin_inset Formula $W_{\mathrm{tot\, n}}$
29592 can be calculated to
29595 \begin_layout Standard
29596 \begin_inset Formula \begin{equation}
29597 W_{\mathrm{tot}\, n}=n·(W_{g\, n}+2·\backslash\mbox{tabcolsep})+(n+1)·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}\end{equation}
29604 \begin_layout Standard
29606 \begin_inset Formula $W_{g\, n}$
29609 is the given width of all cells.
29616 is the LaTeX-length between the cell text and the cell border, its default
29617 value is 6\InsetSpace \thinspace{}
29625 is the thickness of the cell border line, the default is 0.4\InsetSpace \thinspace{}
29629 \begin_layout Standard
29630 Following equation\InsetSpace ~
29632 \begin_inset LatexCommand eqref
29633 reference "eq:Wtot_n"
29637 , the total width of a multicolumn
29638 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
29644 \begin_layout Standard
29645 \begin_inset Formula \begin{equation}
29646 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2·\backslash\mbox{tabcolsep}+2·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
29653 \begin_layout Standard
29654 By setting equation\InsetSpace ~
29656 \begin_inset LatexCommand eqref
29657 reference "eq:Wtot_n"
29662 \begin_inset LatexCommand eqref
29663 reference "eq:Wtot_mult"
29667 equal we can calculate the needed given width
29668 \begin_inset Formula $W_{g\, n}$
29675 columns are spanned, so that each column has a total width of
29676 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
29682 \begin_layout Standard
29683 \begin_inset Formula \begin{equation}
29684 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)·(2·\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
29691 \begin_layout Bibliography
29692 \begin_inset LatexCommand bibitem
29693 key "latexcompanion"
29697 Frank Mittelbach and Michel Goossens:
29699 The LaTeX Companion Second Edition.
29702 Addison-Wesley, 2004
29705 \begin_layout Bibliography
29706 \begin_inset LatexCommand bibitem
29711 Helmut Kopka and Patrick W.
29714 A Guide to LaTeX Fourth Edition.
29717 Addison-Wesley, 2003
29720 \begin_layout Bibliography
29721 \begin_inset LatexCommand bibitem
29728 LaTeX: A Document Preparation System.
29731 Addison-Wesley, second edition, 1994
29734 \begin_layout Bibliography
29735 \begin_inset LatexCommand bibitem
29744 \begin_layout Standard
29748 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf}
29758 \begin_layout Standard
29765 of the LaTeX-package
29770 \begin_inset LatexCommand index
29771 name "LaTeX-packages ! booktabs"
29778 \begin_layout Bibliography
29779 \begin_inset LatexCommand bibitem
29788 \begin_layout Standard
29792 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf}{
29801 \begin_layout Standard
29808 of the LaTeX-package
29813 \begin_inset LatexCommand index
29814 name "LaTeX-packages ! caption"
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/caption/anleitung.pdf}
29845 \begin_layout Standard
29852 of the LaTeX-package
29857 \begin_layout Bibliography
29858 \begin_inset LatexCommand bibitem
29867 \begin_layout Standard
29871 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf}
29881 \begin_layout Standard
29888 of the LaTeX-package
29890 endf\SpecialChar \textcompwordmark{}
29894 \begin_inset LatexCommand index
29895 name "LaTeX-packages ! endfloat"
29902 \begin_layout Bibliography
29903 \begin_inset LatexCommand bibitem
29912 \begin_layout Standard
29916 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/floatflt/floatflt.pdf}
29926 \begin_layout Standard
29933 of the LaTeX-package
29935 f\SpecialChar \textcompwordmark{}
29936 loatf\SpecialChar \textcompwordmark{}
29940 \begin_inset LatexCommand index
29941 name "LaTeX-packages ! floatflt"
29948 \begin_layout Bibliography
29949 \begin_inset LatexCommand bibitem
29958 \begin_layout Standard
29962 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf}
29972 \begin_layout Standard
29979 of the LaTeX-package
29984 \begin_inset LatexCommand index
29985 name "LaTeX-packages ! footmisc"
29992 \begin_layout Bibliography
29993 \begin_inset LatexCommand bibitem
30002 \begin_layout Standard
30006 href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf}{
30015 \begin_layout Standard
30022 of the LaTeX-package
30027 \begin_inset LatexCommand index
30028 name "LaTeX-packages ! hyperref"
30035 \begin_layout Bibliography
30036 \begin_inset LatexCommand bibitem
30045 \begin_layout Standard
30049 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf}
30059 \begin_layout Standard
30066 of the LaTeX-package
30071 \begin_inset LatexCommand index
30072 name "LaTeX-packages ! hyperref"
30079 \begin_layout Bibliography
30080 \begin_inset LatexCommand bibitem
30089 \begin_layout Standard
30093 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.p
30103 \begin_layout Standard
30110 of the LaTeX-package
30115 \begin_inset LatexCommand index
30116 name "LaTeX-packages ! koma-script"
30123 \begin_layout Bibliography
30124 \begin_inset LatexCommand bibitem
30125 key "koma-script-de"
30133 \begin_layout Standard
30137 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguide.p
30147 \begin_layout Standard
30154 of the LaTeX-package
30159 \begin_inset LatexCommand index
30160 name "LaTeX-packages ! koma-script"
30167 \begin_layout Bibliography
30168 \begin_inset LatexCommand bibitem
30177 \begin_layout Standard
30181 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf}
30191 \begin_layout Standard
30198 of the LaTeX-package
30203 \begin_inset LatexCommand index
30204 name "LaTeX-packages ! listings"
30211 \begin_layout Bibliography
30212 \begin_inset LatexCommand bibitem
30221 \begin_layout Standard
30225 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.
30235 \begin_layout Standard
30242 of the LaTeX-package
30247 \begin_inset LatexCommand index
30248 name "LaTeX-packages ! marginnote"
30255 \begin_layout Bibliography
30256 \begin_inset LatexCommand bibitem
30265 \begin_layout Standard
30269 href{http://tug.org/PSTricks/main.cgi/}{
30278 \begin_layout Standard
30285 of the LaTeX-package
30290 \begin_inset LatexCommand index
30291 name "LaTeX-packages ! PSTricks"
30298 \begin_layout Bibliography
30299 \begin_inset LatexCommand bibitem
30308 \begin_layout Standard
30312 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf}{
30321 \begin_layout Standard
30328 of the LaTeX-package
30333 \begin_inset LatexCommand index
30334 name "LaTeX-packages ! sidecap"
30341 \begin_layout Bibliography
30342 \begin_inset LatexCommand bibitem
30351 \begin_layout Standard
30355 href{http://wiki.lyx.org/LyX/NewInLyX15}{
30364 \begin_layout Standard
30371 about new LyX-features planned for the release
30378 \begin_layout Standard
30379 \begin_inset LatexCommand printindex
30386 \begin_layout Standard
30387 \begin_inset FloatList figure
30394 \begin_layout Standard
30395 \begin_inset FloatList table