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
214 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
223 \begin_layout Standard
225 If you have comments or error corrections, please send them to the LyX Documenta
232 \begin_layout Standard
236 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's ExtendedInsets manual}{
241 lyx-docs@lists.lyx.org
245 \begin_layout Standard
258 \begin_inset Note Note
261 \begin_layout Standard
262 original author: Uwe Stöhr
278 \begin_layout Standard
279 \begin_inset LatexCommand tableofcontents
286 \begin_layout Standard
287 \begin_inset Note Note
290 \begin_layout Standard
291 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
301 If they are not installed you can export the document anyway but the sections
302 where the packages are required won't appear in the output.
305 \begin_layout Standard
306 The latest PDF-version of this document can be found here:
310 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
318 \begin_layout Chapter
320 \begin_inset LatexCommand label
326 \begin_inset LatexCommand index
332 \begin_inset LatexCommand index
333 name "Graphics|see{Figures}"
340 \begin_layout Section
342 \begin_inset LatexCommand index
343 name "Figures ! Graphics Dialog"
348 \begin_inset LatexCommand label
349 name "sec:Graphics-Dialog"
356 \begin_layout Standard
357 To insert an image into your document, place the cursor at the text position
358 you want and click on the toolbar icon
359 \begin_inset Graphics
360 filename ../images/dialog-show-new-inset_graphics.xpm
367 Insert\SpecialChar \menuseparator
371 Then a dialog will appear to choose the file to load.
372 The image will appear in the output exactly at the position where it is
376 \begin_layout Standard
377 The graphics dialog can be called at any time by right-clicking on an image.
378 This dialog has three tabs:
381 \begin_layout Description
386 Here you can choose an image file and adjust its appearance in the output.
387 The available units for the image size are explained in appendix\InsetSpace ~
389 \begin_inset LatexCommand ref
390 reference "cha:Units-available-in"
396 You can rotate images counter-clockwise by setting a rotation angle and
398 The image will also be rotated inside LyX.
400 Images can be scaled by using
401 a percentage value or by setting the width and height explicitly.
402 If you set only the width or only the height, the other size will be determined
404 If you set both, then the image will be transformed to the given size,
405 possibly distorting it.
406 To prevent the image from distortion, use the option
408 Maintain aspect ratio
411 The image will then be scaled so that its width and height don't exceed
412 the specified dimensions.
414 Images can be opened in a program of your choice
420 The program can be set for every image format in the file format settings
421 in LyX's preferences.
424 \begin_layout Description
429 Alternatively to the usage of scaling units it is possible to set image
430 coordinates to adjust the height and width of the image in the output.
431 The coordinates can also be calculated automatically by pressing the button
443 bounding\InsetSpace ~
446 will only print the image region within the given coordinates.
447 Normally you don't need to take care about image coordinates and can ignore
451 \begin_layout Description
457 In this tab you can modify the appearance of the image within LyX and set
458 the image to be a subfigure of a figure float with an own caption.
459 Subfigures are explained in section\InsetSpace ~
461 \begin_inset LatexCommand ref
462 reference "sec:Figure-Floats"
468 LaTeX experts can also specify on this tab additional LaTeX options.
476 makes the image appear in the output only as a frame with the size of the
486 option only affects zipped EPS-graphics, e.\InsetSpace \thinspace{}
493 When the option is used the images will not be unzipped on export, since
494 LaTeX can handle them as they are.
496 Zipped EPS-graphics are useful to save
497 disk space when you choose PostScript as output format, see appendix\InsetSpace ~
499 \begin_inset LatexCommand ref
500 reference "sec:PostScript"
505 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
516 zgrep %%Bounding x.eps.gz > x.eps.bb
520 The second command creates the bounding box file
521 \begin_inset Quotes eld
525 \begin_inset Quotes erd
528 that is needed by LaTeX for zipped graphics.
531 \begin_layout Standard
532 \begin_inset VSpace bigskip
538 \begin_layout Standard
539 This is an example image in EPS format
543 \begin_layout Standard
544 Image formats are explained in section\InsetSpace ~
546 \begin_inset LatexCommand ref
547 reference "sec:Image-Formats"
556 within a separate, horizontally centered paragraph:
559 \begin_layout Standard
561 \begin_inset Graphics
562 filename clipart/mobius.eps
572 \begin_layout Standard
573 This is the same image like the one above but in draft mode:
576 \begin_layout Standard
578 \begin_inset Graphics
579 filename clipart/mobius.eps
590 \begin_layout Section
592 \begin_inset LatexCommand label
593 name "sec:Figure-Floats"
598 \begin_inset LatexCommand index
599 name "Floats ! Figure Floats"
604 \begin_inset LatexCommand index
605 name "Figures ! Floats"
612 \begin_layout Standard
613 For general explanations about floats, have a look at section\InsetSpace ~
615 \begin_inset LatexCommand ref
616 reference "sec:FloatIntroduction"
623 \begin_layout Standard
625 \begin_inset Graphics
626 filename ../images/float-insert_figure.xpm
633 Insert\SpecialChar \menuseparator
634 Float\SpecialChar \menuseparator
637 inserts a float with a caption that has the label
638 \begin_inset Quotes eld
643 \begin_inset Quotes erd
646 (# is the actual number).
647 You can insert the image above the caption, like in Figure\InsetSpace ~
649 \begin_inset LatexCommand ref
650 reference "fig:kill-plat"
654 or below the caption, like in Figure\InsetSpace ~
656 \begin_inset LatexCommand ref
657 reference "fig:escher"
662 More about the caption placement is described in section\InsetSpace ~
664 \begin_inset LatexCommand ref
665 reference "sec:Caption-Placement"
672 \begin_layout Standard
673 \begin_inset Float figure
678 \begin_layout Standard
680 \begin_inset Graphics
681 filename clipart/platypus.eps
691 \begin_layout Standard
694 \begin_layout Standard
695 \begin_inset LatexCommand label
700 A severely distorted platypus in a float.
713 \begin_layout Standard
714 \begin_inset Float figure
719 \begin_layout Standard
722 \begin_layout Standard
723 \begin_inset LatexCommand label
737 \begin_layout Standard
739 \begin_inset Graphics
740 filename clipart/escher-lsd.eps
755 \begin_layout Standard
756 \begin_inset LatexCommand index
757 name "References ! to Figures"
763 \begin_inset LatexCommand ref
764 reference "fig:kill-plat"
769 \begin_inset LatexCommand ref
770 reference "fig:escher"
774 are examples of referenced figures.
775 Figures can be referenced in the text by referencing their label.
776 To do this insert a label in the caption using the menu
778 Insert\SpecialChar \menuseparator
781 or the toolbar button
782 \begin_inset Graphics
783 filename ../images/label-insert.xpm
789 You can now refer to the label using the menu
791 Insert\SpecialChar \menuseparator
795 or the toolbar button
796 \begin_inset Graphics
797 filename ../images/dialog-show-new-inset_ref.xpm
803 It is important to use references to floats, rather than using vague references
805 \begin_inset Quotes eld
809 \begin_inset Quotes erd
812 , because as LaTeX will reposition the floats in the final document, it
814 \begin_inset Quotes eld
818 \begin_inset Quotes erd
823 Referencing is explained in detail in section\InsetSpace ~
825 \begin_inset LatexCommand ref
826 reference "sec:Referencing-Floats"
833 \begin_layout Standard
834 Normally only one image is inserted to a figure float, but sometimes you
835 might want to use two images with separate subcaptions.
836 This can be set in the tab
841 of the graphics dialog.
842 Choose there the option
846 and enter the subcaption for the image in the caption field.
847 Note that only the main caption of the float is added to the List of Figures.
850 erencing subfigures is explained in section\InsetSpace ~
852 \begin_inset LatexCommand ref
853 reference "sub:Referencing-Subfigures"
860 \begin_layout Standard
863 \begin_inset LatexCommand ref
864 reference "fig:Two-distorted-images"
868 is an example of a figure float with two images set side by side.
869 You can also set the images one below the other.
872 \begin_layout Standard
873 \begin_inset Float figure
878 \begin_layout Standard
882 \begin_inset Graphics
883 filename clipart/escher-lsd.eps
886 subcaptionText "Undefinable structure"
893 \begin_inset Graphics
894 filename clipart/platypus.eps
898 subcaptionText "\label{fig:Platypus} Platypus"
907 \begin_layout Standard
910 \begin_layout Standard
911 \begin_inset LatexCommand label
912 name "fig:Two-distorted-images"
916 Two distorted images.
929 \begin_layout Section
931 \begin_inset LatexCommand label
932 name "sec:Image-Formats"
937 \begin_inset LatexCommand index
943 \begin_inset LatexCommand index
944 name "Figures ! Image Formats"
951 \begin_layout Standard
952 You can insert images in any known file format.
953 But as explained in appendix\InsetSpace ~
955 \begin_inset LatexCommand ref
956 reference "cha:Output-File-Formats"
960 , every output document format allows only a few image formats.
961 LyX uses therefore the program
965 in the background to convert the images to the right format.
966 To increase your work flow by avoiding these conversions in the background,
967 you can use only the image formats that can directly be embedded in the
969 The output file formats are explained in appendix\InsetSpace ~
971 \begin_inset LatexCommand ref
972 reference "cha:Output-File-Formats"
979 \begin_layout Standard
980 Similar to fonts there are two types of image formats:
983 \begin_layout Description
985 images consist of pixel values, often in a compressed form.
986 They are therefore not fully scalable and look pixeled in large zooms.
987 Well-known bitmap image formats are
988 \begin_inset Quotes eld
991 Graphics Interchange Format
992 \begin_inset Quotes erd
996 \begin_inset Quotes eld
1004 \begin_inset Quotes erd
1008 \begin_inset LatexCommand index
1009 name "GIF|see{Image formats}"
1014 \begin_inset Quotes eld
1017 Portable Network Graphics
1018 \begin_inset Quotes erd
1021 (PNG, file extension
1022 \begin_inset Quotes eld
1030 \begin_inset Quotes erd
1034 \begin_inset LatexCommand index
1035 name "PNG|see{Image formats}"
1040 \begin_inset Quotes eld
1043 Joint Photographic Experts Group
1044 \begin_inset Quotes erd
1047 (JPG, file extension
1048 \begin_inset Quotes eld
1056 \begin_inset Quotes erd
1060 \begin_inset Quotes eld
1068 \begin_inset Quotes erd
1072 \begin_inset LatexCommand index
1073 name "JPG|see{Image formats}"
1080 \begin_layout Description
1082 images consist of vectors and can therefore be scaled to any size
1084 The scaling ability is necessary if you want to create presentations, because
1085 presentations are always scaled by the video projector.
1086 Scaling is also useful for online documents to let the user zoom into diagrams.
1089 ell-known scalable image formats are
1090 \begin_inset Quotes eld
1093 Scalable Vector Graphics
1094 \begin_inset Quotes erd
1097 (SVG, file extension
1098 \begin_inset Quotes eld
1106 \begin_inset Quotes erd
1110 \begin_inset LatexCommand index
1111 name "SVG|see{Image formats}"
1116 \begin_inset Quotes eld
1119 Encapsulated PostScript
1120 \begin_inset Quotes erd
1123 (EPS, file extension
1124 \begin_inset Quotes eld
1132 \begin_inset Quotes erd
1136 \begin_inset LatexCommand index
1137 name "EPS|see{Image formats}"
1142 \begin_inset Quotes eld
1145 Portable Document Format
1146 \begin_inset Quotes erd
1149 (PDF, file extension
1150 \begin_inset Quotes eld
1158 \begin_inset Quotes erd
1162 \begin_inset LatexCommand index
1168 \begin_inset Quotes eld
1172 \begin_inset Quotes erd
1175 (WMF, file extension
1176 \begin_inset Quotes eld
1184 \begin_inset Quotes erd
1188 \begin_inset LatexCommand index
1189 name "SVG|see{Image formats}"
1195 \begin_inset Quotes eld
1199 \begin_inset Quotes erd
1202 , because you can convert any bitmap image to a PDF or EPS-image and the
1203 result will still be a bitmap image.
1204 In this cases only a header with the image properties is added to the original
1209 \begin_layout Standard
1210 In the case of PDF, the original image is additionally compressed.
1216 The PDF-files generated by
1220 are for example bitmap images.
1223 \begin_layout Standard
1224 Normally it is not possible to convert a bitmap image into a scalable one,
1226 Only the image formats PDF and EPS can directly be embedded to PDF and
1227 PostScript output files, respectively.
1228 SVG and WMF-images are currently recalculated to bitmaps when the output
1229 file is generated because there is currently no adequate WMF/SVG
1230 \begin_inset Formula $\to$
1233 PDF/EPS converter available.
1236 \begin_layout Chapter
1238 \begin_inset LatexCommand label
1244 \begin_inset LatexCommand index
1252 \begin_layout Section
1254 \begin_inset LatexCommand index
1255 name "Table ! Introduction"
1262 \begin_layout Standard
1263 You can insert a table using either the toolbar button
1264 \begin_inset Graphics
1265 filename ../images/tabular-insert.xpm
1272 Insert\SpecialChar \menuseparator
1276 The toolbar button offers you a graphical selection: Move the mouse to
1277 set the column/row number of the table that should be created and then
1278 press a mouse button.
1279 When you use the menu to create a table, a dialog will appear, asking you
1280 for the number of rows and columns.
1282 The default table has lines around any
1283 cell and the first row appears separated from the rest of the table.
1284 This separation occurs due to a double line: The cells of the first row
1285 have a line below them and the cells of the second row have a line above
1287 Here is an example table:
1290 \begin_layout Standard
1292 \begin_inset Tabular
1293 <lyxtabular version="3" rows="4" columns="4">
1295 <column alignment="center" valignment="top" leftline="true" width="0">
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" rightline="true" width="0">
1299 <row topline="true" bottomline="true">
1300 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1303 \begin_layout Standard
1309 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1312 \begin_layout Standard
1327 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1330 \begin_layout Standard
1336 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1339 \begin_layout Standard
1346 <row topline="true">
1347 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1350 \begin_layout Standard
1365 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1368 \begin_layout Standard
1374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1377 \begin_layout Standard
1383 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1386 \begin_layout Standard
1393 <row topline="true">
1394 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1397 \begin_layout Standard
1412 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1415 \begin_layout Standard
1421 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1424 \begin_layout Standard
1430 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1433 \begin_layout Standard
1440 <row topline="true" bottomline="true">
1441 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1444 \begin_layout Standard
1459 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1462 \begin_layout Standard
1468 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1471 \begin_layout Standard
1477 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1480 \begin_layout Standard
1494 \begin_layout Section
1496 \begin_inset LatexCommand index
1497 name "Table ! Dialog"
1504 \begin_layout Standard
1505 You can alter a table by clicking on it with the right mouse button, which
1506 brings up the table dialog.
1507 Here you can adjust the settings of that cell and row/column respectively
1508 where the cursor is currently placed.
1509 Most of the dialog options also work on selections.
1510 This means if you select more cells, columns or rows, the action is done
1511 for the whole selection.
1512 Note that there is a difference between selecting the
1516 of the cell, and the cell itself.
1517 You can alter tables with the following tabs of the table dialog:
1520 \begin_layout Description
1526 Here you can set the horizontal alignment and the width of the current
1528 When you have set a width you can also adjust the vertical alignment of
1530 A given width will allow the cell to have line breaks and multiple paragraphs
1531 of text, see section\InsetSpace ~
1533 \begin_inset LatexCommand ref
1534 reference "sub:Multiple-Lines-in"
1539 If you set no width, the column is as wide as their widest cell content
1542 Furthermore, you can mark one or multiple cells of one row as a multicolumn
1543 cell, see section\InsetSpace ~
1545 \begin_inset LatexCommand ref
1546 reference "sub:Multicolumns"
1552 The rotate check boxes rotates the current cell, a selection, or the whole
1553 table counter-clockwise by 90°.
1554 The rotation is not shown within LyX, only in the output.
1557 \begin_inset Note Greyedout
1560 \begin_layout Standard
1565 Not all DVI-viewers are able to display rotations.
1572 It is also possible to enter a LaTeX-argument which is needed for special
1573 table formattings, see section\InsetSpace ~
1575 \begin_inset LatexCommand ref
1576 reference "sub:Multicolumn-Calculations"
1581 \begin_inset LatexCommand ref
1582 reference "sec:Colored-Tables"
1589 \begin_layout Description
1594 In this tab you can add and delete border lines for the current row/column.
1601 will convert the table to a formal table as described in section\InsetSpace ~
1603 \begin_inset LatexCommand ref
1604 reference "sec:Formal-Tables"
1610 You can also add here space to table rows as decribed in section\InsetSpace ~
1612 \begin_inset LatexCommand ref
1613 reference "sub:Row-Spacing"
1620 \begin_layout Description
1625 This tab is to make a table a so called
1626 \begin_inset Quotes eld
1634 \begin_inset Quotes erd
1637 that can run over several pages.
1638 Section\InsetSpace ~
1640 \begin_inset LatexCommand ref
1641 reference "sec:Longtables"
1646 \begin_inset LatexCommand ref
1647 reference "sec:Special-Longtable-Issues"
1651 describe the longtable features in detail.
1654 \begin_layout Standard
1655 When the table toolbar is opened, you can move the cursor with the arrow
1656 keys from cell to cell and the property of the current cell will immediately
1657 be displayed in the dialog.
1660 \begin_layout Section
1662 \begin_inset LatexCommand index
1663 name "Table ! Toolbar"
1670 \begin_layout Standard
1671 The table toolbar is an alternative to the table dialog to be able to alter
1673 It should normally appear at the bottom of LyX's main window when the cursor
1675 You can alternatively switch it on to appear always, by right-clicking
1676 in LyX's main menu bar.
1679 \begin_layout Standard
1680 The toolbar has the following icons:
1683 \begin_layout Labeling
1684 \labelwidthstring 00.00.0000
1685 \begin_inset Graphics
1686 filename ../images/tabular-feature_append-row.xpm
1690 adds a row below the current cell or selection
1693 \begin_layout Labeling
1694 \labelwidthstring 00.00.0000
1695 \begin_inset Graphics
1696 filename ../images/tabular-feature_append-column.xpm
1700 adds a column right beside the current cell or selection
1703 \begin_layout Labeling
1704 \labelwidthstring 00.00.0000
1705 \begin_inset Graphics
1706 filename ../images/tabular-feature_delete-row.xpm
1710 deletes the current row or selection
1713 \begin_layout Labeling
1714 \labelwidthstring 00.00.0000
1715 \begin_inset Graphics
1716 filename ../images/tabular-feature_delete-column.xpm
1720 deletes the current column or selection
1723 \begin_layout Labeling
1724 \labelwidthstring 00.00.0000
1725 \begin_inset Graphics
1726 filename ../images/tabular-feature_toggle-line-top.xpm
1730 adds a line at the top of the current cell / row or of a selection
1733 \begin_layout Labeling
1734 \labelwidthstring 00.00.0000
1735 \begin_inset Graphics
1736 filename ../images/tabular-feature_toggle-line-bottom.xpm
1740 adds a line at the bottom of the current cell / row or of a selection
1743 \begin_layout Labeling
1744 \labelwidthstring 00.00.0000
1745 \begin_inset Graphics
1746 filename ../images/tabular-feature_toggle-line-left.xpm
1750 adds a line at the left side of the current cell / row or of a selection
1753 \begin_layout Labeling
1754 \labelwidthstring 00.00.0000
1755 \begin_inset Graphics
1756 filename ../images/tabular-feature_toggle-line-right.xpm
1760 adds a line at the right side of the current cell / row or of a selection
1763 \begin_layout Labeling
1764 \labelwidthstring 00.00.0000
1765 \begin_inset Graphics
1766 filename ../images/tabular-feature_set-all-lines.xpm
1770 adds lines around the current or selected cells - if the current cell no
1771 multicolumn this also affects the current row and column
1774 \begin_layout Labeling
1775 \labelwidthstring 00.00.0000
1776 \begin_inset Graphics
1777 filename ../images/tabular-feature_unset-all-lines.xpm
1781 deletes all lines of the current or selected cells - if the current cell
1782 no multicolumn this also affects the current row and column
1785 \begin_layout Labeling
1786 \labelwidthstring 00.00.0000
1787 \begin_inset Graphics
1788 filename ../images/tabular-feature_align-left.xpm
1792 left-aligns the content of the current cell / column
1795 \begin_layout Labeling
1796 \labelwidthstring 00.00.0000
1797 \begin_inset Graphics
1798 filename ../images/tabular-feature_align-center.xpm
1802 centers the content of the current cell / column horizontally
1805 \begin_layout Labeling
1806 \labelwidthstring 00.00.0000
1807 \begin_inset Graphics
1808 filename ../images/tabular-feature_align-right.xpm
1812 right-aligns the content of the current cell / column
1815 \begin_layout Labeling
1816 \labelwidthstring 00.00.0000
1817 \begin_inset Graphics
1818 filename ../images/tabular-feature_valign-top.xpm
1822 aligns the content of the current cell vertically to the top
1825 \begin_layout Labeling
1826 \labelwidthstring 00.00.0000
1827 \begin_inset Graphics
1828 filename ../images/tabular-feature_valign-middle.xpm
1832 centers the content of the current cell vertically
1835 \begin_layout Labeling
1836 \labelwidthstring 00.00.0000
1837 \begin_inset Graphics
1838 filename ../images/tabular-feature_valign-bottom.xpm
1842 aligns the content of the current cell vertically to the bottom
1845 \begin_layout Labeling
1846 \labelwidthstring 00.00.0000
1847 \begin_inset Graphics
1848 filename ../images/tabular-feature_set-rotate-cell.xpm
1852 rotates the current cell or selection counter-clockwise by 90°
1855 \begin_layout Labeling
1856 \labelwidthstring 00.00.0000
1857 \begin_inset Graphics
1858 filename ../images/tabular-feature_set-rotate-tabular.xpm
1862 rotates the whole table counter-clockwise by 90°
1865 \begin_layout Labeling
1866 \labelwidthstring 00.00.0000
1867 \begin_inset Graphics
1868 filename ../images/tabular-feature_multicolumn.xpm
1872 sets the current cell or selection as a multicolumn
1875 \begin_layout Standard
1876 \begin_inset Note Greyedout
1879 \begin_layout Standard
1884 For the output the vertical alignment of the first cell in a row is used
1885 for all following cells in the row.
1893 \begin_layout Section
1895 \begin_inset LatexCommand index
1896 name "Table ! Edit Menu"
1903 \begin_layout Standard
1904 Additionally to the table dialog and toolbar, the menu
1906 Edit\SpecialChar \menuseparator
1909 allows you to add and delete border lines for the current row/column and
1910 to set the current selection as multicolumn.
1911 The menu is only available when the cursor is inside a table.
1914 \begin_layout Section
1916 \begin_inset LatexCommand label
1917 name "sec:Table-Floats"
1922 \begin_inset LatexCommand index
1923 name "Floats ! Tables"
1928 \begin_inset LatexCommand index
1929 name "Table ! Floats"
1936 \begin_layout Standard
1937 For general explanations about floats, have a look at section\InsetSpace ~
1939 \begin_inset LatexCommand ref
1940 reference "sec:FloatIntroduction"
1947 \begin_layout Standard
1948 \begin_inset Float table
1954 \begin_layout Standard
1955 \begin_inset Caption
1957 \begin_layout Standard
1958 \begin_inset LatexCommand label
1959 name "tab:a table float"
1971 \begin_layout Standard
1973 \begin_inset Tabular
1974 <lyxtabular version="3" rows="3" columns="3">
1976 <column alignment="center" valignment="top" leftline="true" width="0pt">
1977 <column alignment="center" valignment="top" leftline="true" width="0pt">
1978 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
1979 <row topline="true" bottomline="true">
1980 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1983 \begin_layout Standard
1998 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2001 \begin_layout Standard
2016 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2019 \begin_layout Standard
2035 <row topline="true">
2036 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2039 \begin_layout Standard
2054 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2057 \begin_layout Standard
2072 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2075 \begin_layout Standard
2091 <row topline="true" bottomline="true">
2092 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2095 \begin_layout Standard
2105 \begin_inset Formula $\int x^{2}dx$
2113 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2116 \begin_layout Standard
2126 \begin_inset Formula $\left[\begin{array}{cc}
2128 c & d\end{array}\right]$
2136 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2139 \begin_layout Standard
2149 \begin_inset Formula $1+1=2$
2170 \begin_layout Standard
2171 Table floats can be inserted using the menu
2173 Insert\SpecialChar \menuseparator
2174 Float\SpecialChar \menuseparator
2177 or the toolbar button
2178 \begin_inset Graphics
2179 filename ../images/float-insert_table.xpm
2187 \begin_layout Standard
2188 The float appears as a collapsible box with a caption that has the label
2190 \begin_inset Quotes eld
2195 \begin_inset Quotes erd
2198 (# is the actual table number).
2199 You can insert tables to the float above or below the caption.
2202 \begin_layout Standard
2205 \begin_inset LatexCommand ref
2206 reference "tab:a table float"
2210 is an example table within a table float.
2213 \begin_layout Standard
2214 Having the caption above the table is the common rule that is unfortunately
2215 not supported in LaTeX's standard classes.
2216 That means if you are using the document classes
2232 there will be no space between the caption and the table.
2233 To insert the needed space, add the following option to the load command
2234 of the LaTeX-package
2239 \begin_inset LatexCommand index
2240 name "LaTeX-packages ! caption"
2244 in your document preamble
2248 \begin_layout Standard
2249 For more information have a look at section\InsetSpace ~
2251 \begin_inset LatexCommand ref
2252 reference "sec:Caption-Placement"
2264 \begin_layout Standard
2270 \begin_layout Standard
2275 , which is described in section\InsetSpace ~
2277 \begin_inset LatexCommand ref
2278 reference "sec:Caption-Formatting"
2282 , is used to adjust the caption format.
2285 \begin_layout Standard
2286 \begin_inset LatexCommand index
2287 name "References ! to Tables"
2291 Tables can be cross-referenced in the text by referencing their label.
2292 To do this insert a label in the caption using the menu
2294 Insert\SpecialChar \menuseparator
2297 or the toolbar button
2298 \begin_inset Graphics
2299 filename ../images/label-insert.xpm
2305 You can now refer to the label using the menu
2307 Insert\SpecialChar \menuseparator
2311 or the toolbar button
2312 \begin_inset Graphics
2313 filename ../images/dialog-show-new-inset_ref.xpm
2320 Referencing is explained in detail in section\InsetSpace ~
2322 \begin_inset LatexCommand ref
2323 reference "sec:Referencing-Floats"
2330 \begin_layout Section
2332 \begin_inset LatexCommand label
2333 name "sec:Longtables"
2338 \begin_inset LatexCommand index
2344 \begin_inset LatexCommand index
2345 name "Table ! Longtables"
2352 \begin_layout Standard
2353 If the table is too long to fit on one page, you can use the option
2363 of the table dialog to split the table automatically over more pages.
2364 Doing this enables some check boxes and you can now define:
2367 \begin_layout Description
2372 : The current row and all rows above, that don't have any special options
2373 defined, are defined to be the header rows of all pages of the longtable;
2374 except for the first page, if
2380 This therefore called the main header.
2383 \begin_layout Description
2389 : The current row and all rows above, that don't have any special options
2390 defined, are defined to be the header rows of the first page of the longtable.
2393 \begin_layout Description
2398 : The current row and all rows below, that don't have any special options
2399 defined, are defined to be the footer rows of all pages of the longtable;
2400 except for the last page, if
2408 \begin_layout Description
2414 : The current row and all rows below, that don't have any special options
2415 defined, are defined to be the footer rows of the last page of the longtable.
2418 \begin_layout Standard
2419 You can also specify a row where the table is splitted.
2420 If you set more than one option in the same table row, you should be aware
2421 of the fact that only the first one is used in the given table row.
2422 The others will then be defined as
2427 In this context, first means first in this order:
2434 header, Footer, Last\InsetSpace ~
2438 See the following longtable to see how it works:
2441 \begin_layout Standard
2443 \begin_inset Tabular
2444 <lyxtabular version="3" rows="69" columns="3">
2445 <features islongtable="true">
2446 <column alignment="left" valignment="top" leftline="true" width="0cm">
2447 <column alignment="left" valignment="top" width="0pt">
2448 <column alignment="right" valignment="top" leftline="true" rightline="true" width="0pt">
2449 <row topline="true" bottomline="true" endfirsthead="true">
2450 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2453 \begin_layout Standard
2456 Example Phone List (ignore the names)
2461 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2464 \begin_layout Standard
2470 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2473 \begin_layout Standard
2480 <row topline="true" bottomline="true" endfirsthead="true">
2481 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2484 \begin_layout Standard
2492 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2495 \begin_layout Standard
2501 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2504 \begin_layout Standard
2513 <row topline="true" bottomline="true" endhead="true">
2514 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2517 \begin_layout Standard
2525 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2528 \begin_layout Standard
2534 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2537 \begin_layout Standard
2544 <row topline="true" bottomline="true" endhead="true">
2545 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2548 \begin_layout Standard
2556 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2559 \begin_layout Standard
2565 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2568 \begin_layout Standard
2577 <row topline="true" bottomline="true" endfoot="true">
2578 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
2581 \begin_layout Standard
2582 continued on next page
2587 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2590 \begin_layout Standard
2596 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2599 \begin_layout Standard
2607 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2610 \begin_layout Standard
2618 <cell alignment="center" valignment="top" topline="true" usebox="none">
2621 \begin_layout Standard
2627 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2630 \begin_layout Standard
2638 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2641 \begin_layout Standard
2649 <cell alignment="center" valignment="top" topline="true" usebox="none">
2652 \begin_layout Standard
2658 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2661 \begin_layout Standard
2669 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2672 \begin_layout Standard
2680 <cell alignment="center" valignment="top" topline="true" usebox="none">
2683 \begin_layout Standard
2689 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2692 \begin_layout Standard
2700 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2703 \begin_layout Standard
2711 <cell alignment="center" valignment="top" topline="true" usebox="none">
2714 \begin_layout Standard
2720 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2723 \begin_layout Standard
2731 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2734 \begin_layout Standard
2742 <cell alignment="center" valignment="top" topline="true" usebox="none">
2745 \begin_layout Standard
2751 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2754 \begin_layout Standard
2762 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2765 \begin_layout Standard
2773 <cell alignment="center" valignment="top" topline="true" usebox="none">
2776 \begin_layout Standard
2782 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2785 \begin_layout Standard
2793 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2796 \begin_layout Standard
2804 <cell alignment="center" valignment="top" topline="true" usebox="none">
2807 \begin_layout Standard
2813 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2816 \begin_layout Standard
2824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2827 \begin_layout Standard
2835 <cell alignment="center" valignment="top" topline="true" usebox="none">
2838 \begin_layout Standard
2844 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2847 \begin_layout Standard
2855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2858 \begin_layout Standard
2866 <cell alignment="center" valignment="top" topline="true" usebox="none">
2869 \begin_layout Standard
2875 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2878 \begin_layout Standard
2886 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2889 \begin_layout Standard
2897 <cell alignment="center" valignment="top" topline="true" usebox="none">
2900 \begin_layout Standard
2906 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2909 \begin_layout Standard
2917 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2920 \begin_layout Standard
2928 <cell alignment="center" valignment="top" topline="true" usebox="none">
2931 \begin_layout Standard
2937 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2940 \begin_layout Standard
2948 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2951 \begin_layout Standard
2959 <cell alignment="center" valignment="top" topline="true" usebox="none">
2962 \begin_layout Standard
2968 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2971 \begin_layout Standard
2979 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2982 \begin_layout Standard
2990 <cell alignment="center" valignment="top" topline="true" usebox="none">
2993 \begin_layout Standard
2999 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3002 \begin_layout Standard
3010 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3013 \begin_layout Standard
3021 <cell alignment="center" valignment="top" topline="true" usebox="none">
3024 \begin_layout Standard
3030 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3033 \begin_layout Standard
3041 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3044 \begin_layout Standard
3052 <cell alignment="center" valignment="top" topline="true" usebox="none">
3055 \begin_layout Standard
3061 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3064 \begin_layout Standard
3072 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3075 \begin_layout Standard
3083 <cell alignment="center" valignment="top" topline="true" usebox="none">
3086 \begin_layout Standard
3092 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3095 \begin_layout Standard
3103 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3106 \begin_layout Standard
3114 <cell alignment="center" valignment="top" topline="true" usebox="none">
3117 \begin_layout Standard
3123 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3126 \begin_layout Standard
3134 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3137 \begin_layout Standard
3145 <cell alignment="center" valignment="top" topline="true" usebox="none">
3148 \begin_layout Standard
3154 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3157 \begin_layout Standard
3165 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3168 \begin_layout Standard
3176 <cell alignment="center" valignment="top" topline="true" usebox="none">
3179 \begin_layout Standard
3185 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3188 \begin_layout Standard
3196 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3199 \begin_layout Standard
3207 <cell alignment="center" valignment="top" topline="true" usebox="none">
3210 \begin_layout Standard
3216 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3219 \begin_layout Standard
3227 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3230 \begin_layout Standard
3238 <cell alignment="center" valignment="top" topline="true" usebox="none">
3241 \begin_layout Standard
3247 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3250 \begin_layout Standard
3258 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3261 \begin_layout Standard
3269 <cell alignment="center" valignment="top" topline="true" usebox="none">
3272 \begin_layout Standard
3278 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3281 \begin_layout Standard
3289 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3292 \begin_layout Standard
3300 <cell alignment="center" valignment="top" topline="true" usebox="none">
3303 \begin_layout Standard
3309 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3312 \begin_layout Standard
3320 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3323 \begin_layout Standard
3331 <cell alignment="center" valignment="top" topline="true" usebox="none">
3334 \begin_layout Standard
3340 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3343 \begin_layout Standard
3351 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3354 \begin_layout Standard
3362 <cell alignment="center" valignment="top" topline="true" usebox="none">
3365 \begin_layout Standard
3371 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3374 \begin_layout Standard
3382 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3385 \begin_layout Standard
3393 <cell alignment="center" valignment="top" topline="true" usebox="none">
3396 \begin_layout Standard
3402 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3405 \begin_layout Standard
3413 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3416 \begin_layout Standard
3424 <cell alignment="center" valignment="top" topline="true" usebox="none">
3427 \begin_layout Standard
3433 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3436 \begin_layout Standard
3444 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3447 \begin_layout Standard
3455 <cell alignment="center" valignment="top" topline="true" usebox="none">
3458 \begin_layout Standard
3464 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3467 \begin_layout Standard
3475 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3478 \begin_layout Standard
3486 <cell alignment="center" valignment="top" topline="true" usebox="none">
3489 \begin_layout Standard
3495 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3498 \begin_layout Standard
3506 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3509 \begin_layout Standard
3517 <cell alignment="center" valignment="top" topline="true" usebox="none">
3520 \begin_layout Standard
3526 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3529 \begin_layout Standard
3536 <row bottomline="true">
3537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3540 \begin_layout Standard
3548 <cell alignment="center" valignment="top" topline="true" usebox="none">
3551 \begin_layout Standard
3557 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3560 \begin_layout Standard
3567 <row bottomline="true">
3568 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3571 \begin_layout Standard
3577 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
3580 \begin_layout Standard
3586 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3589 \begin_layout Standard
3597 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3600 \begin_layout Standard
3608 <cell alignment="center" valignment="top" topline="true" usebox="none">
3611 \begin_layout Standard
3617 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3620 \begin_layout Standard
3628 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3631 \begin_layout Standard
3639 <cell alignment="center" valignment="top" topline="true" usebox="none">
3642 \begin_layout Standard
3648 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3651 \begin_layout Standard
3659 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3662 \begin_layout Standard
3670 <cell alignment="center" valignment="top" topline="true" usebox="none">
3673 \begin_layout Standard
3679 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3682 \begin_layout Standard
3690 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3693 \begin_layout Standard
3701 <cell alignment="center" valignment="top" topline="true" usebox="none">
3704 \begin_layout Standard
3710 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3713 \begin_layout Standard
3721 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3724 \begin_layout Standard
3732 <cell alignment="center" valignment="top" topline="true" usebox="none">
3735 \begin_layout Standard
3741 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3744 \begin_layout Standard
3752 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3755 \begin_layout Standard
3763 <cell alignment="center" valignment="top" topline="true" usebox="none">
3766 \begin_layout Standard
3772 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3775 \begin_layout Standard
3783 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3786 \begin_layout Standard
3794 <cell alignment="center" valignment="top" topline="true" usebox="none">
3797 \begin_layout Standard
3803 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3806 \begin_layout Standard
3814 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3817 \begin_layout Standard
3825 <cell alignment="center" valignment="top" topline="true" usebox="none">
3828 \begin_layout Standard
3834 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3837 \begin_layout Standard
3845 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3848 \begin_layout Standard
3856 <cell alignment="center" valignment="top" topline="true" usebox="none">
3859 \begin_layout Standard
3865 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3868 \begin_layout Standard
3876 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3879 \begin_layout Standard
3887 <cell alignment="center" valignment="top" topline="true" usebox="none">
3890 \begin_layout Standard
3896 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3899 \begin_layout Standard
3907 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3910 \begin_layout Standard
3918 <cell alignment="center" valignment="top" topline="true" usebox="none">
3921 \begin_layout Standard
3927 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3930 \begin_layout Standard
3938 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3941 \begin_layout Standard
3949 <cell alignment="center" valignment="top" topline="true" usebox="none">
3952 \begin_layout Standard
3958 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3961 \begin_layout Standard
3969 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3972 \begin_layout Standard
3980 <cell alignment="center" valignment="top" topline="true" usebox="none">
3983 \begin_layout Standard
3989 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3992 \begin_layout Standard
4000 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4003 \begin_layout Standard
4011 <cell alignment="center" valignment="top" topline="true" usebox="none">
4014 \begin_layout Standard
4020 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4023 \begin_layout Standard
4031 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4034 \begin_layout Standard
4042 <cell alignment="center" valignment="top" topline="true" usebox="none">
4045 \begin_layout Standard
4051 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4054 \begin_layout Standard
4062 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4065 \begin_layout Standard
4073 <cell alignment="center" valignment="top" topline="true" usebox="none">
4076 \begin_layout Standard
4082 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4085 \begin_layout Standard
4093 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4096 \begin_layout Standard
4104 <cell alignment="center" valignment="top" topline="true" usebox="none">
4107 \begin_layout Standard
4113 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4116 \begin_layout Standard
4124 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4127 \begin_layout Standard
4135 <cell alignment="center" valignment="top" topline="true" usebox="none">
4138 \begin_layout Standard
4144 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4147 \begin_layout Standard
4155 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4158 \begin_layout Standard
4166 <cell alignment="center" valignment="top" topline="true" usebox="none">
4169 \begin_layout Standard
4175 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4178 \begin_layout Standard
4186 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4189 \begin_layout Standard
4197 <cell alignment="center" valignment="top" topline="true" usebox="none">
4200 \begin_layout Standard
4206 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4209 \begin_layout Standard
4217 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4220 \begin_layout Standard
4228 <cell alignment="center" valignment="top" topline="true" usebox="none">
4231 \begin_layout Standard
4237 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4240 \begin_layout Standard
4248 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4251 \begin_layout Standard
4259 <cell alignment="center" valignment="top" topline="true" usebox="none">
4262 \begin_layout Standard
4268 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4271 \begin_layout Standard
4279 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4282 \begin_layout Standard
4290 <cell alignment="center" valignment="top" topline="true" usebox="none">
4293 \begin_layout Standard
4299 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4302 \begin_layout Standard
4310 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4313 \begin_layout Standard
4321 <cell alignment="center" valignment="top" topline="true" usebox="none">
4324 \begin_layout Standard
4330 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4333 \begin_layout Standard
4341 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4344 \begin_layout Standard
4352 <cell alignment="center" valignment="top" topline="true" usebox="none">
4355 \begin_layout Standard
4361 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4364 \begin_layout Standard
4372 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4375 \begin_layout Standard
4383 <cell alignment="center" valignment="top" topline="true" usebox="none">
4386 \begin_layout Standard
4392 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4395 \begin_layout Standard
4403 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4406 \begin_layout Standard
4414 <cell alignment="center" valignment="top" topline="true" usebox="none">
4417 \begin_layout Standard
4423 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4426 \begin_layout Standard
4434 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4437 \begin_layout Standard
4445 <cell alignment="center" valignment="top" topline="true" usebox="none">
4448 \begin_layout Standard
4454 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4457 \begin_layout Standard
4465 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4468 \begin_layout Standard
4476 <cell alignment="center" valignment="top" topline="true" usebox="none">
4479 \begin_layout Standard
4485 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4488 \begin_layout Standard
4496 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4499 \begin_layout Standard
4507 <cell alignment="center" valignment="top" topline="true" usebox="none">
4510 \begin_layout Standard
4516 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4519 \begin_layout Standard
4526 <row bottomline="true">
4527 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4530 \begin_layout Standard
4538 <cell alignment="center" valignment="top" topline="true" usebox="none">
4541 \begin_layout Standard
4547 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4550 \begin_layout Standard
4557 <row bottomline="true" endlastfoot="true">
4558 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
4561 \begin_layout Standard
4567 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4570 \begin_layout Standard
4576 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4579 \begin_layout Standard
4594 \begin_layout Standard
4598 addtocounter{table}{-1}
4604 \begin_inset Note Note
4607 \begin_layout Standard
4608 See greyed-out note in section 2.6.2 for an explanation of this command.
4616 \begin_layout Subsection
4617 Footnotes in Longtables
4618 \begin_inset LatexCommand label
4619 name "sub:Footnotes-in-Longtables"
4624 \begin_inset LatexCommand index
4625 name "Longtables ! Footnotes"
4632 \begin_layout Standard
4633 Footnotes can be inserted to every longtable cell.
4634 They appear at the bottom of the page where the table cell with the footnote
4638 \begin_inset LatexCommand ref
4639 reference "tab:DiffCaptions"
4643 has for example a footnote.
4646 \begin_layout Subsection
4648 \begin_inset LatexCommand index
4649 name "Longtables ! Captions"
4656 \begin_layout Standard
4657 A longtable cannot be put into a table float because floats can only be
4658 on one page but the caption environment of floats can also be used for
4662 \begin_layout Standard
4663 As LyX does not yet fully support captions in longtables, a hack is needed
4667 \begin_layout Enumerate
4673 \begin_layout Enumerate
4674 Mark the first row and disable its upper line.
4677 \begin_layout Enumerate
4678 Insert a caption via the menu
4680 Insert\SpecialChar \menuseparator
4683 into the first table cell.
4685 You can also add a short title for the caption.
4688 \begin_layout Enumerate
4690 \begin_inset Quotes eld
4702 \begin_inset Quotes erd
4705 as ERT behind the caption.
4708 \begin_layout Standard
4709 A short title that will appear in the LOT instead of the full title.
4718 behind the caption omits the vertical lines between the following cells
4720 The first table row is now only a dummy row for the caption, the actual
4721 table starts with the second row.
4724 \begin_layout Standard
4725 Here is a short longtable to see how it works:
4728 \begin_layout Standard
4729 \begin_inset Tabular
4730 <lyxtabular version="3" rows="6" columns="5">
4731 <features islongtable="true">
4732 <column alignment="center" valignment="top" leftline="true" width="0">
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" rightline="true" width="0">
4738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4741 \begin_layout Standard
4742 \begin_inset Caption
4744 \begin_layout Standard
4745 Longtable with caption
4749 \begin_layout Standard
4764 \begin_layout Standard
4780 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4783 \begin_layout Standard
4789 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4792 \begin_layout Standard
4798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4801 \begin_layout Standard
4807 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4810 \begin_layout Standard
4817 <row topline="true">
4818 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4821 \begin_layout Standard
4827 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4830 \begin_layout Standard
4836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4839 \begin_layout Standard
4845 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4848 \begin_layout Standard
4854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4857 \begin_layout Standard
4864 <row topline="true">
4865 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4868 \begin_layout Standard
4874 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4877 \begin_layout Standard
4883 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4886 \begin_layout Standard
4892 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4895 \begin_layout Standard
4901 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4904 \begin_layout Standard
4911 <row topline="true">
4912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4915 \begin_layout Standard
4921 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4924 \begin_layout Standard
4930 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4933 \begin_layout Standard
4939 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4942 \begin_layout Standard
4948 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4951 \begin_layout Standard
4958 <row topline="true">
4959 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4962 \begin_layout Standard
4968 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4971 \begin_layout Standard
4977 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4980 \begin_layout Standard
4986 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4989 \begin_layout Standard
4995 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4998 \begin_layout Standard
5005 <row topline="true" bottomline="true">
5006 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5009 \begin_layout Standard
5015 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5018 \begin_layout Standard
5024 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5027 \begin_layout Standard
5033 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5036 \begin_layout Standard
5042 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5045 \begin_layout Standard
5059 \begin_layout Standard
5060 \begin_inset VSpace medskip
5064 \begin_inset Note Greyedout
5067 \begin_layout Standard
5072 The table number is increased for every longtable, also if you didn't set
5074 For this reason you could have the case that e.g.
5076 2.4 follows on Table\InsetSpace ~
5077 2.1 in the list of tables if there are two longtables
5079 To avoid this you can add the following command in ERT behind every longtable
5083 \begin_layout Standard
5088 addtocounter{table}{-1}
5096 \begin_layout Standard
5097 \begin_inset Note Greyedout
5100 \begin_layout Standard
5105 If you are using the LaTeX-package
5110 \begin_inset LatexCommand index
5111 name "LaTeX-packages ! hyperref"
5115 to link cross-references, the link to a longtable caption will always point
5116 to the beginning of the document.
5124 \begin_layout Subsubsection
5125 References to Longtables
5126 \begin_inset LatexCommand index
5127 name "Longtables ! References"
5134 \begin_layout Standard
5135 \begin_inset Tabular
5136 <lyxtabular version="3" rows="6" columns="5">
5137 <features islongtable="true">
5138 <column alignment="center" valignment="top" leftline="true" width="0">
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" rightline="true" width="0">
5144 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5147 \begin_layout Standard
5148 \begin_inset Caption
5150 \begin_layout Standard
5151 Referenced longtable
5152 \begin_inset LatexCommand label
5153 name "tab:RefExample"
5166 \begin_layout Standard
5182 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5185 \begin_layout Standard
5191 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5194 \begin_layout Standard
5200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5203 \begin_layout Standard
5209 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5212 \begin_layout Standard
5219 <row topline="true">
5220 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5223 \begin_layout Standard
5229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5232 \begin_layout Standard
5238 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5241 \begin_layout Standard
5247 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5250 \begin_layout Standard
5256 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5259 \begin_layout Standard
5266 <row topline="true">
5267 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5270 \begin_layout Standard
5276 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5279 \begin_layout Standard
5285 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5288 \begin_layout Standard
5294 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5297 \begin_layout Standard
5303 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5306 \begin_layout Standard
5313 <row topline="true">
5314 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5317 \begin_layout Standard
5323 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5326 \begin_layout Standard
5332 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5335 \begin_layout Standard
5341 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5344 \begin_layout Standard
5350 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5353 \begin_layout Standard
5360 <row topline="true">
5361 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5364 \begin_layout Standard
5370 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5373 \begin_layout Standard
5379 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5382 \begin_layout Standard
5388 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5391 \begin_layout Standard
5397 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5400 \begin_layout Standard
5407 <row topline="true" bottomline="true">
5408 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5411 \begin_layout Standard
5417 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5420 \begin_layout Standard
5426 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5429 \begin_layout Standard
5435 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5438 \begin_layout Standard
5444 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5447 \begin_layout Standard
5461 \begin_layout Standard
5462 To reference a longtable, insert a label into the caption.
5463 Note that you have to add the label prefix
5464 \begin_inset Quotes eld
5472 \begin_inset Quotes eld
5475 manually in the label field.
5478 \begin_layout Standard
5479 This is a reference to Table\InsetSpace ~
5481 \begin_inset LatexCommand ref
5482 reference "tab:RefExample"
5489 \begin_layout Standard
5490 The caption layout can be set together with all other caption of your document
5491 using the LaTeX-package
5496 \begin_inset LatexCommand index
5497 name "LaTeX-packages ! caption"
5501 , see section\InsetSpace ~
5503 \begin_inset LatexCommand ref
5504 reference "sec:Caption-Formatting"
5511 \begin_layout Subsubsection
5513 \begin_inset LatexCommand index
5514 name "Longtables ! Caption Width"
5521 \begin_layout Standard
5522 The maximal width of of caption lines is defined by the length
5529 Its default value is 4\InsetSpace \thinspace{}
5531 To change it add the following command to your document preamble or as
5532 ERT into your document before the longtable that should be affected
5535 \begin_layout Standard
5545 \begin_layout Standard
5546 where the width could have one of the units listed in appendix\InsetSpace ~
5548 \begin_inset LatexCommand ref
5549 reference "cha:Units-available-in"
5556 \begin_layout Standard
5557 The following tables show the difference:
5560 \begin_layout Standard
5561 \begin_inset Tabular
5562 <lyxtabular version="3" rows="6" columns="5">
5563 <features islongtable="true">
5564 <column alignment="center" valignment="top" leftline="true" width="0">
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" rightline="true" width="0">
5570 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5573 \begin_layout Standard
5574 \begin_inset Caption
5576 \begin_layout Standard
5577 long full title with default width long full title with default width long
5578 full title with default width
5582 \begin_layout Standard
5583 caption with default width
5597 \begin_layout Standard
5613 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5616 \begin_layout Standard
5622 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5625 \begin_layout Standard
5631 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5634 \begin_layout Standard
5640 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5643 \begin_layout Standard
5650 <row topline="true">
5651 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5654 \begin_layout Standard
5660 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5663 \begin_layout Standard
5669 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5672 \begin_layout Standard
5678 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5681 \begin_layout Standard
5687 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5690 \begin_layout Standard
5697 <row topline="true">
5698 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5701 \begin_layout Standard
5707 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5710 \begin_layout Standard
5716 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5719 \begin_layout Standard
5725 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5728 \begin_layout Standard
5734 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5737 \begin_layout Standard
5744 <row topline="true">
5745 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5748 \begin_layout Standard
5754 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5757 \begin_layout Standard
5763 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5766 \begin_layout Standard
5772 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5775 \begin_layout Standard
5781 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5784 \begin_layout Standard
5791 <row topline="true">
5792 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5795 \begin_layout Standard
5801 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5804 \begin_layout Standard
5810 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5813 \begin_layout Standard
5819 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5822 \begin_layout Standard
5828 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5831 \begin_layout Standard
5838 <row topline="true" bottomline="true">
5839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5842 \begin_layout Standard
5848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5851 \begin_layout Standard
5857 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5860 \begin_layout Standard
5866 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5869 \begin_layout Standard
5875 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5878 \begin_layout Standard
5892 \begin_layout Standard
5896 \begin_layout Standard
5908 \begin_inset Tabular
5909 <lyxtabular version="3" rows="6" columns="5">
5910 <features islongtable="true">
5911 <column alignment="center" valignment="top" leftline="true" width="0">
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" rightline="true" width="0">
5917 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5920 \begin_layout Standard
5921 \begin_inset Caption
5923 \begin_layout Standard
5924 long full title with width set to 5\InsetSpace \thinspace{}
5925 cm long full title with width set to
5926 5\InsetSpace \thinspace{}
5927 cm long full title with width set to 5\InsetSpace \thinspace{}
5932 \begin_layout Standard
5933 caption with width\InsetSpace \thinspace{}
5934 =\InsetSpace \thinspace{}
5935 5\InsetSpace \thinspace{}
5950 \begin_layout Standard
5966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5969 \begin_layout Standard
5975 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5978 \begin_layout Standard
5984 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5987 \begin_layout Standard
5993 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5996 \begin_layout Standard
6003 <row topline="true">
6004 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6007 \begin_layout Standard
6013 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6016 \begin_layout Standard
6022 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6025 \begin_layout Standard
6031 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6034 \begin_layout Standard
6040 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6043 \begin_layout Standard
6050 <row topline="true">
6051 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6054 \begin_layout Standard
6060 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6063 \begin_layout Standard
6069 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6072 \begin_layout Standard
6078 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6081 \begin_layout Standard
6087 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6090 \begin_layout Standard
6097 <row topline="true">
6098 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6101 \begin_layout Standard
6107 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6110 \begin_layout Standard
6116 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6119 \begin_layout Standard
6125 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6128 \begin_layout Standard
6134 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6137 \begin_layout Standard
6144 <row topline="true">
6145 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6148 \begin_layout Standard
6154 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6157 \begin_layout Standard
6163 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6166 \begin_layout Standard
6172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6175 \begin_layout Standard
6181 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6184 \begin_layout Standard
6191 <row topline="true" bottomline="true">
6192 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6195 \begin_layout Standard
6201 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6204 \begin_layout Standard
6210 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6213 \begin_layout Standard
6219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6222 \begin_layout Standard
6228 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6231 \begin_layout Standard
6245 \begin_layout Standard
6249 \begin_layout Standard
6263 \begin_layout Standard
6264 \begin_inset Note Greyedout
6267 \begin_layout Standard
6272 When the LaTeX-package
6277 \begin_inset LatexCommand index
6278 name "LaTeX-packages ! caption"
6282 is used, as in this document, the full page width is used for the caption
6283 when you use the default value of 4\InsetSpace \thinspace{}
6291 To get in this case exactly a 4\InsetSpace \thinspace{}
6292 in wide caption, you can either use a value
6293 slightly different from 4.0\InsetSpace \thinspace{}
6295 3.99\InsetSpace \thinspace{}
6296 in, or the LaTeX-command
6300 captionsetup{width=value}
6302 that is provided by the
6314 \begin_layout Subsubsection
6315 Different Captions for Table Pages
6316 \begin_inset LatexCommand index
6317 name "Longtables ! Different Captions for Pages"
6324 \begin_layout Standard
6325 When the other captions should differ from the one of the first table page,
6326 insert a caption with a non-empty short title in a dummy caption row marked
6328 The caption used for the other table pages is inserted as caption without
6329 a short title in a dummy caption row that is marked as main header.
6330 When this caption shouldn't include the table number, use the command
6333 \begin_layout Standard
6338 caption*{caption text}
6341 \begin_layout Standard
6342 instead of LyX's caption box.
6343 The label to reference the table is inserted into the caption of the first
6347 \begin_inset LatexCommand ref
6348 reference "tab:DiffCaptions"
6352 is an example for a longtable with different heading where the second caption
6353 doesn't include the table number.
6356 \begin_layout Standard
6358 \begin_inset Tabular
6359 <lyxtabular version="3" rows="60" columns="3">
6360 <features islongtable="true">
6361 <column alignment="left" valignment="top" leftline="true" width="0cm">
6362 <column alignment="left" valignment="top" rightline="true" width="0pt">
6363 <column alignment="right" valignment="top" rightline="true" width="0pt">
6364 <row endfirsthead="true">
6365 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6368 \begin_layout Standard
6369 \begin_inset Caption
6371 \begin_layout Standard
6373 \begin_inset LatexCommand label
6374 name "tab:DiffCaptions"
6382 \begin_layout Standard
6397 \begin_layout Standard
6413 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6416 \begin_layout Standard
6422 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6425 \begin_layout Standard
6432 <row topline="true" bottomline="true" endfirsthead="true">
6433 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6436 \begin_layout Standard
6439 Example Phone List (ignore the names)
6444 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6447 \begin_layout Standard
6453 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6456 \begin_layout Standard
6463 <row topline="true" bottomline="true" endfirsthead="true">
6464 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6467 \begin_layout Standard
6475 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6478 \begin_layout Standard
6484 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6487 \begin_layout Standard
6496 <row bottomline="true" endhead="true">
6497 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6500 \begin_layout Standard
6504 \begin_layout Standard
6508 caption*{Continued Example Phone List}
6522 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6525 \begin_layout Standard
6531 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6534 \begin_layout Standard
6541 <row topline="true" bottomline="true" endhead="true">
6542 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6545 \begin_layout Standard
6553 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6556 \begin_layout Standard
6562 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6565 \begin_layout Standard
6572 <row topline="true" bottomline="true" endhead="true">
6573 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6576 \begin_layout Standard
6584 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6587 \begin_layout Standard
6593 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6596 \begin_layout Standard
6605 <row topline="true" bottomline="true" endfoot="true">
6606 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
6609 \begin_layout Standard
6610 continued on next page
6615 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6618 \begin_layout Standard
6624 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6627 \begin_layout Standard
6635 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6638 \begin_layout Standard
6646 <cell alignment="center" valignment="top" topline="true" usebox="none">
6649 \begin_layout Standard
6655 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6658 \begin_layout Standard
6666 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6669 \begin_layout Standard
6677 <cell alignment="center" valignment="top" topline="true" usebox="none">
6680 \begin_layout Standard
6686 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6689 \begin_layout Standard
6697 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6700 \begin_layout Standard
6708 <cell alignment="center" valignment="top" topline="true" usebox="none">
6711 \begin_layout Standard
6717 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6720 \begin_layout Standard
6728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6731 \begin_layout Standard
6739 <cell alignment="center" valignment="top" topline="true" usebox="none">
6742 \begin_layout Standard
6748 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6751 \begin_layout Standard
6759 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6762 \begin_layout Standard
6770 <cell alignment="center" valignment="top" topline="true" usebox="none">
6773 \begin_layout Standard
6779 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6782 \begin_layout Standard
6790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6793 \begin_layout Standard
6801 <cell alignment="center" valignment="top" topline="true" usebox="none">
6804 \begin_layout Standard
6810 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6813 \begin_layout Standard
6821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6824 \begin_layout Standard
6832 <cell alignment="center" valignment="top" topline="true" usebox="none">
6835 \begin_layout Standard
6841 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6844 \begin_layout Standard
6852 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6855 \begin_layout Standard
6863 <cell alignment="center" valignment="top" topline="true" usebox="none">
6866 \begin_layout Standard
6872 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6875 \begin_layout Standard
6883 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6886 \begin_layout Standard
6894 <cell alignment="center" valignment="top" topline="true" usebox="none">
6897 \begin_layout Standard
6903 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6906 \begin_layout Standard
6914 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6917 \begin_layout Standard
6925 <cell alignment="center" valignment="top" topline="true" usebox="none">
6928 \begin_layout Standard
6934 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6937 \begin_layout Standard
6945 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6948 \begin_layout Standard
6956 <cell alignment="center" valignment="top" topline="true" usebox="none">
6959 \begin_layout Standard
6965 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6968 \begin_layout Standard
6976 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6979 \begin_layout Standard
6987 <cell alignment="center" valignment="top" topline="true" usebox="none">
6990 \begin_layout Standard
6996 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6999 \begin_layout Standard
7007 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7010 \begin_layout Standard
7018 <cell alignment="center" valignment="top" topline="true" usebox="none">
7021 \begin_layout Standard
7027 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7030 \begin_layout Standard
7038 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7041 \begin_layout Standard
7049 <cell alignment="center" valignment="top" topline="true" usebox="none">
7052 \begin_layout Standard
7058 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7061 \begin_layout Standard
7069 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7072 \begin_layout Standard
7081 \begin_layout Standard
7092 <cell alignment="center" valignment="top" topline="true" usebox="none">
7095 \begin_layout Standard
7101 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7104 \begin_layout Standard
7112 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7115 \begin_layout Standard
7123 <cell alignment="center" valignment="top" topline="true" usebox="none">
7126 \begin_layout Standard
7132 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7135 \begin_layout Standard
7143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7146 \begin_layout Standard
7154 <cell alignment="center" valignment="top" topline="true" usebox="none">
7157 \begin_layout Standard
7163 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7166 \begin_layout Standard
7174 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7177 \begin_layout Standard
7185 <cell alignment="center" valignment="top" topline="true" usebox="none">
7188 \begin_layout Standard
7194 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7197 \begin_layout Standard
7205 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7208 \begin_layout Standard
7216 <cell alignment="center" valignment="top" topline="true" usebox="none">
7219 \begin_layout Standard
7225 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7228 \begin_layout Standard
7236 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7239 \begin_layout Standard
7247 <cell alignment="center" valignment="top" topline="true" usebox="none">
7250 \begin_layout Standard
7256 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7259 \begin_layout Standard
7267 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7270 \begin_layout Standard
7278 <cell alignment="center" valignment="top" topline="true" usebox="none">
7281 \begin_layout Standard
7287 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7290 \begin_layout Standard
7298 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7301 \begin_layout Standard
7309 <cell alignment="center" valignment="top" topline="true" usebox="none">
7312 \begin_layout Standard
7318 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7321 \begin_layout Standard
7329 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7332 \begin_layout Standard
7340 <cell alignment="center" valignment="top" topline="true" usebox="none">
7343 \begin_layout Standard
7349 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7352 \begin_layout Standard
7360 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7363 \begin_layout Standard
7371 <cell alignment="center" valignment="top" topline="true" usebox="none">
7374 \begin_layout Standard
7380 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7383 \begin_layout Standard
7391 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7394 \begin_layout Standard
7402 <cell alignment="center" valignment="top" topline="true" usebox="none">
7405 \begin_layout Standard
7411 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7414 \begin_layout Standard
7422 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7425 \begin_layout Standard
7433 <cell alignment="center" valignment="top" topline="true" usebox="none">
7436 \begin_layout Standard
7442 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7445 \begin_layout Standard
7453 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7456 \begin_layout Standard
7464 <cell alignment="center" valignment="top" topline="true" usebox="none">
7467 \begin_layout Standard
7473 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7476 \begin_layout Standard
7484 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7487 \begin_layout Standard
7495 <cell alignment="center" valignment="top" topline="true" usebox="none">
7498 \begin_layout Standard
7504 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7507 \begin_layout Standard
7515 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7518 \begin_layout Standard
7526 <cell alignment="center" valignment="top" topline="true" usebox="none">
7529 \begin_layout Standard
7535 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7538 \begin_layout Standard
7546 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7549 \begin_layout Standard
7557 <cell alignment="center" valignment="top" topline="true" usebox="none">
7560 \begin_layout Standard
7566 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7569 \begin_layout Standard
7576 <row bottomline="true">
7577 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7580 \begin_layout Standard
7588 <cell alignment="center" valignment="top" topline="true" usebox="none">
7591 \begin_layout Standard
7597 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7600 \begin_layout Standard
7607 <row bottomline="true">
7608 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7611 \begin_layout Standard
7617 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
7620 \begin_layout Standard
7626 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7629 \begin_layout Standard
7637 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7640 \begin_layout Standard
7648 <cell alignment="center" valignment="top" topline="true" usebox="none">
7651 \begin_layout Standard
7657 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7660 \begin_layout Standard
7668 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7671 \begin_layout Standard
7679 <cell alignment="center" valignment="top" topline="true" usebox="none">
7682 \begin_layout Standard
7688 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7691 \begin_layout Standard
7699 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7702 \begin_layout Standard
7710 <cell alignment="center" valignment="top" topline="true" usebox="none">
7713 \begin_layout Standard
7719 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7722 \begin_layout Standard
7730 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7733 \begin_layout Standard
7741 <cell alignment="center" valignment="top" topline="true" usebox="none">
7744 \begin_layout Standard
7750 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7753 \begin_layout Standard
7761 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7764 \begin_layout Standard
7772 <cell alignment="center" valignment="top" topline="true" usebox="none">
7775 \begin_layout Standard
7781 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7784 \begin_layout Standard
7792 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7795 \begin_layout Standard
7803 <cell alignment="center" valignment="top" topline="true" usebox="none">
7806 \begin_layout Standard
7812 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7815 \begin_layout Standard
7823 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7826 \begin_layout Standard
7834 <cell alignment="center" valignment="top" topline="true" usebox="none">
7837 \begin_layout Standard
7843 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7846 \begin_layout Standard
7854 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7857 \begin_layout Standard
7865 <cell alignment="center" valignment="top" topline="true" usebox="none">
7868 \begin_layout Standard
7874 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7877 \begin_layout Standard
7885 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7888 \begin_layout Standard
7896 <cell alignment="center" valignment="top" topline="true" usebox="none">
7899 \begin_layout Standard
7905 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7908 \begin_layout Standard
7916 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7919 \begin_layout Standard
7927 <cell alignment="center" valignment="top" topline="true" usebox="none">
7930 \begin_layout Standard
7936 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7939 \begin_layout Standard
7947 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7950 \begin_layout Standard
7958 <cell alignment="center" valignment="top" topline="true" usebox="none">
7961 \begin_layout Standard
7967 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7970 \begin_layout Standard
7978 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7981 \begin_layout Standard
7989 <cell alignment="center" valignment="top" topline="true" usebox="none">
7992 \begin_layout Standard
7998 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8001 \begin_layout Standard
8009 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8012 \begin_layout Standard
8020 <cell alignment="center" valignment="top" topline="true" usebox="none">
8023 \begin_layout Standard
8029 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8032 \begin_layout Standard
8040 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8043 \begin_layout Standard
8051 <cell alignment="center" valignment="top" topline="true" usebox="none">
8054 \begin_layout Standard
8060 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8063 \begin_layout Standard
8071 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8074 \begin_layout Standard
8082 <cell alignment="center" valignment="top" topline="true" usebox="none">
8085 \begin_layout Standard
8091 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8094 \begin_layout Standard
8102 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8105 \begin_layout Standard
8113 <cell alignment="center" valignment="top" topline="true" usebox="none">
8116 \begin_layout Standard
8122 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8125 \begin_layout Standard
8133 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8136 \begin_layout Standard
8144 <cell alignment="center" valignment="top" topline="true" usebox="none">
8147 \begin_layout Standard
8153 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8156 \begin_layout Standard
8164 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8167 \begin_layout Standard
8175 <cell alignment="center" valignment="top" topline="true" usebox="none">
8178 \begin_layout Standard
8184 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8187 \begin_layout Standard
8195 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8198 \begin_layout Standard
8206 <cell alignment="center" valignment="top" topline="true" usebox="none">
8209 \begin_layout Standard
8215 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8218 \begin_layout Standard
8225 <row bottomline="true">
8226 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8229 \begin_layout Standard
8237 <cell alignment="center" valignment="top" topline="true" usebox="none">
8240 \begin_layout Standard
8246 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8249 \begin_layout Standard
8256 <row bottomline="true" endlastfoot="true">
8257 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
8260 \begin_layout Standard
8266 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8269 \begin_layout Standard
8275 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8278 \begin_layout Standard
8292 \begin_layout Section
8293 Special Longtable Issues
8294 \begin_inset LatexCommand label
8295 name "sec:Special-Longtable-Issues"
8302 \begin_layout Subsection
8303 Longtable Calculation
8304 \begin_inset LatexCommand index
8305 name "Longtables ! Calculation"
8312 \begin_layout Standard
8313 LaTeX calculates the height of table pages and their page breaks using so
8315 Chunks are pieces of the tables that are at once in LaTeX's memory.
8316 The default value is historically set to only 20 table rows.
8317 If you are using longtables with many pages this may slow down the creation
8319 You can safely increase the chunk size to values of 100-1000 by adding
8320 this command line to your document preamble:
8323 \begin_layout Standard
8328 setcounter{LTchunksize}{100}
8331 \begin_layout Subsection
8332 Floats and Longtables
8333 \begin_inset LatexCommand index
8334 name "Longtables ! Floats"
8341 \begin_layout Standard
8342 There might be problems when a float appears on the same page where a longtable
8344 To avoid such situation, add the command
8350 as ERT before your longtable.
8353 \begin_layout Subsection
8355 \begin_inset LatexCommand index
8356 name "Longtables ! Forced Page Breaks"
8363 \begin_layout Standard
8364 By default tables are only broken between rows.
8365 If you have a cell with multiples lines and want to have a page break within
8366 the cell, insert the new line command
8367 \begin_inset Quotes eld
8379 \begin_inset Quotes erd
8382 as ERT at this point of the cell where it should be broken.
8391 command you have to insert in ERT so many
8392 \begin_inset Quotes eld
8400 \begin_inset Quotes erd
8403 characters like the number of the following table columns.
8408 is the character to separate table cells.
8409 Write in ERT after each
8413 the content of the corresponding following cell and delete the content
8424 command, insert so many
8428 characters like the number of table columns before the current column.
8429 In Table\InsetSpace ~
8431 \begin_inset LatexCommand ref
8432 reference "tab:ForcedPagebreak"
8436 the cell that should be broken is in the second column followed by another
8438 Therefore the following command was inserted in the cell as ERT behind
8440 \begin_inset Quotes eld
8448 \begin_inset Quotes erd
8454 \begin_layout Standard
8466 \begin_layout Standard
8468 \begin_inset Quotes eld
8472 \begin_inset Quotes erd
8475 in the third columns of the row was deleted.
8476 If your footer row of the longtable has for a certain reason no upper line
8477 but you would have a horizontal line where the cell is broken, use this
8481 \begin_layout Standard
8495 \begin_layout Standard
8496 When the cell to be broken is in the last column, the command
8499 \begin_layout Standard
8506 parf\SpecialChar \textcompwordmark{}
8510 \begin_layout Standard
8511 must be inserted as ERT at the beginning of the cell.
8512 This assures that the part of the cell that will be displayed on the new
8513 page appears with the full width.
8517 \begin_layout Standard
8519 \begin_inset Tabular
8520 <lyxtabular version="3" rows="39" columns="3">
8521 <features islongtable="true">
8522 <column alignment="left" valignment="top" leftline="true" width="0cm">
8523 <column alignment="left" valignment="top" rightline="true" width="3cm">
8524 <column alignment="right" valignment="top" rightline="true" width="0pt">
8525 <row endfirsthead="true">
8526 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8529 \begin_layout Standard
8530 \begin_inset Caption
8532 \begin_layout Standard
8533 Table with forced page break in table cell
8534 \begin_inset LatexCommand label
8535 name "tab:ForcedPagebreak"
8543 \begin_layout Standard
8544 Table with forced page break in table cell
8558 \begin_layout Standard
8574 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8577 \begin_layout Standard
8583 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8586 \begin_layout Standard
8593 <row topline="true" bottomline="true" endfirsthead="true">
8594 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8597 \begin_layout Standard
8600 Example Phone List (ignore the names)
8605 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8608 \begin_layout Standard
8614 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8617 \begin_layout Standard
8624 <row topline="true" bottomline="true" endfirsthead="true">
8625 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8628 \begin_layout Standard
8636 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8639 \begin_layout Standard
8645 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8648 \begin_layout Standard
8657 <row bottomline="true" endhead="true">
8658 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8661 \begin_layout Standard
8665 \begin_layout Standard
8669 caption*{Continued table with forced page break in table cell}
8683 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8686 \begin_layout Standard
8692 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8695 \begin_layout Standard
8702 <row topline="true" bottomline="true" endhead="true">
8703 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8706 \begin_layout Standard
8714 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8717 \begin_layout Standard
8723 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8726 \begin_layout Standard
8733 <row topline="true" bottomline="true" endhead="true">
8734 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8737 \begin_layout Standard
8745 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8748 \begin_layout Standard
8754 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8757 \begin_layout Standard
8766 <row topline="true" bottomline="true" endfoot="true">
8767 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
8770 \begin_layout Standard
8771 continued on next page
8776 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8779 \begin_layout Standard
8785 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8788 \begin_layout Standard
8796 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8799 \begin_layout Standard
8807 <cell alignment="center" valignment="top" topline="true" usebox="none">
8810 \begin_layout Standard
8816 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8819 \begin_layout Standard
8827 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8830 \begin_layout Standard
8838 <cell alignment="center" valignment="top" topline="true" usebox="none">
8841 \begin_layout Standard
8847 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8850 \begin_layout Standard
8858 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8861 \begin_layout Standard
8869 <cell alignment="center" valignment="top" topline="true" usebox="none">
8872 \begin_layout Standard
8878 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8881 \begin_layout Standard
8889 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8892 \begin_layout Standard
8900 <cell alignment="center" valignment="top" topline="true" usebox="none">
8903 \begin_layout Standard
8909 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8912 \begin_layout Standard
8920 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8923 \begin_layout Standard
8931 <cell alignment="center" valignment="top" topline="true" usebox="none">
8934 \begin_layout Standard
8940 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8943 \begin_layout Standard
8951 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8954 \begin_layout Standard
8962 <cell alignment="center" valignment="top" topline="true" usebox="none">
8965 \begin_layout Standard
8971 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8974 \begin_layout Standard
8982 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8985 \begin_layout Standard
8993 <cell alignment="center" valignment="top" topline="true" usebox="none">
8996 \begin_layout Standard
9002 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9005 \begin_layout Standard
9013 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9016 \begin_layout Standard
9024 <cell alignment="center" valignment="top" topline="true" usebox="none">
9027 \begin_layout Standard
9033 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9036 \begin_layout Standard
9044 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9047 \begin_layout Standard
9055 <cell alignment="center" valignment="top" topline="true" usebox="none">
9058 \begin_layout Standard
9064 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9067 \begin_layout Standard
9075 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9078 \begin_layout Standard
9086 <cell alignment="center" valignment="top" topline="true" usebox="none">
9089 \begin_layout Standard
9095 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9098 \begin_layout Standard
9106 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9109 \begin_layout Standard
9117 <cell alignment="center" valignment="top" topline="true" usebox="none">
9120 \begin_layout Standard
9126 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9129 \begin_layout Standard
9137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9140 \begin_layout Standard
9148 <cell alignment="center" valignment="top" topline="true" usebox="none">
9151 \begin_layout Standard
9157 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9160 \begin_layout Standard
9168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9171 \begin_layout Standard
9179 <cell alignment="center" valignment="top" topline="true" usebox="none">
9182 \begin_layout Standard
9188 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9191 \begin_layout Standard
9199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9202 \begin_layout Standard
9210 <cell alignment="center" valignment="top" topline="true" usebox="none">
9213 \begin_layout Standard
9219 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9222 \begin_layout Standard
9230 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9233 \begin_layout Standard
9241 <cell alignment="center" valignment="top" topline="true" usebox="none">
9244 \begin_layout Standard
9250 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9253 \begin_layout Standard
9261 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9264 \begin_layout Standard
9272 <cell alignment="center" valignment="top" topline="true" usebox="none">
9275 \begin_layout Standard
9281 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9284 \begin_layout Standard
9292 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9295 \begin_layout Standard
9303 <cell alignment="center" valignment="top" topline="true" usebox="none">
9306 \begin_layout Standard
9312 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9315 \begin_layout Standard
9323 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9326 \begin_layout Standard
9334 <cell alignment="center" valignment="top" topline="true" usebox="none">
9337 \begin_layout Standard
9343 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9346 \begin_layout Standard
9354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9357 \begin_layout Standard
9365 <cell alignment="center" valignment="top" topline="true" usebox="none">
9368 \begin_layout Standard
9374 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9377 \begin_layout Standard
9385 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9388 \begin_layout Standard
9396 <cell alignment="center" valignment="top" topline="true" usebox="none">
9399 \begin_layout Standard
9405 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9408 \begin_layout Standard
9416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9419 \begin_layout Standard
9427 <cell alignment="center" valignment="top" topline="true" usebox="none">
9430 \begin_layout Standard
9436 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9439 \begin_layout Standard
9447 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9450 \begin_layout Standard
9458 <cell alignment="center" valignment="top" topline="true" usebox="none">
9461 \begin_layout Standard
9467 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9470 \begin_layout Standard
9478 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9481 \begin_layout Standard
9489 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9492 \begin_layout Standard
9494 Fürst von Montecompatri, 11.
9495 Fürst von Sulmona und Vivaro, 10.
9496 Fürst von Rossano, 5.
9497 Herzog von Canemorte, 11.
9498 Herzog von Palombara, 5.
9499 Herzog von Castelchiodato,
9503 \begin_layout Standard
9512 \begin_layout Standard
9520 Herzog von Poggionativo, 11.
9521 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
9522 Graf von Valinfreda, 11.
9523 Baron von Cropalati, 11.
9524 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
9529 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9532 \begin_layout Standard
9540 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9543 \begin_layout Standard
9551 <cell alignment="center" valignment="top" topline="true" usebox="none">
9554 \begin_layout Standard
9560 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9563 \begin_layout Standard
9571 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9574 \begin_layout Standard
9582 <cell alignment="center" valignment="top" topline="true" usebox="none">
9585 \begin_layout Standard
9591 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9594 \begin_layout Standard
9602 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9605 \begin_layout Standard
9613 <cell alignment="center" valignment="top" topline="true" usebox="none">
9616 \begin_layout Standard
9622 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9625 \begin_layout Standard
9633 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9636 \begin_layout Standard
9644 <cell alignment="center" valignment="top" topline="true" usebox="none">
9647 \begin_layout Standard
9653 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9656 \begin_layout Standard
9664 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9667 \begin_layout Standard
9675 <cell alignment="center" valignment="top" topline="true" usebox="none">
9678 \begin_layout Standard
9684 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9687 \begin_layout Standard
9695 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9698 \begin_layout Standard
9706 <cell alignment="center" valignment="top" topline="true" usebox="none">
9709 \begin_layout Standard
9715 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9718 \begin_layout Standard
9726 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9729 \begin_layout Standard
9737 <cell alignment="center" valignment="top" topline="true" usebox="none">
9740 \begin_layout Standard
9746 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9749 \begin_layout Standard
9756 <row bottomline="true">
9757 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9760 \begin_layout Standard
9768 <cell alignment="center" valignment="top" topline="true" usebox="none">
9771 \begin_layout Standard
9777 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9780 \begin_layout Standard
9787 <row endlastfoot="true">
9788 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9791 \begin_layout Standard
9797 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9800 \begin_layout Standard
9806 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9809 \begin_layout Standard
9823 \begin_layout Section
9824 Multiple Lines Columns and Rows
9827 \begin_layout Subsection
9828 Multiple Lines in Table Cells
9829 \begin_inset LatexCommand label
9830 name "sub:Multiple-Lines-in"
9835 \begin_inset LatexCommand index
9836 name "Multiple Lines in Table Cells"
9841 \begin_inset LatexCommand index
9842 name "Table ! Linebreaks"
9849 \begin_layout Standard
9851 \begin_inset Float table
9857 \begin_layout Standard
9858 \begin_inset Caption
9860 \begin_layout Standard
9861 \begin_inset LatexCommand label
9862 name "tab:Table-with-multiple"
9866 Table with multiple lines in cells
9874 \begin_layout Standard
9876 \begin_inset Tabular
9877 <lyxtabular version="3" rows="3" columns="3">
9879 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
9880 <column alignment="center" valignment="middle" leftline="true" width="0">
9881 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
9882 <row topline="true">
9883 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9886 \begin_layout Standard
9891 \begin_layout Standard
9905 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9908 \begin_layout Standard
9914 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9917 \begin_layout Standard
9924 <row topline="true">
9925 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9928 \begin_layout Standard
9934 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9937 \begin_layout Standard
9943 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9946 \begin_layout Standard
9953 <row topline="true" bottomline="true">
9954 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9957 \begin_layout Standard
9963 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9966 \begin_layout Standard
9972 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9975 \begin_layout Standard
9994 \begin_layout Standard
9995 Adjusting a fixed width for a column, enables to enter text as a paragraph
9996 with multiple lines and hyphenations.
9999 \begin_layout Standard
10000 To produce Table\InsetSpace ~
10002 \begin_inset LatexCommand ref
10003 reference "tab:Table-with-multiple"
10007 , create a 3×3 table, mark the first cell and right-click on it.
10008 In the appearing table dialog we set a cell width of 2.5\InsetSpace \thinspace{}
10009 cm and choose centered
10010 for the vertical and horizontal alignment.
10011 The vertical alignment is used for all cells of the row.
10012 As our text is smaller than than 2.5\InsetSpace \thinspace{}
10013 cm, only one line will appear.
10014 To get two lines, we add a line break with the command
10017 \begin_layout Standard
10025 \begin_layout Standard
10027 If the text is wider than the set cell width it will automatically be broken
10031 \begin_layout Standard
10032 If you have a long word in a cell with a fixed width, it cannot be hyphenated
10033 by LaTeX if it is the first entry.
10034 Therefore you need to insert something, to make the word not being the
10035 first entry: Add the command
10038 \begin_layout Standard
10046 \begin_layout Standard
10047 in ERT before the word.
10048 As the space is zero, it doesn't change the output.
10051 \begin_inset LatexCommand ref
10052 reference "tab:Table-with-and"
10059 \begin_layout Standard
10060 \begin_inset Float table
10066 \begin_layout Standard
10067 \begin_inset Caption
10069 \begin_layout Standard
10070 \begin_inset LatexCommand label
10071 name "tab:Table-with-and"
10075 Table with and without hyphenation
10083 \begin_layout Standard
10087 \begin_inset Tabular
10088 <lyxtabular version="3" rows="3" columns="3">
10090 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10091 <column alignment="center" valignment="middle" leftline="true" width="0">
10092 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
10093 <row topline="true">
10094 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10097 \begin_layout Standard
10098 verylongtablecellword
10103 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10106 \begin_layout Standard
10112 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10115 \begin_layout Standard
10122 <row topline="true">
10123 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10126 \begin_layout Standard
10132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10135 \begin_layout Standard
10141 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10144 \begin_layout Standard
10151 <row topline="true" bottomline="true">
10152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10155 \begin_layout Standard
10161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10164 \begin_layout Standard
10170 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10173 \begin_layout Standard
10187 \begin_inset Tabular
10188 <lyxtabular version="3" rows="3" columns="3">
10190 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10191 <column alignment="center" valignment="middle" leftline="true" width="0">
10192 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
10193 <row topline="true">
10194 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10197 \begin_layout Standard
10201 \begin_layout Standard
10210 verylongtablecellword
10215 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10218 \begin_layout Standard
10224 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10227 \begin_layout Standard
10234 <row topline="true">
10235 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10238 \begin_layout Standard
10244 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10247 \begin_layout Standard
10253 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10256 \begin_layout Standard
10263 <row topline="true" bottomline="true">
10264 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10267 \begin_layout Standard
10273 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10276 \begin_layout Standard
10282 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10285 \begin_layout Standard
10306 \begin_layout Standard
10312 \begin_layout Subsection
10314 \begin_inset LatexCommand label
10315 name "sub:Multicolumns"
10320 \begin_inset LatexCommand index
10321 name "Multicolumns"
10326 \begin_inset LatexCommand index
10327 name "Table ! Multicolumns"
10334 \begin_layout Subsubsection
10338 \begin_layout Standard
10339 To span a cell over multiple columns, mark as much cells within a line that
10340 should be one spanned cell and use either the table-toolbar button
10341 \begin_inset Graphics
10342 filename ../images/tabular-feature_multicolumn.xpm
10349 Edit\SpecialChar \menuseparator
10350 Table\SpecialChar \menuseparator
10353 , or right click on the marked cells and choose multicolumn in the appearing
10354 table dialog under the tab
10361 \begin_layout Standard
10362 Multicolumns have there own cell settings.
10363 That means changing cell borders, cell alignment, and the width only affects
10365 Here is an example table with a multicolumn cell in the first row and one
10366 in the last row without the upper border:
10369 \begin_layout Standard
10371 \begin_inset Tabular
10372 <lyxtabular version="3" rows="3" columns="4">
10373 <features firstHeadTopDL="true" firstHeadBottomDL="true">
10374 <column alignment="center" valignment="top" leftline="true" width="0pt">
10375 <column alignment="center" valignment="middle" leftline="true" width="0">
10376 <column alignment="center" valignment="top" leftline="true" width="0in">
10377 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
10378 <row topline="true" bottomline="true">
10379 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10382 \begin_layout Standard
10388 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
10391 \begin_layout Standard
10401 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10404 \begin_layout Standard
10410 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10413 \begin_layout Standard
10420 <row topline="true">
10421 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10424 \begin_layout Standard
10439 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10442 \begin_layout Standard
10448 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10451 \begin_layout Standard
10457 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10460 \begin_layout Standard
10467 <row topline="true" bottomline="true">
10468 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10471 \begin_layout Standard
10477 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10480 \begin_layout Standard
10486 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10489 \begin_layout Standard
10495 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10498 \begin_layout Standard
10512 \begin_layout Subsubsection
10513 Multicolumn Calculations
10514 \begin_inset LatexCommand label
10515 name "sub:Multicolumn-Calculations"
10520 \begin_inset LatexCommand index
10521 name "Multicolumns ! Calculations"
10528 \begin_layout Standard
10529 LyX supports multicolumns directly, but we have to take notice of the cell
10530 width of the columns spanned by the multicolumn cell.
10533 \begin_layout Standard
10534 \begin_inset Float table
10539 \begin_layout Standard
10540 \begin_inset Caption
10542 \begin_layout Standard
10543 \begin_inset LatexCommand label
10544 name "tab:Table-with-centered"
10548 Table with centered multicolumn text above two columns that have exactly
10549 half the width of the multicolumn cell
10550 \begin_inset OptArg
10553 \begin_layout Standard
10554 Perfect multicolumn table
10567 \begin_layout Standard
10569 \begin_inset Tabular
10570 <lyxtabular version="3" rows="3" columns="3">
10572 <column alignment="center" valignment="middle" leftline="true" width="0" special=">{\centering}m{1.25cm-6.2pt}">
10573 <column alignment="center" valignment="middle" leftline="true" width="0">
10574 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10575 <row topline="true">
10576 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
10579 \begin_layout Standard
10580 multiple lines multicolumn
10585 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10588 \begin_layout Standard
10594 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10597 \begin_layout Standard
10604 <row topline="true">
10605 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10608 \begin_layout Standard
10614 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10617 \begin_layout Standard
10623 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10626 \begin_layout Standard
10633 <row topline="true" bottomline="true">
10634 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10637 \begin_layout Standard
10643 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10646 \begin_layout Standard
10652 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10655 \begin_layout Standard
10674 \begin_layout Standard
10675 To create for example Table\InsetSpace ~
10677 \begin_inset LatexCommand ref
10678 reference "tab:Table-with-centered"
10682 , mark the first two cells in the first row of a 3×3 table and right-click
10684 Now choose for this cell
10692 and a width of 2.5\InsetSpace \thinspace{}
10693 cm in the table dialog.
10694 The spanned columns should have exactly half the width of the multicolumn
10695 cell, so that you would adjust a width of 1.25\InsetSpace \thinspace{}
10696 cm for the first column.
10697 The second column has then automatically a width of 1.25\InsetSpace \thinspace{}
10699 width - width of first column).
10700 This was done for Table\InsetSpace ~
10702 \begin_inset LatexCommand ref
10703 reference "tab:Table-without-half"
10710 \begin_layout Standard
10711 \begin_inset Float table
10716 \begin_layout Standard
10717 \begin_inset Caption
10719 \begin_layout Standard
10720 \begin_inset LatexCommand label
10721 name "tab:Table-without-half"
10725 Table where the spanned table columns have not exactly half the width of
10726 the multicolumn cell
10727 \begin_inset OptArg
10730 \begin_layout Standard
10731 Imperfect multicolumn table
10744 \begin_layout Standard
10746 \begin_inset Tabular
10747 <lyxtabular version="3" rows="3" columns="3">
10749 <column alignment="center" valignment="top" leftline="true" width="1.25cm">
10750 <column alignment="center" valignment="top" leftline="true" width="0">
10751 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10752 <row topline="true" bottomline="true">
10753 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
10756 \begin_layout Standard
10757 multiple lines multicolumn
10762 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10765 \begin_layout Standard
10771 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10774 \begin_layout Standard
10781 <row topline="true">
10782 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10785 \begin_layout Standard
10791 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10794 \begin_layout Standard
10800 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10803 \begin_layout Standard
10810 <row topline="true" bottomline="true">
10811 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10814 \begin_layout Standard
10820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10823 \begin_layout Standard
10829 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10832 \begin_layout Standard
10851 \begin_layout Standard
10852 You can see that the first column has not the half width of the multicolumn
10853 cell, it is a bit bigger.
10854 The reason is that the given width of a cell
10855 \begin_inset Formula $W_{g}$
10858 is not its total width
10859 \begin_inset Formula $W_{\mathrm{tot}}$
10862 because a cell is always a bit larger than its given width.
10863 Appendix\InsetSpace ~
10865 \begin_inset LatexCommand eqref
10866 reference "cha:Explanation-of-Equation"
10870 explains it in detail.
10873 \begin_layout Standard
10874 The needed given width
10875 \begin_inset Formula $W_{g\, n}$
10882 columns are spanned can be calculated, so that each column has a total
10884 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
10888 \begin_inset Formula \begin{equation}
10889 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)·(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
10896 \begin_layout Standard
10897 In our case we have
10898 \begin_inset Formula $n=2$
10902 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
10905 cm and the default values for the lengths, so that equation
10906 \begin_inset LatexCommand ref
10912 \begin_inset Formula \begin{equation}
10913 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
10920 \begin_layout Standard
10921 To enable calculations in LaTeX, the LaTeX-package
10925 must be loaded with the document preamble line
10926 \begin_inset LatexCommand index
10927 name "LaTeX-packages ! calc"
10934 \begin_layout Standard
10942 \begin_layout Standard
10943 LyX does not allow to calculate lengths in the width-field of the table
10945 Therefore you have to format the column by inserting a LaTeX-argument in
10947 Here is an overview about the arguments:
10950 \begin_layout Itemize
10955 creates cell with a fixed width, its text is vertically top-aligned
10958 \begin_layout Itemize
10963 creates cell with a fixed width, its text is vertically centered
10966 \begin_layout Itemize
10971 creates cell with a fixed width, its text is vertically bottom-aligned
10974 \begin_layout Standard
10975 By entering a LaTeX-argument, all cell properties set in the table dialog
10978 \begin_inset Note Greyedout
10981 \begin_layout Standard
10986 Due to a bug, LyX shows the overwritten properties anyway.
10991 As the text should be horizontally centered, the command
10998 You can now enter the following LaTeX-argument for the first spanned column:
11001 \begin_layout Standard
11006 centering}m{1.25cm-6.2pt}
11009 \begin_layout Standard
11014 means, that the commands inside the braces are applied before the cell
11018 \begin_layout Standard
11019 Although we have chosen centered alignment for the text of the multicolumn
11020 cell, it is still left aligned.
11021 This is because LyX only applies the alignment to single columns.
11022 So we have to use for the multicolumn the LaTeX-argument
11025 \begin_layout Standard
11033 \begin_layout Subsection
11035 \begin_inset LatexCommand index
11041 \begin_inset LatexCommand index
11042 name "Table ! Multirows"
11047 \begin_inset LatexCommand index
11048 name "LaTeX-packages ! multirow"
11055 \begin_layout Standard
11056 In contrary to multicolumns multirows are not yet supported by LyX so a
11057 bit of ERT needs to be used.
11058 To use multirows load the LaTeX-package
11062 in your document preamble with the command
11065 \begin_layout Standard
11070 usepackage{multirow}
11073 \begin_layout Standard
11074 Multirows are created with the command
11077 \begin_layout Standard
11082 multirow{number of rows}{cell width}{cell entry}
11085 \begin_layout Standard
11086 To create the following table:
11089 \begin_layout Standard
11094 \begin_layout Standard
11108 \begin_inset Tabular
11109 <lyxtabular version="3" rows="3" columns="3">
11111 <column alignment="center" valignment="top" leftline="true" width="0">
11112 <column alignment="center" valignment="top" leftline="true" width="0">
11113 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
11114 <row topline="true">
11115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11118 \begin_layout Standard
11124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11127 \begin_layout Standard
11133 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11136 \begin_layout Standard
11143 <row topline="true">
11144 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11147 \begin_layout Standard
11151 \begin_layout Standard
11155 multirow{2}{2.5cm}{
11164 \begin_layout Standard
11176 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11179 \begin_layout Standard
11185 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11188 \begin_layout Standard
11195 <row topline="true" bottomline="true">
11196 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11199 \begin_layout Standard
11205 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11208 \begin_layout Standard
11214 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11217 \begin_layout Standard
11232 \begin_layout Standard
11248 \begin_layout Standard
11249 create a 3×3 table.
11250 To get rid of the line above the last cell in the first column, the cell
11251 is marked as multicolumn and the upper border is unset.
11252 The multirow is now created in the second row of the first column by inserting
11256 \begin_layout Standard
11261 multirow{2}{2.5cm}{
11264 \begin_layout Standard
11266 According to the command parameters the multirow spans now two rows and
11267 has a width of 2.5\InsetSpace \thinspace{}
11269 The content of the multirow cell follows outside the ERT box and the command
11270 is finished with a right brace
11274 in another ERT-box behind the text.
11277 \begin_layout Standard
11284 left-aligns its content by default.
11285 To override the default, renew the command
11294 \begin_layout Standard
11306 \begin_layout Standard
11307 in ERT in the document preamble.
11308 Then all entries of multirow cells in the document are centered.
11309 If centering is only needed for several tables, you can renew the command
11310 in an ERT box just before the table instead of the preamble.
11311 If the text should be right-aligned, replace
11324 To return to left-alignment
11333 \begin_layout Section
11335 \begin_inset LatexCommand label
11336 name "sec:Formal-Tables"
11341 \begin_inset LatexCommand index
11342 name "Table ! Formal"
11349 \begin_layout Standard
11350 Tables are often typeset in books similar to Table\InsetSpace ~
11352 \begin_inset LatexCommand ref
11353 reference "tab:Example-booktabs-table"
11358 This kind of tables is called
11359 \begin_inset Quotes eld
11367 \begin_inset Quotes erd
11371 To make a table a formal table use the option
11379 tab of the table dialog.
11382 \begin_layout Standard
11383 \begin_inset Float table
11389 \begin_layout Standard
11390 \begin_inset Caption
11392 \begin_layout Standard
11393 \begin_inset LatexCommand label
11394 name "tab:Example-booktabs-table"
11398 Example booktabs-table
11406 \begin_layout Standard
11408 \begin_inset Tabular
11409 <lyxtabular version="3" rows="8" columns="4">
11410 <features booktabs="true">
11411 <column alignment="center" valignment="top" rightline="true" width="0">
11412 <column alignment="center" valignment="top" width="0">
11413 <column alignment="center" valignment="top" width="0">
11414 <column alignment="center" valignment="top" width="0">
11415 <row topline="true">
11416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11419 \begin_layout Standard
11425 <cell alignment="center" valignment="top" topline="true" usebox="none">
11428 \begin_layout Standard
11430 \begin_inset Formula $\,$
11438 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
11441 \begin_layout Standard
11443 \begin_inset Formula $\,$
11451 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11454 \begin_layout Standard
11462 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11465 \begin_layout Standard
11469 \begin_layout Standard
11482 \begin_layout Standard
11491 Detector thickness [µm]
11496 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11499 \begin_layout Standard
11505 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11508 \begin_layout Standard
11514 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11517 \begin_layout Standard
11524 <row topline="true">
11525 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11528 \begin_layout Standard
11534 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11537 \begin_layout Standard
11543 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11546 \begin_layout Standard
11552 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11555 \begin_layout Standard
11562 <row topspace="default">
11563 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11566 \begin_layout Standard
11567 Spatial resolution [µm]
11572 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11575 \begin_layout Standard
11581 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11584 \begin_layout Standard
11590 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11593 \begin_layout Standard
11600 <row topspace="default">
11601 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11604 \begin_layout Standard
11606 \begin_inset Formula $f_{\mathrm{max}}$
11614 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11617 \begin_layout Standard
11623 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11626 \begin_layout Standard
11632 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11635 \begin_layout Standard
11642 <row topspace="default">
11643 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11646 \begin_layout Standard
11650 \begin_layout Standard
11654 cmidrule(l{10pt}){1-1}
11659 LSF-spatial resolution
11664 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11667 \begin_layout Standard
11673 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11676 \begin_layout Standard
11682 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11685 \begin_layout Standard
11693 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11696 \begin_layout Standard
11702 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11705 \begin_layout Standard
11711 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11714 \begin_layout Standard
11720 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11723 \begin_layout Standard
11730 <row bottomline="true">
11731 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11734 \begin_layout Standard
11740 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11743 \begin_layout Standard
11749 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11752 \begin_layout Standard
11758 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11761 \begin_layout Standard
11780 \begin_layout Standard
11781 Spaces to table rows can be added using the
11785 tab of the table dialog as described in section\InsetSpace ~
11787 \begin_inset LatexCommand ref
11788 reference "sub:Row-Spacing"
11795 \begin_layout Standard
11796 In contrary to normal tables, formal tables have no vertical table lines.
11797 The horizontal table lines can be set like for normal tables but they appear
11798 with different width in the output:
11800 The first and the last table line have
11801 a default width of 0.08\InsetSpace \thinspace{}
11802 em while the other lines have a default width of
11803 0.05\InsetSpace \thinspace{}
11807 \begin_layout Standard
11808 The default widths can be changed with the following preamble lines
11811 \begin_layout Standard
11831 \begin_layout Standard
11832 This example is for the first line, the so called toprule.
11833 If you want to change the width for the last line, replace
11842 To change the width for the other lines replace
11851 You can use all units listed in appendix\InsetSpace ~
11853 \begin_inset LatexCommand ref
11854 reference "cha:Units-available-in"
11861 \begin_layout Standard
11862 Lines that don't span over all table columns can be created by setting a
11863 table line for multicolumn cells.
11864 LyX will then internally use the command
11870 to create this line.
11874 \begin_layout Standard
11879 cmidrule[width](trim){startcol-endcol}
11882 \begin_layout Standard
11889 are are currently not supported by LyX so you have to use ERT to be able
11897 s can manually be created by inserting the command as ERT as first cell
11898 entry of the first cell of a row.
11899 The line is then drawn in the output above the current row.
11902 \begin_layout Standard
11903 The default for the width is 0.03\InsetSpace \thinspace{}
11905 Startcol is the number of the column where the line starts and endcol the
11906 column number where the line ends.
11907 The endcol always needs to be specified, also when the line should span
11909 The optional parameter trim could be either
11917 where the trimwidth is also optional.
11918 Using for example the parameter
11922 means that the line is trimmed from its left end by 2\InsetSpace \thinspace{}
11924 If you don't specify the trimwidth the lines are trimmed by the default
11925 of 0.5\InsetSpace \thinspace{}
11929 \begin_layout Standard
11930 \begin_inset VSpace bigskip
11935 \begin_inset LatexCommand ref
11936 reference "tab:Example-booktabs-table"
11940 was created using the commands
11943 \begin_layout Standard
11953 \begin_layout Standard
11954 at the beginning of the in the second row and
11957 \begin_layout Standard
11962 cmidrule(l{10pt}){1-1}
11965 \begin_layout Standard
11969 \begin_layout Standard
11973 \begin_layout Standard
11974 \begin_inset VSpace bigskip
11980 \begin_layout Standard
11981 You might want to have overlapping
11987 s like in Table\InsetSpace ~
11989 \begin_inset LatexCommand ref
11990 reference "tab:Special-booktabs-table"
11995 This can be achieved with the ERT command
11998 \begin_layout Standard
12006 \begin_layout Standard
12007 The command that was used for the second row of Table\InsetSpace ~
12009 \begin_inset LatexCommand ref
12010 reference "tab:Special-booktabs-table"
12017 \begin_layout Standard
12031 \begin_layout Standard
12032 The command for the sixth row is
12035 \begin_layout Standard
12047 \begin_layout Standard
12048 \begin_inset VSpace bigskip
12054 \begin_layout Standard
12055 If you are anyway not satisfied with the border line spacing, you can use
12056 the following command to produce lines that span over all table columns
12061 \begin_layout Standard
12066 specialrule{width}{space above}{space below}
12069 \begin_layout Standard
12070 For more informations about these specialties, we refer to the manual of
12076 \begin_inset LatexCommand cite
12082 \begin_inset LatexCommand index
12083 name "LaTeX-packages ! booktabs"
12090 \begin_layout Standard
12091 \begin_inset Float table
12097 \begin_layout Standard
12098 \begin_inset Caption
12100 \begin_layout Standard
12101 \begin_inset LatexCommand label
12102 name "tab:Special-booktabs-table"
12106 Special booktabs-table
12114 \begin_layout Standard
12116 \begin_inset Tabular
12117 <lyxtabular version="3" rows="8" columns="4">
12118 <features booktabs="true">
12119 <column alignment="center" valignment="top" width="0">
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 <row topline="true">
12124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12127 \begin_layout Standard
12133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12136 \begin_layout Standard
12137 Medipix\InsetSpace \thinspace{}
12143 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
12146 \begin_layout Standard
12147 Medipix\InsetSpace \thinspace{}
12153 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12156 \begin_layout Standard
12164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12167 \begin_layout Standard
12171 \begin_layout Standard
12184 \begin_layout Standard
12197 \begin_layout Standard
12210 \begin_layout Standard
12219 Detector thickness [µm]
12224 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12227 \begin_layout Standard
12233 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12236 \begin_layout Standard
12242 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12245 \begin_layout Standard
12252 <row topline="true">
12253 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12256 \begin_layout Standard
12262 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12265 \begin_layout Standard
12271 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12274 \begin_layout Standard
12280 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12283 \begin_layout Standard
12290 <row topspace="default">
12291 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12294 \begin_layout Standard
12295 Spatial resolution [µm]
12300 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12303 \begin_layout Standard
12309 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12312 \begin_layout Standard
12318 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12321 \begin_layout Standard
12328 <row topspace="default">
12329 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12332 \begin_layout Standard
12334 \begin_inset Formula $f_{\mathrm{max}}$
12342 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12345 \begin_layout Standard
12351 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12354 \begin_layout Standard
12360 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12363 \begin_layout Standard
12370 <row topline="true">
12371 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12374 \begin_layout Standard
12378 \begin_layout Standard
12391 \begin_layout Standard
12400 LSF-spatial resolution
12405 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12408 \begin_layout Standard
12414 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12417 \begin_layout Standard
12423 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12426 \begin_layout Standard
12434 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12437 \begin_layout Standard
12443 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12446 \begin_layout Standard
12452 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12455 \begin_layout Standard
12461 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12464 \begin_layout Standard
12471 <row bottomline="true">
12472 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12475 \begin_layout Standard
12481 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12484 \begin_layout Standard
12490 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12493 \begin_layout Standard
12499 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12502 \begin_layout Standard
12521 \begin_layout Section
12522 Vertical Table Alignment
12523 \begin_inset LatexCommand index
12524 name "Table ! Alignment"
12531 \begin_layout Standard
12532 To align tables vertically in a text line the table must be inside a box.
12533 The box can then be vertically aligned as described in section\InsetSpace ~
12535 \begin_inset LatexCommand ref
12536 reference "sec:Box-Dialog"
12543 \begin_layout Standard
12544 In the following example the tables are inside a minipage
12548 \begin_layout Standard
12549 Minipages are described in section\InsetSpace ~
12551 \begin_inset LatexCommand ref
12552 reference "sec:Minipages"
12561 box that has a width of 15\InsetSpace \thinspace{}
12565 \begin_layout Itemize
12567 \begin_inset Box Frameless
12576 height_special "totalheight"
12579 \begin_layout Standard
12580 \begin_inset Tabular
12581 <lyxtabular version="3" rows="3" columns="3">
12583 <column alignment="center" valignment="top" leftline="true" width="0">
12584 <column alignment="center" valignment="top" leftline="true" width="0">
12585 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12586 <row topline="true">
12587 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12590 \begin_layout Standard
12596 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12599 \begin_layout Standard
12605 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12608 \begin_layout Standard
12615 <row topline="true">
12616 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12619 \begin_layout Standard
12625 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12628 \begin_layout Standard
12634 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12637 \begin_layout Standard
12644 <row topline="true" bottomline="true">
12645 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12648 \begin_layout Standard
12654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12657 \begin_layout Standard
12663 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12666 \begin_layout Standard
12686 \begin_layout Standard
12698 \begin_inset Box Frameless
12707 height_special "totalheight"
12710 \begin_layout Standard
12711 \begin_inset Tabular
12712 <lyxtabular version="3" rows="3" columns="3">
12714 <column alignment="center" valignment="top" leftline="true" width="0">
12715 <column alignment="center" valignment="top" leftline="true" width="0">
12716 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12717 <row topline="true">
12718 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12721 \begin_layout Standard
12727 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12730 \begin_layout Standard
12736 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12739 \begin_layout Standard
12746 <row topline="true">
12747 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12750 \begin_layout Standard
12756 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12759 \begin_layout Standard
12765 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12768 \begin_layout Standard
12775 <row topline="true" bottomline="true">
12776 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12779 \begin_layout Standard
12785 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12788 \begin_layout Standard
12794 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12797 \begin_layout Standard
12817 \begin_layout Standard
12827 \begin_layout Itemize
12829 \begin_inset Box Frameless
12838 height_special "totalheight"
12841 \begin_layout Standard
12842 \begin_inset Tabular
12843 <lyxtabular version="3" rows="3" columns="3">
12845 <column alignment="center" valignment="top" leftline="true" width="0">
12846 <column alignment="center" valignment="top" leftline="true" width="0">
12847 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12848 <row topline="true">
12849 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12852 \begin_layout Standard
12858 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12861 \begin_layout Standard
12867 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12870 \begin_layout Standard
12877 <row topline="true">
12878 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12881 \begin_layout Standard
12887 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12890 \begin_layout Standard
12896 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12899 \begin_layout Standard
12906 <row topline="true" bottomline="true">
12907 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12910 \begin_layout Standard
12916 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12919 \begin_layout Standard
12925 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12928 \begin_layout Standard
12947 \begin_layout Itemize
12949 \begin_inset Box Frameless
12958 height_special "totalheight"
12961 \begin_layout Standard
12962 \begin_inset Tabular
12963 <lyxtabular version="3" rows="3" columns="3">
12965 <column alignment="center" valignment="top" leftline="true" width="0">
12966 <column alignment="center" valignment="top" leftline="true" width="0">
12967 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12968 <row topline="true">
12969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12972 \begin_layout Standard
12978 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12981 \begin_layout Standard
12987 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12990 \begin_layout Standard
12997 <row topline="true">
12998 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13001 \begin_layout Standard
13007 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13010 \begin_layout Standard
13016 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13019 \begin_layout Standard
13026 <row topline="true" bottomline="true">
13027 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13030 \begin_layout Standard
13036 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13039 \begin_layout Standard
13045 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13048 \begin_layout Standard
13068 \begin_layout Standard
13080 \begin_inset Box Frameless
13089 height_special "totalheight"
13092 \begin_layout Standard
13093 \begin_inset Tabular
13094 <lyxtabular version="3" rows="3" columns="3">
13096 <column alignment="center" valignment="top" leftline="true" width="0">
13097 <column alignment="center" valignment="top" leftline="true" width="0">
13098 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13099 <row topline="true">
13100 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13103 \begin_layout Standard
13109 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13112 \begin_layout Standard
13118 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13121 \begin_layout Standard
13128 <row topline="true">
13129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13132 \begin_layout Standard
13138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13141 \begin_layout Standard
13147 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13150 \begin_layout Standard
13157 <row topline="true" bottomline="true">
13158 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13161 \begin_layout Standard
13167 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13170 \begin_layout Standard
13176 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13179 \begin_layout Standard
13199 \begin_layout Standard
13209 \begin_layout Standard
13210 As you can see, the content of the first and last table row is not correctly
13211 aligned with the text line where the table is in.
13212 To get this alignment, the minipage box must be set into a raisebox
13216 \begin_layout Standard
13217 Raiseboxes are described in section\InsetSpace ~
13219 \begin_inset LatexCommand ref
13220 reference "sub:Vertical-Alignment"
13230 In the example above the second table in the first item is aligned using
13234 \begin_layout Standard
13244 \begin_layout Standard
13246 Behind the box the closing brace
13250 is inserted as ERT.
13251 For the second table in the last item the command
13254 \begin_layout Standard
13264 \begin_layout Standard
13268 \begin_layout Standard
13269 \begin_inset Note Greyedout
13272 \begin_layout Standard
13277 The alignment of the table row content to the surrounding text line is
13279 The needed factor of the
13285 command for this alignment depends on the document font, the font size,
13286 and the table line thickness.
13294 \begin_layout Section
13296 \begin_inset LatexCommand label
13297 name "sec:Colored-Tables"
13302 \begin_inset LatexCommand index
13303 name "Table ! Color"
13310 \begin_layout Subsection
13312 \begin_inset LatexCommand index
13313 name "Table Color ! for Cells"
13318 \begin_inset LatexCommand index
13319 name "Color ! for Table Cells"
13326 \begin_layout Standard
13327 \begin_inset Float table
13333 \begin_layout Standard
13334 \begin_inset Caption
13336 \begin_layout Standard
13337 \begin_inset LatexCommand label
13338 name "tab:Table-colored-without"
13342 Table colored without using the package
13347 \begin_inset OptArg
13350 \begin_layout Standard
13351 Table without colortbl
13364 \begin_layout Standard
13366 \begin_inset Tabular
13367 <lyxtabular version="3" rows="3" columns="3">
13369 <column alignment="center" valignment="top" leftline="true" width="0">
13370 <column alignment="center" valignment="top" leftline="true" width="0">
13371 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13372 <row topline="true">
13373 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13376 \begin_layout Standard
13384 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13387 \begin_layout Standard
13395 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13398 \begin_layout Standard
13407 <row topline="true">
13408 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13411 \begin_layout Standard
13419 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13422 \begin_layout Standard
13430 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13433 \begin_layout Standard
13442 <row topline="true" bottomline="true">
13443 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13446 \begin_layout Standard
13454 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13457 \begin_layout Standard
13465 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13468 \begin_layout Standard
13489 \begin_layout Standard
13490 If you only need colored text, mark the cells and choose a color in the
13493 Edit\SpecialChar \menuseparator
13498 This was used to create Table\InsetSpace ~
13500 \begin_inset LatexCommand ref
13501 reference "tab:Table-colored-without"
13506 In any other case you have to use the LaTeX-package
13511 \begin_inset LatexCommand index
13512 name "LaTeX-packages ! colortbl"
13519 \begin_layout Standard
13520 To create colored tables,
13524 must be loaded in the preamble with the line
13527 \begin_layout Standard
13532 usepackage{colortbl}
13535 \begin_layout Standard
13536 The color of a column is adjusted with the command
13539 \begin_layout Standard
13544 columncolor{name of color}
13547 \begin_layout Standard
13553 More about the command
13557 is described in section\InsetSpace ~
13559 \begin_inset LatexCommand ref
13560 reference "sub:Multicolumn-Calculations"
13567 \begin_layout Standard
13568 The following color names are predefined:
13571 \begin_layout Standard
13605 \begin_layout Standard
13606 \begin_inset VSpace medskip
13612 \begin_layout Standard
13613 You can also define your own color with the command
13616 \begin_layout Standard
13621 def\SpecialChar \textcompwordmark{}
13622 inecolor{color name}{color model}{color values}
13625 \begin_layout Standard
13626 The color model can be
13629 \begin_layout Labeling
13630 \labelwidthstring 00.00.0000
13631 cmyk: cyan, magenta, yellow, black
13634 \begin_layout Labeling
13635 \labelwidthstring 00.00.0000
13636 rgb: red, green blue
13639 \begin_layout Labeling
13640 \labelwidthstring 00.00.0000
13644 \begin_layout Standard
13645 and the color values are comma separated numbers between 0 and 1 describing
13646 the factor for the corresponding color of the color model.
13649 \begin_layout Standard
13650 You can e.\InsetSpace \thinspace{}
13656 " in the preamble with
13659 \begin_layout Standard
13664 def\SpecialChar \textcompwordmark{}
13665 inecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
13668 \begin_layout Standard
13676 \begin_layout Standard
13681 def\SpecialChar \textcompwordmark{}
13682 inecolor{lightgray}{gray}{0.8}
13685 \begin_layout Standard
13686 \begin_inset VSpace medskip
13692 \begin_layout Standard
13693 Lines are colored with the command
13696 \begin_layout Standard
13701 rowcolor{name of color}
13704 \begin_layout Standard
13705 and cells are colored with the command
13708 \begin_layout Standard
13713 cellcolor{name of color}
13716 \begin_layout Standard
13717 Both commands are inserted at the beginning of a cell as ERT.
13720 \begin_layout Standard
13721 To color characters in the table, mark the cells and use the LyX menu
13723 Edit\SpecialChar \menuseparator
13728 If a cell contains ERT mark only the characters, otherwise the colored
13729 ERT will cause LaTeX-errors.
13732 \begin_layout Standard
13733 \begin_inset VSpace bigskip
13739 \begin_layout Standard
13740 To create Table\InsetSpace ~
13742 \begin_inset LatexCommand ref
13743 reference "tab:Table-colored-using"
13747 do the following: The color of the first column should be
13755 \begin_layout Standard
13760 columncolor{darkgreen}
13765 \begin_layout Standard
13766 as LaTeX-argument for this column.
13767 The first row should be blue, therefore the ERT command
13770 \begin_layout Standard
13778 \begin_layout Standard
13779 is inserted to the first cell of this row.
13780 Note that this overwrites the column color for the first cell.
13781 The last cell of the last row is colored magenta by inserting the ERT command
13784 \begin_layout Standard
13792 \begin_layout Standard
13793 The characters could now be colored using the menu
13795 Edit\SpecialChar \menuseparator
13802 \begin_layout Standard
13803 \begin_inset Float table
13809 \begin_layout Standard
13810 \begin_inset Caption
13812 \begin_layout Standard
13813 \begin_inset LatexCommand label
13814 name "tab:Table-colored-using"
13818 Table colored using the package
13823 \begin_inset OptArg
13826 \begin_layout Standard
13827 Table with colortbl
13840 \begin_layout Standard
13842 \begin_inset Tabular
13843 <lyxtabular version="3" rows="3" columns="3">
13845 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
13846 <column alignment="center" valignment="top" width="0">
13847 <column alignment="center" valignment="top" width="0">
13849 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13852 \begin_layout Standard
13856 \begin_layout Standard
13872 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13875 \begin_layout Standard
13883 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13886 \begin_layout Standard
13896 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13899 \begin_layout Standard
13907 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13910 \begin_layout Standard
13918 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13921 \begin_layout Standard
13931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13934 \begin_layout Standard
13942 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13945 \begin_layout Standard
13953 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13956 \begin_layout Standard
13960 \begin_layout Standard
13989 \begin_layout Subsection
13991 \begin_inset LatexCommand index
13992 name "Table Color ! for Lines"
13997 \begin_inset LatexCommand index
13998 name "Color ! for Table Lines"
14005 \begin_layout Standard
14006 As described in section\InsetSpace ~
14008 \begin_inset LatexCommand ref
14009 reference "sub:Line-Thickness"
14013 , the line thickness for all lines in a table can be adjusted with the length
14021 It is set to 1.5\InsetSpace \thinspace{}
14022 pt for all tables of this section.
14026 \begin_layout Standard
14032 arrayrulewidth}{1.5pt}
14040 \begin_layout Standard
14041 To color vertical lines for example with green, create the following column
14042 format in the document preamble, according to the description in section\InsetSpace ~
14044 \begin_inset LatexCommand ref
14045 reference "sub:Customized-Format"
14052 \begin_layout Standard
14057 newcolumntype{W}{!{
14064 \begin_layout Standard
14065 For Table\InsetSpace ~
14067 \begin_inset LatexCommand ref
14068 reference "tab:Table-with-vertical-colored"
14075 \begin_layout Standard
14081 \begin_layout Standard
14082 was used for the last column and
14085 \begin_layout Standard
14091 \begin_layout Standard
14092 for the other columns.
14095 \begin_layout Standard
14096 If you want to have several colors, define more column formats.
14099 \begin_layout Standard
14100 \begin_inset Float table
14105 \begin_layout Standard
14106 \begin_inset Caption
14108 \begin_layout Standard
14109 \begin_inset LatexCommand label
14110 name "tab:Table-with-vertical-colored"
14114 Table with colored vertical lines
14122 \begin_layout Standard
14124 \begin_inset Tabular
14125 <lyxtabular version="3" rows="3" columns="3">
14127 <column alignment="center" valignment="top" width="0" special="Wc">
14128 <column alignment="center" valignment="top" width="0" special="Wc">
14129 <column alignment="center" valignment="top" width="0" special="WcW">
14130 <row topline="true">
14131 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14134 \begin_layout Standard
14140 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14143 \begin_layout Standard
14149 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14152 \begin_layout Standard
14159 <row topline="true">
14160 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14163 \begin_layout Standard
14169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14172 \begin_layout Standard
14178 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14181 \begin_layout Standard
14188 <row topline="true" bottomline="true">
14189 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14192 \begin_layout Standard
14198 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14201 \begin_layout Standard
14207 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14210 \begin_layout Standard
14229 \begin_layout Standard
14230 \begin_inset VSpace bigskip
14233 To color horizontal lines for example with red, like in Table\InsetSpace ~
14235 \begin_inset LatexCommand ref
14236 reference "tab:Table-with-horizontal-colored"
14240 , insert these commands in ERT before the table or table float:
14243 \begin_layout Standard
14260 arrayrulecolor{red}
14264 arrayrulecolor{black}}
14267 \begin_layout Standard
14271 \begin_layout Standard
14282 \begin_layout Standard
14290 arrayrulecolor{red}
14294 arrayrulecolor{black}}
14300 \begin_inset Float table
14305 \begin_layout Standard
14306 \begin_inset Caption
14308 \begin_layout Standard
14309 \begin_inset LatexCommand label
14310 name "tab:Table-with-horizontal-colored"
14314 Table with colored horizontal lines
14322 \begin_layout Standard
14324 \begin_inset Tabular
14325 <lyxtabular version="3" rows="3" columns="3">
14327 <column alignment="center" valignment="top" leftline="true" width="0">
14328 <column alignment="center" valignment="top" leftline="true" width="0">
14329 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14330 <row topline="true">
14331 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14334 \begin_layout Standard
14340 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14343 \begin_layout Standard
14349 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14352 \begin_layout Standard
14359 <row topline="true">
14360 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14363 \begin_layout Standard
14369 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14372 \begin_layout Standard
14378 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14381 \begin_layout Standard
14388 <row topline="true" bottomline="true">
14389 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14392 \begin_layout Standard
14398 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14401 \begin_layout Standard
14407 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14410 \begin_layout Standard
14429 \begin_layout Standard
14433 \begin_layout Standard
14445 \begin_layout Standard
14446 To return to the default line color black, insert this command in ERT behind
14447 the table or table float:
14450 \begin_layout Standard
14462 \begin_layout Standard
14465 \begin_inset LatexCommand ref
14466 reference "tab:Table-with-colored"
14470 is an example with colored vertical and horizontal lines.
14473 \begin_layout Standard
14474 \begin_inset Float table
14479 \begin_layout Standard
14480 \begin_inset Caption
14482 \begin_layout Standard
14483 \begin_inset LatexCommand label
14484 name "tab:Table-with-colored"
14488 Table with colored lines
14496 \begin_layout Standard
14498 \begin_inset Tabular
14499 <lyxtabular version="3" rows="3" columns="3">
14501 <column alignment="center" valignment="top" width="0" special="Wc">
14502 <column alignment="center" valignment="top" width="0" special="Wc">
14503 <column alignment="center" valignment="top" width="0" special="WcW">
14504 <row topline="true">
14505 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14508 \begin_layout Standard
14514 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14517 \begin_layout Standard
14523 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14526 \begin_layout Standard
14533 <row topline="true">
14534 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14537 \begin_layout Standard
14543 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14546 \begin_layout Standard
14552 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14555 \begin_layout Standard
14562 <row topline="true" bottomline="true" topspace="default">
14563 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14566 \begin_layout Standard
14572 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14575 \begin_layout Standard
14581 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14584 \begin_layout Standard
14603 \begin_layout Standard
14607 \begin_layout Standard
14623 \begin_layout Standard
14627 \begin_layout Standard
14633 arrayrulewidth}{0.4pt}
14641 \begin_layout Section
14642 Table Customization
14643 \begin_inset LatexCommand index
14644 name "Table Customization"
14649 \begin_inset LatexCommand index
14650 name "Table ! Customization"
14657 \begin_layout Subsection
14659 \begin_inset LatexCommand label
14660 name "sub:Row-Spacing"
14665 \begin_inset LatexCommand index
14666 name "Table Customization ! Row Spacing"
14673 \begin_layout Standard
14674 You can add vertical space to table rows in the
14678 tab of the table dialog.
14679 You find there three possibilities:
14682 \begin_layout Description
14685 row will add space above the characters of the table row.
14686 If the table is a formal table
14690 \begin_layout Standard
14691 Formal tables are explained in section\InsetSpace ~
14693 \begin_inset LatexCommand ref
14694 reference "sec:Formal-Tables"
14703 LyX will insert as default 0.5\InsetSpace \thinspace{}
14705 For normal tables the inserted space will unfortunately destroy the vertical
14706 table lines as in the following table:
14707 \begin_inset VSpace defskip
14716 \begin_layout Standard
14728 \begin_inset Tabular
14729 <lyxtabular version="3" rows="3" columns="1">
14731 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14732 <row topline="true">
14733 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14736 \begin_layout Standard
14743 <row topline="true" topspace="3mm">
14744 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14747 \begin_layout Standard
14748 3\InsetSpace \thinspace{}
14749 mm space top of row
14755 <row topline="true" bottomline="true">
14756 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14759 \begin_layout Standard
14776 \begin_layout Standard
14786 \begin_inset VSpace defskip
14791 So inserting space to the top of row for normal tables is only useful when
14792 you don't have vertical lines.
14795 \begin_layout Description
14796 Bottom\InsetSpace ~
14798 row will add space below the characters of the table row.
14799 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
14801 normal tables the default size is 2\InsetSpace \thinspace{}
14805 \begin_layout Description
14806 Between\InsetSpace ~
14807 rows adds space between the current and the following row.
14808 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
14810 For normal tables the inserted space will unfortunately destroy the vertical
14811 table lines as in the following table:
14812 \begin_inset VSpace defskip
14821 \begin_layout Standard
14833 \begin_inset Tabular
14834 <lyxtabular version="3" rows="3" columns="1">
14836 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14837 <row topline="true">
14838 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14841 \begin_layout Standard
14848 <row topline="true" interlinespace="3mm">
14849 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14852 \begin_layout Standard
14853 \begin_inset Formula $\downarrow$
14856 3\InsetSpace \thinspace{}
14857 mm space between row
14858 \begin_inset Formula $\downarrow$
14867 <row topline="true" bottomline="true">
14868 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14871 \begin_layout Standard
14872 \begin_inset Formula $\uparrow$
14875 3\InsetSpace \thinspace{}
14876 mm space between row
14877 \begin_inset Formula $\uparrow$
14896 \begin_layout Standard
14906 \begin_inset VSpace defskip
14911 So inserting space between rows for normal tables is only useful when you
14912 don't have vertical lines.
14915 \begin_layout Standard
14916 When you want to add extra height to all cells of all tables, you can do
14917 this with the following preamble line:
14920 \begin_layout Standard
14927 extrarowheight}{height}
14930 \begin_layout Standard
14931 But this has the disadvantage that the cell texts are no longer exactly
14932 vertically centered.
14935 \begin_layout Subsection
14936 Special Cell Alignment
14937 \begin_inset LatexCommand index
14938 name "Table Customization ! Special Cell Alignment"
14945 \begin_layout Standard
14946 Sometimes it looks better when the cell entries of a column are aligned
14947 with a special character, e.\InsetSpace \thinspace{}
14949 with the decimal separator as in Table\InsetSpace ~
14951 \begin_inset LatexCommand ref
14952 reference "tab:Table-cells-of"
14959 \begin_layout Standard
14960 \begin_inset Float table
14966 \begin_layout Standard
14967 \begin_inset Caption
14969 \begin_layout Standard
14970 \begin_inset LatexCommand label
14971 name "tab:Table-cells-of"
14975 Table cells of a column aligned with the decimal separator.
14983 \begin_layout Standard
14985 \begin_inset Tabular
14986 <lyxtabular version="3" rows="4" columns="2">
14988 <column alignment="right" valignment="top" width="0">
14989 <column alignment="left" valignment="top" width="0" special="@{}l">
14990 <row bottomline="true">
14991 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
14994 \begin_layout Standard
15000 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15003 \begin_layout Standard
15011 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15014 \begin_layout Standard
15020 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15023 \begin_layout Standard
15031 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15034 \begin_layout Standard
15040 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15043 \begin_layout Standard
15051 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15054 \begin_layout Standard
15060 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15063 \begin_layout Standard
15082 \begin_layout Standard
15083 This table was created with a 4×2 table.
15084 The heading is a centered multicolumn.
15085 The first column is right-aligned and contains the digits before the decimal
15086 point and the decimal point.
15087 The second column is left aligned and contains the digits after the decimal
15089 To omit the space that is normally between two table columns, use the following
15090 LaTeX-argument for the second column:
15093 \begin_layout Standard
15099 \begin_layout Standard
15102 \begin_inset LatexCommand ref
15103 reference "tab:Several-table-cell"
15107 shows some example alignments.
15108 For the alignment with the relation sign, you must add the second smallest
15109 math-space at the beginning of the last column to get the correct space
15110 surrounding the relation sign.
15113 \begin_layout Standard
15114 \begin_inset Float table
15119 \begin_layout Standard
15120 \begin_inset Caption
15122 \begin_layout Standard
15123 \begin_inset LatexCommand label
15124 name "tab:Several-table-cell"
15128 Several table cell alignments.
15136 \begin_layout Standard
15138 \begin_inset Tabular
15139 <lyxtabular version="3" rows="4" columns="6">
15141 <column alignment="right" valignment="top" width="0">
15142 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15143 <column alignment="right" valignment="top" width="0">
15144 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15145 <column alignment="right" valignment="top" width="0">
15146 <column alignment="left" valignment="top" width="0" special="@{}l">
15147 <row bottomline="true">
15148 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15151 \begin_layout Standard
15157 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15160 \begin_layout Standard
15166 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15169 \begin_layout Standard
15175 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15178 \begin_layout Standard
15184 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15187 \begin_layout Standard
15193 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15196 \begin_layout Standard
15204 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15207 \begin_layout Standard
15213 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15216 \begin_layout Standard
15217 24\InsetSpace \thinspace{}
15223 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15226 \begin_layout Standard
15227 \begin_inset Formula $10\cdot$
15235 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15238 \begin_layout Standard
15239 \begin_inset Formula $10^{\mbox{-}17}$
15247 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15250 \begin_layout Standard
15251 \begin_inset Formula $\Gamma(t)\propto$
15259 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15262 \begin_layout Standard
15263 \begin_inset Formula $\:\Upsilon(t)$
15273 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15276 \begin_layout Standard
15282 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15285 \begin_layout Standard
15286 768\InsetSpace \thinspace{}
15292 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15295 \begin_layout Standard
15296 \begin_inset Formula $5.78\cdot$
15304 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15307 \begin_layout Standard
15308 \begin_inset Formula $10^{7}$
15316 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15319 \begin_layout Standard
15320 \begin_inset Formula $A\ne$
15328 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15331 \begin_layout Standard
15332 \begin_inset Formula $\: B_{\mathrm{red}}$
15342 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15345 \begin_layout Standard
15351 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15354 \begin_layout Standard
15355 6\InsetSpace \thinspace{}
15361 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15364 \begin_layout Standard
15366 \begin_inset Formula $33.5\cdot$
15374 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15377 \begin_layout Standard
15378 \begin_inset Formula $10^{4}$
15386 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15389 \begin_layout Standard
15390 \begin_inset Formula $\sin(\alpha)\ge$
15398 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15401 \begin_layout Standard
15402 \begin_inset Formula $\:\sin(\beta)$
15423 \begin_layout Standard
15424 \begin_inset VSpace bigskip
15427 There is also the LaTeX-package
15432 \begin_inset LatexCommand index
15433 name "LaTeX-packages ! dcolumn"
15437 that provides table cell alignments.
15438 But this unfortunately treats the cell entries as math and doesn't allow
15439 formulas in table cells: The first column of Table\InsetSpace ~
15441 \begin_inset LatexCommand ref
15442 reference "tab:Several-table-cell"
15450 like the first column in Table\InsetSpace ~
15452 \begin_inset LatexCommand ref
15453 reference "tab:Alignments-when"
15457 and only with some tricks like the expected.
15458 The alignment of the second and third column of Table\InsetSpace ~
15460 \begin_inset LatexCommand ref
15461 reference "tab:Several-table-cell"
15465 is not possible with
15472 \begin_layout Standard
15473 \begin_inset Float table
15479 \begin_layout Standard
15480 \begin_inset Caption
15482 \begin_layout Standard
15483 \begin_inset LatexCommand label
15484 name "tab:Alignments-when"
15488 Alignments when LaTeX-package dcolumn is used.
15489 For all column alignments tricks have to be used to get the output.
15497 \begin_layout Standard
15499 \begin_inset Tabular
15500 <lyxtabular version="3" rows="4" columns="3">
15502 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{-1}">
15503 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{4.9}">
15504 <column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
15505 <row bottomline="true">
15506 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15509 \begin_layout Standard
15515 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15518 \begin_layout Standard
15524 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15527 \begin_layout Standard
15535 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15538 \begin_layout Standard
15539 12x24\InsetSpace \thinspace{}
15545 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15548 \begin_layout Standard
15549 12x24\InsetSpace \thinspace{}
15551 \begin_inset Formula $\mbox{bottles}$
15559 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15562 \begin_layout Standard
15567 \begin_layout Standard
15577 \begin_inset Formula $\mbox{bottles}$
15587 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15590 \begin_layout Standard
15591 1024x768\InsetSpace \thinspace{}
15597 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15600 \begin_layout Standard
15601 1024x768\InsetSpace \thinspace{}
15603 \begin_inset Formula $\mbox{Pixels}$
15611 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15614 \begin_layout Standard
15619 \begin_layout Standard
15629 \begin_inset Formula $\mbox{Pixels}$
15639 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15642 \begin_layout Standard
15643 32x6\InsetSpace \thinspace{}
15649 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15652 \begin_layout Standard
15653 32x6\InsetSpace \thinspace{}
15655 \begin_inset Formula $\mbox{cm}$
15663 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15666 \begin_layout Standard
15671 \begin_layout Standard
15681 \begin_inset Formula $\mbox{cm}$
15702 \begin_layout Subsection
15703 Customized Cell/Column Format
15704 \begin_inset LatexCommand label
15705 name "sub:Customized-Format"
15710 \begin_inset LatexCommand index
15711 name "Table Customization ! Cell/Column Format"
15718 \begin_layout Standard
15719 Calculating the needed width for spanned columns like in section\InsetSpace ~
15721 \begin_inset LatexCommand ref
15722 reference "sub:Multicolumn-Calculations"
15726 is very annoying if you have several tables with multicolumn cells.
15727 To make life easier, you can define a cell/column format in the preamble,
15728 so that it can be used in all tables of the document.
15729 The format is defined with the command
15732 \begin_layout Standard
15737 newcolumntype{name of format}[number of arguments]{commands}
15740 \begin_layout Standard
15741 The format name may only consist of one letter.
15766 are predefined and cannot be used.
15767 But all letters are allowed as capitals.
15770 \begin_layout Standard
15771 \begin_inset VSpace medskip
15777 \begin_layout Standard
15778 For vertically and horizontally centered multicolumn cells with a fixed
15779 width you can define the cell format
15782 \begin_layout Standard
15787 newcolumntype{M}[1]{>{
15794 \begin_layout Standard
15801 avoids the problem of hyphenating the first word, as described in section\InsetSpace ~
15803 \begin_inset LatexCommand ref
15804 reference "sub:Multiple-Lines-in"
15809 Now you can simply enter
15812 \begin_layout Standard
15818 \begin_layout Standard
15819 as LaTeX-argument in the table dialog to create a multicolumn.
15822 \begin_layout Standard
15823 \begin_inset VSpace bigskip
15829 \begin_layout Standard
15830 For cells spanned by a multicolumn cell, you can define the format
15833 \begin_layout Standard
15838 newcolumntype{S}[2]{>{
15848 \begin_layout Standard
15859 newcolumntype{S}[2]
15863 \begin_layout Standard
15874 arrayrulewidth)*(1-#2))/#2}}
15877 \begin_layout Standard
15878 This format uses equation
15879 \begin_inset LatexCommand eqref
15884 to calculate the needed width so that each spanned cell has the same width.
15887 \begin_layout Standard
15891 \begin_layout Standard
15894 S{width of multicolumn cell}{number of spanned columns}
15897 \begin_layout Standard
15898 as LaTeX-argument of the column.
15901 \begin_layout Standard
15902 \begin_inset VSpace bigskip
15908 \begin_layout Standard
15909 For colored columns, you can define
15912 \begin_layout Standard
15917 newcolumntype{K}[1]{>{
15924 \begin_layout Standard
15926 \begin_inset Quotes eld
15930 \begin_inset Quotes erd
15933 at the end creates a column with a flexible width whose text is horizontally
15938 \begin_layout Standard
15944 \begin_layout Standard
15948 \begin_layout Standard
15949 \begin_inset VSpace bigskip
15955 \begin_layout Standard
15956 To create Table\InsetSpace ~
15958 \begin_inset LatexCommand ref
15959 reference "tab:Table-using-user-defined"
15963 use the LaTeX-arguments
15966 \begin_layout Standard
15972 \begin_layout Standard
15973 for the first column and the multicolumn,
15976 \begin_layout Standard
15982 \begin_layout Standard
15983 for the the last column, and
15986 \begin_layout Standard
15992 \begin_layout Standard
15993 for the cells in the second column.
15996 \begin_layout Standard
15997 \begin_inset Float table
16003 \begin_layout Standard
16004 \begin_inset Caption
16006 \begin_layout Standard
16007 \begin_inset LatexCommand label
16008 name "tab:Table-using-user-defined"
16012 Table using user-defined table formats
16020 \begin_layout Standard
16022 \begin_inset Tabular
16023 <lyxtabular version="3" rows="3" columns="4">
16025 <column alignment="center" valignment="middle" leftline="true" width="2.5cm" special="M{2.5cm}">
16026 <column alignment="center" valignment="middle" leftline="true" width="0" special="S{2.5cm}{2}">
16027 <column alignment="center" valignment="middle" leftline="true" width="0">
16028 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0" special="K{red}">
16029 <row topline="true">
16030 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16033 \begin_layout Standard
16034 verylongtablecellword
16039 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none" special="M{2.5cm}">
16042 \begin_layout Standard
16043 multiple lines multicolumn
16048 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16051 \begin_layout Standard
16057 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16060 \begin_layout Standard
16067 <row topline="true">
16068 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16071 \begin_layout Standard
16077 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16080 \begin_layout Standard
16086 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16089 \begin_layout Standard
16095 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16098 \begin_layout Standard
16105 <row topline="true" bottomline="true">
16106 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16109 \begin_layout Standard
16115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16118 \begin_layout Standard
16124 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16127 \begin_layout Standard
16133 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16136 \begin_layout Standard
16155 \begin_layout Subsection
16157 \begin_inset LatexCommand label
16158 name "sub:Line-Thickness"
16163 \begin_inset LatexCommand index
16164 name "Table Customization ! Line Thickness"
16171 \begin_layout Standard
16172 The line thickness for all lines in a table can be adjusted with the length
16180 To set for example a line thickness of 1.5\InsetSpace \thinspace{}
16181 pt, like in Table\InsetSpace ~
16183 \begin_inset LatexCommand ref
16184 reference "tab:Table-with-1.5"
16188 , insert the command
16191 \begin_layout Standard
16198 arrayrulewidth}{1.5pt}
16201 \begin_layout Standard
16202 in ERT before the table or table float.
16203 The changed thickness is valid for all following tables.
16204 To use the default value again, set
16210 to 0.4\InsetSpace \thinspace{}
16211 pt in ERT behind the table or table float.
16214 \begin_layout Standard
16218 \begin_layout Standard
16224 arrayrulewidth}{1.5pt}
16230 \begin_inset Float table
16235 \begin_layout Standard
16236 \begin_inset Caption
16238 \begin_layout Standard
16239 \begin_inset LatexCommand label
16240 name "tab:Table-with-1.5"
16244 Table with 1.5\InsetSpace \thinspace{}
16253 \begin_layout Standard
16255 \begin_inset Tabular
16256 <lyxtabular version="3" rows="3" columns="3">
16258 <column alignment="center" valignment="top" leftline="true" width="0">
16259 <column alignment="center" valignment="top" leftline="true" width="0">
16260 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16261 <row topline="true">
16262 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16265 \begin_layout Standard
16271 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16274 \begin_layout Standard
16280 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16283 \begin_layout Standard
16290 <row topline="true">
16291 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16294 \begin_layout Standard
16300 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16303 \begin_layout Standard
16309 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16312 \begin_layout Standard
16319 <row topline="true" bottomline="true">
16320 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16323 \begin_layout Standard
16329 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16332 \begin_layout Standard
16338 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16341 \begin_layout Standard
16361 \begin_layout Standard
16367 arrayrulewidth}{0.4pt}
16375 \begin_layout Standard
16376 \begin_inset VSpace bigskip
16379 To set the line thickness to 1.5\InsetSpace \thinspace{}
16380 pt only for horizontal lines, like in Table\InsetSpace ~
16382 \begin_inset LatexCommand ref
16383 reference "tab:Table-with-horizontal"
16387 , insert these commands in ERT before the table or table float:
16390 \begin_layout Standard
16413 arrayrulewidth 1.5pt}
16423 arrayrulewidth 0.4pt}}
16426 \begin_layout Standard
16427 To return to the default line thickness, insert this command in ERT behind
16428 the table or table float:
16431 \begin_layout Standard
16443 \begin_layout Standard
16447 \begin_layout Standard
16458 \begin_layout Standard
16467 \begin_layout Standard
16475 arrayrulewidth 1.5pt}
16478 \begin_layout Standard
16488 arrayrulewidth 0.4pt}}
16494 \begin_inset Float table
16499 \begin_layout Standard
16500 \begin_inset Caption
16502 \begin_layout Standard
16503 \begin_inset LatexCommand label
16504 name "tab:Table-with-horizontal"
16508 Table with 1.5\InsetSpace \thinspace{}
16509 pt thick horizontal lines
16517 \begin_layout Standard
16519 \begin_inset Tabular
16520 <lyxtabular version="3" rows="3" columns="3">
16522 <column alignment="center" valignment="top" leftline="true" width="0">
16523 <column alignment="center" valignment="top" leftline="true" width="0">
16524 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16525 <row topline="true">
16526 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16529 \begin_layout Standard
16535 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16538 \begin_layout Standard
16544 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16547 \begin_layout Standard
16554 <row topline="true">
16555 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16558 \begin_layout Standard
16564 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16567 \begin_layout Standard
16573 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16576 \begin_layout Standard
16583 <row topline="true" bottomline="true">
16584 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16587 \begin_layout Standard
16593 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16596 \begin_layout Standard
16602 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16605 \begin_layout Standard
16625 \begin_layout Standard
16641 \begin_layout Standard
16642 \begin_inset VSpace bigskip
16645 To set the line thickness to 1.5\InsetSpace \thinspace{}
16646 pt only for vertical lines, create the following
16647 column format in the document preamble, according to the description in
16648 section\InsetSpace ~
16650 \begin_inset LatexCommand ref
16651 reference "sub:Customized-Format"
16658 \begin_layout Standard
16663 newcolumntype{V}{!{
16665 vrule width 1.5pt}}
16668 \begin_layout Standard
16669 For Table\InsetSpace ~
16671 \begin_inset LatexCommand ref
16672 reference "tab:Table-with-vertical"
16679 \begin_layout Standard
16685 \begin_layout Standard
16686 was used for the last column and
16689 \begin_layout Standard
16695 \begin_layout Standard
16696 for the other columns.
16699 \begin_layout Standard
16700 \begin_inset Float table
16705 \begin_layout Standard
16706 \begin_inset Caption
16708 \begin_layout Standard
16709 \begin_inset LatexCommand label
16710 name "tab:Table-with-vertical"
16714 Table with 1.5\InsetSpace \thinspace{}
16715 pt thick vertical lines
16723 \begin_layout Standard
16725 \begin_inset Tabular
16726 <lyxtabular version="3" rows="3" columns="3">
16728 <column alignment="center" valignment="top" width="0" special="Vc">
16729 <column alignment="center" valignment="top" width="0" special="Vc">
16730 <column alignment="center" valignment="top" width="0" special="VcV">
16731 <row topline="true">
16732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16735 \begin_layout Standard
16741 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16744 \begin_layout Standard
16750 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16753 \begin_layout Standard
16760 <row topline="true">
16761 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16764 \begin_layout Standard
16770 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16773 \begin_layout Standard
16779 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16782 \begin_layout Standard
16789 <row topline="true" bottomline="true">
16790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16793 \begin_layout Standard
16799 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16802 \begin_layout Standard
16808 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16811 \begin_layout Standard
16830 \begin_layout Subsection
16832 \begin_inset LatexCommand index
16833 name "Table Customization ! Dashed Lines"
16840 \begin_layout Standard
16844 \begin_layout Standard
16854 \begin_inset Note Note
16857 \begin_layout Standard
16858 The following section will only be displayed when you have the LaTeX-package
16871 \begin_layout Standard
16872 \begin_inset Float table
16878 \begin_layout Standard
16879 \begin_inset Caption
16881 \begin_layout Standard
16882 \begin_inset LatexCommand label
16883 name "tab:Table-with-dashed"
16887 Table with dashed lines
16895 \begin_layout Standard
16897 \begin_inset Tabular
16898 <lyxtabular version="3" rows="5" columns="5">
16900 <column alignment="center" valignment="top" leftline="true" width="0">
16901 <column alignment="center" valignment="top" leftline="true" width="0">
16902 <column alignment="center" valignment="top" width="0" special=":c">
16903 <column alignment="center" valignment="top" leftline="true" width="0">
16904 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16905 <row topline="true" bottomline="true">
16906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16909 \begin_layout Standard
16915 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16918 \begin_layout Standard
16924 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16927 \begin_layout Standard
16933 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16936 \begin_layout Standard
16942 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16945 \begin_layout Standard
16952 <row topline="true">
16953 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16956 \begin_layout Standard
16962 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16965 \begin_layout Standard
16971 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16974 \begin_layout Standard
16980 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16983 \begin_layout Standard
16989 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16992 \begin_layout Standard
17000 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17003 \begin_layout Standard
17007 \begin_layout Standard
17021 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17024 \begin_layout Standard
17030 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17033 \begin_layout Standard
17039 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17042 \begin_layout Standard
17048 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17051 \begin_layout Standard
17058 <row topline="true">
17059 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17062 \begin_layout Standard
17066 \begin_layout Standard
17080 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17083 \begin_layout Standard
17089 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="c:">
17092 \begin_layout Standard
17098 <cell multicolumn="1" alignment="center" valignment="top" rightline="true" usebox="none" special="c:">
17101 \begin_layout Standard
17107 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17110 \begin_layout Standard
17117 <row topline="true" bottomline="true">
17118 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17121 \begin_layout Standard
17127 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17130 \begin_layout Standard
17136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17139 \begin_layout Standard
17145 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17148 \begin_layout Standard
17154 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17157 \begin_layout Standard
17176 \begin_layout Standard
17177 LyX doesn't natively support dashed lines, so you have to use ERT.
17178 As prerequisite the LaTeX-package
17183 \begin_inset LatexCommand index
17184 name "LaTeX-packages ! arydshln"
17188 must be loaded in the document preamble with the command
17191 \begin_layout Standard
17196 usepackage{arydshln}
17199 \begin_layout Standard
17200 To make a vertical line dashed, enter the colon
17201 \begin_inset Quotes eld
17205 \begin_inset Quotes erd
17208 together with the character for the horizontal alignment as LaTeX-argument
17209 in the table cell dialog.
17212 \begin_layout Standard
17213 For a horizontal dashed line add the command
17216 \begin_layout Standard
17224 \begin_layout Standard
17225 in ERT as first element of the first cell in the table row.
17228 \begin_layout Standard
17229 For dashed multicolumn lines use the command
17232 \begin_layout Standard
17237 cdashline{line number
17242 \begin_layout Standard
17243 in ERT as first element of the first cell in the table row.
17244 If you have for example a multicolumn spanning over columns 2 to 4 and
17245 you want to have a dashed line above, add the command
17248 \begin_layout Standard
17256 \begin_layout Standard
17257 as first element of the first cell in the row of the multicolumn.
17260 \begin_layout Standard
17261 \begin_inset VSpace bigskip
17267 \begin_layout Standard
17270 \begin_inset LatexCommand ref
17271 reference "tab:Table-with-dashed"
17276 \begin_inset Quotes eld
17284 \begin_inset Quotes erd
17287 as LaTeX-argument of the third column.
17294 was inserted to the first cell of the third row and the the ERT command
17303 was inserted to the first cell of the fourth row.
17306 \begin_layout Standard
17307 \begin_inset Note Greyedout
17310 \begin_layout Standard
17315 The used LaTeX-package
17319 is apparently not compatible with the LaTeX-package
17324 \begin_inset LatexCommand index
17325 name "LaTeX-packages ! colortbl"
17329 that is used for colored tables in section\InsetSpace ~
17331 \begin_inset LatexCommand ref
17332 reference "sec:Colored-Tables"
17337 That means colored tables cannot have dashed lines.
17345 \begin_layout Standard
17349 \begin_layout Standard
17359 \begin_inset Note Note
17362 \begin_layout Standard
17363 The following will be displayed when the LaTeX-package
17375 \begin_layout Standard
17376 You need to install the package
17380 to see the contents of this section in the output.
17383 \begin_layout Standard
17387 \begin_layout Standard
17399 \begin_layout Chapter
17401 \begin_inset LatexCommand index
17407 \begin_inset LatexCommand label
17415 \begin_layout Section
17417 \begin_inset LatexCommand label
17418 name "sec:FloatIntroduction"
17423 \begin_inset LatexCommand index
17424 name "Floats ! Introduction"
17431 \begin_layout Standard
17432 A float is a block of text associated with some sort of label, which doesn't
17433 have a fixed location.
17435 \begin_inset Quotes eld
17439 \begin_inset Quotes erd
17442 forward or backward a page or two, to wherever it fits best.
17449 Margin\InsetSpace ~
17452 are also floats, because they can float to the next page when there are
17453 too many notes at the page.
17456 \begin_layout Standard
17457 Floats allow a high quality layout.
17458 Images and tables can evenly be spread to the pages to avoid white space
17459 and pages without text.
17460 As the floating often destroys the context between the text and the image/table
17461 , every float can be referenced in the text.
17462 Floats are therefore numbered.
17463 Referencing is described in section\InsetSpace ~
17465 \begin_inset LatexCommand ref
17466 reference "sec:Referencing-Floats"
17473 \begin_layout Standard
17474 To insert a float, use the menu
17476 Insert\SpecialChar \menuseparator
17484 inset, a box with a label.
17485 The label will automatically be translated to the document language in
17487 Behind the label you can insert the caption text.
17488 The image or table is inserted above or below the caption in a separate
17489 paragraph within the float.
17490 More about the caption placement is described in section\InsetSpace ~
17492 \begin_inset LatexCommand ref
17493 reference "sec:Caption-Placement"
17498 To keep your LyX-document readable, you can open and close the float box
17499 by left-clicking on the box label.
17500 A closed float box looks like this:
17501 \begin_inset Graphics
17502 filename clipart/floatQt4.png
17507 -- a gray button with a red label.
17510 \begin_layout Standard
17511 It is recommended to insert floats as a separate paragraph to avoid possible
17512 LaTeX-errors that can occur when the surrounding text is specially formatted.
17515 \begin_layout Standard
17516 Existing figures or tables can be put into a float by marking them and then
17517 pressing the corresponding toolbar button for a new float.
17520 \begin_layout Section
17524 \begin_layout Standard
17525 Besides figure and table floats that are described in section\InsetSpace ~
17527 \begin_inset LatexCommand ref
17528 reference "sec:Figure-Floats"
17533 \begin_inset LatexCommand ref
17534 reference "sec:Table-Floats"
17538 , respectively, LyX offers the float types
17551 \begin_layout Subsection
17553 \begin_inset LatexCommand index
17554 name "Floats ! Algorithm Floats"
17561 \begin_layout Standard
17562 \begin_inset Float algorithm
17568 \begin_layout Standard
17569 \begin_inset Caption
17571 \begin_layout Standard
17572 \begin_inset LatexCommand label
17573 name "alg:Example-Algorithm-float"
17577 Example Algorithm float
17585 \begin_layout LyX-Code
17588 Sum:= Sum + A(I); /*senseless comment*/
17591 \begin_inset VSpace -4mm
17602 \begin_layout Standard
17603 This float type is inserted with the menu
17605 Insert\SpecialChar \menuseparator
17606 Floats\SpecialChar \menuseparator
17610 It is used for program codes and descriptions of algorithms.
17611 A possible environment for algorithms is the
17615 , described in LyX's
17620 Algorithm\InsetSpace ~
17622 \begin_inset LatexCommand ref
17623 reference "alg:Example-Algorithm-float"
17627 is an example of an algorithm float where -4\InsetSpace \thinspace{}
17628 mm vertical space was added
17629 at the end of the float to have the bottom rule exactly below the last
17633 \begin_layout Standard
17634 The float label is not automatically translated into the document language.
17635 If your document is not in English, you have to do this manually by adding
17636 the following line to the document preamble
17641 \begin_layout Standard
17646 floatname{algorithm}{your\InsetSpace ~
17650 \begin_layout Standard
17657 \begin_inset Quotes eld
17665 \begin_inset Quotes erd
17671 \begin_layout Description
17676 When the LaTeX-package
17681 \begin_inset LatexCommand index
17682 name "LaTeX-packages ! hyperref"
17686 is used to link cross-references to floats in the PDF-output, it must be
17687 loaded in the document preamble before the definition of floats to be able
17688 to reference floats.
17689 As LyX sets the float definition for algorithm floats automatically before
17690 the user editable part of the document preamble, you need to insert the
17691 following preamble lines
17695 the loading command of
17702 \begin_inset VSpace defskip
17709 newfloat{Xalgorithm}{tbp}{loa}
17713 floatname{Xalgorithm}{your\InsetSpace ~
17726 renewenvironment{algorithm}[1][tbp]
17732 \begin_layout Standard
17743 begin{Xalgorithm}[#1]}{
17746 \begin_inset VSpace defskip
17759 \begin_inset Quotes eld
17767 \begin_inset Quotes erd
17773 \begin_layout Standard
17774 Algorithm floats are not by default numbered in the scheme
17775 \begin_inset Quotes eld
17779 \begin_inset Quotes erd
17782 like it is the case for table and figure floats in many document-classes.
17783 To number algorithm floats in the same scheme, add this command to your
17787 \begin_layout Standard
17792 numberwithin{algorithm}{chapter}
17795 \begin_layout Standard
17796 If you use the LaTeX-package
17800 , add this line instead
17808 (the commands from above) to the preamble:
17811 \begin_layout Standard
17816 numberwithin{Xalgorithm}{chapter}
17819 \begin_layout Standard
17820 To be able to use the command
17831 in the document settings the option
17841 \begin_layout Subsection
17843 \begin_inset LatexCommand index
17844 name "Floats ! Text Wrap Floats"
17849 \begin_inset LatexCommand label
17850 name "sub:floatflt-wrap-float"
17857 \begin_layout Standard
17858 This float type is used if you want to
17859 \begin_inset Quotes eld
17863 \begin_inset Quotes erd
17866 text around a figure so that it only occupies some fraction of the column
17868 It can be inserted using the menu
17869 \begin_inset Wrap figure
17874 \begin_layout Standard
17875 \begin_inset Graphics
17876 filename clipart/mobius.eps
17879 rotateOrigin center
17886 \begin_layout Standard
17887 \begin_inset Caption
17889 \begin_layout Standard
17890 \begin_inset LatexCommand label
17891 name "fig:This-is-a"
17895 This is a wrapped figure, and this is the brilliant caption that describes
17897 \begin_inset VSpace medskip
17912 Insert\SpecialChar \menuseparator
17913 Floats\SpecialChar \menuseparator
17918 if the LaTeX-package
17923 \begin_inset LatexCommand index
17924 name "LaTeX-packages ! floatflt"
17932 \begin_layout Standard
17933 Installing a LaTeX-package is explained it in the
17943 The width and placement of the float is adjusted by right-clicking on the
17945 Figure\InsetSpace ~
17947 \begin_inset LatexCommand ref
17948 reference "fig:This-is-a"
17952 is an example text wrap float with a width of 40
17953 \begin_inset Formula $\,$
17960 \begin_layout Standard
17961 Available units are explained in
17962 \begin_inset LatexCommand ref
17963 reference "cha:Units-available-in"
17972 Some space was added under the caption to separate it better from the surroundi
17976 \begin_layout Standard
17981 also supports table wrap floats, but they are not yet supported by LyX.
17982 If you need this, read the documentation of
17987 \begin_inset LatexCommand cite
17995 \begin_layout Standard
17996 \begin_inset Note Greyedout
17999 \begin_layout Standard
18005 wrap float floats are fragile! E.\InsetSpace \thinspace{}
18007 having a figure too close to the bottom
18008 of the page can mess things up in the way that the float doesn't appear
18009 in the output or that it is placed over some other text.
18013 \begin_layout Standard
18014 The better solution is to use the LaTeX-package
18016 wrapf\SpecialChar \textcompwordmark{}
18020 \begin_inset LatexCommand index
18021 name "LaTeX-packages ! wrapfig\\vspace{4mm}"
18027 floatf\SpecialChar \textcompwordmark{}
18030 , but it is currently not supported by LyX.
18043 \begin_layout Standard
18047 \begin_layout Itemize
18048 Wrap floats should not be placed in paragraphs that run over a page break.
18049 That means that wrap floats should better be inserted to the exact place
18050 when the document is nearly finished and you are able to estimate where
18051 page breaks will appear.
18054 \begin_layout Itemize
18055 Wrap floats should either be placed in an own paragraph before the paragraph
18056 where they should wrap into or within a paragraph.
18059 \begin_layout Itemize
18060 Wrap floats in consecutive paragraphs may cause troubles, so assure that
18061 there is a text paragraph between them as separator.
18064 \begin_layout Itemize
18065 Wrap floats are not allowed in section headings or tables.
18068 \begin_layout Section
18070 \begin_inset LatexCommand label
18071 name "sec:Float-Numbering"
18076 \begin_inset LatexCommand index
18077 name "Floats ! Numbering"
18084 \begin_layout Standard
18085 Floats are usually numbered either independent from the sections the floats
18086 are in, or in the scheme
18087 \begin_inset Quotes eld
18091 \begin_inset Quotes erd
18095 \begin_inset Quotes eld
18099 \begin_inset Quotes erd
18103 This depends on the used document class.
18106 \begin_layout Standard
18107 To change the section independent numbering, you can use this command in
18108 the document preamble:
18111 \begin_layout Standard
18123 \begin_layout Standard
18130 is the command that prints the table number, for figure floats, the command
18144 prints in the command above the table number as small roman number.
18147 \begin_layout Standard
18148 To change the numbering scheme for example to
18149 \begin_inset Quotes eld
18153 \begin_inset Quotes erd
18156 , use this command in the preamble:
18159 \begin_layout Standard
18164 numberwithin{table}{subsection}
18167 \begin_layout Standard
18168 To be able to use the command
18179 in the document settings the option
18189 \begin_layout Standard
18190 Please also have a look at section\InsetSpace ~
18192 \begin_inset LatexCommand ref
18193 reference "sub:Footnote-Numbering"
18197 for the details and important notes about the numbering commands.
18200 \begin_layout Section
18202 \begin_inset LatexCommand label
18203 name "sec:Referencing-Floats"
18208 \begin_inset LatexCommand index
18209 name "Floats ! References"
18214 \begin_inset LatexCommand index
18222 \begin_layout Standard
18223 To reference a float, insert a label into its caption using the menu
18225 Insert\SpecialChar \menuseparator
18228 or the toolbar button
18229 \begin_inset Graphics
18230 filename ../images/label-insert.xpm
18236 A grey label box like this one:
18237 \begin_inset Graphics
18238 filename clipart/labelQt4.png
18243 will be inserted and the label window pops up asking for the label text.
18244 LyX offers as text the first words of the caption with a prefix.
18245 The prefix depends on the float type, e.\InsetSpace \thinspace{}
18247 for figure floats the prefix will
18255 \begin_layout Standard
18256 The label is used as anchor and name for the reference.
18257 You can refer to the label using the menu
18259 Insert\SpecialChar \menuseparator
18262 or the toolbar button
18263 \begin_inset Graphics
18264 filename ../images/dialog-show-new-inset_ref.xpm
18270 A grey cross-reference box like this one:
18271 \begin_inset Graphics
18272 filename clipart/referenceQt4.png
18277 will be inserted and the cross-reference window appear showing all labels
18279 If you have multiple LyX-documents opened, choose the one you are working
18280 on from the drop-list at the top of the dialog.
18281 You can now sort the labels alphabetically and then choose one.
18282 At the position of the cross-reference box the float number will appear
18286 \begin_layout Standard
18287 It is recommended to use a protected space between the cross-reference name
18288 and its number to avoid line breaks between them.
18289 If a cross-reference refers to a non-existing label, you will see two question
18290 marks in the output instead of the reference.
18293 \begin_layout Standard
18294 You can change labels at any time by clicking on the label box.
18295 References to the changed label will automatically change its link to the
18296 new label text, so that you don't need to take care about this.
18299 \begin_layout Standard
18306 in the cross-reference window sets the cursor before the referred label.
18307 The button text changes then to Go\InsetSpace ~
18308 Back and you can use it to set the cursor
18309 back to the cross-reference.
18310 Right-clicking on a cross-reference box also sets the cursor before the
18311 referenced label but without a possibility to go back.
18314 \begin_layout Subsection
18315 Cross-Reference Formats
18316 \begin_inset LatexCommand label
18317 name "sub:Cross-Reference-Formats"
18322 \begin_inset LatexCommand index
18323 name "References ! Formats"
18330 \begin_layout Standard
18331 There are six varieties of cross-references:
18334 \begin_layout Description
18335 <reference>: prints the float number, this is the default:
18336 \begin_inset LatexCommand ref
18337 reference "fig:Two-distorted-images"
18344 \begin_layout Description
18345 (<reference>): prints the float number within two parentheses, this is the
18346 style normally used to reference formulas, especially when the reference
18348 \begin_inset Quotes eld
18352 \begin_inset Quotes erd
18356 \begin_inset LatexCommand eqref
18364 \begin_layout Description
18365 <page>: prints the page number: Page\InsetSpace ~
18367 \begin_inset LatexCommand pageref
18368 reference "fig:Two-distorted-images"
18375 \begin_layout Description
18378 <page>: prints the text "on page" and the page number:
18379 \begin_inset LatexCommand vpageref
18380 reference "fig:Two-distorted-images"
18387 \begin_layout Description
18388 <reference>\InsetSpace ~
18391 <page>: prints the float number, the text "on page", and
18393 \begin_inset LatexCommand vref
18394 reference "fig:Two-distorted-images"
18401 \begin_layout Description
18402 Formatted\InsetSpace ~
18403 reference: prints a self defined cross-reference format.
18405 \begin_inset Note Greyedout
18408 \begin_layout Standard
18413 This feature is only available when you have the LaTeX-package
18425 \begin_layout Standard
18426 Note that the style <page> won't print the page number if the label is on
18427 the previous, the same, or the next page.
18428 You will e.\InsetSpace \thinspace{}
18431 \begin_inset Quotes eld
18439 \begin_inset Quotes erd
18445 \begin_layout Standard
18446 The number and current page of the referred document part in the output,
18447 is automatically calculated by LaTeX.
18448 The varieties are adjusted in the field
18452 of the cross-reference window, that appear when you click on the cross-referenc
18456 \begin_layout Subsection
18457 Referencing Subfigures
18458 \begin_inset LatexCommand label
18459 name "sub:Referencing-Subfigures"
18464 \begin_inset LatexCommand index
18465 name "References ! to Subfigures"
18472 \begin_layout Standard
18473 Currently referencing subfigures is not supported by LyX, so you have to
18474 use LaTeX-commands.
18475 The label is the created with the command
18478 \begin_layout Standard
18483 label{fig:YourLabelName}
18486 \begin_layout Standard
18487 that is directly inserted into the subfigure caption field.
18488 To reference the label add this command in ERT
18491 \begin_layout Standard
18496 ref{fig:YourLabelName}
18499 \begin_layout Standard
18500 to the position in your document where the reference should be placed.
18501 Here is a reference to a subfigure: Subfigure\InsetSpace ~
18506 \begin_layout Standard
18518 \begin_layout Subsection
18519 Automatic Reference Naming
18520 \begin_inset LatexCommand index
18521 name "References ! Automatic Reference Naming"
18528 \begin_layout Standard
18533 provides a very useful feature that cross-references automatically include
18534 the name of the referenced floats (or text parts like sections).
18535 You save to write e.\InsetSpace \thinspace{}
18538 \begin_inset Quotes eld
18542 \begin_inset Quotes erd
18545 before every reference box.
18546 To get this automatic reference naming, you have to load the LaTeX-package
18552 \begin_inset LatexCommand index
18553 name "LaTeX-packages ! hyperref"
18557 in the document preamble with
18560 \begin_layout Standard
18565 usepackage[pdfborder={0 0 0}]{hyperref}
18580 \begin_layout Standard
18585 is used to link cross-references in the DVI- and PDF-output, this means
18586 that the reader of your document will be able to click on a table of content
18587 (TOC) entry or on a reference and he will be shown the referenced document
18593 also creates PDF-bookmarks for every section of your document to make it
18594 easier for readers to navigate through the document.
18595 This is also used in this document but when you have a look in the document
18596 preamble you will find various options in the load command of
18601 To learn more about the
18605 package, we refer to its documentation
18606 \begin_inset LatexCommand cite
18614 \begin_layout Standard
18615 \begin_inset Note Greyedout
18618 \begin_layout Standard
18623 Automatic reference naming cannot be used when you use cross-references
18626 Formatted\InsetSpace ~
18629 style, described in section\InsetSpace ~
18631 \begin_inset LatexCommand ref
18632 reference "sub:Cross-Reference-Formats"
18644 \begin_layout Subsection
18646 \begin_inset LatexCommand label
18647 name "sub:Reference-Position"
18652 \begin_inset LatexCommand index
18653 name "References ! Reference Position"
18660 \begin_layout Standard
18666 \begin_inset LatexCommand index
18667 name "LaTeX-packages ! hyperref"
18671 to link cross-references in the output, you will see that clicking on an
18672 image float reference jumps to the image label.
18673 The caption will be the first text part on the screen, so that you cannot
18674 see the image without scrolling.
18675 This is because the reference link anchor is placed at the position of
18677 With the use of the package
18682 \begin_inset LatexCommand index
18683 name "LaTeX-packages ! hypcap"
18687 , which is part of the LaTeX-package
18692 \begin_inset LatexCommand index
18693 name "LaTeX-packages ! oberdiek"
18697 , the link anchor is placed at the beginning of a float.
18698 To use this feature for figure floats, load
18702 in the document preamble with the line
18705 \begin_layout Standard
18710 usepackage[f\SpecialChar \textcompwordmark{}
18714 \begin_layout Standard
18719 for all floats but this isn't recommended for stability reasons.
18720 For more informations, have a look at
18725 \begin_inset LatexCommand cite
18733 \begin_layout Standard
18734 \begin_inset Note Greyedout
18737 \begin_layout Standard
18746 must be loaded after
18750 in the document preamble.
18758 \begin_layout Standard
18759 \begin_inset Note Greyedout
18762 \begin_layout Standard
18771 has no effect for references to subfigures.
18779 \begin_layout Section
18781 \begin_inset LatexCommand label
18782 name "sec:Float-Placement"
18787 \begin_inset LatexCommand index
18788 name "Floats ! Placement"
18795 \begin_layout Standard
18796 Right-clicking on a float-box opens a dialog where you can alter the placement
18797 options that LaTeX uses for positioning the float.
18804 is only useful for two-column documents: If you select it, the float will
18805 span across both columns on the page instead of being confined to just
18810 Rotate\InsetSpace ~
18813 is used to rotate floats, see section
18814 \begin_inset LatexCommand ref
18815 reference "sec:Rotated-Floats"
18822 \begin_layout Standard
18823 You can use one ore more of the following options in the float dialog to
18824 set the placement for a particular float when you uncheck the option
18827 default\InsetSpace ~
18833 \begin_layout Description
18836 possible: try to place the float on the position where it is inserted
18839 \begin_layout Description
18842 page: try to place the float on the top of the current page
18845 \begin_layout Description
18846 Bottom\InsetSpace ~
18848 page: try to place the float on the bottom of the current page
18851 \begin_layout Description
18854 floats: try to place the float on an own page
18857 \begin_layout Standard
18858 The order of the above option is
18863 That means, if you use the default placement, LaTeX will first try out
18876 , and then the others.
18877 If you don't use the default, LaTeX will try only the checked options but
18879 If none of the 4 placements are possible the procedure is internally repeated
18880 but it is tried to put the float on the following page.
18883 \begin_layout Standard
18884 By default, each option has its own rules:
18887 \begin_layout Labeling
18888 \labelwidthstring 00.00.0000
18895 only floats occupying less than 70\InsetSpace \thinspace{}
18896 % of the page can be placed at the top
18906 \begin_layout Labeling
18907 \labelwidthstring 00.00.0000
18910 Bottom\InsetSpace ~
18914 : only floats occupying less than 30\InsetSpace \thinspace{}
18915 % of the page can be placed at the bottom
18926 \begin_layout Labeling
18927 \labelwidthstring 00.00.0000
18934 : only if more than 50\InsetSpace \thinspace{}
18935 % of the page are occupied by floats, several floats
18936 can be set together on a page.
18946 \begin_layout Standard
18947 If you don't like these rules, you can ignore them by using the additional
18950 Ignore\InsetSpace ~
18956 You can also redefine the rules with LaTeX-commands that are given in parenthese
18957 s behind the rules description above.
18958 To increase for example the often too small default of the bottom-rule
18959 to 50\InsetSpace \thinspace{}
18960 % of the page, add this line to your document preamble:
18963 \begin_layout Standard
18970 bottomfraction}{0.5}
18973 \begin_layout Standard
18974 Sometimes you might need, under all circumstances, a float to be placed
18975 exactly at the position where it is inserted.
18976 For this case you can use the option
18982 Use this option very rarely and only if the document is nearly ready to
18984 Because the float is then no longer able to
18985 \begin_inset Quotes eld
18989 \begin_inset Quotes erd
18992 when you change your document and this will often destroy the page layout.
18995 \begin_layout Standard
18996 There are no placement options for text wrap floats, because they are always
18997 surrounded by the text of a certain paragraph.
18998 \begin_inset VSpace bigskip
19004 \begin_layout Standard
19005 Sometimes you have the problem that a float is placed at the top of a page
19006 while its corresponding section starts at the middle of the page, so that
19007 the reader could think the float is part of the previous section.
19008 To avoid this the LaTeX-command
19012 suppressf\SpecialChar \textcompwordmark{}
19016 It suppresses a given float placement for the page where it is inserted
19017 and can therefore be used to avoid that floats could be set before a section
19019 To get this, add these commands to your document preamble:
19022 \begin_layout Standard
19039 suppressf\SpecialChar \textcompwordmark{}
19045 \begin_layout Standard
19046 You can define the same for all section headings, like chapters and subsections.
19047 This definition is not recommended to be used for small text parts like
19048 subsubsections because LaTeX may then have problems to find a suitable
19052 \begin_layout Standard
19053 \begin_inset VSpace bigskip
19056 In some cases it is required to have all figures/tables at the end of the
19058 For this purpose the LaTeX-package
19060 endf\SpecialChar \textcompwordmark{}
19064 \begin_inset LatexCommand index
19065 name "LaTeX-packages ! endfloat"
19070 It puts all figure and table floats at the end of the document into own
19072 At the original float position a text hint like
19073 \begin_inset Quotes eld
19078 [Figure\InsetSpace ~
19082 \begin_inset Quotes erd
19086 The endfloat-package is loaded in the preamble with the line
19089 \begin_layout Standard
19094 usepackage[options]{endf\SpecialChar \textcompwordmark{}
19098 \begin_layout Standard
19099 There are various package options to format the created figure/table sections.
19100 For more information we refer to the
19102 endf\SpecialChar \textcompwordmark{}
19106 \begin_inset LatexCommand cite
19114 \begin_inset Note Greyedout
19117 \begin_layout Standard
19120 Note: endf\SpecialChar \textcompwordmark{}
19123 doesn't provide an automatic translation for the text hint, you have to
19124 do this manually, see section\InsetSpace ~
19126 \begin_inset LatexCommand cite
19139 \begin_inset Note Greyedout
19142 \begin_layout Standard
19147 There is currently a bug in
19149 endf\SpecialChar \textcompwordmark{}
19152 when the caption contains a German
19153 \begin_inset Quotes eld
19157 \begin_inset Quotes erd
19161 Use in this case the command
19162 \begin_inset Quotes eld
19172 \begin_inset Quotes erd
19176 \begin_inset Quotes eld
19180 \begin_inset Quotes erd
19191 \begin_layout Standard
19192 \begin_inset VSpace bigskip
19195 For more details about float placements, have a look at LaTeX books,
19196 \begin_inset LatexCommand cite
19197 key "latexcompanion,latexguide,latexbook"
19204 \begin_layout Section
19206 \begin_inset LatexCommand label
19207 name "sec:Rotated-Floats"
19212 \begin_inset LatexCommand index
19213 name "Floats ! Rotating"
19220 \begin_layout Standard
19221 Especially for wide tables you might have floats rotated.
19222 To rotate a whole float including the caption, right-click on the float-box
19225 Rotate\InsetSpace ~
19231 \begin_layout Standard
19232 Rotated floats are always placed on its own page (or column, when you have
19233 a two-column document).
19234 They are normally rotated so that you can read them from the outside margin
19235 -- to the left on even pages, to the right on odd pages.
19238 \begin_layout Standard
19239 Referencing rotated floats is the same like for normal floats, the caption
19240 format is also the same: Table\InsetSpace ~
19242 \begin_inset LatexCommand ref
19243 reference "tab:Rotated-table"
19247 is an example of a rotated table float.
19250 \begin_layout Standard
19251 \begin_inset Note Greyedout
19254 \begin_layout Standard
19259 Not all DVI-viewers are able to display rotated floats.
19267 \begin_layout Standard
19268 \begin_inset Float table
19273 \begin_layout Standard
19274 \begin_inset Caption
19276 \begin_layout Standard
19277 \begin_inset LatexCommand label
19278 name "tab:Rotated-table"
19290 \begin_layout Standard
19292 \begin_inset Tabular
19293 <lyxtabular version="3" rows="1" columns="5">
19295 <column alignment="center" valignment="top" leftline="true" width="0">
19296 <column alignment="center" valignment="top" leftline="true" width="0">
19297 <column alignment="center" valignment="top" leftline="true" width="0">
19298 <column alignment="center" valignment="top" leftline="true" width="0">
19299 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19300 <row topline="true" bottomline="true">
19301 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19304 \begin_layout Standard
19310 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19313 \begin_layout Standard
19319 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19322 \begin_layout Standard
19328 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19331 \begin_layout Standard
19337 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19340 \begin_layout Standard
19359 \begin_layout Section
19361 \begin_inset LatexCommand index
19362 name "Caption ! Formatting"
19367 \begin_inset LatexCommand index
19368 name "Floats ! Caption Formatting"
19373 \begin_inset LatexCommand index
19374 name "LaTeX-packages ! caption"
19379 \begin_inset LatexCommand label
19380 name "sec:Caption-Formatting"
19387 \begin_layout Standard
19392 environment is the default paragraph environment for
19397 On the LyX screen captions appear as label, e.\InsetSpace \thinspace{}
19400 \begin_inset Quotes eld
19408 \begin_inset Quotes erd
19411 followed by the caption text.
19413 \begin_inset Quotes eld
19417 \begin_inset Quotes erd
19420 is the actual reference number.
19421 By default the label and the number are in the same font as the caption
19422 text and a colon follows the number to divide the label from the text.
19423 This caption format is not suitable for all document formats.
19427 \begin_layout Standard
19428 To change the default caption format, load the LaTeX-package
19433 \begin_inset LatexCommand index
19434 name "LaTeX-packages ! caption"
19438 in the document preamble with this line:
19441 \begin_layout Standard
19446 usepackage[format definition]{caption}
19449 \begin_layout Standard
19450 To have for example the label and the number in sans-serif bold font and
19451 the table captions always above the table like in this document, use the
19455 \begin_layout Standard
19460 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
19463 \begin_layout Standard
19464 You can also define different caption formats for the different float types.
19465 In this case load the
19469 package without format specific options and define the different formats
19470 with the help of the command
19473 \begin_layout Standard
19478 captionsetup[float type]{format definition}
19481 \begin_layout Standard
19482 in the document preamble.
19483 For example the caption formats of Figure\InsetSpace ~
19485 \begin_inset LatexCommand ref
19486 reference "fig:This-is-an-fig"
19490 and Table\InsetSpace ~
19492 \begin_inset LatexCommand ref
19493 reference "tab:This-is-an-tab"
19497 can be created using these commands in the document preamble:
19500 \begin_layout Standard
19505 usepackage[tableposition=top]{caption}
19513 captionsetup[f\SpecialChar \textcompwordmark{}
19514 igure]{labelfont={tt}, textfont=it, indention=1cm,%
19520 \begin_layout Standard
19528 captionsetup[figure]
19539 captionsetup[table]{labelfont={bf,sf}}
19542 \begin_layout Standard
19543 \begin_inset Note Greyedout
19546 \begin_layout Standard
19555 has no effect when a
19560 \begin_inset LatexCommand index
19561 name "LaTeX-packages ! koma-script"
19565 document class is used.
19566 In this case the document class option
19578 \begin_layout Standard
19579 For more information about the package
19583 we refer to its documentation
19584 \begin_inset LatexCommand cite
19585 key "caption,caption-de"
19592 \begin_layout Standard
19593 To change the label name from e.g.
19595 \begin_inset Quotes eld
19599 \begin_inset Quotes erd
19603 \begin_inset Quotes eld
19607 \begin_inset Quotes erd
19610 use this preamble command:
19613 \begin_layout Standard
19620 fnum@figure}{Image~
19625 \begin_layout Standard
19632 inserts the figure number and
19635 \begin_inset Quotes eld
19641 \begin_inset Quotes erd
19644 creates a protected space.
19647 \begin_layout Standard
19648 \begin_inset VSpace bigskip
19656 \begin_inset LatexCommand index
19657 name "LaTeX-packages ! koma-script"
19663 article (koma-script)
19671 letter (koma-script)
19675 report (koma-script)
19677 \InsetSpace \thinspace{}
19678 ), you can alternatively to the
19686 's built-in command
19693 For example, to have the caption label in bold, add this command to your
19697 \begin_layout Standard
19702 setkomafont{captionlabel}{
19707 \begin_layout Standard
19708 For more information about
19719 \begin_inset LatexCommand cite
19720 key "koma-script,koma-script-de"
19727 \begin_layout Standard
19731 \begin_layout Standard
19735 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
19742 \begin_inset Note Note
19745 \begin_layout Standard
19746 The caption format is changed only for this example.
19754 \begin_layout Standard
19755 \begin_inset Float figure
19761 \begin_layout Standard
19763 \begin_inset Graphics
19764 filename clipart/mobius.eps
19773 \begin_layout Standard
19774 \begin_inset Caption
19776 \begin_layout Standard
19777 \begin_inset LatexCommand label
19778 name "fig:This-is-an-fig"
19782 This is an example figure caption that is longer than one line to show the
19783 different caption format.
19784 Here a self-defined caption format is used.
19797 \begin_layout Standard
19801 \begin_layout Standard
19805 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
19814 \begin_layout Standard
19815 \begin_inset Float table
19821 \begin_layout Standard
19822 \begin_inset Caption
19824 \begin_layout Standard
19825 \begin_inset LatexCommand label
19826 name "tab:This-is-an-tab"
19830 This is an example table caption that is longer than one line to show the
19831 different caption format.
19832 Here the standard caption format for tables in this document is used.
19840 \begin_layout Standard
19842 \begin_inset Tabular
19843 <lyxtabular version="3" rows="1" columns="5">
19845 <column alignment="center" valignment="top" leftline="true" width="0">
19846 <column alignment="center" valignment="top" leftline="true" width="0">
19847 <column alignment="center" valignment="top" leftline="true" width="0">
19848 <column alignment="center" valignment="top" leftline="true" width="0">
19849 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19850 <row topline="true" bottomline="true">
19851 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19854 \begin_layout Standard
19860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19863 \begin_layout Standard
19869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19872 \begin_layout Standard
19878 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19881 \begin_layout Standard
19887 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19890 \begin_layout Standard
19909 \begin_layout Section
19911 \begin_inset LatexCommand index
19912 name "Caption ! Placement"
19917 \begin_inset LatexCommand index
19918 name "Floats ! Caption Placement"
19923 \begin_inset LatexCommand label
19924 name "sec:Caption-Placement"
19931 \begin_layout Standard
19932 The common caption placement rule is:
19935 \begin_layout Description
19936 Figure: Caption is set below the figure
19939 \begin_layout Description
19940 Table: Caption is set above the table
19943 \begin_layout Standard
19944 Having the caption above the table is unfortunately not supported in LaTeX's
19946 That means if you are using the document classes
19962 there will be no space between the caption and the table.
19963 To insert the needed space, add the following option to the load command
19964 of the LaTeX-package
19968 in your document preamble
19972 \begin_layout Standard
19973 See section\InsetSpace ~
19975 \begin_inset LatexCommand ref
19976 reference "sec:Caption-Formatting"
19980 for more information of the package
19992 \begin_layout Standard
19998 \begin_layout Standard
20004 \begin_inset LatexCommand index
20005 name "LaTeX-packages ! koma-script"
20011 article (koma-script)
20019 letter (koma-script)
20023 report (koma-script)
20025 \InsetSpace \thinspace{}
20026 ), you can alternatively to the
20030 package set the document class option
20034 , or you can use the environment
20036 caption\InsetSpace ~
20046 \begin_layout Standard
20047 \begin_inset VSpace bigskip
20050 It is also possible to set the caption beside a figure or table.
20051 To get this the LaTeX-package
20056 \begin_inset LatexCommand index
20057 name "LaTeX-packages ! sidecap"
20061 has to be loaded in the document preamble with the line
20064 \begin_layout Standard
20069 usepackage[option]{sidecap}
20072 \begin_layout Standard
20073 If you set no option, the caption is placed on the side of the outer page
20074 margin -- to the right on odd pages, to the left on even pages.
20075 You can change the placement to inner margin with the option
20080 To force the placement always to the right or left, use the option
20091 \begin_layout Standard
20092 To place in LyX the caption of a float on the side, it is necessary to add
20093 these commands to the document preamble:
20096 \begin_layout Standard
20102 \begin_layout Standard
20115 \begin_layout Standard
20136 \begin_layout Standard
20157 \begin_layout Standard
20168 renewenvironment{table}{
20175 \begin_layout Standard
20188 \begin_layout Standard
20209 \begin_layout Standard
20227 \begin_layout Standard
20240 \begin_layout Standard
20255 f\SpecialChar \textcompwordmark{}
20262 \begin_layout Standard
20275 MyEndf\SpecialChar \textcompwordmark{}
20278 endf\SpecialChar \textcompwordmark{}
20285 \begin_layout Standard
20296 renewenvironment{f\SpecialChar \textcompwordmark{}
20299 begin{SCf\SpecialChar \textcompwordmark{}
20302 end{SCf\SpecialChar \textcompwordmark{}
20306 \begin_layout Standard
20319 \begin_layout Standard
20332 f\SpecialChar \textcompwordmark{}
20341 \begin_layout Standard
20354 endf\SpecialChar \textcompwordmark{}
20357 MyEndf\SpecialChar \textcompwordmark{}
20361 \begin_layout Standard
20367 \begin_layout Standard
20368 The commands allow you to redefine the floats so that the caption is set
20370 For figure floats use the command
20373 \begin_layout Standard
20381 \begin_layout Standard
20382 in ERT before the float.
20383 Behind the float insert the command
20386 \begin_layout Standard
20394 \begin_layout Standard
20395 in ERT to get back to the original float definition.
20398 \begin_layout Standard
20399 For table floats use the corresponding commands
20402 \begin_layout Standard
20416 \begin_layout Standard
20417 Figure\InsetSpace ~
20419 \begin_inset LatexCommand ref
20420 reference "fig:cap-beside-fig"
20424 and Table\InsetSpace ~
20426 \begin_inset LatexCommand ref
20427 reference "tab:cap-beside-tab"
20431 are examples where the caption is set beside.
20434 \begin_layout Standard
20435 You can see in the examples that the caption text appears at the top of
20436 the floats for table floats and at the bottom for figure floats.
20437 To change this, you can use the command
20440 \begin_layout Standard
20445 sidecaptionvpos{float type}{placement}
20448 \begin_layout Standard
20449 in the document preamble or in ERT before the float.
20450 The float type is either
20458 , the placement can be
20459 \begin_inset Quotes eld
20467 \begin_inset Quotes erd
20471 \begin_inset Quotes eld
20479 \begin_inset Quotes erd
20483 \begin_inset Quotes eld
20491 \begin_inset Quotes erd
20495 To have for example the caption of figure floats vertically centered, use
20499 \begin_layout Standard
20504 sidecaptionvpos{f\SpecialChar \textcompwordmark{}
20508 \begin_layout Standard
20509 This was used for Figure\InsetSpace ~
20511 \begin_inset LatexCommand ref
20512 reference "fig:cap-beside-fig-2"
20519 \begin_layout Standard
20520 \begin_inset VSpace defskip
20523 For more information about the package
20527 we refer to its documentation
20528 \begin_inset LatexCommand cite
20536 \begin_layout Standard
20537 \begin_inset Note Greyedout
20540 \begin_layout Standard
20550 \begin_inset LatexCommand index
20551 name "LaTeX-packages ! hypcap"
20555 , described in section\InsetSpace ~
20557 \begin_inset LatexCommand ref
20558 reference "sub:Reference-Position"
20562 , has no effect on floats with the caption set beside.
20570 \begin_layout Standard
20574 \begin_layout Standard
20586 \begin_layout Standard
20587 \begin_inset Float figure
20592 \begin_layout Standard
20593 \begin_inset Graphics
20594 filename clipart/escher-lsd.eps
20602 \begin_layout Standard
20603 \begin_inset Caption
20605 \begin_layout Standard
20606 \begin_inset LatexCommand label
20607 name "fig:cap-beside-fig"
20611 This is a caption beside a figure.
20624 \begin_layout Standard
20628 \begin_layout Standard
20640 \begin_layout Standard
20641 \begin_inset Float table
20646 \begin_layout Standard
20647 \begin_inset Caption
20649 \begin_layout Standard
20650 \begin_inset LatexCommand label
20651 name "tab:cap-beside-tab"
20655 This is a caption beside a table.
20663 \begin_layout Standard
20664 \begin_inset Tabular
20665 <lyxtabular version="3" rows="4" columns="5">
20667 <column alignment="center" valignment="top" leftline="true" width="0">
20668 <column alignment="center" valignment="top" leftline="true" width="0">
20669 <column alignment="center" valignment="top" leftline="true" width="0">
20670 <column alignment="center" valignment="top" leftline="true" width="0">
20671 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
20672 <row topline="true">
20673 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20676 \begin_layout Standard
20682 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20685 \begin_layout Standard
20691 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20694 \begin_layout Standard
20700 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20703 \begin_layout Standard
20709 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20712 \begin_layout Standard
20719 <row topline="true">
20720 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20723 \begin_layout Standard
20729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20732 \begin_layout Standard
20738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20741 \begin_layout Standard
20747 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20750 \begin_layout Standard
20756 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20759 \begin_layout Standard
20766 <row topline="true">
20767 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20770 \begin_layout Standard
20776 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20779 \begin_layout Standard
20785 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20788 \begin_layout Standard
20794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20797 \begin_layout Standard
20803 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20806 \begin_layout Standard
20813 <row topline="true" bottomline="true">
20814 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20817 \begin_layout Standard
20823 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20826 \begin_layout Standard
20832 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20835 \begin_layout Standard
20841 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20844 \begin_layout Standard
20850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20853 \begin_layout Standard
20872 \begin_layout Standard
20876 \begin_layout Standard
20888 \begin_layout Standard
20892 \begin_layout Standard
20896 sidecaptionvpos{figure}{c}
20902 \begin_inset Float figure
20907 \begin_layout Standard
20908 \begin_inset Graphics
20909 filename clipart/escher-lsd.eps
20917 \begin_layout Standard
20918 \begin_inset Caption
20920 \begin_layout Standard
20921 \begin_inset LatexCommand label
20922 name "fig:cap-beside-fig-2"
20926 This is a vertically centered caption beside a figure.
20939 \begin_layout Standard
20943 \begin_layout Standard
20955 \begin_layout Section
20957 \begin_inset LatexCommand label
20958 name "sec:Listings-of-Floats"
20963 \begin_inset LatexCommand index
20964 name "Floats ! Listings"
20971 \begin_layout Standard
20972 Similar to the the table of contents where the sections of the document
20973 are listed, there are listings for all float types, like the figures of
20975 You can insert them via the
20977 Insert\SpecialChar \menuseparator
20985 \begin_layout Standard
20986 The list entries are the float captions or its short title, the float number,
20987 and the page number where they appear in the document.
20990 \begin_layout Standard
20991 You can find the list of figures and tables at the end of this document.
20994 \begin_layout Chapter
20998 \begin_layout Section
21002 \begin_layout Standard
21015 \begin_layout Standard
21023 \begin_inset LatexCommand label
21024 name "sec:LyX-Notes"
21029 \begin_inset LatexCommand index
21030 name "Notes ! LyX Notes"
21035 \begin_inset Note Note
21038 \begin_layout Standard
21041 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
21042 are displayed wrongly in PDF-bookmarks.
21043 For more information about this, have a look at
21044 \begin_inset LatexCommand cite
21057 \begin_layout Standard
21058 Notes are inserted with the toolbar button
21059 \begin_inset Graphics
21060 filename ../images/note-insert.xpm
21067 Insert\SpecialChar \menuseparator
21071 There are five types of notes:
21074 \begin_layout Description
21076 Note This note type is for internal notes that won't appear in the output.
21077 Its note-box looks like this:
21082 \begin_inset Graphics
21083 filename clipart/LyXNoteImageQt4.png
21090 \begin_inset Note Note
21093 \begin_layout Standard
21094 This is text in a note box that doesn't appear in the output.
21102 \begin_layout Description
21103 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
21104 ent, when you export the document to LaTeX via the menu
21106 File\SpecialChar \menuseparator
21107 Export\SpecialChar \menuseparator
21108 LaTeX (pdflatex) / LaTeX (plain)
21111 Its note-box looks like this:
21116 \begin_inset Graphics
21117 filename clipart/CommentNoteImageQt4.png
21124 \begin_inset Note Comment
21127 \begin_layout Standard
21128 This is text in a note box that only appears as comment in LaTeX-files.
21136 \begin_layout Description
21137 Greyed\InsetSpace ~
21138 Out This note will appear in the output as grey text.
21139 Its note-box looks like this:
21144 \begin_inset Graphics
21145 filename clipart/GreyedOutNoteImageQt4.png
21157 \begin_layout Standard
21161 renewenvironment{lyxgreyedout}
21164 \begin_layout Standard
21168 textcolor[gray]{0.8}
21178 \begin_inset Note Greyedout
21181 \begin_layout Standard
21186 \begin_layout Standard
21187 This is an example footnote within a greyed out note.
21192 of a comment that appears in the output as grey text.
21201 \begin_layout Standard
21205 renewenvironment{lyxgreyedout}
21208 \begin_layout Standard
21222 \begin_inset Note Note
21225 \begin_layout Standard
21226 The greyed out note is here redefined to show it with the original LyX definitio
21227 n because greyed out notes are redefined in the preamble of this document,
21228 as described below, to have blue text.
21237 As you can see in the example, the first line of greyed out notes is a bit
21238 indented and greyed out notes can have footnotes.
21241 \begin_layout Description
21242 Framed This note will appear in the output as framed text.
21243 Its note-box looks like this:
21248 \begin_inset Graphics
21249 filename clipart/FramedNoteImageQt4.png
21256 \begin_inset Note Framed
21259 \begin_layout Standard
21260 This is text in a note box that appears framed in the output.
21265 In contrary to framed boxes
21269 \begin_layout Standard
21270 Framed boxes are described in section\InsetSpace ~
21272 \begin_inset LatexCommand ref
21273 reference "sec:Framed-Boxes"
21282 the frame uses always the whole text width and the note is set into its
21286 \begin_layout Description
21287 Shaded This note will appear in the output with red background color.
21288 Its note box looks like this:
21293 \begin_inset Graphics
21294 filename clipart/ShadedNoteImageQt4.png
21301 \begin_inset Note Shaded
21304 \begin_layout Standard
21305 This text in a note box appears in the output with red background.
21310 In contrary to colored boxes
21314 \begin_layout Standard
21315 Colored boxes are described in section\InsetSpace ~
21317 \begin_inset LatexCommand ref
21318 reference "sec:Colored-Boxes"
21327 the note uses always the whole text width and the note is set into its
21331 \begin_layout Standard
21332 \begin_inset VSpace bigskip
21335 When you use the toolbar button to insert notes, a
21341 You can switch between the five note types by right-clicking on the note-box.
21346 If you want to turn existing text into a note, mark it and click on the
21362 \begin_layout Standard
21363 \begin_inset VSpace bigskip
21366 You can change the text color of the greyed out notes in the preamble with
21367 the following command:
21370 \begin_layout Standard
21375 renewenvironment{lyxgreyedout}
21381 \begin_layout Standard
21399 \begin_layout Standard
21400 The available colors and the method to define own colors is explained in
21401 section\InsetSpace ~
21403 \begin_inset LatexCommand ref
21404 reference "sec:Colored-Tables"
21411 \begin_layout Standard
21412 Notes that appear in blue in this document are set using greyed out notes
21416 \begin_layout Standard
21417 \begin_inset VSpace bigskip
21423 \begin_layout Standard
21432 notes can be set in the
21439 \begin_layout Standard
21440 The default frame width for
21444 notes is 0.4\InsetSpace \thinspace{}
21445 pt; it can be changed by changing the size
21452 The default space between the note content and the frame is 9\InsetSpace \thinspace{}
21454 be changed by changing the size
21461 For example the frame appearance of the following
21465 note is set with the ERT commands
21468 \begin_layout Standard
21478 \begin_layout Standard
21482 \begin_layout Standard
21494 \begin_inset Note Framed
21497 \begin_layout Standard
21511 \begin_layout Standard
21525 \begin_layout Standard
21526 \begin_inset VSpace bigskip
21532 \begin_layout Standard
21537 notes the default space between the note content and the note border is
21538 3\InsetSpace \thinspace{}
21539 pt; it can be changed by changing the size
21547 The default background color red can be changed with the command
21551 def\SpecialChar \textcompwordmark{}
21559 def\SpecialChar \textcompwordmark{}
21562 command is explained in section\InsetSpace ~
21564 \begin_inset LatexCommand ref
21565 reference "sec:Colored-Tables"
21573 \begin_layout Standard
21580 \SpecialChar \textcompwordmark{}
21585 requires the LaTeX-package
21589 in the preamble, see section\InsetSpace ~
21591 \begin_inset LatexCommand ref
21592 reference "sec:Colored-Boxes"
21604 \begin_layout Standard
21605 For example the appearance of the following
21609 note is set with the ERT commands
21612 \begin_layout Standard
21625 def\SpecialChar \textcompwordmark{}
21626 inecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21629 \begin_layout Standard
21633 \begin_layout Standard
21646 \begin_layout Standard
21650 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21656 \begin_inset Note Shaded
21659 \begin_layout Standard
21662 This is yellow text in a
21672 note with darkgreen background.
21681 \begin_layout Standard
21694 \begin_layout Standard
21698 definecolor{shadecolor}{rgb}{1,0,0}
21706 \begin_layout Section
21708 \begin_inset LatexCommand label
21709 name "sec:Footnotes"
21714 \begin_inset LatexCommand index
21715 name "Notes ! Footnotes"
21720 \begin_inset LatexCommand index
21728 \begin_layout Standard
21729 Footnotes can be inserted using the toolbar button
21730 \begin_inset Graphics
21731 filename ../images/footnote-insert.xpm
21738 Insert\SpecialChar \menuseparator
21750 then the following footnote-box:
21751 \begin_inset Graphics
21752 filename clipart/footnoteQt4.png
21761 where you can enter the footnote text.
21762 If you want to turn existing text into a footnote, mark it and click on
21778 \begin_layout Standard
21779 Here is an example footnote:
21787 \begin_layout Standard
21788 \begin_inset LatexCommand label
21789 name "foot:This-is-an"
21793 This is an example footnote.
21806 \begin_layout Standard
21810 newcounter{MyRepeatFoot}
21813 \begin_layout Standard
21817 setcounter{MyRepeatFoot}{
21827 \begin_layout Standard
21828 The footnote will appear in the output as a superscript number at the text
21829 position where the footnote box is placed.
21830 The footnote text is placed at the bottom of the current page.
21831 The footnote number is calculated by LaTeX, the numbers are consecutive.
21832 It depends on your document-class, if the footnote number is reset for
21836 \begin_layout Standard
21837 Footnotes can be referenced like floats: Insert a label into the footnote
21838 and cross-reference this label in the text as described in section\InsetSpace ~
21840 \begin_inset LatexCommand ref
21841 reference "sec:Referencing-Floats"
21847 This is a cross-reference of Footnote\InsetSpace ~
21849 \begin_inset LatexCommand ref
21850 reference "foot:This-is-an"
21857 \begin_layout Standard
21858 \begin_inset VSpace defskip
21861 To use footnotes within tables, you have to use minipages, see section\InsetSpace ~
21863 \begin_inset LatexCommand ref
21864 reference "sec:Minipages"
21869 Footnotes within longtables are described in section\InsetSpace ~
21871 \begin_inset LatexCommand ref
21872 reference "sub:Footnotes-in-Longtables"
21879 \begin_layout Standard
21880 \begin_inset VSpace defskip
21883 To create only a mark for a footnote, use the command
21887 footnotemark[number]
21890 This is used when you have the same annotation several times in a text
21891 but doesn't want to print the footnote text every time.
21894 the number of the repeating footnote while you are writing the text, you
21895 have to store its number.
21896 For the following footnote mark example, these commands were inserted in
21897 ERT behind Footnote\InsetSpace ~
21899 \begin_inset LatexCommand ref
21900 reference "foot:This-is-an"
21904 to store the footnote number:
21907 \begin_layout Standard
21912 newcounter{MyRepeatFoot}
21916 setcounter{MyRepeatFoot}{
21921 \begin_layout Standard
21922 The footnote mark was then created with this command:
21925 \begin_layout Standard
21935 \begin_layout Standard
21936 Here is an example footnote mark:
21944 \begin_layout Standard
21958 \begin_layout Subsection
21960 \begin_inset LatexCommand label
21961 name "sub:Footnote-Numbering"
21966 \begin_inset LatexCommand index
21967 name "Footnotes ! Numbering"
21974 \begin_layout Standard
21975 To reset the footnote number back to 1 after each section
21977 , add this command to your document preamble:
21980 \begin_layout Standard
21985 @addtoreset{footnote}{section}
21988 \begin_layout Standard
21989 \begin_inset VSpace bigskip
21992 The following preamble command changes the footnote numbering style to small
21996 \begin_layout Standard
22008 \begin_layout Standard
22012 \begin_layout Standard
22025 This is a footnote with roman numbering:
22029 \begin_layout Standard
22030 This is an example footnote with roman numbering.
22039 \begin_layout Standard
22055 \begin_layout Standard
22056 To change the numbering style to capital roman numerals replace in the command
22071 \begin_inset Quotes eld
22075 \begin_inset Quotes erd
22078 footnotes with capital or small Latin letters use
22092 \begin_inset Quotes eld
22096 \begin_inset Quotes erd
22099 footnotes with symbols use
22108 \begin_layout Standard
22109 \begin_inset Note Greyedout
22112 \begin_layout Standard
22117 You can only number 26 footnotes with Latin letters, because this numbering
22118 is limited to single letters.
22126 \begin_inset Note Greyedout
22129 \begin_layout Standard
22134 You can only number 9 footnotes with symbols.
22142 \begin_layout Standard
22143 To return to the default numbering style when you changed to another one,
22156 in the command above.
22159 \begin_layout Standard
22160 \begin_inset VSpace bigskip
22166 \begin_layout Standard
22167 If you want to have footnotes numbered in the scheme
22168 \begin_inset Quotes eld
22172 \begin_inset Quotes erd
22175 , add the following command to your document preamble:
22178 \begin_layout Standard
22183 numberwithin{footnote}{chapter}
22186 \begin_layout Standard
22187 To be able to use the command
22198 in the document settings the option
22208 \begin_layout Standard
22212 \begin_layout Standard
22216 numberwithin{footnote}{chapter}
22221 This is another example footnote:
22227 \begin_layout Standard
22228 This is a footnote numbered in the scheme
22229 \begin_inset Quotes eld
22233 \begin_inset Quotes erd
22247 \begin_layout Standard
22251 numberwithin{footnote}{part}
22259 \begin_layout Standard
22260 \begin_inset Note Greyedout
22263 \begin_layout Standard
22274 always prints out the footnote number as arabic number; previous redefinitions
22275 to get non-arabic numbers are overwritten.
22283 \begin_layout Standard
22284 So to get for example the scheme
22285 \begin_inset Quotes eld
22291 \begin_inset Quotes erd
22294 , use this command instead of
22303 \begin_layout Standard
22317 \begin_layout Subsection
22319 \begin_inset LatexCommand index
22320 name "Footnotes ! Placement"
22327 \begin_layout Standard
22328 If you have several footnotes in one page, they appear without vertical
22329 space between them at the bottom of the page.
22330 To make them better readable you can e.\InsetSpace \thinspace{}
22332 add 1.5\InsetSpace \thinspace{}
22333 mm space with the following
22337 \begin_layout Standard
22359 \begin_layout Standard
22360 \begin_inset VSpace bigskip
22363 In a two-column document the footnotes appear at the bottom of every column,
22364 see Figure\InsetSpace ~
22366 \begin_inset LatexCommand ref
22367 reference "fig:Standard-footnote-placement"
22372 If the footnotes should only appear at the bottom of the right column,
22373 as in Figure\InsetSpace ~
22375 \begin_inset LatexCommand ref
22376 reference "fig:Footnote-placement-in"
22380 , use the LaTeX-package
22385 \begin_inset LatexCommand index
22386 name "LaTeX-packages ! ftnright"
22390 with this command in the document preamble:
22393 \begin_layout Standard
22398 usepackage{ftnright}
22401 \begin_layout Standard
22402 \begin_inset Float figure
22408 \begin_layout Standard
22412 \begin_layout Standard
22422 \begin_inset Graphics
22423 filename clipart/without_fntright.pdf
22432 \begin_layout Standard
22442 \begin_layout Standard
22443 \begin_inset Caption
22445 \begin_layout Standard
22446 \begin_inset LatexCommand label
22447 name "fig:Standard-footnote-placement"
22451 Standard footnote placement in two-column documents.
22464 \begin_layout Standard
22465 \begin_inset Float figure
22471 \begin_layout Standard
22475 \begin_layout Standard
22485 \begin_inset Graphics
22486 filename clipart/with_fntright.pdf
22495 \begin_layout Standard
22505 \begin_layout Standard
22506 \begin_inset Caption
22508 \begin_layout Standard
22509 \begin_inset LatexCommand label
22510 name "fig:Footnote-placement-in"
22514 Footnote placement in two-column documents when the LaTeX-package
22531 \begin_layout Standard
22532 \begin_inset VSpace bigskip
22535 In some scientific literature it is usual to collect the footnotes and print
22536 them in a separate paragraph at the the end of a section, like in Figure\InsetSpace ~
22538 \begin_inset LatexCommand ref
22539 reference "fig:Endnotes----footnotes"
22544 They are then so called
22545 \begin_inset Quotes eld
22549 \begin_inset Quotes erd
22553 To use endnotes instead of footnotes in your document, load the LaTeX-package
22559 \begin_inset LatexCommand index
22560 name "LaTeX-packages ! endnotes"
22564 with the document preamble lines
22567 \begin_layout Standard
22572 usepackage{endnotes}
22583 \begin_layout Standard
22584 To insert the collected footnotes, insert the command
22587 \begin_layout Standard
22595 \begin_layout Standard
22596 in ERT at the the end of a section or chapter.
22599 \begin_layout Standard
22600 \begin_inset Float figure
22605 \begin_layout Standard
22610 \begin_layout Standard
22620 \begin_inset Graphics
22621 filename clipart/endnotes.pdf
22629 \begin_layout Standard
22639 \begin_layout Standard
22640 \begin_inset Caption
22642 \begin_layout Standard
22643 \begin_inset LatexCommand label
22644 name "fig:Endnotes----footnotes"
22648 Endnotes -- footnotes are printed in a separate paragraph at the end of
22649 sections or chapters.
22662 \begin_layout Standard
22663 \begin_inset VSpace defskip
22666 The paragraph heading for the endnotes isn't automatically translated into
22667 the document language, this must be done manually.
22668 The following preamble command translate the default English name
22669 \begin_inset Quotes eld
22673 \begin_inset Quotes erd
22676 to the German translation
22677 \begin_inset Quotes eld
22681 \begin_inset Quotes erd
22687 \begin_layout Standard
22694 notesname}{Anmerkungen}
22697 \begin_layout Standard
22698 \begin_inset VSpace defskip
22701 The numbering of endnotes can be changed like the footnote numbering as
22702 described in section\InsetSpace ~
22704 \begin_inset LatexCommand ref
22705 reference "sub:Footnote-Numbering"
22709 ; just replace the command
22722 To reset the endnote number use the command
22728 as described in section\InsetSpace ~
22730 \begin_inset LatexCommand ref
22731 reference "sub:Footnote-Numbering"
22735 and replace the command parameter
22746 \begin_layout Standard
22747 To create only a mark for an endnote, use the command
22751 endnotemark[number]
22753 similar to the command
22759 , described in section\InsetSpace ~
22761 \begin_inset LatexCommand ref
22762 reference "sec:Footnotes"
22769 \begin_layout Standard
22770 \begin_inset VSpace bigskip
22773 Footnotes can also be placed in the page margin and the footnote text alignment
22774 can be changed, see the LaTeX-package
22779 \begin_inset LatexCommand index
22780 name "LaTeX-packages ! footmisc"
22785 \begin_inset LatexCommand cite
22790 for more information about this.
22793 \begin_layout Standard
22794 For various further footnote formatting issues have a look at LaTeX-books,
22796 \begin_inset LatexCommand cite
22797 key "latexcompanion,latexguide,latexbook"
22804 \begin_layout Section
22806 \begin_inset LatexCommand index
22807 name "Notes ! Margin Notes"
22814 \begin_layout Standard
22815 Margin notes look and behave in LyX like footnotes.
22816 They are inserted via the menu
22818 Insert\SpecialChar \menuseparator
22819 Marginal\InsetSpace ~
22822 or the toolbar button
22823 \begin_inset Graphics
22824 filename ../images/marginalnote-insert.xpm
22840 \begin_inset Quotes eld
22844 \begin_inset Quotes erd
22847 appears where you can enter the text of the margin note.
22850 \begin_layout Standard
22851 At the side is an example margin note.
22855 \begin_inset Marginal
22858 \begin_layout Standard
22859 This is a margin note.
22867 \begin_layout Standard
22868 Margin notes appear at the right side in single-sided documents.
22869 In double-sided documents they appear in the outer margin -- left on even
22870 pages, right on odd pages.
22871 The text of margin notes is aligned opposite to the outer margin -- right-align
22872 ed when the note appears in the left margin.
22873 The first line of the margin note is placed at the position of the text
22874 line where it is inserted in the document.
22877 \begin_layout Standard
22878 \begin_inset VSpace bigskip
22881 To place the margin note in the inner margin, add the command
22884 \begin_layout Standard
22892 \begin_layout Standard
22893 in ERT before a margin note.
22894 The new placement is valid for all following margin notes.
22898 \begin_layout Standard
22908 \begin_inset Marginal
22911 \begin_layout Standard
22912 This is a margin note in the inner margin.
22924 \begin_inset Note Greyedout
22927 \begin_layout Standard
22932 There is often not enough space in the inner margin so that the notes are
22933 not correctly displayed in the output.
22941 \begin_layout Standard
22945 \begin_layout Standard
22954 To return to the default placement insert the command
22957 \begin_layout Standard
22965 \begin_layout Standard
22968 \begin_inset Note Greyedout
22971 \begin_layout Standard
22976 The command is ignored when it is within a paragraph where also the command
22991 \begin_layout Standard
22992 \begin_inset VSpace bigskip
22999 \begin_inset Marginal
23002 \begin_layout Standard
23003 AVeryLongMarginParWord that isn't hyphenated.
23011 Similar to the case described in section\InsetSpace ~
23013 \begin_inset LatexCommand ref
23014 reference "sub:Multiple-Lines-in"
23018 , long words cannot be hyphenated when they are the first word in a margin
23020 To avoid this, insert the command
23023 \begin_layout Standard
23031 \begin_layout Standard
23032 in ERT before the word
23036 \begin_inset Marginal
23039 \begin_layout Standard
23043 \begin_layout Standard
23052 AVeryLongMarginParWord that is hyphenated.
23060 \begin_layout Standard
23061 \begin_inset VSpace bigskip
23067 \begin_layout Standard
23068 \begin_inset Note Greyedout
23071 \begin_layout Standard
23076 Margin notes can normally not be used inside tables, floats, and footnotes.
23084 \begin_layout Standard
23085 \begin_inset VSpace bigskip
23091 \begin_layout Standard
23095 \begin_layout Standard
23105 \begin_inset Note Note
23108 \begin_layout Standard
23109 The following section will only be displayed when you have the LaTeX-package
23122 \begin_layout Standard
23123 This restriction can be evaded by using the LaTeX-package
23128 \begin_inset LatexCommand index
23129 name "LaTeX-packages ! marginnote"
23134 By adding these two lines to your document preamble, the command used by
23135 LyX for margin notes is redefined to use the command provided by the
23142 \begin_layout Standard
23147 usepackage{marginnote}
23158 \begin_layout Standard
23159 This is also used in this document because
23163 has another useful feature: You can set a vertical offset for the note.
23164 This is often needed when too many margin notes are too close together
23165 or for a better page layout.
23166 The offset is set in LyX as ERT directly behind the margin note in the
23170 \begin_layout Standard
23176 \begin_layout Standard
23177 where the offset is a length with one of the units listed in Table\InsetSpace ~
23179 \begin_inset LatexCommand ref
23180 reference "tab:Units"
23185 A negative value shifts the note up, a positive value shifts it down.
23189 For example the margin note beside this text line is shifted up 1.5\InsetSpace \thinspace{}
23192 \begin_inset Quotes eld
23202 \begin_inset Quotes erd
23206 \begin_inset Marginal
23209 \begin_layout Standard
23210 This margin note is shifted up 1.5\InsetSpace \thinspace{}
23211 cm from its original position.
23223 \begin_layout Standard
23233 \begin_layout Standard
23234 \begin_inset VSpace defskip
23241 you can also change the alignment of the text in the margin note.
23242 For example the commands
23245 \begin_layout Standard
23252 raggedleftmarginnote}{
23260 raggedrightmarginnote}{
23265 \begin_layout Standard
23266 set the alignment to centered.
23271 raggedleftmarginnote
23273 denotes margin notes that appear at the left side.
23280 \begin_layout Standard
23286 raggedleftmarginnote}{
23291 \begin_layout Standard
23297 raggedrightmarginnote}{
23305 \begin_inset Marginal
23308 \begin_layout Standard
23309 The text of this margin note is centered.
23320 \begin_layout Standard
23327 raggedleftmarginnote}{
23335 raggedrightmarginnote}{
23344 \begin_layout Standard
23350 raggedleftmarginnote}{
23355 \begin_layout Standard
23361 raggedrightmarginnote}{
23371 \begin_layout Standard
23372 \begin_inset VSpace defskip
23375 For the other features of
23379 we refer to its documentation
23380 \begin_inset LatexCommand cite
23388 \begin_layout Standard
23389 \begin_inset VSpace bigskip
23392 You can change the layout of margin notes by redefining its definition.
23393 To create for example a header for all margin notes with the underlined,
23394 sans-serif, and bold header text
23395 \begin_inset Quotes eld
23407 \begin_inset Quotes erd
23410 , add this to your document preamble:
23413 \begin_layout Standard
23436 \begin_layout Standard
23453 underbar{Attention!}}}%
23459 \begin_layout Standard
23477 \begin_layout Standard
23484 \begin_layout Standard
23495 \begin_layout Standard
23506 \begin_layout Standard
23514 underbar{Attention!}}}%
23517 \begin_layout Standard
23531 \begin_inset Marginal
23534 \begin_layout Standard
23535 This is a margin note with a defined heading.
23547 \begin_layout Standard
23561 \begin_layout Standard
23578 \begin_inset Note Note
23581 \begin_layout Standard
23582 The margin note format is changed only for this example.
23590 \begin_layout Standard
23594 \begin_layout Standard
23604 \begin_inset Note Note
23607 \begin_layout Standard
23608 The following will be displayed when the LaTeX-package
23620 \begin_layout Standard
23621 You need to install the LaTeX-package
23625 to see the following part of this section in the output.
23628 \begin_layout Standard
23632 \begin_layout Standard
23644 \begin_layout Chapter
23648 \begin_layout Standard
23653 latex package provides a powerful and flexible way to insert program source
23654 code into your document.
23657 \begin_layout Standard
23658 There are three types of listings, in listings package terms:
23661 \begin_layout Description
23662 lstinline short piece of program code like
23663 \begin_inset listings
23667 \begin_layout Standard
23676 To insert this listing, choose
23678 Insert->Program Listing
23691 \begin_layout Description
23692 lstlisting long program listing in its own paragraphs and decorations, For
23694 \begin_inset listings
23698 \begin_layout Standard
23704 \begin_layout Standard
23705 'this is a python function'
23708 \begin_layout Standard
23714 To insert this listing, choose
23716 Insert->Program Listing
23721 \begin_layout Description
23722 lstinputlisting read program listing from a file.
23723 Parameters can be given to list only given lines.
23724 For example, the following listings list line 10 - 15 of this lyx file.
23727 \begin_layout Standard
23728 \begin_inset Include \lstinputlisting{EmbeddedObjects.lyx}[firstline=10,lastline=15,language=TeX,breaklines=true,caption={Line 10 - 15 of this lyx file}]
23736 \begin_layout Standard
23737 To insert this listing, choose
23739 Insert-> File->Child Document
23748 \begin_layout Standard
23749 A lot of listings parameters can be set through the listings dialog, child
23751 Global listings settings can be set through
23753 Document -> Settings -> Text Layout.
23756 \begin_layout Chapter
23760 \begin_layout Section
23762 \begin_inset LatexCommand index
23763 name "Boxes ! Introduction"
23770 \begin_layout Standard
23771 Boxes are used to format a block of text.
23772 Boxes can be used to write documents with multiple languages, see section\InsetSpace ~
23774 \begin_inset LatexCommand ref
23775 reference "sec:Minipages"
23779 , to frame texts, see section\InsetSpace ~
23781 \begin_inset LatexCommand ref
23782 reference "sec:Framed-Boxes"
23786 , to prevent words to be hyphenated, see section\InsetSpace ~
23788 \begin_inset LatexCommand ref
23789 reference "sec:Prevent-Hyphenation"
23793 , to align text, see section\InsetSpace ~
23795 \begin_inset LatexCommand ref
23796 reference "sub:Vertical-Alignment"
23800 , or to set the background color of texts, see section\InsetSpace ~
23802 \begin_inset LatexCommand ref
23803 reference "sec:Colored-Boxes"
23810 \begin_layout Standard
23811 Boxes can be inserted with the menu
23813 Insert\SpecialChar \menuseparator
23817 A grey box with the label
23822 \begin_inset Graphics
23823 filename clipart/BoxInsetDefaultQt4.png
23828 , will be inserted.
23829 The box type can be specified by right-clicking on the box.
23830 The appearing box dialog offers the
23848 is the default for new boxes and is explained in section\InsetSpace ~
23850 \begin_inset LatexCommand ref
23851 reference "sec:Minipages"
23859 is described in section\InsetSpace ~
23861 \begin_inset LatexCommand ref
23862 reference "sec:Parboxes"
23869 \begin_layout Standard
23870 Boxes aren't numbered and can therefore not be referenced like floats or
23874 \begin_layout Standard
23875 \begin_inset Note Greyedout
23878 \begin_layout Standard
23883 Due to a bug in LyX you have to insert a protected space behind a box when
23884 you want to separate in a line the box from the following text with a space.
23892 \begin_layout Standard
23893 \begin_inset Note Greyedout
23896 \begin_layout Standard
23901 Boxes must not be the item in an
23917 \begin_layout Standard
23918 \begin_inset Note Greyedout
23921 \begin_layout Standard
23926 For an unknown reason you can only set the
23935 when you use a framed box.
23941 type and without frames are explained in section\InsetSpace ~
23943 \begin_inset LatexCommand ref
23944 reference "sec:Prevent-Hyphenation"
23956 \begin_layout Section
23958 \begin_inset LatexCommand label
23959 name "sec:Box-Dialog"
23964 \begin_inset LatexCommand index
23965 name "Boxes ! Box Dialog"
23970 \begin_inset LatexCommand index
23971 name "Boxes ! Alignment"
23978 \begin_layout Standard
23979 In the box dialog you can adjust the box geometry in the fields
23988 The available units for the geometry are explained in Table\InsetSpace ~
23990 \begin_inset LatexCommand ref
23991 reference "tab:Units"
24000 offers the following additional sizes:
24003 \begin_layout Description
24004 Depth This is the plain text
24005 \begin_inset Quotes eld
24009 \begin_inset Quotes erd
24013 It ignores the total depth when there are multiple text lines in the box:
24020 \begin_inset Box Boxed
24029 height_special "depth"
24032 \begin_layout Standard
24034 Box height set to 1\InsetSpace \thinspace{}
24047 \begin_layout Description
24048 Height This is the heigth of the text that is inside the box.
24049 A value of e.\InsetSpace \thinspace{}
24051 2 for this size will set the box heigth to 2 times the text
24053 \begin_inset Box Boxed
24062 height_special "height"
24065 \begin_layout Standard
24067 Box height set to 2\InsetSpace \thinspace{}
24076 \begin_layout Description
24078 Height This is the Height\InsetSpace \thinspace{}
24079 +\InsetSpace \thinspace{}
24081 \begin_inset Box Boxed
24090 height_special "totalheight"
24093 \begin_layout Standard
24095 Box height set to 1\InsetSpace \thinspace{}
24105 \begin_layout Description
24106 Width This set the width of the box as heigth:
24107 \begin_inset Box Boxed
24116 height_special "width"
24119 \begin_layout Standard
24121 Box height set to 1\InsetSpace \thinspace{}
24130 \begin_layout Standard
24131 \begin_inset VSpace bigskip
24134 When you have chosen an
24139 , the vertical box alignment can be:
24142 \begin_layout Description
24143 Top This is an example text line.
24145 \begin_inset Box Boxed
24154 height_special "totalheight"
24157 \begin_layout Standard
24159 This box is top-aligned.
24165 This is an example text line.
24168 \begin_layout Description
24169 Middle This is an example text line.
24171 \begin_inset Box Boxed
24180 height_special "totalheight"
24183 \begin_layout Standard
24185 This box is middle-aligned.
24191 This is an example text line.
24194 \begin_layout Description
24195 Bottom This is an example text line.
24197 \begin_inset Box Boxed
24206 height_special "totalheight"
24209 \begin_layout Standard
24211 This box is bottom-aligned.
24217 This is an example text line.
24220 \begin_layout Standard
24221 The horizontal box alignment can be set via LyX's paragraph dialog when
24222 you set the box into its own paragraph.
24225 \begin_layout Standard
24226 \begin_inset VSpace bigskip
24229 When you have chosen an
24234 , the box content can be vertical aligned to:
24237 \begin_layout Description
24238 top This is an example text line.
24240 \begin_inset Box Boxed
24249 height_special "totalheight"
24252 \begin_layout Standard
24254 This box text is top-aligned.
24260 This is an example text line.
24263 \begin_layout Description
24264 middle This is an example text line.
24266 \begin_inset Box Boxed
24275 height_special "totalheight"
24278 \begin_layout Standard
24280 This box text is middle-aligned.
24286 This is an example text line.
24289 \begin_layout Description
24290 bottom This is an example text line.
24292 \begin_inset Box Boxed
24301 height_special "totalheight"
24304 \begin_layout Standard
24306 This box text is bottom-aligned.
24312 This is an example text line.
24315 \begin_layout Description
24316 stretch This is an example text line.
24318 \begin_inset Box Boxed
24327 height_special "totalheight"
24330 \begin_layout Standard
24335 \begin_layout Standard
24340 \begin_layout Standard
24348 This is an example text line.
24351 \begin_layout Standard
24352 To stretch the box content, it must consist of more than one paragraph.
24353 In the example above every text line is in an own paragraph.
24356 \begin_layout Standard
24357 \begin_inset VSpace bigskip
24360 To align the box content horizontally you can use LyX's paragraph dialog
24361 when you have chosen an
24369 \begin_layout Standard
24371 \begin_inset Box Boxed
24380 height_special "totalheight"
24383 \begin_layout Standard
24388 \begin_layout Standard
24393 \begin_layout Standard
24403 \begin_layout Standard
24404 If you haven't set an
24409 , you can align the box content horizontally in the box dialog.
24412 \begin_layout Standard
24414 \begin_inset Box Boxed
24423 height_special "totalheight"
24426 \begin_layout Standard
24428 This box text is horizontally stretched.
24436 \begin_layout Section
24438 \begin_inset LatexCommand label
24439 name "sec:Framed-Boxes"
24444 \begin_inset LatexCommand index
24445 name "Boxes ! Frames"
24452 \begin_layout Standard
24453 The frame style of the box can be specified in the box-dialog in the drop-down
24459 The following frame types are possible:
24462 \begin_layout Description
24463 Rectangular\InsetSpace ~
24464 box This draws a rectangle frame around the box.
24465 The frame line thickness has the size of
24473 \begin_inset Box Boxed
24482 height_special "totalheight"
24485 \begin_layout Standard
24495 \begin_layout Description
24498 thin This draws an oval frame around the box.
24499 The frame line thickness has the size 0.4\InsetSpace \thinspace{}
24502 \begin_inset Box ovalbox
24511 height_special "totalheight"
24514 \begin_layout Standard
24524 \begin_layout Description
24527 thick This draws an oval frame around the box.
24528 The frame line thickness has the size 0.8\InsetSpace \thinspace{}
24531 \begin_inset Box Ovalbox
24540 height_special "totalheight"
24543 \begin_layout Standard
24553 \begin_layout Description
24554 Shadow\InsetSpace ~
24555 box This draws a rectangle frame with a shadow around the box.
24556 The frame line thickness has the size of
24562 , the shadow has a width of 4\InsetSpace \thinspace{}
24565 \begin_inset Box Shadowbox
24574 height_special "totalheight"
24577 \begin_layout Standard
24587 \begin_layout Description
24588 Double\InsetSpace ~
24589 box This draws a double-line rectangle frame around the box.
24590 The line thickness of the inner frame is 0.75\InsetSpace \thinspace{}
24597 , the thickness of the outer frame is 1.5\InsetSpace \thinspace{}
24605 The distance between the lines is 1.5\InsetSpace \thinspace{}
24612 \InsetSpace \thinspace{}
24613 +\InsetSpace \thinspace{}
24614 0.5\InsetSpace \thinspace{}
24617 \begin_inset Box Doublebox
24626 height_special "totalheight"
24629 \begin_layout Standard
24639 \begin_layout Standard
24640 \begin_inset VSpace bigskip
24643 LyX's box label will change to the used frame style when you set a frame.
24644 To be able to use the different frame styles, the LaTeX-package
24649 \begin_inset LatexCommand index
24650 name "LaTeX-packages ! fancybox"
24657 \begin_layout Standard
24658 \begin_inset VSpace bigskip
24661 The default value for the size
24667 is 0.4\InsetSpace \thinspace{}
24669 It can be changed with the following command in ERT to e.\InsetSpace \thinspace{}
24671 2\InsetSpace \thinspace{}
24675 \begin_layout Standard
24685 \begin_layout Standard
24689 \begin_layout Standard
24701 \begin_inset Box Boxed
24710 height_special "totalheight"
24713 \begin_layout Standard
24715 Rectangular box with
24721 \InsetSpace \thinspace{}
24722 =\InsetSpace \thinspace{}
24723 2\InsetSpace \thinspace{}
24733 \begin_layout Standard
24747 \begin_layout Standard
24748 \begin_inset VSpace bigskip
24751 The space between the frame and the box content is for all frame styles
24752 by default 3\InsetSpace \thinspace{}
24754 You can change it by setting the length
24761 For example the command
24764 \begin_layout Standard
24774 \begin_layout Standard
24775 sets the value to 10\InsetSpace \thinspace{}
24776 pt, like for the following box:
24779 \begin_layout Standard
24783 \begin_layout Standard
24795 \begin_inset Box Boxed
24804 height_special "totalheight"
24807 \begin_layout Standard
24809 Rectangular box with
24815 \InsetSpace \thinspace{}
24816 =\InsetSpace \thinspace{}
24817 10\InsetSpace \thinspace{}
24827 \begin_layout Standard
24841 \begin_layout Standard
24842 \begin_inset VSpace bigskip
24845 The diameter of the round corners of the oval boxes can be set with the
24856 \begin_layout Standard
24864 \begin_layout Standard
24865 sets the diameter to 1\InsetSpace \thinspace{}
24870 \begin_layout Standard
24878 \begin_layout Standard
24879 sets the diameter to
24881 num\InsetSpace \thinspace{}
24882 ×\InsetSpace \thinspace{}
24883 minimum(width and heigth of box)
24895 \begin_layout Standard
24899 \begin_layout Standard
24909 \begin_inset Box Ovalbox
24918 height_special "totalheight"
24921 \begin_layout Standard
24929 \InsetSpace \thinspace{}
24930 =\InsetSpace \thinspace{}
24931 1.5\InsetSpace \thinspace{}
24941 \begin_layout Standard
24953 \begin_layout Standard
24954 \begin_inset VSpace bigskip
24957 The size of the shadow can be adjusted by changing the length
24964 It it set to 2\InsetSpace \thinspace{}
24965 pt for the following box by this command:
24968 \begin_layout Standard
24978 \begin_layout Standard
24982 \begin_layout Standard
24994 \begin_inset Box Shadowbox
25003 height_special "totalheight"
25006 \begin_layout Standard
25014 \InsetSpace \thinspace{}
25015 =\InsetSpace \thinspace{}
25016 2\InsetSpace \thinspace{}
25026 \begin_layout Standard
25040 \begin_layout Standard
25041 \begin_inset VSpace bigskip
25044 Changed lengths and widths are valid for all boxes following the commands
25048 \begin_layout Section
25050 \begin_inset LatexCommand label
25051 name "sec:Minipages"
25056 \begin_inset LatexCommand index
25057 name "Boxes ! Minipages"
25064 \begin_layout Standard
25065 Minipages are treated by LaTeX as pages within pages and can therefore for
25066 example have their own footnotes.
25069 \begin_layout Standard
25070 Minipages are useful when you write documents with different languages.
25073 \begin_layout Standard
25074 Below are two example minipages side by side.
25075 Their width is set to 45\InsetSpace \thinspace{}
25076 col% and they are separated by a horizontal fill,
25077 that was inserted via the menu
25079 Insert\SpecialChar \menuseparator
25080 Special\InsetSpace ~
25081 Formatting\SpecialChar \menuseparator
25082 Horizontal\InsetSpace ~
25088 \begin_layout Standard
25089 \begin_inset Box Frameless
25098 height_special "totalheight"
25101 \begin_layout Standard
25104 Dies ist ein deutscher Text.
25105 Dies ist ein deutscher Text.
25106 Dies ist ein deutscher Text.
25107 Dies ist ein deutscher Text.
25108 Dies ist ein deutscher Text.
25109 Dies ist ein deutscher Text.
25110 Dies ist ein deutscher Text.
25111 Dies ist ein deutscher Text.
25112 Dies ist ein deutscher Text.
25113 Dies ist ein deutscher Text.
25114 Dies ist ein deutscher Text.
25115 Dies ist ein deutscher Text.
25116 Dies ist ein deutscher Text
25120 \begin_layout Standard
25123 Dies ist eine deutsche Fußnote.
25129 Dies ist ein deutscher Text.
25130 Dies ist ein deutscher Text.
25138 \begin_inset Box Frameless
25147 height_special "totalheight"
25150 \begin_layout Standard
25151 This is an English Text.
25152 This is an English Text.
25153 This is an English Text.
25154 This is an English Text.
25155 This is an English Text.
25156 This is an English Text.
25157 This is an English Text.
25158 This is an English Text.
25159 This is an English Text.
25160 This is an English Text.
25161 This is an English Text.
25162 This is an English Text.
25163 This is an English Text.
25164 This is an English Text.
25165 This is an English Text.
25166 This is an English Text.
25170 \begin_layout Standard
25171 This is an English footnote.
25176 This is an English Text.
25185 \begin_layout Standard
25186 \begin_inset VSpace bigskip
25189 Another application for minipages are footnotes within tables.
25190 Due to a LaTeX restriction footnotes within tables doesn't appear at the
25191 bottom of the current page.
25192 But when you put the table with the footnote to a minipage, the footnote
25193 will appear at its bottom, numbered with Latin letters.
25194 The footnote number is reset to 1 in every minipage but not outside the
25198 \begin_layout Standard
25199 The footnote of this table doesn't appear:
25200 \begin_inset Tabular
25201 <lyxtabular version="3" rows="3" columns="4">
25203 <column alignment="center" valignment="top" leftline="true" width="0pt">
25204 <column alignment="center" valignment="top" leftline="true" width="0pt">
25205 <column alignment="center" valignment="top" leftline="true" width="0pt">
25206 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25207 <row topline="true">
25208 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25211 \begin_layout Standard
25217 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25220 \begin_layout Standard
25226 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25229 \begin_layout Standard
25234 \begin_layout Standard
25235 This is a footnote within a table.
25245 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25248 \begin_layout Standard
25255 <row topline="true">
25256 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25259 \begin_layout Standard
25265 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25268 \begin_layout Standard
25274 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25277 \begin_layout Standard
25283 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25286 \begin_layout Standard
25293 <row topline="true" bottomline="true">
25294 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25297 \begin_layout Standard
25303 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25306 \begin_layout Standard
25312 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25315 \begin_layout Standard
25321 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25324 \begin_layout Standard
25338 \begin_layout Standard
25340 \begin_inset Box Frameless
25349 height_special "totalheight"
25352 \begin_layout Standard
25354 \begin_inset Tabular
25355 <lyxtabular version="3" rows="3" columns="4">
25357 <column alignment="center" valignment="top" leftline="true" width="0pt">
25358 <column alignment="center" valignment="top" leftline="true" width="0pt">
25359 <column alignment="center" valignment="top" leftline="true" width="0pt">
25360 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25361 <row topline="true">
25362 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25365 \begin_layout Standard
25371 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25374 \begin_layout Standard
25380 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25383 \begin_layout Standard
25388 \begin_layout Standard
25389 This is a footnote within a table.
25399 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25402 \begin_layout Standard
25409 <row topline="true">
25410 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25413 \begin_layout Standard
25419 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25422 \begin_layout Standard
25428 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25431 \begin_layout Standard
25437 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25440 \begin_layout Standard
25447 <row topline="true" bottomline="true">
25448 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25451 \begin_layout Standard
25457 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25460 \begin_layout Standard
25466 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25469 \begin_layout Standard
25475 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25478 \begin_layout Standard
25497 \begin_layout Standard
25498 \begin_inset VSpace bigskip
25501 The document-wide paragraph settings are ignored within minipages.
25502 That means that there will be no space between paragraphs in minipages
25503 although you set it to e.\InsetSpace \thinspace{}
25509 in the document settings.
25512 \begin_layout Standard
25513 Minipages can also be used to set a background color for text parts, see
25514 section\InsetSpace ~
25516 \begin_inset LatexCommand ref
25517 reference "sub:Color-for-Paragraphs"
25524 \begin_layout Standard
25525 \begin_inset Note Greyedout
25528 \begin_layout Standard
25533 You cannot have floats or margin notes inside minipages but minipages can
25534 be used inside tables, floats, and other boxes.
25542 \begin_layout Section
25544 \begin_inset LatexCommand label
25545 name "sec:Parboxes"
25550 \begin_inset LatexCommand index
25551 name "Boxes ! Parboxes"
25558 \begin_layout Standard
25559 Parboxes are very similar to minipages with the difference that they cannot
25561 The main difference to minipages is that minipages are in contrary to parboxes
25562 no real boxes but LaTeX-environments.
25565 \begin_layout Standard
25567 \begin_inset Box Frameless
25576 height_special "totalheight"
25579 \begin_layout Standard
25580 This a text within a parbox.
25581 This a text within a parbox.
25584 \begin_layout Standard
25585 This footnote won't appear:
25589 \begin_layout Standard
25590 This footnote is inside a parbox and will therefore not appear.
25603 \begin_layout Section
25604 Boxes for Words and Characters
25605 \begin_inset LatexCommand index
25606 name "Boxes ! for Characters"
25613 \begin_layout Subsection
25614 Prevent Hyphenation
25615 \begin_inset LatexCommand label
25616 name "sec:Prevent-Hyphenation"
25621 \begin_inset LatexCommand index
25622 name "Boxes ! to Prevent Hyphenation"
25629 \begin_layout Standard
25630 You can use a special kind of boxes to prevent words or text to be hyphenated.
25633 e is an example text:
25636 \begin_layout Standard
25637 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25643 \begin_layout Standard
25644 To prevent the hyphenation of the word
25645 \begin_inset Quotes eld
25649 \begin_inset Quotes erd
25655 \begin_layout Standard
25663 \begin_layout Standard
25664 in ERT before the word.
25665 Behind the word insert a closing brace
25666 \begin_inset Quotes eld
25674 \begin_inset Quotes erd
25681 \begin_layout Standard
25693 \begin_layout Standard
25694 This is the result:
25697 \begin_layout Standard
25698 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25704 \begin_layout Standard
25717 \begin_layout Standard
25727 \begin_layout Standard
25728 Of course the word now protrudes over the side margin.
25729 To avoid this, add via the menu
25731 Insert\SpecialChar \menuseparator
25732 Special\InsetSpace ~
25733 Formatting\SpecialChar \menuseparator
25741 ) a line break before the word:
25744 \begin_layout Standard
25745 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25753 \begin_layout Standard
25766 \begin_layout Standard
25776 \begin_layout Subsection
25778 \begin_inset LatexCommand label
25779 name "sub:Vertical-Alignment"
25784 \begin_inset LatexCommand index
25785 name "Boxes ! for Vertical Alignment"
25790 \begin_inset LatexCommand index
25791 name "Boxes ! Raiseboxes"
25798 \begin_layout Standard
25799 With the help of the command
25805 you can align words, characters or other boxes vertically to the surrounding
25813 is used with the following scheme:
25816 \begin_layout Standard
25821 raisebox{lift}[height][depth]{box content}
25824 \begin_layout Standard
25825 The lift can be a positive value to raise the box or a negative value to
25829 \begin_layout Standard
25830 To align for example the word
25831 \begin_inset Quotes eld
25835 \begin_inset Quotes erd
25838 so that the bottom of the
25839 \begin_inset Quotes eld
25843 \begin_inset Quotes erd
25847 \begin_inset Quotes eld
25851 \begin_inset Quotes erd
25854 is at the baseline, insert the command
25857 \begin_layout Standard
25867 \begin_layout Standard
25868 in ERT before the word.
25869 Behind the word insert a closing brace
25870 \begin_inset Quotes eld
25878 \begin_inset Quotes erd
25883 This is the result:
25886 \begin_layout Standard
25887 This is a text line with the word
25891 \begin_layout Standard
25903 \begin_inset Quotes eld
25907 \begin_inset Quotes erd
25914 \begin_layout Standard
25924 \begin_layout Standard
25925 \begin_inset VSpace bigskip
25928 When you raise or lower characters in a line, the line distance will be
25932 \begin_layout Standard
25933 This is a text line with the word
25937 \begin_layout Standard
25949 \begin_inset Quotes eld
25953 \begin_inset Quotes erd
25960 \begin_layout Standard
25969 This is a text line with the word
25973 \begin_layout Standard
25983 \begin_inset Quotes eld
25987 \begin_inset Quotes erd
25994 \begin_layout Standard
26004 \begin_layout Standard
26005 If you want to prevent this for a certain reason, set the box height to
26010 \begin_layout Standard
26020 \begin_layout Standard
26021 This is a text line with the word
26025 \begin_layout Standard
26037 \begin_inset Quotes eld
26041 \begin_inset Quotes erd
26048 \begin_layout Standard
26057 This is a text line with the word
26061 \begin_layout Standard
26065 raisebox{0.5cm}[0pt]{
26071 \begin_inset Quotes eld
26075 \begin_inset Quotes erd
26082 \begin_layout Standard
26092 \begin_layout Section
26094 \begin_inset LatexCommand label
26095 name "sec:Colored-Boxes"
26100 \begin_inset LatexCommand index
26101 name "Boxes ! Color"
26108 \begin_layout Subsection
26110 \begin_inset LatexCommand index
26111 name "Color ! for Text"
26118 \begin_layout Standard
26119 To color the background of text the text must be put into a so called colorbox.
26120 This requires that the LaTeX-package
26125 \begin_inset LatexCommand index
26126 name "LaTeX-packages ! color"
26130 is loaded in the document preamble with the command
26133 \begin_layout Standard
26138 @ifundef\SpecialChar \textcompwordmark{}
26145 \begin_layout Standard
26156 usepackage{color}}{}
26159 \begin_layout Standard
26164 will be loaded automatically by LyX when you color text
26168 \begin_layout Standard
26169 To avoid that it is loaded twice the command
26173 @ifundef\SpecialChar \textcompwordmark{}
26184 \begin_layout Standard
26185 \begin_inset VSpace medskip
26188 Colorboxes are created with the command
26195 This will be used with the following scheme:
26198 \begin_layout Standard
26203 colorbox{color}{box content}
26206 \begin_layout Standard
26207 The box content can also be a box and colorboxes can also be within other
26211 \begin_layout Standard
26212 The following colors are predefined:
26251 You can also define your own color as described in section\InsetSpace ~
26253 \begin_inset LatexCommand ref
26254 reference "sec:Colored-Tables"
26261 \begin_layout Standard
26262 To have e.\InsetSpace \thinspace{}
26264 a red background for a word, insert the command
26267 \begin_layout Standard
26275 \begin_layout Standard
26276 before the word in ERT.
26277 Behind the word insert a closing brace
26278 \begin_inset Quotes eld
26286 \begin_inset Quotes erd
26291 This is the result:
26294 \begin_layout Standard
26295 This is a line where the word
26299 \begin_layout Standard
26309 \begin_inset Quotes eld
26313 \begin_inset Quotes erd
26320 \begin_layout Standard
26327 has a red background.
26330 \begin_layout Standard
26331 \begin_inset VSpace bigskip
26334 If you would have the box frame in a different color, you can use the command
26341 with the following scheme:
26344 \begin_layout Standard
26349 fcolorbox{frame color}{box color}{box content}
26352 \begin_layout Standard
26366 The frame thickness and the space between the frame and the box content
26367 can be adjusted with the lengths
26379 , respectively, as described in section\InsetSpace ~
26381 \begin_inset LatexCommand ref
26382 reference "sec:Framed-Boxes"
26389 \begin_layout Standard
26390 For the following example the command
26393 \begin_layout Standard
26398 fcolorbox{cyan}{magenta}{
26401 \begin_layout Standard
26405 \begin_layout Standard
26406 Here is an example where the frame line thickness was set to 1\InsetSpace \thinspace{}
26413 \begin_layout Standard
26428 \begin_layout Standard
26432 fcolorbox{cyan}{magenta}{
26437 This is text within a colored, framed box.
26441 \begin_layout Standard
26451 \begin_layout Standard
26452 \begin_inset VSpace bigskip
26455 Of course you can also have colored text inside a colorbox:
26461 \begin_layout Standard
26465 fcolorbox{cyan}{magenta}{
26472 This is colored text within a colored, framed box.
26478 \begin_layout Standard
26489 \begin_layout Standard
26503 \begin_layout Standard
26506 \begin_inset VSpace medskip
26512 \begin_layout Standard
26513 \begin_inset Note Greyedout
26516 \begin_layout Standard
26521 Text in colorboxes cannot have line breaks.
26522 To color multiple text lines or paragraphs, use a box inside a colorbox
26523 as described in the following.
26531 \begin_layout Subsection
26532 Color for Paragraphs
26533 \begin_inset LatexCommand label
26534 name "sub:Color-for-Paragraphs"
26539 \begin_inset LatexCommand index
26540 name "Color ! for Paragraphs"
26547 \begin_layout Standard
26548 To set the background color for more than one text line, put the text into
26550 Before the minipage insert the
26559 \begin_layout Standard
26567 \begin_layout Standard
26569 Behind the minipage insert a closing brace
26570 \begin_inset Quotes eld
26578 \begin_inset Quotes erd
26584 \begin_layout Standard
26588 \begin_layout Standard
26592 colorbox{lightgrey}{
26598 \begin_inset Box Frameless
26607 height_special "totalheight"
26610 \begin_layout Standard
26611 This is text with background color.
26612 This is text with background color.
26615 \begin_layout Standard
26616 \begin_inset VSpace defskip
26619 The text can have footnotes
26623 \begin_layout Standard
26624 Another example footnote
26629 and can include tables and figures.
26632 \begin_layout Standard
26634 \begin_inset Tabular
26635 <lyxtabular version="3" rows="3" columns="3">
26637 <column alignment="center" valignment="top" leftline="true" width="0">
26638 <column alignment="center" valignment="top" leftline="true" width="0">
26639 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
26640 <row topline="true">
26641 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26644 \begin_layout Standard
26650 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26653 \begin_layout Standard
26659 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26662 \begin_layout Standard
26669 <row topline="true">
26670 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26673 \begin_layout Standard
26679 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26682 \begin_layout Standard
26684 \begin_inset Quotes erd
26692 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26695 \begin_layout Standard
26702 <row topline="true" bottomline="true">
26703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26706 \begin_layout Standard
26712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26715 \begin_layout Standard
26721 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26724 \begin_layout Standard
26744 \begin_layout Standard
26754 \begin_layout Section
26755 URLs (Uniform Resource Locators)
26756 \begin_inset LatexCommand index
26764 \begin_layout Standard
26765 Links to web pages or email addresses can be inserted via the menu
26767 Insert\SpecialChar \menuseparator
26771 The appearing URL dialog has two fields; the
26779 field for the URL description, which will be typeset as plain text immediately
26783 \begin_layout Standard
26784 Here is an example URL:
26785 \begin_inset LatexCommand url
26786 name "LyX's homepage"
26787 target "http://www.lyx.org"
26794 \begin_layout Standard
26797 Generate\InsetSpace ~
26800 in the URL dialog has only an affect when you export your document to the
26802 \begin_inset Quotes eld
26810 \begin_inset Quotes erd
26816 \begin_layout Standard
26817 You cannot change the style of the link text.
26822 field will have the default text style of the document while the text of
26827 field will have the style
26828 \begin_inset Quotes eld
26836 \begin_inset Quotes erd
26842 \begin_layout Standard
26843 When you use the LaTeX-package
26848 \begin_inset LatexCommand index
26849 name "LaTeX-packages ! hyperref"
26853 to link cross-references in the output, URLs will automatically become
26854 clickable hyperlinks in DVI and PDF-output.
26857 \begin_layout Standard
26858 \begin_inset Note Greyedout
26861 \begin_layout Standard
26866 When you use the following characters: "%", "#", "^", you have to write
26867 them with a preceding backslash, e.\InsetSpace \thinspace{}
26870 \begin_inset Quotes eld
26876 \begin_inset Quotes erd
26880 URLs must not end with a backslash.
26888 \begin_layout Standard
26889 \begin_inset VSpace bigskip
26892 To create real hyperlinks without the force to write the link location to
26893 the text, you can use the command
26896 \begin_layout Standard
26901 href{link location}{link text}
26904 \begin_layout Standard
26906 To get for example a link to LyX's web page, write the command
26909 \begin_layout Standard
26914 href{http://www.lyx.org}{
26917 \begin_layout Standard
26919 Insert after the command the link text
26920 \begin_inset Quotes eld
26924 \begin_inset Quotes erd
26927 as normal text followed by a closing brace
26928 \begin_inset Quotes eld
26936 \begin_inset Quotes erd
26940 This is the result:
26944 \begin_layout Standard
26948 href{http://www.lyx.org}{
26957 \begin_layout Standard
26967 \begin_layout Standard
26968 To link to email addresses, add the prefix
26969 \begin_inset Quotes eld
26977 \begin_inset Quotes erd
26980 to the link location:
26986 \begin_layout Standard
26990 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's documentation}{
26995 lyx-docs mailing list
26999 \begin_layout Standard
27009 \begin_layout Standard
27016 instead of LyX's URL box has the advantage that you can specify the text
27017 style of the link text like for all other text parts.
27018 You can therefore set hyphenation points and forced linebreaks to have
27019 long link text broken at the page margin.
27020 You are furthermore able to change the text style for all URLs in your
27021 document with an option in
27025 's load command and the restrictions mentioned above doesn't apply for
27034 \begin_layout Chapter
27036 \begin_inset LatexCommand index
27037 name "External Stuff"
27044 \begin_layout Standard
27047 Insert\SpecialChar \menuseparator
27050 you can insert external material to your document.
27054 \begin_layout Description
27056 Document Another LyX document; its content is directly inserted to your
27060 \begin_layout Description
27062 Text A text document; every of its text lines is inserted to your document
27066 \begin_layout Description
27070 Lines A text document; its text lines are inserted as they
27072 Empty text lines creates a new paragraph in your document.
27075 \begin_layout Description
27076 External\InsetSpace ~
27077 Material Files in various formats.
27080 \begin_layout Description
27082 Document LyX or LaTeX-documents.
27085 \begin_layout Section
27087 \begin_inset LatexCommand index
27088 name "External Stuff ! External Material"
27095 \begin_layout Standard
27096 The external material feature allows you to insert files to your document
27097 without converting them previously to a format that can be read by the
27098 document output format because LyX takes care of needed conversions.
27099 This is similar to images that can be inserted in various image formats
27103 \begin_layout Standard
27104 External material can be inserted via the
27108 dialog that is accessible with the menu
27110 Insert\SpecialChar \menuseparator
27111 File\SpecialChar \menuseparator
27112 External\InsetSpace ~
27116 Currently the following file types (
27123 \begin_layout Description
27124 ChessDiagram This template supports chess position diagrams made with the
27129 \begin_layout Standard
27133 href{http://en.wikipedia.org/wiki/XBoard}{
27146 \begin_layout Standard
27156 \begin_layout Description
27157 Date This inserts the date in the form
27162 This is a date inserted as external material:
27163 \begin_inset External
27171 The date is not shown within LyX, only in the output.
27172 There are two other methods of inserting a date, via menu
27174 Insert\SpecialChar \menuseparator
27177 and with the LaTeX command
27184 The different methods are compared in Table\InsetSpace ~
27186 \begin_inset LatexCommand ref
27187 reference "tab:Comparison-of-the"
27194 \begin_layout Description
27195 LilyPond This template is used for music notation typeset with the program
27199 \begin_layout Standard
27212 \begin_layout Standard
27216 href{http://en.wikipedia.org/wiki/LilyPond}{
27229 \begin_layout Standard
27237 \begin_inset Note Note
27240 \begin_layout Standard
27247 breaks the line while the remaining text in the line is stretched to the
27256 \begin_layout Description
27257 RasterImage This can be used for bitmap images.
27258 Nearly all popular image formats are supported.
27259 The image can be treated in the
27263 dialog like the images that are usually included via the
27267 dialog as described in section\InsetSpace ~
27269 \begin_inset LatexCommand ref
27270 reference "sec:Graphics-Dialog"
27275 The difference is that only raster images are allowed, that means that
27276 PDF and EPS-images are not supported.
27279 \begin_layout Description
27280 XFig This template supports images created with the program
27284 \begin_layout Standard
27288 href{http://en.wikipedia.org/wiki/Xfig}{
27301 \begin_layout Standard
27311 \begin_layout Standard
27312 \begin_inset Float table
27318 \begin_layout Standard
27319 \begin_inset Caption
27321 \begin_layout Standard
27322 \begin_inset LatexCommand label
27323 name "tab:Comparison-of-the"
27327 Comparison of the date input methods.
27335 \begin_layout Standard
27337 \begin_inset Tabular
27338 <lyxtabular version="3" rows="4" columns="4">
27340 <column alignment="center" valignment="top" leftline="true" width="0">
27341 <column alignment="center" valignment="top" leftline="true" width="0">
27342 <column alignment="center" valignment="top" leftline="true" width="0">
27343 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27344 <row topline="true">
27345 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27348 \begin_layout Standard
27354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27357 \begin_layout Standard
27360 External Material\SpecialChar \menuseparator
27366 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27369 \begin_layout Standard
27372 Insert\SpecialChar \menuseparator
27378 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27381 \begin_layout Standard
27392 <row topline="true">
27393 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27396 \begin_layout Standard
27402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27405 \begin_layout Standard
27411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27414 \begin_layout Standard
27420 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27423 \begin_layout Standard
27430 <row topline="true">
27431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27434 \begin_layout Standard
27440 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27443 \begin_layout Standard
27449 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27452 \begin_layout Standard
27458 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27461 \begin_layout Standard
27468 <row topline="true" bottomline="true">
27469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27472 \begin_layout Standard
27478 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27481 \begin_layout Standard
27487 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27490 \begin_layout Standard
27496 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27499 \begin_layout Standard
27518 \begin_layout Standard
27519 When you use the option
27531 dialog, only the path to the inserted file is shown in the output.
27534 material is displayed in LyX either as box like this:
27535 \begin_inset Graphics
27536 filename clipart/ExternalMaterialQt4.png
27541 or as image, depending on the setting in the
27553 \begin_layout Standard
27560 manual explains how you can define your own templates.
27563 \begin_layout Section
27565 \begin_inset LatexCommand index
27566 name "External Stuff ! Child Documents"
27571 \begin_inset LatexCommand index
27572 name "Files ! Include"
27579 \begin_layout Standard
27580 Child documents are used when you have a long document consisting of several
27581 larger parts or sections.
27582 For maintenance it is often useful and sometimes even required to split
27583 the document in several files that can be revised separately.
27584 The different documents are then the so called child documents and a master
27585 document connects them to print the full document or parts of it.
27588 \begin_layout Standard
27589 Included documents are displayed in LyX as a box like this:
27590 \begin_inset Graphics
27591 filename clipart/ChildDocumentQt4.png
27596 To include child documents to a master document use the menu
27598 Insert\SpecialChar \menuseparator
27599 File\SpecialChar \menuseparator
27604 A dialog pops up where you can choose between three include methods:
27607 \begin_layout Description
27608 Include You can include LyX and LaTeX-documents.
27617 dialog, the included documents will be opened in LyX in a new file tab
27618 so that you can modify it.
27623 \begin_layout Standard
27624 Here is a child document inserted using
27629 \begin_inset Include \include{DummyDocument1.lyx}
27637 \begin_layout Standard
27638 The section numbering includes the sections of the included files in the
27639 order they are inserted in the master document.
27640 The included example document has for example a subsection that is numbered
27641 as subsection of this section.
27642 Labels of included documents can be referenced: Subsection\InsetSpace ~
27644 \begin_inset LatexCommand ref
27645 reference "sub:External-Subsection-1"
27652 \begin_layout Standard
27653 The preamble of the child document is ignored, only the preamble of the
27654 master document is used.
27655 Included documents are inserted starting on a new page and end with a pagebreak.
27658 \begin_layout Standard
27659 With the LaTeX-command
27665 you can specify which included child documents are processed when the output
27667 This is useful when you are perhaps only working on a certain chapter of
27668 your large document as this saves compiling time.
27675 is inserted to the master document preamble.
27676 It takes a comma-separated list of the filenames as argument, e.g.
27679 \begin_layout Standard
27684 includeonly{chapter1,chapter5}
27687 \begin_layout Standard
27688 will only process the included files named
27689 \begin_inset Quotes eld
27693 \begin_inset Quotes erd
27697 \begin_inset Quotes eld
27701 \begin_inset Quotes erd
27705 \begin_inset Quotes eld
27709 \begin_inset Quotes erd
27715 \begin_layout Standard
27716 \begin_inset Note Greyedout
27719 \begin_layout Standard
27724 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
27725 w the document in case that the child document uses another document class
27726 than the master document as this will lead to unexpected outputs.
27734 \begin_layout Description
27735 Input This method is very similar to the Include method.
27736 The differences are:
27740 \begin_layout Itemize
27741 Input files don't start with a new page and don't end with a pagebreak.
27744 \begin_layout Itemize
27745 Input files can be previewed in LyX when
27747 Instant\InsetSpace ~
27750 is enabled in LyX's preferences under
27754 feel\SpecialChar \menuseparator
27760 \begin_layout Itemize
27771 \begin_layout Standard
27772 Here is a child document inserted using
27777 \begin_inset Include \input{DummyDocument2.lyx}
27785 \begin_layout Description
27786 Verbatim With this method every text file can be included.
27787 The file is shown in the output with its source code, no command used in
27788 the text is invoked.
27789 You can use the option
27791 Mark spaces in output
27793 that displays the character
27794 \begin_inset Quotes eld
27801 \begin_layout Standard
27811 \begin_inset Quotes erd
27814 for every space character in the source code.
27815 The difference to the method via the menu
27817 Insert\SpecialChar \menuseparator
27818 File\SpecialChar \menuseparator
27822 is that the document content is not shown in LyX.
27825 \begin_layout Standard
27826 Here is a child document inserted as Verbatim:
27827 \begin_inset Include \verbatiminput{DummyTextDocument.txt}
27833 \begin_inset VSpace bigskip
27836 Here is a child document inserted as Verbatim using the
27838 Mark spaces in output
27841 \begin_inset Include \verbatiminput*{DummyTextDocument.txt}
27849 \begin_layout Standard
27850 \begin_inset VSpace bigskip
27856 \begin_layout Standard
27857 \begin_inset Note Greyedout
27860 \begin_layout Standard
27865 As you can see in the examples above, the text of the documents included
27866 as verbatim is not broken at the end of the document lines.
27874 \begin_layout Standard
27875 \begin_inset Note Greyedout
27878 \begin_layout Standard
27883 Including the same document twice in a document using different methods
27884 could cause LaTeX-problems.
27892 \begin_layout Standard
27898 \begin_layout Chapter
27904 \begin_layout Standard
27917 \begin_layout Standard
27925 \begin_inset LatexCommand index
27931 \begin_inset LatexCommand label
27932 name "cha:Units-available-in"
27937 \begin_inset Note Note
27940 \begin_layout Standard
27943 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
27944 are displayed wrongly in PDF-bookmarks.
27945 For more information about this, have a look at
27946 \begin_inset LatexCommand cite
27959 \begin_layout Standard
27960 To understand the units described in this documentation, Table\InsetSpace ~
27962 \begin_inset LatexCommand ref
27963 reference "tab:Units"
27967 explains all units available in LyX.
27970 \begin_layout Standard
27971 \begin_inset Float table
27977 \begin_layout Standard
27978 \begin_inset Caption
27980 \begin_layout Standard
27981 \begin_inset LatexCommand label
27994 \begin_layout Standard
27995 \begin_inset VSpace medskip
28001 \begin_layout Standard
28003 \begin_inset Tabular
28004 <lyxtabular version="3" rows="20" columns="2">
28006 <column alignment="center" valignment="top" leftline="true" width="0">
28007 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
28008 <row topline="true" bottomline="true">
28009 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28012 \begin_layout Standard
28018 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28021 \begin_layout Standard
28028 <row topline="true">
28029 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28032 \begin_layout Standard
28038 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28041 \begin_layout Standard
28048 <row topline="true">
28049 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28052 \begin_layout Standard
28058 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28061 \begin_layout Standard
28068 <row topline="true">
28069 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28072 \begin_layout Standard
28078 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28081 \begin_layout Standard
28088 <row topline="true">
28089 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28092 \begin_layout Standard
28098 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28101 \begin_layout Standard
28102 point (72.27\InsetSpace \thinspace{}
28103 pt = 1\InsetSpace \thinspace{}
28110 <row topline="true">
28111 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28114 \begin_layout Standard
28120 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28123 \begin_layout Standard
28124 pica (1\InsetSpace \thinspace{}
28125 pc = 12\InsetSpace \thinspace{}
28132 <row topline="true">
28133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28136 \begin_layout Standard
28142 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28145 \begin_layout Standard
28146 scaled point (65536\InsetSpace \thinspace{}
28147 sp = 1\InsetSpace \thinspace{}
28154 <row topline="true">
28155 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28158 \begin_layout Standard
28164 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28167 \begin_layout Standard
28168 big point (72\InsetSpace \thinspace{}
28169 bp = 1\InsetSpace \thinspace{}
28176 <row topline="true">
28177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28180 \begin_layout Standard
28186 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28189 \begin_layout Standard
28190 didot (72\InsetSpace \thinspace{}
28192 \begin_inset Formula $\approx$
28195 37.6\InsetSpace \thinspace{}
28202 <row topline="true">
28203 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28206 \begin_layout Standard
28212 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28215 \begin_layout Standard
28216 cicero (1\InsetSpace \thinspace{}
28217 cc = 12\InsetSpace \thinspace{}
28224 <row topline="true">
28225 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28228 \begin_layout Standard
28234 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28237 \begin_layout Standard
28238 % of original image width
28244 <row topline="true">
28245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28248 \begin_layout Standard
28254 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28257 \begin_layout Standard
28264 <row topline="true">
28265 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28268 \begin_layout Standard
28274 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28277 \begin_layout Standard
28284 <row topline="true">
28285 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28288 \begin_layout Standard
28294 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28297 \begin_layout Standard
28304 <row topline="true">
28305 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28308 \begin_layout Standard
28314 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28317 \begin_layout Standard
28324 <row topline="true">
28325 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28328 \begin_layout Standard
28334 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28337 \begin_layout Standard
28344 <row topline="true">
28345 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28348 \begin_layout Standard
28354 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28357 \begin_layout Standard
28364 <row topline="true">
28365 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28368 \begin_layout Standard
28374 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28377 \begin_layout Standard
28388 <row topline="true">
28389 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28392 \begin_layout Standard
28398 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28401 \begin_layout Standard
28412 <row topline="true" bottomline="true">
28413 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28416 \begin_layout Standard
28422 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28425 \begin_layout Standard
28426 math unit (1\InsetSpace \thinspace{}
28427 mu = 1/18\InsetSpace \thinspace{}
28446 \begin_layout Chapter
28447 Output File Formats with Graphics
28448 \begin_inset LatexCommand label
28449 name "cha:Output-File-Formats"
28456 \begin_layout Section
28458 \begin_inset LatexCommand index
28459 name "File Formats ! DVI"
28464 \begin_inset LatexCommand index
28465 name "DVI|see{File Formats}"
28472 \begin_layout Standard
28473 This file type has the extension
28474 \begin_inset Quotes eld
28482 \begin_inset Quotes erd
28487 \begin_inset Quotes eld
28491 \begin_inset Quotes erd
28494 (DVI), because it is completely portable; you can move them from one machine
28495 to another without needing to do any sort of conversion.
28496 At the time when this file-format was developed, this was no matter of
28498 DVIs are used for quick previews and as pre-stage for other output formats,
28502 \begin_layout Standard
28503 \begin_inset Note Greyedout
28506 \begin_layout Standard
28511 DVI-files doesn't contain images, they will only be a linked.
28516 So don't forget this, if you move your
28520 file to another computer.
28521 This property can also slow down your computer when you view the DVI.
28522 Because the DVI-viewer has to convert the image in the background to make
28523 it visible when you scroll in the DVI.
28524 So we recommend to use PDF for files with many images.
28527 \begin_layout Standard
28528 You can export your document to DVI by using the menu
28530 File\SpecialChar \menuseparator
28531 Export\SpecialChar \menuseparator
28535 You can view your document as DVI via the
28539 menu or by using the toolbar button
28540 \begin_inset Graphics
28541 filename ../images/buffer-view_dvi.xpm
28549 \begin_layout Section
28551 \begin_inset LatexCommand label
28552 name "sec:PostScript"
28557 \begin_inset LatexCommand index
28558 name "File Formats ! PostScript"
28563 \begin_inset LatexCommand index
28564 name "PostScript|see{File Formats}"
28571 \begin_layout Standard
28572 This file type has the extension
28573 \begin_inset Quotes eld
28581 \begin_inset Quotes erd
28585 PostScript was developed by the company
28589 as printer language.
28590 The file contains therefore commands that the printer uses to print the
28592 PostScript can be seen as
28593 \begin_inset Quotes eld
28596 programming language
28597 \begin_inset Quotes erd
28600 ; you can calculate with it and draw diagrams and images
28604 \begin_layout Standard
28605 If you are interested to learn more about this, have a look at the LaTeX-package
28611 \begin_inset LatexCommand cite
28622 Due to this ability, the files are often bigger than PDFs.
28625 \begin_layout Standard
28626 PostScript can only contain images in the format
28627 \begin_inset Quotes eld
28630 Encapsulated PostScript
28631 \begin_inset Quotes erd
28634 (EPS, file extension
28635 \begin_inset Quotes eld
28643 \begin_inset Quotes erd
28647 As LyX allows you to use any known image format in your document, it has
28648 to convert images in the background to EPS.
28649 If you have e.g 50 images in your document, LyX has to do 50 conversions
28650 whenever you view or export your document.
28651 This will slow down your work flow with LyX drastically.
28652 So if you plan to use PostScript, you can insert your images directly as
28653 EPS to avoid this problem.
28656 \begin_layout Standard
28657 You can export your document to PostScript using the menu
28659 File\SpecialChar \menuseparator
28660 Export\SpecialChar \menuseparator
28664 You can view your document as PostScript via the
28668 menu or by using the toolbar button
28669 \begin_inset Graphics
28670 filename ../images/buffer-view_ps.xpm
28678 \begin_layout Section
28680 \begin_inset LatexCommand label
28686 \begin_inset LatexCommand index
28687 name "File Formats ! PDF"
28692 \begin_inset LatexCommand index
28700 \begin_layout Standard
28701 This file type has the extension
28702 \begin_inset Quotes eld
28710 \begin_inset Quotes erd
28715 \begin_inset Quotes eld
28718 Portable Document Format
28719 \begin_inset Quotes erd
28722 (PDF) is developed by
28726 as derivative from PostScript.
28727 It is more compressed and it uses much less commands than PostScript.
28729 \begin_inset Quotes eld
28733 \begin_inset Quotes erd
28736 implies, it can be processed at any computer system and the printed output
28737 looks exactly the same.
28740 \begin_layout Standard
28741 PDF can contain images in its own PDF format, in the format
28742 \begin_inset Quotes eld
28745 Joint Photographic Experts Group
28746 \begin_inset Quotes erd
28749 (JPG, file extension
28750 \begin_inset Quotes eld
28758 \begin_inset Quotes erd
28762 \begin_inset Quotes eld
28770 \begin_inset Quotes erd
28773 ), and in the format
28774 \begin_inset Quotes eld
28777 Portable Network Graphics
28778 \begin_inset Quotes erd
28781 (PNG, file extension
28782 \begin_inset Quotes eld
28790 \begin_inset Quotes erd
28794 You can although use any other image format, because LyX converts them
28795 in the background to one of these formats.
28796 But as described in the section about PostScript, the image conversion
28797 will slow down your work flow.
28798 So it is recommended to use images in one of the three mentioned formats.
28801 \begin_layout Standard
28802 You can export your document to PDF via the menu
28804 File\SpecialChar \menuseparator
28807 in three different ways:
28810 \begin_layout Description
28811 PDF This uses the program
28815 that creates a PDF from a PostScript-version of your file.
28816 The PostScript-version is produced by the program
28820 which uses a DVI-version as intermediate step.
28821 So this export variant consist of three conversions.
28824 \begin_layout Description
28826 (dvipdfm) This uses the program
28830 that converts your file in the background to DVI and in a second step to
28834 \begin_layout Description
28836 (pdflatex) This uses the program
28840 that converts your file directly to PDF.
28843 \begin_layout Standard
28844 It is recommended to use
28853 supports all features of actual PDF-versions, is quick and works stable
28859 is not under development and therefore a bit outdated.
28862 \begin_layout Standard
28863 You can view your document as PDF via the
28867 menu or by using the toolbar button
28868 \begin_inset Graphics
28869 filename ../images/buffer-view_pdf2.xpm
28886 \begin_layout Chapter
28887 Explanation of Equation\InsetSpace ~
28889 \begin_inset LatexCommand eqref
28895 \begin_inset LatexCommand label
28896 name "cha:Explanation-of-Equation"
28903 \begin_layout Standard
28909 \begin_inset Formula $W_{\mathrm{tot\, n}}$
28912 can be calculated to
28915 \begin_layout Standard
28916 \begin_inset Formula \begin{equation}
28917 W_{\mathrm{tot}\, n}=n·(W_{g\, n}+2·\backslash\mbox{tabcolsep})+(n+1)·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}\end{equation}
28924 \begin_layout Standard
28926 \begin_inset Formula $W_{g\, n}$
28929 is the given width of all cells.
28936 is the LaTeX-length between the cell text and the cell border, its default
28937 value is 6\InsetSpace \thinspace{}
28945 is the thickness of the cell border line, the default is 0.4\InsetSpace \thinspace{}
28949 \begin_layout Standard
28950 Following equation\InsetSpace ~
28952 \begin_inset LatexCommand eqref
28953 reference "eq:Wtot_n"
28957 , the total width of a multicolumn
28958 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
28964 \begin_layout Standard
28965 \begin_inset Formula \begin{equation}
28966 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2·\backslash\mbox{tabcolsep}+2·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
28973 \begin_layout Standard
28974 By setting equation\InsetSpace ~
28976 \begin_inset LatexCommand eqref
28977 reference "eq:Wtot_n"
28982 \begin_inset LatexCommand eqref
28983 reference "eq:Wtot_mult"
28987 equal we can calculate the needed given width
28988 \begin_inset Formula $W_{g\, n}$
28995 columns are spanned, so that each column has a total width of
28996 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
29002 \begin_layout Standard
29003 \begin_inset Formula \begin{equation}
29004 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)·(2·\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
29011 \begin_layout Bibliography
29012 \begin_inset LatexCommand bibitem
29013 key "latexcompanion"
29017 Frank Mittelbach and Michel Goossens:
29019 The LaTeX Companion Second Edition.
29022 Addison-Wesley, 2004
29025 \begin_layout Bibliography
29026 \begin_inset LatexCommand bibitem
29031 Helmut Kopka and Patrick W.
29034 A Guide to LaTeX Fourth Edition.
29037 Addison-Wesley, 2003
29040 \begin_layout Bibliography
29041 \begin_inset LatexCommand bibitem
29048 LaTeX: A Document Preparation System.
29051 Addison-Wesley, second edition, 1994
29054 \begin_layout Bibliography
29055 \begin_inset LatexCommand bibitem
29064 \begin_layout Standard
29068 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf}
29078 \begin_layout Standard
29085 of the LaTeX-package
29090 \begin_inset LatexCommand index
29091 name "LaTeX-packages ! booktabs"
29098 \begin_layout Bibliography
29099 \begin_inset LatexCommand bibitem
29108 \begin_layout Standard
29112 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf}{
29121 \begin_layout Standard
29128 of the LaTeX-package
29133 \begin_inset LatexCommand index
29134 name "LaTeX-packages ! caption"
29141 \begin_layout Bibliography
29142 \begin_inset LatexCommand bibitem
29151 \begin_layout Standard
29155 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/anleitung.pdf}
29165 \begin_layout Standard
29172 of the LaTeX-package
29177 \begin_layout Bibliography
29178 \begin_inset LatexCommand bibitem
29187 \begin_layout Standard
29191 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf}
29201 \begin_layout Standard
29208 of the LaTeX-package
29210 endf\SpecialChar \textcompwordmark{}
29214 \begin_inset LatexCommand index
29215 name "LaTeX-packages ! endfloat"
29222 \begin_layout Bibliography
29223 \begin_inset LatexCommand bibitem
29232 \begin_layout Standard
29236 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/floatflt/floatflt.pdf}
29246 \begin_layout Standard
29253 of the LaTeX-package
29255 floatf\SpecialChar \textcompwordmark{}
29259 \begin_inset LatexCommand index
29260 name "LaTeX-packages ! floatflt"
29267 \begin_layout Bibliography
29268 \begin_inset LatexCommand bibitem
29277 \begin_layout Standard
29281 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf}
29291 \begin_layout Standard
29298 of the LaTeX-package
29303 \begin_inset LatexCommand index
29304 name "LaTeX-packages ! footmisc"
29311 \begin_layout Bibliography
29312 \begin_inset LatexCommand bibitem
29321 \begin_layout Standard
29325 href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf}{
29334 \begin_layout Standard
29341 of the LaTeX-package
29346 \begin_inset LatexCommand index
29347 name "LaTeX-packages ! hyperref"
29354 \begin_layout Bibliography
29355 \begin_inset LatexCommand bibitem
29364 \begin_layout Standard
29368 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf}
29378 \begin_layout Standard
29385 of the LaTeX-package
29390 \begin_inset LatexCommand index
29391 name "LaTeX-packages ! hyperref"
29398 \begin_layout Bibliography
29399 \begin_inset LatexCommand bibitem
29408 \begin_layout Standard
29412 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.p
29422 \begin_layout Standard
29429 of the LaTeX-package
29434 \begin_inset LatexCommand index
29435 name "LaTeX-packages ! koma-script"
29442 \begin_layout Bibliography
29443 \begin_inset LatexCommand bibitem
29444 key "koma-script-de"
29452 \begin_layout Standard
29456 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguide.p
29466 \begin_layout Standard
29473 of the LaTeX-package
29478 \begin_inset LatexCommand index
29479 name "LaTeX-packages ! koma-script"
29486 \begin_layout Bibliography
29487 \begin_inset LatexCommand bibitem
29496 \begin_layout Standard
29500 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.
29510 \begin_layout Standard
29517 of the LaTeX-package
29522 \begin_inset LatexCommand index
29523 name "LaTeX-packages ! marginnote"
29530 \begin_layout Bibliography
29531 \begin_inset LatexCommand bibitem
29540 \begin_layout Standard
29544 href{http://tug.org/PSTricks/main.cgi/}{
29553 \begin_layout Standard
29560 of the LaTeX-package
29565 \begin_inset LatexCommand index
29566 name "LaTeX-packages ! PSTricks"
29573 \begin_layout Bibliography
29574 \begin_inset LatexCommand bibitem
29583 \begin_layout Standard
29587 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf}{
29596 \begin_layout Standard
29603 of the LaTeX-package
29608 \begin_inset LatexCommand index
29609 name "LaTeX-packages ! sidecap"
29616 \begin_layout Bibliography
29617 \begin_inset LatexCommand bibitem
29626 \begin_layout Standard
29630 href{http://wiki.lyx.org/LyX/NewInLyX15}{
29639 \begin_layout Standard
29646 about new LyX-features planned for the release
29653 \begin_layout Standard
29654 \begin_inset LatexCommand printindex
29661 \begin_layout Standard
29662 \begin_inset FloatList figure
29669 \begin_layout Standard
29670 \begin_inset FloatList table