1 #LyX 1.5.0svn created this file. For more info see http://www.lyx.org/
11 % set fonts for nicer pdf view
12 \IfFileExists{lmodern.sty}
13 {\usepackage{lmodern}} % if it exists
15 \usepackage[scaled=0.92]{helvet}
18 } % end if it exists not
20 % link all cross references and URLs
22 \usepackage[colorlinks=true, bookmarks, bookmarksnumbered, bookmarksopen, bookmarksopenlevel=1,
23 linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,
24 pdfpagelayout=OneColumn, pdfnewwindow=true,
25 pdfstartview=XYZ, plainpages=false, pdfpagelabels,
26 pdfauthor={LyX Team}, pdftex,
27 pdftitle={LyX's Figure, Table, Floats, Notes, and Boxes manual},
28 pdfsubject={LyX-documentation about figures, tables, floats, notes, and boxes},
29 pdfkeywords={LyX, Tables, Figures, Floats, Boxes, Notes}]{hyperref}
31 \else % if dvi or ps is produced
33 % link all cross references and URLs in DVI output
34 \usepackage[ps2pdf, colorlinks=true,
35 linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue]{hyperref}
37 \fi % end if pdflatex is used
39 % that links to image floats jumps
40 % to the beginning of the float and
42 \usepackage[figure]{hypcap}
44 % the pages of the TOC are numbered roman
45 % and a PDF-bookmark for the TOC is added
47 \let\myTOC\tableofcontents
48 \renewcommand{\tableofcontents}{%
49 \pdfbookmark[1]{Contents}{}
52 \pagenumbering{arabic}}
54 % provides caption formatting
55 \usepackage[labelfont={bf,sf}, tableposition=top]{caption}[2004/07/16]
57 % provides commands to set caption
58 % beside tables/images
61 \newcommand{\TabBesBeg}{%
63 \let\MyEndtable\endtable
64 \renewenvironment{table}{\begin{SCtable}}{\end{SCtable}}}
66 \newcommand{\TabBesEnd}{%
68 \let\endtable\MyEndtable}
70 \newcommand{\FigBesBeg}{%
72 \let\MyEndfigure\endfigure
73 \renewenvironment{figure}{\begin{SCfigure}}{\end{SCfigure}}}
75 \newcommand{\FigBesEnd}{%
77 \let\endfigure\MyEndfigure}
79 % enables calculation of values,
82 % provides special table cell alignments
85 % increase the bottom float placement fraction
86 \renewcommand{\bottomfraction}{0.5}
88 % avoids that floats are placed before their
89 % corresponding section starts
90 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
92 % speed up the longtable calculation
93 \setcounter{LTchunksize}{100}
95 % used for colored tables
96 \@ifundefined{textcolor}
97 {\usepackage{color}}{}
99 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
100 \definecolor{lightgrey}{gray}{0.8}
103 \usepackage{multirow}
104 %\renewcommand{\multirowsetup}{\centering}
106 % used for book-style tables
107 \usepackage{booktabs}
109 % used to have extra space in table cells,
110 \setlength{\extrarowheight}{2pt}
112 % used for customized tables
115 {>{\centering\hspace{0pt}}m{#1}}
118 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
121 {>{\columncolor{#1}\hspace{0pt}}c}
123 \newcolumntype{V}{!{\vrule width 1.5pt}}
125 \newcolumntype{W}{!{\color{green}\vline}}
128 % To be able to enter the characters ° and · directly in LyX
129 \DeclareInputText{176}{\ifmmode^\circ\else\textdegree\fi}
130 \DeclareInputText{183}{\ifmmode\cdot\else\textperiodcentered\fi}
132 % insert additional vertical space of
133 % 1.5 mm between footnotes
135 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
137 % enable algorithm floats to be referenced
138 \newfloat{Xalgorithm}{tbp}{loa}
139 \floatname{Xalgorithm}{Algorithm}
140 \newcommand{\theHalgorithm}{\theHXalgorithm}
141 \renewenvironment{algorithm}[1][tbp]
142 {\begin{Xalgorithm}[#1]}{\end{Xalgorithm}}
144 % number algorithm floats within chapters
145 \numberwithin{Xalgorithm}{chapter}
147 % redefine the greyed out note
148 \renewenvironment{lyxgreyedout}
149 {\textcolor{blue}\bgroup}{\egroup}
151 % ------------------------------------
152 % used to check for needed LaTeX packages
155 % check for package arydshln
156 % used for tables with dashed lines
157 \newboolean{arydshln}
158 \IfFileExists{arydshln.sty}
159 {\usepackage{arydshln}
160 \setboolean{arydshln}{true}}
161 {\setboolean{arydshln}{false}}
163 % check for package marginnote
164 % used for margin notes
165 \newboolean{marginnote}
166 \IfFileExists{marginnote.sty}
167 {\usepackage{marginnote}
168 \let\marginpar\marginnote
169 \setboolean{marginnote}{true}}
170 {\setboolean{marginnote}{false}}
172 \options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
177 \font_typewriter default
178 \font_default_family default
192 \paperorientation portrait
195 \paragraph_separation skip
197 \quotes_language english
200 \paperpagestyle default
204 \tracking_changes false
205 \output_changes false
215 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
224 \begin_layout Standard
226 If you have comments or error corrections, please send them to the LyX Documenta
233 \begin_layout Standard
237 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's ExtendedInsets manual}{
242 lyx-docs@lists.lyx.org
246 \begin_layout Standard
259 \begin_inset Note Note
262 \begin_layout Standard
263 original author: Uwe Stöhr
279 \begin_layout Standard
280 \begin_inset LatexCommand tableofcontents
287 \begin_layout Standard
288 \begin_inset Note Note
291 \begin_layout Standard
292 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
302 If they are not installed you can export the document anyway but the sections
303 where the packages are required won't appear in the output.
306 \begin_layout Standard
307 The latest PDF-version of this document can be found here:
311 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
319 \begin_layout Chapter
321 \begin_inset LatexCommand label
327 \begin_inset LatexCommand index
333 \begin_inset LatexCommand index
334 name "Graphics|see{Figures}"
341 \begin_layout Section
343 \begin_inset LatexCommand index
344 name "Figures ! Graphics Dialog"
349 \begin_inset LatexCommand label
350 name "sec:Graphics-Dialog"
357 \begin_layout Standard
358 To insert an image into your document, place the cursor at the text position
359 you want and click on the toolbar icon
360 \begin_inset Graphics
361 filename ../images/dialog-show-new-inset_graphics.xpm
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
573 \begin_layout Standard
574 This is the same image like the one above but in draft mode:
577 \begin_layout Standard
579 \begin_inset Graphics
580 filename clipart/mobius.eps
591 \begin_layout Section
593 \begin_inset LatexCommand label
594 name "sec:Figure-Floats"
599 \begin_inset LatexCommand index
600 name "Floats ! Figures"
605 \begin_inset LatexCommand index
606 name "Figures ! Floats"
613 \begin_layout Standard
614 For general explanations about floats, have a look at section\InsetSpace ~
616 \begin_inset LatexCommand ref
617 reference "sec:FloatIntroduction"
624 \begin_layout Standard
626 \begin_inset Graphics
627 filename ../images/float-insert_figure.xpm
634 Insert\SpecialChar \menuseparator
635 Float\SpecialChar \menuseparator
638 inserts a float with a caption that has the label
639 \begin_inset Quotes eld
644 \begin_inset Quotes erd
647 (# is the actual number).
648 You can insert the image above the caption, like in Figure\InsetSpace ~
650 \begin_inset LatexCommand ref
651 reference "fig:kill-plat"
655 or below the caption, like in Figure\InsetSpace ~
657 \begin_inset LatexCommand ref
658 reference "fig:escher"
663 More about the caption placement is described in section\InsetSpace ~
665 \begin_inset LatexCommand ref
666 reference "sec:Caption-Placement"
673 \begin_layout Standard
674 \begin_inset Float figure
679 \begin_layout Standard
681 \begin_inset Graphics
682 filename clipart/platypus.eps
692 \begin_layout Standard
695 \begin_layout Standard
696 \begin_inset LatexCommand label
701 A severely distorted platypus in a float.
714 \begin_layout Standard
715 \begin_inset Float figure
720 \begin_layout Standard
723 \begin_layout Standard
724 \begin_inset LatexCommand label
738 \begin_layout Standard
740 \begin_inset Graphics
741 filename clipart/escher-lsd.eps
756 \begin_layout Standard
757 \begin_inset LatexCommand index
758 name "References ! to Figures"
764 \begin_inset LatexCommand ref
765 reference "fig:kill-plat"
770 \begin_inset LatexCommand ref
771 reference "fig:escher"
775 are examples of referenced figures.
776 Figures can be referenced in the text by referencing their label.
777 To do this insert a label in the caption using the menu
779 Insert\SpecialChar \menuseparator
782 or the toolbar button
783 \begin_inset Graphics
784 filename ../images/label-insert.xpm
790 You can now refer to the label using the menu
792 Insert\SpecialChar \menuseparator
796 or the toolbar button
797 \begin_inset Graphics
798 filename ../images/dialog-show-new-inset_ref.xpm
804 It is important to use references to floats, rather than using vague references
806 \begin_inset Quotes eld
810 \begin_inset Quotes erd
813 , because as LaTeX will reposition the floats in the final document, it
815 \begin_inset Quotes eld
819 \begin_inset Quotes erd
824 Referencing is explained in detail in section\InsetSpace ~
826 \begin_inset LatexCommand ref
827 reference "sec:Referencing-Floats"
834 \begin_layout Standard
835 Normally only one image is inserted to a figure float, but sometimes you
836 might want to use two images with separate subcaptions.
837 This can be set in the tab
842 of the graphics dialog.
843 Choose there the option
847 and enter the subcaption for the image in the caption field.
848 Note that only the main caption of the float is added to the List of Figures.
851 erencing subfigures is explained in section\InsetSpace ~
853 \begin_inset LatexCommand ref
854 reference "sub:Referencing-Subfigures"
861 \begin_layout Standard
864 \begin_inset LatexCommand ref
865 reference "fig:Two-distorted-images"
869 is an example of a figure float with two images set side by side.
870 You can also set the images one below the other.
873 \begin_layout Standard
874 \begin_inset Float figure
879 \begin_layout Standard
883 \begin_inset Graphics
884 filename clipart/escher-lsd.eps
887 subcaptionText "Undefinable structure"
894 \begin_inset Graphics
895 filename clipart/platypus.eps
899 subcaptionText "\label{fig:Platypus} Platypus"
908 \begin_layout Standard
911 \begin_layout Standard
912 \begin_inset LatexCommand label
913 name "fig:Two-distorted-images"
917 Two distorted images.
930 \begin_layout Section
932 \begin_inset LatexCommand label
933 name "sec:Image-Formats"
938 \begin_inset LatexCommand index
944 \begin_inset LatexCommand index
945 name "Figures ! Image Formats"
952 \begin_layout Standard
953 You can insert images in any known file format.
954 But as explained in appendix\InsetSpace ~
956 \begin_inset LatexCommand ref
957 reference "cha:Output-File-Formats"
961 , every output document format allows only a few image formats.
962 LyX uses therefore the program
966 in the background to convert the images to the right format.
967 To increase your work flow by avoiding these conversions in the background,
968 you can use only the image formats that can directly be embedded in the
970 The output file formats are explained in appendix\InsetSpace ~
972 \begin_inset LatexCommand ref
973 reference "cha:Output-File-Formats"
980 \begin_layout Standard
981 Similar to fonts there are two types of image formats:
984 \begin_layout Description
986 images consist of pixel values, often in a compressed form.
987 They are therefore not fully scalable and look pixeled in large zooms.
988 Well-known bitmap image formats are
989 \begin_inset Quotes eld
992 Graphics Interchange Format
993 \begin_inset Quotes erd
997 \begin_inset Quotes eld
1005 \begin_inset Quotes erd
1009 \begin_inset LatexCommand index
1010 name "GIF|see{Image formats}"
1015 \begin_inset Quotes eld
1018 Portable Network Graphics
1019 \begin_inset Quotes erd
1022 (PNG, file extension
1023 \begin_inset Quotes eld
1031 \begin_inset Quotes erd
1035 \begin_inset LatexCommand index
1036 name "PNG|see{Image formats}"
1041 \begin_inset Quotes eld
1044 Joint Photographic Experts Group
1045 \begin_inset Quotes erd
1048 (JPG, file extension
1049 \begin_inset Quotes eld
1057 \begin_inset Quotes erd
1061 \begin_inset Quotes eld
1069 \begin_inset Quotes erd
1073 \begin_inset LatexCommand index
1074 name "JPG|see{Image formats}"
1081 \begin_layout Description
1083 images consist of vectors and can therefore be scaled to any size
1085 The scaling ability is necessary if you want to create presentations, because
1086 presentations are always scaled by the video projector.
1087 Scaling is also useful for online documents to let the user zoom into diagrams.
1090 ell-known scalable image formats are
1091 \begin_inset Quotes eld
1094 Scalable Vector Graphics
1095 \begin_inset Quotes erd
1098 (SVG, file extension
1099 \begin_inset Quotes eld
1107 \begin_inset Quotes erd
1111 \begin_inset LatexCommand index
1112 name "SVG|see{Image formats}"
1117 \begin_inset Quotes eld
1120 Encapsulated PostScript
1121 \begin_inset Quotes erd
1124 (EPS, file extension
1125 \begin_inset Quotes eld
1133 \begin_inset Quotes erd
1137 \begin_inset LatexCommand index
1138 name "EPS|see{Image formats}"
1143 \begin_inset Quotes eld
1146 Portable Document Format
1147 \begin_inset Quotes erd
1150 (PDF, file extension
1151 \begin_inset Quotes eld
1159 \begin_inset Quotes erd
1163 \begin_inset LatexCommand index
1169 \begin_inset Quotes eld
1173 \begin_inset Quotes erd
1176 (WMF, file extension
1177 \begin_inset Quotes eld
1185 \begin_inset Quotes erd
1189 \begin_inset LatexCommand index
1190 name "SVG|see{Image formats}"
1196 \begin_inset Quotes eld
1200 \begin_inset Quotes erd
1203 , because you can convert any bitmap image to a PDF or EPS-image and the
1204 result will still be a bitmap image.
1205 In this cases only a header with the image properties is added to the original
1210 \begin_layout Standard
1211 In the case of PDF, the original image is additionally compressed.
1217 The PDF-files generated by
1221 are for example bitmap images.
1224 \begin_layout Standard
1225 Normally it is not possible to convert a bitmap image into a scalable one,
1227 Only the image formats PDF and EPS can directly be embedded to PDF and
1228 PostScript output files, respectively.
1229 SVG and WMF-images are currently recalculated to bitmaps when the output
1230 file is generated because there is currently no adequate WMF/SVG
1231 \begin_inset Formula $\to$
1234 PDF/EPS converter available.
1237 \begin_layout Chapter
1239 \begin_inset LatexCommand label
1245 \begin_inset LatexCommand index
1253 \begin_layout Section
1255 \begin_inset LatexCommand index
1256 name "Table ! Introduction"
1263 \begin_layout Standard
1264 You can insert a table using either the toolbar button
1265 \begin_inset Graphics
1266 filename ../images/tabular-insert.xpm
1273 Insert\SpecialChar \menuseparator
1277 The toolbar button offers you a graphical selection: Move the mouse to
1278 set the column/row number of the table that should be created and then
1279 press a mouse button.
1280 When you use the menu to create a table, a dialog will appear, asking you
1281 for the number of rows and columns.
1283 The default table has lines around any
1284 cell and the first row appears separated from the rest of the table.
1285 This separation occurs due to a double line: The cells of the first row
1286 have a line below them and the cells of the second row have a line above
1288 Here is an example table:
1291 \begin_layout Standard
1293 \begin_inset Tabular
1294 <lyxtabular version="3" rows="4" columns="4">
1296 <column alignment="center" valignment="top" leftline="true" width="0">
1297 <column alignment="center" valignment="top" leftline="true" width="0">
1298 <column alignment="center" valignment="top" leftline="true" width="0">
1299 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
1300 <row topline="true" bottomline="true">
1301 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1304 \begin_layout Standard
1310 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1313 \begin_layout Standard
1328 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1331 \begin_layout Standard
1337 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1340 \begin_layout Standard
1347 <row topline="true">
1348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1351 \begin_layout Standard
1366 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1369 \begin_layout Standard
1375 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1378 \begin_layout Standard
1384 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1387 \begin_layout Standard
1394 <row topline="true">
1395 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1398 \begin_layout Standard
1413 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1416 \begin_layout Standard
1422 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1425 \begin_layout Standard
1431 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1434 \begin_layout Standard
1441 <row topline="true" bottomline="true">
1442 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1445 \begin_layout Standard
1460 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1463 \begin_layout Standard
1469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1472 \begin_layout Standard
1478 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1481 \begin_layout Standard
1495 \begin_layout Section
1497 \begin_inset LatexCommand index
1498 name "Table ! Dialog"
1505 \begin_layout Standard
1506 You can alter a table by clicking on it with the right mouse button, which
1507 brings up the table dialog.
1508 Here you can adjust the settings of that cell and row/column respectively
1509 where the cursor is currently placed.
1510 Most of the dialog options also work on selections.
1511 This means if you select more cells, columns or rows, the action is done
1512 for the whole selection.
1513 Note that there is a difference between selecting the
1517 of the cell, and the cell itself.
1518 You can alter tables with the following tabs of the table dialog:
1521 \begin_layout Description
1527 Here you can set the horizontal alignment and the width of the current
1529 When you have set a width you can also adjust the vertical alignment of
1531 A given width will allow the cell to have line breaks and multiple paragraphs
1532 of text, see section\InsetSpace ~
1534 \begin_inset LatexCommand ref
1535 reference "sub:Multiple-Lines-in"
1540 If you set no width, the column is as wide as their widest cell content
1543 Furthermore, you can mark one or multiple cells of one row as a multicolumn
1544 cell, see section\InsetSpace ~
1546 \begin_inset LatexCommand ref
1547 reference "sub:Multicolumns"
1553 The rotate check boxes rotates the current cell, a selection, or the whole
1554 table counter-clockwise by 90°.
1555 The rotation is not shown within LyX, only in the output.
1558 \begin_inset Note Greyedout
1561 \begin_layout Standard
1566 Not all DVI-viewers are able to display rotations.
1573 It is also possible to enter a LaTeX-argument which is needed for special
1574 table formattings, see section\InsetSpace ~
1576 \begin_inset LatexCommand ref
1577 reference "sub:Multicolumn-Calculations"
1582 \begin_inset LatexCommand ref
1583 reference "sec:Colored-Tables"
1590 \begin_layout Description
1595 In this tab you can add and delete border lines for the current row/column.
1602 will convert the table to a formal table as described in section\InsetSpace ~
1604 \begin_inset LatexCommand ref
1605 reference "sec:Formal-Tables"
1611 You can also add here space to table rows as decribed in section\InsetSpace ~
1613 \begin_inset LatexCommand ref
1614 reference "sub:Row-Spacing"
1621 \begin_layout Description
1626 This tab is to make a table a so called
1627 \begin_inset Quotes eld
1635 \begin_inset Quotes erd
1638 that can run over several pages.
1639 Section\InsetSpace ~
1641 \begin_inset LatexCommand ref
1642 reference "sec:Longtables"
1647 \begin_inset LatexCommand ref
1648 reference "sec:Special-Longtable-Issues"
1652 describe the longtable features in detail.
1655 \begin_layout Standard
1656 When the table toolbar is opened, you can move the cursor with the arrow
1657 keys from cell to cell and the property of the current cell will immediately
1658 be displayed in the dialog.
1661 \begin_layout Section
1663 \begin_inset LatexCommand index
1664 name "Table ! Toolbar"
1671 \begin_layout Standard
1672 The table toolbar is an alternative to the table dialog to be able to alter
1674 It should normally appear at the bottom of LyX's main window when the cursor
1676 You can alternatively switch it on to appear always, by right-clicking
1677 in LyX's main menu bar.
1680 \begin_layout Standard
1681 The toolbar has the following icons:
1684 \begin_layout Labeling
1685 \labelwidthstring 00.00.0000
1686 \begin_inset Graphics
1687 filename ../images/tabular-feature_append-row.xpm
1691 adds a row below the current cell or selection
1694 \begin_layout Labeling
1695 \labelwidthstring 00.00.0000
1696 \begin_inset Graphics
1697 filename ../images/tabular-feature_append-column.xpm
1701 adds a column right beside the current cell or selection
1704 \begin_layout Labeling
1705 \labelwidthstring 00.00.0000
1706 \begin_inset Graphics
1707 filename ../images/tabular-feature_delete-row.xpm
1711 deletes the current row or selection
1714 \begin_layout Labeling
1715 \labelwidthstring 00.00.0000
1716 \begin_inset Graphics
1717 filename ../images/tabular-feature_delete-column.xpm
1721 deletes the current column or selection
1724 \begin_layout Labeling
1725 \labelwidthstring 00.00.0000
1726 \begin_inset Graphics
1727 filename ../images/tabular-feature_toggle-line-top.xpm
1731 adds a line at the top of the current cell / row or of a selection
1734 \begin_layout Labeling
1735 \labelwidthstring 00.00.0000
1736 \begin_inset Graphics
1737 filename ../images/tabular-feature_toggle-line-bottom.xpm
1741 adds a line at the bottom of the current cell / row or of a selection
1744 \begin_layout Labeling
1745 \labelwidthstring 00.00.0000
1746 \begin_inset Graphics
1747 filename ../images/tabular-feature_toggle-line-left.xpm
1751 adds a line at the left side of the current cell / row or of a selection
1754 \begin_layout Labeling
1755 \labelwidthstring 00.00.0000
1756 \begin_inset Graphics
1757 filename ../images/tabular-feature_toggle-line-right.xpm
1761 adds a line at the right side of the current cell / row or of a selection
1764 \begin_layout Labeling
1765 \labelwidthstring 00.00.0000
1766 \begin_inset Graphics
1767 filename ../images/tabular-feature_set-all-lines.xpm
1771 adds lines around the current or selected cells - if the current cell no
1772 multicolumn this also affects the current row and column
1775 \begin_layout Labeling
1776 \labelwidthstring 00.00.0000
1777 \begin_inset Graphics
1778 filename ../images/tabular-feature_unset-all-lines.xpm
1782 deletes all lines of the current or selected cells - if the current cell
1783 no multicolumn this also affects the current row and column
1786 \begin_layout Labeling
1787 \labelwidthstring 00.00.0000
1788 \begin_inset Graphics
1789 filename ../images/tabular-feature_align-left.xpm
1793 left-aligns the content of the current cell / column
1796 \begin_layout Labeling
1797 \labelwidthstring 00.00.0000
1798 \begin_inset Graphics
1799 filename ../images/tabular-feature_align-center.xpm
1803 centers the content of the current cell / column horizontally
1806 \begin_layout Labeling
1807 \labelwidthstring 00.00.0000
1808 \begin_inset Graphics
1809 filename ../images/tabular-feature_align-right.xpm
1813 right-aligns the content of the current cell / column
1816 \begin_layout Labeling
1817 \labelwidthstring 00.00.0000
1818 \begin_inset Graphics
1819 filename ../images/tabular-feature_valign-top.xpm
1823 aligns the content of the current cell vertically to the top
1826 \begin_layout Labeling
1827 \labelwidthstring 00.00.0000
1828 \begin_inset Graphics
1829 filename ../images/tabular-feature_valign-middle.xpm
1833 centers the content of the current cell vertically
1836 \begin_layout Labeling
1837 \labelwidthstring 00.00.0000
1838 \begin_inset Graphics
1839 filename ../images/tabular-feature_valign-bottom.xpm
1843 aligns the content of the current cell vertically to the bottom
1846 \begin_layout Labeling
1847 \labelwidthstring 00.00.0000
1848 \begin_inset Graphics
1849 filename ../images/tabular-feature_set-rotate-cell.xpm
1853 rotates the current cell or selection counter-clockwise by 90°
1856 \begin_layout Labeling
1857 \labelwidthstring 00.00.0000
1858 \begin_inset Graphics
1859 filename ../images/tabular-feature_set-rotate-tabular.xpm
1863 rotates the whole table counter-clockwise by 90°
1866 \begin_layout Labeling
1867 \labelwidthstring 00.00.0000
1868 \begin_inset Graphics
1869 filename ../images/tabular-feature_multicolumn.xpm
1873 sets the current cell or selection as a multicolumn
1876 \begin_layout Standard
1877 \begin_inset Note Greyedout
1880 \begin_layout Standard
1885 For the output the vertical alignment of the first cell in a row is used
1886 for all following cells in the row.
1894 \begin_layout Section
1896 \begin_inset LatexCommand index
1897 name "Table ! Edit Menu"
1904 \begin_layout Standard
1905 Additionally to the table dialog and toolbar, the menu
1907 Edit\SpecialChar \menuseparator
1910 allows you to add and delete border lines for the current row/column and
1911 to set the current selection as multicolumn.
1912 The menu is only available when the cursor is inside a table.
1915 \begin_layout Section
1917 \begin_inset LatexCommand label
1918 name "sec:Table-Floats"
1923 \begin_inset LatexCommand index
1924 name "Floats ! Tables"
1929 \begin_inset LatexCommand index
1930 name "Table ! Floats"
1937 \begin_layout Standard
1938 For general explanations about floats, have a look at section\InsetSpace ~
1940 \begin_inset LatexCommand ref
1941 reference "sec:FloatIntroduction"
1948 \begin_layout Standard
1949 \begin_inset Float table
1955 \begin_layout Standard
1956 \begin_inset Caption
1958 \begin_layout Standard
1959 \begin_inset LatexCommand label
1960 name "tab:a table float"
1972 \begin_layout Standard
1974 \begin_inset Tabular
1975 <lyxtabular version="3" rows="3" columns="3">
1977 <column alignment="center" valignment="top" leftline="true" width="0pt">
1978 <column alignment="center" valignment="top" leftline="true" width="0pt">
1979 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
1980 <row topline="true" bottomline="true">
1981 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1984 \begin_layout Standard
1999 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2002 \begin_layout Standard
2017 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2020 \begin_layout Standard
2036 <row topline="true">
2037 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2040 \begin_layout Standard
2055 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2058 \begin_layout Standard
2073 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2076 \begin_layout Standard
2092 <row topline="true" bottomline="true">
2093 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2096 \begin_layout Standard
2106 \begin_inset Formula $\int x^{2}dx$
2114 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2117 \begin_layout Standard
2127 \begin_inset Formula $\left[\begin{array}{cc}
2129 c & d\end{array}\right]$
2137 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2140 \begin_layout Standard
2150 \begin_inset Formula $1+1=2$
2171 \begin_layout Standard
2172 Table floats can be inserted using the menu
2174 Insert\SpecialChar \menuseparator
2175 Float\SpecialChar \menuseparator
2178 or the toolbar button
2179 \begin_inset Graphics
2180 filename ../images/float-insert_table.xpm
2188 \begin_layout Standard
2189 The float appears as a collapsible box with a caption that has the label
2191 \begin_inset Quotes eld
2196 \begin_inset Quotes erd
2199 (# is the actual table number).
2200 You can insert tables to the float above or below the caption.
2203 \begin_layout Standard
2206 \begin_inset LatexCommand ref
2207 reference "tab:a table float"
2211 is an example table within a table float.
2214 \begin_layout Standard
2215 Having the caption above the table is the common rule that is unfortunately
2216 not supported in LaTeX's standard classes.
2217 That means if you are using the document classes
2233 there will be no space between the caption and the table.
2234 To insert the needed space, add the following option to the load command
2235 of the LaTeX-package
2240 \begin_inset LatexCommand index
2241 name "LaTeX-packages ! caption"
2245 in your document preamble
2249 \begin_layout Standard
2250 For more information have a look at section\InsetSpace ~
2252 \begin_inset LatexCommand ref
2253 reference "sec:Caption-Placement"
2265 \begin_layout Standard
2271 \begin_layout Standard
2276 , which is described in section\InsetSpace ~
2278 \begin_inset LatexCommand ref
2279 reference "sec:Caption-Formatting"
2283 , is used to adjust the caption format.
2286 \begin_layout Standard
2287 \begin_inset LatexCommand index
2288 name "References ! to Tables"
2292 Tables can be cross-referenced in the text by referencing their label.
2293 To do this insert a label in the caption using the menu
2295 Insert\SpecialChar \menuseparator
2298 or the toolbar button
2299 \begin_inset Graphics
2300 filename ../images/label-insert.xpm
2306 You can now refer to the label using the menu
2308 Insert\SpecialChar \menuseparator
2312 or the toolbar button
2313 \begin_inset Graphics
2314 filename ../images/dialog-show-new-inset_ref.xpm
2321 Referencing is explained in detail in section\InsetSpace ~
2323 \begin_inset LatexCommand ref
2324 reference "sec:Referencing-Floats"
2331 \begin_layout Section
2333 \begin_inset LatexCommand label
2334 name "sec:Longtables"
2339 \begin_inset LatexCommand index
2345 \begin_inset LatexCommand index
2346 name "Table ! Longtables"
2353 \begin_layout Standard
2354 If the table is too long to fit on one page, you can use the option
2364 of the table dialog to split the table automatically over more pages.
2365 Doing this enables some check boxes and you can now define:
2368 \begin_layout Description
2373 : The current row and all rows above, that don't have any special options
2374 defined, are defined to be the header rows of all pages of the longtable;
2375 except for the first page, if
2381 This therefore called the main header.
2384 \begin_layout Description
2390 : The current row and all rows above, that don't have any special options
2391 defined, are defined to be the header rows of the first page of the longtable.
2394 \begin_layout Description
2399 : The current row and all rows below, that don't have any special options
2400 defined, are defined to be the footer rows of all pages of the longtable;
2401 except for the last page, if
2409 \begin_layout Description
2415 : The current row and all rows below, that don't have any special options
2416 defined, are defined to be the footer rows of the last page of the longtable.
2419 \begin_layout Standard
2420 You can also specify a row where the table is splitted.
2421 If you set more than one option in the same table row, you should be aware
2422 of the fact that only the first one is used in the given table row.
2423 The others will then be defined as
2428 In this context, first means first in this order:
2435 header, Footer, Last\InsetSpace ~
2439 See the following longtable to see how it works:
2442 \begin_layout Standard
2444 \begin_inset Tabular
2445 <lyxtabular version="3" rows="69" columns="3">
2446 <features islongtable="true">
2447 <column alignment="left" valignment="top" leftline="true" width="0cm">
2448 <column alignment="left" valignment="top" width="0pt">
2449 <column alignment="right" valignment="top" leftline="true" rightline="true" width="0pt">
2450 <row topline="true" bottomline="true" endfirsthead="true">
2451 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2454 \begin_layout Standard
2457 Example Phone List (ignore the names)
2462 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2465 \begin_layout Standard
2471 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2474 \begin_layout Standard
2481 <row topline="true" bottomline="true" endfirsthead="true">
2482 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2485 \begin_layout Standard
2493 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2496 \begin_layout Standard
2502 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2505 \begin_layout Standard
2514 <row topline="true" bottomline="true" endhead="true">
2515 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2518 \begin_layout Standard
2526 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2529 \begin_layout Standard
2535 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2538 \begin_layout Standard
2545 <row topline="true" bottomline="true" endhead="true">
2546 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2549 \begin_layout Standard
2557 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2560 \begin_layout Standard
2566 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2569 \begin_layout Standard
2578 <row topline="true" bottomline="true" endfoot="true">
2579 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
2582 \begin_layout Standard
2583 continued on next page
2588 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2591 \begin_layout Standard
2597 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2600 \begin_layout Standard
2608 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2611 \begin_layout Standard
2619 <cell alignment="center" valignment="top" topline="true" usebox="none">
2622 \begin_layout Standard
2628 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2631 \begin_layout Standard
2639 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2642 \begin_layout Standard
2650 <cell alignment="center" valignment="top" topline="true" usebox="none">
2653 \begin_layout Standard
2659 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2662 \begin_layout Standard
2670 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2673 \begin_layout Standard
2681 <cell alignment="center" valignment="top" topline="true" usebox="none">
2684 \begin_layout Standard
2690 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2693 \begin_layout Standard
2701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2704 \begin_layout Standard
2712 <cell alignment="center" valignment="top" topline="true" usebox="none">
2715 \begin_layout Standard
2721 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2724 \begin_layout Standard
2732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2735 \begin_layout Standard
2743 <cell alignment="center" valignment="top" topline="true" usebox="none">
2746 \begin_layout Standard
2752 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2755 \begin_layout Standard
2763 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2766 \begin_layout Standard
2774 <cell alignment="center" valignment="top" topline="true" usebox="none">
2777 \begin_layout Standard
2783 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2786 \begin_layout Standard
2794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2797 \begin_layout Standard
2805 <cell alignment="center" valignment="top" topline="true" usebox="none">
2808 \begin_layout Standard
2814 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2817 \begin_layout Standard
2825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2828 \begin_layout Standard
2836 <cell alignment="center" valignment="top" topline="true" usebox="none">
2839 \begin_layout Standard
2845 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2848 \begin_layout Standard
2856 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2859 \begin_layout Standard
2867 <cell alignment="center" valignment="top" topline="true" usebox="none">
2870 \begin_layout Standard
2876 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2879 \begin_layout Standard
2887 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2890 \begin_layout Standard
2898 <cell alignment="center" valignment="top" topline="true" usebox="none">
2901 \begin_layout Standard
2907 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2910 \begin_layout Standard
2918 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2921 \begin_layout Standard
2929 <cell alignment="center" valignment="top" topline="true" usebox="none">
2932 \begin_layout Standard
2938 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2941 \begin_layout Standard
2949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2952 \begin_layout Standard
2960 <cell alignment="center" valignment="top" topline="true" usebox="none">
2963 \begin_layout Standard
2969 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2972 \begin_layout Standard
2980 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2983 \begin_layout Standard
2991 <cell alignment="center" valignment="top" topline="true" usebox="none">
2994 \begin_layout Standard
3000 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3003 \begin_layout Standard
3011 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3014 \begin_layout Standard
3022 <cell alignment="center" valignment="top" topline="true" usebox="none">
3025 \begin_layout Standard
3031 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3034 \begin_layout Standard
3042 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3045 \begin_layout Standard
3053 <cell alignment="center" valignment="top" topline="true" usebox="none">
3056 \begin_layout Standard
3062 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3065 \begin_layout Standard
3073 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3076 \begin_layout Standard
3084 <cell alignment="center" valignment="top" topline="true" usebox="none">
3087 \begin_layout Standard
3093 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3096 \begin_layout Standard
3104 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3107 \begin_layout Standard
3115 <cell alignment="center" valignment="top" topline="true" usebox="none">
3118 \begin_layout Standard
3124 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3127 \begin_layout Standard
3135 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3138 \begin_layout Standard
3146 <cell alignment="center" valignment="top" topline="true" usebox="none">
3149 \begin_layout Standard
3155 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3158 \begin_layout Standard
3166 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3169 \begin_layout Standard
3177 <cell alignment="center" valignment="top" topline="true" usebox="none">
3180 \begin_layout Standard
3186 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3189 \begin_layout Standard
3197 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3200 \begin_layout Standard
3208 <cell alignment="center" valignment="top" topline="true" usebox="none">
3211 \begin_layout Standard
3217 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3220 \begin_layout Standard
3228 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3231 \begin_layout Standard
3239 <cell alignment="center" valignment="top" topline="true" usebox="none">
3242 \begin_layout Standard
3248 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3251 \begin_layout Standard
3259 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3262 \begin_layout Standard
3270 <cell alignment="center" valignment="top" topline="true" usebox="none">
3273 \begin_layout Standard
3279 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3282 \begin_layout Standard
3290 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3293 \begin_layout Standard
3301 <cell alignment="center" valignment="top" topline="true" usebox="none">
3304 \begin_layout Standard
3310 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3313 \begin_layout Standard
3321 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3324 \begin_layout Standard
3332 <cell alignment="center" valignment="top" topline="true" usebox="none">
3335 \begin_layout Standard
3341 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3344 \begin_layout Standard
3352 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3355 \begin_layout Standard
3363 <cell alignment="center" valignment="top" topline="true" usebox="none">
3366 \begin_layout Standard
3372 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3375 \begin_layout Standard
3383 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3386 \begin_layout Standard
3394 <cell alignment="center" valignment="top" topline="true" usebox="none">
3397 \begin_layout Standard
3403 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3406 \begin_layout Standard
3414 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3417 \begin_layout Standard
3425 <cell alignment="center" valignment="top" topline="true" usebox="none">
3428 \begin_layout Standard
3434 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3437 \begin_layout Standard
3445 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3448 \begin_layout Standard
3456 <cell alignment="center" valignment="top" topline="true" usebox="none">
3459 \begin_layout Standard
3465 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3468 \begin_layout Standard
3476 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3479 \begin_layout Standard
3487 <cell alignment="center" valignment="top" topline="true" usebox="none">
3490 \begin_layout Standard
3496 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3499 \begin_layout Standard
3507 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3510 \begin_layout Standard
3518 <cell alignment="center" valignment="top" topline="true" usebox="none">
3521 \begin_layout Standard
3527 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3530 \begin_layout Standard
3537 <row bottomline="true">
3538 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3541 \begin_layout Standard
3549 <cell alignment="center" valignment="top" topline="true" usebox="none">
3552 \begin_layout Standard
3558 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3561 \begin_layout Standard
3568 <row bottomline="true">
3569 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3572 \begin_layout Standard
3578 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
3581 \begin_layout Standard
3587 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3590 \begin_layout Standard
3598 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3601 \begin_layout Standard
3609 <cell alignment="center" valignment="top" topline="true" usebox="none">
3612 \begin_layout Standard
3618 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3621 \begin_layout Standard
3629 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3632 \begin_layout Standard
3640 <cell alignment="center" valignment="top" topline="true" usebox="none">
3643 \begin_layout Standard
3649 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3652 \begin_layout Standard
3660 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3663 \begin_layout Standard
3671 <cell alignment="center" valignment="top" topline="true" usebox="none">
3674 \begin_layout Standard
3680 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3683 \begin_layout Standard
3691 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3694 \begin_layout Standard
3702 <cell alignment="center" valignment="top" topline="true" usebox="none">
3705 \begin_layout Standard
3711 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3714 \begin_layout Standard
3722 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3725 \begin_layout Standard
3733 <cell alignment="center" valignment="top" topline="true" usebox="none">
3736 \begin_layout Standard
3742 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3745 \begin_layout Standard
3753 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3756 \begin_layout Standard
3764 <cell alignment="center" valignment="top" topline="true" usebox="none">
3767 \begin_layout Standard
3773 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3776 \begin_layout Standard
3784 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3787 \begin_layout Standard
3795 <cell alignment="center" valignment="top" topline="true" usebox="none">
3798 \begin_layout Standard
3804 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3807 \begin_layout Standard
3815 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3818 \begin_layout Standard
3826 <cell alignment="center" valignment="top" topline="true" usebox="none">
3829 \begin_layout Standard
3835 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3838 \begin_layout Standard
3846 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3849 \begin_layout Standard
3857 <cell alignment="center" valignment="top" topline="true" usebox="none">
3860 \begin_layout Standard
3866 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3869 \begin_layout Standard
3877 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3880 \begin_layout Standard
3888 <cell alignment="center" valignment="top" topline="true" usebox="none">
3891 \begin_layout Standard
3897 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3900 \begin_layout Standard
3908 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3911 \begin_layout Standard
3919 <cell alignment="center" valignment="top" topline="true" usebox="none">
3922 \begin_layout Standard
3928 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3931 \begin_layout Standard
3939 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3942 \begin_layout Standard
3950 <cell alignment="center" valignment="top" topline="true" usebox="none">
3953 \begin_layout Standard
3959 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3962 \begin_layout Standard
3970 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3973 \begin_layout Standard
3981 <cell alignment="center" valignment="top" topline="true" usebox="none">
3984 \begin_layout Standard
3990 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3993 \begin_layout Standard
4001 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4004 \begin_layout Standard
4012 <cell alignment="center" valignment="top" topline="true" usebox="none">
4015 \begin_layout Standard
4021 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4024 \begin_layout Standard
4032 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4035 \begin_layout Standard
4043 <cell alignment="center" valignment="top" topline="true" usebox="none">
4046 \begin_layout Standard
4052 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4055 \begin_layout Standard
4063 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4066 \begin_layout Standard
4074 <cell alignment="center" valignment="top" topline="true" usebox="none">
4077 \begin_layout Standard
4083 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4086 \begin_layout Standard
4094 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4097 \begin_layout Standard
4105 <cell alignment="center" valignment="top" topline="true" usebox="none">
4108 \begin_layout Standard
4114 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4117 \begin_layout Standard
4125 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4128 \begin_layout Standard
4136 <cell alignment="center" valignment="top" topline="true" usebox="none">
4139 \begin_layout Standard
4145 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4148 \begin_layout Standard
4156 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4159 \begin_layout Standard
4167 <cell alignment="center" valignment="top" topline="true" usebox="none">
4170 \begin_layout Standard
4176 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4179 \begin_layout Standard
4187 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4190 \begin_layout Standard
4198 <cell alignment="center" valignment="top" topline="true" usebox="none">
4201 \begin_layout Standard
4207 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4210 \begin_layout Standard
4218 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4221 \begin_layout Standard
4229 <cell alignment="center" valignment="top" topline="true" usebox="none">
4232 \begin_layout Standard
4238 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4241 \begin_layout Standard
4249 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4252 \begin_layout Standard
4260 <cell alignment="center" valignment="top" topline="true" usebox="none">
4263 \begin_layout Standard
4269 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4272 \begin_layout Standard
4280 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4283 \begin_layout Standard
4291 <cell alignment="center" valignment="top" topline="true" usebox="none">
4294 \begin_layout Standard
4300 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4303 \begin_layout Standard
4311 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4314 \begin_layout Standard
4322 <cell alignment="center" valignment="top" topline="true" usebox="none">
4325 \begin_layout Standard
4331 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4334 \begin_layout Standard
4342 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4345 \begin_layout Standard
4353 <cell alignment="center" valignment="top" topline="true" usebox="none">
4356 \begin_layout Standard
4362 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4365 \begin_layout Standard
4373 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4376 \begin_layout Standard
4384 <cell alignment="center" valignment="top" topline="true" usebox="none">
4387 \begin_layout Standard
4393 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4396 \begin_layout Standard
4404 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4407 \begin_layout Standard
4415 <cell alignment="center" valignment="top" topline="true" usebox="none">
4418 \begin_layout Standard
4424 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4427 \begin_layout Standard
4435 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4438 \begin_layout Standard
4446 <cell alignment="center" valignment="top" topline="true" usebox="none">
4449 \begin_layout Standard
4455 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4458 \begin_layout Standard
4466 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4469 \begin_layout Standard
4477 <cell alignment="center" valignment="top" topline="true" usebox="none">
4480 \begin_layout Standard
4486 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4489 \begin_layout Standard
4497 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4500 \begin_layout Standard
4508 <cell alignment="center" valignment="top" topline="true" usebox="none">
4511 \begin_layout Standard
4517 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4520 \begin_layout Standard
4527 <row bottomline="true">
4528 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4531 \begin_layout Standard
4539 <cell alignment="center" valignment="top" topline="true" usebox="none">
4542 \begin_layout Standard
4548 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4551 \begin_layout Standard
4558 <row bottomline="true" endlastfoot="true">
4559 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
4562 \begin_layout Standard
4568 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4571 \begin_layout Standard
4577 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4580 \begin_layout Standard
4595 \begin_layout Standard
4599 addtocounter{table}{-1}
4605 \begin_inset Note Note
4608 \begin_layout Standard
4609 See greyed-out note in section 2.6.2 for an explanation of this command.
4617 \begin_layout Subsection
4618 Footnotes in Longtables
4619 \begin_inset LatexCommand label
4620 name "sub:Footnotes-in-Longtables"
4625 \begin_inset LatexCommand index
4626 name "Longtables ! Footnotes"
4633 \begin_layout Standard
4634 Footnotes can be inserted to every longtable cell.
4635 They appear at the bottom of the page where the table cell with the footnote
4639 \begin_inset LatexCommand ref
4640 reference "tab:DiffCaptions"
4644 has for example a footnote.
4647 \begin_layout Subsection
4649 \begin_inset LatexCommand index
4650 name "Longtables ! Captions"
4657 \begin_layout Standard
4658 A longtable cannot be put into a table float because floats can only be
4659 on one page but the caption environment of floats can also be used for
4663 \begin_layout Standard
4664 As LyX does not yet fully support captions in longtables, a hack is needed
4668 \begin_layout Enumerate
4674 \begin_layout Enumerate
4675 Mark the first row and disable its upper line.
4678 \begin_layout Enumerate
4679 Insert a caption via the menu
4681 Insert\SpecialChar \menuseparator
4684 into the first table cell.
4686 You can also add a short title for the caption.
4689 \begin_layout Enumerate
4691 \begin_inset Quotes eld
4703 \begin_inset Quotes erd
4706 as ERT behind the caption.
4709 \begin_layout Standard
4710 A short title that will appear in the LOT instead of the full title.
4719 behind the caption omits the vertical lines between the following cells
4721 The first table row is now only a dummy row for the caption, the actual
4722 table starts with the second row.
4725 \begin_layout Standard
4726 Here is a short longtable to see how it works:
4729 \begin_layout Standard
4730 \begin_inset Tabular
4731 <lyxtabular version="3" rows="6" columns="5">
4732 <features islongtable="true">
4733 <column alignment="center" valignment="top" leftline="true" width="0">
4734 <column alignment="center" valignment="top" leftline="true" width="0">
4735 <column alignment="center" valignment="top" leftline="true" width="0">
4736 <column alignment="center" valignment="top" leftline="true" width="0">
4737 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
4739 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4742 \begin_layout Standard
4743 \begin_inset Caption
4745 \begin_layout Standard
4746 Longtable with caption
4750 \begin_layout Standard
4765 \begin_layout Standard
4781 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4784 \begin_layout Standard
4790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4793 \begin_layout Standard
4799 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4802 \begin_layout Standard
4808 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4811 \begin_layout Standard
4818 <row topline="true">
4819 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4822 \begin_layout Standard
4828 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4831 \begin_layout Standard
4837 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4840 \begin_layout Standard
4846 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4849 \begin_layout Standard
4855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4858 \begin_layout Standard
4865 <row topline="true">
4866 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4869 \begin_layout Standard
4875 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4878 \begin_layout Standard
4884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4887 \begin_layout Standard
4893 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4896 \begin_layout Standard
4902 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4905 \begin_layout Standard
4912 <row topline="true">
4913 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4916 \begin_layout Standard
4922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4925 \begin_layout Standard
4931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4934 \begin_layout Standard
4940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4943 \begin_layout Standard
4949 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4952 \begin_layout Standard
4959 <row topline="true">
4960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4963 \begin_layout Standard
4969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4972 \begin_layout Standard
4978 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4981 \begin_layout Standard
4987 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4990 \begin_layout Standard
4996 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4999 \begin_layout Standard
5006 <row topline="true" bottomline="true">
5007 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5010 \begin_layout Standard
5016 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5019 \begin_layout Standard
5025 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5028 \begin_layout Standard
5034 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5037 \begin_layout Standard
5043 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5046 \begin_layout Standard
5060 \begin_layout Standard
5061 \begin_inset VSpace medskip
5065 \begin_inset Note Greyedout
5068 \begin_layout Standard
5073 The table number is increased for every longtable, also if you didn't set
5075 For this reason you could have the case that e.g.
5077 2.4 follows on Table\InsetSpace ~
5078 2.1 in the list of tables if there are two longtables
5080 To avoid this you can add the following command in ERT behind every longtable
5084 \begin_layout Standard
5089 addtocounter{table}{-1}
5097 \begin_layout Standard
5098 \begin_inset Note Greyedout
5101 \begin_layout Standard
5106 If you are using the LaTeX-package
5111 \begin_inset LatexCommand index
5112 name "LaTeX-packages ! hyperref"
5116 to link cross-references, the link to a longtable caption will always point
5117 to the beginning of the document.
5125 \begin_layout Subsubsection
5126 References to Longtables
5127 \begin_inset LatexCommand index
5128 name "Longtables ! References"
5135 \begin_layout Standard
5136 \begin_inset Tabular
5137 <lyxtabular version="3" rows="6" columns="5">
5138 <features islongtable="true">
5139 <column alignment="center" valignment="top" leftline="true" width="0">
5140 <column alignment="center" valignment="top" leftline="true" width="0">
5141 <column alignment="center" valignment="top" leftline="true" width="0">
5142 <column alignment="center" valignment="top" leftline="true" width="0">
5143 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5145 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5148 \begin_layout Standard
5149 \begin_inset Caption
5151 \begin_layout Standard
5152 Referenced longtable
5153 \begin_inset LatexCommand label
5154 name "tab:RefExample"
5167 \begin_layout Standard
5183 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5186 \begin_layout Standard
5192 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5195 \begin_layout Standard
5201 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5204 \begin_layout Standard
5210 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5213 \begin_layout Standard
5220 <row topline="true">
5221 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5224 \begin_layout Standard
5230 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5233 \begin_layout Standard
5239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5242 \begin_layout Standard
5248 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5251 \begin_layout Standard
5257 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5260 \begin_layout Standard
5267 <row topline="true">
5268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5271 \begin_layout Standard
5277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5280 \begin_layout Standard
5286 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5289 \begin_layout Standard
5295 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5298 \begin_layout Standard
5304 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5307 \begin_layout Standard
5314 <row topline="true">
5315 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5318 \begin_layout Standard
5324 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5327 \begin_layout Standard
5333 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5336 \begin_layout Standard
5342 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5345 \begin_layout Standard
5351 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5354 \begin_layout Standard
5361 <row topline="true">
5362 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5365 \begin_layout Standard
5371 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5374 \begin_layout Standard
5380 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5383 \begin_layout Standard
5389 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5392 \begin_layout Standard
5398 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5401 \begin_layout Standard
5408 <row topline="true" bottomline="true">
5409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5412 \begin_layout Standard
5418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5421 \begin_layout Standard
5427 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5430 \begin_layout Standard
5436 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5439 \begin_layout Standard
5445 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5448 \begin_layout Standard
5462 \begin_layout Standard
5463 To reference a longtable, insert a label into the caption.
5464 Note that you have to add the label prefix
5465 \begin_inset Quotes eld
5473 \begin_inset Quotes eld
5476 manually in the label field.
5479 \begin_layout Standard
5480 This is a reference to Table\InsetSpace ~
5482 \begin_inset LatexCommand ref
5483 reference "tab:RefExample"
5490 \begin_layout Standard
5491 The caption layout can be set together with all other caption of your document
5492 using the LaTeX-package
5497 \begin_inset LatexCommand index
5498 name "LaTeX-packages ! caption"
5502 , see section\InsetSpace ~
5504 \begin_inset LatexCommand ref
5505 reference "sec:Caption-Formatting"
5512 \begin_layout Subsubsection
5514 \begin_inset LatexCommand index
5515 name "Longtables ! Caption Width"
5522 \begin_layout Standard
5523 The maximal width of of caption lines is defined by the length
5530 Its default value is 4\InsetSpace \thinspace{}
5532 To change it add the following command to your document preamble or as
5533 ERT into your document before the longtable that should be affected
5536 \begin_layout Standard
5546 \begin_layout Standard
5547 where the width could have one of the units listed in appendix\InsetSpace ~
5549 \begin_inset LatexCommand ref
5550 reference "cha:Units-available-in"
5557 \begin_layout Standard
5558 The following tables show the difference:
5561 \begin_layout Standard
5562 \begin_inset Tabular
5563 <lyxtabular version="3" rows="6" columns="5">
5564 <features islongtable="true">
5565 <column alignment="center" valignment="top" leftline="true" width="0">
5566 <column alignment="center" valignment="top" leftline="true" width="0">
5567 <column alignment="center" valignment="top" leftline="true" width="0">
5568 <column alignment="center" valignment="top" leftline="true" width="0">
5569 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5571 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5574 \begin_layout Standard
5575 \begin_inset Caption
5577 \begin_layout Standard
5578 long full title with default width long full title with default width long
5579 full title with default width
5583 \begin_layout Standard
5584 caption with default width
5598 \begin_layout Standard
5614 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5617 \begin_layout Standard
5623 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5626 \begin_layout Standard
5632 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5635 \begin_layout Standard
5641 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5644 \begin_layout Standard
5651 <row topline="true">
5652 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5655 \begin_layout Standard
5661 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5664 \begin_layout Standard
5670 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5673 \begin_layout Standard
5679 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5682 \begin_layout Standard
5688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5691 \begin_layout Standard
5698 <row topline="true">
5699 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5702 \begin_layout Standard
5708 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5711 \begin_layout Standard
5717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5720 \begin_layout Standard
5726 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5729 \begin_layout Standard
5735 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5738 \begin_layout Standard
5745 <row topline="true">
5746 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5749 \begin_layout Standard
5755 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5758 \begin_layout Standard
5764 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5767 \begin_layout Standard
5773 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5776 \begin_layout Standard
5782 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5785 \begin_layout Standard
5792 <row topline="true">
5793 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5796 \begin_layout Standard
5802 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5805 \begin_layout Standard
5811 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5814 \begin_layout Standard
5820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5823 \begin_layout Standard
5829 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5832 \begin_layout Standard
5839 <row topline="true" bottomline="true">
5840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5843 \begin_layout Standard
5849 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5852 \begin_layout Standard
5858 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5861 \begin_layout Standard
5867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5870 \begin_layout Standard
5876 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5879 \begin_layout Standard
5893 \begin_layout Standard
5897 \begin_layout Standard
5909 \begin_inset Tabular
5910 <lyxtabular version="3" rows="6" columns="5">
5911 <features islongtable="true">
5912 <column alignment="center" valignment="top" leftline="true" width="0">
5913 <column alignment="center" valignment="top" leftline="true" width="0">
5914 <column alignment="center" valignment="top" leftline="true" width="0">
5915 <column alignment="center" valignment="top" leftline="true" width="0">
5916 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5918 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5921 \begin_layout Standard
5922 \begin_inset Caption
5924 \begin_layout Standard
5925 long full title with width set to 5\InsetSpace \thinspace{}
5926 cm long full title with width set to
5927 5\InsetSpace \thinspace{}
5928 cm long full title with width set to 5\InsetSpace \thinspace{}
5933 \begin_layout Standard
5934 caption with width\InsetSpace \thinspace{}
5935 =\InsetSpace \thinspace{}
5936 5\InsetSpace \thinspace{}
5951 \begin_layout Standard
5967 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5970 \begin_layout Standard
5976 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5979 \begin_layout Standard
5985 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5988 \begin_layout Standard
5994 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5997 \begin_layout Standard
6004 <row topline="true">
6005 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6008 \begin_layout Standard
6014 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6017 \begin_layout Standard
6023 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6026 \begin_layout Standard
6032 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6035 \begin_layout Standard
6041 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6044 \begin_layout Standard
6051 <row topline="true">
6052 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6055 \begin_layout Standard
6061 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6064 \begin_layout Standard
6070 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6073 \begin_layout Standard
6079 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6082 \begin_layout Standard
6088 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6091 \begin_layout Standard
6098 <row topline="true">
6099 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6102 \begin_layout Standard
6108 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6111 \begin_layout Standard
6117 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6120 \begin_layout Standard
6126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6129 \begin_layout Standard
6135 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6138 \begin_layout Standard
6145 <row topline="true">
6146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6149 \begin_layout Standard
6155 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6158 \begin_layout Standard
6164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6167 \begin_layout Standard
6173 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6176 \begin_layout Standard
6182 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6185 \begin_layout Standard
6192 <row topline="true" bottomline="true">
6193 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6196 \begin_layout Standard
6202 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6205 \begin_layout Standard
6211 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6214 \begin_layout Standard
6220 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6223 \begin_layout Standard
6229 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6232 \begin_layout Standard
6246 \begin_layout Standard
6250 \begin_layout Standard
6264 \begin_layout Standard
6265 \begin_inset Note Greyedout
6268 \begin_layout Standard
6273 When the LaTeX-package
6278 \begin_inset LatexCommand index
6279 name "LaTeX-packages ! caption"
6283 is used, as in this document, the full page width is used for the caption
6284 when you use the default value of 4\InsetSpace \thinspace{}
6292 To get in this case exactly a 4\InsetSpace \thinspace{}
6293 in wide caption, you can either use a value
6294 slightly different from 4.0\InsetSpace \thinspace{}
6296 3.99\InsetSpace \thinspace{}
6297 in, or the LaTeX-command
6301 captionsetup{width=value}
6303 that is provided by the
6315 \begin_layout Subsubsection
6316 Different Captions for Table Pages
6317 \begin_inset LatexCommand index
6318 name "Longtables ! Different Captions for Pages"
6325 \begin_layout Standard
6326 When the other captions should differ from the one of the first table page,
6327 insert a caption with a non-empty short title in a dummy caption row marked
6329 The caption used for the other table pages is inserted as caption without
6330 a short title in a dummy caption row that is marked as main header.
6331 When this caption shouldn't include the table number, use the command
6334 \begin_layout Standard
6339 caption*{caption text}
6342 \begin_layout Standard
6343 instead of LyX's caption box.
6344 The label to reference the table is inserted into the caption of the first
6348 \begin_inset LatexCommand ref
6349 reference "tab:DiffCaptions"
6353 is an example for a longtable with different heading where the second caption
6354 doesn't include the table number.
6357 \begin_layout Standard
6359 \begin_inset Tabular
6360 <lyxtabular version="3" rows="60" columns="3">
6361 <features islongtable="true">
6362 <column alignment="left" valignment="top" leftline="true" width="0cm">
6363 <column alignment="left" valignment="top" rightline="true" width="0pt">
6364 <column alignment="right" valignment="top" rightline="true" width="0pt">
6365 <row endfirsthead="true">
6366 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6369 \begin_layout Standard
6370 \begin_inset Caption
6372 \begin_layout Standard
6374 \begin_inset LatexCommand label
6375 name "tab:DiffCaptions"
6383 \begin_layout Standard
6398 \begin_layout Standard
6414 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6417 \begin_layout Standard
6423 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6426 \begin_layout Standard
6433 <row topline="true" bottomline="true" endfirsthead="true">
6434 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6437 \begin_layout Standard
6440 Example Phone List (ignore the names)
6445 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6448 \begin_layout Standard
6454 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6457 \begin_layout Standard
6464 <row topline="true" bottomline="true" endfirsthead="true">
6465 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6468 \begin_layout Standard
6476 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6479 \begin_layout Standard
6485 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6488 \begin_layout Standard
6497 <row bottomline="true" endhead="true">
6498 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6501 \begin_layout Standard
6505 \begin_layout Standard
6509 caption*{Continued Example Phone List}
6523 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6526 \begin_layout Standard
6532 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6535 \begin_layout Standard
6542 <row topline="true" bottomline="true" endhead="true">
6543 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6546 \begin_layout Standard
6554 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6557 \begin_layout Standard
6563 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6566 \begin_layout Standard
6573 <row topline="true" bottomline="true" endhead="true">
6574 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6577 \begin_layout Standard
6585 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6588 \begin_layout Standard
6594 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6597 \begin_layout Standard
6606 <row topline="true" bottomline="true" endfoot="true">
6607 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
6610 \begin_layout Standard
6611 continued on next page
6616 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6619 \begin_layout Standard
6625 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6628 \begin_layout Standard
6636 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6639 \begin_layout Standard
6647 <cell alignment="center" valignment="top" topline="true" usebox="none">
6650 \begin_layout Standard
6656 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6659 \begin_layout Standard
6667 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6670 \begin_layout Standard
6678 <cell alignment="center" valignment="top" topline="true" usebox="none">
6681 \begin_layout Standard
6687 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6690 \begin_layout Standard
6698 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6701 \begin_layout Standard
6709 <cell alignment="center" valignment="top" topline="true" usebox="none">
6712 \begin_layout Standard
6718 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6721 \begin_layout Standard
6729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6732 \begin_layout Standard
6740 <cell alignment="center" valignment="top" topline="true" usebox="none">
6743 \begin_layout Standard
6749 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6752 \begin_layout Standard
6760 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6763 \begin_layout Standard
6771 <cell alignment="center" valignment="top" topline="true" usebox="none">
6774 \begin_layout Standard
6780 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6783 \begin_layout Standard
6791 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6794 \begin_layout Standard
6802 <cell alignment="center" valignment="top" topline="true" usebox="none">
6805 \begin_layout Standard
6811 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6814 \begin_layout Standard
6822 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6825 \begin_layout Standard
6833 <cell alignment="center" valignment="top" topline="true" usebox="none">
6836 \begin_layout Standard
6842 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6845 \begin_layout Standard
6853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6856 \begin_layout Standard
6864 <cell alignment="center" valignment="top" topline="true" usebox="none">
6867 \begin_layout Standard
6873 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6876 \begin_layout Standard
6884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6887 \begin_layout Standard
6895 <cell alignment="center" valignment="top" topline="true" usebox="none">
6898 \begin_layout Standard
6904 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6907 \begin_layout Standard
6915 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6918 \begin_layout Standard
6926 <cell alignment="center" valignment="top" topline="true" usebox="none">
6929 \begin_layout Standard
6935 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6938 \begin_layout Standard
6946 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6949 \begin_layout Standard
6957 <cell alignment="center" valignment="top" topline="true" usebox="none">
6960 \begin_layout Standard
6966 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6969 \begin_layout Standard
6977 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6980 \begin_layout Standard
6988 <cell alignment="center" valignment="top" topline="true" usebox="none">
6991 \begin_layout Standard
6997 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7000 \begin_layout Standard
7008 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7011 \begin_layout Standard
7019 <cell alignment="center" valignment="top" topline="true" usebox="none">
7022 \begin_layout Standard
7028 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7031 \begin_layout Standard
7039 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7042 \begin_layout Standard
7050 <cell alignment="center" valignment="top" topline="true" usebox="none">
7053 \begin_layout Standard
7059 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7062 \begin_layout Standard
7070 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7073 \begin_layout Standard
7082 \begin_layout Standard
7093 <cell alignment="center" valignment="top" topline="true" usebox="none">
7096 \begin_layout Standard
7102 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7105 \begin_layout Standard
7113 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7116 \begin_layout Standard
7124 <cell alignment="center" valignment="top" topline="true" usebox="none">
7127 \begin_layout Standard
7133 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7136 \begin_layout Standard
7144 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7147 \begin_layout Standard
7155 <cell alignment="center" valignment="top" topline="true" usebox="none">
7158 \begin_layout Standard
7164 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7167 \begin_layout Standard
7175 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7178 \begin_layout Standard
7186 <cell alignment="center" valignment="top" topline="true" usebox="none">
7189 \begin_layout Standard
7195 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7198 \begin_layout Standard
7206 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7209 \begin_layout Standard
7217 <cell alignment="center" valignment="top" topline="true" usebox="none">
7220 \begin_layout Standard
7226 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7229 \begin_layout Standard
7237 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7240 \begin_layout Standard
7248 <cell alignment="center" valignment="top" topline="true" usebox="none">
7251 \begin_layout Standard
7257 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7260 \begin_layout Standard
7268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7271 \begin_layout Standard
7279 <cell alignment="center" valignment="top" topline="true" usebox="none">
7282 \begin_layout Standard
7288 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7291 \begin_layout Standard
7299 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7302 \begin_layout Standard
7310 <cell alignment="center" valignment="top" topline="true" usebox="none">
7313 \begin_layout Standard
7319 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7322 \begin_layout Standard
7330 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7333 \begin_layout Standard
7341 <cell alignment="center" valignment="top" topline="true" usebox="none">
7344 \begin_layout Standard
7350 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7353 \begin_layout Standard
7361 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7364 \begin_layout Standard
7372 <cell alignment="center" valignment="top" topline="true" usebox="none">
7375 \begin_layout Standard
7381 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7384 \begin_layout Standard
7392 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7395 \begin_layout Standard
7403 <cell alignment="center" valignment="top" topline="true" usebox="none">
7406 \begin_layout Standard
7412 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7415 \begin_layout Standard
7423 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7426 \begin_layout Standard
7434 <cell alignment="center" valignment="top" topline="true" usebox="none">
7437 \begin_layout Standard
7443 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7446 \begin_layout Standard
7454 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7457 \begin_layout Standard
7465 <cell alignment="center" valignment="top" topline="true" usebox="none">
7468 \begin_layout Standard
7474 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7477 \begin_layout Standard
7485 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7488 \begin_layout Standard
7496 <cell alignment="center" valignment="top" topline="true" usebox="none">
7499 \begin_layout Standard
7505 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7508 \begin_layout Standard
7516 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7519 \begin_layout Standard
7527 <cell alignment="center" valignment="top" topline="true" usebox="none">
7530 \begin_layout Standard
7536 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7539 \begin_layout Standard
7547 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7550 \begin_layout Standard
7558 <cell alignment="center" valignment="top" topline="true" usebox="none">
7561 \begin_layout Standard
7567 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7570 \begin_layout Standard
7577 <row bottomline="true">
7578 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7581 \begin_layout Standard
7589 <cell alignment="center" valignment="top" topline="true" usebox="none">
7592 \begin_layout Standard
7598 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7601 \begin_layout Standard
7608 <row bottomline="true">
7609 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7612 \begin_layout Standard
7618 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
7621 \begin_layout Standard
7627 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7630 \begin_layout Standard
7638 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7641 \begin_layout Standard
7649 <cell alignment="center" valignment="top" topline="true" usebox="none">
7652 \begin_layout Standard
7658 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7661 \begin_layout Standard
7669 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7672 \begin_layout Standard
7680 <cell alignment="center" valignment="top" topline="true" usebox="none">
7683 \begin_layout Standard
7689 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7692 \begin_layout Standard
7700 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7703 \begin_layout Standard
7711 <cell alignment="center" valignment="top" topline="true" usebox="none">
7714 \begin_layout Standard
7720 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7723 \begin_layout Standard
7731 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7734 \begin_layout Standard
7742 <cell alignment="center" valignment="top" topline="true" usebox="none">
7745 \begin_layout Standard
7751 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7754 \begin_layout Standard
7762 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7765 \begin_layout Standard
7773 <cell alignment="center" valignment="top" topline="true" usebox="none">
7776 \begin_layout Standard
7782 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7785 \begin_layout Standard
7793 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7796 \begin_layout Standard
7804 <cell alignment="center" valignment="top" topline="true" usebox="none">
7807 \begin_layout Standard
7813 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7816 \begin_layout Standard
7824 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7827 \begin_layout Standard
7835 <cell alignment="center" valignment="top" topline="true" usebox="none">
7838 \begin_layout Standard
7844 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7847 \begin_layout Standard
7855 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7858 \begin_layout Standard
7866 <cell alignment="center" valignment="top" topline="true" usebox="none">
7869 \begin_layout Standard
7875 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7878 \begin_layout Standard
7886 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7889 \begin_layout Standard
7897 <cell alignment="center" valignment="top" topline="true" usebox="none">
7900 \begin_layout Standard
7906 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7909 \begin_layout Standard
7917 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7920 \begin_layout Standard
7928 <cell alignment="center" valignment="top" topline="true" usebox="none">
7931 \begin_layout Standard
7937 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7940 \begin_layout Standard
7948 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7951 \begin_layout Standard
7959 <cell alignment="center" valignment="top" topline="true" usebox="none">
7962 \begin_layout Standard
7968 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7971 \begin_layout Standard
7979 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7982 \begin_layout Standard
7990 <cell alignment="center" valignment="top" topline="true" usebox="none">
7993 \begin_layout Standard
7999 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8002 \begin_layout Standard
8010 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8013 \begin_layout Standard
8021 <cell alignment="center" valignment="top" topline="true" usebox="none">
8024 \begin_layout Standard
8030 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8033 \begin_layout Standard
8041 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8044 \begin_layout Standard
8052 <cell alignment="center" valignment="top" topline="true" usebox="none">
8055 \begin_layout Standard
8061 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8064 \begin_layout Standard
8072 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8075 \begin_layout Standard
8083 <cell alignment="center" valignment="top" topline="true" usebox="none">
8086 \begin_layout Standard
8092 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8095 \begin_layout Standard
8103 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8106 \begin_layout Standard
8114 <cell alignment="center" valignment="top" topline="true" usebox="none">
8117 \begin_layout Standard
8123 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8126 \begin_layout Standard
8134 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8137 \begin_layout Standard
8145 <cell alignment="center" valignment="top" topline="true" usebox="none">
8148 \begin_layout Standard
8154 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8157 \begin_layout Standard
8165 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8168 \begin_layout Standard
8176 <cell alignment="center" valignment="top" topline="true" usebox="none">
8179 \begin_layout Standard
8185 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8188 \begin_layout Standard
8196 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8199 \begin_layout Standard
8207 <cell alignment="center" valignment="top" topline="true" usebox="none">
8210 \begin_layout Standard
8216 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8219 \begin_layout Standard
8226 <row bottomline="true">
8227 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8230 \begin_layout Standard
8238 <cell alignment="center" valignment="top" topline="true" usebox="none">
8241 \begin_layout Standard
8247 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8250 \begin_layout Standard
8257 <row bottomline="true" endlastfoot="true">
8258 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
8261 \begin_layout Standard
8267 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8270 \begin_layout Standard
8276 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8279 \begin_layout Standard
8293 \begin_layout Section
8294 Special Longtable Issues
8295 \begin_inset LatexCommand label
8296 name "sec:Special-Longtable-Issues"
8303 \begin_layout Subsection
8304 Longtable Calculation
8305 \begin_inset LatexCommand index
8306 name "Longtables ! Calculation"
8313 \begin_layout Standard
8314 LaTeX calculates the height of table pages and their page breaks using so
8316 Chunks are pieces of the tables that are at once in LaTeX's memory.
8317 The default value is historically set to only 20 table rows.
8318 If you are using longtables with many pages this may slow down the creation
8320 You can safely increase the chunk size to values of 100-1000 by adding
8321 this command line to your document preamble:
8324 \begin_layout Standard
8329 setcounter{LTchunksize}{100}
8332 \begin_layout Subsection
8333 Floats and Longtables
8334 \begin_inset LatexCommand index
8335 name "Longtables ! Floats"
8342 \begin_layout Standard
8343 There might be problems when a float appears on the same page where a longtable
8345 To avoid such situation, add the command
8351 as ERT before your longtable.
8354 \begin_layout Subsection
8356 \begin_inset LatexCommand index
8357 name "Longtables ! Forced Page Breaks"
8364 \begin_layout Standard
8365 By default tables are only broken between rows.
8366 If you have a cell with multiples lines and want to have a page break within
8367 the cell, insert the new line command
8368 \begin_inset Quotes eld
8380 \begin_inset Quotes erd
8383 as ERT at this point of the cell where it should be broken.
8392 command you have to insert in ERT so many
8393 \begin_inset Quotes eld
8401 \begin_inset Quotes erd
8404 characters like the number of the following table columns.
8409 is the character to separate table cells.
8410 Write in ERT after each
8414 the content of the corresponding following cell and delete the content
8425 command, insert so many
8429 characters like the number of table columns before the current column.
8430 In Table\InsetSpace ~
8432 \begin_inset LatexCommand ref
8433 reference "tab:ForcedPagebreak"
8437 the cell that should be broken is in the second column followed by another
8439 Therefore the following command was inserted in the cell as ERT behind
8441 \begin_inset Quotes eld
8449 \begin_inset Quotes erd
8455 \begin_layout Standard
8467 \begin_layout Standard
8469 \begin_inset Quotes eld
8473 \begin_inset Quotes erd
8476 in the third columns of the row was deleted.
8477 If your footer row of the longtable has for a certain reason no upper line
8478 but you would have a horizontal line where the cell is broken, use this
8482 \begin_layout Standard
8496 \begin_layout Standard
8497 When the cell to be broken is in the last column, the command
8500 \begin_layout Standard
8507 parf\SpecialChar \textcompwordmark{}
8511 \begin_layout Standard
8512 must be inserted as ERT at the beginning of the cell.
8513 This assures that the part of the cell that will be displayed on the new
8514 page appears with the full width.
8518 \begin_layout Standard
8520 \begin_inset Tabular
8521 <lyxtabular version="3" rows="39" columns="3">
8522 <features islongtable="true">
8523 <column alignment="left" valignment="top" leftline="true" width="0cm">
8524 <column alignment="left" valignment="top" rightline="true" width="3cm">
8525 <column alignment="right" valignment="top" rightline="true" width="0pt">
8526 <row endfirsthead="true">
8527 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8530 \begin_layout Standard
8531 \begin_inset Caption
8533 \begin_layout Standard
8534 Table with forced page break in table cell
8535 \begin_inset LatexCommand label
8536 name "tab:ForcedPagebreak"
8544 \begin_layout Standard
8545 Table with forced page break in table cell
8559 \begin_layout Standard
8575 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8578 \begin_layout Standard
8584 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8587 \begin_layout Standard
8594 <row topline="true" bottomline="true" endfirsthead="true">
8595 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8598 \begin_layout Standard
8601 Example Phone List (ignore the names)
8606 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8609 \begin_layout Standard
8615 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8618 \begin_layout Standard
8625 <row topline="true" bottomline="true" endfirsthead="true">
8626 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8629 \begin_layout Standard
8637 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8640 \begin_layout Standard
8646 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8649 \begin_layout Standard
8658 <row bottomline="true" endhead="true">
8659 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8662 \begin_layout Standard
8666 \begin_layout Standard
8670 caption*{Continued table with forced page break in table cell}
8684 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8687 \begin_layout Standard
8693 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8696 \begin_layout Standard
8703 <row topline="true" bottomline="true" endhead="true">
8704 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8707 \begin_layout Standard
8715 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8718 \begin_layout Standard
8724 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8727 \begin_layout Standard
8734 <row topline="true" bottomline="true" endhead="true">
8735 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8738 \begin_layout Standard
8746 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8749 \begin_layout Standard
8755 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8758 \begin_layout Standard
8767 <row topline="true" bottomline="true" endfoot="true">
8768 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
8771 \begin_layout Standard
8772 continued on next page
8777 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8780 \begin_layout Standard
8786 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8789 \begin_layout Standard
8797 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8800 \begin_layout Standard
8808 <cell alignment="center" valignment="top" topline="true" usebox="none">
8811 \begin_layout Standard
8817 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8820 \begin_layout Standard
8828 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8831 \begin_layout Standard
8839 <cell alignment="center" valignment="top" topline="true" usebox="none">
8842 \begin_layout Standard
8848 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8851 \begin_layout Standard
8859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8862 \begin_layout Standard
8870 <cell alignment="center" valignment="top" topline="true" usebox="none">
8873 \begin_layout Standard
8879 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8882 \begin_layout Standard
8890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8893 \begin_layout Standard
8901 <cell alignment="center" valignment="top" topline="true" usebox="none">
8904 \begin_layout Standard
8910 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8913 \begin_layout Standard
8921 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8924 \begin_layout Standard
8932 <cell alignment="center" valignment="top" topline="true" usebox="none">
8935 \begin_layout Standard
8941 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8944 \begin_layout Standard
8952 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8955 \begin_layout Standard
8963 <cell alignment="center" valignment="top" topline="true" usebox="none">
8966 \begin_layout Standard
8972 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8975 \begin_layout Standard
8983 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8986 \begin_layout Standard
8994 <cell alignment="center" valignment="top" topline="true" usebox="none">
8997 \begin_layout Standard
9003 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9006 \begin_layout Standard
9014 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9017 \begin_layout Standard
9025 <cell alignment="center" valignment="top" topline="true" usebox="none">
9028 \begin_layout Standard
9034 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9037 \begin_layout Standard
9045 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9048 \begin_layout Standard
9056 <cell alignment="center" valignment="top" topline="true" usebox="none">
9059 \begin_layout Standard
9065 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9068 \begin_layout Standard
9076 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9079 \begin_layout Standard
9087 <cell alignment="center" valignment="top" topline="true" usebox="none">
9090 \begin_layout Standard
9096 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9099 \begin_layout Standard
9107 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9110 \begin_layout Standard
9118 <cell alignment="center" valignment="top" topline="true" usebox="none">
9121 \begin_layout Standard
9127 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9130 \begin_layout Standard
9138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9141 \begin_layout Standard
9149 <cell alignment="center" valignment="top" topline="true" usebox="none">
9152 \begin_layout Standard
9158 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9161 \begin_layout Standard
9169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9172 \begin_layout Standard
9180 <cell alignment="center" valignment="top" topline="true" usebox="none">
9183 \begin_layout Standard
9189 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9192 \begin_layout Standard
9200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9203 \begin_layout Standard
9211 <cell alignment="center" valignment="top" topline="true" usebox="none">
9214 \begin_layout Standard
9220 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9223 \begin_layout Standard
9231 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9234 \begin_layout Standard
9242 <cell alignment="center" valignment="top" topline="true" usebox="none">
9245 \begin_layout Standard
9251 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9254 \begin_layout Standard
9262 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9265 \begin_layout Standard
9273 <cell alignment="center" valignment="top" topline="true" usebox="none">
9276 \begin_layout Standard
9282 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9285 \begin_layout Standard
9293 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9296 \begin_layout Standard
9304 <cell alignment="center" valignment="top" topline="true" usebox="none">
9307 \begin_layout Standard
9313 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9316 \begin_layout Standard
9324 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9327 \begin_layout Standard
9335 <cell alignment="center" valignment="top" topline="true" usebox="none">
9338 \begin_layout Standard
9344 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9347 \begin_layout Standard
9355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9358 \begin_layout Standard
9366 <cell alignment="center" valignment="top" topline="true" usebox="none">
9369 \begin_layout Standard
9375 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9378 \begin_layout Standard
9386 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9389 \begin_layout Standard
9397 <cell alignment="center" valignment="top" topline="true" usebox="none">
9400 \begin_layout Standard
9406 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9409 \begin_layout Standard
9417 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9420 \begin_layout Standard
9428 <cell alignment="center" valignment="top" topline="true" usebox="none">
9431 \begin_layout Standard
9437 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9440 \begin_layout Standard
9448 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9451 \begin_layout Standard
9459 <cell alignment="center" valignment="top" topline="true" usebox="none">
9462 \begin_layout Standard
9468 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9471 \begin_layout Standard
9479 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9482 \begin_layout Standard
9490 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9493 \begin_layout Standard
9495 Fürst von Montecompatri, 11.
9496 Fürst von Sulmona und Vivaro, 10.
9497 Fürst von Rossano, 5.
9498 Herzog von Canemorte, 11.
9499 Herzog von Palombara, 5.
9500 Herzog von Castelchiodato,
9504 \begin_layout Standard
9513 \begin_layout Standard
9521 Herzog von Poggionativo, 11.
9522 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
9523 Graf von Valinfreda, 11.
9524 Baron von Cropalati, 11.
9525 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
9530 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9533 \begin_layout Standard
9541 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9544 \begin_layout Standard
9552 <cell alignment="center" valignment="top" topline="true" usebox="none">
9555 \begin_layout Standard
9561 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9564 \begin_layout Standard
9572 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9575 \begin_layout Standard
9583 <cell alignment="center" valignment="top" topline="true" usebox="none">
9586 \begin_layout Standard
9592 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9595 \begin_layout Standard
9603 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9606 \begin_layout Standard
9614 <cell alignment="center" valignment="top" topline="true" usebox="none">
9617 \begin_layout Standard
9623 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9626 \begin_layout Standard
9634 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9637 \begin_layout Standard
9645 <cell alignment="center" valignment="top" topline="true" usebox="none">
9648 \begin_layout Standard
9654 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9657 \begin_layout Standard
9665 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9668 \begin_layout Standard
9676 <cell alignment="center" valignment="top" topline="true" usebox="none">
9679 \begin_layout Standard
9685 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9688 \begin_layout Standard
9696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9699 \begin_layout Standard
9707 <cell alignment="center" valignment="top" topline="true" usebox="none">
9710 \begin_layout Standard
9716 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9719 \begin_layout Standard
9727 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9730 \begin_layout Standard
9738 <cell alignment="center" valignment="top" topline="true" usebox="none">
9741 \begin_layout Standard
9747 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9750 \begin_layout Standard
9757 <row bottomline="true">
9758 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9761 \begin_layout Standard
9769 <cell alignment="center" valignment="top" topline="true" usebox="none">
9772 \begin_layout Standard
9778 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9781 \begin_layout Standard
9788 <row endlastfoot="true">
9789 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9792 \begin_layout Standard
9798 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9801 \begin_layout Standard
9807 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9810 \begin_layout Standard
9824 \begin_layout Section
9825 Multiple Lines Columns and Rows
9828 \begin_layout Subsection
9829 Multiple Lines in Table Cells
9830 \begin_inset LatexCommand label
9831 name "sub:Multiple-Lines-in"
9836 \begin_inset LatexCommand index
9837 name "Multiple Lines in Table Cells"
9842 \begin_inset LatexCommand index
9843 name "Table ! Linebreaks"
9850 \begin_layout Standard
9852 \begin_inset Float table
9858 \begin_layout Standard
9859 \begin_inset Caption
9861 \begin_layout Standard
9862 \begin_inset LatexCommand label
9863 name "tab:Table-with-multiple"
9867 Table with multiple lines in cells
9875 \begin_layout Standard
9877 \begin_inset Tabular
9878 <lyxtabular version="3" rows="3" columns="3">
9880 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
9881 <column alignment="center" valignment="middle" leftline="true" width="0">
9882 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
9883 <row topline="true">
9884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9887 \begin_layout Standard
9892 \begin_layout Standard
9906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9909 \begin_layout Standard
9915 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9918 \begin_layout Standard
9925 <row topline="true">
9926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9929 \begin_layout Standard
9935 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9938 \begin_layout Standard
9944 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9947 \begin_layout Standard
9954 <row topline="true" bottomline="true">
9955 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9958 \begin_layout Standard
9964 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9967 \begin_layout Standard
9973 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9976 \begin_layout Standard
9995 \begin_layout Standard
9996 Adjusting a fixed width for a column, enables to enter text as a paragraph
9997 with multiple lines and hyphenations.
10000 \begin_layout Standard
10001 To produce Table\InsetSpace ~
10003 \begin_inset LatexCommand ref
10004 reference "tab:Table-with-multiple"
10008 , create a 3×3 table, mark the first cell and right-click on it.
10009 In the appearing table dialog we set a cell width of 2.5\InsetSpace \thinspace{}
10010 cm and choose centered
10011 for the vertical and horizontal alignment.
10012 The vertical alignment is used for all cells of the row.
10013 As our text is smaller than than 2.5\InsetSpace \thinspace{}
10014 cm, only one line will appear.
10015 To get two lines, we add a line break with the command
10018 \begin_layout Standard
10026 \begin_layout Standard
10028 If the text is wider than the set cell width it will automatically be broken
10032 \begin_layout Standard
10033 If you have a long word in a cell with a fixed width, it cannot be hyphenated
10034 by LaTeX if it is the first entry.
10035 Therefore you need to insert something, to make the word not being the
10036 first entry: Add the command
10039 \begin_layout Standard
10047 \begin_layout Standard
10048 in ERT before the word.
10049 As the space is zero, it doesn't change the output.
10052 \begin_inset LatexCommand ref
10053 reference "tab:Table-with-and"
10060 \begin_layout Standard
10061 \begin_inset Float table
10067 \begin_layout Standard
10068 \begin_inset Caption
10070 \begin_layout Standard
10071 \begin_inset LatexCommand label
10072 name "tab:Table-with-and"
10076 Table with and without hyphenation
10084 \begin_layout Standard
10088 \begin_inset Tabular
10089 <lyxtabular version="3" rows="3" columns="3">
10091 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10092 <column alignment="center" valignment="middle" leftline="true" width="0">
10093 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
10094 <row topline="true">
10095 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10098 \begin_layout Standard
10099 verylongtablecellword
10104 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10107 \begin_layout Standard
10113 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10116 \begin_layout Standard
10123 <row topline="true">
10124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10127 \begin_layout Standard
10133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10136 \begin_layout Standard
10142 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10145 \begin_layout Standard
10152 <row topline="true" bottomline="true">
10153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10156 \begin_layout Standard
10162 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10165 \begin_layout Standard
10171 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10174 \begin_layout Standard
10188 \begin_inset Tabular
10189 <lyxtabular version="3" rows="3" columns="3">
10191 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10192 <column alignment="center" valignment="middle" leftline="true" width="0">
10193 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
10194 <row topline="true">
10195 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10198 \begin_layout Standard
10202 \begin_layout Standard
10211 verylongtablecellword
10216 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10219 \begin_layout Standard
10225 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10228 \begin_layout Standard
10235 <row topline="true">
10236 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10239 \begin_layout Standard
10245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10248 \begin_layout Standard
10254 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10257 \begin_layout Standard
10264 <row topline="true" bottomline="true">
10265 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10268 \begin_layout Standard
10274 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10277 \begin_layout Standard
10283 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10286 \begin_layout Standard
10307 \begin_layout Standard
10313 \begin_layout Subsection
10315 \begin_inset LatexCommand label
10316 name "sub:Multicolumns"
10321 \begin_inset LatexCommand index
10322 name "Multicolumns"
10327 \begin_inset LatexCommand index
10328 name "Table ! Multicolumns"
10335 \begin_layout Subsubsection
10339 \begin_layout Standard
10340 To span a cell over multiple columns, mark as much cells within a line that
10341 should be one spanned cell and use either the table-toolbar button
10342 \begin_inset Graphics
10343 filename ../images/tabular-feature_multicolumn.xpm
10350 Edit\SpecialChar \menuseparator
10351 Table\SpecialChar \menuseparator
10354 , or right click on the marked cells and choose multicolumn in the appearing
10355 table dialog under the tab
10362 \begin_layout Standard
10363 Multicolumns have there own cell settings.
10364 That means changing cell borders, cell alignment, and the width only affects
10366 Here is an example table with a multicolumn cell in the first row and one
10367 in the last row without the upper border:
10370 \begin_layout Standard
10372 \begin_inset Tabular
10373 <lyxtabular version="3" rows="3" columns="4">
10374 <features firstHeadTopDL="true" firstHeadBottomDL="true">
10375 <column alignment="center" valignment="top" leftline="true" width="0pt">
10376 <column alignment="center" valignment="middle" leftline="true" width="0">
10377 <column alignment="center" valignment="top" leftline="true" width="0in">
10378 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
10379 <row topline="true" bottomline="true">
10380 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10383 \begin_layout Standard
10389 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
10392 \begin_layout Standard
10402 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10405 \begin_layout Standard
10411 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10414 \begin_layout Standard
10421 <row topline="true">
10422 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10425 \begin_layout Standard
10440 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10443 \begin_layout Standard
10449 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10452 \begin_layout Standard
10458 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10461 \begin_layout Standard
10468 <row topline="true" bottomline="true">
10469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10472 \begin_layout Standard
10478 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10481 \begin_layout Standard
10487 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10490 \begin_layout Standard
10496 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10499 \begin_layout Standard
10513 \begin_layout Subsubsection
10514 Multicolumn Calculations
10515 \begin_inset LatexCommand label
10516 name "sub:Multicolumn-Calculations"
10521 \begin_inset LatexCommand index
10522 name "Multicolumns ! Calculations"
10529 \begin_layout Standard
10530 LyX supports multicolumns directly, but we have to take notice of the cell
10531 width of the columns spanned by the multicolumn cell.
10534 \begin_layout Standard
10535 \begin_inset Float table
10540 \begin_layout Standard
10541 \begin_inset Caption
10543 \begin_layout Standard
10544 \begin_inset LatexCommand label
10545 name "tab:Table-with-centered"
10549 Table with centered multicolumn text above two columns that have exactly
10550 half the width of the multicolumn cell
10551 \begin_inset OptArg
10554 \begin_layout Standard
10555 Perfect multicolumn table
10568 \begin_layout Standard
10570 \begin_inset Tabular
10571 <lyxtabular version="3" rows="3" columns="3">
10573 <column alignment="center" valignment="middle" leftline="true" width="0" special=">{\centering}m{1.25cm-6.2pt}">
10574 <column alignment="center" valignment="middle" leftline="true" width="0">
10575 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10576 <row topline="true">
10577 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
10580 \begin_layout Standard
10581 multiple lines multicolumn
10586 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10589 \begin_layout Standard
10595 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10598 \begin_layout Standard
10605 <row topline="true">
10606 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10609 \begin_layout Standard
10615 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10618 \begin_layout Standard
10624 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10627 \begin_layout Standard
10634 <row topline="true" bottomline="true">
10635 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10638 \begin_layout Standard
10644 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10647 \begin_layout Standard
10653 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10656 \begin_layout Standard
10675 \begin_layout Standard
10676 To create for example Table\InsetSpace ~
10678 \begin_inset LatexCommand ref
10679 reference "tab:Table-with-centered"
10683 , mark the first two cells in the first row of a 3×3 table and right-click
10685 Now choose for this cell
10693 and a width of 2.5\InsetSpace \thinspace{}
10694 cm in the table dialog.
10695 The spanned columns should have exactly half the width of the multicolumn
10696 cell, so that you would adjust a width of 1.25\InsetSpace \thinspace{}
10697 cm for the first column.
10698 The second column has then automatically a width of 1.25\InsetSpace \thinspace{}
10700 width - width of first column).
10701 This was done for Table\InsetSpace ~
10703 \begin_inset LatexCommand ref
10704 reference "tab:Table-without-half"
10711 \begin_layout Standard
10712 \begin_inset Float table
10717 \begin_layout Standard
10718 \begin_inset Caption
10720 \begin_layout Standard
10721 \begin_inset LatexCommand label
10722 name "tab:Table-without-half"
10726 Table where the spanned table columns have not exactly half the width of
10727 the multicolumn cell
10728 \begin_inset OptArg
10731 \begin_layout Standard
10732 Imperfect multicolumn table
10745 \begin_layout Standard
10747 \begin_inset Tabular
10748 <lyxtabular version="3" rows="3" columns="3">
10750 <column alignment="center" valignment="top" leftline="true" width="1.25cm">
10751 <column alignment="center" valignment="top" leftline="true" width="0">
10752 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10753 <row topline="true" bottomline="true">
10754 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
10757 \begin_layout Standard
10758 multiple lines multicolumn
10763 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10766 \begin_layout Standard
10772 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10775 \begin_layout Standard
10782 <row topline="true">
10783 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10786 \begin_layout Standard
10792 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10795 \begin_layout Standard
10801 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10804 \begin_layout Standard
10811 <row topline="true" bottomline="true">
10812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10815 \begin_layout Standard
10821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10824 \begin_layout Standard
10830 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10833 \begin_layout Standard
10852 \begin_layout Standard
10853 You can see that the first column has not the half width of the multicolumn
10854 cell, it is a bit bigger.
10855 The reason is that the given width of a cell
10856 \begin_inset Formula $W_{g}$
10859 is not its total width
10860 \begin_inset Formula $W_{\mathrm{tot}}$
10863 because a cell is always a bit larger than its given width.
10864 Appendix\InsetSpace ~
10866 \begin_inset LatexCommand eqref
10867 reference "cha:Explanation-of-Equation"
10871 explains it in detail.
10874 \begin_layout Standard
10875 The needed given width
10876 \begin_inset Formula $W_{g\, n}$
10883 columns are spanned can be calculated, so that each column has a total
10885 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
10889 \begin_inset Formula \begin{equation}
10890 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)·(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
10897 \begin_layout Standard
10898 In our case we have
10899 \begin_inset Formula $n=2$
10903 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
10906 cm and the default values for the lengths, so that equation
10907 \begin_inset LatexCommand ref
10913 \begin_inset Formula \begin{equation}
10914 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
10921 \begin_layout Standard
10922 To enable calculations in LaTeX, the LaTeX-package
10926 must be loaded with the document preamble line
10927 \begin_inset LatexCommand index
10928 name "LaTeX-packages ! calc"
10935 \begin_layout Standard
10943 \begin_layout Standard
10944 LyX does not allow to calculate lengths in the width-field of the table
10946 Therefore you have to format the column by inserting a LaTeX-argument in
10948 Here is an overview about the arguments:
10951 \begin_layout Itemize
10956 creates cell with a fixed width, its text is vertically top-aligned
10959 \begin_layout Itemize
10964 creates cell with a fixed width, its text is vertically centered
10967 \begin_layout Itemize
10972 creates cell with a fixed width, its text is vertically bottom-aligned
10975 \begin_layout Standard
10976 By entering a LaTeX-argument, all cell properties set in the table dialog
10979 \begin_inset Note Greyedout
10982 \begin_layout Standard
10987 Due to a bug, LyX shows the overwritten properties anyway.
10992 As the text should be horizontally centered, the command
10999 You can now enter the following LaTeX-argument for the first spanned column:
11002 \begin_layout Standard
11007 centering}m{1.25cm-6.2pt}
11010 \begin_layout Standard
11015 means, that the commands inside the braces are applied before the cell
11019 \begin_layout Standard
11020 Although we have chosen centered alignment for the text of the multicolumn
11021 cell, it is still left aligned.
11022 This is because LyX only applies the alignment to single columns.
11023 So we have to use for the multicolumn the LaTeX-argument
11026 \begin_layout Standard
11034 \begin_layout Subsection
11036 \begin_inset LatexCommand index
11042 \begin_inset LatexCommand index
11043 name "Table ! Multirows"
11048 \begin_inset LatexCommand index
11049 name "LaTeX-packages ! multirow"
11056 \begin_layout Standard
11057 In contrary to multicolumns multirows are not yet supported by LyX so a
11058 bit of ERT needs to be used.
11059 To use multirows load the LaTeX-package
11063 in your document preamble with the command
11066 \begin_layout Standard
11071 usepackage{multirow}
11074 \begin_layout Standard
11075 Multirows are created with the command
11078 \begin_layout Standard
11083 multirow{number of rows}{cell width}{cell entry}
11086 \begin_layout Standard
11087 To create the following table:
11090 \begin_layout Standard
11095 \begin_layout Standard
11109 \begin_inset Tabular
11110 <lyxtabular version="3" rows="3" columns="3">
11112 <column alignment="center" valignment="top" leftline="true" width="0">
11113 <column alignment="center" valignment="top" leftline="true" width="0">
11114 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
11115 <row topline="true">
11116 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11119 \begin_layout Standard
11125 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11128 \begin_layout Standard
11134 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11137 \begin_layout Standard
11144 <row topline="true">
11145 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11148 \begin_layout Standard
11152 \begin_layout Standard
11156 multirow{2}{2.5cm}{
11165 \begin_layout Standard
11177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11180 \begin_layout Standard
11186 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11189 \begin_layout Standard
11196 <row topline="true" bottomline="true">
11197 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11200 \begin_layout Standard
11206 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11209 \begin_layout Standard
11215 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11218 \begin_layout Standard
11233 \begin_layout Standard
11249 \begin_layout Standard
11250 create a 3×3 table.
11251 To get rid of the line above the last cell in the first column, the cell
11252 is marked as multicolumn and the upper border is unset.
11253 The multirow is now created in the second row of the first column by inserting
11257 \begin_layout Standard
11262 multirow{2}{2.5cm}{
11265 \begin_layout Standard
11267 According to the command parameters the multirow spans now two rows and
11268 has a width of 2.5\InsetSpace \thinspace{}
11270 The content of the multirow cell follows outside the ERT box and the command
11271 is finished with a right brace
11275 in another ERT-box behind the text.
11278 \begin_layout Standard
11285 left-aligns its content by default.
11286 To override the default, renew the command
11295 \begin_layout Standard
11307 \begin_layout Standard
11308 in ERT in the document preamble.
11309 Then all entries of multirow cells in the document are centered.
11310 If centering is only needed for several tables, you can renew the command
11311 in an ERT box just before the table instead of the preamble.
11312 If the text should be right-aligned, replace
11325 To return to left-alignment
11334 \begin_layout Section
11336 \begin_inset LatexCommand label
11337 name "sec:Formal-Tables"
11342 \begin_inset LatexCommand index
11343 name "Table ! Formal"
11350 \begin_layout Standard
11351 Tables are often typeset in books similar to Table\InsetSpace ~
11353 \begin_inset LatexCommand ref
11354 reference "tab:Example-booktabs-table"
11359 This kind of tables is called
11360 \begin_inset Quotes eld
11368 \begin_inset Quotes erd
11372 To make a table a formal table use the option
11380 tab of the table dialog.
11383 \begin_layout Standard
11384 \begin_inset Float table
11390 \begin_layout Standard
11391 \begin_inset Caption
11393 \begin_layout Standard
11394 \begin_inset LatexCommand label
11395 name "tab:Example-booktabs-table"
11399 Example booktabs-table
11407 \begin_layout Standard
11409 \begin_inset Tabular
11410 <lyxtabular version="3" rows="8" columns="4">
11411 <features booktabs="true">
11412 <column alignment="center" valignment="top" rightline="true" width="0">
11413 <column alignment="center" valignment="top" width="0">
11414 <column alignment="center" valignment="top" width="0">
11415 <column alignment="center" valignment="top" width="0">
11416 <row topline="true">
11417 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11420 \begin_layout Standard
11426 <cell alignment="center" valignment="top" topline="true" usebox="none">
11429 \begin_layout Standard
11431 \begin_inset Formula $\,$
11439 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
11442 \begin_layout Standard
11444 \begin_inset Formula $\,$
11452 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11455 \begin_layout Standard
11463 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11466 \begin_layout Standard
11470 \begin_layout Standard
11483 \begin_layout Standard
11492 Detector thickness [µm]
11497 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11500 \begin_layout Standard
11506 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11509 \begin_layout Standard
11515 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11518 \begin_layout Standard
11525 <row topline="true">
11526 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11529 \begin_layout Standard
11535 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11538 \begin_layout Standard
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" rightline="true" usebox="none">
11556 \begin_layout Standard
11563 <row topspace="default">
11564 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11567 \begin_layout Standard
11568 Spatial resolution [µm]
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" rightline="true" usebox="none">
11594 \begin_layout Standard
11601 <row topspace="default">
11602 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11605 \begin_layout Standard
11607 \begin_inset Formula $f_{\mathrm{max}}$
11615 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11618 \begin_layout Standard
11624 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11627 \begin_layout Standard
11633 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11636 \begin_layout Standard
11643 <row topspace="default">
11644 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11647 \begin_layout Standard
11651 \begin_layout Standard
11655 cmidrule(l{10pt}){1-1}
11660 LSF-spatial resolution
11665 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11668 \begin_layout Standard
11674 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11677 \begin_layout Standard
11683 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11686 \begin_layout Standard
11694 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11697 \begin_layout Standard
11703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11706 \begin_layout Standard
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" rightline="true" usebox="none">
11724 \begin_layout Standard
11731 <row bottomline="true">
11732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11735 \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" rightline="true" usebox="none">
11762 \begin_layout Standard
11781 \begin_layout Standard
11782 Spaces to table rows can be added using the
11786 tab of the table dialog as described in section\InsetSpace ~
11788 \begin_inset LatexCommand ref
11789 reference "sub:Row-Spacing"
11796 \begin_layout Standard
11797 In contrary to normal tables, formal tables have no vertical table lines.
11798 The horizontal table lines can be set like for normal tables but they appear
11799 with different width in the output:
11801 The first and the last table line have
11802 a default width of 0.08\InsetSpace \thinspace{}
11803 em while the other lines have a default width of
11804 0.05\InsetSpace \thinspace{}
11808 \begin_layout Standard
11809 The default widths can be changed with the following preamble lines
11812 \begin_layout Standard
11832 \begin_layout Standard
11833 This example is for the first line, the so called toprule.
11834 If you want to change the width for the last line, replace
11843 To change the width for the other lines replace
11852 You can use all units listed in appendix\InsetSpace ~
11854 \begin_inset LatexCommand ref
11855 reference "cha:Units-available-in"
11862 \begin_layout Standard
11863 Lines that don't span over all table columns can be created by setting a
11864 table line for multicolumn cells.
11865 LyX will then internally use the command
11871 to create this line.
11875 \begin_layout Standard
11880 cmidrule[width](trim){startcol-endcol}
11883 \begin_layout Standard
11890 are are currently not supported by LyX so you have to use ERT to be able
11898 s can manually be created by inserting the command as ERT as first cell
11899 entry of the first cell of a row.
11900 The line is then drawn in the output above the current row.
11903 \begin_layout Standard
11904 The default for the width is 0.03\InsetSpace \thinspace{}
11906 Startcol is the number of the column where the line starts and endcol the
11907 column number where the line ends.
11908 The endcol always needs to be specified, also when the line should span
11910 The optional parameter trim could be either
11918 where the trimwidth is also optional.
11919 Using for example the parameter
11923 means that the line is trimmed from its left end by 2\InsetSpace \thinspace{}
11925 If you don't specify the trimwidth the lines are trimmed by the default
11926 of 0.5\InsetSpace \thinspace{}
11930 \begin_layout Standard
11931 \begin_inset VSpace bigskip
11936 \begin_inset LatexCommand ref
11937 reference "tab:Example-booktabs-table"
11941 was created using the commands
11944 \begin_layout Standard
11954 \begin_layout Standard
11955 at the beginning of the in the second row and
11958 \begin_layout Standard
11963 cmidrule(l{10pt}){1-1}
11966 \begin_layout Standard
11970 \begin_layout Standard
11974 \begin_layout Standard
11975 \begin_inset VSpace bigskip
11981 \begin_layout Standard
11982 You might want to have overlapping
11988 s like in Table\InsetSpace ~
11990 \begin_inset LatexCommand ref
11991 reference "tab:Special-booktabs-table"
11996 This can be achieved with the ERT command
11999 \begin_layout Standard
12007 \begin_layout Standard
12008 The command that was used for the second row of Table\InsetSpace ~
12010 \begin_inset LatexCommand ref
12011 reference "tab:Special-booktabs-table"
12018 \begin_layout Standard
12032 \begin_layout Standard
12033 The command for the sixth row is
12036 \begin_layout Standard
12048 \begin_layout Standard
12049 \begin_inset VSpace bigskip
12055 \begin_layout Standard
12056 If you are anyway not satisfied with the border line spacing, you can use
12057 the following command to produce lines that span over all table columns
12062 \begin_layout Standard
12067 specialrule{width}{space above}{space below}
12070 \begin_layout Standard
12071 For more informations about these specialties, we refer to the manual of
12077 \begin_inset LatexCommand cite
12083 \begin_inset LatexCommand index
12084 name "LaTeX-packages ! booktabs"
12091 \begin_layout Standard
12092 \begin_inset Float table
12098 \begin_layout Standard
12099 \begin_inset Caption
12101 \begin_layout Standard
12102 \begin_inset LatexCommand label
12103 name "tab:Special-booktabs-table"
12107 Special booktabs-table
12115 \begin_layout Standard
12117 \begin_inset Tabular
12118 <lyxtabular version="3" rows="8" columns="4">
12119 <features booktabs="true">
12120 <column alignment="center" valignment="top" width="0">
12121 <column alignment="center" valignment="top" width="0">
12122 <column alignment="center" valignment="top" width="0">
12123 <column alignment="center" valignment="top" width="0">
12124 <row topline="true">
12125 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12128 \begin_layout Standard
12134 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12137 \begin_layout Standard
12138 Medipix\InsetSpace \thinspace{}
12144 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
12147 \begin_layout Standard
12148 Medipix\InsetSpace \thinspace{}
12154 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12157 \begin_layout Standard
12165 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12168 \begin_layout Standard
12172 \begin_layout Standard
12185 \begin_layout Standard
12198 \begin_layout Standard
12211 \begin_layout Standard
12220 Detector thickness [µm]
12225 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12228 \begin_layout Standard
12234 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12237 \begin_layout Standard
12243 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12246 \begin_layout Standard
12253 <row topline="true">
12254 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12257 \begin_layout Standard
12263 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12266 \begin_layout Standard
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" rightline="true" usebox="none">
12284 \begin_layout Standard
12291 <row topspace="default">
12292 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12295 \begin_layout Standard
12296 Spatial resolution [µm]
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" rightline="true" usebox="none">
12322 \begin_layout Standard
12329 <row topspace="default">
12330 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12333 \begin_layout Standard
12335 \begin_inset Formula $f_{\mathrm{max}}$
12343 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12346 \begin_layout Standard
12352 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12355 \begin_layout Standard
12361 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12364 \begin_layout Standard
12371 <row topline="true">
12372 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12375 \begin_layout Standard
12379 \begin_layout Standard
12392 \begin_layout Standard
12401 LSF-spatial resolution
12406 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12409 \begin_layout Standard
12415 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12418 \begin_layout Standard
12424 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12427 \begin_layout Standard
12435 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12438 \begin_layout Standard
12444 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12447 \begin_layout Standard
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" rightline="true" usebox="none">
12465 \begin_layout Standard
12472 <row bottomline="true">
12473 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12476 \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" rightline="true" usebox="none">
12503 \begin_layout Standard
12522 \begin_layout Section
12523 Vertical Table Alignment
12524 \begin_inset LatexCommand index
12525 name "Table ! Alignment"
12532 \begin_layout Standard
12533 To align tables vertically in a text line the table must be inside a box.
12534 The box can then be vertically aligned as described in section\InsetSpace ~
12536 \begin_inset LatexCommand ref
12537 reference "sec:Box-Dialog"
12544 \begin_layout Standard
12545 In the following example the tables are inside a minipage
12549 \begin_layout Standard
12550 Minipages are described in section\InsetSpace ~
12552 \begin_inset LatexCommand ref
12553 reference "sec:Minipages"
12562 box that has a width of 15\InsetSpace \thinspace{}
12566 \begin_layout Itemize
12568 \begin_inset Box Frameless
12577 height_special "totalheight"
12580 \begin_layout Standard
12581 \begin_inset Tabular
12582 <lyxtabular version="3" rows="3" columns="3">
12584 <column alignment="center" valignment="top" leftline="true" width="0">
12585 <column alignment="center" valignment="top" leftline="true" width="0">
12586 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12587 <row topline="true">
12588 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12591 \begin_layout Standard
12597 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12600 \begin_layout Standard
12606 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12609 \begin_layout Standard
12616 <row topline="true">
12617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12620 \begin_layout Standard
12626 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12629 \begin_layout Standard
12635 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12638 \begin_layout Standard
12645 <row topline="true" bottomline="true">
12646 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12649 \begin_layout Standard
12655 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12658 \begin_layout Standard
12664 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12667 \begin_layout Standard
12687 \begin_layout Standard
12699 \begin_inset Box Frameless
12708 height_special "totalheight"
12711 \begin_layout Standard
12712 \begin_inset Tabular
12713 <lyxtabular version="3" rows="3" columns="3">
12715 <column alignment="center" valignment="top" leftline="true" width="0">
12716 <column alignment="center" valignment="top" leftline="true" width="0">
12717 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12718 <row topline="true">
12719 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12722 \begin_layout Standard
12728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12731 \begin_layout Standard
12737 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12740 \begin_layout Standard
12747 <row topline="true">
12748 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12751 \begin_layout Standard
12757 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12760 \begin_layout Standard
12766 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12769 \begin_layout Standard
12776 <row topline="true" bottomline="true">
12777 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12780 \begin_layout Standard
12786 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12789 \begin_layout Standard
12795 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12798 \begin_layout Standard
12818 \begin_layout Standard
12828 \begin_layout Itemize
12830 \begin_inset Box Frameless
12839 height_special "totalheight"
12842 \begin_layout Standard
12843 \begin_inset Tabular
12844 <lyxtabular version="3" rows="3" columns="3">
12846 <column alignment="center" valignment="top" leftline="true" width="0">
12847 <column alignment="center" valignment="top" leftline="true" width="0">
12848 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12849 <row topline="true">
12850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12853 \begin_layout Standard
12859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12862 \begin_layout Standard
12868 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12871 \begin_layout Standard
12878 <row topline="true">
12879 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12882 \begin_layout Standard
12888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12891 \begin_layout Standard
12897 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12900 \begin_layout Standard
12907 <row topline="true" bottomline="true">
12908 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12911 \begin_layout Standard
12917 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12920 \begin_layout Standard
12926 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12929 \begin_layout Standard
12948 \begin_layout Itemize
12950 \begin_inset Box Frameless
12959 height_special "totalheight"
12962 \begin_layout Standard
12963 \begin_inset Tabular
12964 <lyxtabular version="3" rows="3" columns="3">
12966 <column alignment="center" valignment="top" leftline="true" width="0">
12967 <column alignment="center" valignment="top" leftline="true" width="0">
12968 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12969 <row topline="true">
12970 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12973 \begin_layout Standard
12979 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12982 \begin_layout Standard
12988 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12991 \begin_layout Standard
12998 <row topline="true">
12999 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13002 \begin_layout Standard
13008 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13011 \begin_layout Standard
13017 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13020 \begin_layout Standard
13027 <row topline="true" bottomline="true">
13028 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13031 \begin_layout Standard
13037 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13040 \begin_layout Standard
13046 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13049 \begin_layout Standard
13069 \begin_layout Standard
13081 \begin_inset Box Frameless
13090 height_special "totalheight"
13093 \begin_layout Standard
13094 \begin_inset Tabular
13095 <lyxtabular version="3" rows="3" columns="3">
13097 <column alignment="center" valignment="top" leftline="true" width="0">
13098 <column alignment="center" valignment="top" leftline="true" width="0">
13099 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13100 <row topline="true">
13101 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13104 \begin_layout Standard
13110 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13113 \begin_layout Standard
13119 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13122 \begin_layout Standard
13129 <row topline="true">
13130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13133 \begin_layout Standard
13139 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13142 \begin_layout Standard
13148 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13151 \begin_layout Standard
13158 <row topline="true" bottomline="true">
13159 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13162 \begin_layout Standard
13168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13171 \begin_layout Standard
13177 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13180 \begin_layout Standard
13200 \begin_layout Standard
13210 \begin_layout Standard
13211 As you can see, the content of the first and last table row is not correctly
13212 aligned with the text line where the table is in.
13213 To get this alignment, the minipage box must be set into a raisebox
13217 \begin_layout Standard
13218 Raiseboxes are described in section\InsetSpace ~
13220 \begin_inset LatexCommand ref
13221 reference "sub:Vertical-Alignment"
13231 In the example above the second table in the first item is aligned using
13235 \begin_layout Standard
13245 \begin_layout Standard
13247 Behind the box the closing brace
13251 is inserted as ERT.
13252 For the second table in the last item the command
13255 \begin_layout Standard
13265 \begin_layout Standard
13269 \begin_layout Standard
13270 \begin_inset Note Greyedout
13273 \begin_layout Standard
13278 The alignment of the table row content to the surrounding text line is
13280 The needed factor of the
13286 command for this alignment depends on the document font, the font size,
13287 and the table line thickness.
13295 \begin_layout Section
13297 \begin_inset LatexCommand label
13298 name "sec:Colored-Tables"
13303 \begin_inset LatexCommand index
13304 name "Table ! Color"
13311 \begin_layout Subsection
13313 \begin_inset LatexCommand index
13314 name "Table Color ! for Cells"
13319 \begin_inset LatexCommand index
13320 name "Color ! for Table Cells"
13327 \begin_layout Standard
13328 \begin_inset Float table
13334 \begin_layout Standard
13335 \begin_inset Caption
13337 \begin_layout Standard
13338 \begin_inset LatexCommand label
13339 name "tab:Table-colored-without"
13343 Table colored without using the package
13348 \begin_inset OptArg
13351 \begin_layout Standard
13352 Table without colortbl
13365 \begin_layout Standard
13367 \begin_inset Tabular
13368 <lyxtabular version="3" rows="3" columns="3">
13370 <column alignment="center" valignment="top" leftline="true" width="0">
13371 <column alignment="center" valignment="top" leftline="true" width="0">
13372 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13373 <row topline="true">
13374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13377 \begin_layout Standard
13385 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13388 \begin_layout Standard
13396 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13399 \begin_layout Standard
13408 <row topline="true">
13409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13412 \begin_layout Standard
13420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13423 \begin_layout Standard
13431 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13434 \begin_layout Standard
13443 <row topline="true" bottomline="true">
13444 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13447 \begin_layout Standard
13455 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13458 \begin_layout Standard
13466 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13469 \begin_layout Standard
13490 \begin_layout Standard
13491 If you only need colored text, mark the cells and choose a color in the
13494 Edit\SpecialChar \menuseparator
13499 This was used to create Table\InsetSpace ~
13501 \begin_inset LatexCommand ref
13502 reference "tab:Table-colored-without"
13507 In any other case you have to use the LaTeX-package
13512 \begin_inset LatexCommand index
13513 name "LaTeX-packages ! colortbl"
13520 \begin_layout Standard
13521 To create colored tables,
13525 must be loaded in the preamble with the line
13528 \begin_layout Standard
13533 usepackage{colortbl}
13536 \begin_layout Standard
13537 The color of a column is adjusted with the command
13540 \begin_layout Standard
13545 columncolor{name of color}
13548 \begin_layout Standard
13554 More about the command
13558 is described in section\InsetSpace ~
13560 \begin_inset LatexCommand ref
13561 reference "sub:Multicolumn-Calculations"
13568 \begin_layout Standard
13569 The following color names are predefined:
13572 \begin_layout Standard
13606 \begin_layout Standard
13607 \begin_inset VSpace medskip
13613 \begin_layout Standard
13614 You can also define your own color with the command
13617 \begin_layout Standard
13622 def\SpecialChar \textcompwordmark{}
13623 inecolor{color name}{color model}{color values}
13626 \begin_layout Standard
13627 The color model can be
13630 \begin_layout Labeling
13631 \labelwidthstring 00.00.0000
13632 cmyk: cyan, magenta, yellow, black
13635 \begin_layout Labeling
13636 \labelwidthstring 00.00.0000
13637 rgb: red, green blue
13640 \begin_layout Labeling
13641 \labelwidthstring 00.00.0000
13645 \begin_layout Standard
13646 and the color values are comma separated numbers between 0 and 1 describing
13647 the factor for the corresponding color of the color model.
13650 \begin_layout Standard
13651 You can e.\InsetSpace \thinspace{}
13657 " in the preamble with
13660 \begin_layout Standard
13665 def\SpecialChar \textcompwordmark{}
13666 inecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
13669 \begin_layout Standard
13677 \begin_layout Standard
13682 def\SpecialChar \textcompwordmark{}
13683 inecolor{lightgray}{gray}{0.8}
13686 \begin_layout Standard
13687 \begin_inset VSpace medskip
13693 \begin_layout Standard
13694 Lines are colored with the command
13697 \begin_layout Standard
13702 rowcolor{name of color}
13705 \begin_layout Standard
13706 and cells are colored with the command
13709 \begin_layout Standard
13714 cellcolor{name of color}
13717 \begin_layout Standard
13718 Both commands are inserted at the beginning of a cell as ERT.
13721 \begin_layout Standard
13722 To color characters in the table, mark the cells and use the LyX menu
13724 Edit\SpecialChar \menuseparator
13729 If a cell contains ERT mark only the characters, otherwise the colored
13730 ERT will cause LaTeX-errors.
13733 \begin_layout Standard
13734 \begin_inset VSpace bigskip
13740 \begin_layout Standard
13741 To create Table\InsetSpace ~
13743 \begin_inset LatexCommand ref
13744 reference "tab:Table-colored-using"
13748 do the following: The color of the first column should be
13756 \begin_layout Standard
13761 columncolor{darkgreen}
13766 \begin_layout Standard
13767 as LaTeX-argument for this column.
13768 The first row should be blue, therefore the ERT command
13771 \begin_layout Standard
13779 \begin_layout Standard
13780 is inserted to the first cell of this row.
13781 Note that this overwrites the column color for the first cell.
13782 The last cell of the last row is colored magenta by inserting the ERT command
13785 \begin_layout Standard
13793 \begin_layout Standard
13794 The characters could now be colored using the menu
13796 Edit\SpecialChar \menuseparator
13803 \begin_layout Standard
13804 \begin_inset Float table
13810 \begin_layout Standard
13811 \begin_inset Caption
13813 \begin_layout Standard
13814 \begin_inset LatexCommand label
13815 name "tab:Table-colored-using"
13819 Table colored using the package
13824 \begin_inset OptArg
13827 \begin_layout Standard
13828 Table with colortbl
13841 \begin_layout Standard
13843 \begin_inset Tabular
13844 <lyxtabular version="3" rows="3" columns="3">
13846 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
13847 <column alignment="center" valignment="top" width="0">
13848 <column alignment="center" valignment="top" width="0">
13850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13853 \begin_layout Standard
13857 \begin_layout Standard
13873 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13876 \begin_layout Standard
13884 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13887 \begin_layout Standard
13897 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13900 \begin_layout Standard
13908 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13911 \begin_layout Standard
13919 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13922 \begin_layout Standard
13932 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13935 \begin_layout Standard
13943 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13946 \begin_layout Standard
13954 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13957 \begin_layout Standard
13961 \begin_layout Standard
13990 \begin_layout Subsection
13992 \begin_inset LatexCommand index
13993 name "Table Color ! for Lines"
13998 \begin_inset LatexCommand index
13999 name "Color ! for Table Lines"
14006 \begin_layout Standard
14007 As described in section\InsetSpace ~
14009 \begin_inset LatexCommand ref
14010 reference "sub:Line-Thickness"
14014 , the line thickness for all lines in a table can be adjusted with the length
14022 It is set to 1.5\InsetSpace \thinspace{}
14023 pt for all tables of this section.
14027 \begin_layout Standard
14033 arrayrulewidth}{1.5pt}
14041 \begin_layout Standard
14042 To color vertical lines for example with green, create the following column
14043 format in the document preamble, according to the description in section\InsetSpace ~
14045 \begin_inset LatexCommand ref
14046 reference "sub:Customized-Format"
14053 \begin_layout Standard
14058 newcolumntype{W}{!{
14065 \begin_layout Standard
14066 For Table\InsetSpace ~
14068 \begin_inset LatexCommand ref
14069 reference "tab:Table-with-vertical-colored"
14076 \begin_layout Standard
14082 \begin_layout Standard
14083 was used for the last column and
14086 \begin_layout Standard
14092 \begin_layout Standard
14093 for the other columns.
14096 \begin_layout Standard
14097 If you want to have several colors, define more column formats.
14100 \begin_layout Standard
14101 \begin_inset Float table
14106 \begin_layout Standard
14107 \begin_inset Caption
14109 \begin_layout Standard
14110 \begin_inset LatexCommand label
14111 name "tab:Table-with-vertical-colored"
14115 Table with colored vertical lines
14123 \begin_layout Standard
14125 \begin_inset Tabular
14126 <lyxtabular version="3" rows="3" columns="3">
14128 <column alignment="center" valignment="top" width="0" special="Wc">
14129 <column alignment="center" valignment="top" width="0" special="Wc">
14130 <column alignment="center" valignment="top" width="0" special="WcW">
14131 <row topline="true">
14132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14135 \begin_layout Standard
14141 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14144 \begin_layout Standard
14150 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14153 \begin_layout Standard
14160 <row topline="true">
14161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14164 \begin_layout Standard
14170 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14173 \begin_layout Standard
14179 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14182 \begin_layout Standard
14189 <row topline="true" bottomline="true">
14190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14193 \begin_layout Standard
14199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14202 \begin_layout Standard
14208 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14211 \begin_layout Standard
14230 \begin_layout Standard
14231 \begin_inset VSpace bigskip
14234 To color horizontal lines for example with red, like in Table\InsetSpace ~
14236 \begin_inset LatexCommand ref
14237 reference "tab:Table-with-horizontal-colored"
14241 , insert these commands in ERT before the table or table float:
14244 \begin_layout Standard
14261 arrayrulecolor{red}
14265 arrayrulecolor{black}}
14268 \begin_layout Standard
14272 \begin_layout Standard
14283 \begin_layout Standard
14291 arrayrulecolor{red}
14295 arrayrulecolor{black}}
14301 \begin_inset Float table
14306 \begin_layout Standard
14307 \begin_inset Caption
14309 \begin_layout Standard
14310 \begin_inset LatexCommand label
14311 name "tab:Table-with-horizontal-colored"
14315 Table with colored horizontal lines
14323 \begin_layout Standard
14325 \begin_inset Tabular
14326 <lyxtabular version="3" rows="3" columns="3">
14328 <column alignment="center" valignment="top" leftline="true" width="0">
14329 <column alignment="center" valignment="top" leftline="true" width="0">
14330 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14331 <row topline="true">
14332 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14335 \begin_layout Standard
14341 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14344 \begin_layout Standard
14350 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14353 \begin_layout Standard
14360 <row topline="true">
14361 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14364 \begin_layout Standard
14370 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14373 \begin_layout Standard
14379 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14382 \begin_layout Standard
14389 <row topline="true" bottomline="true">
14390 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14393 \begin_layout Standard
14399 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14402 \begin_layout Standard
14408 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14411 \begin_layout Standard
14430 \begin_layout Standard
14434 \begin_layout Standard
14446 \begin_layout Standard
14447 To return to the default line color black, insert this command in ERT behind
14448 the table or table float:
14451 \begin_layout Standard
14463 \begin_layout Standard
14466 \begin_inset LatexCommand ref
14467 reference "tab:Table-with-colored"
14471 is an example with colored vertical and horizontal lines.
14474 \begin_layout Standard
14475 \begin_inset Float table
14480 \begin_layout Standard
14481 \begin_inset Caption
14483 \begin_layout Standard
14484 \begin_inset LatexCommand label
14485 name "tab:Table-with-colored"
14489 Table with colored lines
14497 \begin_layout Standard
14499 \begin_inset Tabular
14500 <lyxtabular version="3" rows="3" columns="3">
14502 <column alignment="center" valignment="top" width="0" special="Wc">
14503 <column alignment="center" valignment="top" width="0" special="Wc">
14504 <column alignment="center" valignment="top" width="0" special="WcW">
14505 <row topline="true">
14506 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14509 \begin_layout Standard
14515 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14518 \begin_layout Standard
14524 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14527 \begin_layout Standard
14534 <row topline="true">
14535 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14538 \begin_layout Standard
14544 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14547 \begin_layout Standard
14553 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14556 \begin_layout Standard
14563 <row topline="true" bottomline="true" topspace="default">
14564 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14567 \begin_layout Standard
14573 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14576 \begin_layout Standard
14582 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14585 \begin_layout Standard
14604 \begin_layout Standard
14608 \begin_layout Standard
14624 \begin_layout Standard
14628 \begin_layout Standard
14634 arrayrulewidth}{0.4pt}
14642 \begin_layout Section
14643 Table Customization
14644 \begin_inset LatexCommand index
14645 name "Table Customization"
14650 \begin_inset LatexCommand index
14651 name "Table ! Customization"
14658 \begin_layout Subsection
14660 \begin_inset LatexCommand label
14661 name "sub:Row-Spacing"
14666 \begin_inset LatexCommand index
14667 name "Table Customization ! Row Spacing"
14674 \begin_layout Standard
14675 You can add vertical space to table rows in the
14679 tab of the table dialog.
14680 You find there three possibilities:
14683 \begin_layout Description
14686 row will add space above the characters of the table row.
14687 If the table is a formal table
14691 \begin_layout Standard
14692 Formal tables are explained in section\InsetSpace ~
14694 \begin_inset LatexCommand ref
14695 reference "sec:Formal-Tables"
14704 LyX will insert as default 0.5\InsetSpace \thinspace{}
14706 For normal tables the inserted space will unfortunately destroy the vertical
14707 table lines as in the following table:
14708 \begin_inset VSpace defskip
14717 \begin_layout Standard
14729 \begin_inset Tabular
14730 <lyxtabular version="3" rows="3" columns="1">
14732 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14733 <row topline="true">
14734 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14737 \begin_layout Standard
14744 <row topline="true" topspace="3mm">
14745 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14748 \begin_layout Standard
14749 3\InsetSpace \thinspace{}
14750 mm space top of row
14756 <row topline="true" bottomline="true">
14757 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14760 \begin_layout Standard
14777 \begin_layout Standard
14787 \begin_inset VSpace defskip
14792 So inserting space to the top of row for normal tables is only useful when
14793 you don't have vertical lines.
14796 \begin_layout Description
14797 Bottom\InsetSpace ~
14799 row will add space below the characters of the table row.
14800 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
14802 normal tables the default size is 2\InsetSpace \thinspace{}
14806 \begin_layout Description
14807 Between\InsetSpace ~
14808 rows adds space between the current and the following row.
14809 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
14811 For normal tables the inserted space will unfortunately destroy the vertical
14812 table lines as in the following table:
14813 \begin_inset VSpace defskip
14822 \begin_layout Standard
14834 \begin_inset Tabular
14835 <lyxtabular version="3" rows="3" columns="1">
14837 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14838 <row topline="true">
14839 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14842 \begin_layout Standard
14849 <row topline="true" interlinespace="3mm">
14850 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14853 \begin_layout Standard
14854 \begin_inset Formula $\downarrow$
14857 3\InsetSpace \thinspace{}
14858 mm space between row
14859 \begin_inset Formula $\downarrow$
14868 <row topline="true" bottomline="true">
14869 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14872 \begin_layout Standard
14873 \begin_inset Formula $\uparrow$
14876 3\InsetSpace \thinspace{}
14877 mm space between row
14878 \begin_inset Formula $\uparrow$
14897 \begin_layout Standard
14907 \begin_inset VSpace defskip
14912 So inserting space between rows for normal tables is only useful when you
14913 don't have vertical lines.
14916 \begin_layout Standard
14917 When you want to add extra height to all cells of all tables, you can do
14918 this with the following preamble line:
14921 \begin_layout Standard
14928 extrarowheight}{height}
14931 \begin_layout Standard
14932 But this has the disadvantage that the cell texts are no longer exactly
14933 vertically centered.
14936 \begin_layout Subsection
14937 Special Cell Alignment
14938 \begin_inset LatexCommand index
14939 name "Table Customization ! Special Cell Alignment"
14946 \begin_layout Standard
14947 Sometimes it looks better when the cell entries of a column are aligned
14948 with a special character, e.\InsetSpace \thinspace{}
14950 with the decimal separator as in Table\InsetSpace ~
14952 \begin_inset LatexCommand ref
14953 reference "tab:Table-cells-of"
14960 \begin_layout Standard
14961 \begin_inset Float table
14967 \begin_layout Standard
14968 \begin_inset Caption
14970 \begin_layout Standard
14971 \begin_inset LatexCommand label
14972 name "tab:Table-cells-of"
14976 Table cells of a column aligned with the decimal separator.
14984 \begin_layout Standard
14986 \begin_inset Tabular
14987 <lyxtabular version="3" rows="4" columns="2">
14989 <column alignment="right" valignment="top" width="0">
14990 <column alignment="left" valignment="top" width="0" special="@{}l">
14991 <row bottomline="true">
14992 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
14995 \begin_layout Standard
15001 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15004 \begin_layout Standard
15012 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15015 \begin_layout Standard
15021 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15024 \begin_layout Standard
15032 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15035 \begin_layout Standard
15041 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15044 \begin_layout Standard
15052 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15055 \begin_layout Standard
15061 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15064 \begin_layout Standard
15083 \begin_layout Standard
15084 This table was created with a 4×2 table.
15085 The heading is a centered multicolumn.
15086 The first column is right-aligned and contains the digits before the decimal
15087 point and the decimal point.
15088 The second column is left aligned and contains the digits after the decimal
15090 To omit the space that is normally between two table columns, use the following
15091 LaTeX-argument for the second column:
15094 \begin_layout Standard
15100 \begin_layout Standard
15103 \begin_inset LatexCommand ref
15104 reference "tab:Several-table-cell"
15108 shows some example alignments.
15109 For the alignment with the relation sign, you must add the second smallest
15110 math-space at the beginning of the last column to get the correct space
15111 surrounding the relation sign.
15114 \begin_layout Standard
15115 \begin_inset Float table
15120 \begin_layout Standard
15121 \begin_inset Caption
15123 \begin_layout Standard
15124 \begin_inset LatexCommand label
15125 name "tab:Several-table-cell"
15129 Several table cell alignments.
15137 \begin_layout Standard
15139 \begin_inset Tabular
15140 <lyxtabular version="3" rows="4" columns="6">
15142 <column alignment="right" valignment="top" width="0">
15143 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15144 <column alignment="right" valignment="top" width="0">
15145 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15146 <column alignment="right" valignment="top" width="0">
15147 <column alignment="left" valignment="top" width="0" special="@{}l">
15148 <row bottomline="true">
15149 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15152 \begin_layout Standard
15158 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15161 \begin_layout Standard
15167 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15170 \begin_layout Standard
15176 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15179 \begin_layout Standard
15185 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15188 \begin_layout Standard
15194 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15197 \begin_layout Standard
15205 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15208 \begin_layout Standard
15214 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15217 \begin_layout Standard
15218 24\InsetSpace \thinspace{}
15224 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15227 \begin_layout Standard
15228 \begin_inset Formula $10\cdot$
15236 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15239 \begin_layout Standard
15240 \begin_inset Formula $10^{\mbox{-}17}$
15248 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15251 \begin_layout Standard
15252 \begin_inset Formula $\Gamma(t)\propto$
15260 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15263 \begin_layout Standard
15264 \begin_inset Formula $\:\Upsilon(t)$
15274 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15277 \begin_layout Standard
15283 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15286 \begin_layout Standard
15287 768\InsetSpace \thinspace{}
15293 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15296 \begin_layout Standard
15297 \begin_inset Formula $5.78\cdot$
15305 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15308 \begin_layout Standard
15309 \begin_inset Formula $10^{7}$
15317 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15320 \begin_layout Standard
15321 \begin_inset Formula $A\ne$
15329 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15332 \begin_layout Standard
15333 \begin_inset Formula $\: B_{\mathrm{red}}$
15343 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15346 \begin_layout Standard
15352 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15355 \begin_layout Standard
15356 6\InsetSpace \thinspace{}
15362 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15365 \begin_layout Standard
15367 \begin_inset Formula $33.5\cdot$
15375 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15378 \begin_layout Standard
15379 \begin_inset Formula $10^{4}$
15387 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15390 \begin_layout Standard
15391 \begin_inset Formula $\sin(\alpha)\ge$
15399 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15402 \begin_layout Standard
15403 \begin_inset Formula $\:\sin(\beta)$
15424 \begin_layout Standard
15425 \begin_inset VSpace bigskip
15428 There is also the LaTeX-package
15433 \begin_inset LatexCommand index
15434 name "LaTeX-packages ! dcolumn"
15438 that provides table cell alignments.
15439 But this unfortunately treats the cell entries as math and doesn't allow
15440 formulas in table cells: The first column of Table\InsetSpace ~
15442 \begin_inset LatexCommand ref
15443 reference "tab:Several-table-cell"
15451 like the first column in Table\InsetSpace ~
15453 \begin_inset LatexCommand ref
15454 reference "tab:Alignments-when"
15458 and only with some tricks like the expected.
15459 The alignment of the second and third column of Table\InsetSpace ~
15461 \begin_inset LatexCommand ref
15462 reference "tab:Several-table-cell"
15466 is not possible with
15473 \begin_layout Standard
15474 \begin_inset Float table
15480 \begin_layout Standard
15481 \begin_inset Caption
15483 \begin_layout Standard
15484 \begin_inset LatexCommand label
15485 name "tab:Alignments-when"
15489 Alignments when LaTeX-package dcolumn is used.
15490 For all column alignments tricks have to be used to get the output.
15498 \begin_layout Standard
15500 \begin_inset Tabular
15501 <lyxtabular version="3" rows="4" columns="3">
15503 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{-1}">
15504 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{4.9}">
15505 <column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
15506 <row bottomline="true">
15507 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15510 \begin_layout Standard
15516 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15519 \begin_layout Standard
15525 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15528 \begin_layout Standard
15536 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15539 \begin_layout Standard
15540 12x24\InsetSpace \thinspace{}
15546 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15549 \begin_layout Standard
15550 12x24\InsetSpace \thinspace{}
15552 \begin_inset Formula $\mbox{bottles}$
15560 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15563 \begin_layout Standard
15568 \begin_layout Standard
15578 \begin_inset Formula $\mbox{bottles}$
15588 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15591 \begin_layout Standard
15592 1024x768\InsetSpace \thinspace{}
15598 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15601 \begin_layout Standard
15602 1024x768\InsetSpace \thinspace{}
15604 \begin_inset Formula $\mbox{Pixels}$
15612 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15615 \begin_layout Standard
15620 \begin_layout Standard
15630 \begin_inset Formula $\mbox{Pixels}$
15640 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15643 \begin_layout Standard
15644 32x6\InsetSpace \thinspace{}
15650 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15653 \begin_layout Standard
15654 32x6\InsetSpace \thinspace{}
15656 \begin_inset Formula $\mbox{cm}$
15664 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15667 \begin_layout Standard
15672 \begin_layout Standard
15682 \begin_inset Formula $\mbox{cm}$
15703 \begin_layout Subsection
15704 Customized Cell/Column Format
15705 \begin_inset LatexCommand label
15706 name "sub:Customized-Format"
15711 \begin_inset LatexCommand index
15712 name "Table Customization ! Cell/Column Format"
15719 \begin_layout Standard
15720 Calculating the needed width for spanned columns like in section\InsetSpace ~
15722 \begin_inset LatexCommand ref
15723 reference "sub:Multicolumn-Calculations"
15727 is very annoying if you have several tables with multicolumn cells.
15728 To make life easier, you can define a cell/column format in the preamble,
15729 so that it can be used in all tables of the document.
15730 The format is defined with the command
15733 \begin_layout Standard
15738 newcolumntype{name of format}[number of arguments]{commands}
15741 \begin_layout Standard
15742 The format name may only consist of one letter.
15767 are predefined and cannot be used.
15768 But all letters are allowed as capitals.
15771 \begin_layout Standard
15772 \begin_inset VSpace medskip
15778 \begin_layout Standard
15779 For vertically and horizontally centered multicolumn cells with a fixed
15780 width you can define the cell format
15783 \begin_layout Standard
15788 newcolumntype{M}[1]{>{
15795 \begin_layout Standard
15802 avoids the problem of hyphenating the first word, as described in section\InsetSpace ~
15804 \begin_inset LatexCommand ref
15805 reference "sub:Multiple-Lines-in"
15810 Now you can simply enter
15813 \begin_layout Standard
15819 \begin_layout Standard
15820 as LaTeX-argument in the table dialog to create a multicolumn.
15823 \begin_layout Standard
15824 \begin_inset VSpace bigskip
15830 \begin_layout Standard
15831 For cells spanned by a multicolumn cell, you can define the format
15834 \begin_layout Standard
15839 newcolumntype{S}[2]{>{
15849 \begin_layout Standard
15860 newcolumntype{S}[2]
15864 \begin_layout Standard
15875 arrayrulewidth)*(1-#2))/#2}}
15878 \begin_layout Standard
15879 This format uses equation
15880 \begin_inset LatexCommand eqref
15885 to calculate the needed width so that each spanned cell has the same width.
15888 \begin_layout Standard
15892 \begin_layout Standard
15895 S{width of multicolumn cell}{number of spanned columns}
15898 \begin_layout Standard
15899 as LaTeX-argument of the column.
15902 \begin_layout Standard
15903 \begin_inset VSpace bigskip
15909 \begin_layout Standard
15910 For colored columns, you can define
15913 \begin_layout Standard
15918 newcolumntype{K}[1]{>{
15925 \begin_layout Standard
15927 \begin_inset Quotes eld
15931 \begin_inset Quotes erd
15934 at the end creates a column with a flexible width whose text is horizontally
15939 \begin_layout Standard
15945 \begin_layout Standard
15949 \begin_layout Standard
15950 \begin_inset VSpace bigskip
15956 \begin_layout Standard
15957 To create Table\InsetSpace ~
15959 \begin_inset LatexCommand ref
15960 reference "tab:Table-using-user-defined"
15964 use the LaTeX-arguments
15967 \begin_layout Standard
15973 \begin_layout Standard
15974 for the first column and the multicolumn,
15977 \begin_layout Standard
15983 \begin_layout Standard
15984 for the the last column, and
15987 \begin_layout Standard
15993 \begin_layout Standard
15994 for the cells in the second column.
15997 \begin_layout Standard
15998 \begin_inset Float table
16004 \begin_layout Standard
16005 \begin_inset Caption
16007 \begin_layout Standard
16008 \begin_inset LatexCommand label
16009 name "tab:Table-using-user-defined"
16013 Table using user-defined table formats
16021 \begin_layout Standard
16023 \begin_inset Tabular
16024 <lyxtabular version="3" rows="3" columns="4">
16026 <column alignment="center" valignment="middle" leftline="true" width="2.5cm" special="M{2.5cm}">
16027 <column alignment="center" valignment="middle" leftline="true" width="0" special="S{2.5cm}{2}">
16028 <column alignment="center" valignment="middle" leftline="true" width="0">
16029 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0" special="K{red}">
16030 <row topline="true">
16031 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16034 \begin_layout Standard
16035 verylongtablecellword
16040 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none" special="M{2.5cm}">
16043 \begin_layout Standard
16044 multiple lines multicolumn
16049 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16052 \begin_layout Standard
16058 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16061 \begin_layout Standard
16068 <row topline="true">
16069 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16072 \begin_layout Standard
16078 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16081 \begin_layout Standard
16087 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16090 \begin_layout Standard
16096 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16099 \begin_layout Standard
16106 <row topline="true" bottomline="true">
16107 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16110 \begin_layout Standard
16116 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16119 \begin_layout Standard
16125 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16128 \begin_layout Standard
16134 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16137 \begin_layout Standard
16156 \begin_layout Subsection
16158 \begin_inset LatexCommand label
16159 name "sub:Line-Thickness"
16164 \begin_inset LatexCommand index
16165 name "Table Customization ! Line Thickness"
16172 \begin_layout Standard
16173 The line thickness for all lines in a table can be adjusted with the length
16181 To set for example a line thickness of 1.5\InsetSpace \thinspace{}
16182 pt, like in Table\InsetSpace ~
16184 \begin_inset LatexCommand ref
16185 reference "tab:Table-with-1.5"
16189 , insert the command
16192 \begin_layout Standard
16199 arrayrulewidth}{1.5pt}
16202 \begin_layout Standard
16203 in ERT before the table or table float.
16204 The changed thickness is valid for all following tables.
16205 To use the default value again, set
16211 to 0.4\InsetSpace \thinspace{}
16212 pt in ERT behind the table or table float.
16215 \begin_layout Standard
16219 \begin_layout Standard
16225 arrayrulewidth}{1.5pt}
16231 \begin_inset Float table
16236 \begin_layout Standard
16237 \begin_inset Caption
16239 \begin_layout Standard
16240 \begin_inset LatexCommand label
16241 name "tab:Table-with-1.5"
16245 Table with 1.5\InsetSpace \thinspace{}
16254 \begin_layout Standard
16256 \begin_inset Tabular
16257 <lyxtabular version="3" rows="3" columns="3">
16259 <column alignment="center" valignment="top" leftline="true" width="0">
16260 <column alignment="center" valignment="top" leftline="true" width="0">
16261 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16262 <row topline="true">
16263 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16266 \begin_layout Standard
16272 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16275 \begin_layout Standard
16281 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16284 \begin_layout Standard
16291 <row topline="true">
16292 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16295 \begin_layout Standard
16301 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16304 \begin_layout Standard
16310 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16313 \begin_layout Standard
16320 <row topline="true" bottomline="true">
16321 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16324 \begin_layout Standard
16330 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16333 \begin_layout Standard
16339 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16342 \begin_layout Standard
16362 \begin_layout Standard
16368 arrayrulewidth}{0.4pt}
16376 \begin_layout Standard
16377 \begin_inset VSpace bigskip
16380 To set the line thickness to 1.5\InsetSpace \thinspace{}
16381 pt only for horizontal lines, like in Table\InsetSpace ~
16383 \begin_inset LatexCommand ref
16384 reference "tab:Table-with-horizontal"
16388 , insert these commands in ERT before the table or table float:
16391 \begin_layout Standard
16414 arrayrulewidth 1.5pt}
16424 arrayrulewidth 0.4pt}}
16427 \begin_layout Standard
16428 To return to the default line thickness, insert this command in ERT behind
16429 the table or table float:
16432 \begin_layout Standard
16444 \begin_layout Standard
16448 \begin_layout Standard
16459 \begin_layout Standard
16468 \begin_layout Standard
16476 arrayrulewidth 1.5pt}
16479 \begin_layout Standard
16489 arrayrulewidth 0.4pt}}
16495 \begin_inset Float table
16500 \begin_layout Standard
16501 \begin_inset Caption
16503 \begin_layout Standard
16504 \begin_inset LatexCommand label
16505 name "tab:Table-with-horizontal"
16509 Table with 1.5\InsetSpace \thinspace{}
16510 pt thick horizontal lines
16518 \begin_layout Standard
16520 \begin_inset Tabular
16521 <lyxtabular version="3" rows="3" columns="3">
16523 <column alignment="center" valignment="top" leftline="true" width="0">
16524 <column alignment="center" valignment="top" leftline="true" width="0">
16525 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16526 <row topline="true">
16527 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16530 \begin_layout Standard
16536 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16539 \begin_layout Standard
16545 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16548 \begin_layout Standard
16555 <row topline="true">
16556 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16559 \begin_layout Standard
16565 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16568 \begin_layout Standard
16574 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16577 \begin_layout Standard
16584 <row topline="true" bottomline="true">
16585 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16588 \begin_layout Standard
16594 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16597 \begin_layout Standard
16603 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16606 \begin_layout Standard
16626 \begin_layout Standard
16642 \begin_layout Standard
16643 \begin_inset VSpace bigskip
16646 To set the line thickness to 1.5\InsetSpace \thinspace{}
16647 pt only for vertical lines, create the following
16648 column format in the document preamble, according to the description in
16649 section\InsetSpace ~
16651 \begin_inset LatexCommand ref
16652 reference "sub:Customized-Format"
16659 \begin_layout Standard
16664 newcolumntype{V}{!{
16666 vrule width 1.5pt}}
16669 \begin_layout Standard
16670 For Table\InsetSpace ~
16672 \begin_inset LatexCommand ref
16673 reference "tab:Table-with-vertical"
16680 \begin_layout Standard
16686 \begin_layout Standard
16687 was used for the last column and
16690 \begin_layout Standard
16696 \begin_layout Standard
16697 for the other columns.
16700 \begin_layout Standard
16701 \begin_inset Float table
16706 \begin_layout Standard
16707 \begin_inset Caption
16709 \begin_layout Standard
16710 \begin_inset LatexCommand label
16711 name "tab:Table-with-vertical"
16715 Table with 1.5\InsetSpace \thinspace{}
16716 pt thick vertical lines
16724 \begin_layout Standard
16726 \begin_inset Tabular
16727 <lyxtabular version="3" rows="3" columns="3">
16729 <column alignment="center" valignment="top" width="0" special="Vc">
16730 <column alignment="center" valignment="top" width="0" special="Vc">
16731 <column alignment="center" valignment="top" width="0" special="VcV">
16732 <row topline="true">
16733 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16736 \begin_layout Standard
16742 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16745 \begin_layout Standard
16751 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16754 \begin_layout Standard
16761 <row topline="true">
16762 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16765 \begin_layout Standard
16771 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16774 \begin_layout Standard
16780 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16783 \begin_layout Standard
16790 <row topline="true" bottomline="true">
16791 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16794 \begin_layout Standard
16800 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16803 \begin_layout Standard
16809 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16812 \begin_layout Standard
16831 \begin_layout Subsection
16833 \begin_inset LatexCommand index
16834 name "Table Customization ! Dashed Lines"
16841 \begin_layout Standard
16845 \begin_layout Standard
16855 \begin_inset Note Note
16858 \begin_layout Standard
16859 The following section will only be displayed when you have the LaTeX-package
16872 \begin_layout Standard
16873 \begin_inset Float table
16879 \begin_layout Standard
16880 \begin_inset Caption
16882 \begin_layout Standard
16883 \begin_inset LatexCommand label
16884 name "tab:Table-with-dashed"
16888 Table with dashed lines
16896 \begin_layout Standard
16898 \begin_inset Tabular
16899 <lyxtabular version="3" rows="5" columns="5">
16901 <column alignment="center" valignment="top" leftline="true" width="0">
16902 <column alignment="center" valignment="top" leftline="true" width="0">
16903 <column alignment="center" valignment="top" width="0" special=":c">
16904 <column alignment="center" valignment="top" leftline="true" width="0">
16905 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16906 <row topline="true" bottomline="true">
16907 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16910 \begin_layout Standard
16916 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16919 \begin_layout Standard
16925 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16928 \begin_layout Standard
16934 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16937 \begin_layout Standard
16943 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16946 \begin_layout Standard
16953 <row topline="true">
16954 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16957 \begin_layout Standard
16963 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16966 \begin_layout Standard
16972 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16975 \begin_layout Standard
16981 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16984 \begin_layout Standard
16990 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16993 \begin_layout Standard
17001 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17004 \begin_layout Standard
17008 \begin_layout Standard
17022 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17025 \begin_layout Standard
17031 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17034 \begin_layout Standard
17040 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17043 \begin_layout Standard
17049 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17052 \begin_layout Standard
17059 <row topline="true">
17060 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17063 \begin_layout Standard
17067 \begin_layout Standard
17081 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17084 \begin_layout Standard
17090 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="c:">
17093 \begin_layout Standard
17099 <cell multicolumn="1" alignment="center" valignment="top" rightline="true" usebox="none" special="c:">
17102 \begin_layout Standard
17108 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17111 \begin_layout Standard
17118 <row topline="true" bottomline="true">
17119 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17122 \begin_layout Standard
17128 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17131 \begin_layout Standard
17137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17140 \begin_layout Standard
17146 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17149 \begin_layout Standard
17155 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17158 \begin_layout Standard
17177 \begin_layout Standard
17178 LyX doesn't natively support dashed lines, so you have to use ERT.
17179 As prerequisite the LaTeX-package
17184 \begin_inset LatexCommand index
17185 name "LaTeX-packages ! arydshln"
17189 must be loaded in the document preamble with the command
17192 \begin_layout Standard
17197 usepackage{arydshln}
17200 \begin_layout Standard
17201 To make a vertical line dashed, enter the colon
17202 \begin_inset Quotes eld
17206 \begin_inset Quotes erd
17209 together with the character for the horizontal alignment as LaTeX-argument
17210 in the table cell dialog.
17213 \begin_layout Standard
17214 For a horizontal dashed line add the command
17217 \begin_layout Standard
17225 \begin_layout Standard
17226 in ERT as first element of the first cell in the table row.
17229 \begin_layout Standard
17230 For dashed multicolumn lines use the command
17233 \begin_layout Standard
17238 cdashline{line number
17243 \begin_layout Standard
17244 in ERT as first element of the first cell in the table row.
17245 If you have for example a multicolumn spanning over columns 2 to 4 and
17246 you want to have a dashed line above, add the command
17249 \begin_layout Standard
17257 \begin_layout Standard
17258 as first element of the first cell in the row of the multicolumn.
17261 \begin_layout Standard
17262 \begin_inset VSpace bigskip
17268 \begin_layout Standard
17271 \begin_inset LatexCommand ref
17272 reference "tab:Table-with-dashed"
17277 \begin_inset Quotes eld
17285 \begin_inset Quotes erd
17288 as LaTeX-argument of the third column.
17295 was inserted to the first cell of the third row and the the ERT command
17304 was inserted to the first cell of the fourth row.
17307 \begin_layout Standard
17308 \begin_inset Note Greyedout
17311 \begin_layout Standard
17316 The used LaTeX-package
17320 is apparently not compatible with the LaTeX-package
17325 \begin_inset LatexCommand index
17326 name "LaTeX-packages ! colortbl"
17330 that is used for colored tables in section\InsetSpace ~
17332 \begin_inset LatexCommand ref
17333 reference "sec:Colored-Tables"
17338 That means colored tables cannot have dashed lines.
17346 \begin_layout Standard
17350 \begin_layout Standard
17360 \begin_inset Note Note
17363 \begin_layout Standard
17364 The following will be displayed when the LaTeX-package
17376 \begin_layout Standard
17377 You need to install the package
17381 to see the contents of this section in the output.
17384 \begin_layout Standard
17388 \begin_layout Standard
17400 \begin_layout Chapter
17402 \begin_inset LatexCommand index
17408 \begin_inset LatexCommand label
17416 \begin_layout Section
17418 \begin_inset LatexCommand label
17419 name "sec:FloatIntroduction"
17424 \begin_inset LatexCommand index
17425 name "Floats ! Introduction"
17432 \begin_layout Standard
17433 A float is a block of text associated with some sort of label, which doesn't
17434 have a fixed location.
17436 \begin_inset Quotes eld
17440 \begin_inset Quotes erd
17443 forward or backward a page or two, to wherever it fits best.
17450 Margin\InsetSpace ~
17453 are also floats, because they can float to the next page when there are
17454 too many notes at the page.
17457 \begin_layout Standard
17458 Floats allow a high quality layout.
17459 Images and tables can evenly be spread to the pages to avoid white space
17460 and pages without text.
17461 As the floating often destroys the context between the text and the image/table
17462 , every float can be referenced in the text.
17463 Floats are therefore numbered.
17464 Referencing is described in section\InsetSpace ~
17466 \begin_inset LatexCommand ref
17467 reference "sec:Referencing-Floats"
17474 \begin_layout Standard
17475 To insert a float, use the menu
17477 Insert\SpecialChar \menuseparator
17485 inset, a box with a label.
17486 The label will automatically be translated to the document language in
17488 Behind the label you can insert the caption text.
17489 The image or table is inserted above or below the caption in a separate
17490 paragraph within the float.
17491 More about the caption placement is described in section\InsetSpace ~
17493 \begin_inset LatexCommand ref
17494 reference "sec:Caption-Placement"
17499 To keep your LyX-document readable, you can open and close the float box
17500 by left-clicking on the box label.
17501 A closed float box looks like this:
17502 \begin_inset Graphics
17503 filename clipart/floatQt4.png
17508 -- a gray button with a red label.
17511 \begin_layout Standard
17512 It is recommended to insert floats as a separate paragraph to avoid possible
17513 LaTeX-errors that can occur when the surrounding text is specially formatted.
17516 \begin_layout Standard
17517 Existing figures or tables can be put into a float by marking them and then
17518 pressing the corresponding toolbar button for a new float.
17521 \begin_layout Section
17525 \begin_layout Standard
17526 Besides figure and table floats that are described in section\InsetSpace ~
17528 \begin_inset LatexCommand ref
17529 reference "sec:Figure-Floats"
17534 \begin_inset LatexCommand ref
17535 reference "sec:Table-Floats"
17539 , respectively, LyX offers the float types
17552 \begin_layout Subsection
17554 \begin_inset LatexCommand index
17555 name "Floats ! Algorithms"
17562 \begin_layout Standard
17563 \begin_inset Float algorithm
17569 \begin_layout Standard
17570 \begin_inset Caption
17572 \begin_layout Standard
17573 \begin_inset LatexCommand label
17574 name "alg:Example-Algorithm-float"
17578 Example Algorithm float
17586 \begin_layout LyX-Code
17589 Sum:= Sum + A(I); /*senseless comment*/
17592 \begin_inset VSpace -4mm
17603 \begin_layout Standard
17604 This float type is inserted with the menu
17606 Insert\SpecialChar \menuseparator
17607 Floats\SpecialChar \menuseparator
17611 It is used for program codes and descriptions of algorithms.
17612 A possible environment for algorithms is the
17616 , described in LyX's
17621 Algorithm\InsetSpace ~
17623 \begin_inset LatexCommand ref
17624 reference "alg:Example-Algorithm-float"
17628 is an example of an algorithm float where -4\InsetSpace \thinspace{}
17629 mm vertical space was added
17630 at the end of the float to have the bottom rule exactly below the last
17634 \begin_layout Standard
17635 The float label is not automatically translated into the document language.
17636 If your document is not in English, you have to do this manually by adding
17637 the following line to the document preamble
17642 \begin_layout Standard
17647 floatname{algorithm}{your\InsetSpace ~
17651 \begin_layout Standard
17658 \begin_inset Quotes eld
17666 \begin_inset Quotes erd
17672 \begin_layout Description
17677 When the LaTeX-package
17682 \begin_inset LatexCommand index
17683 name "LaTeX-packages ! hyperref"
17687 is used to link cross-references to floats in the PDF-output, it must be
17688 loaded in the document preamble before the definition of floats to be able
17689 to reference floats.
17690 As LyX sets the float definition for algorithm floats automatically before
17691 the user editable part of the document preamble, you need to insert the
17692 following preamble lines
17696 the loading command of
17703 \begin_inset VSpace defskip
17710 newfloat{Xalgorithm}{tbp}{loa}
17714 floatname{Xalgorithm}{your\InsetSpace ~
17727 renewenvironment{algorithm}[1][tbp]
17733 \begin_layout Standard
17744 begin{Xalgorithm}[#1]}{
17747 \begin_inset VSpace defskip
17760 \begin_inset Quotes eld
17768 \begin_inset Quotes erd
17774 \begin_layout Standard
17775 Algorithm floats are not by default numbered in the scheme
17776 \begin_inset Quotes eld
17780 \begin_inset Quotes erd
17783 like it is the case for table and figure floats in many document-classes.
17784 To number algorithm floats in the same scheme, add this command to your
17788 \begin_layout Standard
17793 numberwithin{algorithm}{chapter}
17796 \begin_layout Standard
17797 If you use the LaTeX-package
17801 , add this line instead
17809 (the commands from above) to the preamble:
17812 \begin_layout Standard
17817 numberwithin{Xalgorithm}{chapter}
17820 \begin_layout Standard
17821 To be able to use the command
17832 in the document settings the option
17842 \begin_layout Subsection
17844 \begin_inset LatexCommand index
17845 name "Floats ! Text Wrap Floats"
17850 \begin_inset LatexCommand label
17851 name "sub:floatflt-wrap-float"
17858 \begin_layout Standard
17859 This float type is used if you want to
17860 \begin_inset Quotes eld
17864 \begin_inset Quotes erd
17867 text around a figure so that it only occupies some fraction of the column
17869 It can be inserted using the menu
17870 \begin_inset Wrap figure
17875 \begin_layout Standard
17876 \begin_inset Graphics
17877 filename clipart/mobius.eps
17880 rotateOrigin center
17887 \begin_layout Standard
17888 \begin_inset Caption
17890 \begin_layout Standard
17891 \begin_inset LatexCommand label
17892 name "fig:This-is-a"
17896 This is a wrapped figure, and this is the brilliant caption that describes
17898 \begin_inset VSpace medskip
17913 Insert\SpecialChar \menuseparator
17914 Floats\SpecialChar \menuseparator
17919 if the LaTeX-package
17921 floatf\SpecialChar \textcompwordmark{}
17925 \begin_inset LatexCommand index
17926 name "LaTeX-packages ! floatflt"
17934 \begin_layout Standard
17935 Installing a LaTeX-package is explained it in the
17945 The width and placement of the float is adjusted by right-clicking on the
17947 Figure\InsetSpace ~
17949 \begin_inset LatexCommand ref
17950 reference "fig:This-is-a"
17954 is an example text wrap float with a width of 40
17955 \begin_inset Formula $\,$
17962 \begin_layout Standard
17963 Available units are explained in
17964 \begin_inset LatexCommand ref
17965 reference "cha:Units-available-in"
17974 Some space was added under the caption to separate it better from the surroundi
17978 \begin_layout Standard
17981 floatf\SpecialChar \textcompwordmark{}
17984 also supports table wrap floats, but they are not yet supported by LyX.
17985 If you need this, read the documentation of
17987 floatf\SpecialChar \textcompwordmark{}
17991 \begin_inset LatexCommand cite
17999 \begin_layout Standard
18000 \begin_inset Note Greyedout
18003 \begin_layout Standard
18009 wrap float floats are fragile! E.\InsetSpace \thinspace{}
18011 having a figure too close to the bottom
18012 of the page can mess things up in the way that the float doesn't appear
18013 in the output or that it is placed over some other text.
18017 \begin_layout Standard
18018 The better solution is to use the LaTeX-package
18020 wrapf\SpecialChar \textcompwordmark{}
18024 \begin_inset LatexCommand index
18025 name "LaTeX-packages ! wrapfig\\vspace{4mm}"
18031 floatf\SpecialChar \textcompwordmark{}
18034 , but it is currently not supported by LyX.
18047 \begin_layout Standard
18051 \begin_layout Itemize
18052 Wrap floats should not be placed in paragraphs that run over a page break.
18053 That means that wrap floats should better be inserted to the exact place
18054 when the document is nearly finished and you are able to estimate where
18055 page breaks will appear.
18058 \begin_layout Itemize
18059 Wrap floats should either be placed in an own paragraph before the paragraph
18060 where they should wrap into or within a paragraph.
18063 \begin_layout Itemize
18064 Wrap floats in consecutive paragraphs may cause troubles, so assure that
18065 there is a text paragraph between them as separator.
18068 \begin_layout Itemize
18069 Wrap floats are not allowed in section headings or tables.
18072 \begin_layout Section
18074 \begin_inset LatexCommand label
18075 name "sec:Float-Numbering"
18080 \begin_inset LatexCommand index
18081 name "Floats ! Numbering"
18088 \begin_layout Standard
18089 Floats are usually numbered either independent from the sections the floats
18090 are in, or in the scheme
18091 \begin_inset Quotes eld
18095 \begin_inset Quotes erd
18099 \begin_inset Quotes eld
18103 \begin_inset Quotes erd
18107 This depends on the used document class.
18110 \begin_layout Standard
18111 To change the section independent numbering, you can use this command in
18112 the document preamble:
18115 \begin_layout Standard
18127 \begin_layout Standard
18134 is the command that prints the table number, for figure floats, the command
18148 prints in the command above the table number as small roman number.
18151 \begin_layout Standard
18152 To change the numbering scheme for example to
18153 \begin_inset Quotes eld
18157 \begin_inset Quotes erd
18160 , use this command in the preamble:
18163 \begin_layout Standard
18168 numberwithin{table}{subsection}
18171 \begin_layout Standard
18172 To be able to use the command
18183 in the document settings the option
18193 \begin_layout Standard
18194 Please also have a look at section\InsetSpace ~
18196 \begin_inset LatexCommand ref
18197 reference "sub:Footnote-Numbering"
18201 for the details and important notes about the numbering commands.
18204 \begin_layout Section
18206 \begin_inset LatexCommand label
18207 name "sec:Referencing-Floats"
18212 \begin_inset LatexCommand index
18213 name "Floats ! References"
18218 \begin_inset LatexCommand index
18226 \begin_layout Standard
18227 To reference a float, insert a label into its caption using the menu
18229 Insert\SpecialChar \menuseparator
18232 or the toolbar button
18233 \begin_inset Graphics
18234 filename ../images/label-insert.xpm
18240 A grey label box like this one:
18241 \begin_inset Graphics
18242 filename clipart/labelQt4.png
18247 will be inserted and the label window pops up asking for the label text.
18248 LyX offers as text the first words of the caption with a prefix.
18249 The prefix depends on the float type, e.\InsetSpace \thinspace{}
18251 for figure floats the prefix will
18259 \begin_layout Standard
18260 The label is used as anchor and name for the reference.
18261 You can refer to the label using the menu
18263 Insert\SpecialChar \menuseparator
18266 or the toolbar button
18267 \begin_inset Graphics
18268 filename ../images/dialog-show-new-inset_ref.xpm
18274 A grey cross-reference box like this one:
18275 \begin_inset Graphics
18276 filename clipart/referenceQt4.png
18281 will be inserted and the cross-reference window appear showing all labels
18283 If you have multiple LyX-documents opened, choose the one you are working
18284 on from the drop-list at the top of the dialog.
18285 You can now sort the labels alphabetically and then choose one.
18286 At the position of the cross-reference box the float number will appear
18290 \begin_layout Standard
18291 It is recommended to use a protected space between the cross-reference name
18292 and its number to avoid line breaks between them.
18293 If a cross-reference refers to a non-existing label, you will see two question
18294 marks in the output instead of the reference.
18297 \begin_layout Standard
18298 You can change labels at any time by clicking on the label box.
18299 References to the changed label will automatically change its link to the
18300 new label text, so that you don't need to take care about this.
18303 \begin_layout Standard
18310 in the cross-reference window sets the cursor before the referred label.
18311 The button text changes then to Go\InsetSpace ~
18312 Back and you can use it to set the cursor
18313 back to the cross-reference.
18314 Right-clicking on a cross-reference box also sets the cursor before the
18315 referenced label but without a possibility to go back.
18318 \begin_layout Subsection
18319 Cross-Reference Formats
18320 \begin_inset LatexCommand label
18321 name "sub:Cross-Reference-Formats"
18326 \begin_inset LatexCommand index
18327 name "References ! Formats"
18334 \begin_layout Standard
18335 There are six varieties of cross-references:
18338 \begin_layout Description
18339 <reference>: prints the float number, this is the default:
18340 \begin_inset LatexCommand ref
18341 reference "fig:Two-distorted-images"
18348 \begin_layout Description
18349 (<reference>): prints the float number within two parentheses, this is the
18350 style normally used to reference formulas, especially when the reference
18352 \begin_inset Quotes eld
18356 \begin_inset Quotes erd
18360 \begin_inset LatexCommand eqref
18368 \begin_layout Description
18369 <page>: prints the page number: Page\InsetSpace ~
18371 \begin_inset LatexCommand pageref
18372 reference "fig:Two-distorted-images"
18379 \begin_layout Description
18382 <page>: prints the text "on page" and the page number:
18383 \begin_inset LatexCommand vpageref
18384 reference "fig:Two-distorted-images"
18391 \begin_layout Description
18392 <reference>\InsetSpace ~
18395 <page>: prints the float number, the text "on page", and
18397 \begin_inset LatexCommand vref
18398 reference "fig:Two-distorted-images"
18405 \begin_layout Description
18406 Formatted\InsetSpace ~
18407 reference: prints a self defined cross-reference format.
18409 \begin_inset Note Greyedout
18412 \begin_layout Standard
18417 This feature is only available when you have the LaTeX-package
18429 \begin_layout Standard
18430 Note that the style <page> won't print the page number if the label is on
18431 the previous, the same, or the next page.
18432 You will e.\InsetSpace \thinspace{}
18435 \begin_inset Quotes eld
18443 \begin_inset Quotes erd
18449 \begin_layout Standard
18450 The number and current page of the referred document part in the output,
18451 is automatically calculated by LaTeX.
18452 The varieties are adjusted in the field
18456 of the cross-reference window, that appear when you click on the cross-referenc
18460 \begin_layout Subsection
18461 Referencing Subfigures
18462 \begin_inset LatexCommand label
18463 name "sub:Referencing-Subfigures"
18468 \begin_inset LatexCommand index
18469 name "References ! to Subfigures"
18476 \begin_layout Standard
18477 Currently referencing subfigures is not supported by LyX, so you have to
18478 use LaTeX-commands.
18479 The label is the created with the command
18482 \begin_layout Standard
18487 label{fig:YourLabelName}
18490 \begin_layout Standard
18491 that is directly inserted into the subfigure caption field.
18492 To reference the label add this command in ERT
18495 \begin_layout Standard
18500 ref{fig:YourLabelName}
18503 \begin_layout Standard
18504 to the position in your document where the reference should be placed.
18505 Here is a reference to a subfigure: Subfigure\InsetSpace ~
18510 \begin_layout Standard
18522 \begin_layout Subsection
18523 Automatic Reference Naming
18524 \begin_inset LatexCommand index
18525 name "References ! Automatic Reference Naming"
18532 \begin_layout Standard
18537 provides a very useful feature that cross-references automatically include
18538 the name of the referenced floats (or text parts like sections).
18539 You save to write e.\InsetSpace \thinspace{}
18542 \begin_inset Quotes eld
18546 \begin_inset Quotes erd
18549 before every reference box.
18550 To get this automatic reference naming, you have to load the LaTeX-package
18556 \begin_inset LatexCommand index
18557 name "LaTeX-packages ! hyperref"
18561 in the document preamble with
18564 \begin_layout Standard
18569 usepackage[pdfborder={0 0 0}]{hyperref}
18584 \begin_layout Standard
18589 is used to link cross-references in the DVI- and PDF-output, this means
18590 that the reader of your document will be able to click on a table of content
18591 (TOC) entry or on a reference and he will be shown the referenced document
18597 also creates PDF-bookmarks for every section of your document to make it
18598 easier for readers to navigate through the document.
18599 This is also used in this document but when you have a look in the document
18600 preamble you will find various options in the load command of
18605 To learn more about the
18609 package, we refer to its documentation
18610 \begin_inset LatexCommand cite
18618 \begin_layout Standard
18619 \begin_inset Note Greyedout
18622 \begin_layout Standard
18627 Automatic reference naming cannot be used when you use cross-references
18630 Formatted\InsetSpace ~
18633 style, described in section\InsetSpace ~
18635 \begin_inset LatexCommand ref
18636 reference "sub:Cross-Reference-Formats"
18648 \begin_layout Subsection
18650 \begin_inset LatexCommand label
18651 name "sub:Reference-Position"
18656 \begin_inset LatexCommand index
18657 name "References ! Reference Position"
18664 \begin_layout Standard
18670 \begin_inset LatexCommand index
18671 name "LaTeX-packages ! hyperref"
18675 to link cross-references in the output, you will see that clicking on an
18676 image float reference jumps to the image label.
18677 The caption will be the first text part on the screen, so that you cannot
18678 see the image without scrolling.
18679 This is because the reference link anchor is placed at the position of
18681 With the use of the package
18686 \begin_inset LatexCommand index
18687 name "LaTeX-packages ! hypcap"
18691 , which is part of the LaTeX-package
18696 \begin_inset LatexCommand index
18697 name "LaTeX-packages ! oberdiek"
18701 , the link anchor is placed at the beginning of a float.
18702 To use this feature for figure floats, load
18706 in the document preamble with the line
18709 \begin_layout Standard
18714 usepackage[f\SpecialChar \textcompwordmark{}
18718 \begin_layout Standard
18723 for all floats but this isn't recommended for stability reasons.
18724 For more informations, have a look at
18729 \begin_inset LatexCommand cite
18737 \begin_layout Standard
18738 \begin_inset Note Greyedout
18741 \begin_layout Standard
18750 must be loaded after
18754 in the document preamble.
18762 \begin_layout Standard
18763 \begin_inset Note Greyedout
18766 \begin_layout Standard
18775 has no effect for references to subfigures.
18783 \begin_layout Section
18785 \begin_inset LatexCommand label
18786 name "sec:Float-Placement"
18791 \begin_inset LatexCommand index
18792 name "Floats ! Placement"
18799 \begin_layout Standard
18800 Right-clicking on a float-box opens a dialog where you can alter the placement
18801 options that LaTeX uses for positioning the float.
18808 is only useful for two-column documents: If you select it, the float will
18809 span across both columns on the page instead of being confined to just
18814 Rotate\InsetSpace ~
18817 is used to rotate floats, see section
18818 \begin_inset LatexCommand ref
18819 reference "sec:Rotated-Floats"
18826 \begin_layout Standard
18827 You can use one ore more of the following options in the float dialog to
18828 set the placement for a particular float when you uncheck the option
18831 default\InsetSpace ~
18837 \begin_layout Description
18840 possible: try to place the float on the position where it is inserted
18843 \begin_layout Description
18846 page: try to place the float on the top of the current page
18849 \begin_layout Description
18850 Bottom\InsetSpace ~
18852 page: try to place the float on the bottom of the current page
18855 \begin_layout Description
18858 floats: try to place the float on an own page
18861 \begin_layout Standard
18862 The order of the above option is
18867 That means, if you use the default placement, LaTeX will first try out
18880 , and then the others.
18881 If you don't use the default, LaTeX will try only the checked options but
18883 If none of the 4 placements are possible the procedure is internally repeated
18884 but it is tried to put the float on the following page.
18887 \begin_layout Standard
18888 By default, each option has its own rules:
18891 \begin_layout Labeling
18892 \labelwidthstring 00.00.0000
18899 only floats occupying less than 70\InsetSpace \thinspace{}
18900 % of the page can be placed at the top
18910 \begin_layout Labeling
18911 \labelwidthstring 00.00.0000
18914 Bottom\InsetSpace ~
18918 : only floats occupying less than 30\InsetSpace \thinspace{}
18919 % of the page can be placed at the bottom
18930 \begin_layout Labeling
18931 \labelwidthstring 00.00.0000
18938 : only if more than 50\InsetSpace \thinspace{}
18939 % of the page are occupied by floats, several floats
18940 can be set together on a page.
18950 \begin_layout Standard
18951 If you don't like these rules, you can ignore them by using the additional
18954 Ignore\InsetSpace ~
18960 You can also redefine the rules with LaTeX-commands that are given in parenthese
18961 s behind the rules description above.
18962 To increase for example the often too small default of the bottom-rule
18963 to 50\InsetSpace \thinspace{}
18964 % of the page, add this line to your document preamble:
18967 \begin_layout Standard
18974 bottomfraction}{0.5}
18977 \begin_layout Standard
18978 Sometimes you might need, under all circumstances, a float to be placed
18979 exactly at the position where it is inserted.
18980 For this case you can use the option
18986 Use this option very rarely and only if the document is nearly ready to
18988 Because the float is then no longer able to
18989 \begin_inset Quotes eld
18993 \begin_inset Quotes erd
18996 when you change your document and this will often destroy the page layout.
18999 \begin_layout Standard
19000 There are no placement options for text wrap floats, because they are always
19001 surrounded by the text of a certain paragraph.
19002 \begin_inset VSpace bigskip
19008 \begin_layout Standard
19009 Sometimes you have the problem that a float is placed at the top of a page
19010 while its corresponding section starts at the middle of the page, so that
19011 the reader could think the float is part of the previous section.
19012 To avoid this the LaTeX-command
19016 suppressf\SpecialChar \textcompwordmark{}
19020 It suppresses a given float placement for the page where it is inserted
19021 and can therefore be used to avoid that floats could be set before a section
19023 To get this, add these commands to your document preamble:
19026 \begin_layout Standard
19043 suppressf\SpecialChar \textcompwordmark{}
19049 \begin_layout Standard
19050 You can define the same for all section headings, like chapters and subsections.
19051 This definition is not recommended to be used for small text parts like
19052 subsubsections because LaTeX may then have problems to find a suitable
19056 \begin_layout Standard
19057 \begin_inset VSpace bigskip
19060 In some cases it is required to have all figures/tables at the end of the
19062 For this purpose the LaTeX-package
19064 endf\SpecialChar \textcompwordmark{}
19068 \begin_inset LatexCommand index
19069 name "LaTeX-packages ! endfloat"
19074 It puts all figure and table floats at the end of the document into own
19076 At the original float position a text hint like
19077 \begin_inset Quotes eld
19082 [Figure\InsetSpace ~
19086 \begin_inset Quotes erd
19090 The endfloat-package is loaded in the preamble with the line
19093 \begin_layout Standard
19098 usepackage[options]{endf\SpecialChar \textcompwordmark{}
19102 \begin_layout Standard
19103 There are various package options to format the created figure/table sections.
19104 For more information we refer to the
19106 endf\SpecialChar \textcompwordmark{}
19110 \begin_inset LatexCommand cite
19118 \begin_inset Note Greyedout
19121 \begin_layout Standard
19124 Note: endf\SpecialChar \textcompwordmark{}
19127 doesn't provide an automatic translation for the text hint, you have to
19128 do this manually, see section\InsetSpace ~
19130 \begin_inset LatexCommand cite
19143 \begin_inset Note Greyedout
19146 \begin_layout Standard
19151 There is currently a bug in
19153 endf\SpecialChar \textcompwordmark{}
19156 when the caption contains a German
19157 \begin_inset Quotes eld
19161 \begin_inset Quotes erd
19165 Use in this case the command
19166 \begin_inset Quotes eld
19176 \begin_inset Quotes erd
19180 \begin_inset Quotes eld
19184 \begin_inset Quotes erd
19195 \begin_layout Standard
19196 \begin_inset VSpace bigskip
19199 For more details about float placements, have a look at LaTeX books,
19200 \begin_inset LatexCommand cite
19201 key "latexcompanion,latexguide,latexbook"
19208 \begin_layout Section
19210 \begin_inset LatexCommand label
19211 name "sec:Rotated-Floats"
19216 \begin_inset LatexCommand index
19217 name "Floats ! Rotating"
19224 \begin_layout Standard
19225 Especially for wide tables you might have floats rotated.
19226 To rotate a whole float including the caption, right-click on the float-box
19229 Rotate\InsetSpace ~
19235 \begin_layout Standard
19236 Rotated floats are always placed on its own page (or column, when you have
19237 a two-column document).
19238 They are normally rotated so that you can read them from the outside margin
19239 -- to the left on even pages, to the right on odd pages.
19242 \begin_layout Standard
19243 Referencing rotated floats is the same like for normal floats, the caption
19244 format is also the same: Table\InsetSpace ~
19246 \begin_inset LatexCommand ref
19247 reference "tab:Rotated-table"
19251 is an example of a rotated table float.
19254 \begin_layout Standard
19255 \begin_inset Note Greyedout
19258 \begin_layout Standard
19263 Not all DVI-viewers are able to display rotated floats.
19271 \begin_layout Standard
19272 \begin_inset Float table
19277 \begin_layout Standard
19278 \begin_inset Caption
19280 \begin_layout Standard
19281 \begin_inset LatexCommand label
19282 name "tab:Rotated-table"
19294 \begin_layout Standard
19296 \begin_inset Tabular
19297 <lyxtabular version="3" rows="1" columns="5">
19299 <column alignment="center" valignment="top" leftline="true" width="0">
19300 <column alignment="center" valignment="top" leftline="true" width="0">
19301 <column alignment="center" valignment="top" leftline="true" width="0">
19302 <column alignment="center" valignment="top" leftline="true" width="0">
19303 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19304 <row topline="true" bottomline="true">
19305 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19308 \begin_layout Standard
19314 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19317 \begin_layout Standard
19323 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19326 \begin_layout Standard
19332 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19335 \begin_layout Standard
19341 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19344 \begin_layout Standard
19363 \begin_layout Section
19365 \begin_inset LatexCommand index
19366 name "Caption ! Formatting"
19371 \begin_inset LatexCommand index
19372 name "Floats ! Caption Formatting"
19377 \begin_inset LatexCommand index
19378 name "LaTeX-packages ! caption"
19383 \begin_inset LatexCommand label
19384 name "sec:Caption-Formatting"
19391 \begin_layout Standard
19396 environment is the default paragraph environment for
19401 On the LyX screen captions appear as label, e.\InsetSpace \thinspace{}
19404 \begin_inset Quotes eld
19412 \begin_inset Quotes erd
19415 followed by the caption text.
19417 \begin_inset Quotes eld
19421 \begin_inset Quotes erd
19424 is the actual reference number.
19425 By default the label and the number are in the same font as the caption
19426 text and a colon follows the number to divide the label from the text.
19427 This caption format is not suitable for all document formats.
19431 \begin_layout Standard
19432 To change the default caption format, load the LaTeX-package
19437 \begin_inset LatexCommand index
19438 name "LaTeX-packages ! caption"
19442 in the document preamble with this line:
19445 \begin_layout Standard
19450 usepackage[format definition]{caption}
19453 \begin_layout Standard
19454 To have for example the label and the number in sans-serif bold font and
19455 the table captions always above the table like in this document, use the
19459 \begin_layout Standard
19464 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
19467 \begin_layout Standard
19468 You can also define different caption formats for the different float types.
19469 In this case load the
19473 package without format specific options and define the different formats
19474 with the help of the command
19477 \begin_layout Standard
19482 captionsetup[float type]{format definition}
19485 \begin_layout Standard
19486 in the document preamble.
19487 For example the caption formats of Figure\InsetSpace ~
19489 \begin_inset LatexCommand ref
19490 reference "fig:This-is-an-fig"
19494 and Table\InsetSpace ~
19496 \begin_inset LatexCommand ref
19497 reference "tab:This-is-an-tab"
19501 can be created using these commands in the document preamble:
19504 \begin_layout Standard
19509 usepackage[tableposition=top]{caption}
19517 captionsetup[f\SpecialChar \textcompwordmark{}
19518 igure]{labelfont={tt}, textfont=it, indention=1cm,%
19524 \begin_layout Standard
19532 captionsetup[figure]
19543 captionsetup[table]{labelfont={bf,sf}}
19546 \begin_layout Standard
19547 \begin_inset Note Greyedout
19550 \begin_layout Standard
19559 has no effect when a
19564 \begin_inset LatexCommand index
19565 name "LaTeX-packages ! koma-script"
19569 document class is used.
19570 In this case the document class option
19582 \begin_layout Standard
19583 For more information about the package
19587 we refer to its documentation
19588 \begin_inset LatexCommand cite
19589 key "caption,caption-de"
19596 \begin_layout Standard
19597 To change the label name from e.g.
19599 \begin_inset Quotes eld
19603 \begin_inset Quotes erd
19607 \begin_inset Quotes eld
19611 \begin_inset Quotes erd
19614 use this preamble command:
19617 \begin_layout Standard
19624 fnum@figure}{Image~
19629 \begin_layout Standard
19636 inserts the figure number and
19639 \begin_inset Quotes eld
19645 \begin_inset Quotes erd
19648 creates a protected space.
19651 \begin_layout Standard
19652 \begin_inset VSpace bigskip
19660 \begin_inset LatexCommand index
19661 name "LaTeX-packages ! koma-script"
19667 article (koma-script)
19675 letter (koma-script)
19679 report (koma-script)
19681 \InsetSpace \thinspace{}
19682 ), you can alternatively to the
19690 's built-in command
19697 For example, to have the caption label in bold, add this command to your
19701 \begin_layout Standard
19706 setkomafont{captionlabel}{
19711 \begin_layout Standard
19712 For more information about
19723 \begin_inset LatexCommand cite
19724 key "koma-script,koma-script-de"
19731 \begin_layout Standard
19735 \begin_layout Standard
19739 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
19746 \begin_inset Note Note
19749 \begin_layout Standard
19750 The caption format is changed only for this example.
19758 \begin_layout Standard
19759 \begin_inset Float figure
19765 \begin_layout Standard
19767 \begin_inset Graphics
19768 filename clipart/mobius.eps
19777 \begin_layout Standard
19778 \begin_inset Caption
19780 \begin_layout Standard
19781 \begin_inset LatexCommand label
19782 name "fig:This-is-an-fig"
19786 This is an example figure caption that is longer than one line to show the
19787 different caption format.
19788 Here a self-defined caption format is used.
19801 \begin_layout Standard
19805 \begin_layout Standard
19809 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
19818 \begin_layout Standard
19819 \begin_inset Float table
19825 \begin_layout Standard
19826 \begin_inset Caption
19828 \begin_layout Standard
19829 \begin_inset LatexCommand label
19830 name "tab:This-is-an-tab"
19834 This is an example table caption that is longer than one line to show the
19835 different caption format.
19836 Here the standard caption format for tables in this document is used.
19844 \begin_layout Standard
19846 \begin_inset Tabular
19847 <lyxtabular version="3" rows="1" columns="5">
19849 <column alignment="center" valignment="top" leftline="true" width="0">
19850 <column alignment="center" valignment="top" leftline="true" width="0">
19851 <column alignment="center" valignment="top" leftline="true" width="0">
19852 <column alignment="center" valignment="top" leftline="true" width="0">
19853 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19854 <row topline="true" bottomline="true">
19855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19858 \begin_layout Standard
19864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19867 \begin_layout Standard
19873 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19876 \begin_layout Standard
19882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19885 \begin_layout Standard
19891 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19894 \begin_layout Standard
19913 \begin_layout Section
19915 \begin_inset LatexCommand index
19916 name "Caption ! Placement"
19921 \begin_inset LatexCommand index
19922 name "Floats ! Caption Placement"
19927 \begin_inset LatexCommand label
19928 name "sec:Caption-Placement"
19935 \begin_layout Standard
19936 The common caption placement rule is:
19939 \begin_layout Description
19940 Figure: Caption is set below the figure
19943 \begin_layout Description
19944 Table: Caption is set above the table
19947 \begin_layout Standard
19948 Having the caption above the table is unfortunately not supported in LaTeX's
19950 That means if you are using the document classes
19966 there will be no space between the caption and the table.
19967 To insert the needed space, add the following option to the load command
19968 of the LaTeX-package
19972 in your document preamble
19976 \begin_layout Standard
19977 See section\InsetSpace ~
19979 \begin_inset LatexCommand ref
19980 reference "sec:Caption-Formatting"
19984 for more information of the package
19996 \begin_layout Standard
20002 \begin_layout Standard
20008 \begin_inset LatexCommand index
20009 name "LaTeX-packages ! koma-script"
20015 article (koma-script)
20023 letter (koma-script)
20027 report (koma-script)
20029 \InsetSpace \thinspace{}
20030 ), you can alternatively to the
20034 package set the document class option
20038 , or you can use the environment
20040 caption\InsetSpace ~
20050 \begin_layout Standard
20051 \begin_inset VSpace bigskip
20054 It is also possible to set the caption beside a figure or table.
20055 To get this the LaTeX-package
20060 \begin_inset LatexCommand index
20061 name "LaTeX-packages ! sidecap"
20065 has to be loaded in the document preamble with the line
20068 \begin_layout Standard
20073 usepackage[option]{sidecap}
20076 \begin_layout Standard
20077 If you set no option, the caption is placed on the side of the outer page
20078 margin -- to the right on odd pages, to the left on even pages.
20079 You can change the placement to inner margin with the option
20084 To force the placement always to the right or left, use the option
20095 \begin_layout Standard
20096 To place in LyX the caption of a float on the side, it is necessary to add
20097 these commands to the document preamble:
20100 \begin_layout Standard
20106 \begin_layout Standard
20119 \begin_layout Standard
20140 \begin_layout Standard
20161 \begin_layout Standard
20172 renewenvironment{table}{
20179 \begin_layout Standard
20192 \begin_layout Standard
20213 \begin_layout Standard
20231 \begin_layout Standard
20244 \begin_layout Standard
20259 f\SpecialChar \textcompwordmark{}
20266 \begin_layout Standard
20279 MyEndf\SpecialChar \textcompwordmark{}
20282 endf\SpecialChar \textcompwordmark{}
20289 \begin_layout Standard
20300 renewenvironment{f\SpecialChar \textcompwordmark{}
20303 begin{SCf\SpecialChar \textcompwordmark{}
20306 end{SCf\SpecialChar \textcompwordmark{}
20310 \begin_layout Standard
20323 \begin_layout Standard
20336 f\SpecialChar \textcompwordmark{}
20345 \begin_layout Standard
20358 endf\SpecialChar \textcompwordmark{}
20361 MyEndf\SpecialChar \textcompwordmark{}
20365 \begin_layout Standard
20371 \begin_layout Standard
20372 The commands allow you to redefine the floats so that the caption is set
20374 For figure floats use the command
20377 \begin_layout Standard
20385 \begin_layout Standard
20386 in ERT before the float.
20387 Behind the float insert the command
20390 \begin_layout Standard
20398 \begin_layout Standard
20399 in ERT to get back to the original float definition.
20402 \begin_layout Standard
20403 For table floats use the corresponding commands
20406 \begin_layout Standard
20420 \begin_layout Standard
20421 Figure\InsetSpace ~
20423 \begin_inset LatexCommand ref
20424 reference "fig:cap-beside-fig"
20428 and Table\InsetSpace ~
20430 \begin_inset LatexCommand ref
20431 reference "tab:cap-beside-tab"
20435 are examples where the caption is set beside.
20438 \begin_layout Standard
20439 You can see in the examples that the caption text appears at the top of
20440 the floats for table floats and at the bottom for figure floats.
20441 To change this, you can use the command
20444 \begin_layout Standard
20449 sidecaptionvpos{float type}{placement}
20452 \begin_layout Standard
20453 in the document preamble or in ERT before the float.
20454 The float type is either
20462 , the placement can be
20463 \begin_inset Quotes eld
20471 \begin_inset Quotes erd
20475 \begin_inset Quotes eld
20483 \begin_inset Quotes erd
20487 \begin_inset Quotes eld
20495 \begin_inset Quotes erd
20499 To have for example the caption of figure floats vertically centered, use
20503 \begin_layout Standard
20508 sidecaptionvpos{f\SpecialChar \textcompwordmark{}
20512 \begin_layout Standard
20513 This was used for Figure\InsetSpace ~
20515 \begin_inset LatexCommand ref
20516 reference "fig:cap-beside-fig-2"
20523 \begin_layout Standard
20524 \begin_inset VSpace defskip
20527 For more information about the package
20531 we refer to its documentation
20532 \begin_inset LatexCommand cite
20540 \begin_layout Standard
20541 \begin_inset Note Greyedout
20544 \begin_layout Standard
20554 \begin_inset LatexCommand index
20555 name "LaTeX-packages ! hypcap"
20559 , described in section\InsetSpace ~
20561 \begin_inset LatexCommand ref
20562 reference "sub:Reference-Position"
20566 , has no effect on floats with the caption set beside.
20574 \begin_layout Standard
20578 \begin_layout Standard
20590 \begin_layout Standard
20591 \begin_inset Float figure
20596 \begin_layout Standard
20597 \begin_inset Graphics
20598 filename clipart/escher-lsd.eps
20606 \begin_layout Standard
20607 \begin_inset Caption
20609 \begin_layout Standard
20610 \begin_inset LatexCommand label
20611 name "fig:cap-beside-fig"
20615 This is a caption beside a figure.
20628 \begin_layout Standard
20632 \begin_layout Standard
20644 \begin_layout Standard
20645 \begin_inset Float table
20650 \begin_layout Standard
20651 \begin_inset Caption
20653 \begin_layout Standard
20654 \begin_inset LatexCommand label
20655 name "tab:cap-beside-tab"
20659 This is a caption beside a table.
20667 \begin_layout Standard
20668 \begin_inset Tabular
20669 <lyxtabular version="3" rows="4" columns="5">
20671 <column alignment="center" valignment="top" leftline="true" width="0">
20672 <column alignment="center" valignment="top" leftline="true" width="0">
20673 <column alignment="center" valignment="top" leftline="true" width="0">
20674 <column alignment="center" valignment="top" leftline="true" width="0">
20675 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
20676 <row topline="true">
20677 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20680 \begin_layout Standard
20686 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20689 \begin_layout Standard
20695 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20698 \begin_layout Standard
20704 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20707 \begin_layout Standard
20713 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20716 \begin_layout Standard
20723 <row topline="true">
20724 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20727 \begin_layout Standard
20733 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20736 \begin_layout Standard
20742 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20745 \begin_layout Standard
20751 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20754 \begin_layout Standard
20760 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20763 \begin_layout Standard
20770 <row topline="true">
20771 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20774 \begin_layout Standard
20780 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20783 \begin_layout Standard
20789 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20792 \begin_layout Standard
20798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20801 \begin_layout Standard
20807 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20810 \begin_layout Standard
20817 <row topline="true" bottomline="true">
20818 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20821 \begin_layout Standard
20827 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20830 \begin_layout Standard
20836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20839 \begin_layout Standard
20845 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20848 \begin_layout Standard
20854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20857 \begin_layout Standard
20876 \begin_layout Standard
20880 \begin_layout Standard
20892 \begin_layout Standard
20896 \begin_layout Standard
20900 sidecaptionvpos{figure}{c}
20906 \begin_inset Float figure
20911 \begin_layout Standard
20912 \begin_inset Graphics
20913 filename clipart/escher-lsd.eps
20921 \begin_layout Standard
20922 \begin_inset Caption
20924 \begin_layout Standard
20925 \begin_inset LatexCommand label
20926 name "fig:cap-beside-fig-2"
20930 This is a vertically centered caption beside a figure.
20943 \begin_layout Standard
20947 \begin_layout Standard
20959 \begin_layout Section
20961 \begin_inset LatexCommand label
20962 name "sec:Listings-of-Floats"
20967 \begin_inset LatexCommand index
20968 name "Floats ! Float Lists"
20975 \begin_layout Standard
20976 Similar to the the table of contents where the sections of the document
20977 are listed, there are listings for all float types, like the figures of
20979 You can insert them via the
20981 Insert\SpecialChar \menuseparator
20989 \begin_layout Standard
20990 The list entries are the float captions or its short title, the float number,
20991 and the page number where they appear in the document.
20994 \begin_layout Standard
20995 You can find the list of figures and tables at the end of this document.
20998 \begin_layout Chapter
21002 \begin_layout Section
21006 \begin_layout Standard
21019 \begin_layout Standard
21027 \begin_inset LatexCommand label
21028 name "sec:LyX-Notes"
21033 \begin_inset LatexCommand index
21034 name "Notes ! LyX Notes"
21039 \begin_inset Note Note
21042 \begin_layout Standard
21045 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
21046 are displayed wrongly in PDF-bookmarks.
21047 For more information about this, have a look at
21048 \begin_inset LatexCommand cite
21061 \begin_layout Standard
21062 Notes are inserted with the toolbar button
21063 \begin_inset Graphics
21064 filename ../images/note-insert.xpm
21071 Insert\SpecialChar \menuseparator
21075 There are five types of notes:
21078 \begin_layout Description
21080 Note This note type is for internal notes that won't appear in the output.
21081 Its note-box looks like this:
21086 \begin_inset Graphics
21087 filename clipart/LyXNoteImageQt4.png
21094 \begin_inset Note Note
21097 \begin_layout Standard
21098 This is text in a note box that doesn't appear in the output.
21106 \begin_layout Description
21107 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
21108 ent, when you export the document to LaTeX via the menu
21110 File\SpecialChar \menuseparator
21111 Export\SpecialChar \menuseparator
21112 LaTeX (pdflatex) / LaTeX (plain)
21115 Its note-box looks like this:
21120 \begin_inset Graphics
21121 filename clipart/CommentNoteImageQt4.png
21128 \begin_inset Note Comment
21131 \begin_layout Standard
21132 This is text in a note box that only appears as comment in LaTeX-files.
21140 \begin_layout Description
21141 Greyed\InsetSpace ~
21142 Out This note will appear in the output as grey text.
21143 Its note-box looks like this:
21148 \begin_inset Graphics
21149 filename clipart/GreyedOutNoteImageQt4.png
21161 \begin_layout Standard
21165 renewenvironment{lyxgreyedout}
21168 \begin_layout Standard
21172 textcolor[gray]{0.8}
21182 \begin_inset Note Greyedout
21185 \begin_layout Standard
21190 \begin_layout Standard
21191 This is an example footnote within a greyed out note.
21196 of a comment that appears in the output as grey text.
21205 \begin_layout Standard
21209 renewenvironment{lyxgreyedout}
21212 \begin_layout Standard
21226 \begin_inset Note Note
21229 \begin_layout Standard
21230 The greyed out note is here redefined to show it with the original LyX definitio
21231 n because greyed out notes are redefined in the preamble of this document,
21232 as described below, to have blue text.
21241 As you can see in the example, the first line of greyed out notes is a bit
21242 indented and greyed out notes can have footnotes.
21245 \begin_layout Description
21246 Framed This note will appear in the output as framed text.
21247 Its note-box looks like this:
21252 \begin_inset Graphics
21253 filename clipart/FramedNoteImageQt4.png
21260 \begin_inset Note Framed
21263 \begin_layout Standard
21264 This is text in a note box that appears framed in the output.
21269 In contrary to framed boxes
21273 \begin_layout Standard
21274 Framed boxes are described in section\InsetSpace ~
21276 \begin_inset LatexCommand ref
21277 reference "sec:Framed-Boxes"
21286 the frame uses always the whole text width and the note is set into its
21290 \begin_layout Description
21291 Shaded This note will appear in the output with red background color.
21292 Its note box looks like this:
21297 \begin_inset Graphics
21298 filename clipart/ShadedNoteImageQt4.png
21305 \begin_inset Note Shaded
21308 \begin_layout Standard
21309 This text in a note box appears in the output with red background.
21314 In contrary to colored boxes
21318 \begin_layout Standard
21319 Colored boxes are described in section\InsetSpace ~
21321 \begin_inset LatexCommand ref
21322 reference "sec:Colored-Boxes"
21331 the note uses always the whole text width and the note is set into its
21335 \begin_layout Standard
21336 \begin_inset VSpace bigskip
21339 When you use the toolbar button to insert notes, a
21345 You can switch between the five note types by right-clicking on the note-box.
21350 If you want to turn existing text into a note, mark it and click on the
21366 \begin_layout Standard
21367 \begin_inset VSpace bigskip
21370 You can change the text color of the greyed out notes in the preamble with
21371 the following command:
21374 \begin_layout Standard
21379 renewenvironment{lyxgreyedout}
21385 \begin_layout Standard
21403 \begin_layout Standard
21404 The available colors and the method to define own colors is explained in
21405 section\InsetSpace ~
21407 \begin_inset LatexCommand ref
21408 reference "sec:Colored-Tables"
21415 \begin_layout Standard
21416 Notes that appear in blue in this document are set using greyed out notes
21420 \begin_layout Standard
21421 \begin_inset VSpace bigskip
21427 \begin_layout Standard
21436 notes can be set in the
21443 \begin_layout Standard
21444 The default frame width for
21448 notes is 0.4\InsetSpace \thinspace{}
21449 pt; it can be changed by changing the size
21456 The default space between the note content and the frame is 9\InsetSpace \thinspace{}
21458 be changed by changing the size
21465 For example the frame appearance of the following
21469 note is set with the ERT commands
21472 \begin_layout Standard
21482 \begin_layout Standard
21486 \begin_layout Standard
21498 \begin_inset Note Framed
21501 \begin_layout Standard
21515 \begin_layout Standard
21529 \begin_layout Standard
21530 \begin_inset VSpace bigskip
21536 \begin_layout Standard
21541 notes the default space between the note content and the note border is
21542 3\InsetSpace \thinspace{}
21543 pt; it can be changed by changing the size
21551 The default background color red can be changed with the command
21555 def\SpecialChar \textcompwordmark{}
21563 def\SpecialChar \textcompwordmark{}
21566 command is explained in section\InsetSpace ~
21568 \begin_inset LatexCommand ref
21569 reference "sec:Colored-Tables"
21577 \begin_layout Standard
21584 \SpecialChar \textcompwordmark{}
21589 requires the LaTeX-package
21593 in the preamble, see section\InsetSpace ~
21595 \begin_inset LatexCommand ref
21596 reference "sec:Colored-Boxes"
21608 \begin_layout Standard
21609 For example the appearance of the following
21613 note is set with the ERT commands
21616 \begin_layout Standard
21629 def\SpecialChar \textcompwordmark{}
21630 inecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21633 \begin_layout Standard
21637 \begin_layout Standard
21650 \begin_layout Standard
21654 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21660 \begin_inset Note Shaded
21663 \begin_layout Standard
21666 This is yellow text in a
21676 note with darkgreen background.
21685 \begin_layout Standard
21698 \begin_layout Standard
21702 definecolor{shadecolor}{rgb}{1,0,0}
21710 \begin_layout Section
21712 \begin_inset LatexCommand label
21713 name "sec:Footnotes"
21718 \begin_inset LatexCommand index
21719 name "Notes ! Footnotes"
21724 \begin_inset LatexCommand index
21732 \begin_layout Standard
21733 Footnotes can be inserted using the toolbar button
21734 \begin_inset Graphics
21735 filename ../images/footnote-insert.xpm
21742 Insert\SpecialChar \menuseparator
21754 then the following footnote-box:
21755 \begin_inset Graphics
21756 filename clipart/footnoteQt4.png
21765 where you can enter the footnote text.
21766 If you want to turn existing text into a footnote, mark it and click on
21782 \begin_layout Standard
21783 Here is an example footnote:
21791 \begin_layout Standard
21792 \begin_inset LatexCommand label
21793 name "foot:This-is-an"
21797 This is an example footnote.
21810 \begin_layout Standard
21814 newcounter{MyRepeatFoot}
21817 \begin_layout Standard
21821 setcounter{MyRepeatFoot}{
21831 \begin_layout Standard
21832 The footnote will appear in the output as a superscript number at the text
21833 position where the footnote box is placed.
21834 The footnote text is placed at the bottom of the current page.
21835 The footnote number is calculated by LaTeX, the numbers are consecutive.
21836 It depends on your document-class, if the footnote number is reset for
21840 \begin_layout Standard
21841 Footnotes can be referenced like floats: Insert a label into the footnote
21842 and cross-reference this label in the text as described in section\InsetSpace ~
21844 \begin_inset LatexCommand ref
21845 reference "sec:Referencing-Floats"
21851 This is a cross-reference of Footnote\InsetSpace ~
21853 \begin_inset LatexCommand ref
21854 reference "foot:This-is-an"
21861 \begin_layout Standard
21862 \begin_inset VSpace defskip
21865 To use footnotes within tables, you have to use minipages, see section\InsetSpace ~
21867 \begin_inset LatexCommand ref
21868 reference "sec:Minipages"
21873 Footnotes within longtables are described in section\InsetSpace ~
21875 \begin_inset LatexCommand ref
21876 reference "sub:Footnotes-in-Longtables"
21883 \begin_layout Standard
21884 \begin_inset VSpace defskip
21887 To create only a mark for a footnote, use the command
21891 footnotemark[number]
21894 This is used when you have the same annotation several times in a text
21895 but doesn't want to print the footnote text every time.
21898 the number of the repeating footnote while you are writing the text, you
21899 have to store its number.
21900 For the following footnote mark example, these commands were inserted in
21901 ERT behind Footnote\InsetSpace ~
21903 \begin_inset LatexCommand ref
21904 reference "foot:This-is-an"
21908 to store the footnote number:
21911 \begin_layout Standard
21916 newcounter{MyRepeatFoot}
21920 setcounter{MyRepeatFoot}{
21925 \begin_layout Standard
21926 The footnote mark was then created with this command:
21929 \begin_layout Standard
21939 \begin_layout Standard
21940 Here is an example footnote mark:
21948 \begin_layout Standard
21962 \begin_layout Subsection
21964 \begin_inset LatexCommand label
21965 name "sub:Footnote-Numbering"
21970 \begin_inset LatexCommand index
21971 name "Footnotes ! Numbering"
21978 \begin_layout Standard
21979 To reset the footnote number back to 1 after each section
21981 , add this command to your document preamble:
21984 \begin_layout Standard
21989 @addtoreset{footnote}{section}
21992 \begin_layout Standard
21993 \begin_inset VSpace bigskip
21996 The following preamble command changes the footnote numbering style to small
22000 \begin_layout Standard
22012 \begin_layout Standard
22016 \begin_layout Standard
22029 This is a footnote with roman numbering:
22033 \begin_layout Standard
22034 This is an example footnote with roman numbering.
22043 \begin_layout Standard
22059 \begin_layout Standard
22060 To change the numbering style to capital roman numerals replace in the command
22075 \begin_inset Quotes eld
22079 \begin_inset Quotes erd
22082 footnotes with capital or small Latin letters use
22096 \begin_inset Quotes eld
22100 \begin_inset Quotes erd
22103 footnotes with symbols use
22112 \begin_layout Standard
22113 \begin_inset Note Greyedout
22116 \begin_layout Standard
22121 You can only number 26 footnotes with Latin letters, because this numbering
22122 is limited to single letters.
22130 \begin_inset Note Greyedout
22133 \begin_layout Standard
22138 You can only number 9 footnotes with symbols.
22146 \begin_layout Standard
22147 To return to the default numbering style when you changed to another one,
22160 in the command above.
22163 \begin_layout Standard
22164 \begin_inset VSpace bigskip
22170 \begin_layout Standard
22171 If you want to have footnotes numbered in the scheme
22172 \begin_inset Quotes eld
22176 \begin_inset Quotes erd
22179 , add the following command to your document preamble:
22182 \begin_layout Standard
22187 numberwithin{footnote}{chapter}
22190 \begin_layout Standard
22191 To be able to use the command
22202 in the document settings the option
22212 \begin_layout Standard
22216 \begin_layout Standard
22220 numberwithin{footnote}{chapter}
22225 This is another example footnote:
22231 \begin_layout Standard
22232 This is a footnote numbered in the scheme
22233 \begin_inset Quotes eld
22237 \begin_inset Quotes erd
22251 \begin_layout Standard
22267 \begin_layout Standard
22268 \begin_inset Note Greyedout
22271 \begin_layout Standard
22282 always prints out the footnote number as arabic number; previous redefinitions
22283 to get non-arabic numbers are overwritten.
22291 \begin_layout Standard
22292 So to get for example the scheme
22293 \begin_inset Quotes eld
22299 \begin_inset Quotes erd
22302 , use this command instead of
22311 \begin_layout Standard
22325 \begin_layout Subsection
22327 \begin_inset LatexCommand index
22328 name "Footnotes ! Placement"
22335 \begin_layout Standard
22336 If you have several footnotes in one page, they appear without vertical
22337 space between them at the bottom of the page.
22338 To make them better readable you can e.\InsetSpace \thinspace{}
22340 add 1.5\InsetSpace \thinspace{}
22341 mm space with the following
22345 \begin_layout Standard
22367 \begin_layout Standard
22368 \begin_inset VSpace bigskip
22371 In a two-column document the footnotes appear at the bottom of every column,
22372 see Figure\InsetSpace ~
22374 \begin_inset LatexCommand ref
22375 reference "fig:Standard-footnote-placement"
22380 If the footnotes should only appear at the bottom of the right column,
22381 as in Figure\InsetSpace ~
22383 \begin_inset LatexCommand ref
22384 reference "fig:Footnote-placement-in"
22388 , use the LaTeX-package
22393 \begin_inset LatexCommand index
22394 name "LaTeX-packages ! ftnright"
22398 with this command in the document preamble:
22401 \begin_layout Standard
22406 usepackage{ftnright}
22409 \begin_layout Standard
22410 \begin_inset Float figure
22416 \begin_layout Standard
22420 \begin_layout Standard
22430 \begin_inset Graphics
22431 filename clipart/without_fntright.pdf
22440 \begin_layout Standard
22450 \begin_layout Standard
22451 \begin_inset Caption
22453 \begin_layout Standard
22454 \begin_inset LatexCommand label
22455 name "fig:Standard-footnote-placement"
22459 Standard footnote placement in two-column documents.
22472 \begin_layout Standard
22473 \begin_inset Float figure
22479 \begin_layout Standard
22483 \begin_layout Standard
22493 \begin_inset Graphics
22494 filename clipart/with_fntright.pdf
22503 \begin_layout Standard
22513 \begin_layout Standard
22514 \begin_inset Caption
22516 \begin_layout Standard
22517 \begin_inset LatexCommand label
22518 name "fig:Footnote-placement-in"
22522 Footnote placement in two-column documents when the LaTeX-package
22539 \begin_layout Standard
22540 \begin_inset VSpace bigskip
22543 In some scientific literature it is usual to collect the footnotes and print
22544 them in a separate paragraph at the the end of a section, like in Figure\InsetSpace ~
22546 \begin_inset LatexCommand ref
22547 reference "fig:Endnotes----footnotes"
22552 They are then so called
22553 \begin_inset Quotes eld
22557 \begin_inset Quotes erd
22561 To use endnotes instead of footnotes in your document, load the LaTeX-package
22567 \begin_inset LatexCommand index
22568 name "LaTeX-packages ! endnotes"
22572 with the document preamble lines
22575 \begin_layout Standard
22580 usepackage{endnotes}
22591 \begin_layout Standard
22592 To insert the collected footnotes, insert the command
22595 \begin_layout Standard
22603 \begin_layout Standard
22604 in ERT at the the end of a section or chapter.
22607 \begin_layout Standard
22608 \begin_inset Float figure
22613 \begin_layout Standard
22618 \begin_layout Standard
22628 \begin_inset Graphics
22629 filename clipart/endnotes.pdf
22637 \begin_layout Standard
22647 \begin_layout Standard
22648 \begin_inset Caption
22650 \begin_layout Standard
22651 \begin_inset LatexCommand label
22652 name "fig:Endnotes----footnotes"
22656 Endnotes -- footnotes are printed in a separate paragraph at the end of
22657 sections or chapters.
22670 \begin_layout Standard
22671 \begin_inset VSpace defskip
22674 The paragraph heading for the endnotes isn't automatically translated into
22675 the document language, this must be done manually.
22676 The following preamble command translate the default English name
22677 \begin_inset Quotes eld
22681 \begin_inset Quotes erd
22684 to the German translation
22685 \begin_inset Quotes eld
22689 \begin_inset Quotes erd
22695 \begin_layout Standard
22702 notesname}{Anmerkungen}
22705 \begin_layout Standard
22706 \begin_inset VSpace defskip
22709 The numbering of endnotes can be changed like the footnote numbering as
22710 described in section\InsetSpace ~
22712 \begin_inset LatexCommand ref
22713 reference "sub:Footnote-Numbering"
22717 ; just replace the command
22730 To reset the endnote number use the command
22736 as described in section\InsetSpace ~
22738 \begin_inset LatexCommand ref
22739 reference "sub:Footnote-Numbering"
22743 and replace the command parameter
22754 \begin_layout Standard
22755 To create only a mark for an endnote, use the command
22759 endnotemark[number]
22761 similar to the command
22767 , described in section\InsetSpace ~
22769 \begin_inset LatexCommand ref
22770 reference "sec:Footnotes"
22777 \begin_layout Standard
22778 \begin_inset VSpace bigskip
22781 Footnotes can also be placed in the page margin and the footnote text alignment
22782 can be changed, see the LaTeX-package
22787 \begin_inset LatexCommand index
22788 name "LaTeX-packages ! footmisc"
22793 \begin_inset LatexCommand cite
22798 for more information about this.
22801 \begin_layout Standard
22802 For various further footnote formatting issues have a look at LaTeX-books,
22804 \begin_inset LatexCommand cite
22805 key "latexcompanion,latexguide,latexbook"
22812 \begin_layout Section
22814 \begin_inset LatexCommand index
22815 name "Notes ! Margin Notes"
22822 \begin_layout Standard
22823 Margin notes look and behave in LyX like footnotes.
22824 They are inserted via the menu
22826 Insert\SpecialChar \menuseparator
22827 Marginal\InsetSpace ~
22830 or the toolbar button
22831 \begin_inset Graphics
22832 filename ../images/marginalnote-insert.xpm
22848 \begin_inset Quotes eld
22852 \begin_inset Quotes erd
22855 appears where you can enter the text of the margin note.
22858 \begin_layout Standard
22859 At the side is an example margin note.
22863 \begin_inset Marginal
22866 \begin_layout Standard
22867 This is a margin note.
22875 \begin_layout Standard
22876 Margin notes appear at the right side in single-sided documents.
22877 In double-sided documents they appear in the outer margin -- left on even
22878 pages, right on odd pages.
22879 The text of margin notes is aligned opposite to the outer margin -- right-align
22880 ed when the note appears in the left margin.
22881 The first line of the margin note is placed at the position of the text
22882 line where it is inserted in the document.
22885 \begin_layout Standard
22886 \begin_inset VSpace bigskip
22889 To place the margin note in the inner margin, add the command
22892 \begin_layout Standard
22900 \begin_layout Standard
22901 in ERT before a margin note.
22902 The new placement is valid for all following margin notes.
22906 \begin_layout Standard
22916 \begin_inset Marginal
22919 \begin_layout Standard
22920 This is a margin note in the inner margin.
22932 \begin_inset Note Greyedout
22935 \begin_layout Standard
22940 There is often not enough space in the inner margin so that the notes are
22941 not correctly displayed in the output.
22949 \begin_layout Standard
22953 \begin_layout Standard
22962 To return to the default placement insert the command
22965 \begin_layout Standard
22973 \begin_layout Standard
22976 \begin_inset Note Greyedout
22979 \begin_layout Standard
22984 The command is ignored when it is within a paragraph where also the command
22999 \begin_layout Standard
23000 \begin_inset VSpace bigskip
23007 \begin_inset Marginal
23010 \begin_layout Standard
23011 AVeryLongMarginParWord that isn't hyphenated.
23019 Similar to the case described in section\InsetSpace ~
23021 \begin_inset LatexCommand ref
23022 reference "sub:Multiple-Lines-in"
23026 , long words cannot be hyphenated when they are the first word in a margin
23028 To avoid this, insert the command
23031 \begin_layout Standard
23039 \begin_layout Standard
23040 in ERT before the word
23044 \begin_inset Marginal
23047 \begin_layout Standard
23051 \begin_layout Standard
23060 AVeryLongMarginParWord that is hyphenated.
23068 \begin_layout Standard
23069 \begin_inset VSpace bigskip
23075 \begin_layout Standard
23076 \begin_inset Note Greyedout
23079 \begin_layout Standard
23084 Margin notes can normally not be used inside tables, floats, and footnotes.
23092 \begin_layout Standard
23093 \begin_inset VSpace bigskip
23099 \begin_layout Standard
23103 \begin_layout Standard
23113 \begin_inset Note Note
23116 \begin_layout Standard
23117 The following section will only be displayed when you have the LaTeX-package
23130 \begin_layout Standard
23131 This restriction can be evaded by using the LaTeX-package
23136 \begin_inset LatexCommand index
23137 name "LaTeX-packages ! marginnote"
23142 By adding these two lines to your document preamble, the command used by
23143 LyX for margin notes is redefined to use the command provided by the
23150 \begin_layout Standard
23155 usepackage{marginnote}
23166 \begin_layout Standard
23167 This is also used in this document because
23171 has another useful feature: You can set a vertical offset for the note.
23172 This is often needed when too many margin notes are too close together
23173 or for a better page layout.
23174 The offset is set in LyX as ERT directly behind the margin note in the
23178 \begin_layout Standard
23184 \begin_layout Standard
23185 where the offset is a length with one of the units listed in Table\InsetSpace ~
23187 \begin_inset LatexCommand ref
23188 reference "tab:Units"
23193 A negative value shifts the note up, a positive value shifts it down.
23197 For example the margin note beside this text line is shifted up 1.5\InsetSpace \thinspace{}
23200 \begin_inset Quotes eld
23210 \begin_inset Quotes erd
23214 \begin_inset Marginal
23217 \begin_layout Standard
23218 This margin note is shifted up 1.5\InsetSpace \thinspace{}
23219 cm from its original position.
23231 \begin_layout Standard
23241 \begin_layout Standard
23242 \begin_inset VSpace defskip
23249 you can also change the alignment of the text in the margin note.
23250 For example the commands
23253 \begin_layout Standard
23260 raggedleftmarginnote}{
23268 raggedrightmarginnote}{
23273 \begin_layout Standard
23274 set the alignment to centered.
23279 raggedleftmarginnote
23281 denotes margin notes that appear at the left side.
23288 \begin_layout Standard
23294 raggedleftmarginnote}{
23299 \begin_layout Standard
23305 raggedrightmarginnote}{
23313 \begin_inset Marginal
23316 \begin_layout Standard
23317 The text of this margin note is centered.
23328 \begin_layout Standard
23335 raggedleftmarginnote}{
23343 raggedrightmarginnote}{
23352 \begin_layout Standard
23358 raggedleftmarginnote}{
23363 \begin_layout Standard
23369 raggedrightmarginnote}{
23379 \begin_layout Standard
23380 \begin_inset VSpace defskip
23383 For the other features of
23387 we refer to its documentation
23388 \begin_inset LatexCommand cite
23396 \begin_layout Standard
23397 \begin_inset VSpace bigskip
23400 You can change the layout of margin notes by redefining its definition.
23401 To create for example a header for all margin notes with the underlined,
23402 sans-serif, and bold header text
23403 \begin_inset Quotes eld
23415 \begin_inset Quotes erd
23418 , add this to your document preamble:
23421 \begin_layout Standard
23444 \begin_layout Standard
23461 underbar{Attention!}}}%
23467 \begin_layout Standard
23485 \begin_layout Standard
23492 \begin_layout Standard
23503 \begin_layout Standard
23514 \begin_layout Standard
23522 underbar{Attention!}}}%
23525 \begin_layout Standard
23539 \begin_inset Marginal
23542 \begin_layout Standard
23543 This is a margin note with a defined heading.
23555 \begin_layout Standard
23569 \begin_layout Standard
23586 \begin_inset Note Note
23589 \begin_layout Standard
23590 The margin note format is changed only for this example.
23598 \begin_layout Standard
23602 \begin_layout Standard
23612 \begin_inset Note Note
23615 \begin_layout Standard
23616 The following will be displayed when the LaTeX-package
23628 \begin_layout Standard
23629 You need to install the LaTeX-package
23633 to see the following part of this section in the output.
23636 \begin_layout Standard
23640 \begin_layout Standard
23652 \begin_layout Standard
23656 \begin_layout Chapter
23660 \begin_layout Section
23662 \begin_inset LatexCommand index
23663 name "Boxes ! Introduction"
23670 \begin_layout Standard
23671 Boxes are used to format a block of text.
23672 Boxes can be used to write documents with multiple languages, see section\InsetSpace ~
23674 \begin_inset LatexCommand ref
23675 reference "sec:Minipages"
23679 , to frame texts, see section\InsetSpace ~
23681 \begin_inset LatexCommand ref
23682 reference "sec:Framed-Boxes"
23686 , to prevent words to be hyphenated, see section\InsetSpace ~
23688 \begin_inset LatexCommand ref
23689 reference "sec:Prevent-Hyphenation"
23693 , to align text, see section\InsetSpace ~
23695 \begin_inset LatexCommand ref
23696 reference "sub:Vertical-Alignment"
23700 , or to set the background color of texts, see section\InsetSpace ~
23702 \begin_inset LatexCommand ref
23703 reference "sec:Colored-Boxes"
23710 \begin_layout Standard
23711 Boxes can be inserted with the menu
23713 Insert\SpecialChar \menuseparator
23717 A grey box with the label
23722 \begin_inset Graphics
23723 filename clipart/BoxInsetDefaultQt4.png
23728 , will be inserted.
23729 The box type can be specified by right-clicking on the box.
23730 The appearing box dialog offers the
23748 is the default for new boxes and is explained in section\InsetSpace ~
23750 \begin_inset LatexCommand ref
23751 reference "sec:Minipages"
23759 is described in section\InsetSpace ~
23761 \begin_inset LatexCommand ref
23762 reference "sec:Parboxes"
23769 \begin_layout Standard
23770 Boxes aren't numbered and can therefore not be referenced like floats or
23774 \begin_layout Standard
23775 \begin_inset Note Greyedout
23778 \begin_layout Standard
23783 Due to a bug in LyX you have to insert a protected space behind a box when
23784 you want to separate in a line the box from the following text with a space.
23792 \begin_layout Standard
23793 \begin_inset Note Greyedout
23796 \begin_layout Standard
23801 Boxes must not be the item in an
23817 \begin_layout Standard
23818 \begin_inset Note Greyedout
23821 \begin_layout Standard
23826 For an unknown reason you can only set the
23835 when you use a framed box.
23841 type and without frames are explained in section\InsetSpace ~
23843 \begin_inset LatexCommand ref
23844 reference "sec:Prevent-Hyphenation"
23856 \begin_layout Section
23858 \begin_inset LatexCommand label
23859 name "sec:Box-Dialog"
23864 \begin_inset LatexCommand index
23865 name "Boxes ! Box Dialog"
23870 \begin_inset LatexCommand index
23871 name "Boxes ! Alignment"
23878 \begin_layout Standard
23879 In the box dialog you can adjust the box geometry in the fields
23888 The available units for the geometry are explained in Table\InsetSpace ~
23890 \begin_inset LatexCommand ref
23891 reference "tab:Units"
23900 offers the following additional sizes:
23903 \begin_layout Description
23904 Depth This is the plain text
23905 \begin_inset Quotes eld
23909 \begin_inset Quotes erd
23913 It ignores the total depth when there are multiple text lines in the box:
23920 \begin_inset Box Boxed
23929 height_special "depth"
23932 \begin_layout Standard
23934 Box height set to 1\InsetSpace \thinspace{}
23947 \begin_layout Description
23948 Height This is the heigth of the text that is inside the box.
23949 A value of e.\InsetSpace \thinspace{}
23951 2 for this size will set the box heigth to 2 times the text
23953 \begin_inset Box Boxed
23962 height_special "height"
23965 \begin_layout Standard
23967 Box height set to 2\InsetSpace \thinspace{}
23976 \begin_layout Description
23978 Height This is the Height\InsetSpace \thinspace{}
23979 +\InsetSpace \thinspace{}
23981 \begin_inset Box Boxed
23990 height_special "totalheight"
23993 \begin_layout Standard
23995 Box height set to 1\InsetSpace \thinspace{}
24005 \begin_layout Description
24006 Width This set the width of the box as heigth:
24007 \begin_inset Box Boxed
24016 height_special "width"
24019 \begin_layout Standard
24021 Box height set to 1\InsetSpace \thinspace{}
24030 \begin_layout Standard
24031 \begin_inset VSpace bigskip
24034 When you have chosen an
24039 , the vertical box alignment can be:
24042 \begin_layout Description
24043 Top This is an example text line.
24045 \begin_inset Box Boxed
24054 height_special "totalheight"
24057 \begin_layout Standard
24059 This box is top-aligned.
24065 This is an example text line.
24068 \begin_layout Description
24069 Middle This is an example text line.
24071 \begin_inset Box Boxed
24080 height_special "totalheight"
24083 \begin_layout Standard
24085 This box is middle-aligned.
24091 This is an example text line.
24094 \begin_layout Description
24095 Bottom This is an example text line.
24097 \begin_inset Box Boxed
24106 height_special "totalheight"
24109 \begin_layout Standard
24111 This box is bottom-aligned.
24117 This is an example text line.
24120 \begin_layout Standard
24121 The horizontal box alignment can be set via LyX's paragraph dialog when
24122 you set the box into its own paragraph.
24125 \begin_layout Standard
24126 \begin_inset VSpace bigskip
24129 When you have chosen an
24134 , the box content can be vertical aligned to:
24137 \begin_layout Description
24138 top This is an example text line.
24140 \begin_inset Box Boxed
24149 height_special "totalheight"
24152 \begin_layout Standard
24154 This box text is top-aligned.
24160 This is an example text line.
24163 \begin_layout Description
24164 middle This is an example text line.
24166 \begin_inset Box Boxed
24175 height_special "totalheight"
24178 \begin_layout Standard
24180 This box text is middle-aligned.
24186 This is an example text line.
24189 \begin_layout Description
24190 bottom This is an example text line.
24192 \begin_inset Box Boxed
24201 height_special "totalheight"
24204 \begin_layout Standard
24206 This box text is bottom-aligned.
24212 This is an example text line.
24215 \begin_layout Description
24216 stretch This is an example text line.
24218 \begin_inset Box Boxed
24227 height_special "totalheight"
24230 \begin_layout Standard
24235 \begin_layout Standard
24240 \begin_layout Standard
24248 This is an example text line.
24251 \begin_layout Standard
24252 To stretch the box content, it must consist of more than one paragraph.
24253 In the example above every text line is in an own paragraph.
24256 \begin_layout Standard
24257 \begin_inset VSpace bigskip
24260 To align the box content horizontally you can use LyX's paragraph dialog
24261 when you have chosen an
24269 \begin_layout Standard
24271 \begin_inset Box Boxed
24280 height_special "totalheight"
24283 \begin_layout Standard
24288 \begin_layout Standard
24293 \begin_layout Standard
24303 \begin_layout Standard
24304 If you haven't set an
24309 , you can align the box content horizontally in the box dialog.
24312 \begin_layout Standard
24314 \begin_inset Box Boxed
24323 height_special "totalheight"
24326 \begin_layout Standard
24328 This box text is horizontally stretched.
24336 \begin_layout Section
24338 \begin_inset LatexCommand label
24339 name "sec:Framed-Boxes"
24344 \begin_inset LatexCommand index
24345 name "Boxes ! Frames"
24352 \begin_layout Standard
24353 The frame style of the box can be specified in the box-dialog in the drop-down
24359 The following frame types are possible:
24362 \begin_layout Description
24363 Rectangular\InsetSpace ~
24364 box This draws a rectangle frame around the box.
24365 The frame line thickness has the size of
24373 \begin_inset Box Boxed
24382 height_special "totalheight"
24385 \begin_layout Standard
24395 \begin_layout Description
24398 thin This draws an oval frame around the box.
24399 The frame line thickness has the size 0.4\InsetSpace \thinspace{}
24402 \begin_inset Box ovalbox
24411 height_special "totalheight"
24414 \begin_layout Standard
24424 \begin_layout Description
24427 thick This draws an oval frame around the box.
24428 The frame line thickness has the size 0.8\InsetSpace \thinspace{}
24431 \begin_inset Box Ovalbox
24440 height_special "totalheight"
24443 \begin_layout Standard
24453 \begin_layout Description
24454 Shadow\InsetSpace ~
24455 box This draws a rectangle frame with a shadow around the box.
24456 The frame line thickness has the size of
24462 , the shadow has a width of 4\InsetSpace \thinspace{}
24465 \begin_inset Box Shadowbox
24474 height_special "totalheight"
24477 \begin_layout Standard
24487 \begin_layout Description
24488 Double\InsetSpace ~
24489 box This draws a double-line rectangle frame around the box.
24490 The line thickness of the inner frame is 0.75\InsetSpace \thinspace{}
24497 , the thickness of the outer frame is 1.5\InsetSpace \thinspace{}
24505 The distance between the lines is 1.5\InsetSpace \thinspace{}
24512 \InsetSpace \thinspace{}
24513 +\InsetSpace \thinspace{}
24514 0.5\InsetSpace \thinspace{}
24517 \begin_inset Box Doublebox
24526 height_special "totalheight"
24529 \begin_layout Standard
24539 \begin_layout Standard
24540 \begin_inset VSpace bigskip
24543 LyX's box label will change to the used frame style when you set a frame.
24544 To be able to use the different frame styles, the LaTeX-package
24549 \begin_inset LatexCommand index
24550 name "LaTeX-packages ! fancybox"
24557 \begin_layout Standard
24558 \begin_inset VSpace bigskip
24561 The default value for the size
24567 is 0.4\InsetSpace \thinspace{}
24569 It can be changed with the following command in ERT to e.\InsetSpace \thinspace{}
24571 2\InsetSpace \thinspace{}
24575 \begin_layout Standard
24585 \begin_layout Standard
24589 \begin_layout Standard
24601 \begin_inset Box Boxed
24610 height_special "totalheight"
24613 \begin_layout Standard
24615 Rectangular box with
24621 \InsetSpace \thinspace{}
24622 =\InsetSpace \thinspace{}
24623 2\InsetSpace \thinspace{}
24633 \begin_layout Standard
24647 \begin_layout Standard
24648 \begin_inset VSpace bigskip
24651 The space between the frame and the box content is for all frame styles
24652 by default 3\InsetSpace \thinspace{}
24654 You can change it by setting the length
24661 For example the command
24664 \begin_layout Standard
24674 \begin_layout Standard
24675 sets the value to 10\InsetSpace \thinspace{}
24676 pt, like for the following box:
24679 \begin_layout Standard
24683 \begin_layout Standard
24695 \begin_inset Box Boxed
24704 height_special "totalheight"
24707 \begin_layout Standard
24709 Rectangular box with
24715 \InsetSpace \thinspace{}
24716 =\InsetSpace \thinspace{}
24717 10\InsetSpace \thinspace{}
24727 \begin_layout Standard
24741 \begin_layout Standard
24742 \begin_inset VSpace bigskip
24745 The diameter of the round corners of the oval boxes can be set with the
24756 \begin_layout Standard
24764 \begin_layout Standard
24765 sets the diameter to 1\InsetSpace \thinspace{}
24770 \begin_layout Standard
24778 \begin_layout Standard
24779 sets the diameter to
24781 num\InsetSpace \thinspace{}
24782 ×\InsetSpace \thinspace{}
24783 minimum(width and heigth of box)
24795 \begin_layout Standard
24799 \begin_layout Standard
24809 \begin_inset Box Ovalbox
24818 height_special "totalheight"
24821 \begin_layout Standard
24829 \InsetSpace \thinspace{}
24830 =\InsetSpace \thinspace{}
24831 1.5\InsetSpace \thinspace{}
24841 \begin_layout Standard
24853 \begin_layout Standard
24854 \begin_inset VSpace bigskip
24857 The size of the shadow can be adjusted by changing the length
24864 It it set to 2\InsetSpace \thinspace{}
24865 pt for the following box by this command:
24868 \begin_layout Standard
24878 \begin_layout Standard
24882 \begin_layout Standard
24894 \begin_inset Box Shadowbox
24903 height_special "totalheight"
24906 \begin_layout Standard
24914 \InsetSpace \thinspace{}
24915 =\InsetSpace \thinspace{}
24916 2\InsetSpace \thinspace{}
24926 \begin_layout Standard
24940 \begin_layout Standard
24941 \begin_inset VSpace bigskip
24944 Changed lengths and widths are valid for all boxes following the commands
24948 \begin_layout Section
24950 \begin_inset LatexCommand label
24951 name "sec:Minipages"
24956 \begin_inset LatexCommand index
24957 name "Boxes ! Minipages"
24964 \begin_layout Standard
24965 Minipages are treated by LaTeX as pages within pages and can therefore for
24966 example have their own footnotes.
24969 \begin_layout Standard
24970 Minipages are useful when you write documents with different languages.
24973 \begin_layout Standard
24974 Below are two example minipages side by side.
24975 Their width is set to 45\InsetSpace \thinspace{}
24976 col% and they are separated by a horizontal fill,
24977 that was inserted via the menu
24979 Insert\SpecialChar \menuseparator
24980 Special\InsetSpace ~
24981 Formatting\SpecialChar \menuseparator
24982 Horizontal\InsetSpace ~
24988 \begin_layout Standard
24989 \begin_inset Box Frameless
24998 height_special "totalheight"
25001 \begin_layout Standard
25004 Dies ist ein deutscher Text.
25005 Dies ist ein deutscher Text.
25006 Dies ist ein deutscher Text.
25007 Dies ist ein deutscher Text.
25008 Dies ist ein deutscher Text.
25009 Dies ist ein deutscher Text.
25010 Dies ist ein deutscher Text.
25011 Dies ist ein deutscher Text.
25012 Dies ist ein deutscher Text.
25013 Dies ist ein deutscher Text.
25014 Dies ist ein deutscher Text.
25015 Dies ist ein deutscher Text.
25016 Dies ist ein deutscher Text
25020 \begin_layout Standard
25023 Dies ist eine deutsche Fußnote.
25029 Dies ist ein deutscher Text.
25030 Dies ist ein deutscher Text.
25038 \begin_inset Box Frameless
25047 height_special "totalheight"
25050 \begin_layout Standard
25051 This is an English Text.
25052 This is an English Text.
25053 This is an English Text.
25054 This is an English Text.
25055 This is an English Text.
25056 This is an English Text.
25057 This is an English Text.
25058 This is an English Text.
25059 This is an English Text.
25060 This is an English Text.
25061 This is an English Text.
25062 This is an English Text.
25063 This is an English Text.
25064 This is an English Text.
25065 This is an English Text.
25066 This is an English Text.
25070 \begin_layout Standard
25071 This is an English footnote.
25076 This is an English Text.
25085 \begin_layout Standard
25086 \begin_inset VSpace bigskip
25089 Another application for minipages are footnotes within tables.
25090 Due to a LaTeX restriction footnotes within tables doesn't appear at the
25091 bottom of the current page.
25092 But when you put the table with the footnote to a minipage, the footnote
25093 will appear at its bottom, numbered with Latin letters.
25094 The footnote number is reset to 1 in every minipage but not outside the
25098 \begin_layout Standard
25099 The footnote of this table doesn't appear:
25100 \begin_inset Tabular
25101 <lyxtabular version="3" rows="3" columns="4">
25103 <column alignment="center" valignment="top" leftline="true" width="0pt">
25104 <column alignment="center" valignment="top" leftline="true" width="0pt">
25105 <column alignment="center" valignment="top" leftline="true" width="0pt">
25106 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25107 <row topline="true">
25108 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25111 \begin_layout Standard
25117 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25120 \begin_layout Standard
25126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25129 \begin_layout Standard
25134 \begin_layout Standard
25135 This is a footnote within a table.
25145 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25148 \begin_layout Standard
25155 <row topline="true">
25156 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25159 \begin_layout Standard
25165 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25168 \begin_layout Standard
25174 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25177 \begin_layout Standard
25183 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25186 \begin_layout Standard
25193 <row topline="true" bottomline="true">
25194 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25197 \begin_layout Standard
25203 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25206 \begin_layout Standard
25212 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25215 \begin_layout Standard
25221 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25224 \begin_layout Standard
25238 \begin_layout Standard
25240 \begin_inset Box Frameless
25249 height_special "totalheight"
25252 \begin_layout Standard
25254 \begin_inset Tabular
25255 <lyxtabular version="3" rows="3" columns="4">
25257 <column alignment="center" valignment="top" leftline="true" width="0pt">
25258 <column alignment="center" valignment="top" leftline="true" width="0pt">
25259 <column alignment="center" valignment="top" leftline="true" width="0pt">
25260 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25261 <row topline="true">
25262 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25265 \begin_layout Standard
25271 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25274 \begin_layout Standard
25280 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25283 \begin_layout Standard
25288 \begin_layout Standard
25289 This is a footnote within a table.
25299 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25302 \begin_layout Standard
25309 <row topline="true">
25310 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25313 \begin_layout Standard
25319 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25322 \begin_layout Standard
25328 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25331 \begin_layout Standard
25337 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25340 \begin_layout Standard
25347 <row topline="true" bottomline="true">
25348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25351 \begin_layout Standard
25357 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25360 \begin_layout Standard
25366 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25369 \begin_layout Standard
25375 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25378 \begin_layout Standard
25397 \begin_layout Standard
25398 \begin_inset VSpace bigskip
25401 The document-wide paragraph settings are ignored within minipages.
25402 That means that there will be no space between paragraphs in minipages
25403 although you set it to e.\InsetSpace \thinspace{}
25409 in the document settings.
25412 \begin_layout Standard
25413 Minipages can also be used to set a background color for text parts, see
25414 section\InsetSpace ~
25416 \begin_inset LatexCommand ref
25417 reference "sub:Color-for-Paragraphs"
25424 \begin_layout Standard
25425 \begin_inset Note Greyedout
25428 \begin_layout Standard
25433 You cannot have floats or margin notes inside minipages but minipages can
25434 be used inside tables, floats, and other boxes.
25442 \begin_layout Section
25444 \begin_inset LatexCommand label
25445 name "sec:Parboxes"
25450 \begin_inset LatexCommand index
25451 name "Boxes ! Parboxes"
25458 \begin_layout Standard
25459 Parboxes are very similar to minipages with the difference that they cannot
25461 The main difference to minipages is that minipages are in contrary to parboxes
25462 no real boxes but LaTeX-environments.
25465 \begin_layout Standard
25467 \begin_inset Box Frameless
25476 height_special "totalheight"
25479 \begin_layout Standard
25480 This a text within a parbox.
25481 This a text within a parbox.
25484 \begin_layout Standard
25485 This footnote won't appear:
25489 \begin_layout Standard
25490 This footnote is inside a parbox and will therefore not appear.
25503 \begin_layout Section
25504 Boxes for Words and Characters
25505 \begin_inset LatexCommand index
25506 name "Boxes ! for Characters"
25513 \begin_layout Subsection
25514 Prevent Hyphenation
25515 \begin_inset LatexCommand label
25516 name "sec:Prevent-Hyphenation"
25521 \begin_inset LatexCommand index
25522 name "Boxes ! to Prevent Hyphenation"
25529 \begin_layout Standard
25530 You can use a special kind of boxes to prevent words or text to be hyphenated.
25533 e is an example text:
25536 \begin_layout Standard
25537 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25543 \begin_layout Standard
25544 To prevent the hyphenation of the word
25545 \begin_inset Quotes eld
25549 \begin_inset Quotes erd
25555 \begin_layout Standard
25563 \begin_layout Standard
25564 in ERT before the word.
25565 Behind the word insert a closing brace
25566 \begin_inset Quotes eld
25574 \begin_inset Quotes erd
25581 \begin_layout Standard
25593 \begin_layout Standard
25594 This is the result:
25597 \begin_layout Standard
25598 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25604 \begin_layout Standard
25617 \begin_layout Standard
25627 \begin_layout Standard
25628 Of course the word now protrudes over the side margin.
25629 To avoid this, add via the menu
25631 Insert\SpecialChar \menuseparator
25632 Special\InsetSpace ~
25633 Formatting\SpecialChar \menuseparator
25641 ) a line break before the word:
25644 \begin_layout Standard
25645 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25653 \begin_layout Standard
25666 \begin_layout Standard
25676 \begin_layout Subsection
25678 \begin_inset LatexCommand label
25679 name "sub:Vertical-Alignment"
25684 \begin_inset LatexCommand index
25685 name "Boxes ! for Vertical Alignment"
25690 \begin_inset LatexCommand index
25691 name "Boxes ! Raiseboxes"
25698 \begin_layout Standard
25699 With the help of the command
25705 you can align words, characters or other boxes vertically to the surrounding
25713 is used with the following scheme:
25716 \begin_layout Standard
25721 raisebox{lift}[height][depth]{box content}
25724 \begin_layout Standard
25725 The lift can be a positive value to raise the box or a negative value to
25729 \begin_layout Standard
25730 To align for example the word
25731 \begin_inset Quotes eld
25735 \begin_inset Quotes erd
25738 so that the bottom of the
25739 \begin_inset Quotes eld
25743 \begin_inset Quotes erd
25747 \begin_inset Quotes eld
25751 \begin_inset Quotes erd
25754 is at the baseline, insert the command
25757 \begin_layout Standard
25767 \begin_layout Standard
25768 in ERT before the word.
25769 Behind the word insert a closing brace
25770 \begin_inset Quotes eld
25778 \begin_inset Quotes erd
25783 This is the result:
25786 \begin_layout Standard
25787 This is a text line with the word
25791 \begin_layout Standard
25803 \begin_inset Quotes eld
25807 \begin_inset Quotes erd
25814 \begin_layout Standard
25824 \begin_layout Standard
25825 \begin_inset VSpace bigskip
25828 When you raise or lower characters in a line, the line distance will be
25832 \begin_layout Standard
25833 This is a text line with the word
25837 \begin_layout Standard
25849 \begin_inset Quotes eld
25853 \begin_inset Quotes erd
25860 \begin_layout Standard
25869 This is a text line with the word
25873 \begin_layout Standard
25883 \begin_inset Quotes eld
25887 \begin_inset Quotes erd
25894 \begin_layout Standard
25904 \begin_layout Standard
25905 If you want to prevent this for a certain reason, set the box height to
25910 \begin_layout Standard
25920 \begin_layout Standard
25921 This is a text line with the word
25925 \begin_layout Standard
25937 \begin_inset Quotes eld
25941 \begin_inset Quotes erd
25948 \begin_layout Standard
25957 This is a text line with the word
25961 \begin_layout Standard
25965 raisebox{0.5cm}[0pt]{
25971 \begin_inset Quotes eld
25975 \begin_inset Quotes erd
25982 \begin_layout Standard
25992 \begin_layout Section
25994 \begin_inset LatexCommand label
25995 name "sec:Colored-Boxes"
26000 \begin_inset LatexCommand index
26001 name "Boxes ! Color"
26008 \begin_layout Subsection
26010 \begin_inset LatexCommand index
26011 name "Color ! for Text"
26018 \begin_layout Standard
26019 To color the background of text the text must be put into a so called colorbox.
26020 This requires that the LaTeX-package
26025 \begin_inset LatexCommand index
26026 name "LaTeX-packages ! color"
26030 is loaded in the document preamble with the command
26033 \begin_layout Standard
26038 @ifundef\SpecialChar \textcompwordmark{}
26045 \begin_layout Standard
26056 usepackage{color}}{}
26059 \begin_layout Standard
26064 will be loaded automatically by LyX when you color text
26068 \begin_layout Standard
26069 To avoid that it is loaded twice the command
26073 @ifundef\SpecialChar \textcompwordmark{}
26084 \begin_layout Standard
26085 \begin_inset VSpace medskip
26088 Colorboxes are created with the command
26095 This will be used with the following scheme:
26098 \begin_layout Standard
26103 colorbox{color}{box content}
26106 \begin_layout Standard
26107 The box content can also be a box and colorboxes can also be within other
26111 \begin_layout Standard
26112 The following colors are predefined:
26151 You can also define your own color as described in section\InsetSpace ~
26153 \begin_inset LatexCommand ref
26154 reference "sec:Colored-Tables"
26161 \begin_layout Standard
26162 To have e.\InsetSpace \thinspace{}
26164 a red background for a word, insert the command
26167 \begin_layout Standard
26175 \begin_layout Standard
26176 before the word in ERT.
26177 Behind the word insert a closing brace
26178 \begin_inset Quotes eld
26186 \begin_inset Quotes erd
26191 This is the result:
26194 \begin_layout Standard
26195 This is a line where the word
26199 \begin_layout Standard
26209 \begin_inset Quotes eld
26213 \begin_inset Quotes erd
26220 \begin_layout Standard
26227 has a red background.
26230 \begin_layout Standard
26231 \begin_inset VSpace bigskip
26234 If you would have the box frame in a different color, you can use the command
26241 with the following scheme:
26244 \begin_layout Standard
26249 fcolorbox{frame color}{box color}{box content}
26252 \begin_layout Standard
26266 The frame thickness and the space between the frame and the box content
26267 can be adjusted with the lengths
26279 , respectively, as described in section\InsetSpace ~
26281 \begin_inset LatexCommand ref
26282 reference "sec:Framed-Boxes"
26289 \begin_layout Standard
26290 For the following example the command
26293 \begin_layout Standard
26298 fcolorbox{cyan}{magenta}{
26301 \begin_layout Standard
26305 \begin_layout Standard
26306 Here is an example where the frame line thickness was set to 1\InsetSpace \thinspace{}
26313 \begin_layout Standard
26328 \begin_layout Standard
26332 fcolorbox{cyan}{magenta}{
26337 This is text within a colored, framed box.
26341 \begin_layout Standard
26351 \begin_layout Standard
26352 \begin_inset VSpace bigskip
26355 Of course you can also have colored text inside a colorbox:
26361 \begin_layout Standard
26365 fcolorbox{cyan}{magenta}{
26372 This is colored text within a colored, framed box.
26378 \begin_layout Standard
26389 \begin_layout Standard
26403 \begin_layout Standard
26406 \begin_inset VSpace medskip
26412 \begin_layout Standard
26413 \begin_inset Note Greyedout
26416 \begin_layout Standard
26421 Text in colorboxes cannot have line breaks.
26422 To color multiple text lines or paragraphs, use a box inside a colorbox
26423 as described in the following.
26431 \begin_layout Subsection
26432 Color for Paragraphs
26433 \begin_inset LatexCommand label
26434 name "sub:Color-for-Paragraphs"
26439 \begin_inset LatexCommand index
26440 name "Color ! for Paragraphs"
26447 \begin_layout Standard
26448 To set the background color for more than one text line, put the text into
26450 Before the minipage insert the
26459 \begin_layout Standard
26467 \begin_layout Standard
26469 Behind the minipage insert a closing brace
26470 \begin_inset Quotes eld
26478 \begin_inset Quotes erd
26484 \begin_layout Standard
26488 \begin_layout Standard
26492 colorbox{lightgrey}{
26498 \begin_inset Box Frameless
26507 height_special "totalheight"
26510 \begin_layout Standard
26511 This is text with background color.
26512 This is text with background color.
26515 \begin_layout Standard
26516 \begin_inset VSpace defskip
26519 The text can have footnotes
26523 \begin_layout Standard
26524 Another example footnote
26529 and can include tables and figures.
26532 \begin_layout Standard
26534 \begin_inset Tabular
26535 <lyxtabular version="3" rows="3" columns="3">
26537 <column alignment="center" valignment="top" leftline="true" width="0">
26538 <column alignment="center" valignment="top" leftline="true" width="0">
26539 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
26540 <row topline="true">
26541 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26544 \begin_layout Standard
26550 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26553 \begin_layout Standard
26559 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26562 \begin_layout Standard
26569 <row topline="true">
26570 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26573 \begin_layout Standard
26579 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26582 \begin_layout Standard
26584 \begin_inset Quotes erd
26592 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26595 \begin_layout Standard
26602 <row topline="true" bottomline="true">
26603 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26606 \begin_layout Standard
26612 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26615 \begin_layout Standard
26621 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26624 \begin_layout Standard
26644 \begin_layout Standard
26654 \begin_layout Section
26655 URLs (Uniform Resource Locators)
26656 \begin_inset LatexCommand index
26664 \begin_layout Standard
26665 Links to web pages or email addresses can be inserted via the menu
26667 Insert\SpecialChar \menuseparator
26671 The appearing URL dialog has two fields; the
26679 field for the URL description, which will be typeset as plain text immediately
26683 \begin_layout Standard
26684 Here is an example URL:
26685 \begin_inset LatexCommand url
26686 name "LyX's homepage"
26687 target "http://www.lyx.org"
26694 \begin_layout Standard
26697 Generate\InsetSpace ~
26700 in the URL dialog has only an affect when you export your document to the
26702 \begin_inset Quotes eld
26710 \begin_inset Quotes erd
26716 \begin_layout Standard
26717 You cannot change the style of the link text.
26722 field will have the default text style of the document while the text of
26727 field will have the style
26728 \begin_inset Quotes eld
26736 \begin_inset Quotes erd
26742 \begin_layout Standard
26743 When you use the LaTeX-package
26748 \begin_inset LatexCommand index
26749 name "LaTeX-packages ! hyperref"
26753 to link cross-references in the output, URLs will automatically become
26754 clickable hyperlinks in DVI and PDF-output.
26757 \begin_layout Standard
26758 \begin_inset Note Greyedout
26761 \begin_layout Standard
26766 When you use the following characters: "%", "#", "^", you have to write
26767 them with a preceding backslash, e.\InsetSpace \thinspace{}
26770 \begin_inset Quotes eld
26776 \begin_inset Quotes erd
26780 URLs must not end with a backslash.
26788 \begin_layout Standard
26789 \begin_inset VSpace bigskip
26792 To create real hyperlinks without the force to write the link location to
26793 the text, you can use the command
26796 \begin_layout Standard
26801 href{link location}{link text}
26804 \begin_layout Standard
26806 To get for example a link to LyX's web page, write the command
26809 \begin_layout Standard
26814 href{http://www.lyx.org}{
26817 \begin_layout Standard
26819 Insert after the command the link text
26820 \begin_inset Quotes eld
26824 \begin_inset Quotes erd
26827 as normal text followed by a closing brace
26828 \begin_inset Quotes eld
26836 \begin_inset Quotes erd
26840 This is the result:
26844 \begin_layout Standard
26848 href{http://www.lyx.org}{
26857 \begin_layout Standard
26867 \begin_layout Standard
26868 To link to email addresses, add the prefix
26869 \begin_inset Quotes eld
26877 \begin_inset Quotes erd
26880 to the link location:
26886 \begin_layout Standard
26890 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's documentation}{
26895 lyx-docs mailing list
26899 \begin_layout Standard
26909 \begin_layout Standard
26916 instead of LyX's URL box has the advantage that you can specify the text
26917 style of the link text like for all other text parts.
26918 You can therefore set hyphenation points and forced linebreaks to have
26919 long link text broken at the page margin.
26920 You are furthermore able to change the text style for all URLs in your
26921 document with an option in
26925 's load command and the restrictions mentioned above doesn't apply for
26934 \begin_layout Chapter
26936 \begin_inset LatexCommand index
26937 name "External Stuff"
26944 \begin_layout Standard
26947 Insert\SpecialChar \menuseparator
26950 you can insert external material to your document.
26954 \begin_layout Description
26956 Document Another LyX document; its content is directly inserted to your
26960 \begin_layout Description
26962 Text A text document; every of its text lines is inserted to your document
26966 \begin_layout Description
26970 Lines A text document; its text lines are inserted as they
26972 Empty text lines creates a new paragraph in your document.
26975 \begin_layout Description
26976 External\InsetSpace ~
26977 Material Files in various formats.
26980 \begin_layout Description
26982 Document LyX or LaTeX-documents.
26985 \begin_layout Section
26987 \begin_inset LatexCommand index
26988 name "External Stuff ! External Material"
26995 \begin_layout Standard
26996 The external material feature allows you to insert files to your document
26997 without converting them previously to a format that can be read by the
26998 document output format because LyX takes care of needed conversions.
26999 This is similar to images that can be inserted in various image formats
27003 \begin_layout Standard
27004 External material can be inserted via the
27008 dialog that is accessible with the menu
27010 Insert\SpecialChar \menuseparator
27011 File\SpecialChar \menuseparator
27012 External\InsetSpace ~
27016 Currently the following file types (
27023 \begin_layout Description
27024 ChessDiagram This template supports chess position diagrams made with the
27029 \begin_layout Standard
27033 href{http://en.wikipedia.org/wiki/XBoard}{
27046 \begin_layout Standard
27056 \begin_layout Description
27057 Date This inserts the date in the form
27062 This is a date inserted as external material:
27063 \begin_inset External
27071 The date is not shown within LyX, only in the output.
27072 There are two other methods of inserting a date, via menu
27074 Insert\SpecialChar \menuseparator
27077 and with the LaTeX command
27084 The different methods are compared in Table\InsetSpace ~
27086 \begin_inset LatexCommand ref
27087 reference "tab:Comparison-of-the"
27094 \begin_layout Description
27095 LilyPond This template is used for music notation typeset with the program
27099 \begin_layout Standard
27112 \begin_layout Standard
27116 href{http://en.wikipedia.org/wiki/LilyPond}{
27129 \begin_layout Standard
27137 \begin_inset Note Note
27140 \begin_layout Standard
27147 breaks the line while the remaining text in the line is stretched to the
27156 \begin_layout Description
27157 RasterImage This can be used for bitmap images.
27158 Nearly all popular image formats are supported.
27159 The image can be treated in the
27163 dialog like the images that are usually included via the
27167 dialog as described in section\InsetSpace ~
27169 \begin_inset LatexCommand ref
27170 reference "sec:Graphics-Dialog"
27175 The difference is that only raster images are allowed, that means that
27176 PDF and EPS-images are not supported.
27179 \begin_layout Description
27180 XFig This template supports images created with the program
27184 \begin_layout Standard
27188 href{http://en.wikipedia.org/wiki/Xfig}{
27201 \begin_layout Standard
27211 \begin_layout Standard
27212 \begin_inset Float table
27218 \begin_layout Standard
27219 \begin_inset Caption
27221 \begin_layout Standard
27222 \begin_inset LatexCommand label
27223 name "tab:Comparison-of-the"
27227 Comparison of the date input methods.
27235 \begin_layout Standard
27237 \begin_inset Tabular
27238 <lyxtabular version="3" rows="4" columns="4">
27240 <column alignment="center" valignment="top" leftline="true" width="0">
27241 <column alignment="center" valignment="top" leftline="true" width="0">
27242 <column alignment="center" valignment="top" leftline="true" width="0">
27243 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27244 <row topline="true">
27245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27248 \begin_layout Standard
27254 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27257 \begin_layout Standard
27260 External Material\SpecialChar \menuseparator
27266 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27269 \begin_layout Standard
27272 Insert\SpecialChar \menuseparator
27278 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27281 \begin_layout Standard
27292 <row topline="true">
27293 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27296 \begin_layout Standard
27302 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27305 \begin_layout Standard
27311 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27314 \begin_layout Standard
27320 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27323 \begin_layout Standard
27330 <row topline="true">
27331 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27334 \begin_layout Standard
27340 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27343 \begin_layout Standard
27349 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27352 \begin_layout Standard
27358 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27361 \begin_layout Standard
27368 <row topline="true" bottomline="true">
27369 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27372 \begin_layout Standard
27378 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27381 \begin_layout Standard
27387 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27390 \begin_layout Standard
27396 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27399 \begin_layout Standard
27418 \begin_layout Standard
27419 When you use the option
27431 dialog, only the path to the inserted file is shown in the output.
27434 material is displayed in LyX either as box like this:
27435 \begin_inset Graphics
27436 filename clipart/ExternalMaterialQt4.png
27441 or as image, depending on the setting in the
27453 \begin_layout Standard
27460 manual explains how you can define your own templates.
27463 \begin_layout Section
27465 \begin_inset LatexCommand label
27466 name "sec:Child-Documents"
27471 \begin_inset LatexCommand index
27472 name "External Stuff ! Child Documents"
27477 \begin_inset LatexCommand index
27478 name "Files ! Include"
27485 \begin_layout Standard
27486 Child documents are used when you have a long document consisting of several
27487 larger parts or sections.
27488 For maintenance it is often useful and sometimes even required to split
27489 the document in several files that can be revised separately.
27490 The different documents are then the so called child documents and a master
27491 document connects them to print the full document or parts of it.
27494 \begin_layout Standard
27495 Included documents are displayed in LyX as a box like this:
27496 \begin_inset Graphics
27497 filename clipart/ChildDocumentQt4.png
27502 To include child documents to a master document use the menu
27504 Insert\SpecialChar \menuseparator
27505 File\SpecialChar \menuseparator
27510 A dialog pops up where you can choose between three include methods:
27513 \begin_layout Description
27514 Include You can include LyX and LaTeX-documents.
27523 dialog, the included documents will be opened in LyX in a new file tab
27524 so that you can modify it.
27529 \begin_layout Standard
27530 Here is a child document inserted using
27535 \begin_inset Include \include{DummyDocument1.lyx}
27543 \begin_layout Standard
27544 The section numbering includes the sections of the included files in the
27545 order they are inserted in the master document.
27546 The included example document has for example a subsection that is numbered
27547 as subsection of this section.
27548 Labels of included documents can be referenced: Subsection\InsetSpace ~
27550 \begin_inset LatexCommand ref
27551 reference "sub:External-Subsection-1"
27558 \begin_layout Standard
27559 The preamble of the child document is ignored, only the preamble of the
27560 master document is used.
27561 Included documents are inserted starting on a new page and end with a pagebreak.
27564 \begin_layout Standard
27565 With the LaTeX-command
27571 you can specify which included child documents are processed when the output
27573 This is useful when you are perhaps only working on a certain chapter of
27574 your large document as this saves compiling time.
27581 is inserted to the master document preamble.
27582 It takes a comma-separated list of the filenames as argument, e.g.
27585 \begin_layout Standard
27590 includeonly{chapter1,chapter5}
27593 \begin_layout Standard
27594 will only process the included files named
27595 \begin_inset Quotes eld
27599 \begin_inset Quotes erd
27603 \begin_inset Quotes eld
27607 \begin_inset Quotes erd
27611 \begin_inset Quotes eld
27615 \begin_inset Quotes erd
27621 \begin_layout Standard
27622 \begin_inset Note Greyedout
27625 \begin_layout Standard
27630 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
27631 w the document in case that the child document uses another document class
27632 than the master document as this will lead to unexpected outputs.
27640 \begin_layout Description
27641 Input This method is very similar to the Include method.
27642 The differences are:
27646 \begin_layout Itemize
27647 Input files don't start with a new page and don't end with a pagebreak.
27650 \begin_layout Itemize
27651 Input files can be previewed in LyX when
27653 Instant\InsetSpace ~
27656 is enabled in LyX's preferences under
27660 feel\SpecialChar \menuseparator
27666 \begin_layout Itemize
27677 \begin_layout Standard
27678 Here is a child document inserted using
27683 \begin_inset Include \input{DummyDocument2.lyx}
27691 \begin_layout Description
27692 Verbatim With this method every text file can be included.
27693 The file is shown in the output with its source code, no command used in
27694 the text is invoked.
27695 You can use the option
27697 Mark spaces in output
27699 that displays the character
27700 \begin_inset Quotes eld
27707 \begin_layout Standard
27717 \begin_inset Quotes erd
27720 for every space character in the source code.
27721 The difference to the method via the menu
27723 Insert\SpecialChar \menuseparator
27724 File\SpecialChar \menuseparator
27728 is that the document content is not shown in LyX.
27731 \begin_layout Standard
27732 Here is a child document inserted as Verbatim:
27733 \begin_inset Include \verbatiminput{DummyTextDocument.txt}
27739 \begin_inset VSpace bigskip
27742 Here is a child document inserted as Verbatim using the
27744 Mark spaces in output
27747 \begin_inset Include \verbatiminput*{DummyTextDocument.txt}
27755 \begin_layout Standard
27756 \begin_inset VSpace bigskip
27762 \begin_layout Standard
27763 \begin_inset Note Greyedout
27766 \begin_layout Standard
27771 As you can see in the examples above, the text of the documents included
27772 as verbatim is not broken at the end of the document lines.
27780 \begin_layout Description
27781 Listings This type is described in chapter\InsetSpace ~
27783 \begin_inset LatexCommand ref
27784 reference "cha:Program-Code-Listings"
27791 \begin_layout Standard
27792 \begin_inset Note Greyedout
27795 \begin_layout Standard
27800 Including the same document twice in a document using different methods
27801 could cause LaTeX-problems.
27809 \begin_layout Chapter
27810 Program Code Listings
27811 \begin_inset LatexCommand label
27812 name "cha:Program-Code-Listings"
27817 \begin_inset LatexCommand index
27823 \begin_inset LatexCommand index
27824 name "Program Code"
27829 \begin_inset LatexCommand index
27830 name "Floats ! Listings"
27837 \begin_layout Standard
27838 To include and typeset program code you can use the
27842 inset that can be inserted via the menu
27844 Insert\SpecialChar \menuseparator
27853 \begin_inset LatexCommand index
27854 name "LaTeX-packages ! listings"
27858 provides a powerful and flexible way to insert program source code to your
27862 \begin_layout Standard
27863 When right-clicking on a listings inset a dialog pops up where you can set
27864 the listings format.
27867 \begin_layout Standard
27868 By default, a listing starts a new paragraph in the output.
27869 The placement option
27871 Inline\InsetSpace ~
27874 prints the listing inline like this:
27875 \begin_inset listings
27876 lstparams "language=C++"
27880 \begin_layout Standard
27894 creates a listings float where you can specify the placement options
27895 \begin_inset Quotes eld
27903 \begin_inset Quotes erd
27907 \begin_inset Quotes eld
27915 \begin_inset Quotes erd
27919 \begin_inset Quotes eld
27927 \begin_inset Quotes erd
27931 \begin_inset Quotes eld
27939 \begin_inset Quotes erd
27942 corresponding to the float placement options described in section\InsetSpace ~
27944 \begin_inset LatexCommand ref
27945 reference "sec:Float-Placement"
27950 The placement options can be mixed and are inserted without any separation,
27951 e.\InsetSpace \thinspace{}
27954 \begin_inset Quotes eld
27962 \begin_inset Quotes erd
27967 \begin_inset Quotes eld
27971 \begin_inset Quotes erd
27974 has sometimes no effect, but you don't need to use the
27978 option in this case as also non-float listings can have captions and be
27982 \begin_layout Standard
27983 You can add captions to listings with the menu
27985 Insert\SpecialChar \menuseparator
27989 Listings can be referenced like floats: Listing\InsetSpace ~
27991 \begin_inset LatexCommand ref
27992 reference "lst:Example-Listing"
27999 \begin_layout Standard
28000 \begin_inset listings
28001 lstparams "language=Python"
28005 \begin_layout Standard
28008 \begin_inset Caption
28010 \begin_layout Standard
28011 \begin_inset LatexCommand label
28012 name "lst:Example-Listing"
28016 Example Listing float
28021 # Example listing float
28024 \begin_layout Standard
28030 \begin_layout Standard
28031 'this is a python function'
28034 \begin_layout Standard
28043 \begin_layout Standard
28044 When you have set a programming language in the listings dialog, the keywords
28045 of this language will be recognized and specially typeset in the output.
28046 In the example listings the Python keyword
28047 \begin_inset Quotes eld
28051 \begin_inset Quotes erd
28054 is recognized and printed bold in the output.
28057 \begin_layout Standard
28063 of the listings dialog you can specify the line numbering style.
28064 You can insert a number to specify which lines are numbered to the field
28070 When you insert e.g.
28072 \begin_inset Quotes eld
28076 \begin_inset Quotes erd
28079 , only every 3rd line will be numbered.
28082 \begin_layout Standard
28083 You can furthermore specify a range of lines, only these will then appear
28087 Extended\InsetSpace ~
28090 should be used when you use national characters like the German umlauts
28093 Here is an example listing with left line numbering, step
28095 \begin_inset Quotes eld
28099 \begin_inset Quotes erd
28103 \begin_inset Quotes eld
28107 \begin_inset Quotes erd
28111 \begin_inset Quotes eld
28114 Extended\InsetSpace ~
28116 \begin_inset Quotes erd
28120 \begin_inset Quotes eld
28126 \begin_inset Quotes erd
28129 , range lines 3\InsetSpace \thinspace{}
28130 -\InsetSpace \thinspace{}
28134 \begin_layout Standard
28135 \begin_inset listings
28136 lstparams "language=Python,numbers=left,firstline=3,lastline=8,stepnumber=3,showspaces=true,extendedchars=true"
28140 \begin_layout Standard
28144 \begin_layout Standard
28145 'this is a python function'
28148 \begin_layout Standard
28152 \begin_layout Standard
28156 \begin_layout Standard
28157 'This is a German word: Tschüß'
28160 \begin_layout Standard
28164 \begin_layout Standard
28168 \begin_layout Standard
28169 'this is a python function'
28172 \begin_layout Standard
28181 \begin_layout Standard
28182 \begin_inset Note Greyedout
28185 \begin_layout Standard
28190 The line numbering is shifted by a line by every previous listing.
28191 That's the reason why the lines 2 and 5 are numbered in the above listing
28192 and not the lines 3 and 6.
28200 \begin_layout Standard
28201 \begin_inset VSpace bigskip
28207 \begin_layout Standard
28208 It is also possible to print lines from a file as listing.
28209 To do this, use the menu
28211 Insert\SpecialChar \menuseparator
28212 File\SpecialChar \menuseparator
28215 and choose the type
28223 \begin_layout Standard
28224 The other child document types are described in section\InsetSpace ~
28226 \begin_inset LatexCommand ref
28227 reference "sec:Child-Documents"
28236 In the child document dialog you can specify the listing parameters in
28238 To show a list of all available parameters, type in a question mark
28239 \begin_inset Quotes eld
28243 \begin_inset Quotes erd
28249 \begin_layout Standard
28250 To reference child document listings, write a label text into the corresponding
28251 field of the child document dialog.
28252 The label can then be referenced using the menu
28254 Insert\SpecialChar \menuseparator
28260 \begin_layout Standard
28261 Listing\InsetSpace ~
28263 \begin_inset LatexCommand ref
28264 reference "lst:file-listing"
28268 is an example for a listing of a file; there the lines 10\InsetSpace \thinspace{}
28269 -\InsetSpace \thinspace{}
28274 \begin_layout Standard
28275 \begin_inset Include \lstinputlisting{EmbeddedObjects.lyx}[firstline=10,lastline=15,language=TeX,breaklines=true,caption={Lines 10 - 15 of this LyX file},label={lst:file-listing}]
28283 \begin_layout Standard
28284 \begin_inset VSpace bigskip
28290 \begin_layout Standard
28291 Global listings settings can be set in the
28293 Document\SpecialChar \menuseparator
28294 Settings\SpecialChar \menuseparator
28298 To get there a list of available options, type in a question mark
28299 \begin_inset Quotes eld
28303 \begin_inset Quotes erd
28308 Listings\InsetSpace ~
28314 \begin_layout Standard
28315 For more information about the
28319 package, we refer to its documentation
28320 \begin_inset LatexCommand cite
28328 \begin_layout Standard
28334 \begin_layout Chapter
28340 \begin_layout Standard
28353 \begin_layout Standard
28361 \begin_inset LatexCommand index
28367 \begin_inset LatexCommand label
28368 name "cha:Units-available-in"
28373 \begin_inset Note Note
28376 \begin_layout Standard
28379 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
28380 are displayed wrongly in PDF-bookmarks.
28381 For more information about this, have a look at
28382 \begin_inset LatexCommand cite
28395 \begin_layout Standard
28396 To understand the units described in this documentation, Table\InsetSpace ~
28398 \begin_inset LatexCommand ref
28399 reference "tab:Units"
28403 explains all units available in LyX.
28406 \begin_layout Standard
28407 \begin_inset Float table
28413 \begin_layout Standard
28414 \begin_inset Caption
28416 \begin_layout Standard
28417 \begin_inset LatexCommand label
28430 \begin_layout Standard
28431 \begin_inset VSpace medskip
28437 \begin_layout Standard
28439 \begin_inset Tabular
28440 <lyxtabular version="3" rows="20" columns="2">
28442 <column alignment="center" valignment="top" leftline="true" width="0">
28443 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
28444 <row topline="true" bottomline="true">
28445 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28448 \begin_layout Standard
28454 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28457 \begin_layout Standard
28464 <row topline="true">
28465 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28468 \begin_layout Standard
28474 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28477 \begin_layout Standard
28484 <row topline="true">
28485 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28488 \begin_layout Standard
28494 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28497 \begin_layout Standard
28504 <row topline="true">
28505 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28508 \begin_layout Standard
28514 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28517 \begin_layout Standard
28524 <row topline="true">
28525 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28528 \begin_layout Standard
28534 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28537 \begin_layout Standard
28538 point (72.27\InsetSpace \thinspace{}
28539 pt = 1\InsetSpace \thinspace{}
28546 <row topline="true">
28547 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28550 \begin_layout Standard
28556 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28559 \begin_layout Standard
28560 pica (1\InsetSpace \thinspace{}
28561 pc = 12\InsetSpace \thinspace{}
28568 <row topline="true">
28569 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28572 \begin_layout Standard
28578 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28581 \begin_layout Standard
28582 scaled point (65536\InsetSpace \thinspace{}
28583 sp = 1\InsetSpace \thinspace{}
28590 <row topline="true">
28591 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28594 \begin_layout Standard
28600 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28603 \begin_layout Standard
28604 big point (72\InsetSpace \thinspace{}
28605 bp = 1\InsetSpace \thinspace{}
28612 <row topline="true">
28613 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28616 \begin_layout Standard
28622 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28625 \begin_layout Standard
28626 didot (72\InsetSpace \thinspace{}
28628 \begin_inset Formula $\approx$
28631 37.6\InsetSpace \thinspace{}
28638 <row topline="true">
28639 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28642 \begin_layout Standard
28648 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28651 \begin_layout Standard
28652 cicero (1\InsetSpace \thinspace{}
28653 cc = 12\InsetSpace \thinspace{}
28660 <row topline="true">
28661 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28664 \begin_layout Standard
28670 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28673 \begin_layout Standard
28674 % of original image width
28680 <row topline="true">
28681 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28684 \begin_layout Standard
28690 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28693 \begin_layout Standard
28700 <row topline="true">
28701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28704 \begin_layout Standard
28710 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28713 \begin_layout Standard
28720 <row topline="true">
28721 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28724 \begin_layout Standard
28730 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28733 \begin_layout Standard
28740 <row topline="true">
28741 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28744 \begin_layout Standard
28750 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28753 \begin_layout Standard
28760 <row topline="true">
28761 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28764 \begin_layout Standard
28770 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28773 \begin_layout Standard
28780 <row topline="true">
28781 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28784 \begin_layout Standard
28790 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28793 \begin_layout Standard
28800 <row topline="true">
28801 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28804 \begin_layout Standard
28810 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28813 \begin_layout Standard
28824 <row topline="true">
28825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28828 \begin_layout Standard
28834 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28837 \begin_layout Standard
28848 <row topline="true" bottomline="true">
28849 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28852 \begin_layout Standard
28858 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28861 \begin_layout Standard
28862 math unit (1\InsetSpace \thinspace{}
28863 mu = 1/18\InsetSpace \thinspace{}
28882 \begin_layout Chapter
28883 Output File Formats with Graphics
28884 \begin_inset LatexCommand label
28885 name "cha:Output-File-Formats"
28892 \begin_layout Section
28894 \begin_inset LatexCommand index
28895 name "File Formats ! DVI"
28900 \begin_inset LatexCommand index
28901 name "DVI|see{File Formats}"
28908 \begin_layout Standard
28909 This file type has the extension
28910 \begin_inset Quotes eld
28918 \begin_inset Quotes erd
28923 \begin_inset Quotes eld
28927 \begin_inset Quotes erd
28930 (DVI), because it is completely portable; you can move them from one machine
28931 to another without needing to do any sort of conversion.
28932 At the time when this file-format was developed, this was no matter of
28934 DVIs are used for quick previews and as pre-stage for other output formats,
28938 \begin_layout Standard
28939 \begin_inset Note Greyedout
28942 \begin_layout Standard
28947 DVI-files doesn't contain images, they will only be a linked.
28952 So don't forget this, if you move your
28956 file to another computer.
28957 This property can also slow down your computer when you view the DVI.
28958 Because the DVI-viewer has to convert the image in the background to make
28959 it visible when you scroll in the DVI.
28960 So we recommend to use PDF for files with many images.
28963 \begin_layout Standard
28964 You can export your document to DVI by using the menu
28966 File\SpecialChar \menuseparator
28967 Export\SpecialChar \menuseparator
28971 You can view your document as DVI via the
28975 menu or by using the toolbar button
28976 \begin_inset Graphics
28977 filename ../images/buffer-view_dvi.xpm
28985 \begin_layout Section
28987 \begin_inset LatexCommand label
28988 name "sec:PostScript"
28993 \begin_inset LatexCommand index
28994 name "File Formats ! PostScript"
28999 \begin_inset LatexCommand index
29000 name "PostScript|see{File Formats}"
29007 \begin_layout Standard
29008 This file type has the extension
29009 \begin_inset Quotes eld
29017 \begin_inset Quotes erd
29021 PostScript was developed by the company
29025 as printer language.
29026 The file contains therefore commands that the printer uses to print the
29028 PostScript can be seen as
29029 \begin_inset Quotes eld
29032 programming language
29033 \begin_inset Quotes erd
29036 ; you can calculate with it and draw diagrams and images
29040 \begin_layout Standard
29041 If you are interested to learn more about this, have a look at the LaTeX-package
29047 \begin_inset LatexCommand cite
29058 Due to this ability, the files are often bigger than PDFs.
29061 \begin_layout Standard
29062 PostScript can only contain images in the format
29063 \begin_inset Quotes eld
29066 Encapsulated PostScript
29067 \begin_inset Quotes erd
29070 (EPS, file extension
29071 \begin_inset Quotes eld
29079 \begin_inset Quotes erd
29083 As LyX allows you to use any known image format in your document, it has
29084 to convert images in the background to EPS.
29085 If you have e.g 50 images in your document, LyX has to do 50 conversions
29086 whenever you view or export your document.
29087 This will slow down your work flow with LyX drastically.
29088 So if you plan to use PostScript, you can insert your images directly as
29089 EPS to avoid this problem.
29092 \begin_layout Standard
29093 You can export your document to PostScript using the menu
29095 File\SpecialChar \menuseparator
29096 Export\SpecialChar \menuseparator
29100 You can view your document as PostScript via the
29104 menu or by using the toolbar button
29105 \begin_inset Graphics
29106 filename ../images/buffer-view_ps.xpm
29114 \begin_layout Section
29116 \begin_inset LatexCommand label
29122 \begin_inset LatexCommand index
29123 name "File Formats ! PDF"
29128 \begin_inset LatexCommand index
29136 \begin_layout Standard
29137 This file type has the extension
29138 \begin_inset Quotes eld
29146 \begin_inset Quotes erd
29151 \begin_inset Quotes eld
29154 Portable Document Format
29155 \begin_inset Quotes erd
29158 (PDF) is developed by
29162 as derivative from PostScript.
29163 It is more compressed and it uses much less commands than PostScript.
29165 \begin_inset Quotes eld
29169 \begin_inset Quotes erd
29172 implies, it can be processed at any computer system and the printed output
29173 looks exactly the same.
29176 \begin_layout Standard
29177 PDF can contain images in its own PDF format, in the format
29178 \begin_inset Quotes eld
29181 Joint Photographic Experts Group
29182 \begin_inset Quotes erd
29185 (JPG, file extension
29186 \begin_inset Quotes eld
29194 \begin_inset Quotes erd
29198 \begin_inset Quotes eld
29206 \begin_inset Quotes erd
29209 ), and in the format
29210 \begin_inset Quotes eld
29213 Portable Network Graphics
29214 \begin_inset Quotes erd
29217 (PNG, file extension
29218 \begin_inset Quotes eld
29226 \begin_inset Quotes erd
29230 You can although use any other image format, because LyX converts them
29231 in the background to one of these formats.
29232 But as described in the section about PostScript, the image conversion
29233 will slow down your work flow.
29234 So it is recommended to use images in one of the three mentioned formats.
29237 \begin_layout Standard
29238 You can export your document to PDF via the menu
29240 File\SpecialChar \menuseparator
29243 in three different ways:
29246 \begin_layout Description
29247 PDF This uses the program
29251 that creates a PDF from a PostScript-version of your file.
29252 The PostScript-version is produced by the program
29256 which uses a DVI-version as intermediate step.
29257 So this export variant consist of three conversions.
29260 \begin_layout Description
29262 (dvipdfm) This uses the program
29266 that converts your file in the background to DVI and in a second step to
29270 \begin_layout Description
29272 (pdflatex) This uses the program
29276 that converts your file directly to PDF.
29279 \begin_layout Standard
29280 It is recommended to use
29289 supports all features of actual PDF-versions, is quick and works stable
29295 is not under development and therefore a bit outdated.
29298 \begin_layout Standard
29299 You can view your document as PDF via the
29303 menu or by using the toolbar button
29304 \begin_inset Graphics
29305 filename ../images/buffer-view_pdf2.xpm
29322 \begin_layout Chapter
29323 Explanation of Equation\InsetSpace ~
29325 \begin_inset LatexCommand eqref
29331 \begin_inset LatexCommand label
29332 name "cha:Explanation-of-Equation"
29339 \begin_layout Standard
29345 \begin_inset Formula $W_{\mathrm{tot\, n}}$
29348 can be calculated to
29351 \begin_layout Standard
29352 \begin_inset Formula \begin{equation}
29353 W_{\mathrm{tot}\, n}=n·(W_{g\, n}+2·\backslash\mbox{tabcolsep})+(n+1)·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}\end{equation}
29360 \begin_layout Standard
29362 \begin_inset Formula $W_{g\, n}$
29365 is the given width of all cells.
29372 is the LaTeX-length between the cell text and the cell border, its default
29373 value is 6\InsetSpace \thinspace{}
29381 is the thickness of the cell border line, the default is 0.4\InsetSpace \thinspace{}
29385 \begin_layout Standard
29386 Following equation\InsetSpace ~
29388 \begin_inset LatexCommand eqref
29389 reference "eq:Wtot_n"
29393 , the total width of a multicolumn
29394 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
29400 \begin_layout Standard
29401 \begin_inset Formula \begin{equation}
29402 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2·\backslash\mbox{tabcolsep}+2·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
29409 \begin_layout Standard
29410 By setting equation\InsetSpace ~
29412 \begin_inset LatexCommand eqref
29413 reference "eq:Wtot_n"
29418 \begin_inset LatexCommand eqref
29419 reference "eq:Wtot_mult"
29423 equal we can calculate the needed given width
29424 \begin_inset Formula $W_{g\, n}$
29431 columns are spanned, so that each column has a total width of
29432 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
29438 \begin_layout Standard
29439 \begin_inset Formula \begin{equation}
29440 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)·(2·\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
29447 \begin_layout Bibliography
29448 \begin_inset LatexCommand bibitem
29449 key "latexcompanion"
29453 Frank Mittelbach and Michel Goossens:
29455 The LaTeX Companion Second Edition.
29458 Addison-Wesley, 2004
29461 \begin_layout Bibliography
29462 \begin_inset LatexCommand bibitem
29467 Helmut Kopka and Patrick W.
29470 A Guide to LaTeX Fourth Edition.
29473 Addison-Wesley, 2003
29476 \begin_layout Bibliography
29477 \begin_inset LatexCommand bibitem
29484 LaTeX: A Document Preparation System.
29487 Addison-Wesley, second edition, 1994
29490 \begin_layout Bibliography
29491 \begin_inset LatexCommand bibitem
29500 \begin_layout Standard
29504 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf}
29514 \begin_layout Standard
29521 of the LaTeX-package
29526 \begin_inset LatexCommand index
29527 name "LaTeX-packages ! booktabs"
29534 \begin_layout Bibliography
29535 \begin_inset LatexCommand bibitem
29544 \begin_layout Standard
29548 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf}{
29557 \begin_layout Standard
29564 of the LaTeX-package
29569 \begin_inset LatexCommand index
29570 name "LaTeX-packages ! caption"
29577 \begin_layout Bibliography
29578 \begin_inset LatexCommand bibitem
29587 \begin_layout Standard
29591 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/anleitung.pdf}
29601 \begin_layout Standard
29608 of the LaTeX-package
29613 \begin_layout Bibliography
29614 \begin_inset LatexCommand bibitem
29623 \begin_layout Standard
29627 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf}
29637 \begin_layout Standard
29644 of the LaTeX-package
29646 endf\SpecialChar \textcompwordmark{}
29650 \begin_inset LatexCommand index
29651 name "LaTeX-packages ! endfloat"
29658 \begin_layout Bibliography
29659 \begin_inset LatexCommand bibitem
29668 \begin_layout Standard
29672 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/floatflt/floatflt.pdf}
29682 \begin_layout Standard
29689 of the LaTeX-package
29691 floatf\SpecialChar \textcompwordmark{}
29695 \begin_inset LatexCommand index
29696 name "LaTeX-packages ! floatflt"
29703 \begin_layout Bibliography
29704 \begin_inset LatexCommand bibitem
29713 \begin_layout Standard
29717 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf}
29727 \begin_layout Standard
29734 of the LaTeX-package
29739 \begin_inset LatexCommand index
29740 name "LaTeX-packages ! footmisc"
29747 \begin_layout Bibliography
29748 \begin_inset LatexCommand bibitem
29757 \begin_layout Standard
29761 href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf}{
29770 \begin_layout Standard
29777 of the LaTeX-package
29782 \begin_inset LatexCommand index
29783 name "LaTeX-packages ! hyperref"
29790 \begin_layout Bibliography
29791 \begin_inset LatexCommand bibitem
29800 \begin_layout Standard
29804 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf}
29814 \begin_layout Standard
29821 of the LaTeX-package
29826 \begin_inset LatexCommand index
29827 name "LaTeX-packages ! hyperref"
29834 \begin_layout Bibliography
29835 \begin_inset LatexCommand bibitem
29844 \begin_layout Standard
29848 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.p
29858 \begin_layout Standard
29865 of the LaTeX-package
29870 \begin_inset LatexCommand index
29871 name "LaTeX-packages ! koma-script"
29878 \begin_layout Bibliography
29879 \begin_inset LatexCommand bibitem
29880 key "koma-script-de"
29888 \begin_layout Standard
29892 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguide.p
29902 \begin_layout Standard
29909 of the LaTeX-package
29914 \begin_inset LatexCommand index
29915 name "LaTeX-packages ! koma-script"
29922 \begin_layout Bibliography
29923 \begin_inset LatexCommand bibitem
29932 \begin_layout Standard
29936 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf}
29946 \begin_layout Standard
29953 of the LaTeX-package
29958 \begin_inset LatexCommand index
29959 name "LaTeX-packages ! listings"
29966 \begin_layout Bibliography
29967 \begin_inset LatexCommand bibitem
29976 \begin_layout Standard
29980 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.
29990 \begin_layout Standard
29997 of the LaTeX-package
30002 \begin_inset LatexCommand index
30003 name "LaTeX-packages ! marginnote"
30010 \begin_layout Bibliography
30011 \begin_inset LatexCommand bibitem
30020 \begin_layout Standard
30024 href{http://tug.org/PSTricks/main.cgi/}{
30033 \begin_layout Standard
30040 of the LaTeX-package
30045 \begin_inset LatexCommand index
30046 name "LaTeX-packages ! PSTricks"
30053 \begin_layout Bibliography
30054 \begin_inset LatexCommand bibitem
30063 \begin_layout Standard
30067 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf}{
30076 \begin_layout Standard
30083 of the LaTeX-package
30088 \begin_inset LatexCommand index
30089 name "LaTeX-packages ! sidecap"
30096 \begin_layout Bibliography
30097 \begin_inset LatexCommand bibitem
30106 \begin_layout Standard
30110 href{http://wiki.lyx.org/LyX/NewInLyX15}{
30119 \begin_layout Standard
30126 about new LyX-features planned for the release
30133 \begin_layout Standard
30134 \begin_inset LatexCommand printindex
30141 \begin_layout Standard
30142 \begin_inset FloatList figure
30149 \begin_layout Standard
30150 \begin_inset FloatList table