1 #LyX 1.5.1 created this file. For more info see http://www.lyx.org/
11 % set fonts for nicer pdf view
12 \IfFileExists{lmodern.sty}
13 {\usepackage{lmodern}} % if it exists
15 \usepackage[scaled=0.92]{helvet}
18 } % end if it exists not
20 % link all cross references and URLs
22 \usepackage[colorlinks=true, bookmarks, bookmarksnumbered, bookmarksopen, bookmarksopenlevel=1,
23 linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,
24 pdfpagelayout=OneColumn, pdfnewwindow=true,
25 pdfstartview=XYZ, plainpages=false, pdfpagelabels,
26 pdfauthor={LyX Team}, pdftex,
27 pdftitle={LyX's Figure, Table, Floats, Notes, and Boxes manual},
28 pdfsubject={LyX-documentation about figures, tables, floats, notes, and boxes},
29 pdfkeywords={LyX, Tables, Figures, Floats, Boxes, Notes}]{hyperref}
31 \else % if dvi or ps is produced
33 % link all cross references and URLs in DVI output
34 \usepackage[ps2pdf, colorlinks=true,
35 linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue]{hyperref}
37 \fi % end if pdflatex is used
39 % that links to image floats jumps
40 % to the beginning of the float and
42 \usepackage[figure]{hypcap}
44 % the pages of the TOC are numbered roman
45 % and a PDF-bookmark for the TOC is added
47 \let\myTOC\tableofcontents
48 \renewcommand{\tableofcontents}{%
49 \pdfbookmark[1]{Contents}{}
52 \pagenumbering{arabic}}
54 % provides caption formatting
55 \usepackage[labelfont={bf,sf}, tableposition=top]{caption}[2004/07/16]
57 % provides commands to set caption
58 % beside tables/images
61 \newcommand{\TabBesBeg}{%
63 \let\MyEndtable\endtable
64 \renewenvironment{table}{\begin{SCtable}}{\end{SCtable}}}
66 \newcommand{\TabBesEnd}{%
68 \let\endtable\MyEndtable}
70 \newcommand{\FigBesBeg}{%
72 \let\MyEndfigure\endfigure
73 \renewenvironment{figure}{\begin{SCfigure}}{\end{SCfigure}}}
75 \newcommand{\FigBesEnd}{%
77 \let\endfigure\MyEndfigure}
79 % enables calculation of values,
82 % provides special table cell alignments
85 % increase the bottom float placement fraction
86 \renewcommand{\bottomfraction}{0.5}
88 % avoids that floats are placed before their
89 % corresponding section starts
90 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
92 % speed up the longtable calculation
93 \setcounter{LTchunksize}{100}
95 % used for colored tables
96 \@ifundefined{textcolor}
97 {\usepackage{color}}{}
99 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
100 \definecolor{lightgrey}{gray}{0.8}
103 \usepackage{multirow}
104 %\renewcommand{\multirowsetup}{\centering}
106 % used for book-style tables
107 \usepackage{booktabs}
109 % used to have extra space in table cells
110 \@ifundefined{extrarowheight}
111 {\usepackage{array}}{}
112 \setlength{\extrarowheight}{2pt}
114 % used for customized tables
117 {>{\centering\hspace{0pt}}m{#1}}
120 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
123 {>{\columncolor{#1}\hspace{0pt}}c}
125 \newcolumntype{V}{!{\vrule width 1.5pt}}
127 \newcolumntype{W}{!{\color{green}\vline}}
130 % insert additional vertical space of
131 % 1.5 mm between footnotes
133 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
135 % enable algorithm floats to be referenced
136 \newfloat{Xalgorithm}{tbp}{loa}
137 \floatname{Xalgorithm}{Algorithm}
138 \newcommand{\theHalgorithm}{\theHXalgorithm}
139 \renewenvironment{algorithm}[1][tbp]
140 {\begin{Xalgorithm}[#1]}{\end{Xalgorithm}}
142 % number algorithm floats within chapters
143 \numberwithin{Xalgorithm}{chapter}
145 % redefine the greyed out note
146 \renewenvironment{lyxgreyedout}
147 {\textcolor{blue}\bgroup}{\egroup}
149 % ------------------------------------
150 % used to check for needed LaTeX packages
153 % check for package arydshln
154 % used for tables with dashed lines
155 \newboolean{arydshln}
156 \IfFileExists{arydshln.sty}
157 {\usepackage{arydshln}
158 \setboolean{arydshln}{true}}
159 {\setboolean{arydshln}{false}}
161 % check for package marginnote
162 % used for margin notes
163 \newboolean{marginnote}
164 \IfFileExists{marginnote.sty}
165 {\usepackage{marginnote}
166 \let\marginpar\marginnote
167 \setboolean{marginnote}{true}}
168 {\setboolean{marginnote}{false}}
170 % redefine the \LyX macro for PDF bookmarks
171 \def\LyX{\texorpdfstring{%
172 L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
175 \options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
180 \font_typewriter default
181 \font_default_family default
195 \paperorientation portrait
198 \paragraph_separation skip
200 \quotes_language english
203 \paperpagestyle default
207 \tracking_changes false
208 \output_changes false
216 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
225 \begin_layout Standard
227 If you have comments or error corrections, please send them to the LyX Documenta
234 \begin_layout Standard
238 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's ExtendedInsets manual}{
243 lyx-docs@lists.lyx.org
247 \begin_layout Standard
260 \begin_inset Note Note
263 \begin_layout Standard
264 original author: Uwe Stöhr
278 \begin_layout Standard
279 \begin_inset LatexCommand tableofcontents
286 \begin_layout Standard
287 \begin_inset Note Note
290 \begin_layout Standard
291 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
301 If they are not installed you can export the document anyway but the sections
302 where the packages are required won't appear in the output.
305 \begin_layout Standard
306 The latest PDF-version of this document can be found here:
310 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
318 \begin_layout Chapter
320 \begin_inset LatexCommand label
326 \begin_inset LatexCommand index
332 \begin_inset LatexCommand index
333 name "Graphics|see{Figures}"
340 \begin_layout Section
342 \begin_inset LatexCommand index
343 name "Figures ! Graphics Dialog"
348 \begin_inset LatexCommand label
349 name "sec:Graphics-Dialog"
356 \begin_layout Standard
357 To insert an image into your document, place the cursor at the text position
358 you want and click on the toolbar icon
359 \begin_inset Graphics
360 filename ../images/dialog-show-new-inset_graphics.xpm
368 Insert\SpecialChar \menuseparator
372 Then a dialog will appear to choose the file to load.
373 The image will appear in the output exactly at the position where it is
377 \begin_layout Standard
378 The graphics dialog can be called at any time by right-clicking on an image.
379 This dialog has three tabs:
382 \begin_layout Description
387 Here you can choose an image file and adjust its appearance in the output.
388 The available units for the image size are explained in appendix\InsetSpace ~
390 \begin_inset LatexCommand ref
391 reference "cha:Units-available-in"
397 You can rotate images counter-clockwise by setting a rotation angle and
399 The image will also be rotated inside LyX.
401 Images can be scaled by using
402 a percentage value or by setting the width and height explicitly.
403 If you set only the width or only the height, the other size will be determined
405 If you set both, then the image will be transformed to the given size,
406 possibly distorting it.
407 To prevent the image from distortion, use the option
409 Maintain aspect ratio
412 The image will then be scaled so that its width and height don't exceed
413 the specified dimensions.
415 Images can be opened in a program of your choice
421 The program can be set for every image format in the file format settings
422 in LyX's preferences.
425 \begin_layout Description
430 Alternatively to the usage of scaling units it is possible to set image
431 coordinates to adjust the height and width of the image in the output.
432 The coordinates can also be calculated automatically by pressing the button
444 bounding\InsetSpace ~
447 will only print the image region within the given coordinates.
448 Normally you don't need to take care about image coordinates and can ignore
452 \begin_layout Description
458 In this tab you can modify the appearance of the image within LyX and set
459 the image to be a subfigure of a figure float with an own caption.
460 Subfigures are explained in section\InsetSpace ~
462 \begin_inset LatexCommand ref
463 reference "sec:Figure-Floats"
469 LaTeX experts can also specify on this tab additional LaTeX options.
477 makes the image appear in the output only as a frame with the size of the
487 option only affects zipped EPS-graphics, e.\InsetSpace \thinspace{}
494 When the option is used the images will not be unzipped on export, since
495 LaTeX can handle them as they are.
497 Zipped EPS-graphics are useful to save
498 disk space when you choose PostScript as output format, see appendix\InsetSpace ~
500 \begin_inset LatexCommand ref
501 reference "sec:PostScript"
506 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
517 zgrep %%Bounding x.eps.gz > x.eps.bb
521 The second command creates the bounding box file
522 \begin_inset Quotes eld
526 \begin_inset Quotes erd
529 that is needed by LaTeX for zipped graphics.
532 \begin_layout Standard
533 \begin_inset VSpace bigskip
539 \begin_layout Standard
540 This is an example image in EPS format
544 \begin_layout Standard
545 Image formats are explained in section\InsetSpace ~
547 \begin_inset LatexCommand ref
548 reference "sec:Image-Formats"
557 within a separate, horizontally centered paragraph:
560 \begin_layout Standard
562 \begin_inset Graphics
563 filename clipart/mobius.eps
574 \begin_layout Standard
575 This is the same image like the one above but in draft mode:
578 \begin_layout Standard
580 \begin_inset Graphics
581 filename clipart/mobius.eps
593 \begin_layout Section
595 \begin_inset LatexCommand label
596 name "sec:Figure-Floats"
601 \begin_inset LatexCommand index
602 name "Floats ! Figures"
607 \begin_inset LatexCommand index
608 name "Figures ! Floats"
615 \begin_layout Standard
616 For general explanations about floats, have a look at section\InsetSpace ~
618 \begin_inset LatexCommand ref
619 reference "sec:FloatIntroduction"
626 \begin_layout Standard
628 \begin_inset Graphics
629 filename ../images/float-insert_figure.xpm
637 Insert\SpecialChar \menuseparator
638 Float\SpecialChar \menuseparator
641 inserts a float with a caption that has the label
642 \begin_inset Quotes eld
647 \begin_inset Quotes erd
650 (# is the actual number).
651 You can insert the image above the caption, like in Figure\InsetSpace ~
653 \begin_inset LatexCommand ref
654 reference "fig:kill-plat"
658 or below the caption, like in Figure\InsetSpace ~
660 \begin_inset LatexCommand ref
661 reference "fig:escher"
666 More about the caption placement is described in section\InsetSpace ~
668 \begin_inset LatexCommand ref
669 reference "sec:Caption-Placement"
676 \begin_layout Standard
677 \begin_inset Float figure
682 \begin_layout Standard
684 \begin_inset Graphics
685 filename clipart/platypus.eps
696 \begin_layout Standard
699 \begin_layout Standard
700 \begin_inset LatexCommand label
705 A severely distorted platypus in a float.
718 \begin_layout Standard
719 \begin_inset Float figure
724 \begin_layout Standard
727 \begin_layout Standard
728 \begin_inset LatexCommand label
742 \begin_layout Standard
744 \begin_inset Graphics
745 filename clipart/escher-lsd.eps
761 \begin_layout Standard
762 \begin_inset LatexCommand index
763 name "References ! to Figures"
769 \begin_inset LatexCommand ref
770 reference "fig:kill-plat"
775 \begin_inset LatexCommand ref
776 reference "fig:escher"
780 are examples of referenced figures.
781 Figures can be referenced in the text by referencing their label.
782 To do this insert a label in the caption using the menu
784 Insert\SpecialChar \menuseparator
787 or the toolbar button
788 \begin_inset Graphics
789 filename ../images/label-insert.xpm
796 You can now refer to the label using the menu
798 Insert\SpecialChar \menuseparator
802 or the toolbar button
803 \begin_inset Graphics
804 filename ../images/dialog-show-new-inset_ref.xpm
811 It is important to use references to floats, rather than using vague references
813 \begin_inset Quotes eld
817 \begin_inset Quotes erd
820 , because as LaTeX will reposition the floats in the final document, it
822 \begin_inset Quotes eld
826 \begin_inset Quotes erd
831 Referencing is explained in detail in section\InsetSpace ~
833 \begin_inset LatexCommand ref
834 reference "sec:Referencing-Floats"
841 \begin_layout Standard
842 Normally only one image is inserted to a figure float, but sometimes you
843 might want to use two images with separate subcaptions.
844 This can be set in the tab
849 of the graphics dialog.
850 Choose there the option
854 and enter the subcaption for the image in the caption field.
855 Note that only the main caption of the float is added to the List of Figures.
858 erencing subfigures is explained in section\InsetSpace ~
860 \begin_inset LatexCommand ref
861 reference "sub:Referencing-Subfigures"
868 \begin_layout Standard
871 \begin_inset LatexCommand ref
872 reference "fig:Two-distorted-images"
876 is an example of a figure float with two images set side by side.
877 You can also set the images one below the other.
880 \begin_layout Standard
881 \begin_inset Float figure
886 \begin_layout Standard
890 \begin_inset Graphics
891 filename clipart/escher-lsd.eps
895 subcaptionText "Undefinable structure"
902 \begin_inset Graphics
903 filename clipart/platypus.eps
908 subcaptionText "\label{fig:Platypus} Platypus"
917 \begin_layout Standard
920 \begin_layout Standard
921 \begin_inset LatexCommand label
922 name "fig:Two-distorted-images"
926 Two distorted images.
939 \begin_layout Section
941 \begin_inset LatexCommand label
942 name "sec:Image-Formats"
947 \begin_inset LatexCommand index
953 \begin_inset LatexCommand index
954 name "Figures ! Image Formats"
961 \begin_layout Standard
962 You can insert images in any known file format.
963 But as explained in appendix\InsetSpace ~
965 \begin_inset LatexCommand ref
966 reference "cha:Output-File-Formats"
970 , every output document format allows only a few image formats.
971 LyX uses therefore the program
975 in the background to convert the images to the right format.
976 To increase your work flow by avoiding these conversions in the background,
977 you can use only the image formats that can directly be embedded in the
979 The output file formats are explained in appendix\InsetSpace ~
981 \begin_inset LatexCommand ref
982 reference "cha:Output-File-Formats"
989 \begin_layout Standard
990 Similar to fonts there are two types of image formats:
993 \begin_layout Description
995 images consist of pixel values, often in a compressed form.
996 They are therefore not fully scalable and look pixeled in large zooms.
997 Well-known bitmap image formats are
998 \begin_inset Quotes eld
1001 Graphics Interchange Format
1002 \begin_inset Quotes erd
1005 (GIF, file extension
1006 \begin_inset Quotes eld
1014 \begin_inset Quotes erd
1018 \begin_inset LatexCommand index
1019 name "GIF|see{Image formats}"
1024 \begin_inset Quotes eld
1027 Portable Network Graphics
1028 \begin_inset Quotes erd
1031 (PNG, file extension
1032 \begin_inset Quotes eld
1040 \begin_inset Quotes erd
1044 \begin_inset LatexCommand index
1045 name "PNG|see{Image formats}"
1050 \begin_inset Quotes eld
1053 Joint Photographic Experts Group
1054 \begin_inset Quotes erd
1057 (JPG, file extension
1058 \begin_inset Quotes eld
1066 \begin_inset Quotes erd
1070 \begin_inset Quotes eld
1078 \begin_inset Quotes erd
1082 \begin_inset LatexCommand index
1083 name "JPG|see{Image formats}"
1090 \begin_layout Description
1092 images consist of vectors and can therefore be scaled to any size
1094 The scaling ability is necessary if you want to create presentations, because
1095 presentations are always scaled by the video projector.
1096 Scaling is also useful for online documents to let the user zoom into diagrams.
1099 ell-known scalable image formats are
1100 \begin_inset Quotes eld
1103 Scalable Vector Graphics
1104 \begin_inset Quotes erd
1107 (SVG, file extension
1108 \begin_inset Quotes eld
1116 \begin_inset Quotes erd
1120 \begin_inset LatexCommand index
1121 name "SVG|see{Image formats}"
1126 \begin_inset Quotes eld
1129 Encapsulated PostScript
1130 \begin_inset Quotes erd
1133 (EPS, file extension
1134 \begin_inset Quotes eld
1142 \begin_inset Quotes erd
1146 \begin_inset LatexCommand index
1147 name "EPS|see{Image formats}"
1152 \begin_inset Quotes eld
1155 Portable Document Format
1156 \begin_inset Quotes erd
1159 (PDF, file extension
1160 \begin_inset Quotes eld
1168 \begin_inset Quotes erd
1172 \begin_inset LatexCommand index
1178 \begin_inset Quotes eld
1182 \begin_inset Quotes erd
1185 (WMF, file extension
1186 \begin_inset Quotes eld
1194 \begin_inset Quotes erd
1198 \begin_inset LatexCommand index
1199 name "SVG|see{Image formats}"
1205 \begin_inset Quotes eld
1209 \begin_inset Quotes erd
1212 , because you can convert any bitmap image to a PDF or EPS-image and the
1213 result will still be a bitmap image.
1214 In this cases only a header with the image properties is added to the original
1219 \begin_layout Standard
1220 In the case of PDF, the original image is additionally compressed.
1226 The PDF-files generated by
1230 are for example bitmap images.
1233 \begin_layout Standard
1234 Normally it is not possible to convert a bitmap image into a scalable one,
1236 Only the image formats PDF and EPS can directly be embedded to PDF and
1237 PostScript output files, respectively.
1238 SVG and WMF-images are recalculated to bitmaps when the output file is
1239 generated because there is currently no adequate WMF/SVG
1240 \begin_inset Formula $\to$
1243 PDF/EPS converter available.
1246 \begin_layout Chapter
1248 \begin_inset LatexCommand label
1254 \begin_inset LatexCommand index
1262 \begin_layout Section
1264 \begin_inset LatexCommand index
1265 name "Table ! Introduction"
1272 \begin_layout Standard
1273 You can insert a table using either the toolbar button
1274 \begin_inset Graphics
1275 filename ../images/tabular-insert.xpm
1283 Insert\SpecialChar \menuseparator
1287 The toolbar button offers you a graphical selection: Move the mouse to
1288 set the column/row number of the table that should be created and then
1289 press a mouse button.
1290 When you use the menu to create a table, a dialog will appear, asking you
1291 for the number of rows and columns.
1293 The default table has lines around any
1294 cell and the first row appears separated from the rest of the table.
1295 This separation occurs due to a double line: The cells of the first row
1296 have a line below them and the cells of the second row have a line above
1298 Here is an example table:
1301 \begin_layout Standard
1303 \begin_inset Tabular
1304 <lyxtabular version="3" rows="4" columns="4">
1306 <column alignment="center" valignment="top" leftline="true" width="0">
1307 <column alignment="center" valignment="top" leftline="true" width="0">
1308 <column alignment="center" valignment="top" leftline="true" width="0">
1309 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
1310 <row topline="true" bottomline="true">
1311 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1314 \begin_layout Standard
1320 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1323 \begin_layout Standard
1338 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1341 \begin_layout Standard
1347 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1350 \begin_layout Standard
1357 <row topline="true">
1358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1361 \begin_layout Standard
1376 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1379 \begin_layout Standard
1385 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1388 \begin_layout Standard
1394 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1397 \begin_layout Standard
1404 <row topline="true">
1405 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1408 \begin_layout Standard
1423 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1426 \begin_layout Standard
1432 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1435 \begin_layout Standard
1441 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1444 \begin_layout Standard
1451 <row topline="true" bottomline="true">
1452 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1455 \begin_layout Standard
1470 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1473 \begin_layout Standard
1479 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1482 \begin_layout Standard
1488 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1491 \begin_layout Standard
1505 \begin_layout Section
1507 \begin_inset LatexCommand index
1508 name "Table ! Dialog"
1515 \begin_layout Standard
1516 You can alter a table by clicking on it with the right mouse button, which
1517 brings up the table dialog.
1518 Here you can adjust the settings of that cell and row/column respectively
1519 where the cursor is currently placed.
1520 Most of the dialog options also work on selections.
1521 This means if you select more cells, columns or rows, the action is done
1522 for the whole selection.
1523 Note that there is a difference between selecting the
1527 of the cell, and the cell itself.
1528 You can alter tables with the following tabs of the table dialog:
1531 \begin_layout Description
1537 Here you can set the horizontal alignment and the width of the current
1539 When you have set a width you can also adjust the vertical alignment of
1541 A given width will allow the cell to have line breaks and multiple paragraphs
1542 of text, see section\InsetSpace ~
1544 \begin_inset LatexCommand ref
1545 reference "sub:Multiple-Lines-in"
1550 If you set no width, the column is as wide as their widest cell content
1553 Furthermore, you can mark one or multiple cells of one row as a multicolumn
1554 cell, see section\InsetSpace ~
1556 \begin_inset LatexCommand ref
1557 reference "sub:Multicolumns"
1563 The rotate check boxes rotates the current cell, a selection, or the whole
1564 table counter-clockwise by 90°.
1565 The rotation is not shown within LyX, only in the output.
1568 \begin_inset Note Greyedout
1571 \begin_layout Standard
1576 Not all DVI-viewers are able to display rotations.
1583 It is also possible to enter a LaTeX-argument which is needed for special
1584 table formattings, see section\InsetSpace ~
1586 \begin_inset LatexCommand ref
1587 reference "sub:Multicolumn-Calculations"
1592 \begin_inset LatexCommand ref
1593 reference "sec:Colored-Tables"
1600 \begin_layout Description
1605 In this tab you can add and delete border lines for the current row/column.
1612 will convert the table to a formal table as described in section\InsetSpace ~
1614 \begin_inset LatexCommand ref
1615 reference "sec:Formal-Tables"
1621 You can also add here space to table rows as decribed in section\InsetSpace ~
1623 \begin_inset LatexCommand ref
1624 reference "sub:Row-Spacing"
1631 \begin_layout Description
1636 This tab is to make a table a so called
1637 \begin_inset Quotes eld
1645 \begin_inset Quotes erd
1648 that can run over several pages.
1649 Section\InsetSpace ~
1651 \begin_inset LatexCommand ref
1652 reference "sec:Longtables"
1657 \begin_inset LatexCommand ref
1658 reference "sec:Special-Longtable-Issues"
1662 describe the longtable features in detail.
1665 \begin_layout Standard
1666 When the table toolbar is opened, you can move the cursor with the arrow
1667 keys from cell to cell and the property of the current cell will immediately
1668 be displayed in the dialog.
1671 \begin_layout Section
1673 \begin_inset LatexCommand index
1674 name "Table ! Toolbar"
1681 \begin_layout Standard
1682 The table toolbar is an alternative to the table dialog to be able to alter
1684 It should normally appear at the bottom of LyX's main window when the cursor
1686 You can alternatively switch it on to appear always, by right-clicking
1687 in LyX's main menu bar.
1690 \begin_layout Standard
1691 The toolbar has the following icons:
1694 \begin_layout Labeling
1695 \labelwidthstring 00.00.0000
1696 \begin_inset Graphics
1697 filename ../images/tabular-feature_append-row.xpm
1702 adds a row below the current cell or selection
1705 \begin_layout Labeling
1706 \labelwidthstring 00.00.0000
1707 \begin_inset Graphics
1708 filename ../images/tabular-feature_append-column.xpm
1713 adds a column right beside the current cell or selection
1716 \begin_layout Labeling
1717 \labelwidthstring 00.00.0000
1718 \begin_inset Graphics
1719 filename ../images/tabular-feature_delete-row.xpm
1724 deletes the current row or selection
1727 \begin_layout Labeling
1728 \labelwidthstring 00.00.0000
1729 \begin_inset Graphics
1730 filename ../images/tabular-feature_delete-column.xpm
1735 deletes the current column or selection
1738 \begin_layout Labeling
1739 \labelwidthstring 00.00.0000
1740 \begin_inset Graphics
1741 filename ../images/tabular-feature_toggle-line-top.xpm
1746 adds a line at the top of the current cell / row or of a selection
1749 \begin_layout Labeling
1750 \labelwidthstring 00.00.0000
1751 \begin_inset Graphics
1752 filename ../images/tabular-feature_toggle-line-bottom.xpm
1757 adds a line at the bottom of the current cell / row or of a selection
1760 \begin_layout Labeling
1761 \labelwidthstring 00.00.0000
1762 \begin_inset Graphics
1763 filename ../images/tabular-feature_toggle-line-left.xpm
1768 adds a line at the left side of the current cell / row or of a selection
1771 \begin_layout Labeling
1772 \labelwidthstring 00.00.0000
1773 \begin_inset Graphics
1774 filename ../images/tabular-feature_toggle-line-right.xpm
1779 adds a line at the right side of the current cell / row or of a selection
1782 \begin_layout Labeling
1783 \labelwidthstring 00.00.0000
1784 \begin_inset Graphics
1785 filename ../images/tabular-feature_set-all-lines.xpm
1790 adds lines around the current or selected cells - if the current cell no
1791 multicolumn this also affects the current row and column
1794 \begin_layout Labeling
1795 \labelwidthstring 00.00.0000
1796 \begin_inset Graphics
1797 filename ../images/tabular-feature_unset-all-lines.xpm
1802 deletes all lines of the current or selected cells - if the current cell
1803 no multicolumn this also affects the current row and column
1806 \begin_layout Labeling
1807 \labelwidthstring 00.00.0000
1808 \begin_inset Graphics
1809 filename ../images/tabular-feature_align-left.xpm
1814 left-aligns the content of the current cell / column
1817 \begin_layout Labeling
1818 \labelwidthstring 00.00.0000
1819 \begin_inset Graphics
1820 filename ../images/tabular-feature_align-center.xpm
1825 centers the content of the current cell / column horizontally
1828 \begin_layout Labeling
1829 \labelwidthstring 00.00.0000
1830 \begin_inset Graphics
1831 filename ../images/tabular-feature_align-right.xpm
1836 right-aligns the content of the current cell / column
1839 \begin_layout Labeling
1840 \labelwidthstring 00.00.0000
1841 \begin_inset Graphics
1842 filename ../images/tabular-feature_valign-top.xpm
1847 aligns the content of the current cell vertically to the top
1850 \begin_layout Labeling
1851 \labelwidthstring 00.00.0000
1852 \begin_inset Graphics
1853 filename ../images/tabular-feature_valign-middle.xpm
1858 centers the content of the current cell vertically
1861 \begin_layout Labeling
1862 \labelwidthstring 00.00.0000
1863 \begin_inset Graphics
1864 filename ../images/tabular-feature_valign-bottom.xpm
1869 aligns the content of the current cell vertically to the bottom
1872 \begin_layout Labeling
1873 \labelwidthstring 00.00.0000
1874 \begin_inset Graphics
1875 filename ../images/tabular-feature_set-rotate-cell.xpm
1880 rotates the current cell or selection counter-clockwise by 90°
1883 \begin_layout Labeling
1884 \labelwidthstring 00.00.0000
1885 \begin_inset Graphics
1886 filename ../images/tabular-feature_set-rotate-tabular.xpm
1891 rotates the whole table counter-clockwise by 90°
1894 \begin_layout Labeling
1895 \labelwidthstring 00.00.0000
1896 \begin_inset Graphics
1897 filename ../images/tabular-feature_multicolumn.xpm
1902 sets the current cell or selection as a multicolumn
1905 \begin_layout Standard
1906 \begin_inset Note Greyedout
1909 \begin_layout Standard
1914 For the output the vertical alignment of the first cell in a row is used
1915 for all following cells in the row.
1923 \begin_layout Section
1925 \begin_inset LatexCommand index
1926 name "Table ! Edit Menu"
1933 \begin_layout Standard
1934 Additionally to the table dialog and toolbar, the menu
1936 Edit\SpecialChar \menuseparator
1939 allows you to add and delete border lines for the current row/column and
1940 to set the current selection as multicolumn.
1941 The menu is only available when the cursor is inside a table.
1944 \begin_layout Section
1946 \begin_inset LatexCommand label
1947 name "sec:Table-Floats"
1952 \begin_inset LatexCommand index
1953 name "Floats ! Tables"
1958 \begin_inset LatexCommand index
1959 name "Table ! Floats"
1966 \begin_layout Standard
1967 For general explanations about floats, have a look at section\InsetSpace ~
1969 \begin_inset LatexCommand ref
1970 reference "sec:FloatIntroduction"
1977 \begin_layout Standard
1978 \begin_inset Float table
1984 \begin_layout Standard
1985 \begin_inset Caption
1987 \begin_layout Standard
1988 \begin_inset LatexCommand label
1989 name "tab:a table float"
2001 \begin_layout Standard
2003 \begin_inset Tabular
2004 <lyxtabular version="3" rows="3" columns="3">
2006 <column alignment="center" valignment="top" leftline="true" width="0pt">
2007 <column alignment="center" valignment="top" leftline="true" width="0pt">
2008 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
2009 <row topline="true" bottomline="true">
2010 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2013 \begin_layout Standard
2028 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2031 \begin_layout Standard
2046 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2049 \begin_layout Standard
2065 <row topline="true">
2066 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2069 \begin_layout Standard
2084 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2087 \begin_layout Standard
2102 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2105 \begin_layout Standard
2121 <row topline="true" bottomline="true">
2122 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2125 \begin_layout Standard
2135 \begin_inset Formula $\int x^{2}dx$
2143 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2146 \begin_layout Standard
2156 \begin_inset Formula $\left[\begin{array}{cc}
2158 c & d\end{array}\right]$
2166 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2169 \begin_layout Standard
2179 \begin_inset Formula $1+1=2$
2200 \begin_layout Standard
2201 Table floats can be inserted using the menu
2203 Insert\SpecialChar \menuseparator
2204 Float\SpecialChar \menuseparator
2207 or the toolbar button
2208 \begin_inset Graphics
2209 filename ../images/float-insert_table.xpm
2218 \begin_layout Standard
2219 The float appears as a collapsible box with a caption that has the label
2221 \begin_inset Quotes eld
2226 \begin_inset Quotes erd
2229 (# is the actual table number).
2230 You can insert tables to the float above or below the caption.
2233 \begin_layout Standard
2236 \begin_inset LatexCommand ref
2237 reference "tab:a table float"
2241 is an example table within a table float.
2244 \begin_layout Standard
2245 Having the caption above the table is the common rule that is unfortunately
2246 not supported in LaTeX's standard classes.
2247 That means if you are using the document classes
2263 there will be no space between the caption and the table.
2264 To insert the needed space, add the following option to the load command
2265 of the LaTeX-package
2270 \begin_inset LatexCommand index
2271 name "LaTeX-packages ! caption"
2275 in your document preamble
2279 \begin_layout Standard
2280 For more information have a look at section\InsetSpace ~
2282 \begin_inset LatexCommand ref
2283 reference "sec:Caption-Placement"
2295 \begin_layout Standard
2301 \begin_layout Standard
2306 , which is described in section\InsetSpace ~
2308 \begin_inset LatexCommand ref
2309 reference "sec:Caption-Formatting"
2313 , is used to adjust the caption format.
2316 \begin_layout Standard
2317 \begin_inset LatexCommand index
2318 name "References ! to Tables"
2322 Tables can be cross-referenced in the text by referencing their label.
2323 To do this insert a label in the caption using the menu
2325 Insert\SpecialChar \menuseparator
2328 or the toolbar button
2329 \begin_inset Graphics
2330 filename ../images/label-insert.xpm
2337 You can now refer to the label using the menu
2339 Insert\SpecialChar \menuseparator
2343 or the toolbar button
2344 \begin_inset Graphics
2345 filename ../images/dialog-show-new-inset_ref.xpm
2353 Referencing is explained in detail in section\InsetSpace ~
2355 \begin_inset LatexCommand ref
2356 reference "sec:Referencing-Floats"
2363 \begin_layout Section
2365 \begin_inset LatexCommand label
2366 name "sec:Longtables"
2371 \begin_inset LatexCommand index
2377 \begin_inset LatexCommand index
2378 name "Table ! Longtables"
2385 \begin_layout Standard
2386 If the table is too long to fit on one page, you can use the option
2396 of the table dialog to split the table automatically over more pages.
2397 Doing this enables some check boxes and you can now define:
2400 \begin_layout Description
2405 : The current row and all rows above, that don't have any special options
2406 defined, are defined to be the header rows of all pages of the longtable;
2407 except for the first page, if
2413 This therefore called the main header.
2416 \begin_layout Description
2422 : The current row and all rows above, that don't have any special options
2423 defined, are defined to be the header rows of the first page of the longtable.
2426 \begin_layout Description
2431 : The current row and all rows below, that don't have any special options
2432 defined, are defined to be the footer rows of all pages of the longtable;
2433 except for the last page, if
2441 \begin_layout Description
2447 : The current row and all rows below, that don't have any special options
2448 defined, are defined to be the footer rows of the last page of the longtable.
2451 \begin_layout Standard
2452 You can also specify a row where the table is splitted.
2453 If you set more than one option in the same table row, you should be aware
2454 of the fact that only the first one is used in the given table row.
2455 The others will then be defined as
2460 In this context, first means first in this order:
2467 header, Footer, Last\InsetSpace ~
2471 See the following longtable to see how it works:
2474 \begin_layout Standard
2476 \begin_inset Tabular
2477 <lyxtabular version="3" rows="69" columns="3">
2478 <features islongtable="true">
2479 <column alignment="left" valignment="top" leftline="true" width="0cm">
2480 <column alignment="left" valignment="top" width="0pt">
2481 <column alignment="right" valignment="top" leftline="true" rightline="true" width="0pt">
2482 <row topline="true" bottomline="true" endfirsthead="true">
2483 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2486 \begin_layout Standard
2489 Example Phone List (ignore the names)
2494 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2497 \begin_layout Standard
2503 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2506 \begin_layout Standard
2513 <row topline="true" bottomline="true" endfirsthead="true">
2514 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2517 \begin_layout Standard
2525 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2528 \begin_layout Standard
2534 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2537 \begin_layout Standard
2546 <row topline="true" bottomline="true" endhead="true">
2547 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2550 \begin_layout Standard
2558 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2561 \begin_layout Standard
2567 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2570 \begin_layout Standard
2577 <row topline="true" bottomline="true" endhead="true">
2578 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2581 \begin_layout Standard
2589 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2592 \begin_layout Standard
2598 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2601 \begin_layout Standard
2610 <row topline="true" bottomline="true" endfoot="true">
2611 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
2614 \begin_layout Standard
2615 continued on next page
2620 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2623 \begin_layout Standard
2629 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2632 \begin_layout Standard
2640 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2643 \begin_layout Standard
2651 <cell alignment="center" valignment="top" topline="true" usebox="none">
2654 \begin_layout Standard
2660 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2663 \begin_layout Standard
2671 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2674 \begin_layout Standard
2682 <cell alignment="center" valignment="top" topline="true" usebox="none">
2685 \begin_layout Standard
2691 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2694 \begin_layout Standard
2702 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2705 \begin_layout Standard
2713 <cell alignment="center" valignment="top" topline="true" usebox="none">
2716 \begin_layout Standard
2722 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2725 \begin_layout Standard
2733 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2736 \begin_layout Standard
2744 <cell alignment="center" valignment="top" topline="true" usebox="none">
2747 \begin_layout Standard
2753 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2756 \begin_layout Standard
2764 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2767 \begin_layout Standard
2775 <cell alignment="center" valignment="top" topline="true" usebox="none">
2778 \begin_layout Standard
2784 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2787 \begin_layout Standard
2795 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2798 \begin_layout Standard
2806 <cell alignment="center" valignment="top" topline="true" usebox="none">
2809 \begin_layout Standard
2815 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2818 \begin_layout Standard
2826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2829 \begin_layout Standard
2837 <cell alignment="center" valignment="top" topline="true" usebox="none">
2840 \begin_layout Standard
2846 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2849 \begin_layout Standard
2857 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2860 \begin_layout Standard
2868 <cell alignment="center" valignment="top" topline="true" usebox="none">
2871 \begin_layout Standard
2877 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2880 \begin_layout Standard
2888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2891 \begin_layout Standard
2899 <cell alignment="center" valignment="top" topline="true" usebox="none">
2902 \begin_layout Standard
2908 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2911 \begin_layout Standard
2919 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2922 \begin_layout Standard
2930 <cell alignment="center" valignment="top" topline="true" usebox="none">
2933 \begin_layout Standard
2939 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2942 \begin_layout Standard
2950 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2953 \begin_layout Standard
2961 <cell alignment="center" valignment="top" topline="true" usebox="none">
2964 \begin_layout Standard
2970 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2973 \begin_layout Standard
2981 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2984 \begin_layout Standard
2992 <cell alignment="center" valignment="top" topline="true" usebox="none">
2995 \begin_layout Standard
3001 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3004 \begin_layout Standard
3012 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3015 \begin_layout Standard
3023 <cell alignment="center" valignment="top" topline="true" usebox="none">
3026 \begin_layout Standard
3032 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3035 \begin_layout Standard
3043 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3046 \begin_layout Standard
3054 <cell alignment="center" valignment="top" topline="true" usebox="none">
3057 \begin_layout Standard
3063 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3066 \begin_layout Standard
3074 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3077 \begin_layout Standard
3085 <cell alignment="center" valignment="top" topline="true" usebox="none">
3088 \begin_layout Standard
3094 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3097 \begin_layout Standard
3105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3108 \begin_layout Standard
3116 <cell alignment="center" valignment="top" topline="true" usebox="none">
3119 \begin_layout Standard
3125 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3128 \begin_layout Standard
3136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3139 \begin_layout Standard
3147 <cell alignment="center" valignment="top" topline="true" usebox="none">
3150 \begin_layout Standard
3156 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3159 \begin_layout Standard
3167 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3170 \begin_layout Standard
3178 <cell alignment="center" valignment="top" topline="true" usebox="none">
3181 \begin_layout Standard
3187 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3190 \begin_layout Standard
3198 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3201 \begin_layout Standard
3209 <cell alignment="center" valignment="top" topline="true" usebox="none">
3212 \begin_layout Standard
3218 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3221 \begin_layout Standard
3229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3232 \begin_layout Standard
3240 <cell alignment="center" valignment="top" topline="true" usebox="none">
3243 \begin_layout Standard
3249 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3252 \begin_layout Standard
3260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3263 \begin_layout Standard
3271 <cell alignment="center" valignment="top" topline="true" usebox="none">
3274 \begin_layout Standard
3280 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3283 \begin_layout Standard
3291 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3294 \begin_layout Standard
3302 <cell alignment="center" valignment="top" topline="true" usebox="none">
3305 \begin_layout Standard
3311 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3314 \begin_layout Standard
3322 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3325 \begin_layout Standard
3333 <cell alignment="center" valignment="top" topline="true" usebox="none">
3336 \begin_layout Standard
3342 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3345 \begin_layout Standard
3353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3356 \begin_layout Standard
3364 <cell alignment="center" valignment="top" topline="true" usebox="none">
3367 \begin_layout Standard
3373 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3376 \begin_layout Standard
3384 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3387 \begin_layout Standard
3395 <cell alignment="center" valignment="top" topline="true" usebox="none">
3398 \begin_layout Standard
3404 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3407 \begin_layout Standard
3415 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3418 \begin_layout Standard
3426 <cell alignment="center" valignment="top" topline="true" usebox="none">
3429 \begin_layout Standard
3435 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3438 \begin_layout Standard
3446 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3449 \begin_layout Standard
3457 <cell alignment="center" valignment="top" topline="true" usebox="none">
3460 \begin_layout Standard
3466 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3469 \begin_layout Standard
3477 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3480 \begin_layout Standard
3488 <cell alignment="center" valignment="top" topline="true" usebox="none">
3491 \begin_layout Standard
3497 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3500 \begin_layout Standard
3508 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3511 \begin_layout Standard
3519 <cell alignment="center" valignment="top" topline="true" usebox="none">
3522 \begin_layout Standard
3528 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3531 \begin_layout Standard
3539 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3542 \begin_layout Standard
3550 <cell alignment="center" valignment="top" topline="true" usebox="none">
3553 \begin_layout Standard
3559 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3562 \begin_layout Standard
3569 <row bottomline="true">
3570 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3573 \begin_layout Standard
3581 <cell alignment="center" valignment="top" topline="true" usebox="none">
3584 \begin_layout Standard
3590 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3593 \begin_layout Standard
3600 <row bottomline="true">
3601 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3604 \begin_layout Standard
3610 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
3613 \begin_layout Standard
3619 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3622 \begin_layout Standard
3630 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3633 \begin_layout Standard
3641 <cell alignment="center" valignment="top" topline="true" usebox="none">
3644 \begin_layout Standard
3650 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3653 \begin_layout Standard
3661 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3664 \begin_layout Standard
3672 <cell alignment="center" valignment="top" topline="true" usebox="none">
3675 \begin_layout Standard
3681 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3684 \begin_layout Standard
3692 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3695 \begin_layout Standard
3703 <cell alignment="center" valignment="top" topline="true" usebox="none">
3706 \begin_layout Standard
3712 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3715 \begin_layout Standard
3723 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3726 \begin_layout Standard
3734 <cell alignment="center" valignment="top" topline="true" usebox="none">
3737 \begin_layout Standard
3743 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3746 \begin_layout Standard
3754 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3757 \begin_layout Standard
3765 <cell alignment="center" valignment="top" topline="true" usebox="none">
3768 \begin_layout Standard
3774 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3777 \begin_layout Standard
3785 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3788 \begin_layout Standard
3796 <cell alignment="center" valignment="top" topline="true" usebox="none">
3799 \begin_layout Standard
3805 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3808 \begin_layout Standard
3816 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3819 \begin_layout Standard
3827 <cell alignment="center" valignment="top" topline="true" usebox="none">
3830 \begin_layout Standard
3836 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3839 \begin_layout Standard
3847 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3850 \begin_layout Standard
3858 <cell alignment="center" valignment="top" topline="true" usebox="none">
3861 \begin_layout Standard
3867 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3870 \begin_layout Standard
3878 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3881 \begin_layout Standard
3889 <cell alignment="center" valignment="top" topline="true" usebox="none">
3892 \begin_layout Standard
3898 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3901 \begin_layout Standard
3909 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3912 \begin_layout Standard
3920 <cell alignment="center" valignment="top" topline="true" usebox="none">
3923 \begin_layout Standard
3929 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3932 \begin_layout Standard
3940 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3943 \begin_layout Standard
3951 <cell alignment="center" valignment="top" topline="true" usebox="none">
3954 \begin_layout Standard
3960 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3963 \begin_layout Standard
3971 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3974 \begin_layout Standard
3982 <cell alignment="center" valignment="top" topline="true" usebox="none">
3985 \begin_layout Standard
3991 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3994 \begin_layout Standard
4002 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4005 \begin_layout Standard
4013 <cell alignment="center" valignment="top" topline="true" usebox="none">
4016 \begin_layout Standard
4022 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4025 \begin_layout Standard
4033 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4036 \begin_layout Standard
4044 <cell alignment="center" valignment="top" topline="true" usebox="none">
4047 \begin_layout Standard
4053 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4056 \begin_layout Standard
4064 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4067 \begin_layout Standard
4075 <cell alignment="center" valignment="top" topline="true" usebox="none">
4078 \begin_layout Standard
4084 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4087 \begin_layout Standard
4095 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4098 \begin_layout Standard
4106 <cell alignment="center" valignment="top" topline="true" usebox="none">
4109 \begin_layout Standard
4115 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4118 \begin_layout Standard
4126 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4129 \begin_layout Standard
4137 <cell alignment="center" valignment="top" topline="true" usebox="none">
4140 \begin_layout Standard
4146 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4149 \begin_layout Standard
4157 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4160 \begin_layout Standard
4168 <cell alignment="center" valignment="top" topline="true" usebox="none">
4171 \begin_layout Standard
4177 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4180 \begin_layout Standard
4188 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4191 \begin_layout Standard
4199 <cell alignment="center" valignment="top" topline="true" usebox="none">
4202 \begin_layout Standard
4208 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4211 \begin_layout Standard
4219 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4222 \begin_layout Standard
4230 <cell alignment="center" valignment="top" topline="true" usebox="none">
4233 \begin_layout Standard
4239 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4242 \begin_layout Standard
4250 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4253 \begin_layout Standard
4261 <cell alignment="center" valignment="top" topline="true" usebox="none">
4264 \begin_layout Standard
4270 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4273 \begin_layout Standard
4281 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4284 \begin_layout Standard
4292 <cell alignment="center" valignment="top" topline="true" usebox="none">
4295 \begin_layout Standard
4301 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4304 \begin_layout Standard
4312 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4315 \begin_layout Standard
4323 <cell alignment="center" valignment="top" topline="true" usebox="none">
4326 \begin_layout Standard
4332 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4335 \begin_layout Standard
4343 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4346 \begin_layout Standard
4354 <cell alignment="center" valignment="top" topline="true" usebox="none">
4357 \begin_layout Standard
4363 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4366 \begin_layout Standard
4374 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4377 \begin_layout Standard
4385 <cell alignment="center" valignment="top" topline="true" usebox="none">
4388 \begin_layout Standard
4394 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4397 \begin_layout Standard
4405 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4408 \begin_layout Standard
4416 <cell alignment="center" valignment="top" topline="true" usebox="none">
4419 \begin_layout Standard
4425 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4428 \begin_layout Standard
4436 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4439 \begin_layout Standard
4447 <cell alignment="center" valignment="top" topline="true" usebox="none">
4450 \begin_layout Standard
4456 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4459 \begin_layout Standard
4467 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4470 \begin_layout Standard
4478 <cell alignment="center" valignment="top" topline="true" usebox="none">
4481 \begin_layout Standard
4487 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4490 \begin_layout Standard
4498 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4501 \begin_layout Standard
4509 <cell alignment="center" valignment="top" topline="true" usebox="none">
4512 \begin_layout Standard
4518 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4521 \begin_layout Standard
4529 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4532 \begin_layout Standard
4540 <cell alignment="center" valignment="top" topline="true" usebox="none">
4543 \begin_layout Standard
4549 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4552 \begin_layout Standard
4559 <row bottomline="true">
4560 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4563 \begin_layout Standard
4571 <cell alignment="center" valignment="top" topline="true" usebox="none">
4574 \begin_layout Standard
4580 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4583 \begin_layout Standard
4590 <row bottomline="true" endlastfoot="true">
4591 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
4594 \begin_layout Standard
4600 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4603 \begin_layout Standard
4609 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4612 \begin_layout Standard
4627 \begin_layout Standard
4631 addtocounter{table}{-1}
4637 \begin_inset Note Note
4640 \begin_layout Standard
4641 See greyed-out note in section\InsetSpace ~
4643 \begin_inset LatexCommand ref
4644 reference "sub:Longtable-Captions"
4648 for an explanation of this command.
4656 \begin_layout Subsection
4657 Footnotes in Longtables
4658 \begin_inset LatexCommand label
4659 name "sub:Footnotes-in-Longtables"
4664 \begin_inset LatexCommand index
4665 name "Longtables ! Footnotes"
4672 \begin_layout Standard
4673 Footnotes can be inserted to every longtable cell.
4674 They appear at the bottom of the page where the table cell with the footnote
4678 \begin_inset LatexCommand ref
4679 reference "tab:DiffCaptions"
4683 has for example a footnote.
4686 \begin_layout Subsection
4688 \begin_inset LatexCommand index
4689 name "Longtables ! Captions"
4694 \begin_inset LatexCommand label
4695 name "sub:Longtable-Captions"
4702 \begin_layout Standard
4703 A longtable cannot be put into a table float because floats can only be
4704 on one page but the caption environment of floats can also be used for
4708 \begin_layout Standard
4709 As LyX does not yet fully support captions in longtables, a hack is needed
4713 \begin_layout Enumerate
4719 \begin_layout Enumerate
4720 Mark the first row and disable its upper line.
4723 \begin_layout Enumerate
4724 Insert a caption via the menu
4726 Insert\SpecialChar \menuseparator
4729 into the first table cell.
4731 You can also add a short title for the caption.
4734 \begin_layout Enumerate
4736 \begin_inset Quotes eld
4748 \begin_inset Quotes erd
4751 as ERT behind the caption.
4754 \begin_layout Standard
4755 A short title that will appear in the LOT instead of the full title.
4764 behind the caption omits the vertical lines between the following cells
4766 The first table row is now only a dummy row for the caption, the actual
4767 table starts with the second row.
4770 \begin_layout Standard
4771 Here is a short longtable to see how it works:
4774 \begin_layout Standard
4775 \begin_inset Tabular
4776 <lyxtabular version="3" rows="6" columns="5">
4777 <features islongtable="true">
4778 <column alignment="center" valignment="top" leftline="true" width="0">
4779 <column alignment="center" valignment="top" leftline="true" width="0">
4780 <column alignment="center" valignment="top" leftline="true" width="0">
4781 <column alignment="center" valignment="top" leftline="true" width="0">
4782 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
4784 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4787 \begin_layout Standard
4788 \begin_inset Caption
4790 \begin_layout Standard
4791 Longtable with caption
4795 \begin_layout Standard
4810 \begin_layout Standard
4826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4829 \begin_layout Standard
4835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4838 \begin_layout Standard
4844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4847 \begin_layout Standard
4853 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4856 \begin_layout Standard
4863 <row topline="true">
4864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4867 \begin_layout Standard
4873 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4876 \begin_layout Standard
4882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4885 \begin_layout Standard
4891 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4894 \begin_layout Standard
4900 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4903 \begin_layout Standard
4910 <row topline="true">
4911 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4914 \begin_layout Standard
4920 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4923 \begin_layout Standard
4929 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4932 \begin_layout Standard
4938 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4941 \begin_layout Standard
4947 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4950 \begin_layout Standard
4957 <row topline="true">
4958 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4961 \begin_layout Standard
4967 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4970 \begin_layout Standard
4976 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4979 \begin_layout Standard
4985 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4988 \begin_layout Standard
4994 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4997 \begin_layout Standard
5004 <row topline="true">
5005 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5008 \begin_layout Standard
5014 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5017 \begin_layout Standard
5023 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5026 \begin_layout Standard
5032 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5035 \begin_layout Standard
5041 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5044 \begin_layout Standard
5051 <row topline="true" bottomline="true">
5052 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5055 \begin_layout Standard
5061 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5064 \begin_layout Standard
5070 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5073 \begin_layout Standard
5079 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5082 \begin_layout Standard
5088 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5091 \begin_layout Standard
5105 \begin_layout Standard
5106 \begin_inset VSpace medskip
5110 \begin_inset Note Greyedout
5113 \begin_layout Standard
5118 The table number is increased for every longtable, also if you didn't set
5120 For this reason you could have the case that e.g.
5122 2.4 follows on Table\InsetSpace ~
5123 2.1 in the list of tables if there are two longtables
5125 To avoid this you can add the following command in ERT behind every longtable
5129 \begin_layout Standard
5134 addtocounter{table}{-1}
5142 \begin_layout Standard
5143 \begin_inset Note Greyedout
5146 \begin_layout Standard
5151 If you are using the LaTeX-package
5156 \begin_inset LatexCommand index
5157 name "LaTeX-packages ! hyperref"
5161 to link cross-references, the link to a longtable caption will always point
5162 to the beginning of the document.
5170 \begin_layout Subsubsection
5171 References to Longtables
5172 \begin_inset LatexCommand index
5173 name "Longtables ! References"
5180 \begin_layout Standard
5181 \begin_inset Tabular
5182 <lyxtabular version="3" rows="6" columns="5">
5183 <features islongtable="true">
5184 <column alignment="center" valignment="top" leftline="true" width="0">
5185 <column alignment="center" valignment="top" leftline="true" width="0">
5186 <column alignment="center" valignment="top" leftline="true" width="0">
5187 <column alignment="center" valignment="top" leftline="true" width="0">
5188 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5193 \begin_layout Standard
5194 \begin_inset Caption
5196 \begin_layout Standard
5197 Referenced longtable
5198 \begin_inset LatexCommand label
5199 name "tab:RefExample"
5212 \begin_layout Standard
5228 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5231 \begin_layout Standard
5237 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5240 \begin_layout Standard
5246 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5249 \begin_layout Standard
5255 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5258 \begin_layout Standard
5265 <row topline="true">
5266 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5269 \begin_layout Standard
5275 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5278 \begin_layout Standard
5284 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5287 \begin_layout Standard
5293 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5296 \begin_layout Standard
5302 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5305 \begin_layout Standard
5312 <row topline="true">
5313 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5316 \begin_layout Standard
5322 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5325 \begin_layout Standard
5331 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5334 \begin_layout Standard
5340 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5343 \begin_layout Standard
5349 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5352 \begin_layout Standard
5359 <row topline="true">
5360 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5363 \begin_layout Standard
5369 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5372 \begin_layout Standard
5378 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5381 \begin_layout Standard
5387 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5390 \begin_layout Standard
5396 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5399 \begin_layout Standard
5406 <row topline="true">
5407 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5410 \begin_layout Standard
5416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5419 \begin_layout Standard
5425 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5428 \begin_layout Standard
5434 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5437 \begin_layout Standard
5443 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5446 \begin_layout Standard
5453 <row topline="true" bottomline="true">
5454 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5457 \begin_layout Standard
5463 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5466 \begin_layout Standard
5472 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5475 \begin_layout Standard
5481 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5484 \begin_layout Standard
5490 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5493 \begin_layout Standard
5507 \begin_layout Standard
5508 To reference a longtable, insert a label into the caption.
5509 Note that you have to add the label prefix
5510 \begin_inset Quotes eld
5518 \begin_inset Quotes eld
5521 manually in the label field.
5524 \begin_layout Standard
5525 This is a reference to Table\InsetSpace ~
5527 \begin_inset LatexCommand ref
5528 reference "tab:RefExample"
5535 \begin_layout Standard
5536 The caption layout can be set together with all other caption of your document
5537 using the LaTeX-package
5542 \begin_inset LatexCommand index
5543 name "LaTeX-packages ! caption"
5547 , see section\InsetSpace ~
5549 \begin_inset LatexCommand ref
5550 reference "sec:Caption-Formatting"
5557 \begin_layout Subsubsection
5559 \begin_inset LatexCommand index
5560 name "Longtables ! Caption Width"
5567 \begin_layout Standard
5568 The maximal width of of caption lines is defined by the length
5575 Its default value is 4\InsetSpace \thinspace{}
5577 To change it add the following command to your document preamble or as
5578 ERT into your document before the longtable that should be affected
5581 \begin_layout Standard
5591 \begin_layout Standard
5592 where the width could have one of the units listed in appendix\InsetSpace ~
5594 \begin_inset LatexCommand ref
5595 reference "cha:Units-available-in"
5602 \begin_layout Standard
5603 The following tables show the difference:
5606 \begin_layout Standard
5607 \begin_inset Tabular
5608 <lyxtabular version="3" rows="6" columns="5">
5609 <features islongtable="true">
5610 <column alignment="center" valignment="top" leftline="true" width="0">
5611 <column alignment="center" valignment="top" leftline="true" width="0">
5612 <column alignment="center" valignment="top" leftline="true" width="0">
5613 <column alignment="center" valignment="top" leftline="true" width="0">
5614 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5616 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5619 \begin_layout Standard
5620 \begin_inset Caption
5622 \begin_layout Standard
5623 long full title with default width long full title with default width long
5624 full title with default width
5628 \begin_layout Standard
5629 caption with default width
5643 \begin_layout Standard
5659 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5662 \begin_layout Standard
5668 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5671 \begin_layout Standard
5677 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5680 \begin_layout Standard
5686 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5689 \begin_layout Standard
5696 <row topline="true">
5697 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5700 \begin_layout Standard
5706 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5709 \begin_layout Standard
5715 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5718 \begin_layout Standard
5724 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5727 \begin_layout Standard
5733 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5736 \begin_layout Standard
5743 <row topline="true">
5744 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5747 \begin_layout Standard
5753 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5756 \begin_layout Standard
5762 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5765 \begin_layout Standard
5771 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5774 \begin_layout Standard
5780 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5783 \begin_layout Standard
5790 <row topline="true">
5791 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5794 \begin_layout Standard
5800 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5803 \begin_layout Standard
5809 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5812 \begin_layout Standard
5818 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5821 \begin_layout Standard
5827 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5830 \begin_layout Standard
5837 <row topline="true">
5838 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5841 \begin_layout Standard
5847 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5850 \begin_layout Standard
5856 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5859 \begin_layout Standard
5865 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5868 \begin_layout Standard
5874 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5877 \begin_layout Standard
5884 <row topline="true" bottomline="true">
5885 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5888 \begin_layout Standard
5894 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5897 \begin_layout Standard
5903 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5906 \begin_layout Standard
5912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5915 \begin_layout Standard
5921 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5924 \begin_layout Standard
5938 \begin_layout Standard
5942 \begin_layout Standard
5954 \begin_inset Tabular
5955 <lyxtabular version="3" rows="6" columns="5">
5956 <features islongtable="true">
5957 <column alignment="center" valignment="top" leftline="true" width="0">
5958 <column alignment="center" valignment="top" leftline="true" width="0">
5959 <column alignment="center" valignment="top" leftline="true" width="0">
5960 <column alignment="center" valignment="top" leftline="true" width="0">
5961 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5963 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5966 \begin_layout Standard
5967 \begin_inset Caption
5969 \begin_layout Standard
5970 long full title with width set to 5\InsetSpace \thinspace{}
5971 cm long full title with width set to
5972 5\InsetSpace \thinspace{}
5973 cm long full title with width set to 5\InsetSpace \thinspace{}
5978 \begin_layout Standard
5979 caption with width\InsetSpace \thinspace{}
5980 =\InsetSpace \thinspace{}
5981 5\InsetSpace \thinspace{}
5996 \begin_layout Standard
6012 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6015 \begin_layout Standard
6021 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6024 \begin_layout Standard
6030 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6033 \begin_layout Standard
6039 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6042 \begin_layout Standard
6049 <row topline="true">
6050 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6053 \begin_layout Standard
6059 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6062 \begin_layout Standard
6068 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6071 \begin_layout Standard
6077 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6080 \begin_layout Standard
6086 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6089 \begin_layout Standard
6096 <row topline="true">
6097 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6100 \begin_layout Standard
6106 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6109 \begin_layout Standard
6115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6118 \begin_layout Standard
6124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6127 \begin_layout Standard
6133 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6136 \begin_layout Standard
6143 <row topline="true">
6144 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6147 \begin_layout Standard
6153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6156 \begin_layout Standard
6162 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6165 \begin_layout Standard
6171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6174 \begin_layout Standard
6180 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6183 \begin_layout Standard
6190 <row topline="true">
6191 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6194 \begin_layout Standard
6200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6203 \begin_layout Standard
6209 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6212 \begin_layout Standard
6218 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6221 \begin_layout Standard
6227 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6230 \begin_layout Standard
6237 <row topline="true" bottomline="true">
6238 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6241 \begin_layout Standard
6247 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6250 \begin_layout Standard
6256 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6259 \begin_layout Standard
6265 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6268 \begin_layout Standard
6274 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6277 \begin_layout Standard
6291 \begin_layout Standard
6295 \begin_layout Standard
6309 \begin_layout Standard
6310 \begin_inset Note Greyedout
6313 \begin_layout Standard
6318 When the LaTeX-package
6323 \begin_inset LatexCommand index
6324 name "LaTeX-packages ! caption"
6328 is used, as in this document, the full page width is used for the caption
6329 when you use the default value of 4\InsetSpace \thinspace{}
6337 To get in this case exactly a 4\InsetSpace \thinspace{}
6338 in wide caption, you can either use a value
6339 slightly different from 4.0\InsetSpace \thinspace{}
6341 3.99\InsetSpace \thinspace{}
6342 in, or the LaTeX-command
6346 captionsetup{width=value}
6348 that is provided by the
6360 \begin_layout Subsubsection
6361 Different Captions for Table Pages
6362 \begin_inset LatexCommand index
6363 name "Longtables ! Different Captions for Pages"
6370 \begin_layout Standard
6371 When the other captions should differ from the one of the first table page,
6372 insert a caption with a non-empty short title in a dummy caption row marked
6374 The caption used for the other table pages is inserted as caption without
6375 a short title in a dummy caption row that is marked as main header.
6376 When this caption shouldn't include the table number, use the command
6379 \begin_layout Standard
6384 caption*{caption text}
6387 \begin_layout Standard
6388 instead of LyX's caption box.
6389 The label to reference the table is inserted into the caption of the first
6393 \begin_inset LatexCommand ref
6394 reference "tab:DiffCaptions"
6398 is an example for a longtable with different heading where the second caption
6399 doesn't include the table number.
6402 \begin_layout Standard
6404 \begin_inset Tabular
6405 <lyxtabular version="3" rows="60" columns="3">
6406 <features islongtable="true">
6407 <column alignment="left" valignment="top" leftline="true" width="0cm">
6408 <column alignment="left" valignment="top" rightline="true" width="0pt">
6409 <column alignment="right" valignment="top" rightline="true" width="0pt">
6410 <row endfirsthead="true">
6411 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6414 \begin_layout Standard
6415 \begin_inset Caption
6417 \begin_layout Standard
6419 \begin_inset LatexCommand label
6420 name "tab:DiffCaptions"
6428 \begin_layout Standard
6443 \begin_layout Standard
6459 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6462 \begin_layout Standard
6468 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6471 \begin_layout Standard
6478 <row topline="true" bottomline="true" endfirsthead="true">
6479 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6482 \begin_layout Standard
6485 Example Phone List (ignore the names)
6490 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6493 \begin_layout Standard
6499 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6502 \begin_layout Standard
6509 <row topline="true" bottomline="true" endfirsthead="true">
6510 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6513 \begin_layout Standard
6521 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6524 \begin_layout Standard
6530 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6533 \begin_layout Standard
6542 <row bottomline="true" endhead="true">
6543 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6546 \begin_layout Standard
6550 \begin_layout Standard
6554 caption*{Continued Example Phone List}
6568 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6571 \begin_layout Standard
6577 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6580 \begin_layout Standard
6587 <row topline="true" bottomline="true" endhead="true">
6588 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6591 \begin_layout Standard
6599 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6602 \begin_layout Standard
6608 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6611 \begin_layout Standard
6618 <row topline="true" bottomline="true" endhead="true">
6619 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6622 \begin_layout Standard
6630 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6633 \begin_layout Standard
6639 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6642 \begin_layout Standard
6651 <row topline="true" bottomline="true" endfoot="true">
6652 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
6655 \begin_layout Standard
6656 continued on next page
6661 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6664 \begin_layout Standard
6670 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6673 \begin_layout Standard
6681 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6684 \begin_layout Standard
6692 <cell alignment="center" valignment="top" topline="true" usebox="none">
6695 \begin_layout Standard
6701 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6704 \begin_layout Standard
6712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6715 \begin_layout Standard
6723 <cell alignment="center" valignment="top" topline="true" usebox="none">
6726 \begin_layout Standard
6732 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6735 \begin_layout Standard
6743 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6746 \begin_layout Standard
6754 <cell alignment="center" valignment="top" topline="true" usebox="none">
6757 \begin_layout Standard
6763 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6766 \begin_layout Standard
6774 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6777 \begin_layout Standard
6785 <cell alignment="center" valignment="top" topline="true" usebox="none">
6788 \begin_layout Standard
6794 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6797 \begin_layout Standard
6805 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6808 \begin_layout Standard
6816 <cell alignment="center" valignment="top" topline="true" usebox="none">
6819 \begin_layout Standard
6825 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6828 \begin_layout Standard
6836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6839 \begin_layout Standard
6847 <cell alignment="center" valignment="top" topline="true" usebox="none">
6850 \begin_layout Standard
6856 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6859 \begin_layout Standard
6867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6870 \begin_layout Standard
6878 <cell alignment="center" valignment="top" topline="true" usebox="none">
6881 \begin_layout Standard
6887 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6890 \begin_layout Standard
6898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6901 \begin_layout Standard
6909 <cell alignment="center" valignment="top" topline="true" usebox="none">
6912 \begin_layout Standard
6918 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6921 \begin_layout Standard
6929 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6932 \begin_layout Standard
6940 <cell alignment="center" valignment="top" topline="true" usebox="none">
6943 \begin_layout Standard
6949 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6952 \begin_layout Standard
6960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6963 \begin_layout Standard
6971 <cell alignment="center" valignment="top" topline="true" usebox="none">
6974 \begin_layout Standard
6980 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6983 \begin_layout Standard
6991 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6994 \begin_layout Standard
7002 <cell alignment="center" valignment="top" topline="true" usebox="none">
7005 \begin_layout Standard
7011 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7014 \begin_layout Standard
7022 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7025 \begin_layout Standard
7033 <cell alignment="center" valignment="top" topline="true" usebox="none">
7036 \begin_layout Standard
7042 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7045 \begin_layout Standard
7053 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7056 \begin_layout Standard
7064 <cell alignment="center" valignment="top" topline="true" usebox="none">
7067 \begin_layout Standard
7073 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7076 \begin_layout Standard
7084 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7087 \begin_layout Standard
7095 <cell alignment="center" valignment="top" topline="true" usebox="none">
7098 \begin_layout Standard
7104 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7107 \begin_layout Standard
7115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7118 \begin_layout Standard
7127 \begin_layout Standard
7138 <cell alignment="center" valignment="top" topline="true" usebox="none">
7141 \begin_layout Standard
7147 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7150 \begin_layout Standard
7158 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7161 \begin_layout Standard
7169 <cell alignment="center" valignment="top" topline="true" usebox="none">
7172 \begin_layout Standard
7178 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7181 \begin_layout Standard
7189 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7192 \begin_layout Standard
7200 <cell alignment="center" valignment="top" topline="true" usebox="none">
7203 \begin_layout Standard
7209 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7212 \begin_layout Standard
7220 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7223 \begin_layout Standard
7231 <cell alignment="center" valignment="top" topline="true" usebox="none">
7234 \begin_layout Standard
7240 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7243 \begin_layout Standard
7251 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7254 \begin_layout Standard
7262 <cell alignment="center" valignment="top" topline="true" usebox="none">
7265 \begin_layout Standard
7271 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7274 \begin_layout Standard
7282 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7285 \begin_layout Standard
7293 <cell alignment="center" valignment="top" topline="true" usebox="none">
7296 \begin_layout Standard
7302 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7305 \begin_layout Standard
7313 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7316 \begin_layout Standard
7324 <cell alignment="center" valignment="top" topline="true" usebox="none">
7327 \begin_layout Standard
7333 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7336 \begin_layout Standard
7344 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7347 \begin_layout Standard
7355 <cell alignment="center" valignment="top" topline="true" usebox="none">
7358 \begin_layout Standard
7364 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7367 \begin_layout Standard
7375 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7378 \begin_layout Standard
7386 <cell alignment="center" valignment="top" topline="true" usebox="none">
7389 \begin_layout Standard
7395 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7398 \begin_layout Standard
7406 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7409 \begin_layout Standard
7417 <cell alignment="center" valignment="top" topline="true" usebox="none">
7420 \begin_layout Standard
7426 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7429 \begin_layout Standard
7437 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7440 \begin_layout Standard
7448 <cell alignment="center" valignment="top" topline="true" usebox="none">
7451 \begin_layout Standard
7457 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7460 \begin_layout Standard
7468 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7471 \begin_layout Standard
7479 <cell alignment="center" valignment="top" topline="true" usebox="none">
7482 \begin_layout Standard
7488 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7491 \begin_layout Standard
7499 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7502 \begin_layout Standard
7510 <cell alignment="center" valignment="top" topline="true" usebox="none">
7513 \begin_layout Standard
7519 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7522 \begin_layout Standard
7530 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7533 \begin_layout Standard
7541 <cell alignment="center" valignment="top" topline="true" usebox="none">
7544 \begin_layout Standard
7550 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7553 \begin_layout Standard
7561 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7564 \begin_layout Standard
7572 <cell alignment="center" valignment="top" topline="true" usebox="none">
7575 \begin_layout Standard
7581 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7584 \begin_layout Standard
7592 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7595 \begin_layout Standard
7603 <cell alignment="center" valignment="top" topline="true" usebox="none">
7606 \begin_layout Standard
7612 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7615 \begin_layout Standard
7622 <row bottomline="true">
7623 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7626 \begin_layout Standard
7634 <cell alignment="center" valignment="top" topline="true" usebox="none">
7637 \begin_layout Standard
7643 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7646 \begin_layout Standard
7653 <row bottomline="true">
7654 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7657 \begin_layout Standard
7663 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
7666 \begin_layout Standard
7672 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7675 \begin_layout Standard
7683 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7686 \begin_layout Standard
7694 <cell alignment="center" valignment="top" topline="true" usebox="none">
7697 \begin_layout Standard
7703 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7706 \begin_layout Standard
7714 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7717 \begin_layout Standard
7725 <cell alignment="center" valignment="top" topline="true" usebox="none">
7728 \begin_layout Standard
7734 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7737 \begin_layout Standard
7745 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7748 \begin_layout Standard
7756 <cell alignment="center" valignment="top" topline="true" usebox="none">
7759 \begin_layout Standard
7765 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7768 \begin_layout Standard
7776 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7779 \begin_layout Standard
7787 <cell alignment="center" valignment="top" topline="true" usebox="none">
7790 \begin_layout Standard
7796 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7799 \begin_layout Standard
7807 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7810 \begin_layout Standard
7818 <cell alignment="center" valignment="top" topline="true" usebox="none">
7821 \begin_layout Standard
7827 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7830 \begin_layout Standard
7838 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7841 \begin_layout Standard
7849 <cell alignment="center" valignment="top" topline="true" usebox="none">
7852 \begin_layout Standard
7858 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7861 \begin_layout Standard
7869 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7872 \begin_layout Standard
7880 <cell alignment="center" valignment="top" topline="true" usebox="none">
7883 \begin_layout Standard
7889 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7892 \begin_layout Standard
7900 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7903 \begin_layout Standard
7911 <cell alignment="center" valignment="top" topline="true" usebox="none">
7914 \begin_layout Standard
7920 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7923 \begin_layout Standard
7931 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7934 \begin_layout Standard
7942 <cell alignment="center" valignment="top" topline="true" usebox="none">
7945 \begin_layout Standard
7951 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7954 \begin_layout Standard
7962 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7965 \begin_layout Standard
7973 <cell alignment="center" valignment="top" topline="true" usebox="none">
7976 \begin_layout Standard
7982 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7985 \begin_layout Standard
7993 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7996 \begin_layout Standard
8004 <cell alignment="center" valignment="top" topline="true" usebox="none">
8007 \begin_layout Standard
8013 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8016 \begin_layout Standard
8024 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8027 \begin_layout Standard
8035 <cell alignment="center" valignment="top" topline="true" usebox="none">
8038 \begin_layout Standard
8044 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8047 \begin_layout Standard
8055 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8058 \begin_layout Standard
8066 <cell alignment="center" valignment="top" topline="true" usebox="none">
8069 \begin_layout Standard
8075 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8078 \begin_layout Standard
8086 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8089 \begin_layout Standard
8097 <cell alignment="center" valignment="top" topline="true" usebox="none">
8100 \begin_layout Standard
8106 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8109 \begin_layout Standard
8117 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8120 \begin_layout Standard
8128 <cell alignment="center" valignment="top" topline="true" usebox="none">
8131 \begin_layout Standard
8137 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8140 \begin_layout Standard
8148 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8151 \begin_layout Standard
8159 <cell alignment="center" valignment="top" topline="true" usebox="none">
8162 \begin_layout Standard
8168 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8171 \begin_layout Standard
8179 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8182 \begin_layout Standard
8190 <cell alignment="center" valignment="top" topline="true" usebox="none">
8193 \begin_layout Standard
8199 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8202 \begin_layout Standard
8210 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8213 \begin_layout Standard
8221 <cell alignment="center" valignment="top" topline="true" usebox="none">
8224 \begin_layout Standard
8230 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8233 \begin_layout Standard
8241 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8244 \begin_layout Standard
8252 <cell alignment="center" valignment="top" topline="true" usebox="none">
8255 \begin_layout Standard
8261 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8264 \begin_layout Standard
8271 <row bottomline="true">
8272 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8275 \begin_layout Standard
8283 <cell alignment="center" valignment="top" topline="true" usebox="none">
8286 \begin_layout Standard
8292 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8295 \begin_layout Standard
8302 <row bottomline="true" endlastfoot="true">
8303 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
8306 \begin_layout Standard
8312 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8315 \begin_layout Standard
8321 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8324 \begin_layout Standard
8338 \begin_layout Section
8339 Special Longtable Issues
8340 \begin_inset LatexCommand label
8341 name "sec:Special-Longtable-Issues"
8348 \begin_layout Subsection
8349 Longtable Calculation
8350 \begin_inset LatexCommand index
8351 name "Longtables ! Calculation"
8358 \begin_layout Standard
8359 LaTeX calculates the height of table pages and their page breaks using so
8361 Chunks are pieces of the tables that are at once in LaTeX's memory.
8362 The default value is historically set to only 20 table rows.
8363 If you are using longtables with many pages this may slow down the creation
8365 You can safely increase the chunk size to values of 100-1000 by adding
8366 this command line to your document preamble:
8369 \begin_layout Standard
8374 setcounter{LTchunksize}{100}
8377 \begin_layout Subsection
8378 Floats and Longtables
8379 \begin_inset LatexCommand index
8380 name "Longtables ! Floats"
8387 \begin_layout Standard
8388 There might be problems when a float appears on the same page where a longtable
8390 To avoid such situation, add the command
8396 as ERT before your longtable.
8399 \begin_layout Subsection
8401 \begin_inset LatexCommand index
8402 name "Longtables ! Forced Page Breaks"
8409 \begin_layout Standard
8410 By default tables are only broken between rows.
8411 If you have a cell with multiples lines and want to have a page break within
8412 the cell, insert the new line command
8413 \begin_inset Quotes eld
8425 \begin_inset Quotes erd
8428 as ERT at this point of the cell where it should be broken.
8437 command you have to insert in ERT so many
8438 \begin_inset Quotes eld
8446 \begin_inset Quotes erd
8449 characters like the number of the following table columns.
8454 is the character to separate table cells.
8455 Write in ERT after each
8459 the content of the corresponding following cell and delete the content
8470 command, insert so many
8474 characters like the number of table columns before the current column.
8475 In Table\InsetSpace ~
8477 \begin_inset LatexCommand ref
8478 reference "tab:ForcedPagebreak"
8482 the cell that should be broken is in the second column followed by another
8484 Therefore the following command was inserted in the cell as ERT behind
8486 \begin_inset Quotes eld
8494 \begin_inset Quotes erd
8500 \begin_layout Standard
8512 \begin_layout Standard
8514 \begin_inset Quotes eld
8518 \begin_inset Quotes erd
8521 in the third columns of the row was deleted.
8522 If your footer row of the longtable has for a certain reason no upper line
8523 but you would have a horizontal line where the cell is broken, use this
8527 \begin_layout Standard
8541 \begin_layout Standard
8542 When the cell to be broken is in the last column, the command
8545 \begin_layout Standard
8552 parf\SpecialChar \textcompwordmark{}
8556 \begin_layout Standard
8557 must be inserted as ERT at the beginning of the cell.
8558 This assures that the part of the cell that will be displayed on the new
8559 page appears with the full width.
8562 \begin_layout Standard
8564 \begin_inset Tabular
8565 <lyxtabular version="3" rows="39" columns="3">
8566 <features islongtable="true">
8567 <column alignment="left" valignment="top" leftline="true" width="0cm">
8568 <column alignment="left" valignment="top" rightline="true" width="3cm">
8569 <column alignment="right" valignment="top" rightline="true" width="0pt">
8570 <row endfirsthead="true">
8571 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8574 \begin_layout Standard
8575 \begin_inset Caption
8577 \begin_layout Standard
8578 Table with forced page break in table cell
8579 \begin_inset LatexCommand label
8580 name "tab:ForcedPagebreak"
8588 \begin_layout Standard
8589 Table with forced page break in table cell
8603 \begin_layout Standard
8619 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8622 \begin_layout Standard
8628 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8631 \begin_layout Standard
8638 <row topline="true" bottomline="true" endfirsthead="true">
8639 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8642 \begin_layout Standard
8645 Example Phone List (ignore the names)
8650 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8653 \begin_layout Standard
8659 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8662 \begin_layout Standard
8669 <row topline="true" bottomline="true" endfirsthead="true">
8670 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8673 \begin_layout Standard
8681 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8684 \begin_layout Standard
8690 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8693 \begin_layout Standard
8702 <row bottomline="true" endhead="true">
8703 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8706 \begin_layout Standard
8710 \begin_layout Standard
8714 caption*{Continued table with forced page break in table cell}
8728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8731 \begin_layout Standard
8737 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8740 \begin_layout Standard
8747 <row topline="true" bottomline="true" endhead="true">
8748 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8751 \begin_layout Standard
8759 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8762 \begin_layout Standard
8768 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8771 \begin_layout Standard
8778 <row topline="true" bottomline="true" endhead="true">
8779 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8782 \begin_layout Standard
8790 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8793 \begin_layout Standard
8799 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8802 \begin_layout Standard
8811 <row topline="true" bottomline="true" endfoot="true">
8812 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
8815 \begin_layout Standard
8816 continued on next page
8821 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8824 \begin_layout Standard
8830 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8833 \begin_layout Standard
8841 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8844 \begin_layout Standard
8852 <cell alignment="center" valignment="top" topline="true" usebox="none">
8855 \begin_layout Standard
8861 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8864 \begin_layout Standard
8872 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8875 \begin_layout Standard
8883 <cell alignment="center" valignment="top" topline="true" usebox="none">
8886 \begin_layout Standard
8892 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8895 \begin_layout Standard
8903 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8906 \begin_layout Standard
8914 <cell alignment="center" valignment="top" topline="true" usebox="none">
8917 \begin_layout Standard
8923 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8926 \begin_layout Standard
8934 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8937 \begin_layout Standard
8945 <cell alignment="center" valignment="top" topline="true" usebox="none">
8948 \begin_layout Standard
8954 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8957 \begin_layout Standard
8965 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8968 \begin_layout Standard
8976 <cell alignment="center" valignment="top" topline="true" usebox="none">
8979 \begin_layout Standard
8985 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8988 \begin_layout Standard
8996 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8999 \begin_layout Standard
9007 <cell alignment="center" valignment="top" topline="true" usebox="none">
9010 \begin_layout Standard
9016 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9019 \begin_layout Standard
9027 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9030 \begin_layout Standard
9038 <cell alignment="center" valignment="top" topline="true" usebox="none">
9041 \begin_layout Standard
9047 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9050 \begin_layout Standard
9058 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9061 \begin_layout Standard
9069 <cell alignment="center" valignment="top" topline="true" usebox="none">
9072 \begin_layout Standard
9078 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9081 \begin_layout Standard
9089 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9092 \begin_layout Standard
9100 <cell alignment="center" valignment="top" topline="true" usebox="none">
9103 \begin_layout Standard
9109 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9112 \begin_layout Standard
9120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9123 \begin_layout Standard
9131 <cell alignment="center" valignment="top" topline="true" usebox="none">
9134 \begin_layout Standard
9140 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9143 \begin_layout Standard
9151 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9154 \begin_layout Standard
9162 <cell alignment="center" valignment="top" topline="true" usebox="none">
9165 \begin_layout Standard
9171 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9174 \begin_layout Standard
9182 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9185 \begin_layout Standard
9193 <cell alignment="center" valignment="top" topline="true" usebox="none">
9196 \begin_layout Standard
9202 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9205 \begin_layout Standard
9213 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9216 \begin_layout Standard
9224 <cell alignment="center" valignment="top" topline="true" usebox="none">
9227 \begin_layout Standard
9233 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9236 \begin_layout Standard
9244 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9247 \begin_layout Standard
9255 <cell alignment="center" valignment="top" topline="true" usebox="none">
9258 \begin_layout Standard
9264 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9267 \begin_layout Standard
9275 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9278 \begin_layout Standard
9286 <cell alignment="center" valignment="top" topline="true" usebox="none">
9289 \begin_layout Standard
9295 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9298 \begin_layout Standard
9306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9309 \begin_layout Standard
9317 <cell alignment="center" valignment="top" topline="true" usebox="none">
9320 \begin_layout Standard
9326 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9329 \begin_layout Standard
9337 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9340 \begin_layout Standard
9348 <cell alignment="center" valignment="top" topline="true" usebox="none">
9351 \begin_layout Standard
9357 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9360 \begin_layout Standard
9368 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9371 \begin_layout Standard
9379 <cell alignment="center" valignment="top" topline="true" usebox="none">
9382 \begin_layout Standard
9388 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9391 \begin_layout Standard
9399 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9402 \begin_layout Standard
9410 <cell alignment="center" valignment="top" topline="true" usebox="none">
9413 \begin_layout Standard
9419 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9422 \begin_layout Standard
9430 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9433 \begin_layout Standard
9441 <cell alignment="center" valignment="top" topline="true" usebox="none">
9444 \begin_layout Standard
9450 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9453 \begin_layout Standard
9461 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9464 \begin_layout Standard
9472 <cell alignment="center" valignment="top" topline="true" usebox="none">
9475 \begin_layout Standard
9481 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9484 \begin_layout Standard
9492 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9495 \begin_layout Standard
9503 <cell alignment="center" valignment="top" topline="true" usebox="none">
9506 \begin_layout Standard
9512 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9515 \begin_layout Standard
9523 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9526 \begin_layout Standard
9534 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9537 \begin_layout Standard
9539 Fürst von Montecompatri, 11.
9540 Fürst von Sulmona und Vivaro, 10.
9541 Fürst von Rossano, 5.
9542 Herzog von Canemorte, 11.
9543 Herzog von Palombara, 5.
9544 Herzog von Castelchiodato,
9548 \begin_layout Standard
9557 \begin_layout Standard
9565 Herzog von Poggionativo, 11.
9566 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
9567 Graf von Valinfreda, 11.
9568 Baron von Cropalati, 11.
9569 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
9574 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9577 \begin_layout Standard
9585 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9588 \begin_layout Standard
9596 <cell alignment="center" valignment="top" topline="true" usebox="none">
9599 \begin_layout Standard
9605 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9608 \begin_layout Standard
9616 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9619 \begin_layout Standard
9627 <cell alignment="center" valignment="top" topline="true" usebox="none">
9630 \begin_layout Standard
9636 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9639 \begin_layout Standard
9647 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9650 \begin_layout Standard
9658 <cell alignment="center" valignment="top" topline="true" usebox="none">
9661 \begin_layout Standard
9667 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9670 \begin_layout Standard
9678 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9681 \begin_layout Standard
9689 <cell alignment="center" valignment="top" topline="true" usebox="none">
9692 \begin_layout Standard
9698 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9701 \begin_layout Standard
9709 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9712 \begin_layout Standard
9720 <cell alignment="center" valignment="top" topline="true" usebox="none">
9723 \begin_layout Standard
9729 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9732 \begin_layout Standard
9740 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9743 \begin_layout Standard
9751 <cell alignment="center" valignment="top" topline="true" usebox="none">
9754 \begin_layout Standard
9760 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9763 \begin_layout Standard
9771 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9774 \begin_layout Standard
9782 <cell alignment="center" valignment="top" topline="true" usebox="none">
9785 \begin_layout Standard
9791 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9794 \begin_layout Standard
9801 <row bottomline="true">
9802 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9805 \begin_layout Standard
9813 <cell alignment="center" valignment="top" topline="true" usebox="none">
9816 \begin_layout Standard
9822 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9825 \begin_layout Standard
9832 <row endlastfoot="true">
9833 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9836 \begin_layout Standard
9842 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9845 \begin_layout Standard
9851 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9854 \begin_layout Standard
9868 \begin_layout Section
9869 Multiple Lines Columns and Rows
9872 \begin_layout Subsection
9873 Multiple Lines in Table Cells
9874 \begin_inset LatexCommand label
9875 name "sub:Multiple-Lines-in"
9880 \begin_inset LatexCommand index
9881 name "Multiple Lines in Table Cells"
9886 \begin_inset LatexCommand index
9887 name "Table ! Linebreaks"
9894 \begin_layout Standard
9896 \begin_inset Float table
9902 \begin_layout Standard
9903 \begin_inset Caption
9905 \begin_layout Standard
9906 \begin_inset LatexCommand label
9907 name "tab:Table-with-multiple"
9911 Table with multiple lines in cells
9919 \begin_layout Standard
9921 \begin_inset Tabular
9922 <lyxtabular version="3" rows="3" columns="3">
9924 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
9925 <column alignment="center" valignment="middle" leftline="true" width="0">
9926 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
9927 <row topline="true">
9928 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9931 \begin_layout Standard
9936 \begin_layout Standard
9950 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9953 \begin_layout Standard
9959 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9962 \begin_layout Standard
9969 <row topline="true">
9970 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9973 \begin_layout Standard
9979 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9982 \begin_layout Standard
9988 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9991 \begin_layout Standard
9998 <row topline="true" bottomline="true">
9999 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10002 \begin_layout Standard
10008 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10011 \begin_layout Standard
10017 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10020 \begin_layout Standard
10039 \begin_layout Standard
10040 Adjusting a fixed width for a column, enables to enter text as a paragraph
10041 with multiple lines and hyphenations.
10044 \begin_layout Standard
10045 To produce Table\InsetSpace ~
10047 \begin_inset LatexCommand ref
10048 reference "tab:Table-with-multiple"
10052 , create a 3×3 table, mark the first cell and right-click on it.
10053 In the appearing table dialog we set a cell width of 2.5\InsetSpace \thinspace{}
10054 cm and choose centered
10055 for the vertical and horizontal alignment.
10056 The vertical alignment is used for all cells of the row.
10057 As our text is smaller than than 2.5\InsetSpace \thinspace{}
10058 cm, only one line will appear.
10059 To get two lines, we add a line break with the command
10062 \begin_layout Standard
10070 \begin_layout Standard
10072 If the text is wider than the set cell width it will automatically be broken
10076 \begin_layout Standard
10077 If you have a long word in a cell with a fixed width, it cannot be hyphenated
10078 by LaTeX if it is the first entry.
10079 Therefore you need to insert something, to make the word not being the
10080 first entry: Add the command
10083 \begin_layout Standard
10091 \begin_layout Standard
10092 in ERT before the word.
10093 As the space is zero, it doesn't change the output.
10096 \begin_inset LatexCommand ref
10097 reference "tab:Table-with-and"
10104 \begin_layout Standard
10105 \begin_inset Float table
10111 \begin_layout Standard
10112 \begin_inset Caption
10114 \begin_layout Standard
10115 \begin_inset LatexCommand label
10116 name "tab:Table-with-and"
10120 Table with and without hyphenation
10128 \begin_layout Standard
10132 \begin_inset Tabular
10133 <lyxtabular version="3" rows="3" columns="3">
10135 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10136 <column alignment="center" valignment="middle" leftline="true" width="0">
10137 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
10138 <row topline="true">
10139 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10142 \begin_layout Standard
10143 verylongtablecellword
10148 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10151 \begin_layout Standard
10157 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10160 \begin_layout Standard
10167 <row topline="true">
10168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10171 \begin_layout Standard
10177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10180 \begin_layout Standard
10186 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10189 \begin_layout Standard
10196 <row topline="true" bottomline="true">
10197 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10200 \begin_layout Standard
10206 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10209 \begin_layout Standard
10215 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10218 \begin_layout Standard
10232 \begin_inset Tabular
10233 <lyxtabular version="3" rows="3" columns="3">
10235 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10236 <column alignment="center" valignment="middle" leftline="true" width="0">
10237 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
10238 <row topline="true">
10239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10242 \begin_layout Standard
10246 \begin_layout Standard
10255 verylongtablecellword
10260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10263 \begin_layout Standard
10269 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10272 \begin_layout Standard
10279 <row topline="true">
10280 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10283 \begin_layout Standard
10289 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10292 \begin_layout Standard
10298 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10301 \begin_layout Standard
10308 <row topline="true" bottomline="true">
10309 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10312 \begin_layout Standard
10318 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10321 \begin_layout Standard
10327 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10330 \begin_layout Standard
10351 \begin_layout Standard
10357 \begin_layout Subsection
10359 \begin_inset LatexCommand label
10360 name "sub:Multicolumns"
10365 \begin_inset LatexCommand index
10366 name "Multicolumns"
10371 \begin_inset LatexCommand index
10372 name "Table ! Multicolumns"
10379 \begin_layout Subsubsection
10383 \begin_layout Standard
10384 To span a cell over multiple columns, mark as much cells within a line that
10385 should be one spanned cell and use either the table-toolbar button
10386 \begin_inset Graphics
10387 filename ../images/tabular-feature_multicolumn.xpm
10389 scaleBeforeRotation
10395 Edit\SpecialChar \menuseparator
10396 Table\SpecialChar \menuseparator
10399 , or right click on the marked cells and choose multicolumn in the appearing
10400 table dialog under the tab
10407 \begin_layout Standard
10408 Multicolumns have there own cell settings.
10409 That means changing cell borders, cell alignment, and the width only affects
10411 Here is an example table with a multicolumn cell in the first row and one
10412 in the last row without the upper border:
10415 \begin_layout Standard
10417 \begin_inset Tabular
10418 <lyxtabular version="3" rows="3" columns="4">
10419 <features firstHeadTopDL="true" firstHeadBottomDL="true">
10420 <column alignment="center" valignment="top" leftline="true" width="0pt">
10421 <column alignment="center" valignment="middle" leftline="true" width="0">
10422 <column alignment="center" valignment="top" leftline="true" width="0in">
10423 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
10424 <row topline="true" bottomline="true">
10425 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10428 \begin_layout Standard
10434 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
10437 \begin_layout Standard
10443 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10446 \begin_layout Standard
10452 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10455 \begin_layout Standard
10462 <row topline="true">
10463 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10466 \begin_layout Standard
10481 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10484 \begin_layout Standard
10490 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10493 \begin_layout Standard
10499 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10502 \begin_layout Standard
10509 <row topline="true" bottomline="true">
10510 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10513 \begin_layout Standard
10519 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10522 \begin_layout Standard
10528 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10531 \begin_layout Standard
10537 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10540 \begin_layout Standard
10554 \begin_layout Subsubsection
10555 Multicolumn Calculations
10556 \begin_inset LatexCommand label
10557 name "sub:Multicolumn-Calculations"
10562 \begin_inset LatexCommand index
10563 name "Multicolumns ! Calculations"
10570 \begin_layout Standard
10571 LyX supports multicolumns directly, but we have to take notice of the cell
10572 width of the columns spanned by the multicolumn cell.
10575 \begin_layout Standard
10576 \begin_inset Float table
10581 \begin_layout Standard
10582 \begin_inset Caption
10584 \begin_layout Standard
10585 \begin_inset LatexCommand label
10586 name "tab:Table-with-centered"
10590 Table with centered multicolumn text above two columns that have exactly
10591 half the width of the multicolumn cell
10592 \begin_inset OptArg
10595 \begin_layout Standard
10596 Perfect multicolumn table
10609 \begin_layout Standard
10611 \begin_inset Tabular
10612 <lyxtabular version="3" rows="3" columns="3">
10614 <column alignment="center" valignment="middle" leftline="true" width="0" special=">{\centering}m{1.25cm-6.2pt}">
10615 <column alignment="center" valignment="middle" leftline="true" width="0">
10616 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10617 <row topline="true">
10618 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
10621 \begin_layout Standard
10622 multiple lines multicolumn
10627 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10630 \begin_layout Standard
10636 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10639 \begin_layout Standard
10646 <row topline="true">
10647 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10650 \begin_layout Standard
10656 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10659 \begin_layout Standard
10665 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10668 \begin_layout Standard
10675 <row topline="true" bottomline="true">
10676 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10679 \begin_layout Standard
10685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10688 \begin_layout Standard
10694 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10697 \begin_layout Standard
10716 \begin_layout Standard
10717 To create for example Table\InsetSpace ~
10719 \begin_inset LatexCommand ref
10720 reference "tab:Table-with-centered"
10724 , mark the first two cells in the first row of a 3×3 table and right-click
10726 Now choose for this cell
10734 and a width of 2.5\InsetSpace \thinspace{}
10735 cm in the table dialog.
10736 The spanned columns should have exactly half the width of the multicolumn
10737 cell, so that you would adjust a width of 1.25\InsetSpace \thinspace{}
10738 cm for the first column.
10739 The second column has then automatically a width of 1.25\InsetSpace \thinspace{}
10741 width - width of first column).
10742 This was done for Table\InsetSpace ~
10744 \begin_inset LatexCommand ref
10745 reference "tab:Table-without-half"
10752 \begin_layout Standard
10753 \begin_inset Float table
10758 \begin_layout Standard
10759 \begin_inset Caption
10761 \begin_layout Standard
10762 \begin_inset LatexCommand label
10763 name "tab:Table-without-half"
10767 Table where the spanned table columns have not exactly half the width of
10768 the multicolumn cell
10769 \begin_inset OptArg
10772 \begin_layout Standard
10773 Imperfect multicolumn table
10786 \begin_layout Standard
10788 \begin_inset Tabular
10789 <lyxtabular version="3" rows="3" columns="3">
10791 <column alignment="center" valignment="top" leftline="true" width="1.25cm">
10792 <column alignment="center" valignment="top" leftline="true" width="0">
10793 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10794 <row topline="true" bottomline="true">
10795 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
10798 \begin_layout Standard
10799 multiple lines multicolumn
10804 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10807 \begin_layout Standard
10813 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10816 \begin_layout Standard
10823 <row topline="true">
10824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10827 \begin_layout Standard
10833 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10836 \begin_layout Standard
10842 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10845 \begin_layout Standard
10852 <row topline="true" bottomline="true">
10853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10856 \begin_layout Standard
10862 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10865 \begin_layout Standard
10871 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10874 \begin_layout Standard
10893 \begin_layout Standard
10894 You can see that the first column has not the half width of the multicolumn
10895 cell, it is a bit bigger.
10896 The reason is that the given width of a cell
10897 \begin_inset Formula $W_{g}$
10900 is not its total width
10901 \begin_inset Formula $W_{\mathrm{tot}}$
10904 because a cell is always a bit larger than its given width.
10905 Appendix\InsetSpace ~
10907 \begin_inset LatexCommand eqref
10908 reference "cha:Explanation-of-Equation"
10912 explains it in detail.
10915 \begin_layout Standard
10916 The needed given width
10917 \begin_inset Formula $W_{g\, n}$
10924 columns are spanned can be calculated, so that each column has a total
10926 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
10930 \begin_inset Formula \begin{equation}
10931 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
10938 \begin_layout Standard
10939 In our case we have
10940 \begin_inset Formula $n=2$
10944 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
10947 cm and the default values for the lengths, so that equation
10948 \begin_inset LatexCommand ref
10954 \begin_inset Formula \begin{equation}
10955 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
10962 \begin_layout Standard
10963 To enable calculations in LaTeX, the LaTeX-package
10967 must be loaded with the document preamble line
10968 \begin_inset LatexCommand index
10969 name "LaTeX-packages ! calc"
10976 \begin_layout Standard
10984 \begin_layout Standard
10985 LyX does not allow to calculate lengths in the width-field of the table
10987 Therefore you have to format the column by inserting a LaTeX-argument in
10989 Here is an overview about the arguments:
10992 \begin_layout Itemize
10997 creates cell with a fixed width, its text is vertically top-aligned
11000 \begin_layout Itemize
11005 creates cell with a fixed width, its text is vertically centered
11008 \begin_layout Itemize
11013 creates cell with a fixed width, its text is vertically bottom-aligned
11016 \begin_layout Standard
11017 By entering a LaTeX-argument, all cell settings set in the table dialog
11021 \begin_layout Standard
11022 \begin_inset Note Greyedout
11025 \begin_layout Standard
11030 Due to a bug, LyX shows the overwritten settings anyway.
11038 \begin_layout Standard
11039 As the text should be horizontally centered, the command
11046 You can now enter the following LaTeX-argument for the first spanned column:
11049 \begin_layout Standard
11054 centering}m{1.25cm-6.2pt}
11057 \begin_layout Standard
11062 means, that the commands inside the braces are applied before the cell
11066 \begin_layout Standard
11067 Although we have chosen centered alignment for the text of the multicolumn
11068 cell, it is still left aligned.
11069 This is because LyX only applies the alignment to single columns.
11070 So we have to use for the multicolumn the LaTeX-argument
11073 \begin_layout Standard
11081 \begin_layout Subsection
11083 \begin_inset LatexCommand index
11089 \begin_inset LatexCommand index
11090 name "Table ! Multirows"
11095 \begin_inset LatexCommand index
11096 name "LaTeX-packages ! multirow"
11103 \begin_layout Standard
11104 In contrary to multicolumns multirows are not yet supported by LyX so a
11105 bit of ERT needs to be used.
11106 To use multirows load the LaTeX-package
11110 in your document preamble with the command
11113 \begin_layout Standard
11118 usepackage{multirow}
11121 \begin_layout Standard
11122 Multirows are created with the command
11125 \begin_layout Standard
11130 multirow{number of rows}{cell width}{cell entry}
11133 \begin_layout Standard
11134 To create the following table:
11137 \begin_layout Standard
11142 \begin_layout Standard
11156 \begin_inset Tabular
11157 <lyxtabular version="3" rows="3" columns="3">
11159 <column alignment="center" valignment="top" leftline="true" width="0">
11160 <column alignment="center" valignment="top" leftline="true" width="0">
11161 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
11162 <row topline="true">
11163 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11166 \begin_layout Standard
11172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11175 \begin_layout Standard
11181 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11184 \begin_layout Standard
11191 <row topline="true">
11192 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11195 \begin_layout Standard
11199 \begin_layout Standard
11203 multirow{2}{2.5cm}{
11212 \begin_layout Standard
11224 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11227 \begin_layout Standard
11233 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11236 \begin_layout Standard
11243 <row topline="true" bottomline="true">
11244 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11247 \begin_layout Standard
11253 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11256 \begin_layout Standard
11262 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11265 \begin_layout Standard
11280 \begin_layout Standard
11296 \begin_layout Standard
11297 create a 3×3 table.
11298 To get rid of the line above the last cell in the first column, the cell
11299 is marked as multicolumn and the upper border is unset.
11300 The multirow is now created in the second row of the first column by inserting
11304 \begin_layout Standard
11309 multirow{2}{2.5cm}{
11312 \begin_layout Standard
11314 According to the command parameters the multirow spans now two rows and
11315 has a width of 2.5\InsetSpace \thinspace{}
11317 The content of the multirow cell follows outside the ERT box and the command
11318 is finished with a right brace
11322 in another ERT-box behind the text.
11325 \begin_layout Standard
11332 left-aligns its content by default.
11333 To override the default, renew the command
11342 \begin_layout Standard
11354 \begin_layout Standard
11355 in ERT in the document preamble.
11356 Then all entries of multirow cells in the document are centered.
11357 If centering is only needed for several tables, you can renew the command
11358 in an ERT box just before the table instead of the preamble.
11359 If the text should be right-aligned, replace
11372 To return to left-alignment
11381 \begin_layout Section
11383 \begin_inset LatexCommand label
11384 name "sec:Formal-Tables"
11389 \begin_inset LatexCommand index
11390 name "Table ! Formal"
11397 \begin_layout Standard
11398 Tables are often typeset in books similar to Table\InsetSpace ~
11400 \begin_inset LatexCommand ref
11401 reference "tab:Example-booktabs-table"
11406 This kind of tables is called
11407 \begin_inset Quotes eld
11415 \begin_inset Quotes erd
11419 To make a table a formal table use the option
11427 tab of the table dialog.
11430 \begin_layout Standard
11431 \begin_inset Float table
11437 \begin_layout Standard
11438 \begin_inset Caption
11440 \begin_layout Standard
11441 \begin_inset LatexCommand label
11442 name "tab:Example-booktabs-table"
11446 Example booktabs-table
11454 \begin_layout Standard
11456 \begin_inset Tabular
11457 <lyxtabular version="3" rows="8" columns="4">
11458 <features booktabs="true">
11459 <column alignment="center" valignment="top" rightline="true" width="0">
11460 <column alignment="center" valignment="top" width="0">
11461 <column alignment="center" valignment="top" width="0">
11462 <column alignment="center" valignment="top" width="0">
11463 <row topline="true">
11464 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11467 \begin_layout Standard
11473 <cell alignment="center" valignment="top" topline="true" usebox="none">
11476 \begin_layout Standard
11478 \begin_inset Formula $\,$
11486 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
11489 \begin_layout Standard
11491 \begin_inset Formula $\,$
11499 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11502 \begin_layout Standard
11510 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11513 \begin_layout Standard
11517 \begin_layout Standard
11530 \begin_layout Standard
11539 Detector thickness [µm]
11544 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11547 \begin_layout Standard
11553 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11556 \begin_layout Standard
11562 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11565 \begin_layout Standard
11572 <row topline="true">
11573 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11576 \begin_layout Standard
11582 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11585 \begin_layout Standard
11591 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11594 \begin_layout Standard
11600 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11603 \begin_layout Standard
11610 <row topspace="default">
11611 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11614 \begin_layout Standard
11615 Spatial resolution [µm]
11620 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11623 \begin_layout Standard
11629 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11632 \begin_layout Standard
11638 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11641 \begin_layout Standard
11648 <row topspace="default">
11649 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11652 \begin_layout Standard
11654 \begin_inset Formula $f_{\mathrm{max}}$
11662 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11665 \begin_layout Standard
11671 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11674 \begin_layout Standard
11680 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11683 \begin_layout Standard
11690 <row topspace="default">
11691 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11694 \begin_layout Standard
11698 \begin_layout Standard
11702 cmidrule(l{10pt}){1-1}
11707 LSF-spatial resolution
11712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11715 \begin_layout Standard
11721 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11724 \begin_layout Standard
11730 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11733 \begin_layout Standard
11741 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11744 \begin_layout Standard
11750 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11753 \begin_layout Standard
11759 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11762 \begin_layout Standard
11768 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11771 \begin_layout Standard
11778 <row bottomline="true">
11779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11782 \begin_layout Standard
11788 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11791 \begin_layout Standard
11797 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11800 \begin_layout Standard
11806 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11809 \begin_layout Standard
11828 \begin_layout Standard
11829 Spaces to table rows can be added using the
11833 tab of the table dialog as described in section\InsetSpace ~
11835 \begin_inset LatexCommand ref
11836 reference "sub:Row-Spacing"
11843 \begin_layout Standard
11844 In contrary to normal tables, formal tables have no vertical table lines.
11845 The horizontal table lines can be set like for normal tables but they appear
11846 with different width in the output:
11848 The first and the last table line have
11849 a default width of 0.08\InsetSpace \thinspace{}
11850 em while the other lines have a default width of
11851 0.05\InsetSpace \thinspace{}
11855 \begin_layout Standard
11856 The default widths can be changed with the following preamble lines
11859 \begin_layout Standard
11879 \begin_layout Standard
11880 This example is for the first line, the so called
11885 If you want to change the width for the last line, replace
11894 To change the width for the other lines replace
11903 You can use all units listed in appendix\InsetSpace ~
11905 \begin_inset LatexCommand ref
11906 reference "cha:Units-available-in"
11913 \begin_layout Standard
11914 Lines that don't span over all table columns can be created by setting a
11915 table line for multicolumn cells.
11916 LyX will then internally use the command
11922 to create this line.
11926 \begin_layout Standard
11931 cmidrule[width](trim){startcol-endcol}
11934 \begin_layout Standard
11941 are are currently not supported by LyX so you have to use ERT to be able
11949 s can manually be created by inserting the command as ERT as first cell
11950 entry of the first cell of a row.
11951 The line is then drawn in the output above the current row.
11954 \begin_layout Standard
11955 The default for the width is 0.03\InsetSpace \thinspace{}
11957 Startcol is the number of the column where the line starts and endcol the
11958 column number where the line ends.
11959 The endcol always needs to be specified, also when the line should span
11961 The optional parameter trim could be either
11969 where the trimwidth is also optional.
11970 Using for example the parameter
11974 means that the line is trimmed from its left end by 2\InsetSpace \thinspace{}
11976 If you don't specify the trimwidth the lines are trimmed by the default
11977 of 0.5\InsetSpace \thinspace{}
11981 \begin_layout Standard
11982 \begin_inset VSpace bigskip
11987 \begin_inset LatexCommand ref
11988 reference "tab:Example-booktabs-table"
11992 was created using the commands
11995 \begin_layout Standard
12005 \begin_layout Standard
12006 at the beginning of the in the second row and
12009 \begin_layout Standard
12014 cmidrule(l{10pt}){1-1}
12017 \begin_layout Standard
12021 \begin_layout Standard
12022 \begin_inset VSpace bigskip
12028 \begin_layout Standard
12029 You might want to have overlapping
12035 s like in Table\InsetSpace ~
12037 \begin_inset LatexCommand ref
12038 reference "tab:Special-booktabs-table"
12043 This can be achieved with the ERT command
12046 \begin_layout Standard
12054 \begin_layout Standard
12055 The command that was used for the second row of Table\InsetSpace ~
12057 \begin_inset LatexCommand ref
12058 reference "tab:Special-booktabs-table"
12065 \begin_layout Standard
12079 \begin_layout Standard
12080 The command for the sixth row is
12083 \begin_layout Standard
12095 \begin_layout Standard
12096 \begin_inset VSpace bigskip
12102 \begin_layout Standard
12103 If you are anyway not satisfied with the border line spacing, you can use
12104 the following command to produce lines that span over all table columns
12109 \begin_layout Standard
12114 specialrule{width}{space above}{space below}
12117 \begin_layout Standard
12118 For more informations about these specialties, we refer to the manual of
12124 \begin_inset LatexCommand cite
12130 \begin_inset LatexCommand index
12131 name "LaTeX-packages ! booktabs"
12138 \begin_layout Standard
12139 \begin_inset Float table
12145 \begin_layout Standard
12146 \begin_inset Caption
12148 \begin_layout Standard
12149 \begin_inset LatexCommand label
12150 name "tab:Special-booktabs-table"
12154 Special booktabs-table
12162 \begin_layout Standard
12164 \begin_inset Tabular
12165 <lyxtabular version="3" rows="8" columns="4">
12166 <features booktabs="true">
12167 <column alignment="center" valignment="top" width="0">
12168 <column alignment="center" valignment="top" width="0">
12169 <column alignment="center" valignment="top" width="0">
12170 <column alignment="center" valignment="top" width="0">
12171 <row topline="true">
12172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12175 \begin_layout Standard
12181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12184 \begin_layout Standard
12185 Medipix\InsetSpace \thinspace{}
12191 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
12194 \begin_layout Standard
12195 Medipix\InsetSpace \thinspace{}
12201 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12204 \begin_layout Standard
12212 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12215 \begin_layout Standard
12219 \begin_layout Standard
12232 \begin_layout Standard
12245 \begin_layout Standard
12258 \begin_layout Standard
12267 Detector thickness [µm]
12272 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12275 \begin_layout Standard
12281 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12284 \begin_layout Standard
12290 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12293 \begin_layout Standard
12300 <row topline="true">
12301 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12304 \begin_layout Standard
12310 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12313 \begin_layout Standard
12319 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12322 \begin_layout Standard
12328 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12331 \begin_layout Standard
12338 <row topspace="default">
12339 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12342 \begin_layout Standard
12343 Spatial resolution [µm]
12348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12351 \begin_layout Standard
12357 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12360 \begin_layout Standard
12366 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12369 \begin_layout Standard
12376 <row topspace="default">
12377 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12380 \begin_layout Standard
12382 \begin_inset Formula $f_{\mathrm{max}}$
12390 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12393 \begin_layout Standard
12399 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12402 \begin_layout Standard
12408 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12411 \begin_layout Standard
12418 <row topline="true">
12419 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12422 \begin_layout Standard
12426 \begin_layout Standard
12439 \begin_layout Standard
12448 LSF-spatial resolution
12453 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12456 \begin_layout Standard
12462 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12465 \begin_layout Standard
12471 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12474 \begin_layout Standard
12482 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12485 \begin_layout Standard
12491 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12494 \begin_layout Standard
12500 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12503 \begin_layout Standard
12509 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12512 \begin_layout Standard
12519 <row bottomline="true">
12520 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12523 \begin_layout Standard
12529 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12532 \begin_layout Standard
12538 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12541 \begin_layout Standard
12547 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12550 \begin_layout Standard
12569 \begin_layout Section
12570 Vertical Table Alignment
12571 \begin_inset LatexCommand index
12572 name "Table ! Alignment"
12579 \begin_layout Standard
12580 To align tables vertically in a text line the table must be inside a box.
12581 The box can then be vertically aligned as described in section\InsetSpace ~
12583 \begin_inset LatexCommand ref
12584 reference "sec:Box-Dialog"
12591 \begin_layout Standard
12592 In the following example the tables are inside a minipage
12596 \begin_layout Standard
12597 Minipages are described in section\InsetSpace ~
12599 \begin_inset LatexCommand ref
12600 reference "sec:Minipages"
12609 box that has a width of 15\InsetSpace \thinspace{}
12613 \begin_layout Itemize
12615 \begin_inset Box Frameless
12624 height_special "totalheight"
12627 \begin_layout Standard
12628 \begin_inset Tabular
12629 <lyxtabular version="3" rows="3" columns="3">
12631 <column alignment="center" valignment="top" leftline="true" width="0">
12632 <column alignment="center" valignment="top" leftline="true" width="0">
12633 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12634 <row topline="true">
12635 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12638 \begin_layout Standard
12644 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12647 \begin_layout Standard
12653 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12656 \begin_layout Standard
12663 <row topline="true">
12664 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12667 \begin_layout Standard
12673 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12676 \begin_layout Standard
12682 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12685 \begin_layout Standard
12692 <row topline="true" bottomline="true">
12693 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12696 \begin_layout Standard
12702 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12705 \begin_layout Standard
12711 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12714 \begin_layout Standard
12734 \begin_layout Standard
12746 \begin_inset Box Frameless
12755 height_special "totalheight"
12758 \begin_layout Standard
12759 \begin_inset Tabular
12760 <lyxtabular version="3" rows="3" columns="3">
12762 <column alignment="center" valignment="top" leftline="true" width="0">
12763 <column alignment="center" valignment="top" leftline="true" width="0">
12764 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12765 <row topline="true">
12766 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12769 \begin_layout Standard
12775 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12778 \begin_layout Standard
12784 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12787 \begin_layout Standard
12794 <row topline="true">
12795 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12798 \begin_layout Standard
12804 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12807 \begin_layout Standard
12813 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12816 \begin_layout Standard
12823 <row topline="true" bottomline="true">
12824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12827 \begin_layout Standard
12833 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12836 \begin_layout Standard
12842 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12845 \begin_layout Standard
12865 \begin_layout Standard
12875 \begin_layout Itemize
12877 \begin_inset Box Frameless
12886 height_special "totalheight"
12889 \begin_layout Standard
12890 \begin_inset Tabular
12891 <lyxtabular version="3" rows="3" columns="3">
12893 <column alignment="center" valignment="top" leftline="true" width="0">
12894 <column alignment="center" valignment="top" leftline="true" width="0">
12895 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12896 <row topline="true">
12897 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12900 \begin_layout Standard
12906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12909 \begin_layout Standard
12915 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12918 \begin_layout Standard
12925 <row topline="true">
12926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12929 \begin_layout Standard
12935 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12938 \begin_layout Standard
12944 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12947 \begin_layout Standard
12954 <row topline="true" bottomline="true">
12955 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12958 \begin_layout Standard
12964 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12967 \begin_layout Standard
12973 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12976 \begin_layout Standard
12995 \begin_layout Itemize
12997 \begin_inset Box Frameless
13006 height_special "totalheight"
13009 \begin_layout Standard
13010 \begin_inset Tabular
13011 <lyxtabular version="3" rows="3" columns="3">
13013 <column alignment="center" valignment="top" leftline="true" width="0">
13014 <column alignment="center" valignment="top" leftline="true" width="0">
13015 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13016 <row topline="true">
13017 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13020 \begin_layout Standard
13026 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13029 \begin_layout Standard
13035 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13038 \begin_layout Standard
13045 <row topline="true">
13046 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13049 \begin_layout Standard
13055 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13058 \begin_layout Standard
13064 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13067 \begin_layout Standard
13074 <row topline="true" bottomline="true">
13075 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13078 \begin_layout Standard
13084 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13087 \begin_layout Standard
13093 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13096 \begin_layout Standard
13116 \begin_layout Standard
13128 \begin_inset Box Frameless
13137 height_special "totalheight"
13140 \begin_layout Standard
13141 \begin_inset Tabular
13142 <lyxtabular version="3" rows="3" columns="3">
13144 <column alignment="center" valignment="top" leftline="true" width="0">
13145 <column alignment="center" valignment="top" leftline="true" width="0">
13146 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13147 <row topline="true">
13148 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13151 \begin_layout Standard
13157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13160 \begin_layout Standard
13166 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13169 \begin_layout Standard
13176 <row topline="true">
13177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13180 \begin_layout Standard
13186 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13189 \begin_layout Standard
13195 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13198 \begin_layout Standard
13205 <row topline="true" bottomline="true">
13206 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13209 \begin_layout Standard
13215 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13218 \begin_layout Standard
13224 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13227 \begin_layout Standard
13247 \begin_layout Standard
13257 \begin_layout Standard
13258 As you can see, the content of the first and last table row is not correctly
13259 aligned with the text line where the table is in.
13260 To get this alignment, the minipage box must be set into a raisebox
13264 \begin_layout Standard
13265 Raiseboxes are described in section\InsetSpace ~
13267 \begin_inset LatexCommand ref
13268 reference "sub:Vertical-Alignment"
13278 In the example above the second table in the first item is aligned using
13282 \begin_layout Standard
13292 \begin_layout Standard
13294 Behind the box the closing brace
13298 is inserted as ERT.
13299 For the second table in the last item the command
13302 \begin_layout Standard
13312 \begin_layout Standard
13316 \begin_layout Standard
13317 \begin_inset Note Greyedout
13320 \begin_layout Standard
13325 The alignment of the table row content to the surrounding text line is
13327 The needed factor of the
13333 command for this alignment depends on the document font, the font size,
13334 and the table line thickness.
13342 \begin_layout Section
13344 \begin_inset LatexCommand label
13345 name "sec:Colored-Tables"
13350 \begin_inset LatexCommand index
13351 name "Table ! Color"
13358 \begin_layout Subsection
13360 \begin_inset LatexCommand index
13361 name "Table Color ! for Cells"
13366 \begin_inset LatexCommand index
13367 name "Color ! for Table Cells"
13374 \begin_layout Standard
13375 \begin_inset Float table
13381 \begin_layout Standard
13382 \begin_inset Caption
13384 \begin_layout Standard
13385 \begin_inset LatexCommand label
13386 name "tab:Table-colored-without"
13390 Table colored without using the package
13395 \begin_inset OptArg
13398 \begin_layout Standard
13399 Table without colortbl
13412 \begin_layout Standard
13414 \begin_inset Tabular
13415 <lyxtabular version="3" rows="3" columns="3">
13417 <column alignment="center" valignment="top" leftline="true" width="0">
13418 <column alignment="center" valignment="top" leftline="true" width="0">
13419 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13420 <row topline="true">
13421 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13424 \begin_layout Standard
13432 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13435 \begin_layout Standard
13443 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13446 \begin_layout Standard
13455 <row topline="true">
13456 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13459 \begin_layout Standard
13467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13470 \begin_layout Standard
13478 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13481 \begin_layout Standard
13490 <row topline="true" bottomline="true">
13491 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13494 \begin_layout Standard
13502 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13505 \begin_layout Standard
13513 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13516 \begin_layout Standard
13537 \begin_layout Standard
13538 If you only need colored text, mark the cells and choose a color in the
13541 Edit\SpecialChar \menuseparator
13546 This was used to create Table\InsetSpace ~
13548 \begin_inset LatexCommand ref
13549 reference "tab:Table-colored-without"
13554 In any other case you have to use the LaTeX-package
13559 \begin_inset LatexCommand index
13560 name "LaTeX-packages ! colortbl"
13567 \begin_layout Standard
13568 To create colored tables,
13572 must be loaded in the preamble with the line
13575 \begin_layout Standard
13580 usepackage{colortbl}
13583 \begin_layout Standard
13584 The color of a column is adjusted with the command
13587 \begin_layout Standard
13592 columncolor{name of color}
13595 \begin_layout Standard
13601 More about the command
13605 is described in section\InsetSpace ~
13607 \begin_inset LatexCommand ref
13608 reference "sub:Multicolumn-Calculations"
13615 \begin_layout Standard
13616 The following color names are predefined:
13619 \begin_layout Standard
13653 \begin_layout Standard
13654 \begin_inset VSpace medskip
13660 \begin_layout Standard
13661 You can also define your own color with the command
13664 \begin_layout Standard
13669 def\SpecialChar \textcompwordmark{}
13670 inecolor{color name}{color model}{color values}
13673 \begin_layout Standard
13674 The color model can be
13677 \begin_layout Labeling
13678 \labelwidthstring 00.00.0000
13679 cmyk: cyan, magenta, yellow, black
13682 \begin_layout Labeling
13683 \labelwidthstring 00.00.0000
13684 rgb: red, green blue
13687 \begin_layout Labeling
13688 \labelwidthstring 00.00.0000
13692 \begin_layout Standard
13693 and the color values are comma separated numbers between 0 and 1 describing
13694 the factor for the corresponding color of the color model.
13697 \begin_layout Standard
13698 You can e.\InsetSpace \thinspace{}
13704 " in the preamble with
13707 \begin_layout Standard
13712 def\SpecialChar \textcompwordmark{}
13713 inecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
13716 \begin_layout Standard
13724 \begin_layout Standard
13729 def\SpecialChar \textcompwordmark{}
13730 inecolor{lightgray}{gray}{0.8}
13733 \begin_layout Standard
13734 \begin_inset VSpace medskip
13740 \begin_layout Standard
13741 Lines are colored with the command
13744 \begin_layout Standard
13749 rowcolor{name of color}
13752 \begin_layout Standard
13753 and cells are colored with the command
13756 \begin_layout Standard
13761 cellcolor{name of color}
13764 \begin_layout Standard
13765 Both commands are inserted at the beginning of a cell as ERT.
13768 \begin_layout Standard
13769 To color characters in the table, mark the cells and use the LyX menu
13771 Edit\SpecialChar \menuseparator
13776 If a cell contains ERT mark only the characters, otherwise the colored
13777 ERT will cause LaTeX-errors.
13780 \begin_layout Standard
13781 \begin_inset Note Greyedout
13784 \begin_layout Standard
13789 Not all DVI-viewers are able to display self-defined colors.
13797 \begin_layout Standard
13798 \begin_inset VSpace bigskip
13804 \begin_layout Standard
13805 To create Table\InsetSpace ~
13807 \begin_inset LatexCommand ref
13808 reference "tab:Table-colored-using"
13812 do the following: The color of the first column should be
13820 \begin_layout Standard
13825 columncolor{darkgreen}
13830 \begin_layout Standard
13831 as LaTeX-argument for this column.
13832 The first row should be blue, therefore the ERT command
13835 \begin_layout Standard
13843 \begin_layout Standard
13844 is inserted to the first cell of this row.
13845 Note that this overwrites the column color for the first cell.
13846 The last cell of the last row is colored magenta by inserting the ERT command
13849 \begin_layout Standard
13857 \begin_layout Standard
13858 The characters could now be colored using the menu
13860 Edit\SpecialChar \menuseparator
13867 \begin_layout Standard
13868 \begin_inset Float table
13874 \begin_layout Standard
13875 \begin_inset Caption
13877 \begin_layout Standard
13878 \begin_inset LatexCommand label
13879 name "tab:Table-colored-using"
13883 Table colored using the package
13888 \begin_inset OptArg
13891 \begin_layout Standard
13892 Table with colortbl
13905 \begin_layout Standard
13907 \begin_inset Tabular
13908 <lyxtabular version="3" rows="3" columns="3">
13910 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
13911 <column alignment="center" valignment="top" width="0">
13912 <column alignment="center" valignment="top" width="0">
13914 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13917 \begin_layout Standard
13921 \begin_layout Standard
13937 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13940 \begin_layout Standard
13948 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13951 \begin_layout Standard
13961 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13964 \begin_layout Standard
13972 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13975 \begin_layout Standard
13983 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13986 \begin_layout Standard
13996 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13999 \begin_layout Standard
14007 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14010 \begin_layout Standard
14018 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14021 \begin_layout Standard
14025 \begin_layout Standard
14054 \begin_layout Subsection
14056 \begin_inset LatexCommand index
14057 name "Table Color ! for Lines"
14062 \begin_inset LatexCommand index
14063 name "Color ! for Table Lines"
14070 \begin_layout Standard
14071 As described in section\InsetSpace ~
14073 \begin_inset LatexCommand ref
14074 reference "sub:Line-Thickness"
14078 , the line thickness for all lines in a table can be adjusted with the length
14086 It is set to 1.5\InsetSpace \thinspace{}
14087 pt for all tables of this section.
14091 \begin_layout Standard
14097 arrayrulewidth}{1.5pt}
14105 \begin_layout Standard
14106 To color vertical lines for example with green, create the following column
14107 format in the document preamble, according to the description in section\InsetSpace ~
14109 \begin_inset LatexCommand ref
14110 reference "sub:Customized-Format"
14117 \begin_layout Standard
14122 newcolumntype{W}{!{
14129 \begin_layout Standard
14130 For Table\InsetSpace ~
14132 \begin_inset LatexCommand ref
14133 reference "tab:Table-with-vertical-colored"
14141 was used for the last column and
14145 for the other columns.
14148 \begin_layout Standard
14149 If you want to have several colors, define more column formats.
14152 \begin_layout Standard
14153 \begin_inset Float table
14158 \begin_layout Standard
14159 \begin_inset Caption
14161 \begin_layout Standard
14162 \begin_inset LatexCommand label
14163 name "tab:Table-with-vertical-colored"
14167 Table with colored vertical lines
14175 \begin_layout Standard
14177 \begin_inset Tabular
14178 <lyxtabular version="3" rows="3" columns="3">
14180 <column alignment="center" valignment="top" width="0" special="Wc">
14181 <column alignment="center" valignment="top" width="0" special="Wc">
14182 <column alignment="center" valignment="top" width="0" special="WcW">
14183 <row topline="true">
14184 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14187 \begin_layout Standard
14193 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14196 \begin_layout Standard
14202 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14205 \begin_layout Standard
14212 <row topline="true">
14213 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14216 \begin_layout Standard
14222 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14225 \begin_layout Standard
14231 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14234 \begin_layout Standard
14241 <row topline="true" bottomline="true">
14242 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14245 \begin_layout Standard
14251 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14254 \begin_layout Standard
14260 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14263 \begin_layout Standard
14282 \begin_layout Standard
14283 \begin_inset VSpace bigskip
14286 To color horizontal lines for example with red, like in Table\InsetSpace ~
14288 \begin_inset LatexCommand ref
14289 reference "tab:Table-with-horizontal-colored"
14293 , insert these commands in ERT before the table or table float:
14296 \begin_layout Standard
14317 \begin_layout Standard
14328 arrayrulecolor{red}
14332 arrayrulecolor{black}}
14335 \begin_layout Standard
14339 \begin_layout Standard
14350 \begin_layout Standard
14359 \begin_layout Standard
14363 arrayrulecolor{red}
14367 arrayrulecolor{black}}
14373 \begin_inset Float table
14378 \begin_layout Standard
14379 \begin_inset Caption
14381 \begin_layout Standard
14382 \begin_inset LatexCommand label
14383 name "tab:Table-with-horizontal-colored"
14387 Table with colored horizontal lines
14395 \begin_layout Standard
14397 \begin_inset Tabular
14398 <lyxtabular version="3" rows="3" columns="3">
14400 <column alignment="center" valignment="top" leftline="true" width="0">
14401 <column alignment="center" valignment="top" leftline="true" width="0">
14402 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14403 <row topline="true">
14404 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14407 \begin_layout Standard
14413 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14416 \begin_layout Standard
14422 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14425 \begin_layout Standard
14432 <row topline="true">
14433 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14436 \begin_layout Standard
14442 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14445 \begin_layout Standard
14451 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14454 \begin_layout Standard
14461 <row topline="true" bottomline="true">
14462 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14465 \begin_layout Standard
14471 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14474 \begin_layout Standard
14480 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14483 \begin_layout Standard
14502 \begin_layout Standard
14506 \begin_layout Standard
14518 \begin_layout Standard
14519 To return to the default line color black, insert this command in ERT behind
14520 the table or table float:
14523 \begin_layout Standard
14535 \begin_layout Standard
14538 \begin_inset LatexCommand ref
14539 reference "tab:Table-with-colored"
14543 is an example with colored vertical and horizontal lines.
14546 \begin_layout Standard
14547 \begin_inset Float table
14553 \begin_layout Standard
14554 \begin_inset Caption
14556 \begin_layout Standard
14557 \begin_inset LatexCommand label
14558 name "tab:Table-with-colored"
14562 Table with colored lines
14570 \begin_layout Standard
14572 \begin_inset Tabular
14573 <lyxtabular version="3" rows="3" columns="3">
14575 <column alignment="center" valignment="top" width="0" special="Wc">
14576 <column alignment="center" valignment="top" width="0" special="Wc">
14577 <column alignment="center" valignment="top" width="0" special="WcW">
14578 <row topline="true">
14579 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14582 \begin_layout Standard
14588 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14591 \begin_layout Standard
14597 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14600 \begin_layout Standard
14607 <row topline="true">
14608 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14611 \begin_layout Standard
14617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14620 \begin_layout Standard
14626 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14629 \begin_layout Standard
14636 <row topline="true" bottomline="true" topspace="default">
14637 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14640 \begin_layout Standard
14646 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14649 \begin_layout Standard
14655 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14658 \begin_layout Standard
14677 \begin_layout Standard
14681 \begin_layout Standard
14697 \begin_layout Standard
14701 \begin_layout Standard
14707 arrayrulewidth}{0.4pt}
14715 \begin_layout Section
14716 Table Customization
14717 \begin_inset LatexCommand index
14718 name "Table Customization"
14723 \begin_inset LatexCommand index
14724 name "Table ! Customization"
14731 \begin_layout Subsection
14733 \begin_inset LatexCommand label
14734 name "sub:Row-Spacing"
14739 \begin_inset LatexCommand index
14740 name "Table Customization ! Row Spacing"
14747 \begin_layout Standard
14748 You can add vertical space to table rows in the
14752 tab of the table dialog.
14753 You find there three possibilities:
14756 \begin_layout Description
14759 row will add space above the characters of the table row.
14760 If the table is a formal table
14764 \begin_layout Standard
14765 Formal tables are explained in section\InsetSpace ~
14767 \begin_inset LatexCommand ref
14768 reference "sec:Formal-Tables"
14777 LyX will insert as default 0.5\InsetSpace \thinspace{}
14779 For normal tables the inserted space will unfortunately destroy the vertical
14780 table lines as in the following table:
14781 \begin_inset VSpace medskip
14790 \begin_layout Standard
14802 \begin_inset Tabular
14803 <lyxtabular version="3" rows="3" columns="1">
14805 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14806 <row topline="true">
14807 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14810 \begin_layout Standard
14817 <row topline="true" topspace="3mm">
14818 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14821 \begin_layout Standard
14822 3\InsetSpace \thinspace{}
14823 mm space top of row
14829 <row topline="true" bottomline="true">
14830 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14833 \begin_layout Standard
14850 \begin_layout Standard
14860 \begin_inset VSpace medskip
14865 So inserting space to the top of row for normal tables is only useful when
14866 you don't have vertical lines.
14869 \begin_layout Description
14870 Bottom\InsetSpace ~
14872 row will add space below the characters of the table row.
14873 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
14875 normal tables the default size is 2\InsetSpace \thinspace{}
14879 \begin_layout Description
14880 Between\InsetSpace ~
14881 rows adds space between the current and the following row.
14882 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
14884 For normal tables the inserted space will unfortunately destroy the vertical
14885 table lines as in the following table:
14886 \begin_inset VSpace medskip
14895 \begin_layout Standard
14907 \begin_inset Tabular
14908 <lyxtabular version="3" rows="3" columns="1">
14910 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14911 <row topline="true">
14912 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14915 \begin_layout Standard
14922 <row topline="true" interlinespace="3mm">
14923 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14926 \begin_layout Standard
14927 \begin_inset Formula $\downarrow$
14930 3\InsetSpace \thinspace{}
14931 mm space between row
14932 \begin_inset Formula $\downarrow$
14941 <row topline="true" bottomline="true">
14942 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14945 \begin_layout Standard
14946 \begin_inset Formula $\uparrow$
14949 3\InsetSpace \thinspace{}
14950 mm space between row
14951 \begin_inset Formula $\uparrow$
14970 \begin_layout Standard
14980 \begin_inset VSpace medskip
14985 So inserting space between rows for normal tables is only useful when you
14986 don't have vertical lines.
14989 \begin_layout Standard
14990 \begin_inset VSpace bigskip
14993 When you want to add extra height to all cells of all tables, you can do
14994 this with the following preamble lines:
14997 \begin_layout Standard
15002 @ifundef\SpecialChar \textcompwordmark{}
15003 ined{extrarowheight}
15009 \begin_layout Standard
15020 usepackage{array}}{}
15026 extrarowheight}{height}
15029 \begin_layout Standard
15030 But this has the disadvantage that the cell texts are no longer exactly
15031 vertically centered.
15036 will be loaded automatically by LyX when you use self defined table formats.
15037 To avoid that it is loaded twice the command
15041 @ifundef\SpecialChar \textcompwordmark{}
15044 is used in the above command.)
15047 \begin_layout Subsection
15048 Special Cell Alignment
15049 \begin_inset LatexCommand index
15050 name "Table Customization ! Special Cell Alignment"
15057 \begin_layout Standard
15058 Sometimes it looks better when the cell entries of a column are aligned
15059 with a special character, e.\InsetSpace \thinspace{}
15061 with the decimal separator as in Table\InsetSpace ~
15063 \begin_inset LatexCommand ref
15064 reference "tab:Table-cells-of"
15071 \begin_layout Standard
15072 \begin_inset Float table
15078 \begin_layout Standard
15079 \begin_inset Caption
15081 \begin_layout Standard
15082 \begin_inset LatexCommand label
15083 name "tab:Table-cells-of"
15087 Table cells of a column aligned with the decimal separator.
15095 \begin_layout Standard
15097 \begin_inset Tabular
15098 <lyxtabular version="3" rows="4" columns="2">
15100 <column alignment="right" valignment="top" width="0">
15101 <column alignment="left" valignment="top" width="0" special="@{}l">
15102 <row bottomline="true">
15103 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15106 \begin_layout Standard
15112 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15115 \begin_layout Standard
15123 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15126 \begin_layout Standard
15132 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15135 \begin_layout Standard
15143 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15146 \begin_layout Standard
15152 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15155 \begin_layout Standard
15163 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15166 \begin_layout Standard
15172 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15175 \begin_layout Standard
15194 \begin_layout Standard
15195 This table was created with a 4×2 table.
15196 The heading is a centered multicolumn.
15197 The first column is right-aligned and contains the digits before the decimal
15198 point and the decimal point.
15199 The second column is left aligned and contains the digits after the decimal
15201 To omit the space that is normally between two table columns, use the following
15202 LaTeX-argument for the second column:
15205 \begin_layout Standard
15211 \begin_layout Standard
15214 \begin_inset LatexCommand ref
15215 reference "tab:Several-table-cell"
15219 shows some example alignments.
15220 For the alignment with the relation sign, you must add the second smallest
15221 math-space at the beginning of the last column to get the correct space
15222 surrounding the relation sign.
15225 \begin_layout Standard
15226 \begin_inset Float table
15231 \begin_layout Standard
15232 \begin_inset Caption
15234 \begin_layout Standard
15235 \begin_inset LatexCommand label
15236 name "tab:Several-table-cell"
15240 Several table cell alignments.
15248 \begin_layout Standard
15250 \begin_inset Tabular
15251 <lyxtabular version="3" rows="4" columns="6">
15253 <column alignment="right" valignment="top" width="0">
15254 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15255 <column alignment="right" valignment="top" width="0">
15256 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15257 <column alignment="right" valignment="top" width="0">
15258 <column alignment="left" valignment="top" width="0" special="@{}l">
15259 <row bottomline="true">
15260 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15263 \begin_layout Standard
15269 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15272 \begin_layout Standard
15278 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15281 \begin_layout Standard
15287 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15290 \begin_layout Standard
15296 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15299 \begin_layout Standard
15305 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15308 \begin_layout Standard
15316 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15319 \begin_layout Standard
15325 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15328 \begin_layout Standard
15329 24\InsetSpace \thinspace{}
15335 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15338 \begin_layout Standard
15339 \begin_inset Formula $10\cdot$
15347 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15350 \begin_layout Standard
15351 \begin_inset Formula $10^{\mbox{-}17}$
15359 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15362 \begin_layout Standard
15363 \begin_inset Formula $\Gamma(t)\propto$
15371 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15374 \begin_layout Standard
15375 \begin_inset Formula $\:\Upsilon(t)$
15385 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15388 \begin_layout Standard
15394 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15397 \begin_layout Standard
15398 768\InsetSpace \thinspace{}
15404 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15407 \begin_layout Standard
15408 \begin_inset Formula $5.78\cdot$
15416 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15419 \begin_layout Standard
15420 \begin_inset Formula $10^{7}$
15428 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15431 \begin_layout Standard
15432 \begin_inset Formula $A\ne$
15440 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15443 \begin_layout Standard
15444 \begin_inset Formula $\: B_{\mathrm{red}}$
15454 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15457 \begin_layout Standard
15463 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15466 \begin_layout Standard
15467 6\InsetSpace \thinspace{}
15473 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15476 \begin_layout Standard
15478 \begin_inset Formula $33.5\cdot$
15486 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15489 \begin_layout Standard
15490 \begin_inset Formula $10^{4}$
15498 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15501 \begin_layout Standard
15502 \begin_inset Formula $\sin(\alpha)\ge$
15510 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15513 \begin_layout Standard
15514 \begin_inset Formula $\:\sin(\beta)$
15535 \begin_layout Standard
15536 \begin_inset VSpace bigskip
15539 There is also the LaTeX-package
15544 \begin_inset LatexCommand index
15545 name "LaTeX-packages ! dcolumn"
15549 that provides table cell alignments.
15550 But this unfortunately treats the cell entries as math and doesn't allow
15551 formulas in table cells: The first column of Table\InsetSpace ~
15553 \begin_inset LatexCommand ref
15554 reference "tab:Several-table-cell"
15562 like the first column in Table\InsetSpace ~
15564 \begin_inset LatexCommand ref
15565 reference "tab:Alignments-when"
15569 and only with some tricks like the expected.
15570 The alignment of the second and third column of Table\InsetSpace ~
15572 \begin_inset LatexCommand ref
15573 reference "tab:Several-table-cell"
15577 is not possible with
15584 \begin_layout Standard
15585 \begin_inset Float table
15591 \begin_layout Standard
15592 \begin_inset Caption
15594 \begin_layout Standard
15595 \begin_inset LatexCommand label
15596 name "tab:Alignments-when"
15600 Alignments when LaTeX-package dcolumn is used.
15601 For all column alignments tricks have to be used to get the output.
15609 \begin_layout Standard
15611 \begin_inset Tabular
15612 <lyxtabular version="3" rows="4" columns="3">
15614 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{-1}">
15615 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{4.9}">
15616 <column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
15617 <row bottomline="true">
15618 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15621 \begin_layout Standard
15627 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15630 \begin_layout Standard
15636 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15639 \begin_layout Standard
15647 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15650 \begin_layout Standard
15651 12x24\InsetSpace \thinspace{}
15657 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15660 \begin_layout Standard
15661 12x24\InsetSpace \thinspace{}
15663 \begin_inset Formula $\mbox{bottles}$
15671 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15674 \begin_layout Standard
15679 \begin_layout Standard
15689 \begin_inset Formula $\mbox{bottles}$
15699 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15702 \begin_layout Standard
15703 1024x768\InsetSpace \thinspace{}
15709 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15712 \begin_layout Standard
15713 1024x768\InsetSpace \thinspace{}
15715 \begin_inset Formula $\mbox{Pixels}$
15723 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15726 \begin_layout Standard
15731 \begin_layout Standard
15741 \begin_inset Formula $\mbox{Pixels}$
15751 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15754 \begin_layout Standard
15755 32x6\InsetSpace \thinspace{}
15761 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15764 \begin_layout Standard
15765 32x6\InsetSpace \thinspace{}
15767 \begin_inset Formula $\mbox{cm}$
15775 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15778 \begin_layout Standard
15783 \begin_layout Standard
15793 \begin_inset Formula $\mbox{cm}$
15814 \begin_layout Subsection
15815 Customized Cell/Column Format
15816 \begin_inset LatexCommand label
15817 name "sub:Customized-Format"
15822 \begin_inset LatexCommand index
15823 name "Table Customization ! Cell/Column Format"
15830 \begin_layout Standard
15831 Calculating the needed width for spanned columns like in section\InsetSpace ~
15833 \begin_inset LatexCommand ref
15834 reference "sub:Multicolumn-Calculations"
15838 is very annoying if you have several tables with multicolumn cells.
15839 To make life easier, you can define a cell/column format in the preamble,
15840 so that it can be used in all tables of the document.
15841 The format is defined with the command
15844 \begin_layout Standard
15849 newcolumntype{name of format}[number of arguments]{commands}
15852 \begin_layout Standard
15853 The format name may only consist of one letter.
15878 are predefined and cannot be used.
15879 But all letters are allowed as capitals.
15882 \begin_layout Standard
15883 \begin_inset VSpace medskip
15889 \begin_layout Standard
15890 For vertically and horizontally centered multicolumn cells with a fixed
15891 width you can define the cell format
15894 \begin_layout Standard
15899 newcolumntype{M}[1]{>{
15906 \begin_layout Standard
15913 avoids the problem of hyphenating the first word, as described in section\InsetSpace ~
15915 \begin_inset LatexCommand ref
15916 reference "sub:Multiple-Lines-in"
15921 Now you can simply enter
15924 \begin_layout Standard
15930 \begin_layout Standard
15931 as LaTeX-argument in the table dialog to create a multicolumn.
15934 \begin_layout Standard
15935 \begin_inset VSpace bigskip
15941 \begin_layout Standard
15942 For cells spanned by a multicolumn cell, you can define the format
15945 \begin_layout Standard
15950 newcolumntype{S}[2]{>{
15960 \begin_layout Standard
15971 newcolumntype{S}[2]
15975 \begin_layout Standard
15986 arrayrulewidth)*(1-#2))/#2}}
15989 \begin_layout Standard
15990 This format uses equation
15991 \begin_inset LatexCommand eqref
15996 to calculate the needed width so that each spanned cell has the same width.
15999 \begin_layout Standard
16003 \begin_layout Standard
16006 S{width of multicolumn cell}{number of spanned columns}
16009 \begin_layout Standard
16010 as LaTeX-argument of the column.
16013 \begin_layout Standard
16014 \begin_inset VSpace bigskip
16020 \begin_layout Standard
16021 For colored columns, you can define
16024 \begin_layout Standard
16029 newcolumntype{K}[1]{>{
16036 \begin_layout Standard
16038 \begin_inset Quotes eld
16042 \begin_inset Quotes erd
16045 at the end creates a column with a flexible width whose text is horizontally
16050 \begin_layout Standard
16056 \begin_layout Standard
16060 \begin_layout Standard
16061 \begin_inset VSpace bigskip
16067 \begin_layout Standard
16068 To create Table\InsetSpace ~
16070 \begin_inset LatexCommand ref
16071 reference "tab:Table-using-user-defined"
16075 use the LaTeX-arguments
16078 \begin_layout Standard
16084 \begin_layout Standard
16085 for the first column and the multicolumn,
16088 \begin_layout Standard
16094 \begin_layout Standard
16095 for the the last column, and
16098 \begin_layout Standard
16104 \begin_layout Standard
16105 for the cells in the second column.
16108 \begin_layout Standard
16109 \begin_inset Float table
16115 \begin_layout Standard
16116 \begin_inset Caption
16118 \begin_layout Standard
16119 \begin_inset LatexCommand label
16120 name "tab:Table-using-user-defined"
16124 Table using user-defined table formats
16132 \begin_layout Standard
16134 \begin_inset Tabular
16135 <lyxtabular version="3" rows="3" columns="4">
16137 <column alignment="center" valignment="middle" leftline="true" width="2.5cm" special="M{2.5cm}">
16138 <column alignment="center" valignment="middle" leftline="true" width="0" special="S{2.5cm}{2}">
16139 <column alignment="center" valignment="middle" leftline="true" width="0">
16140 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0" special="K{red}">
16141 <row topline="true">
16142 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16145 \begin_layout Standard
16146 verylongtablecellword
16151 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none" special="M{2.5cm}">
16154 \begin_layout Standard
16155 multiple lines multicolumn
16160 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16163 \begin_layout Standard
16169 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16172 \begin_layout Standard
16179 <row topline="true">
16180 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16183 \begin_layout Standard
16189 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16192 \begin_layout Standard
16198 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16201 \begin_layout Standard
16207 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16210 \begin_layout Standard
16217 <row topline="true" bottomline="true">
16218 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16221 \begin_layout Standard
16227 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16230 \begin_layout Standard
16236 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16239 \begin_layout Standard
16245 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16248 \begin_layout Standard
16267 \begin_layout Subsection
16269 \begin_inset LatexCommand label
16270 name "sub:Line-Thickness"
16275 \begin_inset LatexCommand index
16276 name "Table Customization ! Line Thickness"
16283 \begin_layout Standard
16284 The line thickness for all lines in a table can be adjusted with the length
16292 To set for example a line thickness of 1.5\InsetSpace \thinspace{}
16293 pt, like in Table\InsetSpace ~
16295 \begin_inset LatexCommand ref
16296 reference "tab:Table-with-1.5"
16300 , insert the command
16303 \begin_layout Standard
16310 arrayrulewidth}{1.5pt}
16313 \begin_layout Standard
16314 in ERT before the table or table float.
16315 The changed thickness is valid for all following tables.
16316 To use the default value again, set
16322 to 0.4\InsetSpace \thinspace{}
16323 pt in ERT behind the table or table float.
16326 \begin_layout Standard
16330 \begin_layout Standard
16336 arrayrulewidth}{1.5pt}
16342 \begin_inset Float table
16347 \begin_layout Standard
16348 \begin_inset Caption
16350 \begin_layout Standard
16351 \begin_inset LatexCommand label
16352 name "tab:Table-with-1.5"
16356 Table with 1.5\InsetSpace \thinspace{}
16365 \begin_layout Standard
16367 \begin_inset Tabular
16368 <lyxtabular version="3" rows="3" columns="3">
16370 <column alignment="center" valignment="top" leftline="true" width="0">
16371 <column alignment="center" valignment="top" leftline="true" width="0">
16372 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16373 <row topline="true">
16374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16377 \begin_layout Standard
16383 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16386 \begin_layout Standard
16392 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16395 \begin_layout Standard
16402 <row topline="true">
16403 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16406 \begin_layout Standard
16412 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16415 \begin_layout Standard
16421 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16424 \begin_layout Standard
16431 <row topline="true" bottomline="true">
16432 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16435 \begin_layout Standard
16441 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16444 \begin_layout Standard
16450 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16453 \begin_layout Standard
16473 \begin_layout Standard
16479 arrayrulewidth}{0.4pt}
16487 \begin_layout Standard
16488 \begin_inset VSpace bigskip
16491 To set the line thickness to 1.5\InsetSpace \thinspace{}
16492 pt only for horizontal lines, like in Table\InsetSpace ~
16494 \begin_inset LatexCommand ref
16495 reference "tab:Table-with-horizontal"
16499 , insert these commands in ERT before the table or table float:
16502 \begin_layout Standard
16525 arrayrulewidth 1.5pt}
16535 arrayrulewidth 0.4pt}}
16538 \begin_layout Standard
16539 To return to the default line thickness, insert this command in ERT behind
16540 the table or table float:
16543 \begin_layout Standard
16555 \begin_layout Standard
16559 \begin_layout Standard
16570 \begin_layout Standard
16579 \begin_layout Standard
16587 arrayrulewidth 1.5pt}
16590 \begin_layout Standard
16600 arrayrulewidth 0.4pt}}
16606 \begin_inset Float table
16611 \begin_layout Standard
16612 \begin_inset Caption
16614 \begin_layout Standard
16615 \begin_inset LatexCommand label
16616 name "tab:Table-with-horizontal"
16620 Table with 1.5\InsetSpace \thinspace{}
16621 pt thick horizontal lines
16629 \begin_layout Standard
16631 \begin_inset Tabular
16632 <lyxtabular version="3" rows="3" columns="3">
16634 <column alignment="center" valignment="top" leftline="true" width="0">
16635 <column alignment="center" valignment="top" leftline="true" width="0">
16636 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16637 <row topline="true">
16638 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16641 \begin_layout Standard
16647 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16650 \begin_layout Standard
16656 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16659 \begin_layout Standard
16666 <row topline="true">
16667 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16670 \begin_layout Standard
16676 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16679 \begin_layout Standard
16685 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16688 \begin_layout Standard
16695 <row topline="true" bottomline="true">
16696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16699 \begin_layout Standard
16705 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16708 \begin_layout Standard
16714 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16717 \begin_layout Standard
16737 \begin_layout Standard
16753 \begin_layout Standard
16754 \begin_inset VSpace bigskip
16757 To set the line thickness to 1.5\InsetSpace \thinspace{}
16758 pt only for vertical lines, create the following
16759 column format in the document preamble, according to the description in
16760 section\InsetSpace ~
16762 \begin_inset LatexCommand ref
16763 reference "sub:Customized-Format"
16770 \begin_layout Standard
16775 newcolumntype{V}{!{
16777 vrule width 1.5pt}}
16780 \begin_layout Standard
16781 For Table\InsetSpace ~
16783 \begin_inset LatexCommand ref
16784 reference "tab:Table-with-vertical"
16791 \begin_layout Standard
16797 \begin_layout Standard
16798 was used for the last column and
16801 \begin_layout Standard
16807 \begin_layout Standard
16808 for the other columns.
16811 \begin_layout Standard
16812 \begin_inset Float table
16817 \begin_layout Standard
16818 \begin_inset Caption
16820 \begin_layout Standard
16821 \begin_inset LatexCommand label
16822 name "tab:Table-with-vertical"
16826 Table with 1.5\InsetSpace \thinspace{}
16827 pt thick vertical lines
16835 \begin_layout Standard
16837 \begin_inset Tabular
16838 <lyxtabular version="3" rows="3" columns="3">
16840 <column alignment="center" valignment="top" width="0" special="Vc">
16841 <column alignment="center" valignment="top" width="0" special="Vc">
16842 <column alignment="center" valignment="top" width="0" special="VcV">
16843 <row topline="true">
16844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16847 \begin_layout Standard
16853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16856 \begin_layout Standard
16862 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16865 \begin_layout Standard
16872 <row topline="true">
16873 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16876 \begin_layout Standard
16882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16885 \begin_layout Standard
16891 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16894 \begin_layout Standard
16901 <row topline="true" bottomline="true">
16902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16905 \begin_layout Standard
16911 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16914 \begin_layout Standard
16920 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16923 \begin_layout Standard
16942 \begin_layout Subsection
16944 \begin_inset LatexCommand index
16945 name "Table Customization ! Dashed Lines"
16952 \begin_layout Standard
16956 \begin_layout Standard
16966 \begin_inset Note Note
16969 \begin_layout Standard
16970 The following section will only be displayed when you have the LaTeX-package
16983 \begin_layout Standard
16984 \begin_inset Float table
16990 \begin_layout Standard
16991 \begin_inset Caption
16993 \begin_layout Standard
16994 \begin_inset LatexCommand label
16995 name "tab:Table-with-dashed"
16999 Table with dashed lines
17007 \begin_layout Standard
17009 \begin_inset Tabular
17010 <lyxtabular version="3" rows="5" columns="5">
17012 <column alignment="center" valignment="top" leftline="true" width="0">
17013 <column alignment="center" valignment="top" leftline="true" width="0">
17014 <column alignment="center" valignment="top" width="0" special=":c">
17015 <column alignment="center" valignment="top" leftline="true" width="0">
17016 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
17017 <row topline="true" bottomline="true">
17018 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17021 \begin_layout Standard
17027 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17030 \begin_layout Standard
17036 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17039 \begin_layout Standard
17045 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17048 \begin_layout Standard
17054 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17057 \begin_layout Standard
17064 <row topline="true">
17065 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17068 \begin_layout Standard
17074 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17077 \begin_layout Standard
17083 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17086 \begin_layout Standard
17092 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17095 \begin_layout Standard
17101 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17104 \begin_layout Standard
17112 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17115 \begin_layout Standard
17119 \begin_layout Standard
17133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17136 \begin_layout Standard
17142 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17145 \begin_layout Standard
17151 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17154 \begin_layout Standard
17160 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17163 \begin_layout Standard
17170 <row topline="true">
17171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17174 \begin_layout Standard
17178 \begin_layout Standard
17192 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17195 \begin_layout Standard
17201 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="c:">
17204 \begin_layout Standard
17210 <cell multicolumn="1" alignment="center" valignment="top" rightline="true" usebox="none" special="c:">
17213 \begin_layout Standard
17219 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17222 \begin_layout Standard
17229 <row topline="true" bottomline="true">
17230 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17233 \begin_layout Standard
17239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17242 \begin_layout Standard
17248 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17251 \begin_layout Standard
17257 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17260 \begin_layout Standard
17266 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17269 \begin_layout Standard
17288 \begin_layout Standard
17289 LyX doesn't natively support dashed lines, so you have to use ERT.
17290 As prerequisite the LaTeX-package
17295 \begin_inset LatexCommand index
17296 name "LaTeX-packages ! arydshln"
17300 must be loaded in the document preamble with the command
17303 \begin_layout Standard
17308 usepackage{arydshln}
17311 \begin_layout Standard
17312 To make a vertical line dashed, enter the colon
17313 \begin_inset Quotes eld
17317 \begin_inset Quotes erd
17320 together with the character for the horizontal alignment as LaTeX-argument
17321 in the table cell dialog.
17324 \begin_layout Standard
17325 For a horizontal dashed line add the command
17328 \begin_layout Standard
17336 \begin_layout Standard
17337 in ERT as first element of the first cell in the table row.
17340 \begin_layout Standard
17341 For dashed multicolumn lines use the command
17344 \begin_layout Standard
17349 cdashline{line number
17354 \begin_layout Standard
17355 in ERT as first element of the first cell in the table row.
17356 If you have for example a multicolumn spanning over columns 2 to 4 and
17357 you want to have a dashed line above, add the command
17360 \begin_layout Standard
17368 \begin_layout Standard
17369 as first element of the first cell in the row of the multicolumn.
17372 \begin_layout Standard
17373 \begin_inset VSpace bigskip
17379 \begin_layout Standard
17382 \begin_inset LatexCommand ref
17383 reference "tab:Table-with-dashed"
17388 \begin_inset Quotes eld
17396 \begin_inset Quotes erd
17399 as LaTeX-argument of the third column.
17406 was inserted to the first cell of the third row and the the ERT command
17415 was inserted to the first cell of the fourth row.
17418 \begin_layout Standard
17419 \begin_inset Note Greyedout
17422 \begin_layout Standard
17427 The used LaTeX-package
17431 is apparently not compatible with the LaTeX-package
17436 \begin_inset LatexCommand index
17437 name "LaTeX-packages ! colortbl"
17441 that is used for colored tables in section\InsetSpace ~
17443 \begin_inset LatexCommand ref
17444 reference "sec:Colored-Tables"
17449 That means colored tables cannot have dashed lines.
17457 \begin_layout Standard
17461 \begin_layout Standard
17471 \begin_inset Note Note
17474 \begin_layout Standard
17475 The following will be displayed when the LaTeX-package
17487 \begin_layout Standard
17488 You need to install the package
17492 to see the contents of this section in the output.
17495 \begin_layout Standard
17499 \begin_layout Standard
17511 \begin_layout Chapter
17513 \begin_inset LatexCommand index
17519 \begin_inset LatexCommand label
17527 \begin_layout Section
17529 \begin_inset LatexCommand label
17530 name "sec:FloatIntroduction"
17535 \begin_inset LatexCommand index
17536 name "Floats ! Introduction"
17543 \begin_layout Standard
17544 A float is a block of text associated with some sort of label, which doesn't
17545 have a fixed location.
17547 \begin_inset Quotes eld
17551 \begin_inset Quotes erd
17554 forward or backward a page or two, to wherever it fits best.
17561 Margin\InsetSpace ~
17564 are also floats, because they can float to the next page when there are
17565 too many notes at the page.
17568 \begin_layout Standard
17569 Floats allow a high quality layout.
17570 Images and tables can evenly be spread to the pages to avoid white space
17571 and pages without text.
17572 As the floating often destroys the context between the text and the image/table
17573 , every float can be referenced in the text.
17574 Floats are therefore numbered.
17575 Referencing is described in section\InsetSpace ~
17577 \begin_inset LatexCommand ref
17578 reference "sec:Referencing-Floats"
17585 \begin_layout Standard
17586 To insert a float, use the menu
17588 Insert\SpecialChar \menuseparator
17596 inset, a box with a label.
17597 The label will automatically be translated to the document language in
17599 Behind the label you can insert the caption text.
17600 The image or table is inserted above or below the caption in a separate
17601 paragraph within the float.
17602 More about the caption placement is described in section\InsetSpace ~
17604 \begin_inset LatexCommand ref
17605 reference "sec:Caption-Placement"
17610 To keep your LyX-document readable, you can open and close the float box
17611 by left-clicking on the box label.
17612 A closed float box looks like this:
17613 \begin_inset Graphics
17614 filename clipart/floatQt4.png
17616 scaleBeforeRotation
17620 -- a gray button with a red label.
17623 \begin_layout Standard
17624 It is recommended to insert floats as a separate paragraph to avoid possible
17625 LaTeX-errors that can occur when the surrounding text is specially formatted.
17628 \begin_layout Standard
17629 Existing figures or tables can be put into a float by marking them and then
17630 pressing the corresponding toolbar button for a new float.
17633 \begin_layout Section
17637 \begin_layout Standard
17638 Besides figure and table floats that are described in section\InsetSpace ~
17640 \begin_inset LatexCommand ref
17641 reference "sec:Figure-Floats"
17646 \begin_inset LatexCommand ref
17647 reference "sec:Table-Floats"
17651 , respectively, LyX offers the float types
17664 \begin_layout Subsection
17666 \begin_inset LatexCommand index
17667 name "Floats ! Algorithms"
17674 \begin_layout Standard
17675 \begin_inset Float algorithm
17681 \begin_layout Standard
17682 \begin_inset Caption
17684 \begin_layout Standard
17685 \begin_inset LatexCommand label
17686 name "alg:Example-Algorithm-float"
17690 Example Algorithm float
17698 \begin_layout LyX-Code
17701 Sum:= Sum + A(I); /*comment*/
17704 \begin_inset VSpace -4mm
17715 \begin_layout Standard
17716 This float type is inserted with the menu
17718 Insert\SpecialChar \menuseparator
17719 Floats\SpecialChar \menuseparator
17723 It is used for program codes and descriptions of algorithms.
17724 A possible environment for algorithms is the
17728 , described in LyX's
17733 Algorithm\InsetSpace ~
17735 \begin_inset LatexCommand ref
17736 reference "alg:Example-Algorithm-float"
17740 is an example of an algorithm float where -4\InsetSpace \thinspace{}
17741 mm vertical space was added
17742 at the end of the float to have the bottom rule exactly below the last
17746 \begin_layout Standard
17747 The float label is not automatically translated into the document language.
17748 If your document is not in English, you have to do this manually by adding
17749 the following line to the document preamble
17754 \begin_layout Standard
17759 floatname{algorithm}{your\InsetSpace ~
17763 \begin_layout Standard
17770 \begin_inset Quotes eld
17778 \begin_inset Quotes erd
17784 \begin_layout Description
17789 When the LaTeX-package
17794 \begin_inset LatexCommand index
17795 name "LaTeX-packages ! hyperref"
17799 is used to link cross-references to floats in the PDF-output, it must be
17800 loaded in the document preamble before the definition of floats to be able
17801 to reference floats.
17802 As LyX sets the float definition for algorithm floats automatically before
17803 the user editable part of the document preamble, you need to insert the
17804 following preamble lines
17808 the loading command of
17815 \begin_inset VSpace defskip
17822 newfloat{Xalgorithm}{tbp}{loa}
17826 floatname{Xalgorithm}{your\InsetSpace ~
17839 renewenvironment{algorithm}[1][tbp]
17845 \begin_layout Standard
17856 begin{Xalgorithm}[#1]}{
17859 \begin_inset VSpace defskip
17865 \begin_layout Standard
17866 Algorithm floats are not by default numbered in the scheme
17867 \begin_inset Quotes eld
17871 \begin_inset Quotes erd
17874 like it is the case for table and figure floats in many document-classes.
17875 To number algorithm floats in the same scheme, add this command to your
17879 \begin_layout Standard
17884 numberwithin{algorithm}{chapter}
17887 \begin_layout Standard
17888 If you use the LaTeX-package
17892 , add this line instead
17900 (the commands from above) to the preamble:
17903 \begin_layout Standard
17908 numberwithin{Xalgorithm}{chapter}
17911 \begin_layout Standard
17912 To be able to use the command
17923 in the document settings the option
17933 \begin_layout Subsection
17935 \begin_inset LatexCommand index
17936 name "Floats ! Text Wrap Floats"
17941 \begin_inset LatexCommand label
17942 name "sub:floatflt-wrap-float"
17949 \begin_layout Standard
17950 This float type is used if you want to
17951 \begin_inset Quotes eld
17955 \begin_inset Quotes erd
17958 text around a figure so that it only occupies some fraction of the column
17960 It can be inserted using the menu
17961 \begin_inset Wrap figure
17966 \begin_layout Standard
17967 \begin_inset Graphics
17968 filename clipart/mobius.eps
17971 scaleBeforeRotation
17972 rotateOrigin center
17979 \begin_layout Standard
17980 \begin_inset Caption
17982 \begin_layout Standard
17983 \begin_inset LatexCommand label
17984 name "fig:This-is-a"
17988 This is a wrapped figure, and this is the brilliant caption that describes
17990 \begin_inset VSpace medskip
18005 Insert\SpecialChar \menuseparator
18006 Floats\SpecialChar \menuseparator
18011 if the LaTeX-package
18013 f\SpecialChar \textcompwordmark{}
18014 loatf\SpecialChar \textcompwordmark{}
18018 \begin_inset LatexCommand index
18019 name "LaTeX-packages ! floatflt"
18027 \begin_layout Standard
18028 Installing a LaTeX-package is explained it in the
18038 The width and placement of the float is adjusted by right-clicking on the
18040 Figure\InsetSpace ~
18042 \begin_inset LatexCommand ref
18043 reference "fig:This-is-a"
18047 is an example text wrap float with a width of 40
18048 \begin_inset Formula $\,$
18055 \begin_layout Standard
18056 Available units are explained in
18057 \begin_inset LatexCommand ref
18058 reference "cha:Units-available-in"
18067 Some space was added under the caption to separate it better from the surroundi
18071 \begin_layout Standard
18074 f\SpecialChar \textcompwordmark{}
18075 loatf\SpecialChar \textcompwordmark{}
18078 also supports table wrap floats, but they are not yet supported by LyX.
18079 If you need this, read the documentation of
18081 f\SpecialChar \textcompwordmark{}
18082 loatf\SpecialChar \textcompwordmark{}
18086 \begin_inset LatexCommand cite
18094 \begin_layout Standard
18095 \begin_inset Note Greyedout
18098 \begin_layout Standard
18104 wrap float floats are fragile! E.\InsetSpace \thinspace{}
18106 having a figure too close to the bottom
18107 of the page can mess things up in the way that the float doesn't appear
18108 in the output or that it is placed over some other text.
18112 \begin_layout Standard
18113 The better solution is to use the LaTeX-package
18115 wrapf\SpecialChar \textcompwordmark{}
18119 \begin_inset LatexCommand index
18120 name "LaTeX-packages ! wrapfig\\vspace{4mm}"
18126 f\SpecialChar \textcompwordmark{}
18127 loatf\SpecialChar \textcompwordmark{}
18130 , but it is currently not supported by LyX.
18143 \begin_layout Standard
18147 \begin_layout Itemize
18148 Wrap floats should not be placed in paragraphs that run over a page break.
18149 That means that wrap floats should better be inserted to the exact place
18150 when the document is nearly finished and you are able to estimate where
18151 page breaks will appear.
18154 \begin_layout Itemize
18155 Wrap floats should either be placed in an own paragraph before the paragraph
18156 where they should wrap into or within a paragraph.
18159 \begin_layout Itemize
18160 Wrap floats in consecutive paragraphs may cause troubles, so assure that
18161 there is a text paragraph between them as separator.
18164 \begin_layout Itemize
18165 Wrap floats are not allowed in section headings or tables.
18168 \begin_layout Section
18170 \begin_inset LatexCommand label
18171 name "sec:Float-Numbering"
18176 \begin_inset LatexCommand index
18177 name "Floats ! Numbering"
18184 \begin_layout Standard
18185 Floats are usually numbered either independent from the sections the floats
18186 are in, or in the scheme
18187 \begin_inset Quotes eld
18191 \begin_inset Quotes erd
18195 \begin_inset Quotes eld
18199 \begin_inset Quotes erd
18203 This depends on the used document class.
18206 \begin_layout Standard
18207 To change the section independent numbering, you can use this command in
18208 the document preamble:
18211 \begin_layout Standard
18223 \begin_layout Standard
18230 is the command that prints the table number, for figure floats, the command
18244 prints in the command above the table number as small roman number.
18247 \begin_layout Standard
18248 To change the numbering scheme for example to
18249 \begin_inset Quotes eld
18253 \begin_inset Quotes erd
18256 , use this command in the preamble:
18259 \begin_layout Standard
18264 numberwithin{table}{subsection}
18267 \begin_layout Standard
18268 To be able to use the command
18279 in the document settings the option
18289 \begin_layout Standard
18290 Please also have a look at section\InsetSpace ~
18292 \begin_inset LatexCommand ref
18293 reference "sub:Footnote-Numbering"
18297 for the details and important notes about the numbering commands.
18300 \begin_layout Section
18302 \begin_inset LatexCommand label
18303 name "sec:Referencing-Floats"
18308 \begin_inset LatexCommand index
18309 name "Floats ! References"
18314 \begin_inset LatexCommand index
18322 \begin_layout Standard
18323 To reference a float, insert a label into its caption using the menu
18325 Insert\SpecialChar \menuseparator
18328 or the toolbar button
18329 \begin_inset Graphics
18330 filename ../images/label-insert.xpm
18332 scaleBeforeRotation
18337 A grey label box like this one:
18338 \begin_inset Graphics
18339 filename clipart/labelQt4.png
18341 scaleBeforeRotation
18345 will be inserted and the label window pops up asking for the label text.
18346 LyX offers as text the first words of the caption with a prefix.
18347 The prefix depends on the float type, e.\InsetSpace \thinspace{}
18349 for figure floats the prefix will
18357 \begin_layout Standard
18358 The label is used as anchor and name for the reference.
18359 You can refer to the label using the menu
18361 Insert\SpecialChar \menuseparator
18364 or the toolbar button
18365 \begin_inset Graphics
18366 filename ../images/dialog-show-new-inset_ref.xpm
18368 scaleBeforeRotation
18373 A grey cross-reference box like this one:
18374 \begin_inset Graphics
18375 filename clipart/referenceQt4.png
18377 scaleBeforeRotation
18381 will be inserted and the cross-reference window appear showing all labels
18383 If you have multiple LyX-documents opened, choose the one you are working
18384 on from the drop-list at the top of the dialog.
18385 You can now sort the labels alphabetically and then choose one.
18386 At the position of the cross-reference box the float number will appear
18390 \begin_layout Standard
18391 It is recommended to use a protected space between the cross-reference name
18392 and its number to avoid line breaks between them.
18393 If a cross-reference refers to a non-existing label, you will see two question
18394 marks in the output instead of the reference.
18397 \begin_layout Standard
18398 You can change labels at any time by clicking on the label box.
18399 References to the changed label will automatically change its link to the
18400 new label text, so that you don't need to take care about this.
18403 \begin_layout Standard
18410 in the cross-reference window sets the cursor before the referred label.
18411 The button text changes then to Go\InsetSpace ~
18412 Back and you can use it to set the cursor
18413 back to the cross-reference.
18414 Right-clicking on a cross-reference box also sets the cursor before the
18415 referenced label but without a possibility to go back.
18418 \begin_layout Subsection
18419 Cross-Reference Formats
18420 \begin_inset LatexCommand label
18421 name "sub:Cross-Reference-Formats"
18426 \begin_inset LatexCommand index
18427 name "References ! Formats"
18434 \begin_layout Standard
18435 There are six varieties of cross-references:
18438 \begin_layout Description
18439 <reference>: prints the float number, this is the default:
18440 \begin_inset LatexCommand ref
18441 reference "fig:Two-distorted-images"
18448 \begin_layout Description
18449 (<reference>): prints the float number within two parentheses, this is the
18450 style normally used to reference formulas, especially when the reference
18452 \begin_inset Quotes eld
18456 \begin_inset Quotes erd
18460 \begin_inset LatexCommand eqref
18468 \begin_layout Description
18469 <page>: prints the page number: Page\InsetSpace ~
18471 \begin_inset LatexCommand pageref
18472 reference "fig:Two-distorted-images"
18479 \begin_layout Description
18482 <page>: prints the text "on page" and the page number:
18483 \begin_inset LatexCommand vpageref
18484 reference "fig:Two-distorted-images"
18491 \begin_layout Description
18492 <reference>\InsetSpace ~
18495 <page>: prints the float number, the text "on page", and
18497 \begin_inset LatexCommand vref
18498 reference "fig:Two-distorted-images"
18505 \begin_layout Description
18506 Formatted\InsetSpace ~
18507 reference: prints a self defined cross-reference format.
18509 \begin_inset Note Greyedout
18512 \begin_layout Standard
18517 This feature is only available when you have the LaTeX-package
18529 \begin_layout Standard
18530 Note that the style <page> won't print the page number if the label is on
18531 the previous, the same, or the next page.
18532 You will e.\InsetSpace \thinspace{}
18535 \begin_inset Quotes eld
18543 \begin_inset Quotes erd
18549 \begin_layout Standard
18550 The number and current page of the referred document part in the output,
18551 is automatically calculated by LaTeX.
18552 The varieties are adjusted in the field
18556 of the cross-reference window, that appear when you click on the cross-referenc
18560 \begin_layout Subsection
18561 Referencing Subfigures
18562 \begin_inset LatexCommand label
18563 name "sub:Referencing-Subfigures"
18568 \begin_inset LatexCommand index
18569 name "References ! to Subfigures"
18576 \begin_layout Standard
18577 Currently referencing subfigures is not supported by LyX, so you have to
18578 use LaTeX-commands.
18579 The label is the created with the command
18582 \begin_layout Standard
18587 label{fig:YourLabelName}
18590 \begin_layout Standard
18591 that is directly inserted into the subfigure caption field.
18592 To reference the label add this command in ERT
18595 \begin_layout Standard
18600 ref{fig:YourLabelName}
18603 \begin_layout Standard
18604 to the position in your document where the reference should be placed.
18605 Here is a reference to a subfigure: Subfigure\InsetSpace ~
18610 \begin_layout Standard
18622 \begin_layout Subsection
18623 Automatic Reference Naming
18624 \begin_inset LatexCommand index
18625 name "References ! Automatic Reference Naming"
18632 \begin_layout Standard
18637 provides a very useful feature that cross-references automatically include
18638 the name of the referenced floats (or text parts like sections).
18639 You save to write e.\InsetSpace \thinspace{}
18642 \begin_inset Quotes eld
18646 \begin_inset Quotes erd
18649 before every reference box.
18650 To get this automatic reference naming, you have to load the LaTeX-package
18656 \begin_inset LatexCommand index
18657 name "LaTeX-packages ! hyperref"
18661 in the document preamble with
18664 \begin_layout Standard
18669 usepackage[pdfborder={0 0 0}]{hyperref}
18684 \begin_layout Standard
18689 is used to link cross-references in the DVI- and PDF-output, this means
18690 that the reader of your document will be able to click on a table of content
18691 (TOC) entry or on a reference and he will be shown the referenced document
18697 also creates PDF-bookmarks for every section of your document to make it
18698 easier for readers to navigate through the document.
18699 This is also used in this document but when you have a look in the document
18700 preamble you will find various options in the load command of
18705 To learn more about the
18709 package, we refer to its documentation
18710 \begin_inset LatexCommand cite
18718 \begin_layout Standard
18719 \begin_inset Note Greyedout
18722 \begin_layout Standard
18727 Automatic reference naming cannot be used when you use cross-references
18730 Formatted\InsetSpace ~
18733 style, described in section\InsetSpace ~
18735 \begin_inset LatexCommand ref
18736 reference "sub:Cross-Reference-Formats"
18748 \begin_layout Subsection
18750 \begin_inset LatexCommand label
18751 name "sub:Reference-Position"
18756 \begin_inset LatexCommand index
18757 name "References ! Reference Position"
18764 \begin_layout Standard
18770 \begin_inset LatexCommand index
18771 name "LaTeX-packages ! hyperref"
18775 to link cross-references in the output, you will see that clicking on an
18776 image float reference jumps to the image label.
18777 The caption will be the first text part on the screen, so that you cannot
18778 see the image without scrolling.
18779 This is because the reference link anchor is placed at the position of
18781 With the use of the package
18786 \begin_inset LatexCommand index
18787 name "LaTeX-packages ! hypcap"
18791 , which is part of the LaTeX-package
18796 \begin_inset LatexCommand index
18797 name "LaTeX-packages ! oberdiek"
18801 , the link anchor is placed at the beginning of a float.
18802 To use this feature for figure floats, load
18806 in the document preamble with the line
18809 \begin_layout Standard
18814 usepackage[f\SpecialChar \textcompwordmark{}
18818 \begin_layout Standard
18823 for all floats but this isn't recommended for stability reasons.
18824 For more informations, have a look at
18829 \begin_inset LatexCommand cite
18837 \begin_layout Standard
18838 \begin_inset Note Greyedout
18841 \begin_layout Standard
18850 must be loaded after
18854 in the document preamble.
18862 \begin_layout Standard
18863 \begin_inset Note Greyedout
18866 \begin_layout Standard
18875 has no effect for references to subfigures.
18883 \begin_layout Section
18885 \begin_inset LatexCommand label
18886 name "sec:Float-Placement"
18891 \begin_inset LatexCommand index
18892 name "Floats ! Placement"
18899 \begin_layout Standard
18900 Right-clicking on a float-box opens a dialog where you can alter the placement
18901 options that LaTeX uses for positioning the float.
18908 is only useful for two-column documents: If you select it, the float will
18909 span across both columns on the page instead of being confined to just
18914 Rotate\InsetSpace ~
18917 is used to rotate floats, see section
18918 \begin_inset LatexCommand ref
18919 reference "sec:Rotated-Floats"
18926 \begin_layout Standard
18927 You can use one ore more of the following options in the float dialog to
18928 set the placement for a particular float when you uncheck the option
18931 default\InsetSpace ~
18937 \begin_layout Description
18940 possible try to place the float on the position where it is inserted
18943 \begin_layout Description
18946 page try to place the float on the top of the current page
18949 \begin_layout Description
18950 Bottom\InsetSpace ~
18952 page try to place the float on the bottom of the current page
18955 \begin_layout Description
18958 floats try to place the float on an own page
18961 \begin_layout Standard
18962 The order of the above option is
18967 That means, if you use the default placement, LaTeX will first try out
18980 , and then the others.
18981 If you don't use the default, LaTeX will try only the checked options but
18983 If none of the 4 placements are possible the procedure is internally repeated
18984 but it is tried to put the float on the following page.
18987 \begin_layout Standard
18988 By default, each option has its own rules:
18991 \begin_layout Labeling
18992 \labelwidthstring 00.00.0000
18999 only floats occupying less than 70\InsetSpace \thinspace{}
19000 % of the page can be placed at the top
19010 \begin_layout Labeling
19011 \labelwidthstring 00.00.0000
19014 Bottom\InsetSpace ~
19018 : only floats occupying less than 30\InsetSpace \thinspace{}
19019 % of the page can be placed at the bottom
19030 \begin_layout Labeling
19031 \labelwidthstring 00.00.0000
19038 : only if more than 50\InsetSpace \thinspace{}
19039 % of the page are occupied by floats, several floats
19040 can be set together on a page.
19045 f\SpecialChar \textcompwordmark{}
19051 \begin_layout Standard
19052 If you don't like these rules, you can ignore them by using the additional
19055 Ignore\InsetSpace ~
19061 You can also redefine the rules with LaTeX-commands that are given in parenthese
19062 s behind the rules description above.
19063 To increase for example the often too small default of the bottom-rule
19064 to 50\InsetSpace \thinspace{}
19065 % of the page, add this line to your document preamble:
19068 \begin_layout Standard
19075 bottomfraction}{0.5}
19078 \begin_layout Standard
19079 Sometimes you might need, under all circumstances, a float to be placed
19080 exactly at the position where it is inserted.
19081 For this case you can use the option
19087 Use this option very rarely and only if the document is nearly ready to
19089 Because the float is then no longer able to
19090 \begin_inset Quotes eld
19094 \begin_inset Quotes erd
19097 when you change your document and this will often destroy the page layout.
19100 \begin_layout Standard
19101 There are no placement options for text wrap floats, because they are always
19102 surrounded by the text of a certain paragraph.
19103 \begin_inset VSpace bigskip
19109 \begin_layout Standard
19110 Sometimes you have the problem that a float is placed at the top of a page
19111 while its corresponding section starts at the middle of the page, so that
19112 the reader could think the float is part of the previous section.
19113 To avoid this the LaTeX-command
19117 suppressf\SpecialChar \textcompwordmark{}
19121 It suppresses a given float placement for the page where it is inserted
19122 and can therefore be used to avoid that floats could be set before a section
19124 To get this, add these commands to your document preamble:
19127 \begin_layout Standard
19144 suppressf\SpecialChar \textcompwordmark{}
19150 \begin_layout Standard
19151 You can define the same for all section headings, like chapters and subsections.
19152 This definition is not recommended to be used for small text parts like
19153 subsubsections because LaTeX may then have problems to find a suitable
19157 \begin_layout Standard
19158 \begin_inset VSpace bigskip
19161 In some cases it is required to have all figures/tables at the end of the
19163 For this purpose the LaTeX-package
19165 endf\SpecialChar \textcompwordmark{}
19169 \begin_inset LatexCommand index
19170 name "LaTeX-packages ! endfloat"
19175 It puts all figure and table floats at the end of the document into own
19177 At the original float position a text hint like
19178 \begin_inset Quotes eld
19183 [Figure\InsetSpace ~
19187 \begin_inset Quotes erd
19191 The endfloat-package is loaded in the preamble with the line
19194 \begin_layout Standard
19199 usepackage[options]{endf\SpecialChar \textcompwordmark{}
19203 \begin_layout Standard
19204 There are various package options to format the created figure/table sections.
19205 For more information we refer to the
19207 endf\SpecialChar \textcompwordmark{}
19211 \begin_inset LatexCommand cite
19219 \begin_inset Note Greyedout
19222 \begin_layout Standard
19225 Note: endf\SpecialChar \textcompwordmark{}
19228 doesn't provide an automatic translation for the text hint, you have to
19229 do this manually, see section\InsetSpace ~
19231 \begin_inset LatexCommand cite
19244 \begin_inset Note Greyedout
19247 \begin_layout Standard
19252 There is currently a bug in
19254 endf\SpecialChar \textcompwordmark{}
19257 when the caption contains a German
19258 \begin_inset Quotes eld
19262 \begin_inset Quotes erd
19266 Use in this case the command
19267 \begin_inset Quotes eld
19277 \begin_inset Quotes erd
19281 \begin_inset Quotes eld
19285 \begin_inset Quotes erd
19296 \begin_layout Standard
19297 \begin_inset VSpace bigskip
19300 For more details about float placements, have a look at LaTeX books,
19301 \begin_inset LatexCommand cite
19302 key "latexcompanion,latexguide,latexbook"
19309 \begin_layout Section
19311 \begin_inset LatexCommand label
19312 name "sec:Rotated-Floats"
19317 \begin_inset LatexCommand index
19318 name "Floats ! Rotating"
19325 \begin_layout Standard
19326 Especially for wide tables you might have floats rotated.
19327 To rotate a whole float including the caption, right-click on the float-box
19330 Rotate\InsetSpace ~
19336 \begin_layout Standard
19337 Rotated floats are always placed on its own page (or column, when you have
19338 a two-column document).
19339 They are normally rotated so that you can read them from the outside margin
19340 -- to the left on even pages, to the right on odd pages.
19341 To force a certain rotation direction for all pages, you can add either
19344 f\SpecialChar \textcompwordmark{}
19349 f\SpecialChar \textcompwordmark{}
19352 to the document class options.
19355 \begin_layout Standard
19356 Referencing rotated floats is the same like for normal floats, the caption
19357 format is also the same: Table\InsetSpace ~
19359 \begin_inset LatexCommand ref
19360 reference "tab:Rotated-table"
19364 is an example of a rotated table float.
19367 \begin_layout Standard
19368 \begin_inset Note Greyedout
19371 \begin_layout Standard
19376 Not all DVI-viewers are able to display rotated floats.
19384 \begin_layout Standard
19385 \begin_inset Float table
19390 \begin_layout Standard
19391 \begin_inset Caption
19393 \begin_layout Standard
19394 \begin_inset LatexCommand label
19395 name "tab:Rotated-table"
19407 \begin_layout Standard
19409 \begin_inset Tabular
19410 <lyxtabular version="3" rows="1" columns="5">
19412 <column alignment="center" valignment="top" leftline="true" width="0">
19413 <column alignment="center" valignment="top" leftline="true" width="0">
19414 <column alignment="center" valignment="top" leftline="true" width="0">
19415 <column alignment="center" valignment="top" leftline="true" width="0">
19416 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19417 <row topline="true" bottomline="true">
19418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19421 \begin_layout Standard
19427 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19430 \begin_layout Standard
19436 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19439 \begin_layout Standard
19445 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19448 \begin_layout Standard
19454 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19457 \begin_layout Standard
19476 \begin_layout Section
19478 \begin_inset LatexCommand index
19479 name "Caption ! Formatting"
19484 \begin_inset LatexCommand index
19485 name "Floats ! Caption Formatting"
19490 \begin_inset LatexCommand index
19491 name "LaTeX-packages ! caption"
19496 \begin_inset LatexCommand label
19497 name "sec:Caption-Formatting"
19504 \begin_layout Standard
19509 environment is the default paragraph environment for
19514 On the LyX screen captions appear as label, e.\InsetSpace \thinspace{}
19517 \begin_inset Quotes eld
19525 \begin_inset Quotes erd
19528 followed by the caption text.
19530 \begin_inset Quotes eld
19534 \begin_inset Quotes erd
19537 is the actual reference number.
19538 By default the label and the number are in the same font as the caption
19539 text and a colon follows the number to divide the label from the text.
19540 This caption format is not suitable for all document formats.
19544 \begin_layout Standard
19545 To change the default caption format, load the LaTeX-package
19550 \begin_inset LatexCommand index
19551 name "LaTeX-packages ! caption"
19555 in the document preamble with this line:
19558 \begin_layout Standard
19563 usepackage[format definition]{caption}
19566 \begin_layout Standard
19567 To have for example the label and the number in sans-serif bold font and
19568 the table captions always above the table like in this document, use the
19572 \begin_layout Standard
19577 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
19580 \begin_layout Standard
19581 You can also define different caption formats for the different float types.
19582 In this case load the
19586 package without format specific options and define the different formats
19587 with the help of the command
19590 \begin_layout Standard
19595 captionsetup[float type]{format definition}
19598 \begin_layout Standard
19599 in the document preamble.
19600 For example the caption formats of Figure\InsetSpace ~
19602 \begin_inset LatexCommand ref
19603 reference "fig:This-is-an-fig"
19607 and Table\InsetSpace ~
19609 \begin_inset LatexCommand ref
19610 reference "tab:This-is-an-tab"
19614 can be created using these commands in the document preamble:
19617 \begin_layout Standard
19622 usepackage[tableposition=top]{caption}
19630 captionsetup[f\SpecialChar \textcompwordmark{}
19631 igure]{labelfont={tt}, textfont=it, indention=1cm,%
19637 \begin_layout Standard
19645 captionsetup[figure]
19656 captionsetup[table]{labelfont={bf,sf}}
19659 \begin_layout Standard
19660 \begin_inset Note Greyedout
19663 \begin_layout Standard
19672 has no effect when a
19677 \begin_inset LatexCommand index
19678 name "LaTeX-packages ! koma-script"
19682 document class is used.
19683 In this case the document class option
19695 \begin_layout Standard
19696 For more information about the package
19700 we refer to its documentation
19701 \begin_inset LatexCommand cite
19702 key "caption,caption-de"
19709 \begin_layout Standard
19710 To change the label name from e.g.
19712 \begin_inset Quotes eld
19716 \begin_inset Quotes erd
19720 \begin_inset Quotes eld
19724 \begin_inset Quotes erd
19727 use this preamble command:
19730 \begin_layout Standard
19737 fnum@figure}{Image~
19742 \begin_layout Standard
19749 inserts the figure number and
19752 \begin_inset Quotes eld
19758 \begin_inset Quotes erd
19761 creates a protected space.
19764 \begin_layout Standard
19765 \begin_inset VSpace bigskip
19773 \begin_inset LatexCommand index
19774 name "LaTeX-packages ! koma-script"
19780 article (koma-script)
19788 letter (koma-script)
19792 report (koma-script)
19794 \InsetSpace \thinspace{}
19795 ), you can alternatively to the
19803 's built-in command
19810 For example, to have the caption label in bold, add this command to your
19814 \begin_layout Standard
19819 setkomafont{captionlabel}{
19824 \begin_layout Standard
19825 For more information about
19836 \begin_inset LatexCommand cite
19837 key "koma-script,koma-script-de"
19844 \begin_layout Standard
19848 \begin_layout Standard
19852 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
19859 \begin_inset Note Note
19862 \begin_layout Standard
19863 The caption format is changed only for this example.
19871 \begin_layout Standard
19872 \begin_inset Float figure
19878 \begin_layout Standard
19880 \begin_inset Graphics
19881 filename clipart/mobius.eps
19884 scaleBeforeRotation
19891 \begin_layout Standard
19892 \begin_inset Caption
19894 \begin_layout Standard
19895 \begin_inset LatexCommand label
19896 name "fig:This-is-an-fig"
19900 This is an example figure caption that is longer than one line to show the
19901 different caption format.
19902 Here a self-defined caption format is used.
19915 \begin_layout Standard
19919 \begin_layout Standard
19923 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
19932 \begin_layout Standard
19933 \begin_inset Float table
19939 \begin_layout Standard
19940 \begin_inset Caption
19942 \begin_layout Standard
19943 \begin_inset LatexCommand label
19944 name "tab:This-is-an-tab"
19948 This is an example table caption that is longer than one line to show the
19949 different caption format.
19950 Here the standard caption format for tables in this document is used.
19958 \begin_layout Standard
19960 \begin_inset Tabular
19961 <lyxtabular version="3" rows="1" columns="5">
19963 <column alignment="center" valignment="top" leftline="true" width="0">
19964 <column alignment="center" valignment="top" leftline="true" width="0">
19965 <column alignment="center" valignment="top" leftline="true" width="0">
19966 <column alignment="center" valignment="top" leftline="true" width="0">
19967 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19968 <row topline="true" bottomline="true">
19969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19972 \begin_layout Standard
19978 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19981 \begin_layout Standard
19987 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19990 \begin_layout Standard
19996 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19999 \begin_layout Standard
20005 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20008 \begin_layout Standard
20027 \begin_layout Section
20029 \begin_inset LatexCommand index
20030 name "Caption ! Placement"
20035 \begin_inset LatexCommand index
20036 name "Floats ! Caption Placement"
20041 \begin_inset LatexCommand label
20042 name "sec:Caption-Placement"
20049 \begin_layout Standard
20050 The common caption placement rule is:
20053 \begin_layout Description
20054 Figure: Caption is set below the figure
20057 \begin_layout Description
20058 Table: Caption is set above the table
20061 \begin_layout Standard
20062 Having the caption above the table is unfortunately not supported in LaTeX's
20064 That means if you are using the document classes
20080 there will be no space between the caption and the table.
20081 To insert the needed space, add the following option to the load command
20082 of the LaTeX-package
20086 in your document preamble
20090 \begin_layout Standard
20091 See section\InsetSpace ~
20093 \begin_inset LatexCommand ref
20094 reference "sec:Caption-Formatting"
20098 for more information of the package
20110 \begin_layout Standard
20116 \begin_layout Standard
20122 \begin_inset LatexCommand index
20123 name "LaTeX-packages ! koma-script"
20129 article (koma-script)
20137 letter (koma-script)
20141 report (koma-script)
20143 \InsetSpace \thinspace{}
20144 ), you can alternatively to the
20148 package set the document class option
20155 \begin_layout Standard
20156 \begin_inset VSpace bigskip
20159 It is also possible to set the caption beside a figure or table.
20160 To get this the LaTeX-package
20165 \begin_inset LatexCommand index
20166 name "LaTeX-packages ! sidecap"
20170 has to be loaded in the document preamble with the line
20173 \begin_layout Standard
20178 usepackage[option]{sidecap}
20181 \begin_layout Standard
20182 If you set no option, the caption is placed on the side of the outer page
20183 margin -- to the right on odd pages, to the left on even pages.
20184 You can change the placement to inner margin with the option
20189 To force the placement always to the right or left, use the option
20200 \begin_layout Standard
20201 To place in LyX the caption of a float on the side, it is necessary to add
20202 these commands to the document preamble:
20205 \begin_layout Standard
20211 \begin_layout Standard
20224 \begin_layout Standard
20245 \begin_layout Standard
20266 \begin_layout Standard
20277 renewenvironment{table}{
20284 \begin_layout Standard
20297 \begin_layout Standard
20318 \begin_layout Standard
20336 \begin_layout Standard
20349 \begin_layout Standard
20364 f\SpecialChar \textcompwordmark{}
20371 \begin_layout Standard
20384 MyEndf\SpecialChar \textcompwordmark{}
20387 endf\SpecialChar \textcompwordmark{}
20394 \begin_layout Standard
20405 renewenvironment{f\SpecialChar \textcompwordmark{}
20408 begin{SCf\SpecialChar \textcompwordmark{}
20411 end{SCf\SpecialChar \textcompwordmark{}
20415 \begin_layout Standard
20428 \begin_layout Standard
20441 f\SpecialChar \textcompwordmark{}
20450 \begin_layout Standard
20463 endf\SpecialChar \textcompwordmark{}
20466 MyEndf\SpecialChar \textcompwordmark{}
20470 \begin_layout Standard
20476 \begin_layout Standard
20477 The commands allow you to redefine the floats so that the caption is set
20479 For figure floats use the command
20482 \begin_layout Standard
20490 \begin_layout Standard
20491 in ERT before the float.
20492 Behind the float insert the command
20495 \begin_layout Standard
20503 \begin_layout Standard
20504 in ERT to get back to the original float definition.
20507 \begin_layout Standard
20508 For table floats use the corresponding commands
20511 \begin_layout Standard
20525 \begin_layout Standard
20526 Figure\InsetSpace ~
20528 \begin_inset LatexCommand ref
20529 reference "fig:cap-beside-fig"
20533 and Table\InsetSpace ~
20535 \begin_inset LatexCommand ref
20536 reference "tab:cap-beside-tab"
20540 are examples where the caption is set beside.
20543 \begin_layout Standard
20544 You can see in the examples that the caption text appears at the top of
20545 the floats for table floats and at the bottom for figure floats.
20546 To change this, you can use the command
20549 \begin_layout Standard
20554 sidecaptionvpos{float type}{placement}
20557 \begin_layout Standard
20558 in the document preamble or in ERT before the float.
20559 The float type is either
20567 , the placement can be
20568 \begin_inset Quotes eld
20576 \begin_inset Quotes erd
20580 \begin_inset Quotes eld
20588 \begin_inset Quotes erd
20592 \begin_inset Quotes eld
20600 \begin_inset Quotes erd
20604 To have for example the caption of figure floats vertically centered, use
20608 \begin_layout Standard
20613 sidecaptionvpos{f\SpecialChar \textcompwordmark{}
20617 \begin_layout Standard
20618 This was used for Figure\InsetSpace ~
20620 \begin_inset LatexCommand ref
20621 reference "fig:cap-beside-fig-2"
20628 \begin_layout Standard
20629 \begin_inset VSpace medskip
20632 For more information about the package
20636 we refer to its documentation
20637 \begin_inset LatexCommand cite
20645 \begin_layout Standard
20646 \begin_inset Note Greyedout
20649 \begin_layout Standard
20659 \begin_inset LatexCommand index
20660 name "LaTeX-packages ! hypcap"
20664 , described in section\InsetSpace ~
20666 \begin_inset LatexCommand ref
20667 reference "sub:Reference-Position"
20671 , has no effect on floats with the caption set beside.
20679 \begin_layout Standard
20683 \begin_layout Standard
20695 \begin_layout Standard
20696 \begin_inset Float figure
20701 \begin_layout Standard
20702 \begin_inset Graphics
20703 filename clipart/escher-lsd.eps
20705 scaleBeforeRotation
20712 \begin_layout Standard
20713 \begin_inset Caption
20715 \begin_layout Standard
20716 \begin_inset LatexCommand label
20717 name "fig:cap-beside-fig"
20721 This is a caption beside a figure.
20734 \begin_layout Standard
20738 \begin_layout Standard
20750 \begin_layout Standard
20751 \begin_inset Float table
20756 \begin_layout Standard
20757 \begin_inset Caption
20759 \begin_layout Standard
20760 \begin_inset LatexCommand label
20761 name "tab:cap-beside-tab"
20765 This is a caption beside a table.
20773 \begin_layout Standard
20774 \begin_inset Tabular
20775 <lyxtabular version="3" rows="4" columns="5">
20777 <column alignment="center" valignment="top" leftline="true" width="0">
20778 <column alignment="center" valignment="top" leftline="true" width="0">
20779 <column alignment="center" valignment="top" leftline="true" width="0">
20780 <column alignment="center" valignment="top" leftline="true" width="0">
20781 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
20782 <row topline="true">
20783 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20786 \begin_layout Standard
20792 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20795 \begin_layout Standard
20801 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20804 \begin_layout Standard
20810 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20813 \begin_layout Standard
20819 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20822 \begin_layout Standard
20829 <row topline="true">
20830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20833 \begin_layout Standard
20839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20842 \begin_layout Standard
20848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20851 \begin_layout Standard
20857 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20860 \begin_layout Standard
20866 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20869 \begin_layout Standard
20876 <row topline="true">
20877 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20880 \begin_layout Standard
20886 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20889 \begin_layout Standard
20895 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20898 \begin_layout Standard
20904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20907 \begin_layout Standard
20913 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20916 \begin_layout Standard
20923 <row topline="true" bottomline="true">
20924 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20927 \begin_layout Standard
20933 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20936 \begin_layout Standard
20942 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20945 \begin_layout Standard
20951 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20954 \begin_layout Standard
20960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20963 \begin_layout Standard
20982 \begin_layout Standard
20986 \begin_layout Standard
20998 \begin_layout Standard
21002 \begin_layout Standard
21006 sidecaptionvpos{figure}{c}
21012 \begin_inset Float figure
21017 \begin_layout Standard
21018 \begin_inset Graphics
21019 filename clipart/escher-lsd.eps
21021 scaleBeforeRotation
21028 \begin_layout Standard
21029 \begin_inset Caption
21031 \begin_layout Standard
21032 \begin_inset LatexCommand label
21033 name "fig:cap-beside-fig-2"
21037 This is a vertically centered caption beside a figure.
21050 \begin_layout Standard
21054 \begin_layout Standard
21066 \begin_layout Section
21068 \begin_inset LatexCommand label
21069 name "sec:Listings-of-Floats"
21074 \begin_inset LatexCommand index
21075 name "Floats ! Float Lists"
21082 \begin_layout Standard
21083 Similar to the the table of contents where the sections of the document
21084 are listed, there are listings for all float types, like the figures of
21086 You can insert them via the
21088 Insert\SpecialChar \menuseparator
21096 \begin_layout Standard
21097 The list entries are the float captions or its short title, the float number,
21098 and the page number where they appear in the document.
21101 \begin_layout Standard
21102 You can find the list of figures and tables at the end of this document.
21105 \begin_layout Chapter
21109 \begin_layout Section
21111 \begin_inset LatexCommand label
21112 name "sec:LyX-Notes"
21117 \begin_inset LatexCommand index
21118 name "Notes ! LyX Notes"
21125 \begin_layout Standard
21126 Notes are inserted with the toolbar button
21127 \begin_inset Graphics
21128 filename ../images/note-insert.xpm
21130 scaleBeforeRotation
21136 Insert\SpecialChar \menuseparator
21140 There are five types of notes:
21143 \begin_layout Description
21145 Note This note type is for internal notes that won't appear in the output.
21146 Its note-box looks like this:
21151 \begin_inset Graphics
21152 filename clipart/LyXNoteImageQt4.png
21155 scaleBeforeRotation
21160 \begin_inset Note Note
21163 \begin_layout Standard
21164 This is text in a note box that doesn't appear in the output.
21172 \begin_layout Description
21173 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
21174 ent, when you export the document to LaTeX via the menu
21176 File\SpecialChar \menuseparator
21177 Export\SpecialChar \menuseparator
21178 LaTeX (pdflatex) / (plain)
21181 Its note-box looks like this:
21186 \begin_inset Graphics
21187 filename clipart/CommentNoteImageQt4.png
21190 scaleBeforeRotation
21195 \begin_inset Note Comment
21198 \begin_layout Standard
21199 This is text in a note box that only appears as comment in LaTeX-files.
21207 \begin_layout Description
21208 Greyed\InsetSpace ~
21209 Out This note will appear in the output as grey text.
21210 Its note-box looks like this:
21215 \begin_inset Graphics
21216 filename clipart/GreyedOutNoteImageQt4.png
21219 scaleBeforeRotation
21229 \begin_layout Standard
21233 renewenvironment{lyxgreyedout}
21236 \begin_layout Standard
21240 textcolor[gray]{0.8}
21250 \begin_inset Note Greyedout
21253 \begin_layout Standard
21258 \begin_layout Standard
21259 This is an example footnote within a greyed out note.
21264 of a comment that appears in the output as grey text.
21273 \begin_layout Standard
21277 renewenvironment{lyxgreyedout}
21280 \begin_layout Standard
21294 \begin_inset Note Note
21297 \begin_layout Standard
21298 The greyed out note is here redefined to show it with the original LyX definitio
21299 n because greyed out notes are redefined in the preamble of this document,
21300 as described below, to have blue text.
21309 As you can see in the example, the first line of greyed out notes is a bit
21310 indented and greyed out notes can have footnotes.
21313 \begin_layout Description
21314 Framed This note will appear in the output as framed text.
21315 Its note-box looks like this:
21320 \begin_inset Graphics
21321 filename clipart/FramedNoteImageQt4.png
21324 scaleBeforeRotation
21329 \begin_inset Note Framed
21332 \begin_layout Standard
21333 This is text in a note box that appears framed in the output.
21338 In contrary to framed boxes
21342 \begin_layout Standard
21343 Framed boxes are described in section\InsetSpace ~
21345 \begin_inset LatexCommand ref
21346 reference "sec:Framed-Boxes"
21355 the frame uses always the whole text width and the note is set into its
21359 \begin_layout Description
21360 Shaded This note will appear in the output with red background color.
21361 Its note box looks like this:
21366 \begin_inset Graphics
21367 filename clipart/ShadedNoteImageQt4.png
21370 scaleBeforeRotation
21375 \begin_inset Note Shaded
21378 \begin_layout Standard
21379 This text in a note box appears in the output with red background.
21384 In contrary to colored boxes
21388 \begin_layout Standard
21389 Colored boxes are described in section\InsetSpace ~
21391 \begin_inset LatexCommand ref
21392 reference "sec:Colored-Boxes"
21401 the note uses always the whole text width and the note is set into its
21405 \begin_layout Standard
21406 \begin_inset VSpace bigskip
21409 When you use the toolbar button
21410 \begin_inset Graphics
21411 filename ../images/note-insert.xpm
21413 scaleBeforeRotation
21423 You can switch between the five note types by right-clicking on the note-box.
21428 If you want to turn existing text into a note, mark it and click on the
21444 \begin_layout Standard
21445 \begin_inset VSpace bigskip
21448 You can change the text color of the greyed out notes in the preamble with
21449 the following command:
21452 \begin_layout Standard
21457 renewenvironment{lyxgreyedout}
21463 \begin_layout Standard
21481 \begin_layout Standard
21482 The available colors and the method to define own colors is explained in
21483 section\InsetSpace ~
21485 \begin_inset LatexCommand ref
21486 reference "sec:Colored-Tables"
21493 \begin_layout Standard
21494 Notes that appear in blue in this document are set using greyed out notes
21498 \begin_layout Standard
21499 \begin_inset VSpace bigskip
21505 \begin_layout Standard
21514 notes can be set in the
21521 \begin_layout Standard
21522 The default frame width for
21526 notes is 0.4\InsetSpace \thinspace{}
21527 pt; it can be changed by changing the size
21534 The default space between the note content and the frame is 9\InsetSpace \thinspace{}
21536 be changed by changing the size
21543 For example the frame appearance of the following
21547 note is set with the ERT commands
21550 \begin_layout Standard
21560 \begin_layout Standard
21564 \begin_layout Standard
21576 \begin_inset Note Framed
21579 \begin_layout Standard
21593 \begin_layout Standard
21607 \begin_layout Standard
21608 \begin_inset VSpace bigskip
21614 \begin_layout Standard
21619 notes the default space between the note content and the note border is
21620 3\InsetSpace \thinspace{}
21621 pt; it can be changed by changing the size
21629 The default background color red can be changed with the command
21633 def\SpecialChar \textcompwordmark{}
21641 def\SpecialChar \textcompwordmark{}
21644 command is explained in section\InsetSpace ~
21646 \begin_inset LatexCommand ref
21647 reference "sec:Colored-Tables"
21655 \begin_layout Standard
21662 \SpecialChar \textcompwordmark{}
21667 requires the LaTeX-package
21671 in the preamble, see section\InsetSpace ~
21673 \begin_inset LatexCommand ref
21674 reference "sec:Colored-Boxes"
21686 \begin_layout Standard
21687 For example the appearance of the following
21691 note is set with the ERT commands
21694 \begin_layout Standard
21707 def\SpecialChar \textcompwordmark{}
21708 inecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21711 \begin_layout Standard
21715 \begin_layout Standard
21728 \begin_layout Standard
21732 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21738 \begin_inset Note Shaded
21741 \begin_layout Standard
21744 This is yellow text in a
21754 note with darkgreen background.
21763 \begin_layout Standard
21776 \begin_layout Standard
21780 definecolor{shadecolor}{rgb}{1,0,0}
21788 \begin_layout Section
21790 \begin_inset LatexCommand label
21791 name "sec:Footnotes"
21796 \begin_inset LatexCommand index
21797 name "Notes ! Footnotes"
21802 \begin_inset LatexCommand index
21810 \begin_layout Standard
21811 Footnotes can be inserted using the toolbar button
21812 \begin_inset Graphics
21813 filename ../images/footnote-insert.xpm
21815 scaleBeforeRotation
21821 Insert\SpecialChar \menuseparator
21833 then the following footnote-box:
21834 \begin_inset Graphics
21835 filename clipart/footnoteQt4.png
21837 scaleBeforeRotation
21845 where you can enter the footnote text.
21846 If you want to turn existing text into a footnote, mark it and click on
21862 \begin_layout Standard
21863 Here is an example footnote:
21871 \begin_layout Standard
21872 \begin_inset LatexCommand label
21873 name "foot:This-is-an"
21877 This is an example footnote.
21890 \begin_layout Standard
21894 newcounter{MyRepeatFoot}
21897 \begin_layout Standard
21901 setcounter{MyRepeatFoot}{
21911 \begin_layout Standard
21912 The footnote will appear in the output as a superscript number at the text
21913 position where the footnote box is placed.
21914 The footnote text is placed at the bottom of the current page.
21915 The footnote number is calculated by LaTeX, the numbers are consecutive.
21916 It depends on your document-class, if the footnote number is reset for
21920 \begin_layout Standard
21921 Footnotes can be referenced like floats: Insert a label into the footnote
21922 and cross-reference this label in the text as described in section\InsetSpace ~
21924 \begin_inset LatexCommand ref
21925 reference "sec:Referencing-Floats"
21931 This is a cross-reference of Footnote\InsetSpace ~
21933 \begin_inset LatexCommand ref
21934 reference "foot:This-is-an"
21941 \begin_layout Standard
21942 \begin_inset VSpace defskip
21945 To use footnotes within tables, you have to use minipages, see section\InsetSpace ~
21947 \begin_inset LatexCommand ref
21948 reference "sec:Minipages"
21953 Footnotes within longtables are described in section\InsetSpace ~
21955 \begin_inset LatexCommand ref
21956 reference "sub:Footnotes-in-Longtables"
21963 \begin_layout Standard
21964 \begin_inset VSpace defskip
21967 To create only a mark for a footnote, use the command
21971 footnotemark[number]
21974 This is used when you have the same annotation several times in a text
21975 but doesn't want to print the footnote text every time.
21978 the number of the repeating footnote while you are writing the text, you
21979 have to store its number.
21980 For the following footnote mark example, these commands were inserted in
21981 ERT behind Footnote\InsetSpace ~
21983 \begin_inset LatexCommand ref
21984 reference "foot:This-is-an"
21988 to store the footnote number:
21991 \begin_layout Standard
21996 newcounter{MyRepeatFoot}
22000 setcounter{MyRepeatFoot}{
22005 \begin_layout Standard
22006 The footnote mark was then created with this command:
22009 \begin_layout Standard
22019 \begin_layout Standard
22020 Here is an example footnote mark:
22028 \begin_layout Standard
22042 \begin_layout Subsection
22044 \begin_inset LatexCommand label
22045 name "sub:Footnote-Numbering"
22050 \begin_inset LatexCommand index
22051 name "Footnotes ! Numbering"
22058 \begin_layout Standard
22059 To reset the footnote number back to 1 after each section
22061 , add this command to your document preamble:
22064 \begin_layout Standard
22069 @addtoreset{footnote}{section}
22072 \begin_layout Standard
22073 \begin_inset VSpace bigskip
22076 The following preamble command changes the footnote numbering style to small
22080 \begin_layout Standard
22092 \begin_layout Standard
22096 \begin_layout Standard
22109 This is a footnote with roman numbering:
22113 \begin_layout Standard
22114 This is an example footnote with roman numbering.
22122 \begin_layout Standard
22123 To change the numbering style to capital roman numerals replace in the command
22138 \begin_inset Quotes eld
22142 \begin_inset Quotes erd
22145 footnotes with capital or small Latin letters use
22159 \begin_inset Quotes eld
22163 \begin_inset Quotes erd
22166 footnotes with symbols use
22175 \begin_layout Standard
22176 \begin_inset Note Greyedout
22179 \begin_layout Standard
22184 You can only number 26 footnotes with Latin letters, because this numbering
22185 is limited to single letters.
22193 \begin_inset Note Greyedout
22196 \begin_layout Standard
22201 You can only number 9 footnotes with symbols.
22209 \begin_layout Standard
22210 To return to the default numbering style when you changed to another one,
22223 in the command above.
22227 \begin_layout Standard
22243 \begin_layout Standard
22244 \begin_inset VSpace bigskip
22250 \begin_layout Standard
22251 If you want to have footnotes numbered in the scheme
22252 \begin_inset Quotes eld
22256 \begin_inset Quotes erd
22259 , add the following command to your document preamble:
22262 \begin_layout Standard
22267 numberwithin{footnote}{chapter}
22270 \begin_layout Standard
22271 To be able to use the command
22282 in the document settings the option
22292 \begin_layout Standard
22296 \begin_layout Standard
22300 numberwithin{footnote}{chapter}
22305 This is another example footnote:
22311 \begin_layout Standard
22312 This is a footnote numbered in the scheme
22313 \begin_inset Quotes eld
22317 \begin_inset Quotes erd
22331 \begin_layout Standard
22347 \begin_layout Standard
22348 \begin_inset Note Greyedout
22351 \begin_layout Standard
22362 always prints out the footnote number as arabic number; previous redefinitions
22363 to get non-arabic numbers are overwritten.
22371 \begin_layout Standard
22372 So to get for example the scheme
22373 \begin_inset Quotes eld
22379 \begin_inset Quotes erd
22382 , use this command instead of
22391 \begin_layout Standard
22405 \begin_layout Subsection
22407 \begin_inset LatexCommand index
22408 name "Footnotes ! Placement"
22415 \begin_layout Standard
22416 If you have several footnotes in one page, they appear without vertical
22417 space between them at the bottom of the page.
22418 To make them better readable you can e.\InsetSpace \thinspace{}
22420 add 1.5\InsetSpace \thinspace{}
22421 mm space with the following
22425 \begin_layout Standard
22447 \begin_layout Standard
22448 \begin_inset VSpace bigskip
22451 In a two-column document the footnotes appear at the bottom of every column,
22452 see Figure\InsetSpace ~
22454 \begin_inset LatexCommand ref
22455 reference "fig:Standard-footnote-placement"
22460 If the footnotes should only appear at the bottom of the right column,
22461 as in Figure\InsetSpace ~
22463 \begin_inset LatexCommand ref
22464 reference "fig:Footnote-placement-in"
22468 , use the LaTeX-package
22473 \begin_inset LatexCommand index
22474 name "LaTeX-packages ! ftnright"
22478 with this command in the document preamble:
22481 \begin_layout Standard
22486 usepackage{ftnright}
22489 \begin_layout Standard
22490 \begin_inset Float figure
22496 \begin_layout Standard
22500 \begin_layout Standard
22510 \begin_inset Graphics
22511 filename clipart/without_fntright.pdf
22513 scaleBeforeRotation
22521 \begin_layout Standard
22531 \begin_layout Standard
22532 \begin_inset Caption
22534 \begin_layout Standard
22535 \begin_inset LatexCommand label
22536 name "fig:Standard-footnote-placement"
22540 Standard footnote placement in two-column documents.
22553 \begin_layout Standard
22554 \begin_inset Float figure
22560 \begin_layout Standard
22564 \begin_layout Standard
22574 \begin_inset Graphics
22575 filename clipart/with_fntright.pdf
22577 scaleBeforeRotation
22585 \begin_layout Standard
22595 \begin_layout Standard
22596 \begin_inset Caption
22598 \begin_layout Standard
22599 \begin_inset LatexCommand label
22600 name "fig:Footnote-placement-in"
22604 Footnote placement in two-column documents when the LaTeX-package
22621 \begin_layout Standard
22622 \begin_inset VSpace bigskip
22625 In some scientific literature it is usual to collect the footnotes and print
22626 them in a separate paragraph at the the end of a section, like in Figure\InsetSpace ~
22628 \begin_inset LatexCommand ref
22629 reference "fig:Endnotes----footnotes"
22634 They are then so called
22635 \begin_inset Quotes eld
22639 \begin_inset Quotes erd
22643 To use endnotes instead of footnotes in your document, load the LaTeX-package
22649 \begin_inset LatexCommand index
22650 name "LaTeX-packages ! endnotes"
22654 with the document preamble lines
22657 \begin_layout Standard
22662 usepackage{endnotes}
22673 \begin_layout Standard
22674 To insert the collected footnotes, insert the command
22677 \begin_layout Standard
22685 \begin_layout Standard
22686 in ERT at the the end of a section or chapter.
22689 \begin_layout Standard
22690 \begin_inset Float figure
22695 \begin_layout Standard
22700 \begin_layout Standard
22710 \begin_inset Graphics
22711 filename clipart/endnotes.pdf
22712 scaleBeforeRotation
22720 \begin_layout Standard
22730 \begin_layout Standard
22731 \begin_inset Caption
22733 \begin_layout Standard
22734 \begin_inset LatexCommand label
22735 name "fig:Endnotes----footnotes"
22739 Endnotes -- footnotes are printed in a separate paragraph at the end of
22740 sections or chapters.
22753 \begin_layout Standard
22754 \begin_inset VSpace medskip
22757 The paragraph heading for the endnotes isn't automatically translated into
22758 the document language, this must be done manually.
22759 The following preamble command translate the default English name
22760 \begin_inset Quotes eld
22764 \begin_inset Quotes erd
22767 to the German translation
22768 \begin_inset Quotes eld
22772 \begin_inset Quotes erd
22778 \begin_layout Standard
22785 notesname}{Anmerkungen}
22788 \begin_layout Standard
22789 \begin_inset VSpace medskip
22792 The numbering of endnotes can be changed like the footnote numbering as
22793 described in section\InsetSpace ~
22795 \begin_inset LatexCommand ref
22796 reference "sub:Footnote-Numbering"
22800 ; just replace the command
22813 To reset the endnote number use the command
22819 as described in section\InsetSpace ~
22821 \begin_inset LatexCommand ref
22822 reference "sub:Footnote-Numbering"
22826 and replace the command parameter
22837 \begin_layout Standard
22838 To create only a mark for an endnote, use the command
22842 endnotemark[number]
22844 similar to the command
22850 , described in section\InsetSpace ~
22852 \begin_inset LatexCommand ref
22853 reference "sec:Footnotes"
22860 \begin_layout Standard
22861 \begin_inset VSpace bigskip
22864 Footnotes can also be placed in the page margin and the footnote text alignment
22865 can be changed, see the LaTeX-package
22870 \begin_inset LatexCommand index
22871 name "LaTeX-packages ! footmisc"
22876 \begin_inset LatexCommand cite
22881 for more information about this.
22884 \begin_layout Standard
22885 For various further footnote formatting issues have a look at LaTeX-books,
22887 \begin_inset LatexCommand cite
22888 key "latexcompanion,latexguide,latexbook"
22895 \begin_layout Section
22897 \begin_inset LatexCommand index
22898 name "Notes ! Margin Notes"
22905 \begin_layout Standard
22906 Margin notes look and behave in LyX like footnotes.
22907 They are inserted via the menu
22909 Insert\SpecialChar \menuseparator
22910 Marginal\InsetSpace ~
22913 or the toolbar button
22914 \begin_inset Graphics
22915 filename ../images/marginalnote-insert.xpm
22917 scaleBeforeRotation
22932 \begin_inset Quotes eld
22936 \begin_inset Quotes erd
22939 appears where you can enter the text of the margin note.
22942 \begin_layout Standard
22943 At the side is an example margin note.
22947 \begin_inset Marginal
22950 \begin_layout Standard
22951 This is a margin note.
22959 \begin_layout Standard
22960 Margin notes appear at the right side in single-sided documents.
22961 In double-sided documents they appear in the outer margin -- left on even
22962 pages, right on odd pages.
22963 The text of margin notes is aligned opposite to the outer margin -- right-align
22964 ed when the note appears in the left margin.
22965 The first line of the margin note is placed at the position of the text
22966 line where it is inserted in the document.
22969 \begin_layout Standard
22970 \begin_inset VSpace bigskip
22973 To place the margin note in the inner margin, add the command
22976 \begin_layout Standard
22984 \begin_layout Standard
22985 in ERT before a margin note.
22986 The new placement is valid for all following margin notes.
22990 \begin_layout Standard
23000 \begin_inset Marginal
23003 \begin_layout Standard
23004 This is a margin note in the inner margin.
23016 \begin_inset Note Greyedout
23019 \begin_layout Standard
23024 There is often not enough space in the inner margin so that the notes are
23025 not correctly displayed in the output.
23033 \begin_layout Standard
23034 To return to the default placement insert the command
23037 \begin_layout Standard
23045 \begin_layout Standard
23050 \begin_layout Standard
23060 \begin_inset Note Greyedout
23063 \begin_layout Standard
23068 The command is ignored when it is within a paragraph where also the command
23083 \begin_layout Standard
23084 \begin_inset VSpace bigskip
23091 \begin_inset Marginal
23094 \begin_layout Standard
23095 AVeryLongMarginParWord that isn't hyphenated.
23103 Similar to the case described in section\InsetSpace ~
23105 \begin_inset LatexCommand ref
23106 reference "sub:Multiple-Lines-in"
23110 , long words cannot be hyphenated when they are the first word in a margin
23112 To avoid this, insert the command
23115 \begin_layout Standard
23123 \begin_layout Standard
23124 in ERT before the word
23128 \begin_inset Marginal
23131 \begin_layout Standard
23135 \begin_layout Standard
23144 AVeryLongMarginParWord that is hyphenated.
23152 \begin_layout Standard
23153 \begin_inset VSpace bigskip
23159 \begin_layout Standard
23160 \begin_inset Note Greyedout
23163 \begin_layout Standard
23168 Margin notes can normally not be used inside tables, floats, and footnotes.
23176 \begin_layout Standard
23177 \begin_inset VSpace bigskip
23183 \begin_layout Standard
23187 \begin_layout Standard
23197 \begin_inset Note Note
23200 \begin_layout Standard
23201 The following section will only be displayed when you have the LaTeX-package
23214 \begin_layout Standard
23215 This restriction can be evaded by using the LaTeX-package
23220 \begin_inset LatexCommand index
23221 name "LaTeX-packages ! marginnote"
23226 By adding these two lines to your document preamble, the command used by
23227 LyX for margin notes is redefined to use the command provided by the
23234 \begin_layout Standard
23239 usepackage{marginnote}
23250 \begin_layout Standard
23251 This is also used in this document because
23255 has another useful feature: You can set a vertical offset for the note.
23256 This is often needed when too many margin notes are too close together
23257 or for a better page layout.
23258 The offset is set in LyX as ERT directly behind the margin note in the
23262 \begin_layout Standard
23268 \begin_layout Standard
23269 where the offset is a length with one of the units listed in Table\InsetSpace ~
23271 \begin_inset LatexCommand ref
23272 reference "tab:Units"
23277 A negative value shifts the note up, a positive value shifts it down.
23281 For example the margin note beside this text line is shifted up 1.5\InsetSpace \thinspace{}
23284 \begin_inset Quotes eld
23294 \begin_inset Quotes erd
23298 \begin_inset Marginal
23301 \begin_layout Standard
23302 This margin note is shifted up 1.5\InsetSpace \thinspace{}
23303 cm from its original position.
23315 \begin_layout Standard
23325 \begin_layout Standard
23326 \begin_inset VSpace medskip
23333 you can also change the alignment of the text in the margin note.
23334 For example the commands
23337 \begin_layout Standard
23344 raggedleftmarginnote}{
23352 raggedrightmarginnote}{
23357 \begin_layout Standard
23358 set the alignment to centered.
23363 raggedleftmarginnote
23365 denotes margin notes that appear at the left side.
23372 \begin_layout Standard
23378 raggedleftmarginnote}{
23383 \begin_layout Standard
23389 raggedrightmarginnote}{
23397 \begin_inset Marginal
23400 \begin_layout Standard
23401 The text of this margin note is centered.
23412 \begin_layout Standard
23419 raggedleftmarginnote}{
23427 raggedrightmarginnote}{
23436 \begin_layout Standard
23442 raggedleftmarginnote}{
23447 \begin_layout Standard
23453 raggedrightmarginnote}{
23463 \begin_layout Standard
23464 \begin_inset VSpace medskip
23467 For the other features of
23471 we refer to its documentation
23472 \begin_inset LatexCommand cite
23480 \begin_layout Standard
23481 \begin_inset VSpace bigskip
23484 You can adjust the layout of margin notes by changing its definition.
23485 To create for example a header for all margin notes with the underlined,
23486 sans-serif, and bold header text
23487 \begin_inset Quotes eld
23499 \begin_inset Quotes erd
23502 , add this to your document preamble:
23505 \begin_layout Standard
23528 \begin_layout Standard
23545 underbar{Attention!}}}%
23551 \begin_layout Standard
23569 \begin_layout Standard
23576 \begin_layout Standard
23587 \begin_layout Standard
23598 \begin_layout Standard
23606 underbar{Attention!}}}%
23609 \begin_layout Standard
23623 \begin_inset Marginal
23626 \begin_layout Standard
23627 This is a margin note with a defined heading.
23639 \begin_layout Standard
23653 \begin_layout Standard
23670 \begin_inset Note Note
23673 \begin_layout Standard
23674 The margin note format is changed only for this example.
23682 \begin_layout Standard
23686 \begin_layout Standard
23696 \begin_inset Note Note
23699 \begin_layout Standard
23700 The following will be displayed when the LaTeX-package
23712 \begin_layout Standard
23713 You need to install the LaTeX-package
23717 to see the following part of this section in the output.
23720 \begin_layout Standard
23724 \begin_layout Standard
23736 \begin_layout Chapter
23740 \begin_layout Section
23742 \begin_inset LatexCommand index
23743 name "Boxes ! Introduction"
23750 \begin_layout Standard
23751 Boxes are used to format a block of text.
23752 Boxes can be used to write documents with multiple languages, see section\InsetSpace ~
23754 \begin_inset LatexCommand ref
23755 reference "sec:Minipages"
23759 , to frame texts, see section\InsetSpace ~
23761 \begin_inset LatexCommand ref
23762 reference "sec:Framed-Boxes"
23766 , to prevent words to be hyphenated, see section\InsetSpace ~
23768 \begin_inset LatexCommand ref
23769 reference "sec:Prevent-Hyphenation"
23773 , to align text, see section\InsetSpace ~
23775 \begin_inset LatexCommand ref
23776 reference "sub:Vertical-Alignment"
23780 , or to set the background color of texts, see section\InsetSpace ~
23782 \begin_inset LatexCommand ref
23783 reference "sec:Colored-Boxes"
23790 \begin_layout Standard
23791 Boxes can be inserted with the menu
23793 Insert\SpecialChar \menuseparator
23797 A grey box with the label
23802 \begin_inset Graphics
23803 filename clipart/BoxInsetDefaultQt4.png
23805 scaleBeforeRotation
23809 , will be inserted.
23810 The box type can be specified by right-clicking on the box.
23811 The appearing box dialog offers the
23829 is the default for new boxes and is explained in section\InsetSpace ~
23831 \begin_inset LatexCommand ref
23832 reference "sec:Minipages"
23840 is described in section\InsetSpace ~
23842 \begin_inset LatexCommand ref
23843 reference "sec:Parboxes"
23850 \begin_layout Standard
23851 Boxes aren't numbered and can therefore not be referenced like floats or
23855 \begin_layout Standard
23856 \begin_inset Note Greyedout
23859 \begin_layout Standard
23864 Due to a bug in LyX you have to insert a protected space behind a box when
23865 you want to separate in a line the box from the following text with a space.
23873 \begin_layout Standard
23874 \begin_inset Note Greyedout
23877 \begin_layout Standard
23882 Boxes must not be the item in an
23898 \begin_layout Standard
23899 \begin_inset Note Greyedout
23902 \begin_layout Standard
23907 For an unknown reason you can only set the
23916 when you use a framed box.
23922 type and without frames are explained in section\InsetSpace ~
23924 \begin_inset LatexCommand ref
23925 reference "sec:Prevent-Hyphenation"
23937 \begin_layout Section
23939 \begin_inset LatexCommand label
23940 name "sec:Box-Dialog"
23945 \begin_inset LatexCommand index
23946 name "Boxes ! Box Dialog"
23951 \begin_inset LatexCommand index
23952 name "Boxes ! Alignment"
23959 \begin_layout Standard
23960 In the box dialog you can adjust the box geometry in the fields
23969 The available units for the geometry are explained in Table\InsetSpace ~
23971 \begin_inset LatexCommand ref
23972 reference "tab:Units"
23981 offers the following additional sizes:
23984 \begin_layout Description
23985 Depth This is the plain text
23986 \begin_inset Quotes eld
23990 \begin_inset Quotes erd
23994 It ignores the total depth when there are multiple text lines in the box:
24001 \begin_inset Box Boxed
24010 height_special "depth"
24013 \begin_layout Standard
24015 Box height set to 1\InsetSpace \thinspace{}
24028 \begin_layout Description
24029 Height This is the heigth of the text that is inside the box.
24030 A value of e.\InsetSpace \thinspace{}
24032 2 for this size will set the box heigth to 2 times the text
24034 \begin_inset Box Boxed
24043 height_special "height"
24046 \begin_layout Standard
24048 Box height set to 2\InsetSpace \thinspace{}
24057 \begin_layout Description
24059 Height This is the Height\InsetSpace \thinspace{}
24060 +\InsetSpace \thinspace{}
24062 \begin_inset Box Boxed
24071 height_special "totalheight"
24074 \begin_layout Standard
24076 Box height set to 1\InsetSpace \thinspace{}
24086 \begin_layout Description
24087 Width This set the width of the box as heigth:
24088 \begin_inset Box Boxed
24097 height_special "width"
24100 \begin_layout Standard
24102 Box height set to 1\InsetSpace \thinspace{}
24111 \begin_layout Standard
24112 \begin_inset VSpace bigskip
24115 When you have chosen an
24120 , the vertical box alignment can be:
24123 \begin_layout Description
24124 Top This is an example text line.
24126 \begin_inset Box Boxed
24135 height_special "totalheight"
24138 \begin_layout Standard
24140 This box is top-aligned.
24146 This is an example text line.
24149 \begin_layout Description
24150 Middle This is an example text line.
24152 \begin_inset Box Boxed
24161 height_special "totalheight"
24164 \begin_layout Standard
24166 This box is middle-aligned.
24172 This is an example text line.
24175 \begin_layout Description
24176 Bottom This is an example text line.
24178 \begin_inset Box Boxed
24187 height_special "totalheight"
24190 \begin_layout Standard
24192 This box is bottom-aligned.
24198 This is an example text line.
24201 \begin_layout Standard
24202 The horizontal box alignment can be set via LyX's paragraph dialog when
24203 you set the box into its own paragraph.
24206 \begin_layout Standard
24207 \begin_inset VSpace bigskip
24210 When you have chosen an
24215 , the box content can be vertical aligned to:
24218 \begin_layout Description
24219 top This is an example text line.
24221 \begin_inset Box Boxed
24230 height_special "totalheight"
24233 \begin_layout Standard
24235 This box text is top-aligned.
24241 This is an example text line.
24244 \begin_layout Description
24245 middle This is an example text line.
24247 \begin_inset Box Boxed
24256 height_special "totalheight"
24259 \begin_layout Standard
24261 This box text is middle-aligned.
24267 This is an example text line.
24270 \begin_layout Description
24271 bottom This is an example text line.
24273 \begin_inset Box Boxed
24282 height_special "totalheight"
24285 \begin_layout Standard
24287 This box text is bottom-aligned.
24293 This is an example text line.
24296 \begin_layout Description
24297 stretch This is an example text line.
24299 \begin_inset Box Boxed
24308 height_special "totalheight"
24311 \begin_layout Standard
24316 \begin_layout Standard
24321 \begin_layout Standard
24329 This is an example text line.
24332 \begin_layout Standard
24333 To stretch the box content, it must consist of more than one paragraph.
24334 In the example above every text line is in an own paragraph.
24337 \begin_layout Standard
24338 \begin_inset VSpace bigskip
24341 To align the box content horizontally you can use LyX's paragraph dialog
24342 when you have chosen an
24350 \begin_layout Standard
24352 \begin_inset Box Boxed
24361 height_special "totalheight"
24364 \begin_layout Standard
24369 \begin_layout Standard
24374 \begin_layout Standard
24384 \begin_layout Standard
24385 If you haven't set an
24390 , you can align the box content horizontally in the box dialog.
24393 \begin_layout Standard
24395 \begin_inset Box Boxed
24404 height_special "totalheight"
24407 \begin_layout Standard
24409 This box text is horizontally stretched.
24417 \begin_layout Section
24419 \begin_inset LatexCommand label
24420 name "sec:Framed-Boxes"
24425 \begin_inset LatexCommand index
24426 name "Boxes ! Frames"
24433 \begin_layout Standard
24434 The frame style of the box can be specified in the box-dialog in the drop-down
24440 The following frame types are possible:
24443 \begin_layout Description
24444 Rectangular\InsetSpace ~
24445 box This draws a rectangle frame around the box.
24446 The frame line thickness has the size of
24454 \begin_inset Box Boxed
24463 height_special "totalheight"
24466 \begin_layout Standard
24476 \begin_layout Description
24479 thin This draws an oval frame around the box.
24480 The frame line thickness has the size 0.4\InsetSpace \thinspace{}
24483 \begin_inset Box ovalbox
24492 height_special "totalheight"
24495 \begin_layout Standard
24505 \begin_layout Description
24508 thick This draws an oval frame around the box.
24509 The frame line thickness has the size 0.8\InsetSpace \thinspace{}
24512 \begin_inset Box Ovalbox
24521 height_special "totalheight"
24524 \begin_layout Standard
24534 \begin_layout Description
24535 Shadow\InsetSpace ~
24536 box This draws a rectangle frame with a shadow around the box.
24537 The frame line thickness has the size of
24543 , the shadow has a width of 4\InsetSpace \thinspace{}
24546 \begin_inset Box Shadowbox
24555 height_special "totalheight"
24558 \begin_layout Standard
24568 \begin_layout Description
24569 Double\InsetSpace ~
24570 box This draws a double-line rectangle frame around the box.
24571 The line thickness of the inner frame is 0.75\InsetSpace \thinspace{}
24578 , the thickness of the outer frame is 1.5\InsetSpace \thinspace{}
24586 The distance between the lines is 1.5\InsetSpace \thinspace{}
24593 \InsetSpace \thinspace{}
24594 +\InsetSpace \thinspace{}
24595 0.5\InsetSpace \thinspace{}
24598 \begin_inset Box Doublebox
24607 height_special "totalheight"
24610 \begin_layout Standard
24620 \begin_layout Standard
24621 \begin_inset VSpace bigskip
24624 LyX's box label will change to the used frame style when you set a frame.
24625 To be able to use the different frame styles, the LaTeX-package
24630 \begin_inset LatexCommand index
24631 name "LaTeX-packages ! fancybox"
24638 \begin_layout Standard
24639 \begin_inset VSpace bigskip
24642 The default value for the size
24648 is 0.4\InsetSpace \thinspace{}
24650 It can be changed with the following command in ERT to e.\InsetSpace \thinspace{}
24652 2\InsetSpace \thinspace{}
24656 \begin_layout Standard
24666 \begin_layout Standard
24670 \begin_layout Standard
24682 \begin_inset Box Boxed
24691 height_special "totalheight"
24694 \begin_layout Standard
24696 Rectangular box with
24702 \InsetSpace \thinspace{}
24703 =\InsetSpace \thinspace{}
24704 2\InsetSpace \thinspace{}
24714 \begin_layout Standard
24728 \begin_layout Standard
24729 \begin_inset VSpace bigskip
24732 The space between the frame and the box content is for all frame styles
24733 by default 3\InsetSpace \thinspace{}
24735 You can change it by setting the length
24742 For example the command
24745 \begin_layout Standard
24755 \begin_layout Standard
24756 sets the value to 10\InsetSpace \thinspace{}
24757 pt, like for the following box:
24760 \begin_layout Standard
24764 \begin_layout Standard
24776 \begin_inset Box Boxed
24785 height_special "totalheight"
24788 \begin_layout Standard
24790 Rectangular box with
24796 \InsetSpace \thinspace{}
24797 =\InsetSpace \thinspace{}
24798 10\InsetSpace \thinspace{}
24808 \begin_layout Standard
24822 \begin_layout Standard
24823 \begin_inset VSpace bigskip
24826 The diameter of the round corners of the oval boxes can be set with the
24837 \begin_layout Standard
24845 \begin_layout Standard
24846 sets the diameter to 1\InsetSpace \thinspace{}
24851 \begin_layout Standard
24859 \begin_layout Standard
24860 sets the diameter to
24862 num\InsetSpace \thinspace{}
24863 ×\InsetSpace \thinspace{}
24864 minimum(width and heigth of box)
24876 \begin_layout Standard
24880 \begin_layout Standard
24890 \begin_inset Box Ovalbox
24899 height_special "totalheight"
24902 \begin_layout Standard
24910 \InsetSpace \thinspace{}
24911 =\InsetSpace \thinspace{}
24912 1.5\InsetSpace \thinspace{}
24922 \begin_layout Standard
24934 \begin_layout Standard
24935 \begin_inset VSpace bigskip
24938 The size of the shadow can be adjusted by changing the length
24945 It it set to 2\InsetSpace \thinspace{}
24946 pt for the following box by this command:
24949 \begin_layout Standard
24959 \begin_layout Standard
24963 \begin_layout Standard
24975 \begin_inset Box Shadowbox
24984 height_special "totalheight"
24987 \begin_layout Standard
24995 \InsetSpace \thinspace{}
24996 =\InsetSpace \thinspace{}
24997 2\InsetSpace \thinspace{}
25007 \begin_layout Standard
25021 \begin_layout Standard
25022 \begin_inset VSpace bigskip
25025 Changed lengths and widths are valid for all boxes following the commands
25029 \begin_layout Section
25031 \begin_inset LatexCommand label
25032 name "sec:Minipages"
25037 \begin_inset LatexCommand index
25038 name "Boxes ! Minipages"
25045 \begin_layout Standard
25046 Minipages are treated by LaTeX as pages within pages and can therefore for
25047 example have their own footnotes.
25050 \begin_layout Standard
25051 Minipages are useful when you write documents with different languages.
25054 \begin_layout Standard
25055 Below are two example minipages side by side.
25056 Their width is set to 45\InsetSpace \thinspace{}
25057 col% and they are separated by a horizontal fill,
25058 that was inserted via the menu
25060 Insert\SpecialChar \menuseparator
25061 Special\InsetSpace ~
25062 Formatting\SpecialChar \menuseparator
25063 Horizontal\InsetSpace ~
25069 \begin_layout Standard
25070 \begin_inset Box Frameless
25079 height_special "totalheight"
25082 \begin_layout Standard
25085 Dies ist ein deutscher Text.
25086 Dies ist ein deutscher Text.
25087 Dies ist ein deutscher Text.
25088 Dies ist ein deutscher Text.
25089 Dies ist ein deutscher Text.
25090 Dies ist ein deutscher Text.
25091 Dies ist ein deutscher Text.
25092 Dies ist ein deutscher Text.
25093 Dies ist ein deutscher Text.
25094 Dies ist ein deutscher Text.
25095 Dies ist ein deutscher Text.
25096 Dies ist ein deutscher Text.
25097 Dies ist ein deutscher Text
25101 \begin_layout Standard
25104 Dies ist eine deutsche Fußnote.
25110 Dies ist ein deutscher Text.
25111 Dies ist ein deutscher Text.
25119 \begin_inset Box Frameless
25128 height_special "totalheight"
25131 \begin_layout Standard
25132 This is an English Text.
25133 This is an English Text.
25134 This is an English Text.
25135 This is an English Text.
25136 This is an English Text.
25137 This is an English Text.
25138 This is an English Text.
25139 This is an English Text.
25140 This is an English Text.
25141 This is an English Text.
25142 This is an English Text.
25143 This is an English Text.
25144 This is an English Text.
25145 This is an English Text.
25146 This is an English Text.
25147 This is an English Text.
25151 \begin_layout Standard
25152 This is an English footnote.
25157 This is an English Text.
25166 \begin_layout Standard
25167 \begin_inset VSpace bigskip
25170 Another application for minipages are footnotes within tables.
25171 Due to a LaTeX restriction footnotes within tables doesn't appear at the
25172 bottom of the current page.
25173 But when you put the table with the footnote to a minipage, the footnote
25174 will appear at its bottom, numbered with Latin letters.
25175 The footnote number is reset to 1 in every minipage but not outside the
25179 \begin_layout Standard
25180 The footnote of this table doesn't appear:
25181 \begin_inset Tabular
25182 <lyxtabular version="3" rows="3" columns="4">
25184 <column alignment="center" valignment="top" leftline="true" width="0pt">
25185 <column alignment="center" valignment="top" leftline="true" width="0pt">
25186 <column alignment="center" valignment="top" leftline="true" width="0pt">
25187 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25188 <row topline="true">
25189 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25192 \begin_layout Standard
25198 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25201 \begin_layout Standard
25207 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25210 \begin_layout Standard
25215 \begin_layout Standard
25216 This is a footnote within a table.
25226 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25229 \begin_layout Standard
25236 <row topline="true">
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
25255 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25258 \begin_layout Standard
25264 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25267 \begin_layout Standard
25274 <row topline="true" bottomline="true">
25275 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25278 \begin_layout Standard
25284 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25287 \begin_layout Standard
25293 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25296 \begin_layout Standard
25302 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25305 \begin_layout Standard
25319 \begin_layout Standard
25321 \begin_inset Box Frameless
25330 height_special "totalheight"
25333 \begin_layout Standard
25335 \begin_inset Tabular
25336 <lyxtabular version="3" rows="3" columns="4">
25338 <column alignment="center" valignment="top" leftline="true" width="0pt">
25339 <column alignment="center" valignment="top" leftline="true" width="0pt">
25340 <column alignment="center" valignment="top" leftline="true" width="0pt">
25341 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25342 <row topline="true">
25343 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25346 \begin_layout Standard
25352 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25355 \begin_layout Standard
25361 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25364 \begin_layout Standard
25369 \begin_layout Standard
25370 This is a footnote within a table.
25380 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25383 \begin_layout Standard
25390 <row topline="true">
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
25409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25412 \begin_layout Standard
25418 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25421 \begin_layout Standard
25428 <row topline="true" bottomline="true">
25429 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25432 \begin_layout Standard
25438 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25441 \begin_layout Standard
25447 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25450 \begin_layout Standard
25456 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25459 \begin_layout Standard
25478 \begin_layout Standard
25479 \begin_inset VSpace bigskip
25482 The document-wide paragraph settings are ignored within minipages.
25483 That means that there will be no space between paragraphs in minipages
25484 although you set it to e.\InsetSpace \thinspace{}
25490 in the document settings.
25493 \begin_layout Standard
25494 Minipages can also be used to set a background color for text parts, see
25495 section\InsetSpace ~
25497 \begin_inset LatexCommand ref
25498 reference "sub:Color-for-Paragraphs"
25505 \begin_layout Standard
25506 \begin_inset Note Greyedout
25509 \begin_layout Standard
25514 You cannot have floats or margin notes inside minipages but minipages can
25515 be used inside tables, floats, and other boxes.
25523 \begin_layout Section
25525 \begin_inset LatexCommand label
25526 name "sec:Parboxes"
25531 \begin_inset LatexCommand index
25532 name "Boxes ! Parboxes"
25539 \begin_layout Standard
25540 Parboxes are very similar to minipages with the difference that they cannot
25542 The main difference to minipages is that minipages are in contrary to parboxes
25543 no real boxes but LaTeX-environments.
25546 \begin_layout Standard
25548 \begin_inset Box Frameless
25557 height_special "totalheight"
25560 \begin_layout Standard
25561 This a text within a parbox.
25562 This a text within a parbox.
25565 \begin_layout Standard
25566 This footnote won't appear:
25570 \begin_layout Standard
25571 This footnote is inside a parbox and will therefore not appear.
25584 \begin_layout Section
25585 Boxes for Words and Characters
25586 \begin_inset LatexCommand index
25587 name "Boxes ! for Characters"
25594 \begin_layout Subsection
25595 Prevent Hyphenation
25596 \begin_inset LatexCommand label
25597 name "sec:Prevent-Hyphenation"
25602 \begin_inset LatexCommand index
25603 name "Boxes ! to Prevent Hyphenation"
25610 \begin_layout Standard
25611 You can use a special kind of boxes to prevent words or text to be hyphenated.
25614 e is an example text:
25617 \begin_layout Standard
25618 This line is an example to show how you can prevent the hyphenation of
25619 \begin_inset Quotes eld
25623 \begin_inset Quotes erd
25629 \begin_layout Standard
25630 To prevent the hyphenation of the word
25631 \begin_inset Quotes eld
25635 \begin_inset Quotes erd
25641 \begin_layout Standard
25649 \begin_layout Standard
25650 in ERT before the word.
25651 Behind the word insert a closing brace
25652 \begin_inset Quotes eld
25660 \begin_inset Quotes erd
25667 \begin_layout Standard
25679 \begin_layout Standard
25680 This is the result:
25683 \begin_layout Standard
25684 This line is an example to show how you can prevent the hyphenation of
25688 \begin_layout Standard
25698 \begin_inset Quotes eld
25702 \begin_inset Quotes erd
25709 \begin_layout Standard
25719 \begin_layout Standard
25720 You can alternatively set the command
25721 \begin_inset Quotes eld
25731 \begin_inset Quotes grd
25734 as ERT directly before the word:
25737 \begin_layout Standard
25738 This line is an example to show how you can prevent the hyphenation of
25739 \begin_inset Quotes eld
25746 \begin_layout Standard
25756 \begin_inset Quotes erd
25762 \begin_layout Standard
25763 Of course the word now protrudes over the side margin.
25764 To avoid this, add via the menu
25766 Insert\SpecialChar \menuseparator
25767 Special\InsetSpace ~
25768 Formatting\SpecialChar \menuseparator
25776 ) a line break before the word:
25779 \begin_layout Standard
25780 This line is an example to show how you can prevent the hyphenation of
25786 \begin_layout Standard
25796 \begin_inset Quotes eld
25800 \begin_inset Quotes erd
25807 \begin_layout Standard
25817 \begin_layout Subsection
25819 \begin_inset LatexCommand label
25820 name "sub:Vertical-Alignment"
25825 \begin_inset LatexCommand index
25826 name "Boxes ! for Vertical Alignment"
25831 \begin_inset LatexCommand index
25832 name "Boxes ! Raiseboxes"
25839 \begin_layout Standard
25840 With the help of the command
25846 you can align words, characters or other boxes vertically to the surrounding
25854 is used with the following scheme:
25857 \begin_layout Standard
25862 raisebox{lift}[height][depth]{box content}
25865 \begin_layout Standard
25866 The lift can be a positive value to raise the box or a negative value to
25870 \begin_layout Standard
25871 To align for example the word
25872 \begin_inset Quotes eld
25876 \begin_inset Quotes erd
25879 so that the bottom of the
25880 \begin_inset Quotes eld
25884 \begin_inset Quotes erd
25888 \begin_inset Quotes eld
25892 \begin_inset Quotes erd
25895 is at the baseline, insert the command
25898 \begin_layout Standard
25908 \begin_layout Standard
25909 in ERT before the word.
25910 Behind the word insert a closing brace
25911 \begin_inset Quotes eld
25919 \begin_inset Quotes erd
25924 This is the result:
25927 \begin_layout Standard
25928 This is a text line with the word
25932 \begin_layout Standard
25944 \begin_inset Quotes eld
25948 \begin_inset Quotes erd
25955 \begin_layout Standard
25965 \begin_layout Standard
25966 \begin_inset VSpace bigskip
25969 When you raise or lower characters in a line, the line distance will be
25973 \begin_layout Standard
25974 This is a text line with the word
25978 \begin_layout Standard
25990 \begin_inset Quotes eld
25994 \begin_inset Quotes erd
26001 \begin_layout Standard
26010 This is a text line with the word
26014 \begin_layout Standard
26024 \begin_inset Quotes eld
26028 \begin_inset Quotes erd
26035 \begin_layout Standard
26045 \begin_layout Standard
26046 If you want to prevent this for a certain reason, set the box height to
26051 \begin_layout Standard
26061 \begin_layout Standard
26062 This is a text line with the word
26066 \begin_layout Standard
26078 \begin_inset Quotes eld
26082 \begin_inset Quotes erd
26089 \begin_layout Standard
26098 This is a text line with the word
26102 \begin_layout Standard
26106 raisebox{0.5cm}[0pt]{
26112 \begin_inset Quotes eld
26116 \begin_inset Quotes erd
26123 \begin_layout Standard
26133 \begin_layout Section
26135 \begin_inset LatexCommand label
26136 name "sec:Colored-Boxes"
26141 \begin_inset LatexCommand index
26142 name "Boxes ! Color"
26149 \begin_layout Subsection
26151 \begin_inset LatexCommand index
26152 name "Color ! for Text"
26159 \begin_layout Standard
26160 To color the background of text the text must be put into a so called
26161 \begin_inset Quotes eld
26165 \begin_inset Quotes erd
26169 This requires that the LaTeX-package
26174 \begin_inset LatexCommand index
26175 name "LaTeX-packages ! color"
26179 is loaded in the document preamble with the command
26182 \begin_layout Standard
26187 @ifundef\SpecialChar \textcompwordmark{}
26194 \begin_layout Standard
26205 usepackage{color}}{}
26208 \begin_layout Standard
26213 will be loaded automatically by LyX when you color text
26217 \begin_layout Standard
26218 To avoid that it is loaded twice the command
26222 @ifundef\SpecialChar \textcompwordmark{}
26233 \begin_layout Standard
26234 \begin_inset VSpace medskip
26237 Colorboxes are created with the command
26244 This will be used with the following scheme:
26247 \begin_layout Standard
26252 colorbox{color}{box content}
26255 \begin_layout Standard
26256 The box content can also be a box and colorboxes can also be within other
26260 \begin_layout Standard
26261 The following colors are predefined:
26300 You can also define your own color as described in section\InsetSpace ~
26302 \begin_inset LatexCommand ref
26303 reference "sec:Colored-Tables"
26310 \begin_layout Standard
26311 To have e.\InsetSpace \thinspace{}
26313 a red background for a word, insert the command
26316 \begin_layout Standard
26324 \begin_layout Standard
26325 before the word in ERT.
26326 Behind the word insert a closing brace
26327 \begin_inset Quotes eld
26335 \begin_inset Quotes erd
26340 This is the result:
26343 \begin_layout Standard
26344 This is a line where the word
26348 \begin_layout Standard
26358 \begin_inset Quotes eld
26362 \begin_inset Quotes erd
26369 \begin_layout Standard
26376 has a red background.
26379 \begin_layout Standard
26380 \begin_inset VSpace bigskip
26383 If you would have the box frame in a different color, you can use the command
26390 with the following scheme:
26393 \begin_layout Standard
26398 fcolorbox{frame color}{box color}{box content}
26401 \begin_layout Standard
26415 The frame thickness and the space between the frame and the box content
26416 can be adjusted with the lengths
26428 , respectively, as described in section\InsetSpace ~
26430 \begin_inset LatexCommand ref
26431 reference "sec:Framed-Boxes"
26438 \begin_layout Standard
26439 For the following example the command
26442 \begin_layout Standard
26447 fcolorbox{cyan}{magenta}{
26450 \begin_layout Standard
26454 \begin_layout Standard
26455 Here is an example where the frame line thickness was set to 1\InsetSpace \thinspace{}
26462 \begin_layout Standard
26477 \begin_layout Standard
26481 fcolorbox{cyan}{magenta}{
26486 This is text within a colored, framed box.
26490 \begin_layout Standard
26500 \begin_layout Standard
26501 \begin_inset VSpace bigskip
26504 Of course you can also have colored text inside a colorbox:
26510 \begin_layout Standard
26514 fcolorbox{cyan}{magenta}{
26521 This is colored text within a colored, framed box.
26527 \begin_layout Standard
26538 \begin_layout Standard
26552 \begin_layout Standard
26555 \begin_inset VSpace medskip
26561 \begin_layout Standard
26562 \begin_inset Note Greyedout
26565 \begin_layout Standard
26570 Text in colorboxes cannot have line breaks.
26571 To color multiple text lines or paragraphs, use a box inside a colorbox
26572 as described in the following.
26580 \begin_layout Subsection
26581 Color for Paragraphs
26582 \begin_inset LatexCommand label
26583 name "sub:Color-for-Paragraphs"
26588 \begin_inset LatexCommand index
26589 name "Color ! for Paragraphs"
26596 \begin_layout Standard
26597 To set the background color for more than one text line, put the text into
26599 Before the minipage insert the
26608 \begin_layout Standard
26616 \begin_layout Standard
26618 Behind the minipage insert a closing brace
26619 \begin_inset Quotes eld
26627 \begin_inset Quotes erd
26633 \begin_layout Standard
26637 \begin_layout Standard
26641 colorbox{lightgrey}{
26647 \begin_inset Box Frameless
26656 height_special "totalheight"
26659 \begin_layout Standard
26660 This is text with background color.
26661 This is text with background color.
26664 \begin_layout Standard
26665 \begin_inset VSpace defskip
26668 The text can have footnotes
26672 \begin_layout Standard
26673 Another example footnote
26678 and can include tables and figures.
26681 \begin_layout Standard
26683 \begin_inset Tabular
26684 <lyxtabular version="3" rows="3" columns="3">
26686 <column alignment="center" valignment="top" leftline="true" width="0">
26687 <column alignment="center" valignment="top" leftline="true" width="0">
26688 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
26689 <row topline="true">
26690 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26693 \begin_layout Standard
26699 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26702 \begin_layout Standard
26708 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26711 \begin_layout Standard
26718 <row topline="true">
26719 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26722 \begin_layout Standard
26728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26731 \begin_layout Standard
26733 \begin_inset Quotes erd
26741 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26744 \begin_layout Standard
26751 <row topline="true" bottomline="true">
26752 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26755 \begin_layout Standard
26761 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26764 \begin_layout Standard
26770 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26773 \begin_layout Standard
26793 \begin_layout Standard
26803 \begin_layout Section
26804 URLs (Uniform Resource Locators)
26805 \begin_inset LatexCommand index
26813 \begin_layout Standard
26814 Links to web pages or email addresses can be inserted via the menu
26816 Insert\SpecialChar \menuseparator
26820 The appearing URL dialog has two fields; the
26828 field for the URL description, which will be typeset as plain text immediately
26832 \begin_layout Standard
26833 Here is an example URL:
26834 \begin_inset LatexCommand url
26835 name "LyX's homepage"
26836 target "http://www.lyx.org"
26843 \begin_layout Standard
26846 Generate\InsetSpace ~
26849 in the URL dialog does nothing.
26850 This relict will be removed in the next LyX-version.
26853 \begin_layout Standard
26854 You cannot change the style of the link text.
26859 field will have the default text style of the document while the text of
26864 field will have the style
26865 \begin_inset Quotes eld
26873 \begin_inset Quotes erd
26879 \begin_layout Standard
26880 When you use the LaTeX-package
26885 \begin_inset LatexCommand index
26886 name "LaTeX-packages ! hyperref"
26890 to link cross-references in the output, URLs will automatically become
26891 clickable hyperlinks in DVI and PDF-output.
26894 \begin_layout Standard
26895 \begin_inset Note Greyedout
26898 \begin_layout Standard
26903 When you use the following characters: "%", "#", "^", you have to write
26904 them with a preceding backslash, e.\InsetSpace \thinspace{}
26907 \begin_inset Quotes eld
26913 \begin_inset Quotes erd
26917 URLs must not end with a backslash.
26925 \begin_layout Standard
26926 \begin_inset VSpace bigskip
26929 To create real hyperlinks without the force to write the link location to
26930 the text, you can use the command
26933 \begin_layout Standard
26938 href{link location}{link text}
26941 \begin_layout Standard
26943 To get for example a link to LyX's web page, write the command
26946 \begin_layout Standard
26951 href{http://www.lyx.org}{
26954 \begin_layout Standard
26956 Insert after the command the link text
26957 \begin_inset Quotes eld
26961 \begin_inset Quotes erd
26964 as normal text followed by a closing brace
26965 \begin_inset Quotes eld
26973 \begin_inset Quotes erd
26977 This is the result:
26981 \begin_layout Standard
26985 href{http://www.lyx.org}{
26994 \begin_layout Standard
27004 \begin_layout Standard
27005 To link to email addresses, add the prefix
27006 \begin_inset Quotes eld
27014 \begin_inset Quotes erd
27017 to the link location:
27023 \begin_layout Standard
27027 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's documentation}{
27032 lyx-docs mailing list
27036 \begin_layout Standard
27046 \begin_layout Standard
27053 instead of LyX's URL box has the advantage that you can specify the text
27054 style of the link text like for all other text parts.
27055 You can then set hyphenation points and forced linebreaks to have long
27056 link text broken at the page margin.
27057 You are furthermore able to change the text style for all URLs in your
27058 document with an option in
27062 's load command and the restrictions mentioned above doesn't apply for
27071 \begin_layout Chapter
27073 \begin_inset LatexCommand index
27074 name "External Stuff"
27081 \begin_layout Standard
27084 Insert\SpecialChar \menuseparator
27087 you can insert external material to your document.
27091 \begin_layout Description
27093 Document Another LyX document; its content is directly inserted to your
27097 \begin_layout Description
27099 Text A text document; every of its text lines is inserted to your document
27103 \begin_layout Description
27107 Lines A text document; its text lines are inserted as they
27109 Empty text lines creates a new paragraph in your document.
27112 \begin_layout Description
27113 External\InsetSpace ~
27114 Material Files in various formats.
27117 \begin_layout Description
27119 Document LyX or LaTeX-documents.
27122 \begin_layout Section
27124 \begin_inset LatexCommand index
27125 name "External Stuff ! External Material"
27132 \begin_layout Standard
27133 The external material feature allows you to insert files to your document
27134 without converting them previously to a format that can be read by the
27135 document output format because LyX takes care of needed conversions.
27136 This is similar to images that can be inserted in various image formats
27140 \begin_layout Standard
27141 External material can be inserted via the
27145 dialog that is accessible with the menu
27147 Insert\SpecialChar \menuseparator
27148 File\SpecialChar \menuseparator
27149 External\InsetSpace ~
27153 Currently the following file types (
27160 \begin_layout Description
27161 ChessDiagram This template supports chess position diagrams made with the
27166 \begin_layout Standard
27170 href{http://en.wikipedia.org/wiki/XBoard}{
27183 \begin_layout Standard
27193 \begin_layout Description
27194 Date This inserts the date in the form
27199 This is a date inserted as external material:
27200 \begin_inset External
27208 The date is not shown within LyX, only in the output.
27209 There are two other methods of inserting a date: Via menu
27211 Insert\SpecialChar \menuseparator
27214 and with the LaTeX command
27221 The different methods are compared in Table\InsetSpace ~
27223 \begin_inset LatexCommand ref
27224 reference "tab:Comparison-of-the"
27231 \begin_layout Description
27232 LilyPond This template is used for music notation typeset with the program
27236 \begin_layout Standard
27249 \begin_layout Standard
27253 href{http://en.wikipedia.org/wiki/LilyPond}{
27266 \begin_layout Standard
27274 \begin_inset Note Note
27277 \begin_layout Standard
27284 breaks the line while the remaining text in the line is stretched to the
27293 \begin_layout Description
27294 RasterImage This can be used for bitmap images.
27295 Nearly all popular image formats are supported.
27296 The image can be treated in the
27300 dialog like the images that are usually included via the
27304 dialog as described in section\InsetSpace ~
27306 \begin_inset LatexCommand ref
27307 reference "sec:Graphics-Dialog"
27312 The difference is that only raster images are allowed, that means that
27313 PDF and EPS-images are not supported.
27316 \begin_layout Description
27317 XFig This template supports images created with the program
27321 \begin_layout Standard
27325 href{http://en.wikipedia.org/wiki/Xfig}{
27338 \begin_layout Standard
27348 \begin_layout Standard
27349 \begin_inset Float table
27355 \begin_layout Standard
27356 \begin_inset Caption
27358 \begin_layout Standard
27359 \begin_inset LatexCommand label
27360 name "tab:Comparison-of-the"
27364 Comparison of the date input methods.
27372 \begin_layout Standard
27374 \begin_inset Tabular
27375 <lyxtabular version="3" rows="4" columns="4">
27377 <column alignment="center" valignment="top" leftline="true" width="0">
27378 <column alignment="center" valignment="top" leftline="true" width="0">
27379 <column alignment="center" valignment="top" leftline="true" width="0">
27380 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27381 <row topline="true">
27382 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27385 \begin_layout Standard
27391 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27394 \begin_layout Standard
27397 External Material\SpecialChar \menuseparator
27403 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27406 \begin_layout Standard
27409 Insert\SpecialChar \menuseparator
27415 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27418 \begin_layout Standard
27429 <row topline="true">
27430 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27433 \begin_layout Standard
27439 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27442 \begin_layout Standard
27448 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27451 \begin_layout Standard
27457 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27460 \begin_layout Standard
27467 <row topline="true">
27468 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27471 \begin_layout Standard
27477 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27480 \begin_layout Standard
27486 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27489 \begin_layout Standard
27495 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27498 \begin_layout Standard
27505 <row topline="true" bottomline="true">
27506 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27509 \begin_layout Standard
27515 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27518 \begin_layout Standard
27524 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27527 \begin_layout Standard
27533 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27536 \begin_layout Standard
27555 \begin_layout Standard
27556 When you use the option
27568 dialog, only the path to the inserted file is shown in the output.
27571 material is displayed in LyX either as box like this:
27572 \begin_inset Graphics
27573 filename clipart/ExternalMaterialQt4.png
27575 scaleBeforeRotation
27579 or as image, depending on the setting in the
27591 \begin_layout Standard
27598 manual explains how you can define your own templates.
27601 \begin_layout Section
27603 \begin_inset LatexCommand label
27604 name "sec:Child-Documents"
27609 \begin_inset LatexCommand index
27610 name "External Stuff ! Child Documents"
27615 \begin_inset LatexCommand index
27616 name "Files ! Include"
27623 \begin_layout Standard
27624 Child documents are used when you have a long document consisting of several
27625 larger parts or sections.
27626 For maintenance it is often useful and sometimes even required to split
27627 the document in several files that can be revised separately.
27628 The different documents are then the so called child documents and a master
27629 document connects them to print the full document or parts of it.
27632 \begin_layout Standard
27633 Included documents are displayed in LyX as a box like this:
27634 \begin_inset Graphics
27635 filename clipart/ChildDocumentQt4.png
27637 scaleBeforeRotation
27641 To include child documents to a master document use the menu
27643 Insert\SpecialChar \menuseparator
27644 File\SpecialChar \menuseparator
27649 A dialog pops up where you can choose between four include methods:
27652 \begin_layout Description
27653 Include You can include LyX and LaTeX-documents.
27662 dialog, the included documents will be opened in LyX in a new file tab
27663 so that you can modify it.
27668 \begin_layout Standard
27669 Here is a child document inserted using
27674 \begin_inset Include \include{DummyDocument1.lyx}
27682 \begin_layout Standard
27683 The section numbering includes the sections of the included files in the
27684 order they are inserted in the master document.
27685 The included example document has for example a subsection that is numbered
27686 as subsection of this section.
27687 Labels of included documents can be referenced: Subsection\InsetSpace ~
27689 \begin_inset LatexCommand ref
27690 reference "sub:External-Subsection-1"
27697 \begin_layout Standard
27698 The preamble of the child document is ignored, only the preamble of the
27699 master document is used.
27700 Included documents are inserted starting on a new page and end with a pagebreak.
27703 \begin_layout Standard
27704 With the LaTeX-command
27710 you can specify which included child documents are processed when the output
27712 This is useful when you are perhaps only working on a certain chapter of
27713 your large document as this saves compiling time.
27720 is inserted to the master document preamble.
27721 It takes a comma-separated list of the filenames as argument, e.g.
27724 \begin_layout Standard
27729 includeonly{chapter1,chapter5}
27732 \begin_layout Standard
27733 will only process the included files named
27734 \begin_inset Quotes eld
27738 \begin_inset Quotes erd
27742 \begin_inset Quotes eld
27746 \begin_inset Quotes erd
27750 \begin_inset Quotes eld
27754 \begin_inset Quotes erd
27760 \begin_layout Standard
27761 \begin_inset Note Greyedout
27764 \begin_layout Standard
27769 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
27770 w the document in case that the child document uses another document class
27771 than the master document as this will lead to unexpected outputs.
27779 \begin_layout Description
27780 Input This method is very similar to the Include method.
27781 The differences are:
27785 \begin_layout Itemize
27786 Input files don't start with a new page and don't end with a pagebreak.
27789 \begin_layout Itemize
27790 Input files can be previewed in LyX when
27792 Instant\InsetSpace ~
27795 is enabled in LyX's preferences under
27799 feel\SpecialChar \menuseparator
27805 \begin_layout Itemize
27816 \begin_layout Standard
27817 Here is a child document inserted using
27822 \begin_inset Include \input{DummyDocument2.lyx}
27830 \begin_layout Description
27831 Verbatim With this method every text file can be included.
27832 The file is shown in the output with its source code, no command used in
27833 the text is invoked.
27834 You can use the option
27836 Mark spaces in output
27838 that displays the character
27839 \begin_inset Quotes eld
27846 \begin_layout Standard
27856 \begin_inset Quotes erd
27859 for every space character in the source code.
27860 The difference to the method via the menu
27862 Insert\SpecialChar \menuseparator
27863 File\SpecialChar \menuseparator
27867 is that the document content is not shown in LyX.
27870 \begin_layout Standard
27871 Here is a child document inserted as Verbatim:
27872 \begin_inset Include \verbatiminput{DummyTextDocument.txt}
27878 \begin_inset VSpace bigskip
27881 Here is a child document inserted as Verbatim using the
27883 Mark spaces in output
27886 \begin_inset Include \verbatiminput*{DummyTextDocument.txt}
27894 \begin_layout Standard
27895 \begin_inset VSpace bigskip
27901 \begin_layout Standard
27902 \begin_inset Note Greyedout
27905 \begin_layout Standard
27910 As you can see in the examples above, the text of the documents included
27915 is not broken at the end of the document lines.
27923 \begin_layout Description
27924 Listings This type is described in chapter\InsetSpace ~
27926 \begin_inset LatexCommand ref
27927 reference "cha:Program-Code-Listings"
27934 \begin_layout Standard
27935 \begin_inset Note Greyedout
27938 \begin_layout Standard
27943 Including the same document twice in a document using different methods
27944 could cause LaTeX-problems.
27952 \begin_layout Chapter
27953 Program Code Listings
27954 \begin_inset LatexCommand label
27955 name "cha:Program-Code-Listings"
27960 \begin_inset LatexCommand index
27966 \begin_inset LatexCommand index
27967 name "Program Code"
27972 \begin_inset LatexCommand index
27973 name "Floats ! Listings"
27980 \begin_layout Standard
27981 To include and typeset program code you can use the
27985 inset that can be inserted via the menu
27987 Insert\SpecialChar \menuseparator
27996 \begin_inset LatexCommand index
27997 name "LaTeX-packages ! listings"
28001 provides a powerful and flexible way to insert program source code to your
28005 \begin_layout Standard
28006 When right-clicking on a listings inset a dialog pops up where you can set
28007 the listings format.
28010 \begin_layout Standard
28011 By default, a listing starts a new paragraph in the output.
28012 The placement option
28014 Inline\InsetSpace ~
28017 prints the listing inline like this:
28018 \begin_inset listings
28019 lstparams "language={C++}"
28023 \begin_layout Standard
28036 creates a listings float where you can specify the placement options
28037 \begin_inset Quotes eld
28045 \begin_inset Quotes erd
28049 \begin_inset Quotes eld
28057 \begin_inset Quotes erd
28061 \begin_inset Quotes eld
28069 \begin_inset Quotes erd
28073 \begin_inset Quotes eld
28081 \begin_inset Quotes erd
28084 corresponding to the float placement options described in section\InsetSpace ~
28086 \begin_inset LatexCommand ref
28087 reference "sec:Float-Placement"
28092 The placement options can be mixed and are inserted without any separation,
28093 e.\InsetSpace \thinspace{}
28096 \begin_inset Quotes eld
28104 \begin_inset Quotes erd
28109 \begin_inset Quotes eld
28113 \begin_inset Quotes erd
28116 has sometimes no effect, but you don't need to use the
28120 option in this case as also non-float listings can have captions and be
28124 \begin_layout Standard
28125 You can add captions to listings with the menu
28127 Insert\SpecialChar \menuseparator
28131 Listings can be referenced like floats: Listing\InsetSpace ~
28133 \begin_inset LatexCommand ref
28134 reference "lst:Example-Listing"
28141 \begin_layout Standard
28142 \begin_inset listings
28143 lstparams "language=Python"
28147 \begin_layout Standard
28149 \begin_inset Caption
28151 \begin_layout Standard
28152 \begin_inset LatexCommand label
28153 name "lst:Example-Listing"
28157 Example Listing float
28162 # Example listing float
28165 \begin_layout Standard
28170 \begin_layout Standard
28172 'this is a python function'
28175 \begin_layout Standard
28185 \begin_layout Standard
28186 When you have set a programming language in the listings dialog, the keywords
28187 of this language will be recognized and specially typeset in the output.
28188 In the example listings the Python keyword
28189 \begin_inset Quotes eld
28193 \begin_inset Quotes erd
28196 is recognized and printed bold in the output.
28199 \begin_layout Standard
28200 \begin_inset Note Greyedout
28203 \begin_layout Standard
28208 If you don't get bold keywords when using typewriter fonts, your typewriter
28209 font probably doesn't provide a bold shape.
28210 In this case select a different one in the menu
28212 Document\SpecialChar \menuseparator
28213 Settings\SpecialChar \menuseparator
28225 provide bold shapes.)
28233 \begin_layout Standard
28239 of the listings dialog you can specify the line numbering style.
28240 You can insert a number to specify which lines are numbered to the field
28246 When you insert e.g.
28248 \begin_inset Quotes eld
28252 \begin_inset Quotes erd
28255 , only every 3rd line will be numbered.
28258 \begin_layout Standard
28259 You can furthermore specify a range of lines, only these will then appear
28263 Extended\InsetSpace ~
28266 should be used when you use national characters like the German umlauts
28269 Here is an example listing with left line numbering, step
28271 \begin_inset Quotes eld
28275 \begin_inset Quotes erd
28279 \begin_inset Quotes eld
28283 \begin_inset Quotes erd
28287 \begin_inset Quotes eld
28290 Extended\InsetSpace ~
28292 \begin_inset Quotes erd
28296 \begin_inset Quotes eld
28302 \begin_inset Quotes erd
28305 , range lines 3\InsetSpace \thinspace{}
28306 -\InsetSpace \thinspace{}
28310 \begin_layout Standard
28311 \begin_inset listings
28312 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
28316 \begin_layout Standard
28321 \begin_layout Standard
28323 'this is a python function'
28326 \begin_layout Standard
28331 \begin_layout Standard
28336 \begin_layout Standard
28338 'This is a German word: Tschüß'
28341 \begin_layout Standard
28346 \begin_layout Standard
28351 \begin_layout Standard
28353 'this is a python function'
28356 \begin_layout Standard
28366 \begin_layout Standard
28367 \begin_inset Note Greyedout
28370 \begin_layout Standard
28375 Due to a bug in the
28379 package the line numbering is shifted by a line by every previous listing.
28380 That's the reason why the lines 2 and 5 are numbered in the above listing
28381 and not the lines 3 and 6.
28389 \begin_layout Standard
28390 \begin_inset VSpace bigskip
28396 \begin_layout Standard
28397 It is also possible to print lines from a file as listing.
28398 To do this, use the menu
28400 Insert\SpecialChar \menuseparator
28401 File\SpecialChar \menuseparator
28404 and choose the type
28412 \begin_layout Standard
28413 The other child document types are described in section\InsetSpace ~
28415 \begin_inset LatexCommand ref
28416 reference "sec:Child-Documents"
28425 In the child document dialog you can specify the listing parameters in
28427 To show a list of all available parameters, type in a question mark
28428 \begin_inset Quotes eld
28432 \begin_inset Quotes erd
28438 \begin_layout Standard
28439 To reference child document listings, write a label text into the corresponding
28440 field of the child document dialog.
28441 The label can then be referenced using the menu
28443 Insert\SpecialChar \menuseparator
28449 \begin_layout Standard
28450 Listing\InsetSpace ~
28452 \begin_inset LatexCommand ref
28453 reference "lst:file-listing"
28457 is an example for a listing of a file; there the lines 10\InsetSpace \thinspace{}
28458 -\InsetSpace \thinspace{}
28463 \begin_layout Standard
28464 \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]
28472 \begin_layout Standard
28473 \begin_inset VSpace bigskip
28479 \begin_layout Standard
28480 Global listings settings can be set in the
28482 Document\SpecialChar \menuseparator
28483 Settings\SpecialChar \menuseparator
28487 To get there a list of available options, type in a question mark
28488 \begin_inset Quotes eld
28492 \begin_inset Quotes erd
28497 Listings\InsetSpace ~
28503 \begin_layout Standard
28504 For more information about the
28508 package, we refer to its documentation
28509 \begin_inset LatexCommand cite
28517 \begin_layout Standard
28523 \begin_layout Chapter
28525 Units available in LyX
28526 \begin_inset LatexCommand index
28532 \begin_inset LatexCommand label
28533 name "cha:Units-available-in"
28540 \begin_layout Standard
28541 To understand the units described in this documentation, Table\InsetSpace ~
28543 \begin_inset LatexCommand ref
28544 reference "tab:Units"
28548 explains all units available in LyX.
28551 \begin_layout Standard
28552 \begin_inset Float table
28558 \begin_layout Standard
28559 \begin_inset Caption
28561 \begin_layout Standard
28562 \begin_inset LatexCommand label
28575 \begin_layout Standard
28576 \begin_inset VSpace medskip
28582 \begin_layout Standard
28584 \begin_inset Tabular
28585 <lyxtabular version="3" rows="20" columns="2">
28587 <column alignment="center" valignment="top" leftline="true" width="0">
28588 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
28589 <row topline="true" bottomline="true">
28590 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28593 \begin_layout Standard
28599 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28602 \begin_layout Standard
28609 <row topline="true">
28610 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28613 \begin_layout Standard
28619 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28622 \begin_layout Standard
28629 <row topline="true">
28630 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28633 \begin_layout Standard
28639 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28642 \begin_layout Standard
28649 <row topline="true">
28650 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28653 \begin_layout Standard
28659 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28662 \begin_layout Standard
28669 <row topline="true">
28670 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28673 \begin_layout Standard
28679 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28682 \begin_layout Standard
28683 point (72.27\InsetSpace \thinspace{}
28684 pt = 1\InsetSpace \thinspace{}
28691 <row topline="true">
28692 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28695 \begin_layout Standard
28701 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28704 \begin_layout Standard
28705 pica (1\InsetSpace \thinspace{}
28706 pc = 12\InsetSpace \thinspace{}
28713 <row topline="true">
28714 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28717 \begin_layout Standard
28723 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28726 \begin_layout Standard
28727 scaled point (65536\InsetSpace \thinspace{}
28728 sp = 1\InsetSpace \thinspace{}
28735 <row topline="true">
28736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28739 \begin_layout Standard
28745 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28748 \begin_layout Standard
28749 big point (72\InsetSpace \thinspace{}
28750 bp = 1\InsetSpace \thinspace{}
28757 <row topline="true">
28758 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28761 \begin_layout Standard
28767 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28770 \begin_layout Standard
28771 didot (1\InsetSpace \thinspace{}
28773 \begin_inset Formula $\approx$
28776 0.376\InsetSpace \thinspace{}
28783 <row topline="true">
28784 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28787 \begin_layout Standard
28793 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28796 \begin_layout Standard
28797 cicero (1\InsetSpace \thinspace{}
28798 cc = 12\InsetSpace \thinspace{}
28805 <row topline="true">
28806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28809 \begin_layout Standard
28815 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28818 \begin_layout Standard
28819 % of original image width
28825 <row topline="true">
28826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28829 \begin_layout Standard
28835 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28838 \begin_layout Standard
28845 <row topline="true">
28846 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28849 \begin_layout Standard
28855 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28858 \begin_layout Standard
28865 <row topline="true">
28866 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28869 \begin_layout Standard
28875 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28878 \begin_layout Standard
28885 <row topline="true">
28886 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28889 \begin_layout Standard
28895 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28898 \begin_layout Standard
28905 <row topline="true">
28906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28909 \begin_layout Standard
28915 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28918 \begin_layout Standard
28925 <row topline="true">
28926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28929 \begin_layout Standard
28935 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28938 \begin_layout Standard
28945 <row topline="true">
28946 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28949 \begin_layout Standard
28955 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28958 \begin_layout Standard
28969 <row topline="true">
28970 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28973 \begin_layout Standard
28979 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28982 \begin_layout Standard
28993 <row topline="true" bottomline="true">
28994 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28997 \begin_layout Standard
29003 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29006 \begin_layout Standard
29007 math unit (1\InsetSpace \thinspace{}
29008 mu = 1/18\InsetSpace \thinspace{}
29027 \begin_layout Chapter
29028 Output File Formats with Graphics
29029 \begin_inset LatexCommand label
29030 name "cha:Output-File-Formats"
29037 \begin_layout Section
29039 \begin_inset LatexCommand index
29040 name "File Formats ! DVI"
29045 \begin_inset LatexCommand index
29046 name "DVI|see{File Formats}"
29053 \begin_layout Standard
29054 This file type has the extension
29055 \begin_inset Quotes eld
29063 \begin_inset Quotes erd
29068 \begin_inset Quotes eld
29072 \begin_inset Quotes erd
29075 (DVI), because it is completely portable; you can move them from one machine
29076 to another without needing to do any sort of conversion.
29077 At the time when this file-format was developed, this was no matter of
29079 DVIs are used for quick previews and as pre-stage for other output formats,
29083 \begin_layout Standard
29084 \begin_inset Note Greyedout
29087 \begin_layout Standard
29092 DVI-files doesn't contain images, they will only be a linked.
29097 So don't forget this, if you move your
29101 file to another computer.
29102 This property can also slow down your computer when you view the DVI.
29103 Because the DVI-viewer has to convert the image in the background to make
29104 it visible when you scroll in the DVI.
29105 So we recommend to use PDF for files with many images.
29108 \begin_layout Standard
29109 You can export your document to DVI by using the menu
29111 File\SpecialChar \menuseparator
29112 Export\SpecialChar \menuseparator
29116 You can view your document as DVI via the
29120 menu or by using the toolbar button
29121 \begin_inset Graphics
29122 filename ../images/buffer-view_dvi.xpm
29124 scaleBeforeRotation
29131 \begin_layout Section
29133 \begin_inset LatexCommand label
29134 name "sec:PostScript"
29139 \begin_inset LatexCommand index
29140 name "File Formats ! PostScript"
29145 \begin_inset LatexCommand index
29146 name "PostScript|see{File Formats}"
29153 \begin_layout Standard
29154 This file type has the extension
29155 \begin_inset Quotes eld
29163 \begin_inset Quotes erd
29167 PostScript was developed by the company
29171 as printer language.
29172 The file contains therefore commands that the printer uses to print the
29174 PostScript can be seen as
29175 \begin_inset Quotes eld
29178 programming language
29179 \begin_inset Quotes erd
29182 ; you can calculate with it and draw diagrams and images
29186 \begin_layout Standard
29187 If you are interested to learn more about this, have a look at the LaTeX-package
29193 \begin_inset LatexCommand cite
29204 Due to this ability, the files are often bigger than PDFs.
29207 \begin_layout Standard
29208 PostScript can only contain images in the format
29209 \begin_inset Quotes eld
29212 Encapsulated PostScript
29213 \begin_inset Quotes erd
29216 (EPS, file extension
29217 \begin_inset Quotes eld
29225 \begin_inset Quotes erd
29229 As LyX allows you to use any known image format in your document, it has
29230 to convert images in the background to EPS.
29231 If you have e.g 50 images in your document, LyX has to do 50 conversions
29232 whenever you view or export your document.
29233 This will slow down your work flow with LyX drastically.
29234 So if you plan to use PostScript, you can insert your images directly as
29235 EPS to avoid this problem.
29238 \begin_layout Standard
29239 You can export your document to PostScript using the menu
29241 File\SpecialChar \menuseparator
29242 Export\SpecialChar \menuseparator
29246 You can view your document as PostScript via the
29250 menu or by using the toolbar button
29251 \begin_inset Graphics
29252 filename ../images/buffer-view_ps.xpm
29254 scaleBeforeRotation
29261 \begin_layout Section
29263 \begin_inset LatexCommand label
29269 \begin_inset LatexCommand index
29270 name "File Formats ! PDF"
29275 \begin_inset LatexCommand index
29283 \begin_layout Standard
29284 This file type has the extension
29285 \begin_inset Quotes eld
29293 \begin_inset Quotes erd
29298 \begin_inset Quotes eld
29301 Portable Document Format
29302 \begin_inset Quotes erd
29305 (PDF) is developed by
29309 as derivative from PostScript.
29310 It is more compressed and it uses much less commands than PostScript.
29312 \begin_inset Quotes eld
29316 \begin_inset Quotes erd
29319 implies, it can be processed at any computer system and the printed output
29320 looks exactly the same.
29323 \begin_layout Standard
29324 PDF can contain images in its own PDF format, in the format
29325 \begin_inset Quotes eld
29328 Joint Photographic Experts Group
29329 \begin_inset Quotes erd
29332 (JPG, file extension
29333 \begin_inset Quotes eld
29341 \begin_inset Quotes erd
29345 \begin_inset Quotes eld
29353 \begin_inset Quotes erd
29356 ), and in the format
29357 \begin_inset Quotes eld
29360 Portable Network Graphics
29361 \begin_inset Quotes erd
29364 (PNG, file extension
29365 \begin_inset Quotes eld
29373 \begin_inset Quotes erd
29377 Nevertheless you can use any other image format, because LyX converts them
29378 in the background to one of these formats.
29379 But as described in the section about PostScript, the image conversion
29380 will slow down your work flow.
29381 So it is recommended to use images in one of the three mentioned formats.
29384 \begin_layout Standard
29385 You can export your document to PDF via the menu
29387 File\SpecialChar \menuseparator
29390 in three different ways:
29393 \begin_layout Description
29395 (ps2pdf) This uses the program
29399 that creates a PDF from a PostScript-version of your file.
29400 The PostScript-version is produced by the program
29404 which uses a DVI-version as intermediate step.
29405 So this export variant consist of three conversions.
29408 \begin_layout Description
29410 (dvipdfm) This uses the program
29414 that converts your file in the background to DVI and in a second step to
29418 \begin_layout Description
29420 (pdflatex) This uses the program
29424 that converts your file directly to PDF.
29427 \begin_layout Standard
29428 It is recommended to use
29437 supports all features of actual PDF-versions, is quick and works stable
29443 is not under development and therefore a bit outdated.
29446 \begin_layout Standard
29447 You can view your document as PDF via the
29451 menu or by using the toolbar button
29452 \begin_inset Graphics
29453 filename ../images/buffer-view_pdf2.xpm
29455 scaleBeforeRotation
29471 \begin_layout Chapter
29472 Explanation of Equation\InsetSpace ~
29474 \begin_inset LatexCommand eqref
29480 \begin_inset LatexCommand label
29481 name "cha:Explanation-of-Equation"
29488 \begin_layout Standard
29494 \begin_inset Formula $W_{\mathrm{tot\, n}}$
29497 can be calculated to
29500 \begin_layout Standard
29501 \begin_inset Formula \begin{equation}
29502 W_{\mathrm{tot}\, n}=n\cdot(W_{g\, n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}\end{equation}
29509 \begin_layout Standard
29511 \begin_inset Formula $W_{g\, n}$
29514 is the given width of all cells.
29521 is the LaTeX-length between the cell text and the cell border, its default
29522 value is 6\InsetSpace \thinspace{}
29530 is the thickness of the cell border line, the default is 0.4\InsetSpace \thinspace{}
29534 \begin_layout Standard
29535 Following equation\InsetSpace ~
29537 \begin_inset LatexCommand eqref
29538 reference "eq:Wtot_n"
29542 , the total width of a multicolumn
29543 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
29549 \begin_layout Standard
29550 \begin_inset Formula \begin{equation}
29551 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
29558 \begin_layout Standard
29559 By setting equation\InsetSpace ~
29561 \begin_inset LatexCommand eqref
29562 reference "eq:Wtot_n"
29567 \begin_inset LatexCommand eqref
29568 reference "eq:Wtot_mult"
29572 equal we can calculate the needed given width
29573 \begin_inset Formula $W_{g\, n}$
29580 columns are spanned, so that each column has a total width of
29581 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
29587 \begin_layout Standard
29588 \begin_inset Formula \begin{equation}
29589 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
29596 \begin_layout Bibliography
29597 \begin_inset LatexCommand bibitem
29598 key "latexcompanion"
29602 Frank Mittelbach and Michel Goossens:
29604 The LaTeX Companion Second Edition.
29607 Addison-Wesley, 2004
29610 \begin_layout Bibliography
29611 \begin_inset LatexCommand bibitem
29616 Helmut Kopka and Patrick W.
29619 A Guide to LaTeX Fourth Edition.
29622 Addison-Wesley, 2003
29625 \begin_layout Bibliography
29626 \begin_inset LatexCommand bibitem
29633 LaTeX: A Document Preparation System.
29636 Addison-Wesley, second edition, 1994
29639 \begin_layout Bibliography
29640 \begin_inset LatexCommand bibitem
29649 \begin_layout Standard
29653 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf}
29663 \begin_layout Standard
29670 of the LaTeX-package
29675 \begin_inset LatexCommand index
29676 name "LaTeX-packages ! booktabs"
29683 \begin_layout Bibliography
29684 \begin_inset LatexCommand bibitem
29693 \begin_layout Standard
29697 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf}{
29706 \begin_layout Standard
29713 of the LaTeX-package
29718 \begin_inset LatexCommand index
29719 name "LaTeX-packages ! caption"
29726 \begin_layout Bibliography
29727 \begin_inset LatexCommand bibitem
29736 \begin_layout Standard
29740 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/anleitung.pdf}
29750 \begin_layout Standard
29757 of the LaTeX-package
29762 \begin_layout Bibliography
29763 \begin_inset LatexCommand bibitem
29772 \begin_layout Standard
29776 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf}
29786 \begin_layout Standard
29793 of the LaTeX-package
29795 endf\SpecialChar \textcompwordmark{}
29799 \begin_inset LatexCommand index
29800 name "LaTeX-packages ! endfloat"
29807 \begin_layout Bibliography
29808 \begin_inset LatexCommand bibitem
29817 \begin_layout Standard
29821 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/floatflt/floatflt.pdf}
29831 \begin_layout Standard
29838 of the LaTeX-package
29840 f\SpecialChar \textcompwordmark{}
29841 loatf\SpecialChar \textcompwordmark{}
29845 \begin_inset LatexCommand index
29846 name "LaTeX-packages ! floatflt"
29853 \begin_layout Bibliography
29854 \begin_inset LatexCommand bibitem
29863 \begin_layout Standard
29867 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf}
29877 \begin_layout Standard
29884 of the LaTeX-package
29889 \begin_inset LatexCommand index
29890 name "LaTeX-packages ! footmisc"
29897 \begin_layout Bibliography
29898 \begin_inset LatexCommand bibitem
29907 \begin_layout Standard
29911 href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf}{
29920 \begin_layout Standard
29927 of the LaTeX-package
29932 \begin_inset LatexCommand index
29933 name "LaTeX-packages ! hyperref"
29940 \begin_layout Bibliography
29941 \begin_inset LatexCommand bibitem
29950 \begin_layout Standard
29954 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf}
29964 \begin_layout Standard
29971 of the LaTeX-package
29976 \begin_inset LatexCommand index
29977 name "LaTeX-packages ! hyperref"
29984 \begin_layout Bibliography
29985 \begin_inset LatexCommand bibitem
29994 \begin_layout Standard
29998 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.p
30008 \begin_layout Standard
30015 of the LaTeX-package
30020 \begin_inset LatexCommand index
30021 name "LaTeX-packages ! koma-script"
30028 \begin_layout Bibliography
30029 \begin_inset LatexCommand bibitem
30030 key "koma-script-de"
30038 \begin_layout Standard
30042 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguide.p
30052 \begin_layout Standard
30059 of the LaTeX-package
30064 \begin_inset LatexCommand index
30065 name "LaTeX-packages ! koma-script"
30072 \begin_layout Bibliography
30073 \begin_inset LatexCommand bibitem
30082 \begin_layout Standard
30086 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf}
30096 \begin_layout Standard
30103 of the LaTeX-package
30108 \begin_inset LatexCommand index
30109 name "LaTeX-packages ! listings"
30116 \begin_layout Bibliography
30117 \begin_inset LatexCommand bibitem
30126 \begin_layout Standard
30130 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.
30140 \begin_layout Standard
30147 of the LaTeX-package
30152 \begin_inset LatexCommand index
30153 name "LaTeX-packages ! marginnote"
30160 \begin_layout Bibliography
30161 \begin_inset LatexCommand bibitem
30170 \begin_layout Standard
30174 href{http://tug.org/PSTricks/main.cgi/}{
30183 \begin_layout Standard
30190 of the LaTeX-package
30195 \begin_inset LatexCommand index
30196 name "LaTeX-packages ! PSTricks"
30203 \begin_layout Bibliography
30204 \begin_inset LatexCommand bibitem
30213 \begin_layout Standard
30217 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf}{
30226 \begin_layout Standard
30233 of the LaTeX-package
30238 \begin_inset LatexCommand index
30239 name "LaTeX-packages ! sidecap"
30246 \begin_layout Bibliography
30247 \begin_inset LatexCommand bibitem
30256 \begin_layout Standard
30260 href{http://wiki.lyx.org/LyX/NewInLyX15}{
30269 \begin_layout Standard
30276 about new LyX-features planned for the release
30283 \begin_layout Standard
30284 \begin_inset LatexCommand printindex
30291 \begin_layout Standard
30292 \begin_inset FloatList figure
30299 \begin_layout Standard
30300 \begin_inset FloatList table