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
213 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
222 \begin_layout Standard
224 If you have comments or error corrections, please send them to the LyX Documenta
231 \begin_layout Standard
235 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's ExtendedInsets manual}{
240 lyx-docs@lists.lyx.org
244 \begin_layout Standard
257 \begin_inset Note Note
260 \begin_layout Standard
261 original author: Uwe Stöhr
277 \begin_layout Standard
278 \begin_inset LatexCommand tableofcontents
285 \begin_layout Standard
286 \begin_inset Note Note
289 \begin_layout Standard
290 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
300 If they are not installed you can export the document anyway but the sections
301 where the packages are required won't appear in the output.
304 \begin_layout Standard
305 The latest PDF-version of this document can be found here:
309 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
317 \begin_layout Chapter
319 \begin_inset LatexCommand label
325 \begin_inset LatexCommand index
331 \begin_inset LatexCommand index
332 name "Graphics|see{Figures}"
339 \begin_layout Section
341 \begin_inset LatexCommand index
342 name "Figures ! Graphics Dialog"
347 \begin_inset LatexCommand label
348 name "sec:Graphics-Dialog"
355 \begin_layout Standard
356 To insert an image into your document, place the cursor at the text position
357 you want and click on the toolbar icon
358 \begin_inset Graphics
359 filename ../images/dialog-show-new-inset_graphics.xpm
366 Insert\SpecialChar \menuseparator
370 Then a dialog will appear to choose the file to load.
371 The image will appear in the output exactly at the position where it is
375 \begin_layout Standard
376 The graphics dialog can be called at any time by right-clicking on an image.
377 This dialog has three tabs:
380 \begin_layout Description
385 Here you can choose an image file and adjust its appearance in the output.
386 The available units for the image size are explained in appendix\InsetSpace ~
388 \begin_inset LatexCommand ref
389 reference "cha:Units-available-in"
395 You can rotate images counter-clockwise by setting a rotation angle and
397 The image will also be rotated inside LyX.
399 Images can be scaled by using
400 a percentage value or by setting the width and height explicitly.
401 If you set only the width or only the height, the other size will be determined
403 If you set both, then the image will be transformed to the given size,
404 possibly distorting it.
405 To prevent the image from distortion, use the option
407 Maintain aspect ratio
410 The image will then be scaled so that its width and height don't exceed
411 the specified dimensions.
413 Images can be opened in a program of your choice
419 The program can be set for every image format in the file format settings
420 in LyX's preferences.
423 \begin_layout Description
428 Alternatively to the usage of scaling units it is possible to set image
429 coordinates to adjust the height and width of the image in the output.
430 The coordinates can also be calculated automatically by pressing the button
442 bounding\InsetSpace ~
445 will only print the image region within the given coordinates.
446 Normally you don't need to take care about image coordinates and can ignore
450 \begin_layout Description
456 In this tab you can modify the appearance of the image within LyX and set
457 the image to be a subfigure of a figure float with an own caption.
458 Subfigures are explained in section\InsetSpace ~
460 \begin_inset LatexCommand ref
461 reference "sec:Figure-Floats"
467 LaTeX experts can also specify on this tab additional LaTeX options.
475 makes the image appear in the output only as a frame with the size of the
485 option only affects zipped EPS-graphics, e.\InsetSpace \thinspace{}
492 When the option is used the images will not be unzipped on export, since
493 LaTeX can handle them as they are.
495 Zipped EPS-graphics are useful to save
496 disk space when you choose PostScript as output format, see appendix\InsetSpace ~
498 \begin_inset LatexCommand ref
499 reference "sec:PostScript"
504 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
515 zgrep %%Bounding x.eps.gz > x.eps.bb
519 The second command creates the bounding box file
520 \begin_inset Quotes eld
524 \begin_inset Quotes erd
527 that is needed by LaTeX for zipped graphics.
530 \begin_layout Standard
531 \begin_inset VSpace bigskip
537 \begin_layout Standard
538 This is an example image in EPS format
542 \begin_layout Standard
543 Image formats are explained in section\InsetSpace ~
545 \begin_inset LatexCommand ref
546 reference "sec:Image-Formats"
555 within a separate, horizontally centered paragraph:
558 \begin_layout Standard
560 \begin_inset Graphics
561 filename clipart/mobius.eps
571 \begin_layout Standard
572 This is the same image like the one above but in draft mode:
575 \begin_layout Standard
577 \begin_inset Graphics
578 filename clipart/mobius.eps
589 \begin_layout Section
591 \begin_inset LatexCommand label
592 name "sec:Figure-Floats"
597 \begin_inset LatexCommand index
598 name "Floats ! Figure Floats"
603 \begin_inset LatexCommand index
604 name "Figures ! Floats"
611 \begin_layout Standard
612 For general explanations about floats, have a look at section\InsetSpace ~
614 \begin_inset LatexCommand ref
615 reference "sec:FloatIntroduction"
622 \begin_layout Standard
624 \begin_inset Graphics
625 filename ../images/float-insert_figure.xpm
632 Insert\SpecialChar \menuseparator
633 Float\SpecialChar \menuseparator
636 inserts a float with a caption that has the label
637 \begin_inset Quotes eld
642 \begin_inset Quotes erd
645 (# is the actual number).
646 You can insert the image above the caption, like in Figure\InsetSpace ~
648 \begin_inset LatexCommand ref
649 reference "fig:kill-plat"
653 or below the caption, like in Figure\InsetSpace ~
655 \begin_inset LatexCommand ref
656 reference "fig:escher"
661 More about the caption placement is described in section\InsetSpace ~
663 \begin_inset LatexCommand ref
664 reference "sec:Caption-Placement"
671 \begin_layout Standard
672 \begin_inset Float figure
677 \begin_layout Standard
679 \begin_inset Graphics
680 filename clipart/platypus.eps
690 \begin_layout Standard
693 \begin_layout Standard
694 \begin_inset LatexCommand label
699 A severely distorted platypus in a float.
712 \begin_layout Standard
713 \begin_inset Float figure
718 \begin_layout Standard
721 \begin_layout Standard
722 \begin_inset LatexCommand label
736 \begin_layout Standard
738 \begin_inset Graphics
739 filename clipart/escher-lsd.eps
754 \begin_layout Standard
755 \begin_inset LatexCommand index
756 name "References ! to Figures"
762 \begin_inset LatexCommand ref
763 reference "fig:kill-plat"
768 \begin_inset LatexCommand ref
769 reference "fig:escher"
773 are examples of referenced figures.
774 Figures can be referenced in the text by referencing their label.
775 To do this insert a label in the caption using the menu
777 Insert\SpecialChar \menuseparator
780 or the toolbar button
781 \begin_inset Graphics
782 filename ../images/label-insert.xpm
788 You can now refer to the label using the menu
790 Insert\SpecialChar \menuseparator
794 or the toolbar button
795 \begin_inset Graphics
796 filename ../images/dialog-show-new-inset_ref.xpm
802 It is important to use references to floats, rather than using vague references
804 \begin_inset Quotes eld
808 \begin_inset Quotes erd
811 , because as LaTeX will reposition the floats in the final document, it
813 \begin_inset Quotes eld
817 \begin_inset Quotes erd
822 Referencing is explained in detail in section\InsetSpace ~
824 \begin_inset LatexCommand ref
825 reference "sec:Referencing-Floats"
832 \begin_layout Standard
833 Normally only one image is inserted to a figure float, but sometimes you
834 might want to use two images with separate subcaptions.
835 This can be set in the tab
840 of the graphics dialog.
841 Choose there the option
845 and enter the subcaption for the image in the caption field.
846 Note that only the main caption of the float is added to the List of Figures.
849 erencing subfigures is explained in section\InsetSpace ~
851 \begin_inset LatexCommand ref
852 reference "sub:Referencing-Subfigures"
859 \begin_layout Standard
862 \begin_inset LatexCommand ref
863 reference "fig:Two-distorted-images"
867 is an example of a figure float with two images set side by side.
868 You can also set the images one below the other.
871 \begin_layout Standard
872 \begin_inset Float figure
877 \begin_layout Standard
881 \begin_inset Graphics
882 filename clipart/escher-lsd.eps
885 subcaptionText "Undefinable structure"
892 \begin_inset Graphics
893 filename clipart/platypus.eps
897 subcaptionText "\label{fig:Platypus} Platypus"
906 \begin_layout Standard
909 \begin_layout Standard
910 \begin_inset LatexCommand label
911 name "fig:Two-distorted-images"
915 Two distorted images.
928 \begin_layout Section
930 \begin_inset LatexCommand label
931 name "sec:Image-Formats"
936 \begin_inset LatexCommand index
942 \begin_inset LatexCommand index
943 name "Figures ! Image Formats"
950 \begin_layout Standard
951 You can insert images in any known file format.
952 But as explained in appendix\InsetSpace ~
954 \begin_inset LatexCommand ref
955 reference "cha:Output-File-Formats"
959 , every output document format allows only a few image formats.
960 LyX uses therefore the program
964 in the background to convert the images to the right format.
965 To increase your work flow by avoiding these conversions in the background,
966 you can use only the image formats that can directly be embedded in the
968 The output file formats are explained in appendix\InsetSpace ~
970 \begin_inset LatexCommand ref
971 reference "cha:Output-File-Formats"
978 \begin_layout Standard
979 Similar to fonts there are two types of image formats:
982 \begin_layout Description
984 images consist of pixel values, often in a compressed form.
985 They are therefore not fully scalable and look pixeled in large zooms.
986 Well-known bitmap image formats are
987 \begin_inset Quotes eld
990 Graphics Interchange Format
991 \begin_inset Quotes erd
995 \begin_inset Quotes eld
1003 \begin_inset Quotes erd
1007 \begin_inset LatexCommand index
1008 name "GIF|see{Image formats}"
1013 \begin_inset Quotes eld
1016 Portable Network Graphics
1017 \begin_inset Quotes erd
1020 (PNG, file extension
1021 \begin_inset Quotes eld
1029 \begin_inset Quotes erd
1033 \begin_inset LatexCommand index
1034 name "PNG|see{Image formats}"
1039 \begin_inset Quotes eld
1042 Joint Photographic Experts Group
1043 \begin_inset Quotes erd
1046 (JPG, file extension
1047 \begin_inset Quotes eld
1055 \begin_inset Quotes erd
1059 \begin_inset Quotes eld
1067 \begin_inset Quotes erd
1071 \begin_inset LatexCommand index
1072 name "JPG|see{Image formats}"
1079 \begin_layout Description
1081 images consist of vectors and can therefore be scaled to any size
1083 The scaling ability is necessary if you want to create presentations, because
1084 presentations are always scaled by the video projector.
1085 Scaling is also useful for online documents to let the user zoom into diagrams.
1088 ell-known scalable image formats are
1089 \begin_inset Quotes eld
1092 Scalable Vector Graphics
1093 \begin_inset Quotes erd
1096 (SVG, file extension
1097 \begin_inset Quotes eld
1105 \begin_inset Quotes erd
1109 \begin_inset LatexCommand index
1110 name "SVG|see{Image formats}"
1115 \begin_inset Quotes eld
1118 Encapsulated PostScript
1119 \begin_inset Quotes erd
1122 (EPS, file extension
1123 \begin_inset Quotes eld
1131 \begin_inset Quotes erd
1135 \begin_inset LatexCommand index
1136 name "EPS|see{Image formats}"
1141 \begin_inset Quotes eld
1144 Portable Document Format
1145 \begin_inset Quotes erd
1148 (PDF, file extension
1149 \begin_inset Quotes eld
1157 \begin_inset Quotes erd
1161 \begin_inset LatexCommand index
1167 \begin_inset Quotes eld
1171 \begin_inset Quotes erd
1174 (WMF, file extension
1175 \begin_inset Quotes eld
1183 \begin_inset Quotes erd
1187 \begin_inset LatexCommand index
1188 name "SVG|see{Image formats}"
1194 \begin_inset Quotes eld
1198 \begin_inset Quotes erd
1201 , because you can convert any bitmap image to a PDF or EPS-image and the
1202 result will still be a bitmap image.
1203 In this cases only a header with the image properties is added to the original
1208 \begin_layout Standard
1209 In the case of PDF, the original image is additionally compressed.
1215 The PDF-files generated by
1219 are for example bitmap images.
1222 \begin_layout Standard
1223 Normally it is not possible to convert a bitmap image into a scalable one,
1225 Only the image formats PDF and EPS can directly be embedded to PDF and
1226 PostScript output files, respectively.
1227 SVG and WMF-images are currently recalculated to bitmaps when the output
1228 file is generated because there is currently no adequate WMF/SVG
1229 \begin_inset Formula $\to$
1232 PDF/EPS converter available.
1235 \begin_layout Chapter
1237 \begin_inset LatexCommand label
1243 \begin_inset LatexCommand index
1251 \begin_layout Section
1253 \begin_inset LatexCommand index
1254 name "Table ! Introduction"
1261 \begin_layout Standard
1262 You can insert a table using either the toolbar button
1263 \begin_inset Graphics
1264 filename ../images/tabular-insert.xpm
1271 Insert\SpecialChar \menuseparator
1275 The toolbar button offers you a graphical selection: Move the mouse to
1276 set the column/row number of the table that should be created and then
1277 press a mouse button.
1278 When you use the menu to create a table, a dialog will appear, asking you
1279 for the number of rows and columns.
1281 The default table has lines around any
1282 cell and the first row appears separated from the rest of the table.
1283 This separation occurs due to a double line: The cells of the first row
1284 have a line below them and the cells of the second row have a line above
1286 Here is an example table:
1289 \begin_layout Standard
1291 \begin_inset Tabular
1292 <lyxtabular version="3" rows="4" columns="4">
1294 <column alignment="center" valignment="top" leftline="true" width="0">
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" rightline="true" width="0">
1298 <row topline="true" bottomline="true">
1299 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1302 \begin_layout Standard
1308 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1311 \begin_layout Standard
1326 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1329 \begin_layout Standard
1335 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1338 \begin_layout Standard
1345 <row topline="true">
1346 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1349 \begin_layout Standard
1364 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1367 \begin_layout Standard
1373 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1376 \begin_layout Standard
1382 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1385 \begin_layout Standard
1392 <row topline="true">
1393 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1396 \begin_layout Standard
1411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1414 \begin_layout Standard
1420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1423 \begin_layout Standard
1429 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1432 \begin_layout Standard
1439 <row topline="true" bottomline="true">
1440 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1443 \begin_layout Standard
1458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1461 \begin_layout Standard
1467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1470 \begin_layout Standard
1476 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1479 \begin_layout Standard
1493 \begin_layout Section
1495 \begin_inset LatexCommand index
1496 name "Table ! Dialog"
1503 \begin_layout Standard
1504 You can alter a table by clicking on it with the right mouse button, which
1505 brings up the table dialog.
1506 Here you can adjust the settings of that cell and row/column respectively
1507 where the cursor is currently placed.
1508 Most of the dialog options also work on selections.
1509 This means if you select more cells, columns or rows, the action is done
1510 for the whole selection.
1511 Note that there is a difference between selecting the
1515 of the cell, and the cell itself.
1516 You can alter tables with the following tabs of the table dialog:
1519 \begin_layout Description
1525 Here you can set the horizontal alignment and the width of the current
1527 When you have set a width you can also adjust the vertical alignment of
1529 A given width will allow the cell to have line breaks and multiple paragraphs
1530 of text, see section\InsetSpace ~
1532 \begin_inset LatexCommand ref
1533 reference "sub:Multiple-Lines-in"
1538 If you set no width, the column is as wide as their widest cell content
1541 Furthermore, you can mark one or multiple cells of one row as a multicolumn
1542 cell, see section\InsetSpace ~
1544 \begin_inset LatexCommand ref
1545 reference "sub:Multicolumns"
1551 The rotate check boxes rotates the current cell, a selection, or the whole
1552 table counter-clockwise by 90°.
1553 The rotation is not shown within LyX, only in the output.
1556 \begin_inset Note Greyedout
1559 \begin_layout Standard
1564 Not all DVI-viewers are able to display rotations.
1571 It is also possible to enter a LaTeX-argument which is needed for special
1572 table formattings, see section\InsetSpace ~
1574 \begin_inset LatexCommand ref
1575 reference "sub:Multicolumn-Calculations"
1580 \begin_inset LatexCommand ref
1581 reference "sec:Colored-Tables"
1588 \begin_layout Description
1593 In this tab you can add and delete border lines for the current row/column.
1600 will convert the table to a formal table as described in section\InsetSpace ~
1602 \begin_inset LatexCommand ref
1603 reference "sec:Formal-Tables"
1609 You can also add here space to table rows as decribed in section\InsetSpace ~
1611 \begin_inset LatexCommand ref
1612 reference "sub:Row-Spacing"
1619 \begin_layout Description
1624 This tab is to make a table a so called
1625 \begin_inset Quotes eld
1633 \begin_inset Quotes erd
1636 that can run over several pages.
1637 Section\InsetSpace ~
1639 \begin_inset LatexCommand ref
1640 reference "sec:Longtables"
1645 \begin_inset LatexCommand ref
1646 reference "sec:Special-Longtable-Issues"
1650 describe the longtable features in detail.
1653 \begin_layout Standard
1654 When the table toolbar is opened, you can move the cursor with the arrow
1655 keys from cell to cell and the property of the current cell will immediately
1656 be displayed in the dialog.
1659 \begin_layout Section
1661 \begin_inset LatexCommand index
1662 name "Table ! Toolbar"
1669 \begin_layout Standard
1670 The table toolbar is an alternative to the table dialog to be able to alter
1672 It should normally appear at the bottom of LyX's main window when the cursor
1674 You can alternatively switch it on to appear always, by right-clicking
1675 in LyX's main menu bar.
1678 \begin_layout Standard
1679 The toolbar has the following icons:
1682 \begin_layout Labeling
1683 \labelwidthstring 00.00.0000
1684 \begin_inset Graphics
1685 filename ../images/tabular-feature_append-row.xpm
1689 adds a row below the current cell or selection
1692 \begin_layout Labeling
1693 \labelwidthstring 00.00.0000
1694 \begin_inset Graphics
1695 filename ../images/tabular-feature_append-column.xpm
1699 adds a column right beside the current cell or selection
1702 \begin_layout Labeling
1703 \labelwidthstring 00.00.0000
1704 \begin_inset Graphics
1705 filename ../images/tabular-feature_delete-row.xpm
1709 deletes the current row or selection
1712 \begin_layout Labeling
1713 \labelwidthstring 00.00.0000
1714 \begin_inset Graphics
1715 filename ../images/tabular-feature_delete-column.xpm
1719 deletes the current column or selection
1722 \begin_layout Labeling
1723 \labelwidthstring 00.00.0000
1724 \begin_inset Graphics
1725 filename ../images/tabular-feature_toggle-line-top.xpm
1729 adds a line at the top of the current cell / row or of a selection
1732 \begin_layout Labeling
1733 \labelwidthstring 00.00.0000
1734 \begin_inset Graphics
1735 filename ../images/tabular-feature_toggle-line-bottom.xpm
1739 adds a line at the bottom of the current cell / row or of a selection
1742 \begin_layout Labeling
1743 \labelwidthstring 00.00.0000
1744 \begin_inset Graphics
1745 filename ../images/tabular-feature_toggle-line-left.xpm
1749 adds a line at the left side of the current cell / row or of a selection
1752 \begin_layout Labeling
1753 \labelwidthstring 00.00.0000
1754 \begin_inset Graphics
1755 filename ../images/tabular-feature_toggle-line-right.xpm
1759 adds a line at the right side of the current cell / row or of a selection
1762 \begin_layout Labeling
1763 \labelwidthstring 00.00.0000
1764 \begin_inset Graphics
1765 filename ../images/tabular-feature_set-all-lines.xpm
1769 adds lines around the current or selected cells - if the current cell no
1770 multicolumn this also affects the current row and column
1773 \begin_layout Labeling
1774 \labelwidthstring 00.00.0000
1775 \begin_inset Graphics
1776 filename ../images/tabular-feature_unset-all-lines.xpm
1780 deletes all lines of the current or selected cells - if the current cell
1781 no multicolumn this also affects the current row and column
1784 \begin_layout Labeling
1785 \labelwidthstring 00.00.0000
1786 \begin_inset Graphics
1787 filename ../images/tabular-feature_align-left.xpm
1791 left-aligns the content of the current cell / column
1794 \begin_layout Labeling
1795 \labelwidthstring 00.00.0000
1796 \begin_inset Graphics
1797 filename ../images/tabular-feature_align-center.xpm
1801 centers the content of the current cell / column horizontally
1804 \begin_layout Labeling
1805 \labelwidthstring 00.00.0000
1806 \begin_inset Graphics
1807 filename ../images/tabular-feature_align-right.xpm
1811 right-aligns the content of the current cell / column
1814 \begin_layout Labeling
1815 \labelwidthstring 00.00.0000
1816 \begin_inset Graphics
1817 filename ../images/tabular-feature_valign-top.xpm
1821 aligns the content of the current cell vertically to the top
1824 \begin_layout Labeling
1825 \labelwidthstring 00.00.0000
1826 \begin_inset Graphics
1827 filename ../images/tabular-feature_valign-middle.xpm
1831 centers the content of the current cell vertically
1834 \begin_layout Labeling
1835 \labelwidthstring 00.00.0000
1836 \begin_inset Graphics
1837 filename ../images/tabular-feature_valign-bottom.xpm
1841 aligns the content of the current cell vertically to the bottom
1844 \begin_layout Labeling
1845 \labelwidthstring 00.00.0000
1846 \begin_inset Graphics
1847 filename ../images/tabular-feature_set-rotate-cell.xpm
1851 rotates the current cell or selection counter-clockwise by 90°
1854 \begin_layout Labeling
1855 \labelwidthstring 00.00.0000
1856 \begin_inset Graphics
1857 filename ../images/tabular-feature_set-rotate-tabular.xpm
1861 rotates the whole table counter-clockwise by 90°
1864 \begin_layout Labeling
1865 \labelwidthstring 00.00.0000
1866 \begin_inset Graphics
1867 filename ../images/tabular-feature_multicolumn.xpm
1871 sets the current cell or selection as a multicolumn
1874 \begin_layout Section
1876 \begin_inset LatexCommand index
1877 name "Table ! Edit Menu"
1884 \begin_layout Standard
1885 Additionally to the table dialog and toolbar, the menu
1887 Edit\SpecialChar \menuseparator
1890 allows you to add and delete border lines for the current row/column and
1891 to set the current selection as multicolumn.
1892 The menu is only available when the cursor is inside a table.
1895 \begin_layout Section
1897 \begin_inset LatexCommand label
1898 name "sec:Table-Floats"
1903 \begin_inset LatexCommand index
1904 name "Floats ! Tables"
1909 \begin_inset LatexCommand index
1910 name "Table ! Floats"
1917 \begin_layout Standard
1918 For general explanations about floats, have a look at section\InsetSpace ~
1920 \begin_inset LatexCommand ref
1921 reference "sec:FloatIntroduction"
1928 \begin_layout Standard
1929 \begin_inset Float table
1935 \begin_layout Standard
1936 \begin_inset Caption
1938 \begin_layout Standard
1939 \begin_inset LatexCommand label
1940 name "tab:a table float"
1952 \begin_layout Standard
1954 \begin_inset Tabular
1955 <lyxtabular version="3" rows="3" columns="3">
1957 <column alignment="center" valignment="top" leftline="true" width="0pt">
1958 <column alignment="center" valignment="top" leftline="true" width="0pt">
1959 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
1960 <row topline="true" bottomline="true">
1961 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1964 \begin_layout Standard
1979 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1982 \begin_layout Standard
1997 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2000 \begin_layout Standard
2016 <row topline="true">
2017 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2020 \begin_layout Standard
2035 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2038 \begin_layout Standard
2053 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2056 \begin_layout Standard
2072 <row topline="true" bottomline="true">
2073 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2076 \begin_layout Standard
2086 \begin_inset Formula $\int x^{2}dx$
2094 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2097 \begin_layout Standard
2107 \begin_inset Formula $\left[\begin{array}{cc}
2109 c & d\end{array}\right]$
2117 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2120 \begin_layout Standard
2130 \begin_inset Formula $1+1=2$
2151 \begin_layout Standard
2152 Table floats can be inserted using the menu
2154 Insert\SpecialChar \menuseparator
2155 Float\SpecialChar \menuseparator
2158 or the toolbar button
2159 \begin_inset Graphics
2160 filename ../images/float-insert_table.xpm
2168 \begin_layout Standard
2169 The float appears as a collapsible box with a caption that has the label
2171 \begin_inset Quotes eld
2176 \begin_inset Quotes erd
2179 (# is the actual table number).
2180 You can insert tables to the float above or below the caption.
2183 \begin_layout Standard
2186 \begin_inset LatexCommand ref
2187 reference "tab:a table float"
2191 is an example table within a table float.
2194 \begin_layout Standard
2195 Having the caption above the table is the common rule that is unfortunately
2196 not supported in LaTeX's standard classes.
2197 That means if you are using the document classes
2213 there will be no space between the caption and the table.
2214 To insert the needed space, add the following option to the load command
2215 of the LaTeX-package
2220 \begin_inset LatexCommand index
2221 name "LaTeX-packages ! caption"
2225 in your document preamble
2229 \begin_layout Standard
2230 For more information have a look at section\InsetSpace ~
2232 \begin_inset LatexCommand ref
2233 reference "sec:Caption-Placement"
2245 \begin_layout Standard
2251 \begin_layout Standard
2256 , which is described in section\InsetSpace ~
2258 \begin_inset LatexCommand ref
2259 reference "sec:Caption-Formatting"
2263 , is used to adjust the caption format.
2266 \begin_layout Standard
2267 \begin_inset LatexCommand index
2268 name "References ! to Tables"
2272 Tables can be cross-referenced in the text by referencing their label.
2273 To do this insert a label in the caption using the menu
2275 Insert\SpecialChar \menuseparator
2278 or the toolbar button
2279 \begin_inset Graphics
2280 filename ../images/label-insert.xpm
2286 You can now refer to the label using the menu
2288 Insert\SpecialChar \menuseparator
2292 or the toolbar button
2293 \begin_inset Graphics
2294 filename ../images/dialog-show-new-inset_ref.xpm
2301 Referencing is explained in detail in section\InsetSpace ~
2303 \begin_inset LatexCommand ref
2304 reference "sec:Referencing-Floats"
2311 \begin_layout Section
2313 \begin_inset LatexCommand label
2314 name "sec:Longtables"
2319 \begin_inset LatexCommand index
2325 \begin_inset LatexCommand index
2326 name "Table ! Longtables"
2333 \begin_layout Standard
2334 If the table is too long to fit on one page, you can use the option
2344 of the table dialog to split the table automatically over more pages.
2345 Doing this enables some check boxes and you can now define:
2348 \begin_layout Description
2353 : The current row and all rows above, that don't have any special options
2354 defined, are defined to be the header rows of all pages of the longtable;
2355 except for the first page, if
2361 This therefore called the main header.
2364 \begin_layout Description
2370 : The current row and all rows above, that don't have any special options
2371 defined, are defined to be the header rows of the first page of the longtable.
2374 \begin_layout Description
2379 : The current row and all rows below, that don't have any special options
2380 defined, are defined to be the footer rows of all pages of the longtable;
2381 except for the last page, if
2389 \begin_layout Description
2395 : The current row and all rows below, that don't have any special options
2396 defined, are defined to be the footer rows of the last page of the longtable.
2399 \begin_layout Standard
2400 You can also specify a row where the table is splitted.
2401 If you set more than one option in the same table row, you should be aware
2402 of the fact that only the first one is used in the given table row.
2403 The others will then be defined as
2408 In this context, first means first in this order:
2415 header, Footer, Last\InsetSpace ~
2419 See the following longtable to see how it works:
2422 \begin_layout Standard
2424 \begin_inset Tabular
2425 <lyxtabular version="3" rows="69" columns="3">
2426 <features islongtable="true">
2427 <column alignment="left" valignment="top" leftline="true" width="0cm">
2428 <column alignment="left" valignment="top" width="0pt">
2429 <column alignment="right" valignment="top" leftline="true" rightline="true" width="0pt">
2430 <row topline="true" bottomline="true" endfirsthead="true">
2431 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2434 \begin_layout Standard
2437 Example Phone List (ignore the names)
2442 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2445 \begin_layout Standard
2451 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2454 \begin_layout Standard
2461 <row topline="true" bottomline="true" endfirsthead="true">
2462 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2465 \begin_layout Standard
2473 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2476 \begin_layout Standard
2482 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2485 \begin_layout Standard
2494 <row topline="true" bottomline="true" endhead="true">
2495 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2498 \begin_layout Standard
2506 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2509 \begin_layout Standard
2515 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2518 \begin_layout Standard
2525 <row topline="true" bottomline="true" endhead="true">
2526 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2529 \begin_layout Standard
2537 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2540 \begin_layout Standard
2546 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2549 \begin_layout Standard
2558 <row topline="true" bottomline="true" endfoot="true">
2559 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
2562 \begin_layout Standard
2563 continued on next page
2568 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2571 \begin_layout Standard
2577 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2580 \begin_layout Standard
2588 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2591 \begin_layout Standard
2599 <cell alignment="center" valignment="top" topline="true" usebox="none">
2602 \begin_layout Standard
2608 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2611 \begin_layout Standard
2619 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2622 \begin_layout Standard
2630 <cell alignment="center" valignment="top" topline="true" usebox="none">
2633 \begin_layout Standard
2639 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2642 \begin_layout Standard
2650 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2653 \begin_layout Standard
2661 <cell alignment="center" valignment="top" topline="true" usebox="none">
2664 \begin_layout Standard
2670 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2673 \begin_layout Standard
2681 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2684 \begin_layout Standard
2692 <cell alignment="center" valignment="top" topline="true" usebox="none">
2695 \begin_layout Standard
2701 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2704 \begin_layout Standard
2712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2715 \begin_layout Standard
2723 <cell alignment="center" valignment="top" topline="true" usebox="none">
2726 \begin_layout Standard
2732 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2735 \begin_layout Standard
2743 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2746 \begin_layout Standard
2754 <cell alignment="center" valignment="top" topline="true" usebox="none">
2757 \begin_layout Standard
2763 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2766 \begin_layout Standard
2774 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2777 \begin_layout Standard
2785 <cell alignment="center" valignment="top" topline="true" usebox="none">
2788 \begin_layout Standard
2794 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2797 \begin_layout Standard
2805 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2808 \begin_layout Standard
2816 <cell alignment="center" valignment="top" topline="true" usebox="none">
2819 \begin_layout Standard
2825 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2828 \begin_layout Standard
2836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2839 \begin_layout Standard
2847 <cell alignment="center" valignment="top" topline="true" usebox="none">
2850 \begin_layout Standard
2856 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2859 \begin_layout Standard
2867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2870 \begin_layout Standard
2878 <cell alignment="center" valignment="top" topline="true" usebox="none">
2881 \begin_layout Standard
2887 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2890 \begin_layout Standard
2898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2901 \begin_layout Standard
2909 <cell alignment="center" valignment="top" topline="true" usebox="none">
2912 \begin_layout Standard
2918 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2921 \begin_layout Standard
2929 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2932 \begin_layout Standard
2940 <cell alignment="center" valignment="top" topline="true" usebox="none">
2943 \begin_layout Standard
2949 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2952 \begin_layout Standard
2960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2963 \begin_layout Standard
2971 <cell alignment="center" valignment="top" topline="true" usebox="none">
2974 \begin_layout Standard
2980 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2983 \begin_layout Standard
2991 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2994 \begin_layout Standard
3002 <cell alignment="center" valignment="top" topline="true" usebox="none">
3005 \begin_layout Standard
3011 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3014 \begin_layout Standard
3022 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3025 \begin_layout Standard
3033 <cell alignment="center" valignment="top" topline="true" usebox="none">
3036 \begin_layout Standard
3042 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3045 \begin_layout Standard
3053 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3056 \begin_layout Standard
3064 <cell alignment="center" valignment="top" topline="true" usebox="none">
3067 \begin_layout Standard
3073 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3076 \begin_layout Standard
3084 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3087 \begin_layout Standard
3095 <cell alignment="center" valignment="top" topline="true" usebox="none">
3098 \begin_layout Standard
3104 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3107 \begin_layout Standard
3115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3118 \begin_layout Standard
3126 <cell alignment="center" valignment="top" topline="true" usebox="none">
3129 \begin_layout Standard
3135 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3138 \begin_layout Standard
3146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3149 \begin_layout Standard
3157 <cell alignment="center" valignment="top" topline="true" usebox="none">
3160 \begin_layout Standard
3166 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3169 \begin_layout Standard
3177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3180 \begin_layout Standard
3188 <cell alignment="center" valignment="top" topline="true" usebox="none">
3191 \begin_layout Standard
3197 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3200 \begin_layout Standard
3208 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3211 \begin_layout Standard
3219 <cell alignment="center" valignment="top" topline="true" usebox="none">
3222 \begin_layout Standard
3228 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3231 \begin_layout Standard
3239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3242 \begin_layout Standard
3250 <cell alignment="center" valignment="top" topline="true" usebox="none">
3253 \begin_layout Standard
3259 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3262 \begin_layout Standard
3270 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3273 \begin_layout Standard
3281 <cell alignment="center" valignment="top" topline="true" usebox="none">
3284 \begin_layout Standard
3290 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3293 \begin_layout Standard
3301 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3304 \begin_layout Standard
3312 <cell alignment="center" valignment="top" topline="true" usebox="none">
3315 \begin_layout Standard
3321 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3324 \begin_layout Standard
3332 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3335 \begin_layout Standard
3343 <cell alignment="center" valignment="top" topline="true" usebox="none">
3346 \begin_layout Standard
3352 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3355 \begin_layout Standard
3363 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3366 \begin_layout Standard
3374 <cell alignment="center" valignment="top" topline="true" usebox="none">
3377 \begin_layout Standard
3383 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3386 \begin_layout Standard
3394 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3397 \begin_layout Standard
3405 <cell alignment="center" valignment="top" topline="true" usebox="none">
3408 \begin_layout Standard
3414 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3417 \begin_layout Standard
3425 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3428 \begin_layout Standard
3436 <cell alignment="center" valignment="top" topline="true" usebox="none">
3439 \begin_layout Standard
3445 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3448 \begin_layout Standard
3456 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3459 \begin_layout Standard
3467 <cell alignment="center" valignment="top" topline="true" usebox="none">
3470 \begin_layout Standard
3476 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3479 \begin_layout Standard
3487 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3490 \begin_layout Standard
3498 <cell alignment="center" valignment="top" topline="true" usebox="none">
3501 \begin_layout Standard
3507 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3510 \begin_layout Standard
3517 <row bottomline="true">
3518 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3521 \begin_layout Standard
3529 <cell alignment="center" valignment="top" topline="true" usebox="none">
3532 \begin_layout Standard
3538 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3541 \begin_layout Standard
3548 <row bottomline="true">
3549 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3552 \begin_layout Standard
3558 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
3561 \begin_layout Standard
3567 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3570 \begin_layout Standard
3578 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3581 \begin_layout Standard
3589 <cell alignment="center" valignment="top" topline="true" usebox="none">
3592 \begin_layout Standard
3598 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3601 \begin_layout Standard
3609 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3612 \begin_layout Standard
3620 <cell alignment="center" valignment="top" topline="true" usebox="none">
3623 \begin_layout Standard
3629 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3632 \begin_layout Standard
3640 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3643 \begin_layout Standard
3651 <cell alignment="center" valignment="top" topline="true" usebox="none">
3654 \begin_layout Standard
3660 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3663 \begin_layout Standard
3671 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3674 \begin_layout Standard
3682 <cell alignment="center" valignment="top" topline="true" usebox="none">
3685 \begin_layout Standard
3691 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3694 \begin_layout Standard
3702 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3705 \begin_layout Standard
3713 <cell alignment="center" valignment="top" topline="true" usebox="none">
3716 \begin_layout Standard
3722 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3725 \begin_layout Standard
3733 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3736 \begin_layout Standard
3744 <cell alignment="center" valignment="top" topline="true" usebox="none">
3747 \begin_layout Standard
3753 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3756 \begin_layout Standard
3764 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3767 \begin_layout Standard
3775 <cell alignment="center" valignment="top" topline="true" usebox="none">
3778 \begin_layout Standard
3784 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3787 \begin_layout Standard
3795 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3798 \begin_layout Standard
3806 <cell alignment="center" valignment="top" topline="true" usebox="none">
3809 \begin_layout Standard
3815 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3818 \begin_layout Standard
3826 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3829 \begin_layout Standard
3837 <cell alignment="center" valignment="top" topline="true" usebox="none">
3840 \begin_layout Standard
3846 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3849 \begin_layout Standard
3857 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3860 \begin_layout Standard
3868 <cell alignment="center" valignment="top" topline="true" usebox="none">
3871 \begin_layout Standard
3877 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3880 \begin_layout Standard
3888 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3891 \begin_layout Standard
3899 <cell alignment="center" valignment="top" topline="true" usebox="none">
3902 \begin_layout Standard
3908 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3911 \begin_layout Standard
3919 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3922 \begin_layout Standard
3930 <cell alignment="center" valignment="top" topline="true" usebox="none">
3933 \begin_layout Standard
3939 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3942 \begin_layout Standard
3950 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3953 \begin_layout Standard
3961 <cell alignment="center" valignment="top" topline="true" usebox="none">
3964 \begin_layout Standard
3970 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3973 \begin_layout Standard
3981 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3984 \begin_layout Standard
3992 <cell alignment="center" valignment="top" topline="true" usebox="none">
3995 \begin_layout Standard
4001 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4004 \begin_layout Standard
4012 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4015 \begin_layout Standard
4023 <cell alignment="center" valignment="top" topline="true" usebox="none">
4026 \begin_layout Standard
4032 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4035 \begin_layout Standard
4043 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4046 \begin_layout Standard
4054 <cell alignment="center" valignment="top" topline="true" usebox="none">
4057 \begin_layout Standard
4063 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4066 \begin_layout Standard
4074 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4077 \begin_layout Standard
4085 <cell alignment="center" valignment="top" topline="true" usebox="none">
4088 \begin_layout Standard
4094 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4097 \begin_layout Standard
4105 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4108 \begin_layout Standard
4116 <cell alignment="center" valignment="top" topline="true" usebox="none">
4119 \begin_layout Standard
4125 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4128 \begin_layout Standard
4136 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4139 \begin_layout Standard
4147 <cell alignment="center" valignment="top" topline="true" usebox="none">
4150 \begin_layout Standard
4156 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4159 \begin_layout Standard
4167 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4170 \begin_layout Standard
4178 <cell alignment="center" valignment="top" topline="true" usebox="none">
4181 \begin_layout Standard
4187 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4190 \begin_layout Standard
4198 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4201 \begin_layout Standard
4209 <cell alignment="center" valignment="top" topline="true" usebox="none">
4212 \begin_layout Standard
4218 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4221 \begin_layout Standard
4229 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4232 \begin_layout Standard
4240 <cell alignment="center" valignment="top" topline="true" usebox="none">
4243 \begin_layout Standard
4249 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4252 \begin_layout Standard
4260 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4263 \begin_layout Standard
4271 <cell alignment="center" valignment="top" topline="true" usebox="none">
4274 \begin_layout Standard
4280 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4283 \begin_layout Standard
4291 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4294 \begin_layout Standard
4302 <cell alignment="center" valignment="top" topline="true" usebox="none">
4305 \begin_layout Standard
4311 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4314 \begin_layout Standard
4322 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4325 \begin_layout Standard
4333 <cell alignment="center" valignment="top" topline="true" usebox="none">
4336 \begin_layout Standard
4342 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4345 \begin_layout Standard
4353 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4356 \begin_layout Standard
4364 <cell alignment="center" valignment="top" topline="true" usebox="none">
4367 \begin_layout Standard
4373 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4376 \begin_layout Standard
4384 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4387 \begin_layout Standard
4395 <cell alignment="center" valignment="top" topline="true" usebox="none">
4398 \begin_layout Standard
4404 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4407 \begin_layout Standard
4415 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4418 \begin_layout Standard
4426 <cell alignment="center" valignment="top" topline="true" usebox="none">
4429 \begin_layout Standard
4435 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4438 \begin_layout Standard
4446 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4449 \begin_layout Standard
4457 <cell alignment="center" valignment="top" topline="true" usebox="none">
4460 \begin_layout Standard
4466 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4469 \begin_layout Standard
4477 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4480 \begin_layout Standard
4488 <cell alignment="center" valignment="top" topline="true" usebox="none">
4491 \begin_layout Standard
4497 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4500 \begin_layout Standard
4507 <row bottomline="true">
4508 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4511 \begin_layout Standard
4519 <cell alignment="center" valignment="top" topline="true" usebox="none">
4522 \begin_layout Standard
4528 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4531 \begin_layout Standard
4538 <row bottomline="true" endlastfoot="true">
4539 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
4542 \begin_layout Standard
4548 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4551 \begin_layout Standard
4557 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4560 \begin_layout Standard
4575 \begin_layout Standard
4579 addtocounter{table}{-1}
4585 \begin_inset Note Note
4588 \begin_layout Standard
4589 See greyed-out note in section 2.6.2 for an explanation of this command.
4597 \begin_layout Subsection
4598 Footnotes in Longtables
4599 \begin_inset LatexCommand label
4600 name "sub:Footnotes-in-Longtables"
4605 \begin_inset LatexCommand index
4606 name "Longtables ! Footnotes"
4613 \begin_layout Standard
4614 Footnotes can be inserted to every longtable cell.
4615 They appear at the bottom of the page where the table cell with the footnote
4619 \begin_inset LatexCommand ref
4620 reference "tab:DiffCaptions"
4624 has for example a footnote.
4627 \begin_layout Subsection
4629 \begin_inset LatexCommand index
4630 name "Longtables ! Captions"
4637 \begin_layout Standard
4638 A longtable cannot be put into a table float because floats can only be
4639 on one page but the caption environment of floats can also be used for
4643 \begin_layout Standard
4644 As LyX does not yet fully support captions in longtables, a hack is needed
4648 \begin_layout Enumerate
4654 \begin_layout Enumerate
4655 Mark the first row and disable its upper line.
4658 \begin_layout Enumerate
4659 Insert a caption via the menu
4661 Insert\SpecialChar \menuseparator
4664 into the first table cell.
4666 You can also add a short title for the caption.
4669 \begin_layout Enumerate
4671 \begin_inset Quotes eld
4683 \begin_inset Quotes erd
4686 as ERT behind the caption.
4689 \begin_layout Standard
4690 A short title that will appear in the LOT instead of the full title.
4699 behind the caption omits the vertical lines between the following cells
4701 The first table row is now only a dummy row for the caption, the actual
4702 table starts with the second row.
4705 \begin_layout Standard
4706 Here is a short longtable to see how it works:
4709 \begin_layout Standard
4710 \begin_inset Tabular
4711 <lyxtabular version="3" rows="6" columns="5">
4712 <features islongtable="true">
4713 <column alignment="center" valignment="top" leftline="true" width="0">
4714 <column alignment="center" valignment="top" leftline="true" width="0">
4715 <column alignment="center" valignment="top" leftline="true" width="0">
4716 <column alignment="center" valignment="top" leftline="true" width="0">
4717 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
4719 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4722 \begin_layout Standard
4723 \begin_inset Caption
4725 \begin_layout Standard
4726 Longtable with caption
4730 \begin_layout Standard
4745 \begin_layout Standard
4761 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4764 \begin_layout Standard
4770 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4773 \begin_layout Standard
4779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4782 \begin_layout Standard
4788 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4791 \begin_layout Standard
4798 <row topline="true">
4799 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4802 \begin_layout Standard
4808 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4811 \begin_layout Standard
4817 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4820 \begin_layout Standard
4826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4829 \begin_layout Standard
4835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4838 \begin_layout Standard
4845 <row topline="true">
4846 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4849 \begin_layout Standard
4855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4858 \begin_layout Standard
4864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4867 \begin_layout Standard
4873 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4876 \begin_layout Standard
4882 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4885 \begin_layout Standard
4892 <row topline="true">
4893 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4896 \begin_layout Standard
4902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4905 \begin_layout Standard
4911 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4914 \begin_layout Standard
4920 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4923 \begin_layout Standard
4929 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4932 \begin_layout Standard
4939 <row topline="true">
4940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4943 \begin_layout Standard
4949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4952 \begin_layout Standard
4958 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4961 \begin_layout Standard
4967 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4970 \begin_layout Standard
4976 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4979 \begin_layout Standard
4986 <row topline="true" bottomline="true">
4987 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4990 \begin_layout Standard
4996 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4999 \begin_layout Standard
5005 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5008 \begin_layout Standard
5014 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5017 \begin_layout Standard
5023 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5026 \begin_layout Standard
5040 \begin_layout Standard
5041 \begin_inset VSpace medskip
5045 \begin_inset Note Greyedout
5048 \begin_layout Standard
5053 The table number is increased for every longtable, also if you didn't set
5055 For this reason you could have the case that e.g.
5057 2.4 follows on Table\InsetSpace ~
5058 2.1 in the list of tables if there are two longtables
5060 To avoid this you can add the following command in ERT behind every longtable
5064 \begin_layout Standard
5069 addtocounter{table}{-1}
5077 \begin_layout Standard
5078 \begin_inset Note Greyedout
5081 \begin_layout Standard
5086 If you are using the LaTeX-package
5091 \begin_inset LatexCommand index
5092 name "LaTeX-packages ! hyperref"
5096 to link cross-references, the link to a longtable caption will always point
5097 to the beginning of the document.
5105 \begin_layout Subsubsection
5106 References to Longtables
5107 \begin_inset LatexCommand index
5108 name "Longtables ! References"
5115 \begin_layout Standard
5116 \begin_inset Tabular
5117 <lyxtabular version="3" rows="6" columns="5">
5118 <features islongtable="true">
5119 <column alignment="center" valignment="top" leftline="true" width="0">
5120 <column alignment="center" valignment="top" leftline="true" width="0">
5121 <column alignment="center" valignment="top" leftline="true" width="0">
5122 <column alignment="center" valignment="top" leftline="true" width="0">
5123 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5125 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5128 \begin_layout Standard
5129 \begin_inset Caption
5131 \begin_layout Standard
5132 Referenced longtable
5133 \begin_inset LatexCommand label
5134 name "tab:RefExample"
5147 \begin_layout Standard
5163 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5166 \begin_layout Standard
5172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5175 \begin_layout Standard
5181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5184 \begin_layout Standard
5190 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5193 \begin_layout Standard
5200 <row topline="true">
5201 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5204 \begin_layout Standard
5210 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5213 \begin_layout Standard
5219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5222 \begin_layout Standard
5228 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5231 \begin_layout Standard
5237 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5240 \begin_layout Standard
5247 <row topline="true">
5248 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5251 \begin_layout Standard
5257 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5260 \begin_layout Standard
5266 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5269 \begin_layout Standard
5275 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5278 \begin_layout Standard
5284 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5287 \begin_layout Standard
5294 <row topline="true">
5295 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5298 \begin_layout Standard
5304 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5307 \begin_layout Standard
5313 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5316 \begin_layout Standard
5322 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5325 \begin_layout Standard
5331 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5334 \begin_layout Standard
5341 <row topline="true">
5342 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5345 \begin_layout Standard
5351 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5354 \begin_layout Standard
5360 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5363 \begin_layout Standard
5369 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5372 \begin_layout Standard
5378 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5381 \begin_layout Standard
5388 <row topline="true" bottomline="true">
5389 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5392 \begin_layout Standard
5398 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5401 \begin_layout Standard
5407 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5410 \begin_layout Standard
5416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5419 \begin_layout Standard
5425 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5428 \begin_layout Standard
5442 \begin_layout Standard
5443 To reference a longtable, insert a label into the caption.
5444 Note that you have to add the label prefix
5445 \begin_inset Quotes eld
5453 \begin_inset Quotes eld
5456 manually in the label field.
5459 \begin_layout Standard
5460 This is a reference to Table\InsetSpace ~
5462 \begin_inset LatexCommand ref
5463 reference "tab:RefExample"
5470 \begin_layout Standard
5471 The caption layout can be set together with all other caption of your document
5472 using the LaTeX-package
5477 \begin_inset LatexCommand index
5478 name "LaTeX-packages ! caption"
5482 , see section\InsetSpace ~
5484 \begin_inset LatexCommand ref
5485 reference "sec:Caption-Formatting"
5492 \begin_layout Subsubsection
5494 \begin_inset LatexCommand index
5495 name "Longtables ! Caption Width"
5502 \begin_layout Standard
5503 The maximal width of of caption lines is defined by the length
5510 Its default value is 4\InsetSpace \thinspace{}
5512 To change it add the following command to your document preamble or as
5513 ERT into your document before the longtable that should be affected
5516 \begin_layout Standard
5526 \begin_layout Standard
5527 where the width could have one of the units listed in appendix\InsetSpace ~
5529 \begin_inset LatexCommand ref
5530 reference "cha:Units-available-in"
5537 \begin_layout Standard
5538 The following tables show the difference:
5541 \begin_layout Standard
5542 \begin_inset Tabular
5543 <lyxtabular version="3" rows="6" columns="5">
5544 <features islongtable="true">
5545 <column alignment="center" valignment="top" leftline="true" width="0">
5546 <column alignment="center" valignment="top" leftline="true" width="0">
5547 <column alignment="center" valignment="top" leftline="true" width="0">
5548 <column alignment="center" valignment="top" leftline="true" width="0">
5549 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5551 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5554 \begin_layout Standard
5555 \begin_inset Caption
5557 \begin_layout Standard
5558 long full title with default width long full title with default width long
5559 full title with default width
5563 \begin_layout Standard
5564 caption with default width
5578 \begin_layout Standard
5594 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5597 \begin_layout Standard
5603 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5606 \begin_layout Standard
5612 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5615 \begin_layout Standard
5621 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5624 \begin_layout Standard
5631 <row topline="true">
5632 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5635 \begin_layout Standard
5641 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5644 \begin_layout Standard
5650 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5653 \begin_layout Standard
5659 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5662 \begin_layout Standard
5668 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5671 \begin_layout Standard
5678 <row topline="true">
5679 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5682 \begin_layout Standard
5688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5691 \begin_layout Standard
5697 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5700 \begin_layout Standard
5706 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5709 \begin_layout Standard
5715 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5718 \begin_layout Standard
5725 <row topline="true">
5726 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5729 \begin_layout Standard
5735 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5738 \begin_layout Standard
5744 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5747 \begin_layout Standard
5753 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5756 \begin_layout Standard
5762 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5765 \begin_layout Standard
5772 <row topline="true">
5773 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5776 \begin_layout Standard
5782 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5785 \begin_layout Standard
5791 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5794 \begin_layout Standard
5800 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5803 \begin_layout Standard
5809 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5812 \begin_layout Standard
5819 <row topline="true" bottomline="true">
5820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5823 \begin_layout Standard
5829 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5832 \begin_layout Standard
5838 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5841 \begin_layout Standard
5847 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5850 \begin_layout Standard
5856 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5859 \begin_layout Standard
5873 \begin_layout Standard
5877 \begin_layout Standard
5889 \begin_inset Tabular
5890 <lyxtabular version="3" rows="6" columns="5">
5891 <features islongtable="true">
5892 <column alignment="center" valignment="top" leftline="true" width="0">
5893 <column alignment="center" valignment="top" leftline="true" width="0">
5894 <column alignment="center" valignment="top" leftline="true" width="0">
5895 <column alignment="center" valignment="top" leftline="true" width="0">
5896 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5901 \begin_layout Standard
5902 \begin_inset Caption
5904 \begin_layout Standard
5905 long full title with width set to 5\InsetSpace \thinspace{}
5906 cm long full title with width set to
5907 5\InsetSpace \thinspace{}
5908 cm long full title with width set to 5\InsetSpace \thinspace{}
5913 \begin_layout Standard
5914 caption with width\InsetSpace \thinspace{}
5915 =\InsetSpace \thinspace{}
5916 5\InsetSpace \thinspace{}
5931 \begin_layout Standard
5947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5950 \begin_layout Standard
5956 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5959 \begin_layout Standard
5965 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5968 \begin_layout Standard
5974 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5977 \begin_layout Standard
5984 <row topline="true">
5985 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5988 \begin_layout Standard
5994 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5997 \begin_layout Standard
6003 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6006 \begin_layout Standard
6012 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6015 \begin_layout Standard
6021 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6024 \begin_layout Standard
6031 <row topline="true">
6032 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6035 \begin_layout Standard
6041 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6044 \begin_layout Standard
6050 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6053 \begin_layout Standard
6059 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6062 \begin_layout Standard
6068 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6071 \begin_layout Standard
6078 <row topline="true">
6079 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6082 \begin_layout Standard
6088 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6091 \begin_layout Standard
6097 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6100 \begin_layout Standard
6106 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6109 \begin_layout Standard
6115 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6118 \begin_layout Standard
6125 <row topline="true">
6126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6129 \begin_layout Standard
6135 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6138 \begin_layout Standard
6144 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6147 \begin_layout Standard
6153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6156 \begin_layout Standard
6162 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6165 \begin_layout Standard
6172 <row topline="true" bottomline="true">
6173 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6176 \begin_layout Standard
6182 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6185 \begin_layout Standard
6191 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6194 \begin_layout Standard
6200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6203 \begin_layout Standard
6209 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6212 \begin_layout Standard
6226 \begin_layout Standard
6230 \begin_layout Standard
6244 \begin_layout Standard
6245 \begin_inset Note Greyedout
6248 \begin_layout Standard
6253 When the LaTeX-package
6258 \begin_inset LatexCommand index
6259 name "LaTeX-packages ! caption"
6263 is used, as in this document, the full page width is used for the caption
6264 when you use the default value of 4\InsetSpace \thinspace{}
6272 To get in this case exactly a 4\InsetSpace \thinspace{}
6273 in wide caption, you can either use a value
6274 slightly different from 4.0\InsetSpace \thinspace{}
6276 3.99\InsetSpace \thinspace{}
6277 in, or the LaTeX-command
6281 captionsetup{width=value}
6283 that is provided by the
6295 \begin_layout Subsubsection
6296 Different Captions for Table Pages
6297 \begin_inset LatexCommand index
6298 name "Longtables ! Different Captions for Pages"
6305 \begin_layout Standard
6306 When the other captions should differ from the one of the first table page,
6307 insert a caption with a non-empty short title in a dummy caption row marked
6309 The caption used for the other table pages is inserted as caption without
6310 a short title in a dummy caption row that is marked as main header.
6311 When this caption shouldn't include the table number, use the command
6314 \begin_layout Standard
6319 caption*{caption text}
6322 \begin_layout Standard
6323 instead of LyX's caption box.
6324 The label to reference the table is inserted into the caption of the first
6328 \begin_inset LatexCommand ref
6329 reference "tab:DiffCaptions"
6333 is an example for a longtable with different heading where the second caption
6334 doesn't include the table number.
6337 \begin_layout Standard
6339 \begin_inset Tabular
6340 <lyxtabular version="3" rows="60" columns="3">
6341 <features islongtable="true">
6342 <column alignment="left" valignment="top" leftline="true" width="0cm">
6343 <column alignment="left" valignment="top" rightline="true" width="0pt">
6344 <column alignment="right" valignment="top" rightline="true" width="0pt">
6345 <row endfirsthead="true">
6346 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6349 \begin_layout Standard
6350 \begin_inset Caption
6352 \begin_layout Standard
6354 \begin_inset LatexCommand label
6355 name "tab:DiffCaptions"
6363 \begin_layout Standard
6378 \begin_layout Standard
6394 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6397 \begin_layout Standard
6403 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6406 \begin_layout Standard
6413 <row topline="true" bottomline="true" endfirsthead="true">
6414 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6417 \begin_layout Standard
6420 Example Phone List (ignore the names)
6425 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6428 \begin_layout Standard
6434 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6437 \begin_layout Standard
6444 <row topline="true" bottomline="true" endfirsthead="true">
6445 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6448 \begin_layout Standard
6456 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6459 \begin_layout Standard
6465 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6468 \begin_layout Standard
6477 <row bottomline="true" endhead="true">
6478 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6481 \begin_layout Standard
6485 \begin_layout Standard
6489 caption*{Continued Example Phone List}
6503 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6506 \begin_layout Standard
6512 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6515 \begin_layout Standard
6522 <row topline="true" bottomline="true" endhead="true">
6523 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6526 \begin_layout Standard
6534 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6537 \begin_layout Standard
6543 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6546 \begin_layout Standard
6553 <row topline="true" bottomline="true" endhead="true">
6554 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6557 \begin_layout Standard
6565 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6568 \begin_layout Standard
6574 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6577 \begin_layout Standard
6586 <row topline="true" bottomline="true" endfoot="true">
6587 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
6590 \begin_layout Standard
6591 continued on next page
6596 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6599 \begin_layout Standard
6605 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6608 \begin_layout Standard
6616 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6619 \begin_layout Standard
6627 <cell alignment="center" valignment="top" topline="true" usebox="none">
6630 \begin_layout Standard
6636 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6639 \begin_layout Standard
6647 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6650 \begin_layout Standard
6658 <cell alignment="center" valignment="top" topline="true" usebox="none">
6661 \begin_layout Standard
6667 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6670 \begin_layout Standard
6678 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6681 \begin_layout Standard
6689 <cell alignment="center" valignment="top" topline="true" usebox="none">
6692 \begin_layout Standard
6698 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6701 \begin_layout Standard
6709 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6712 \begin_layout Standard
6720 <cell alignment="center" valignment="top" topline="true" usebox="none">
6723 \begin_layout Standard
6729 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6732 \begin_layout Standard
6740 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6743 \begin_layout Standard
6751 <cell alignment="center" valignment="top" topline="true" usebox="none">
6754 \begin_layout Standard
6760 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6763 \begin_layout Standard
6771 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6774 \begin_layout Standard
6782 <cell alignment="center" valignment="top" topline="true" usebox="none">
6785 \begin_layout Standard
6791 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6794 \begin_layout Standard
6802 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6805 \begin_layout Standard
6813 <cell alignment="center" valignment="top" topline="true" usebox="none">
6816 \begin_layout Standard
6822 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6825 \begin_layout Standard
6833 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6836 \begin_layout Standard
6844 <cell alignment="center" valignment="top" topline="true" usebox="none">
6847 \begin_layout Standard
6853 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6856 \begin_layout Standard
6864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6867 \begin_layout Standard
6875 <cell alignment="center" valignment="top" topline="true" usebox="none">
6878 \begin_layout Standard
6884 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6887 \begin_layout Standard
6895 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6898 \begin_layout Standard
6906 <cell alignment="center" valignment="top" topline="true" usebox="none">
6909 \begin_layout Standard
6915 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6918 \begin_layout Standard
6926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6929 \begin_layout Standard
6937 <cell alignment="center" valignment="top" topline="true" usebox="none">
6940 \begin_layout Standard
6946 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6949 \begin_layout Standard
6957 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6960 \begin_layout Standard
6968 <cell alignment="center" valignment="top" topline="true" usebox="none">
6971 \begin_layout Standard
6977 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6980 \begin_layout Standard
6988 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6991 \begin_layout Standard
6999 <cell alignment="center" valignment="top" topline="true" usebox="none">
7002 \begin_layout Standard
7008 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7011 \begin_layout Standard
7019 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7022 \begin_layout Standard
7030 <cell alignment="center" valignment="top" topline="true" usebox="none">
7033 \begin_layout Standard
7039 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7042 \begin_layout Standard
7050 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7053 \begin_layout Standard
7062 \begin_layout Standard
7073 <cell alignment="center" valignment="top" topline="true" usebox="none">
7076 \begin_layout Standard
7082 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7085 \begin_layout Standard
7093 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7096 \begin_layout Standard
7104 <cell alignment="center" valignment="top" topline="true" usebox="none">
7107 \begin_layout Standard
7113 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7116 \begin_layout Standard
7124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7127 \begin_layout Standard
7135 <cell alignment="center" valignment="top" topline="true" usebox="none">
7138 \begin_layout Standard
7144 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7147 \begin_layout Standard
7155 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7158 \begin_layout Standard
7166 <cell alignment="center" valignment="top" topline="true" usebox="none">
7169 \begin_layout Standard
7175 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7178 \begin_layout Standard
7186 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7189 \begin_layout Standard
7197 <cell alignment="center" valignment="top" topline="true" usebox="none">
7200 \begin_layout Standard
7206 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7209 \begin_layout Standard
7217 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7220 \begin_layout Standard
7228 <cell alignment="center" valignment="top" topline="true" usebox="none">
7231 \begin_layout Standard
7237 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7240 \begin_layout Standard
7248 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7251 \begin_layout Standard
7259 <cell alignment="center" valignment="top" topline="true" usebox="none">
7262 \begin_layout Standard
7268 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7271 \begin_layout Standard
7279 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7282 \begin_layout Standard
7290 <cell alignment="center" valignment="top" topline="true" usebox="none">
7293 \begin_layout Standard
7299 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7302 \begin_layout Standard
7310 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7313 \begin_layout Standard
7321 <cell alignment="center" valignment="top" topline="true" usebox="none">
7324 \begin_layout Standard
7330 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7333 \begin_layout Standard
7341 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7344 \begin_layout Standard
7352 <cell alignment="center" valignment="top" topline="true" usebox="none">
7355 \begin_layout Standard
7361 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7364 \begin_layout Standard
7372 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7375 \begin_layout Standard
7383 <cell alignment="center" valignment="top" topline="true" usebox="none">
7386 \begin_layout Standard
7392 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7395 \begin_layout Standard
7403 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7406 \begin_layout Standard
7414 <cell alignment="center" valignment="top" topline="true" usebox="none">
7417 \begin_layout Standard
7423 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7426 \begin_layout Standard
7434 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7437 \begin_layout Standard
7445 <cell alignment="center" valignment="top" topline="true" usebox="none">
7448 \begin_layout Standard
7454 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7457 \begin_layout Standard
7465 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7468 \begin_layout Standard
7476 <cell alignment="center" valignment="top" topline="true" usebox="none">
7479 \begin_layout Standard
7485 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7488 \begin_layout Standard
7496 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7499 \begin_layout Standard
7507 <cell alignment="center" valignment="top" topline="true" usebox="none">
7510 \begin_layout Standard
7516 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7519 \begin_layout Standard
7527 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7530 \begin_layout Standard
7538 <cell alignment="center" valignment="top" topline="true" usebox="none">
7541 \begin_layout Standard
7547 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7550 \begin_layout Standard
7557 <row bottomline="true">
7558 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7561 \begin_layout Standard
7569 <cell alignment="center" valignment="top" topline="true" usebox="none">
7572 \begin_layout Standard
7578 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7581 \begin_layout Standard
7588 <row bottomline="true">
7589 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7592 \begin_layout Standard
7598 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
7601 \begin_layout Standard
7607 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7610 \begin_layout Standard
7618 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7621 \begin_layout Standard
7629 <cell alignment="center" valignment="top" topline="true" usebox="none">
7632 \begin_layout Standard
7638 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7641 \begin_layout Standard
7649 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7652 \begin_layout Standard
7660 <cell alignment="center" valignment="top" topline="true" usebox="none">
7663 \begin_layout Standard
7669 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7672 \begin_layout Standard
7680 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7683 \begin_layout Standard
7691 <cell alignment="center" valignment="top" topline="true" usebox="none">
7694 \begin_layout Standard
7700 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7703 \begin_layout Standard
7711 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7714 \begin_layout Standard
7722 <cell alignment="center" valignment="top" topline="true" usebox="none">
7725 \begin_layout Standard
7731 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7734 \begin_layout Standard
7742 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7745 \begin_layout Standard
7753 <cell alignment="center" valignment="top" topline="true" usebox="none">
7756 \begin_layout Standard
7762 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7765 \begin_layout Standard
7773 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7776 \begin_layout Standard
7784 <cell alignment="center" valignment="top" topline="true" usebox="none">
7787 \begin_layout Standard
7793 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7796 \begin_layout Standard
7804 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7807 \begin_layout Standard
7815 <cell alignment="center" valignment="top" topline="true" usebox="none">
7818 \begin_layout Standard
7824 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7827 \begin_layout Standard
7835 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7838 \begin_layout Standard
7846 <cell alignment="center" valignment="top" topline="true" usebox="none">
7849 \begin_layout Standard
7855 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7858 \begin_layout Standard
7866 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7869 \begin_layout Standard
7877 <cell alignment="center" valignment="top" topline="true" usebox="none">
7880 \begin_layout Standard
7886 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7889 \begin_layout Standard
7897 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7900 \begin_layout Standard
7908 <cell alignment="center" valignment="top" topline="true" usebox="none">
7911 \begin_layout Standard
7917 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7920 \begin_layout Standard
7928 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7931 \begin_layout Standard
7939 <cell alignment="center" valignment="top" topline="true" usebox="none">
7942 \begin_layout Standard
7948 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7951 \begin_layout Standard
7959 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7962 \begin_layout Standard
7970 <cell alignment="center" valignment="top" topline="true" usebox="none">
7973 \begin_layout Standard
7979 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7982 \begin_layout Standard
7990 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7993 \begin_layout Standard
8001 <cell alignment="center" valignment="top" topline="true" usebox="none">
8004 \begin_layout Standard
8010 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8013 \begin_layout Standard
8021 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8024 \begin_layout Standard
8032 <cell alignment="center" valignment="top" topline="true" usebox="none">
8035 \begin_layout Standard
8041 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8044 \begin_layout Standard
8052 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8055 \begin_layout Standard
8063 <cell alignment="center" valignment="top" topline="true" usebox="none">
8066 \begin_layout Standard
8072 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8075 \begin_layout Standard
8083 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8086 \begin_layout Standard
8094 <cell alignment="center" valignment="top" topline="true" usebox="none">
8097 \begin_layout Standard
8103 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8106 \begin_layout Standard
8114 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8117 \begin_layout Standard
8125 <cell alignment="center" valignment="top" topline="true" usebox="none">
8128 \begin_layout Standard
8134 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8137 \begin_layout Standard
8145 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8148 \begin_layout Standard
8156 <cell alignment="center" valignment="top" topline="true" usebox="none">
8159 \begin_layout Standard
8165 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8168 \begin_layout Standard
8176 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8179 \begin_layout Standard
8187 <cell alignment="center" valignment="top" topline="true" usebox="none">
8190 \begin_layout Standard
8196 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8199 \begin_layout Standard
8206 <row bottomline="true">
8207 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8210 \begin_layout Standard
8218 <cell alignment="center" valignment="top" topline="true" usebox="none">
8221 \begin_layout Standard
8227 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8230 \begin_layout Standard
8237 <row bottomline="true" endlastfoot="true">
8238 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
8241 \begin_layout Standard
8247 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8250 \begin_layout Standard
8256 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8259 \begin_layout Standard
8273 \begin_layout Section
8274 Special Longtable Issues
8275 \begin_inset LatexCommand label
8276 name "sec:Special-Longtable-Issues"
8283 \begin_layout Subsection
8284 Longtable Calculation
8285 \begin_inset LatexCommand index
8286 name "Longtables ! Calculation"
8293 \begin_layout Standard
8294 LaTeX calculates the height of table pages and their page breaks using so
8296 Chunks are pieces of the tables that are at once in LaTeX's memory.
8297 The default value is historically set to only 20 table rows.
8298 If you are using longtables with many pages this may slow down the creation
8300 You can safely increase the chunk size to values of 100-1000 by adding
8301 this command line to your document preamble:
8304 \begin_layout Standard
8309 setcounter{LTchunksize}{100}
8312 \begin_layout Subsection
8313 Floats and Longtables
8314 \begin_inset LatexCommand index
8315 name "Longtables ! Floats"
8322 \begin_layout Standard
8323 There might be problems when a float appears on the same page where a longtable
8325 To avoid such situation, add the command
8331 as ERT before your longtable.
8334 \begin_layout Subsection
8336 \begin_inset LatexCommand index
8337 name "Longtables ! Forced Page Breaks"
8344 \begin_layout Standard
8345 By default tables are only broken between rows.
8346 If you have a cell with multiples lines and want to have a page break within
8347 the cell, insert the new line command
8348 \begin_inset Quotes eld
8360 \begin_inset Quotes erd
8363 as ERT at this point of the cell where it should be broken.
8372 command you have to insert in ERT so many
8373 \begin_inset Quotes eld
8381 \begin_inset Quotes erd
8384 characters like the number of the following table columns.
8389 is the character to separate table cells.
8390 Write in ERT after each
8394 the content of the corresponding following cell and delete the content
8405 command, insert so many
8409 characters like the number of table columns before the current column.
8410 In Table\InsetSpace ~
8412 \begin_inset LatexCommand ref
8413 reference "tab:ForcedPagebreak"
8417 the cell that should be broken is in the second column followed by another
8419 Therefore the following command was inserted in the cell as ERT behind
8421 \begin_inset Quotes eld
8429 \begin_inset Quotes erd
8435 \begin_layout Standard
8447 \begin_layout Standard
8449 \begin_inset Quotes eld
8453 \begin_inset Quotes erd
8456 in the third columns of the row was deleted.
8457 If your footer row of the longtable has for a certain reason no upper line
8458 but you would have a horizontal line where the cell is broken, use this
8462 \begin_layout Standard
8476 \begin_layout Standard
8477 When the cell to be broken is in the last column, the command
8480 \begin_layout Standard
8487 parf\SpecialChar \textcompwordmark{}
8491 \begin_layout Standard
8492 must be inserted as ERT at the beginning of the cell.
8493 This assures that the part of the cell that will be displayed on the new
8494 page appears with the full width.
8498 \begin_layout Standard
8500 \begin_inset Tabular
8501 <lyxtabular version="3" rows="39" columns="3">
8502 <features islongtable="true">
8503 <column alignment="left" valignment="top" leftline="true" width="0cm">
8504 <column alignment="left" valignment="top" rightline="true" width="3cm">
8505 <column alignment="right" valignment="top" rightline="true" width="0pt">
8506 <row endfirsthead="true">
8507 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8510 \begin_layout Standard
8511 \begin_inset Caption
8513 \begin_layout Standard
8514 Table with forced page break in table cell
8515 \begin_inset LatexCommand label
8516 name "tab:ForcedPagebreak"
8524 \begin_layout Standard
8525 Table with forced page break in table cell
8539 \begin_layout Standard
8555 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8558 \begin_layout Standard
8564 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8567 \begin_layout Standard
8574 <row topline="true" bottomline="true" endfirsthead="true">
8575 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8578 \begin_layout Standard
8581 Example Phone List (ignore the names)
8586 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8589 \begin_layout Standard
8595 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8598 \begin_layout Standard
8605 <row topline="true" bottomline="true" endfirsthead="true">
8606 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8609 \begin_layout Standard
8617 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8620 \begin_layout Standard
8626 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8629 \begin_layout Standard
8638 <row bottomline="true" endhead="true">
8639 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8642 \begin_layout Standard
8646 \begin_layout Standard
8650 caption*{Continued table with forced page break in table cell}
8664 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8667 \begin_layout Standard
8673 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8676 \begin_layout Standard
8683 <row topline="true" bottomline="true" endhead="true">
8684 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8687 \begin_layout Standard
8695 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8698 \begin_layout Standard
8704 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8707 \begin_layout Standard
8714 <row topline="true" bottomline="true" endhead="true">
8715 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8718 \begin_layout Standard
8726 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8729 \begin_layout Standard
8735 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8738 \begin_layout Standard
8747 <row topline="true" bottomline="true" endfoot="true">
8748 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
8751 \begin_layout Standard
8752 continued on next page
8757 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8760 \begin_layout Standard
8766 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8769 \begin_layout Standard
8777 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8780 \begin_layout Standard
8788 <cell alignment="center" valignment="top" topline="true" usebox="none">
8791 \begin_layout Standard
8797 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8800 \begin_layout Standard
8808 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8811 \begin_layout Standard
8819 <cell alignment="center" valignment="top" topline="true" usebox="none">
8822 \begin_layout Standard
8828 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8831 \begin_layout Standard
8839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8842 \begin_layout Standard
8850 <cell alignment="center" valignment="top" topline="true" usebox="none">
8853 \begin_layout Standard
8859 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8862 \begin_layout Standard
8870 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8873 \begin_layout Standard
8881 <cell alignment="center" valignment="top" topline="true" usebox="none">
8884 \begin_layout Standard
8890 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8893 \begin_layout Standard
8901 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8904 \begin_layout Standard
8912 <cell alignment="center" valignment="top" topline="true" usebox="none">
8915 \begin_layout Standard
8921 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8924 \begin_layout Standard
8932 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8935 \begin_layout Standard
8943 <cell alignment="center" valignment="top" topline="true" usebox="none">
8946 \begin_layout Standard
8952 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8955 \begin_layout Standard
8963 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8966 \begin_layout Standard
8974 <cell alignment="center" valignment="top" topline="true" usebox="none">
8977 \begin_layout Standard
8983 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8986 \begin_layout Standard
8994 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8997 \begin_layout Standard
9005 <cell alignment="center" valignment="top" topline="true" usebox="none">
9008 \begin_layout Standard
9014 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9017 \begin_layout Standard
9025 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9028 \begin_layout Standard
9036 <cell alignment="center" valignment="top" topline="true" usebox="none">
9039 \begin_layout Standard
9045 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9048 \begin_layout Standard
9056 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9059 \begin_layout Standard
9067 <cell alignment="center" valignment="top" topline="true" usebox="none">
9070 \begin_layout Standard
9076 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9079 \begin_layout Standard
9087 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9090 \begin_layout Standard
9098 <cell alignment="center" valignment="top" topline="true" usebox="none">
9101 \begin_layout Standard
9107 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9110 \begin_layout Standard
9118 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9121 \begin_layout Standard
9129 <cell alignment="center" valignment="top" topline="true" usebox="none">
9132 \begin_layout Standard
9138 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9141 \begin_layout Standard
9149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9152 \begin_layout Standard
9160 <cell alignment="center" valignment="top" topline="true" usebox="none">
9163 \begin_layout Standard
9169 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9172 \begin_layout Standard
9180 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9183 \begin_layout Standard
9191 <cell alignment="center" valignment="top" topline="true" usebox="none">
9194 \begin_layout Standard
9200 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9203 \begin_layout Standard
9211 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9214 \begin_layout Standard
9222 <cell alignment="center" valignment="top" topline="true" usebox="none">
9225 \begin_layout Standard
9231 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9234 \begin_layout Standard
9242 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9245 \begin_layout Standard
9253 <cell alignment="center" valignment="top" topline="true" usebox="none">
9256 \begin_layout Standard
9262 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9265 \begin_layout Standard
9273 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9276 \begin_layout Standard
9284 <cell alignment="center" valignment="top" topline="true" usebox="none">
9287 \begin_layout Standard
9293 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9296 \begin_layout Standard
9304 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9307 \begin_layout Standard
9315 <cell alignment="center" valignment="top" topline="true" usebox="none">
9318 \begin_layout Standard
9324 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9327 \begin_layout Standard
9335 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9338 \begin_layout Standard
9346 <cell alignment="center" valignment="top" topline="true" usebox="none">
9349 \begin_layout Standard
9355 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9358 \begin_layout Standard
9366 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9369 \begin_layout Standard
9377 <cell alignment="center" valignment="top" topline="true" usebox="none">
9380 \begin_layout Standard
9386 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9389 \begin_layout Standard
9397 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9400 \begin_layout Standard
9408 <cell alignment="center" valignment="top" topline="true" usebox="none">
9411 \begin_layout Standard
9417 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9420 \begin_layout Standard
9428 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9431 \begin_layout Standard
9439 <cell alignment="center" valignment="top" topline="true" usebox="none">
9442 \begin_layout Standard
9448 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9451 \begin_layout Standard
9459 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9462 \begin_layout Standard
9470 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9473 \begin_layout Standard
9475 Fürst von Montecompatri, 11.
9476 Fürst von Sulmona und Vivaro, 10.
9477 Fürst von Rossano, 5.
9478 Herzog von Canemorte, 11.
9479 Herzog von Palombara, 5.
9480 Herzog von Castelchiodato,
9484 \begin_layout Standard
9493 \begin_layout Standard
9501 Herzog von Poggionativo, 11.
9502 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
9503 Graf von Valinfreda, 11.
9504 Baron von Cropalati, 11.
9505 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
9510 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9513 \begin_layout Standard
9521 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9524 \begin_layout Standard
9532 <cell alignment="center" valignment="top" topline="true" usebox="none">
9535 \begin_layout Standard
9541 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9544 \begin_layout Standard
9552 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9555 \begin_layout Standard
9563 <cell alignment="center" valignment="top" topline="true" usebox="none">
9566 \begin_layout Standard
9572 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9575 \begin_layout Standard
9583 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9586 \begin_layout Standard
9594 <cell alignment="center" valignment="top" topline="true" usebox="none">
9597 \begin_layout Standard
9603 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9606 \begin_layout Standard
9614 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9617 \begin_layout Standard
9625 <cell alignment="center" valignment="top" topline="true" usebox="none">
9628 \begin_layout Standard
9634 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9637 \begin_layout Standard
9645 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9648 \begin_layout Standard
9656 <cell alignment="center" valignment="top" topline="true" usebox="none">
9659 \begin_layout Standard
9665 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9668 \begin_layout Standard
9676 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9679 \begin_layout Standard
9687 <cell alignment="center" valignment="top" topline="true" usebox="none">
9690 \begin_layout Standard
9696 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9699 \begin_layout Standard
9707 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9710 \begin_layout Standard
9718 <cell alignment="center" valignment="top" topline="true" usebox="none">
9721 \begin_layout Standard
9727 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9730 \begin_layout Standard
9737 <row bottomline="true">
9738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9741 \begin_layout Standard
9749 <cell alignment="center" valignment="top" topline="true" usebox="none">
9752 \begin_layout Standard
9758 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9761 \begin_layout Standard
9768 <row endlastfoot="true">
9769 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9772 \begin_layout Standard
9778 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9781 \begin_layout Standard
9787 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9790 \begin_layout Standard
9804 \begin_layout Section
9805 Multiple Lines Columns and Rows
9808 \begin_layout Subsection
9809 Multiple Lines in Table Cells
9810 \begin_inset LatexCommand label
9811 name "sub:Multiple-Lines-in"
9816 \begin_inset LatexCommand index
9817 name "Multiple Lines in Table Cells"
9822 \begin_inset LatexCommand index
9823 name "Table ! Linebreaks"
9830 \begin_layout Standard
9832 \begin_inset Float table
9838 \begin_layout Standard
9839 \begin_inset Caption
9841 \begin_layout Standard
9842 \begin_inset LatexCommand label
9843 name "tab:Table-with-multiple"
9847 Table with multiple lines in cells
9855 \begin_layout Standard
9857 \begin_inset Tabular
9858 <lyxtabular version="3" rows="3" columns="3">
9860 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
9861 <column alignment="center" valignment="middle" leftline="true" width="0.5cm">
9862 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0.5cm">
9863 <row topline="true">
9864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9867 \begin_layout Standard
9872 \begin_layout Standard
9886 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9889 \begin_layout Standard
9895 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9898 \begin_layout Standard
9905 <row topline="true">
9906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9909 \begin_layout Standard
9915 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9918 \begin_layout Standard
9924 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9927 \begin_layout Standard
9934 <row topline="true" bottomline="true">
9935 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9938 \begin_layout Standard
9944 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9947 \begin_layout Standard
9953 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9956 \begin_layout Standard
9975 \begin_layout Standard
9976 Adjusting a fixed width for a column, enables to enter text as a paragraph
9977 with multiple lines and hyphenations.
9980 \begin_layout Standard
9981 To produce Table\InsetSpace ~
9983 \begin_inset LatexCommand ref
9984 reference "tab:Table-with-multiple"
9988 , create a 3×3 table, mark the first cell and right-click on it.
9989 In the appearing table dialog we set a cell width of 2.5\InsetSpace \thinspace{}
9990 cm and choose centered
9991 for the vertical and horizontal alignment.
9992 As our text is smaller than than 2.5\InsetSpace \thinspace{}
9993 cm, only one line will appear.
9994 To get two lines, we add a line break with the command
9997 \begin_layout Standard
10005 \begin_layout Standard
10007 If the text is wider than the set cell width it will automatically be broken
10011 \begin_layout Standard
10012 To center the text inside the two other cells of the first row vertically,
10013 right-click in the second cell, adjust a fixed width of 0.5\InsetSpace \thinspace{}
10015 centered alignments.
10016 Then do the same for the third cell of the row.
10019 \begin_layout Standard
10020 If you have a long word in a cell with a fixed width, it cannot be hyphenated
10021 by LaTeX if it is the first entry.
10022 Therefore you need to insert something, to make the word not being the
10023 first entry: Add the command
10026 \begin_layout Standard
10034 \begin_layout Standard
10035 in ERT before the word.
10036 As the space is zero, it doesn't change the output.
10039 \begin_inset LatexCommand ref
10040 reference "tab:Table-with-and"
10047 \begin_layout Standard
10048 \begin_inset Float table
10054 \begin_layout Standard
10055 \begin_inset Caption
10057 \begin_layout Standard
10058 \begin_inset LatexCommand label
10059 name "tab:Table-with-and"
10063 Table with and without hyphenation
10071 \begin_layout Standard
10075 \begin_inset Tabular
10076 <lyxtabular version="3" rows="3" columns="3">
10078 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10079 <column alignment="center" valignment="middle" leftline="true" width="0.5cm">
10080 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0.5cm">
10081 <row topline="true">
10082 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10085 \begin_layout Standard
10086 verylongtablecellword
10091 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10094 \begin_layout Standard
10100 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10103 \begin_layout Standard
10110 <row topline="true">
10111 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10114 \begin_layout Standard
10120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10123 \begin_layout Standard
10129 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10132 \begin_layout Standard
10139 <row topline="true" bottomline="true">
10140 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10143 \begin_layout Standard
10149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10152 \begin_layout Standard
10158 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10161 \begin_layout Standard
10175 \begin_inset Tabular
10176 <lyxtabular version="3" rows="3" columns="3">
10178 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10179 <column alignment="center" valignment="middle" leftline="true" width="0.5cm">
10180 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0.5cm">
10181 <row topline="true">
10182 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10185 \begin_layout Standard
10189 \begin_layout Standard
10198 verylongtablecellword
10203 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10206 \begin_layout Standard
10212 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10215 \begin_layout Standard
10222 <row topline="true">
10223 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10226 \begin_layout Standard
10232 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10235 \begin_layout Standard
10241 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10244 \begin_layout Standard
10251 <row topline="true" bottomline="true">
10252 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10255 \begin_layout Standard
10261 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10264 \begin_layout Standard
10270 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10273 \begin_layout Standard
10294 \begin_layout Standard
10300 \begin_layout Subsection
10302 \begin_inset LatexCommand label
10303 name "sub:Multicolumns"
10308 \begin_inset LatexCommand index
10309 name "Multicolumns"
10314 \begin_inset LatexCommand index
10315 name "Table ! Multicolumns"
10322 \begin_layout Subsubsection
10326 \begin_layout Standard
10327 To span a cell over multiple columns, mark as much cells within a line that
10328 should be one spanned cell and use either the table-toolbar button
10329 \begin_inset Graphics
10330 filename ../images/tabular-feature_multicolumn.xpm
10337 Edit\SpecialChar \menuseparator
10338 Table\SpecialChar \menuseparator
10341 , or right click on the marked cells and choose multicolumn in the appearing
10342 table dialog under the tab
10349 \begin_layout Standard
10350 Multicolumns have there own cell settings.
10351 That means changing cell borders, cell alignment, and the width only affects
10353 Here is an example table with a multicolumn cell in the first row and one
10354 in the last row without the upper border:
10357 \begin_layout Standard
10359 \begin_inset Tabular
10360 <lyxtabular version="3" rows="3" columns="4">
10361 <features firstHeadTopDL="true" firstHeadBottomDL="true">
10362 <column alignment="center" valignment="top" leftline="true" width="0pt">
10363 <column alignment="center" valignment="middle" leftline="true" width="0">
10364 <column alignment="center" valignment="top" leftline="true" width="0in">
10365 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
10366 <row topline="true" bottomline="true">
10367 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10370 \begin_layout Standard
10376 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
10379 \begin_layout Standard
10389 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10392 \begin_layout Standard
10398 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10401 \begin_layout Standard
10408 <row topline="true">
10409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10412 \begin_layout Standard
10427 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10430 \begin_layout Standard
10436 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10439 \begin_layout Standard
10445 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10448 \begin_layout Standard
10455 <row topline="true" bottomline="true">
10456 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10459 \begin_layout Standard
10465 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10468 \begin_layout Standard
10474 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10477 \begin_layout Standard
10483 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10486 \begin_layout Standard
10500 \begin_layout Subsubsection
10501 Multicolumn Calculations
10502 \begin_inset LatexCommand label
10503 name "sub:Multicolumn-Calculations"
10508 \begin_inset LatexCommand index
10509 name "Multicolumns ! Calculations"
10516 \begin_layout Standard
10517 LyX supports multicolumns directly, but we have to take notice of the cell
10518 width of the columns spanned by the multicolumn cell.
10521 \begin_layout Standard
10522 \begin_inset Float table
10527 \begin_layout Standard
10528 \begin_inset Caption
10530 \begin_layout Standard
10531 \begin_inset LatexCommand label
10532 name "tab:Table-with-centered"
10536 Table with centered multicolumn text above two columns that have exactly
10537 half the width of the multicolumn cell
10538 \begin_inset OptArg
10541 \begin_layout Standard
10542 Perfect multicolumn table
10555 \begin_layout Standard
10557 \begin_inset Tabular
10558 <lyxtabular version="3" rows="3" columns="3">
10560 <column alignment="center" valignment="middle" leftline="true" width="0" special=">{\centering}m{1.25cm-6.2pt}">
10561 <column alignment="center" valignment="middle" leftline="true" width="0">
10562 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10563 <row topline="true">
10564 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
10567 \begin_layout Standard
10568 multiple lines multicolumn
10573 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10576 \begin_layout Standard
10582 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10585 \begin_layout Standard
10592 <row topline="true">
10593 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10596 \begin_layout Standard
10602 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10605 \begin_layout Standard
10611 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10614 \begin_layout Standard
10621 <row topline="true" bottomline="true">
10622 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10625 \begin_layout Standard
10631 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10634 \begin_layout Standard
10640 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10643 \begin_layout Standard
10662 \begin_layout Standard
10663 To create for example Table\InsetSpace ~
10665 \begin_inset LatexCommand ref
10666 reference "tab:Table-with-centered"
10670 , mark the first two cells in the first row of a 3×3 table and right-click
10672 Now choose for this cell
10680 and a width of 2.5\InsetSpace \thinspace{}
10681 cm in the table dialog.
10682 The spanned columns should have exactly half the width of the multicolumn
10683 cell, so that you would adjust a width of 1.25\InsetSpace \thinspace{}
10684 cm for the first column.
10685 The second column has then automatically a width of 1.25\InsetSpace \thinspace{}
10687 width - width of first column).
10688 This was done for Table\InsetSpace ~
10690 \begin_inset LatexCommand ref
10691 reference "tab:Table-without-half"
10698 \begin_layout Standard
10699 \begin_inset Float table
10704 \begin_layout Standard
10705 \begin_inset Caption
10707 \begin_layout Standard
10708 \begin_inset LatexCommand label
10709 name "tab:Table-without-half"
10713 Table where the spanned table columns have not exactly half the width of
10714 the multicolumn cell
10715 \begin_inset OptArg
10718 \begin_layout Standard
10719 Imperfect multicolumn table
10732 \begin_layout Standard
10734 \begin_inset Tabular
10735 <lyxtabular version="3" rows="3" columns="3">
10737 <column alignment="center" valignment="top" leftline="true" width="1.25cm">
10738 <column alignment="center" valignment="top" leftline="true" width="0">
10739 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10740 <row topline="true" bottomline="true">
10741 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
10744 \begin_layout Standard
10745 multiple lines multicolumn
10750 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10753 \begin_layout Standard
10759 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10762 \begin_layout Standard
10769 <row topline="true">
10770 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10773 \begin_layout Standard
10779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10782 \begin_layout Standard
10788 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10791 \begin_layout Standard
10798 <row topline="true" bottomline="true">
10799 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10802 \begin_layout Standard
10808 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10811 \begin_layout Standard
10817 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10820 \begin_layout Standard
10839 \begin_layout Standard
10840 You can see that the first column has not the half width of the multicolumn
10841 cell, it is a bit bigger.
10842 The reason is that the given width of a cell
10843 \begin_inset Formula $W_{g}$
10846 is not its total width
10847 \begin_inset Formula $W_{\mathrm{tot}}$
10850 because a cell is always a bit larger than its given width.
10851 Appendix\InsetSpace ~
10853 \begin_inset LatexCommand eqref
10854 reference "cha:Explanation-of-Equation"
10858 explains it in detail.
10861 \begin_layout Standard
10862 The needed given width
10863 \begin_inset Formula $W_{g\, n}$
10870 columns are spanned can be calculated, so that each column has a total
10872 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
10876 \begin_inset Formula \begin{equation}
10877 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)·(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
10884 \begin_layout Standard
10885 In our case we have
10886 \begin_inset Formula $n=2$
10890 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
10893 cm and the default values for the lengths, so that equation
10894 \begin_inset LatexCommand ref
10900 \begin_inset Formula \begin{equation}
10901 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
10908 \begin_layout Standard
10909 To enable calculations in LaTeX, the LaTeX-package
10913 must be loaded with the document preamble line
10914 \begin_inset LatexCommand index
10915 name "LaTeX-packages ! calc"
10922 \begin_layout Standard
10930 \begin_layout Standard
10931 LyX does not allow to calculate lengths in the width-field of the table
10933 Therefore you have to format the column by inserting a LaTeX-argument in
10935 Here is an overview about the arguments:
10938 \begin_layout Itemize
10943 creates cell with a fixed width, its text is vertically top-aligned
10946 \begin_layout Itemize
10951 creates cell with a fixed width, its text is vertically centered
10954 \begin_layout Itemize
10959 creates cell with a fixed width, its text is vertically bottom-aligned
10962 \begin_layout Standard
10963 By entering a LaTeX-argument, all cell properties set in the table dialog
10966 \begin_inset Note Greyedout
10969 \begin_layout Standard
10974 Due to a bug, LyX shows the overwritten properties anyway.
10979 As the text should be horizontally centered, the command
10986 You can now enter the following LaTeX-argument for the first spanned column:
10989 \begin_layout Standard
10994 centering}m{1.25cm-6.2pt}
10997 \begin_layout Standard
11002 means, that the commands inside the braces are applied before the cell
11006 \begin_layout Standard
11007 Although we have chosen centered alignment for the text of the multicolumn
11008 cell, it is still left aligned.
11009 This is because LyX only applies the alignment to single columns.
11010 So we have to use for the multicolumn the LaTeX-argument
11013 \begin_layout Standard
11021 \begin_layout Subsection
11023 \begin_inset LatexCommand index
11029 \begin_inset LatexCommand index
11030 name "Table ! Multirows"
11035 \begin_inset LatexCommand index
11036 name "LaTeX-packages ! multirow"
11043 \begin_layout Standard
11044 In contrary to multicolumns multirows are not yet supported by LyX so a
11045 bit of ERT needs to be used.
11046 To use multirows load the LaTeX-package
11050 in your document preamble with the command
11053 \begin_layout Standard
11058 usepackage{multirow}
11061 \begin_layout Standard
11062 Multirows are created with the command
11065 \begin_layout Standard
11070 multirow{number of rows}{cell width}{cell entry}
11073 \begin_layout Standard
11074 To create the following table:
11077 \begin_layout Standard
11082 \begin_layout Standard
11096 \begin_inset Tabular
11097 <lyxtabular version="3" rows="3" columns="3">
11099 <column alignment="center" valignment="top" leftline="true" width="0">
11100 <column alignment="center" valignment="top" leftline="true" width="0">
11101 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
11102 <row topline="true">
11103 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11106 \begin_layout Standard
11112 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11115 \begin_layout Standard
11121 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11124 \begin_layout Standard
11131 <row topline="true">
11132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11135 \begin_layout Standard
11139 \begin_layout Standard
11143 multirow{2}{2.5cm}{
11152 \begin_layout Standard
11164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11167 \begin_layout Standard
11173 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11176 \begin_layout Standard
11183 <row topline="true" bottomline="true">
11184 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11187 \begin_layout Standard
11193 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11196 \begin_layout Standard
11202 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11205 \begin_layout Standard
11220 \begin_layout Standard
11236 \begin_layout Standard
11237 create a 3×3 table.
11238 To get rid of the line above the last cell in the first column, the cell
11239 is marked as multicolumn and the upper border is unset.
11240 The multirow is now created in the second row of the first column by inserting
11244 \begin_layout Standard
11249 multirow{2}{2.5cm}{
11252 \begin_layout Standard
11254 According to the command parameters the multirow spans now two rows and
11255 has a width of 2.5\InsetSpace \thinspace{}
11257 The content of the multirow cell follows outside the ERT box and the command
11258 is finished with a right brace
11262 in another ERT-box behind the text.
11265 \begin_layout Standard
11272 left-aligns its content by default.
11273 To override the default, renew the command
11282 \begin_layout Standard
11294 \begin_layout Standard
11295 in ERT in the document preamble.
11296 Then all entries of multirow cells in the document are centered.
11297 If centering is only needed for several tables, you can renew the command
11298 in an ERT box just before the table instead of the preamble.
11299 If the text should be right-aligned, replace
11312 To return to left-alignment
11321 \begin_layout Section
11323 \begin_inset LatexCommand label
11324 name "sec:Formal-Tables"
11329 \begin_inset LatexCommand index
11330 name "Table ! Formal"
11337 \begin_layout Standard
11338 Tables are often typeset in books similar to Table\InsetSpace ~
11340 \begin_inset LatexCommand ref
11341 reference "tab:Example-booktabs-table"
11346 This kind of tables is called
11347 \begin_inset Quotes eld
11355 \begin_inset Quotes erd
11359 To make a table a formal table use the option
11367 tab of the table dialog.
11370 \begin_layout Standard
11371 \begin_inset Float table
11377 \begin_layout Standard
11378 \begin_inset Caption
11380 \begin_layout Standard
11381 \begin_inset LatexCommand label
11382 name "tab:Example-booktabs-table"
11386 Example booktabs-table
11394 \begin_layout Standard
11396 \begin_inset Tabular
11397 <lyxtabular version="3" rows="8" columns="4">
11398 <features booktabs="true">
11399 <column alignment="center" valignment="top" rightline="true" width="0">
11400 <column alignment="center" valignment="top" width="0">
11401 <column alignment="center" valignment="top" width="0">
11402 <column alignment="center" valignment="top" width="0">
11403 <row topline="true">
11404 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11407 \begin_layout Standard
11413 <cell alignment="center" valignment="top" topline="true" usebox="none">
11416 \begin_layout Standard
11418 \begin_inset Formula $\,$
11426 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
11429 \begin_layout Standard
11431 \begin_inset Formula $\,$
11439 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11442 \begin_layout Standard
11450 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11453 \begin_layout Standard
11457 \begin_layout Standard
11470 \begin_layout Standard
11479 Detector thickness [µm]
11484 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11487 \begin_layout Standard
11493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11496 \begin_layout Standard
11502 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11505 \begin_layout Standard
11512 <row topline="true">
11513 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11516 \begin_layout Standard
11522 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11525 \begin_layout Standard
11531 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11534 \begin_layout Standard
11540 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11543 \begin_layout Standard
11550 <row topspace="default">
11551 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11554 \begin_layout Standard
11555 Spatial resolution [µm]
11560 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11563 \begin_layout Standard
11569 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11572 \begin_layout Standard
11578 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11581 \begin_layout Standard
11588 <row topspace="default">
11589 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11592 \begin_layout Standard
11594 \begin_inset Formula $f_{\mathrm{max}}$
11602 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11605 \begin_layout Standard
11611 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11614 \begin_layout Standard
11620 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11623 \begin_layout Standard
11630 <row topspace="default">
11631 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11634 \begin_layout Standard
11638 \begin_layout Standard
11642 cmidrule(l{10pt}){1-1}
11647 LSF-spatial resolution
11652 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11655 \begin_layout Standard
11661 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11664 \begin_layout Standard
11670 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11673 \begin_layout Standard
11681 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11684 \begin_layout Standard
11690 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11693 \begin_layout Standard
11699 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11702 \begin_layout Standard
11708 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11711 \begin_layout Standard
11718 <row bottomline="true">
11719 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11722 \begin_layout Standard
11728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11731 \begin_layout Standard
11737 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11740 \begin_layout Standard
11746 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11749 \begin_layout Standard
11768 \begin_layout Standard
11769 Spaces to table rows can be added using the
11773 tab of the table dialog as described in section\InsetSpace ~
11775 \begin_inset LatexCommand ref
11776 reference "sub:Row-Spacing"
11783 \begin_layout Standard
11784 In contrary to normal tables, formal tables have no vertical table lines.
11785 The horizontal table lines can be set like for normal tables but they appear
11786 with different width in the output:
11788 The first and the last table line have
11789 a default width of 0.08\InsetSpace \thinspace{}
11790 em while the other lines have a default width of
11791 0.05\InsetSpace \thinspace{}
11795 \begin_layout Standard
11796 The default widths can be changed with the following preamble lines
11799 \begin_layout Standard
11819 \begin_layout Standard
11820 This example is for the first line, the so called toprule.
11821 If you want to change the width for the last line, replace
11830 To change the width for the other lines replace
11839 You can use all units listed in appendix\InsetSpace ~
11841 \begin_inset LatexCommand ref
11842 reference "cha:Units-available-in"
11849 \begin_layout Standard
11850 Lines that don't span over all table columns can be created by setting a
11851 table line for multicolumn cells.
11852 LyX will then internally use the command
11858 to create this line.
11862 \begin_layout Standard
11867 cmidrule[width](trim){startcol-endcol}
11870 \begin_layout Standard
11877 are are currently not supported by LyX so you have to use ERT to be able
11885 s can manually be created by inserting the command as ERT as first cell
11886 entry of the first cell of a row.
11887 The line is then drawn in the output above the current row.
11890 \begin_layout Standard
11891 The default for the width is 0.03\InsetSpace \thinspace{}
11893 Startcol is the number of the column where the line starts and endcol the
11894 column number where the line ends.
11895 The endcol always needs to be specified, also when the line should span
11897 The optional parameter trim could be either
11905 where the trimwidth is also optional.
11906 Using for example the parameter
11910 means that the line is trimmed from its left end by 2\InsetSpace \thinspace{}
11912 If you don't specify the trimwidth the lines are trimmed by the default
11913 of 0.5\InsetSpace \thinspace{}
11917 \begin_layout Standard
11918 \begin_inset VSpace bigskip
11923 \begin_inset LatexCommand ref
11924 reference "tab:Example-booktabs-table"
11928 was created using the commands
11931 \begin_layout Standard
11941 \begin_layout Standard
11942 at the beginning of the in the second row and
11945 \begin_layout Standard
11950 cmidrule(l{10pt}){1-1}
11953 \begin_layout Standard
11957 \begin_layout Standard
11961 \begin_layout Standard
11962 \begin_inset VSpace bigskip
11968 \begin_layout Standard
11969 You might want to have overlapping
11975 s like in Table\InsetSpace ~
11977 \begin_inset LatexCommand ref
11978 reference "tab:Special-booktabs-table"
11983 This can be achieved with the ERT command
11986 \begin_layout Standard
11994 \begin_layout Standard
11995 The command that was used for the second row of Table\InsetSpace ~
11997 \begin_inset LatexCommand ref
11998 reference "tab:Special-booktabs-table"
12005 \begin_layout Standard
12019 \begin_layout Standard
12020 The command for the sixth row is
12023 \begin_layout Standard
12035 \begin_layout Standard
12036 \begin_inset VSpace bigskip
12042 \begin_layout Standard
12043 If you are anyway not satisfied with the border line spacing, you can use
12044 the following command to produce lines that span over all table columns
12049 \begin_layout Standard
12054 specialrule{width}{space above}{space below}
12057 \begin_layout Standard
12058 For more informations about these specialties, we refer to the manual of
12064 \begin_inset LatexCommand cite
12070 \begin_inset LatexCommand index
12071 name "LaTeX-packages ! booktabs"
12078 \begin_layout Standard
12079 \begin_inset Float table
12085 \begin_layout Standard
12086 \begin_inset Caption
12088 \begin_layout Standard
12089 \begin_inset LatexCommand label
12090 name "tab:Special-booktabs-table"
12094 Special booktabs-table
12102 \begin_layout Standard
12104 \begin_inset Tabular
12105 <lyxtabular version="3" rows="8" columns="4">
12106 <features booktabs="true">
12107 <column alignment="center" valignment="top" width="0">
12108 <column alignment="center" valignment="top" width="0">
12109 <column alignment="center" valignment="top" width="0">
12110 <column alignment="center" valignment="top" width="0">
12111 <row topline="true">
12112 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12115 \begin_layout Standard
12121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12124 \begin_layout Standard
12125 Medipix\InsetSpace \thinspace{}
12131 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
12134 \begin_layout Standard
12135 Medipix\InsetSpace \thinspace{}
12141 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12144 \begin_layout Standard
12152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12155 \begin_layout Standard
12159 \begin_layout Standard
12172 \begin_layout Standard
12185 \begin_layout Standard
12198 \begin_layout Standard
12207 Detector thickness [µm]
12212 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12215 \begin_layout Standard
12221 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12224 \begin_layout Standard
12230 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12233 \begin_layout Standard
12240 <row topline="true">
12241 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12244 \begin_layout Standard
12250 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12253 \begin_layout Standard
12259 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12262 \begin_layout Standard
12268 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12271 \begin_layout Standard
12278 <row topspace="default">
12279 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12282 \begin_layout Standard
12283 Spatial resolution [µm]
12288 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12291 \begin_layout Standard
12297 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12300 \begin_layout Standard
12306 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12309 \begin_layout Standard
12316 <row topspace="default">
12317 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12320 \begin_layout Standard
12322 \begin_inset Formula $f_{\mathrm{max}}$
12330 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12333 \begin_layout Standard
12339 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12342 \begin_layout Standard
12348 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12351 \begin_layout Standard
12358 <row topline="true">
12359 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12362 \begin_layout Standard
12366 \begin_layout Standard
12379 \begin_layout Standard
12388 LSF-spatial resolution
12393 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12396 \begin_layout Standard
12402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12405 \begin_layout Standard
12411 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12414 \begin_layout Standard
12422 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12425 \begin_layout Standard
12431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12434 \begin_layout Standard
12440 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12443 \begin_layout Standard
12449 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12452 \begin_layout Standard
12459 <row bottomline="true">
12460 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12463 \begin_layout Standard
12469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12472 \begin_layout Standard
12478 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12481 \begin_layout Standard
12487 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12490 \begin_layout Standard
12509 \begin_layout Section
12510 Vertical Table Alignment
12511 \begin_inset LatexCommand index
12512 name "Table ! Alignment"
12519 \begin_layout Standard
12520 To align tables vertically in a text line the table must be inside a box.
12521 The box can then be vertically aligned as described in section\InsetSpace ~
12523 \begin_inset LatexCommand ref
12524 reference "sec:Box-Dialog"
12531 \begin_layout Standard
12532 In the following example the tables are inside a minipage
12536 \begin_layout Standard
12537 Minipages are described in section\InsetSpace ~
12539 \begin_inset LatexCommand ref
12540 reference "sec:Minipages"
12549 box that has a width of 15\InsetSpace \thinspace{}
12553 \begin_layout Itemize
12555 \begin_inset Box Frameless
12564 height_special "totalheight"
12567 \begin_layout Standard
12568 \begin_inset Tabular
12569 <lyxtabular version="3" rows="3" columns="3">
12571 <column alignment="center" valignment="top" leftline="true" width="0">
12572 <column alignment="center" valignment="top" leftline="true" width="0">
12573 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12574 <row topline="true">
12575 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12578 \begin_layout Standard
12584 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12587 \begin_layout Standard
12593 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12596 \begin_layout Standard
12603 <row topline="true">
12604 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12607 \begin_layout Standard
12613 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12616 \begin_layout Standard
12622 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12625 \begin_layout Standard
12632 <row topline="true" bottomline="true">
12633 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12636 \begin_layout Standard
12642 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12645 \begin_layout Standard
12651 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12654 \begin_layout Standard
12674 \begin_layout Standard
12686 \begin_inset Box Frameless
12695 height_special "totalheight"
12698 \begin_layout Standard
12699 \begin_inset Tabular
12700 <lyxtabular version="3" rows="3" columns="3">
12702 <column alignment="center" valignment="top" leftline="true" width="0">
12703 <column alignment="center" valignment="top" leftline="true" width="0">
12704 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12705 <row topline="true">
12706 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12709 \begin_layout Standard
12715 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12718 \begin_layout Standard
12724 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12727 \begin_layout Standard
12734 <row topline="true">
12735 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12738 \begin_layout Standard
12744 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12747 \begin_layout Standard
12753 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12756 \begin_layout Standard
12763 <row topline="true" bottomline="true">
12764 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12767 \begin_layout Standard
12773 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12776 \begin_layout Standard
12782 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12785 \begin_layout Standard
12805 \begin_layout Standard
12815 \begin_layout Itemize
12817 \begin_inset Box Frameless
12826 height_special "totalheight"
12829 \begin_layout Standard
12830 \begin_inset Tabular
12831 <lyxtabular version="3" rows="3" columns="3">
12833 <column alignment="center" valignment="top" leftline="true" width="0">
12834 <column alignment="center" valignment="top" leftline="true" width="0">
12835 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12836 <row topline="true">
12837 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12840 \begin_layout Standard
12846 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12849 \begin_layout Standard
12855 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12858 \begin_layout Standard
12865 <row topline="true">
12866 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12869 \begin_layout Standard
12875 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12878 \begin_layout Standard
12884 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12887 \begin_layout Standard
12894 <row topline="true" bottomline="true">
12895 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12898 \begin_layout Standard
12904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12907 \begin_layout Standard
12913 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12916 \begin_layout Standard
12935 \begin_layout Itemize
12937 \begin_inset Box Frameless
12946 height_special "totalheight"
12949 \begin_layout Standard
12950 \begin_inset Tabular
12951 <lyxtabular version="3" rows="3" columns="3">
12953 <column alignment="center" valignment="top" leftline="true" width="0">
12954 <column alignment="center" valignment="top" leftline="true" width="0">
12955 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12956 <row topline="true">
12957 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12960 \begin_layout Standard
12966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12969 \begin_layout Standard
12975 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12978 \begin_layout Standard
12985 <row topline="true">
12986 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12989 \begin_layout Standard
12995 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12998 \begin_layout Standard
13004 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13007 \begin_layout Standard
13014 <row topline="true" bottomline="true">
13015 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13018 \begin_layout Standard
13024 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13027 \begin_layout Standard
13033 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13036 \begin_layout Standard
13056 \begin_layout Standard
13068 \begin_inset Box Frameless
13077 height_special "totalheight"
13080 \begin_layout Standard
13081 \begin_inset Tabular
13082 <lyxtabular version="3" rows="3" columns="3">
13084 <column alignment="center" valignment="top" leftline="true" width="0">
13085 <column alignment="center" valignment="top" leftline="true" width="0">
13086 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13087 <row topline="true">
13088 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13091 \begin_layout Standard
13097 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13100 \begin_layout Standard
13106 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13109 \begin_layout Standard
13116 <row topline="true">
13117 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13120 \begin_layout Standard
13126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13129 \begin_layout Standard
13135 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13138 \begin_layout Standard
13145 <row topline="true" bottomline="true">
13146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13149 \begin_layout Standard
13155 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13158 \begin_layout Standard
13164 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13167 \begin_layout Standard
13187 \begin_layout Standard
13197 \begin_layout Standard
13198 As you can see, the content of the first and last table row is not correctly
13199 aligned with the text line where the table is in.
13200 To get this alignment, the minipage box must be set into a raisebox
13204 \begin_layout Standard
13205 Raiseboxes are described in section\InsetSpace ~
13207 \begin_inset LatexCommand ref
13208 reference "sub:Vertical-Alignment"
13218 In the example above the second table in the first item is aligned using
13222 \begin_layout Standard
13232 \begin_layout Standard
13234 Behind the box the closing brace
13238 is inserted as ERT.
13239 For the second table in the last item the command
13242 \begin_layout Standard
13252 \begin_layout Standard
13256 \begin_layout Standard
13257 \begin_inset Note Greyedout
13260 \begin_layout Standard
13265 The alignment of the table row content to the surrounding text line is
13267 The needed factor of the
13273 command for this alignment depends on the document font, the font size,
13274 and the table line thickness.
13282 \begin_layout Section
13284 \begin_inset LatexCommand label
13285 name "sec:Colored-Tables"
13290 \begin_inset LatexCommand index
13291 name "Table ! Color"
13298 \begin_layout Subsection
13300 \begin_inset LatexCommand index
13301 name "Table Color ! for Cells"
13306 \begin_inset LatexCommand index
13307 name "Color ! for Table Cells"
13314 \begin_layout Standard
13315 \begin_inset Float table
13321 \begin_layout Standard
13322 \begin_inset Caption
13324 \begin_layout Standard
13325 \begin_inset LatexCommand label
13326 name "tab:Table-colored-without"
13330 Table colored without using the package
13335 \begin_inset OptArg
13338 \begin_layout Standard
13339 Table without colortbl
13352 \begin_layout Standard
13354 \begin_inset Tabular
13355 <lyxtabular version="3" rows="3" columns="3">
13357 <column alignment="center" valignment="top" leftline="true" width="0">
13358 <column alignment="center" valignment="top" leftline="true" width="0">
13359 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13360 <row topline="true">
13361 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13364 \begin_layout Standard
13372 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13375 \begin_layout Standard
13383 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13386 \begin_layout Standard
13395 <row topline="true">
13396 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13399 \begin_layout Standard
13407 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13410 \begin_layout Standard
13418 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13421 \begin_layout Standard
13430 <row topline="true" bottomline="true">
13431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13434 \begin_layout Standard
13442 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13445 \begin_layout Standard
13453 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13456 \begin_layout Standard
13477 \begin_layout Standard
13478 If you only need colored text, mark the cells and choose a color in the
13481 Edit\SpecialChar \menuseparator
13486 This was used to create Table\InsetSpace ~
13488 \begin_inset LatexCommand ref
13489 reference "tab:Table-colored-without"
13494 In any other case you have to use the LaTeX-package
13499 \begin_inset LatexCommand index
13500 name "LaTeX-packages ! colortbl"
13507 \begin_layout Standard
13508 To create colored tables,
13512 must be loaded in the preamble with the line
13515 \begin_layout Standard
13520 usepackage{colortbl}
13523 \begin_layout Standard
13524 The color of a column is adjusted with the command
13527 \begin_layout Standard
13532 columncolor{name of color}
13535 \begin_layout Standard
13541 More about the command
13545 is described in section\InsetSpace ~
13547 \begin_inset LatexCommand ref
13548 reference "sub:Multicolumn-Calculations"
13555 \begin_layout Standard
13556 The following color names are predefined:
13559 \begin_layout Standard
13593 \begin_layout Standard
13594 \begin_inset VSpace medskip
13600 \begin_layout Standard
13601 You can also define your own color with the command
13604 \begin_layout Standard
13609 def\SpecialChar \textcompwordmark{}
13610 inecolor{color name}{color model}{color values}
13613 \begin_layout Standard
13614 The color model can be
13617 \begin_layout Labeling
13618 \labelwidthstring 00.00.0000
13619 cmyk: cyan, magenta, yellow, black
13622 \begin_layout Labeling
13623 \labelwidthstring 00.00.0000
13624 rgb: red, green blue
13627 \begin_layout Labeling
13628 \labelwidthstring 00.00.0000
13632 \begin_layout Standard
13633 and the color values are comma separated numbers between 0 and 1 describing
13634 the factor for the corresponding color of the color model.
13637 \begin_layout Standard
13638 You can e.\InsetSpace \thinspace{}
13644 " in the preamble with
13647 \begin_layout Standard
13652 def\SpecialChar \textcompwordmark{}
13653 inecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
13656 \begin_layout Standard
13664 \begin_layout Standard
13669 def\SpecialChar \textcompwordmark{}
13670 inecolor{lightgray}{gray}{0.8}
13673 \begin_layout Standard
13674 \begin_inset VSpace medskip
13680 \begin_layout Standard
13681 Lines are colored with the command
13684 \begin_layout Standard
13689 rowcolor{name of color}
13692 \begin_layout Standard
13693 and cells are colored with the command
13696 \begin_layout Standard
13701 cellcolor{name of color}
13704 \begin_layout Standard
13705 Both commands are inserted at the beginning of a cell as ERT.
13708 \begin_layout Standard
13709 To color characters in the table, mark the cells and use the LyX menu
13711 Edit\SpecialChar \menuseparator
13716 If a cell contains ERT mark only the characters, otherwise the colored
13717 ERT will cause LaTeX-errors.
13720 \begin_layout Standard
13721 \begin_inset VSpace bigskip
13727 \begin_layout Standard
13728 To create Table\InsetSpace ~
13730 \begin_inset LatexCommand ref
13731 reference "tab:Table-colored-using"
13735 do the following: The color of the first column should be
13743 \begin_layout Standard
13748 columncolor{darkgreen}
13753 \begin_layout Standard
13754 as LaTeX-argument for this column.
13755 The first row should be blue, therefore the ERT command
13758 \begin_layout Standard
13766 \begin_layout Standard
13767 is inserted to the first cell of this row.
13768 Note that this overwrites the column color for the first cell.
13769 The last cell of the last row is colored magenta by inserting the ERT command
13772 \begin_layout Standard
13780 \begin_layout Standard
13781 The characters could now be colored using the menu
13783 Edit\SpecialChar \menuseparator
13790 \begin_layout Standard
13791 \begin_inset Float table
13797 \begin_layout Standard
13798 \begin_inset Caption
13800 \begin_layout Standard
13801 \begin_inset LatexCommand label
13802 name "tab:Table-colored-using"
13806 Table colored using the package
13811 \begin_inset OptArg
13814 \begin_layout Standard
13815 Table with colortbl
13828 \begin_layout Standard
13830 \begin_inset Tabular
13831 <lyxtabular version="3" rows="3" columns="3">
13833 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
13834 <column alignment="center" valignment="top" width="0">
13835 <column alignment="center" valignment="top" width="0">
13837 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13840 \begin_layout Standard
13844 \begin_layout Standard
13860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13863 \begin_layout Standard
13871 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13874 \begin_layout Standard
13884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13887 \begin_layout Standard
13895 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13898 \begin_layout Standard
13906 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13909 \begin_layout Standard
13919 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13922 \begin_layout Standard
13930 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13933 \begin_layout Standard
13941 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13944 \begin_layout Standard
13948 \begin_layout Standard
13977 \begin_layout Subsection
13979 \begin_inset LatexCommand index
13980 name "Table Color ! for Lines"
13985 \begin_inset LatexCommand index
13986 name "Color ! for Table Lines"
13993 \begin_layout Standard
13994 As described in section\InsetSpace ~
13996 \begin_inset LatexCommand ref
13997 reference "sub:Line-Thickness"
14001 , the line thickness for all lines in a table can be adjusted with the length
14009 It is set to 1.5\InsetSpace \thinspace{}
14010 pt for all tables of this section.
14014 \begin_layout Standard
14020 arrayrulewidth}{1.5pt}
14028 \begin_layout Standard
14029 To color vertical lines for example with green, create the following column
14030 format in the document preamble, according to the description in section\InsetSpace ~
14032 \begin_inset LatexCommand ref
14033 reference "sub:Customized-Format"
14040 \begin_layout Standard
14045 newcolumntype{W}{!{
14052 \begin_layout Standard
14053 For Table\InsetSpace ~
14055 \begin_inset LatexCommand ref
14056 reference "tab:Table-with-vertical-colored"
14063 \begin_layout Standard
14069 \begin_layout Standard
14070 was used for the last column and
14073 \begin_layout Standard
14079 \begin_layout Standard
14080 for the other columns.
14083 \begin_layout Standard
14084 If you want to have several colors, define more column formats.
14087 \begin_layout Standard
14088 \begin_inset Float table
14093 \begin_layout Standard
14094 \begin_inset Caption
14096 \begin_layout Standard
14097 \begin_inset LatexCommand label
14098 name "tab:Table-with-vertical-colored"
14102 Table with colored vertical lines
14110 \begin_layout Standard
14112 \begin_inset Tabular
14113 <lyxtabular version="3" rows="3" columns="3">
14115 <column alignment="center" valignment="top" width="0" special="Wc">
14116 <column alignment="center" valignment="top" width="0" special="Wc">
14117 <column alignment="center" valignment="top" width="0" special="WcW">
14118 <row topline="true">
14119 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14122 \begin_layout Standard
14128 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14131 \begin_layout Standard
14137 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14140 \begin_layout Standard
14147 <row topline="true">
14148 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14151 \begin_layout Standard
14157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14160 \begin_layout Standard
14166 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14169 \begin_layout Standard
14176 <row topline="true" bottomline="true">
14177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14180 \begin_layout Standard
14186 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14189 \begin_layout Standard
14195 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14198 \begin_layout Standard
14217 \begin_layout Standard
14218 \begin_inset VSpace bigskip
14221 To color horizontal lines for example with red, like in Table\InsetSpace ~
14223 \begin_inset LatexCommand ref
14224 reference "tab:Table-with-horizontal-colored"
14228 , insert these commands in ERT before the table or table float:
14231 \begin_layout Standard
14248 arrayrulecolor{red}
14252 arrayrulecolor{black}}
14255 \begin_layout Standard
14259 \begin_layout Standard
14270 \begin_layout Standard
14278 arrayrulecolor{red}
14282 arrayrulecolor{black}}
14288 \begin_inset Float table
14293 \begin_layout Standard
14294 \begin_inset Caption
14296 \begin_layout Standard
14297 \begin_inset LatexCommand label
14298 name "tab:Table-with-horizontal-colored"
14302 Table with colored horizontal lines
14310 \begin_layout Standard
14312 \begin_inset Tabular
14313 <lyxtabular version="3" rows="3" columns="3">
14315 <column alignment="center" valignment="top" leftline="true" width="0">
14316 <column alignment="center" valignment="top" leftline="true" width="0">
14317 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14318 <row topline="true">
14319 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14322 \begin_layout Standard
14328 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14331 \begin_layout Standard
14337 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14340 \begin_layout Standard
14347 <row topline="true">
14348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14351 \begin_layout Standard
14357 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14360 \begin_layout Standard
14366 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14369 \begin_layout Standard
14376 <row topline="true" bottomline="true">
14377 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14380 \begin_layout Standard
14386 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14389 \begin_layout Standard
14395 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14398 \begin_layout Standard
14417 \begin_layout Standard
14421 \begin_layout Standard
14433 \begin_layout Standard
14434 To return to the default line color black, insert this command in ERT behind
14435 the table or table float:
14438 \begin_layout Standard
14450 \begin_layout Standard
14453 \begin_inset LatexCommand ref
14454 reference "tab:Table-with-colored"
14458 is an example with colored vertical and horizontal lines.
14461 \begin_layout Standard
14462 \begin_inset Float table
14467 \begin_layout Standard
14468 \begin_inset Caption
14470 \begin_layout Standard
14471 \begin_inset LatexCommand label
14472 name "tab:Table-with-colored"
14476 Table with colored lines
14484 \begin_layout Standard
14486 \begin_inset Tabular
14487 <lyxtabular version="3" rows="3" columns="3">
14489 <column alignment="center" valignment="top" width="0" special="Wc">
14490 <column alignment="center" valignment="top" width="0" special="Wc">
14491 <column alignment="center" valignment="top" width="0" special="WcW">
14492 <row topline="true">
14493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14496 \begin_layout Standard
14502 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14505 \begin_layout Standard
14511 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14514 \begin_layout Standard
14521 <row topline="true">
14522 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14525 \begin_layout Standard
14531 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14534 \begin_layout Standard
14540 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14543 \begin_layout Standard
14550 <row topline="true" bottomline="true" topspace="default">
14551 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14554 \begin_layout Standard
14560 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14563 \begin_layout Standard
14569 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14572 \begin_layout Standard
14591 \begin_layout Standard
14595 \begin_layout Standard
14611 \begin_layout Standard
14615 \begin_layout Standard
14621 arrayrulewidth}{0.4pt}
14629 \begin_layout Section
14630 Table Customization
14631 \begin_inset LatexCommand index
14632 name "Table Customization"
14637 \begin_inset LatexCommand index
14638 name "Table ! Customization"
14645 \begin_layout Subsection
14647 \begin_inset LatexCommand label
14648 name "sub:Row-Spacing"
14653 \begin_inset LatexCommand index
14654 name "Table Customization ! Row Spacing"
14661 \begin_layout Standard
14662 You can add vertical space to table rows in the
14666 tab of the table dialog.
14667 You find there three possibilities:
14670 \begin_layout Description
14673 row will add space above the characters of the table row.
14674 If the table is a formal table
14678 \begin_layout Standard
14679 Formal tables are explained in section\InsetSpace ~
14681 \begin_inset LatexCommand ref
14682 reference "sec:Formal-Tables"
14691 LyX will insert as default 0.5\InsetSpace \thinspace{}
14693 For normal tables the inserted space will unfortunately destroy the vertical
14694 table lines as in the following table:
14695 \begin_inset VSpace defskip
14704 \begin_layout Standard
14716 \begin_inset Tabular
14717 <lyxtabular version="3" rows="3" columns="1">
14719 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14720 <row topline="true">
14721 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14724 \begin_layout Standard
14731 <row topline="true" topspace="3mm">
14732 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14735 \begin_layout Standard
14736 3\InsetSpace \thinspace{}
14737 mm space top of row
14743 <row topline="true" bottomline="true">
14744 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14747 \begin_layout Standard
14764 \begin_layout Standard
14774 \begin_inset VSpace defskip
14779 So inserting space to the top of row for normal tables is only useful when
14780 you don't have vertical lines.
14783 \begin_layout Description
14784 Bottom\InsetSpace ~
14786 row will add space below the characters of the table row.
14787 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
14789 normal tables the default size is 2\InsetSpace \thinspace{}
14793 \begin_layout Description
14794 Between\InsetSpace ~
14795 rows adds space between the current and the following row.
14796 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
14798 For normal tables the inserted space will unfortunately destroy the vertical
14799 table lines as in the following table:
14800 \begin_inset VSpace defskip
14809 \begin_layout Standard
14821 \begin_inset Tabular
14822 <lyxtabular version="3" rows="3" columns="1">
14824 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14825 <row topline="true">
14826 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14829 \begin_layout Standard
14836 <row topline="true" interlinespace="3mm">
14837 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14840 \begin_layout Standard
14841 \begin_inset Formula $\downarrow$
14844 3\InsetSpace \thinspace{}
14845 mm space between row
14846 \begin_inset Formula $\downarrow$
14855 <row topline="true" bottomline="true">
14856 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14859 \begin_layout Standard
14860 \begin_inset Formula $\uparrow$
14863 3\InsetSpace \thinspace{}
14864 mm space between row
14865 \begin_inset Formula $\uparrow$
14884 \begin_layout Standard
14894 \begin_inset VSpace defskip
14899 So inserting space between rows for normal tables is only useful when you
14900 don't have vertical lines.
14903 \begin_layout Standard
14904 When you want to add extra height to all cells of all tables, you can do
14905 this with the following preamble line:
14908 \begin_layout Standard
14915 extrarowheight}{height}
14918 \begin_layout Standard
14919 But this has the disadvantage that the cell texts are no longer exactly
14920 vertically centered.
14923 \begin_layout Subsection
14924 Special Cell Alignment
14925 \begin_inset LatexCommand index
14926 name "Table Customization ! Special Cell Alignment"
14933 \begin_layout Standard
14934 Sometimes it looks better when the cell entries of a column are aligned
14935 with a special character, e.\InsetSpace \thinspace{}
14937 with the decimal separator as in Table\InsetSpace ~
14939 \begin_inset LatexCommand ref
14940 reference "tab:Table-cells-of"
14947 \begin_layout Standard
14948 \begin_inset Float table
14954 \begin_layout Standard
14955 \begin_inset Caption
14957 \begin_layout Standard
14958 \begin_inset LatexCommand label
14959 name "tab:Table-cells-of"
14963 Table cells of a column aligned with the decimal separator.
14971 \begin_layout Standard
14973 \begin_inset Tabular
14974 <lyxtabular version="3" rows="4" columns="2">
14976 <column alignment="right" valignment="top" width="0">
14977 <column alignment="left" valignment="top" width="0" special="@{}l">
14978 <row bottomline="true">
14979 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
14982 \begin_layout Standard
14988 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14991 \begin_layout Standard
14999 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15002 \begin_layout Standard
15008 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15011 \begin_layout Standard
15019 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15022 \begin_layout Standard
15028 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15031 \begin_layout Standard
15039 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15042 \begin_layout Standard
15048 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15051 \begin_layout Standard
15070 \begin_layout Standard
15071 This table was created with a 4×2 table.
15072 The heading is a centered multicolumn.
15073 The first column is right-aligned and contains the digits before the decimal
15074 point and the decimal point.
15075 The second column is left aligned and contains the digits after the decimal
15077 To omit the space that is normally between two table columns, use the following
15078 LaTeX-argument for the second column:
15081 \begin_layout Standard
15087 \begin_layout Standard
15090 \begin_inset LatexCommand ref
15091 reference "tab:Several-table-cell"
15095 shows some example alignments.
15096 For the alignment with the relation sign, you must add the second smallest
15097 math-space at the beginning of the last column to get the correct space
15098 surrounding the relation sign.
15101 \begin_layout Standard
15102 \begin_inset Float table
15107 \begin_layout Standard
15108 \begin_inset Caption
15110 \begin_layout Standard
15111 \begin_inset LatexCommand label
15112 name "tab:Several-table-cell"
15116 Several table cell alignments.
15124 \begin_layout Standard
15126 \begin_inset Tabular
15127 <lyxtabular version="3" rows="4" columns="6">
15129 <column alignment="right" valignment="top" width="0">
15130 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15131 <column alignment="right" valignment="top" width="0">
15132 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15133 <column alignment="right" valignment="top" width="0">
15134 <column alignment="left" valignment="top" width="0" special="@{}l">
15135 <row bottomline="true">
15136 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15139 \begin_layout Standard
15145 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15148 \begin_layout Standard
15154 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15157 \begin_layout Standard
15163 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15166 \begin_layout Standard
15172 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15175 \begin_layout Standard
15181 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15184 \begin_layout Standard
15192 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15195 \begin_layout Standard
15201 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15204 \begin_layout Standard
15205 24\InsetSpace \thinspace{}
15211 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15214 \begin_layout Standard
15215 \begin_inset Formula $10\cdot$
15223 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15226 \begin_layout Standard
15227 \begin_inset Formula $10^{\mbox{-}17}$
15235 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15238 \begin_layout Standard
15239 \begin_inset Formula $\Gamma(t)\propto$
15247 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15250 \begin_layout Standard
15251 \begin_inset Formula $\:\Upsilon(t)$
15261 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15264 \begin_layout Standard
15270 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15273 \begin_layout Standard
15274 768\InsetSpace \thinspace{}
15280 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15283 \begin_layout Standard
15284 \begin_inset Formula $5.78\cdot$
15292 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15295 \begin_layout Standard
15296 \begin_inset Formula $10^{7}$
15304 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15307 \begin_layout Standard
15308 \begin_inset Formula $A\ne$
15316 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15319 \begin_layout Standard
15320 \begin_inset Formula $\: B_{\mathrm{red}}$
15330 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15333 \begin_layout Standard
15339 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15342 \begin_layout Standard
15343 6\InsetSpace \thinspace{}
15349 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15352 \begin_layout Standard
15354 \begin_inset Formula $33.5\cdot$
15362 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15365 \begin_layout Standard
15366 \begin_inset Formula $10^{4}$
15374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15377 \begin_layout Standard
15378 \begin_inset Formula $\sin(\alpha)\ge$
15386 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15389 \begin_layout Standard
15390 \begin_inset Formula $\:\sin(\beta)$
15411 \begin_layout Standard
15412 \begin_inset VSpace bigskip
15415 There is also the LaTeX-package
15420 \begin_inset LatexCommand index
15421 name "LaTeX-packages ! dcolumn"
15425 that provides table cell alignments.
15426 But this unfortunately treats the cell entries as math and doesn't allow
15427 formulas in table cells: The first column of Table\InsetSpace ~
15429 \begin_inset LatexCommand ref
15430 reference "tab:Several-table-cell"
15438 like the first column in Table\InsetSpace ~
15440 \begin_inset LatexCommand ref
15441 reference "tab:Alignments-when"
15445 and only with some tricks like the expected.
15446 The alignment of the second and third column of Table\InsetSpace ~
15448 \begin_inset LatexCommand ref
15449 reference "tab:Several-table-cell"
15453 is not possible with
15460 \begin_layout Standard
15461 \begin_inset Float table
15467 \begin_layout Standard
15468 \begin_inset Caption
15470 \begin_layout Standard
15471 \begin_inset LatexCommand label
15472 name "tab:Alignments-when"
15476 Alignments when LaTeX-package dcolumn is used.
15477 For all column alignments tricks have to be used to get the output.
15485 \begin_layout Standard
15487 \begin_inset Tabular
15488 <lyxtabular version="3" rows="4" columns="3">
15490 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{-1}">
15491 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{4.9}">
15492 <column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
15493 <row bottomline="true">
15494 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15497 \begin_layout Standard
15503 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15506 \begin_layout Standard
15512 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15515 \begin_layout Standard
15523 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15526 \begin_layout Standard
15527 12x24\InsetSpace \thinspace{}
15533 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15536 \begin_layout Standard
15537 12x24\InsetSpace \thinspace{}
15539 \begin_inset Formula $\mbox{bottles}$
15547 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15550 \begin_layout Standard
15555 \begin_layout Standard
15565 \begin_inset Formula $\mbox{bottles}$
15575 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15578 \begin_layout Standard
15579 1024x768\InsetSpace \thinspace{}
15585 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15588 \begin_layout Standard
15589 1024x768\InsetSpace \thinspace{}
15591 \begin_inset Formula $\mbox{Pixels}$
15599 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15602 \begin_layout Standard
15607 \begin_layout Standard
15617 \begin_inset Formula $\mbox{Pixels}$
15627 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15630 \begin_layout Standard
15631 32x6\InsetSpace \thinspace{}
15637 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15640 \begin_layout Standard
15641 32x6\InsetSpace \thinspace{}
15643 \begin_inset Formula $\mbox{cm}$
15651 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15654 \begin_layout Standard
15659 \begin_layout Standard
15669 \begin_inset Formula $\mbox{cm}$
15690 \begin_layout Subsection
15691 Customized Cell/Column Format
15692 \begin_inset LatexCommand label
15693 name "sub:Customized-Format"
15698 \begin_inset LatexCommand index
15699 name "Table Customization ! Cell/Column Format"
15706 \begin_layout Standard
15707 Calculating the needed width for spanned columns like in section\InsetSpace ~
15709 \begin_inset LatexCommand ref
15710 reference "sub:Multicolumn-Calculations"
15714 is very annoying if you have several tables with multicolumn cells.
15715 To make life easier, you can define a cell/column format in the preamble,
15716 so that it can be used in all tables of the document.
15717 The format is defined with the command
15720 \begin_layout Standard
15725 newcolumntype{name of format}[number of arguments]{commands}
15728 \begin_layout Standard
15729 The format name may only consist of one letter.
15754 are predefined and cannot be used.
15755 But all letters are allowed as capitals.
15758 \begin_layout Standard
15759 \begin_inset VSpace medskip
15765 \begin_layout Standard
15766 For vertically and horizontally centered multicolumn cells with a fixed
15767 width you can define the cell format
15770 \begin_layout Standard
15775 newcolumntype{M}[1]{>{
15782 \begin_layout Standard
15789 avoids the problem of hyphenating the first word, as described in section\InsetSpace ~
15791 \begin_inset LatexCommand ref
15792 reference "sub:Multiple-Lines-in"
15797 Now you can simply enter
15800 \begin_layout Standard
15806 \begin_layout Standard
15807 as LaTeX-argument in the table dialog to create a multicolumn.
15810 \begin_layout Standard
15811 \begin_inset VSpace bigskip
15817 \begin_layout Standard
15818 For cells spanned by a multicolumn cell, you can define the format
15821 \begin_layout Standard
15826 newcolumntype{S}[2]{>{
15836 \begin_layout Standard
15847 newcolumntype{S}[2]
15851 \begin_layout Standard
15862 arrayrulewidth)*(1-#2))/#2}}
15865 \begin_layout Standard
15866 This format uses equation
15867 \begin_inset LatexCommand eqref
15872 to calculate the needed width so that each spanned cell has the same width.
15875 \begin_layout Standard
15879 \begin_layout Standard
15882 S{width of multicolumn cell}{number of spanned columns}
15885 \begin_layout Standard
15886 as LaTeX-argument of the column.
15889 \begin_layout Standard
15890 \begin_inset VSpace bigskip
15896 \begin_layout Standard
15897 For colored columns, you can define
15900 \begin_layout Standard
15905 newcolumntype{K}[1]{>{
15912 \begin_layout Standard
15914 \begin_inset Quotes eld
15918 \begin_inset Quotes erd
15921 at the end creates a column with a flexible width whose text is horizontally
15926 \begin_layout Standard
15932 \begin_layout Standard
15936 \begin_layout Standard
15937 \begin_inset VSpace bigskip
15943 \begin_layout Standard
15944 To create Table\InsetSpace ~
15946 \begin_inset LatexCommand ref
15947 reference "tab:Table-using-user-defined"
15951 use the LaTeX-arguments
15954 \begin_layout Standard
15960 \begin_layout Standard
15961 for the first column and the multicolumn,
15964 \begin_layout Standard
15970 \begin_layout Standard
15971 for the the last column, and
15974 \begin_layout Standard
15980 \begin_layout Standard
15981 for the cells in the second column.
15984 \begin_layout Standard
15985 \begin_inset Float table
15991 \begin_layout Standard
15992 \begin_inset Caption
15994 \begin_layout Standard
15995 \begin_inset LatexCommand label
15996 name "tab:Table-using-user-defined"
16000 Table using user-defined table formats
16008 \begin_layout Standard
16010 \begin_inset Tabular
16011 <lyxtabular version="3" rows="3" columns="4">
16013 <column alignment="center" valignment="middle" leftline="true" width="2.5cm" special="M{2.5cm}">
16014 <column alignment="center" valignment="middle" leftline="true" width="0" special="S{2.5cm}{2}">
16015 <column alignment="center" valignment="middle" leftline="true" width="0">
16016 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0" special="K{red}">
16017 <row topline="true">
16018 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16021 \begin_layout Standard
16022 verylongtablecellword
16027 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none" special="M{2.5cm}">
16030 \begin_layout Standard
16031 multiple lines multicolumn
16036 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16039 \begin_layout Standard
16045 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16048 \begin_layout Standard
16055 <row topline="true">
16056 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16059 \begin_layout Standard
16065 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16068 \begin_layout Standard
16074 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16077 \begin_layout Standard
16083 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16086 \begin_layout Standard
16093 <row topline="true" bottomline="true">
16094 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16097 \begin_layout Standard
16103 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16106 \begin_layout Standard
16112 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16115 \begin_layout Standard
16121 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16124 \begin_layout Standard
16143 \begin_layout Subsection
16145 \begin_inset LatexCommand label
16146 name "sub:Line-Thickness"
16151 \begin_inset LatexCommand index
16152 name "Table Customization ! Line Thickness"
16159 \begin_layout Standard
16160 The line thickness for all lines in a table can be adjusted with the length
16168 To set for example a line thickness of 1.5\InsetSpace \thinspace{}
16169 pt, like in Table\InsetSpace ~
16171 \begin_inset LatexCommand ref
16172 reference "tab:Table-with-1.5"
16176 , insert the command
16179 \begin_layout Standard
16186 arrayrulewidth}{1.5pt}
16189 \begin_layout Standard
16190 in ERT before the table or table float.
16191 The changed thickness is valid for all following tables.
16192 To use the default value again, set
16198 to 0.4\InsetSpace \thinspace{}
16199 pt in ERT behind the table or table float.
16202 \begin_layout Standard
16206 \begin_layout Standard
16212 arrayrulewidth}{1.5pt}
16218 \begin_inset Float table
16223 \begin_layout Standard
16224 \begin_inset Caption
16226 \begin_layout Standard
16227 \begin_inset LatexCommand label
16228 name "tab:Table-with-1.5"
16232 Table with 1.5\InsetSpace \thinspace{}
16241 \begin_layout Standard
16243 \begin_inset Tabular
16244 <lyxtabular version="3" rows="3" columns="3">
16246 <column alignment="center" valignment="top" leftline="true" width="0">
16247 <column alignment="center" valignment="top" leftline="true" width="0">
16248 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16249 <row topline="true">
16250 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16253 \begin_layout Standard
16259 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16262 \begin_layout Standard
16268 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16271 \begin_layout Standard
16278 <row topline="true">
16279 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16282 \begin_layout Standard
16288 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16291 \begin_layout Standard
16297 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16300 \begin_layout Standard
16307 <row topline="true" bottomline="true">
16308 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16311 \begin_layout Standard
16317 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16320 \begin_layout Standard
16326 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16329 \begin_layout Standard
16349 \begin_layout Standard
16355 arrayrulewidth}{0.4pt}
16363 \begin_layout Standard
16364 \begin_inset VSpace bigskip
16367 To set the line thickness to 1.5\InsetSpace \thinspace{}
16368 pt only for horizontal lines, like in Table\InsetSpace ~
16370 \begin_inset LatexCommand ref
16371 reference "tab:Table-with-horizontal"
16375 , insert these commands in ERT before the table or table float:
16378 \begin_layout Standard
16401 arrayrulewidth 1.5pt}
16411 arrayrulewidth 0.4pt}}
16414 \begin_layout Standard
16415 To return to the default line thickness, insert this command in ERT behind
16416 the table or table float:
16419 \begin_layout Standard
16431 \begin_layout Standard
16435 \begin_layout Standard
16446 \begin_layout Standard
16455 \begin_layout Standard
16463 arrayrulewidth 1.5pt}
16466 \begin_layout Standard
16476 arrayrulewidth 0.4pt}}
16482 \begin_inset Float table
16487 \begin_layout Standard
16488 \begin_inset Caption
16490 \begin_layout Standard
16491 \begin_inset LatexCommand label
16492 name "tab:Table-with-horizontal"
16496 Table with 1.5\InsetSpace \thinspace{}
16497 pt thick horizontal lines
16505 \begin_layout Standard
16507 \begin_inset Tabular
16508 <lyxtabular version="3" rows="3" columns="3">
16510 <column alignment="center" valignment="top" leftline="true" width="0">
16511 <column alignment="center" valignment="top" leftline="true" width="0">
16512 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16513 <row topline="true">
16514 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16517 \begin_layout Standard
16523 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16526 \begin_layout Standard
16532 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16535 \begin_layout Standard
16542 <row topline="true">
16543 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16546 \begin_layout Standard
16552 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16555 \begin_layout Standard
16561 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16564 \begin_layout Standard
16571 <row topline="true" bottomline="true">
16572 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16575 \begin_layout Standard
16581 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16584 \begin_layout Standard
16590 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16593 \begin_layout Standard
16613 \begin_layout Standard
16629 \begin_layout Standard
16630 \begin_inset VSpace bigskip
16633 To set the line thickness to 1.5\InsetSpace \thinspace{}
16634 pt only for vertical lines, create the following
16635 column format in the document preamble, according to the description in
16636 section\InsetSpace ~
16638 \begin_inset LatexCommand ref
16639 reference "sub:Customized-Format"
16646 \begin_layout Standard
16651 newcolumntype{V}{!{
16653 vrule width 1.5pt}}
16656 \begin_layout Standard
16657 For Table\InsetSpace ~
16659 \begin_inset LatexCommand ref
16660 reference "tab:Table-with-vertical"
16667 \begin_layout Standard
16673 \begin_layout Standard
16674 was used for the last column and
16677 \begin_layout Standard
16683 \begin_layout Standard
16684 for the other columns.
16687 \begin_layout Standard
16688 \begin_inset Float table
16693 \begin_layout Standard
16694 \begin_inset Caption
16696 \begin_layout Standard
16697 \begin_inset LatexCommand label
16698 name "tab:Table-with-vertical"
16702 Table with 1.5\InsetSpace \thinspace{}
16703 pt thick vertical lines
16711 \begin_layout Standard
16713 \begin_inset Tabular
16714 <lyxtabular version="3" rows="3" columns="3">
16716 <column alignment="center" valignment="top" width="0" special="Vc">
16717 <column alignment="center" valignment="top" width="0" special="Vc">
16718 <column alignment="center" valignment="top" width="0" special="VcV">
16719 <row topline="true">
16720 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16723 \begin_layout Standard
16729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16732 \begin_layout Standard
16738 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16741 \begin_layout Standard
16748 <row topline="true">
16749 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16752 \begin_layout Standard
16758 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16761 \begin_layout Standard
16767 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16770 \begin_layout Standard
16777 <row topline="true" bottomline="true">
16778 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16781 \begin_layout Standard
16787 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16790 \begin_layout Standard
16796 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16799 \begin_layout Standard
16818 \begin_layout Subsection
16820 \begin_inset LatexCommand index
16821 name "Table Customization ! Dashed Lines"
16828 \begin_layout Standard
16832 \begin_layout Standard
16842 \begin_inset Note Note
16845 \begin_layout Standard
16846 The following section will only be displayed when you have the LaTeX-package
16859 \begin_layout Standard
16860 \begin_inset Float table
16866 \begin_layout Standard
16867 \begin_inset Caption
16869 \begin_layout Standard
16870 \begin_inset LatexCommand label
16871 name "tab:Table-with-dashed"
16875 Table with dashed lines
16883 \begin_layout Standard
16885 \begin_inset Tabular
16886 <lyxtabular version="3" rows="5" columns="5">
16888 <column alignment="center" valignment="top" leftline="true" width="0">
16889 <column alignment="center" valignment="top" leftline="true" width="0">
16890 <column alignment="center" valignment="top" width="0" special=":c">
16891 <column alignment="center" valignment="top" leftline="true" width="0">
16892 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16893 <row topline="true" bottomline="true">
16894 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16897 \begin_layout Standard
16903 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16906 \begin_layout Standard
16912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16915 \begin_layout Standard
16921 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16924 \begin_layout Standard
16930 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16933 \begin_layout Standard
16940 <row topline="true">
16941 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16944 \begin_layout Standard
16950 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16953 \begin_layout Standard
16959 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16962 \begin_layout Standard
16968 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16971 \begin_layout Standard
16977 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16980 \begin_layout Standard
16988 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16991 \begin_layout Standard
16995 \begin_layout Standard
17009 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17012 \begin_layout Standard
17018 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17021 \begin_layout Standard
17027 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17030 \begin_layout Standard
17036 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17039 \begin_layout Standard
17046 <row topline="true">
17047 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17050 \begin_layout Standard
17054 \begin_layout Standard
17068 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17071 \begin_layout Standard
17077 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="c:">
17080 \begin_layout Standard
17086 <cell multicolumn="1" alignment="center" valignment="top" rightline="true" usebox="none" special="c:">
17089 \begin_layout Standard
17095 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17098 \begin_layout Standard
17105 <row topline="true" bottomline="true">
17106 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17109 \begin_layout Standard
17115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17118 \begin_layout Standard
17124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17127 \begin_layout Standard
17133 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17136 \begin_layout Standard
17142 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17145 \begin_layout Standard
17164 \begin_layout Standard
17165 LyX doesn't natively support dashed lines, so you have to use ERT.
17166 As prerequisite the LaTeX-package
17171 \begin_inset LatexCommand index
17172 name "LaTeX-packages ! arydshln"
17176 must be loaded in the document preamble with the command
17179 \begin_layout Standard
17184 usepackage{arydshln}
17187 \begin_layout Standard
17188 To make a vertical line dashed, enter the colon
17189 \begin_inset Quotes eld
17193 \begin_inset Quotes erd
17196 together with the character for the horizontal alignment as LaTeX-argument
17197 in the table cell dialog.
17200 \begin_layout Standard
17201 For a horizontal dashed line add the command
17204 \begin_layout Standard
17212 \begin_layout Standard
17213 in ERT as first element of the first cell in the table row.
17216 \begin_layout Standard
17217 For dashed multicolumn lines use the command
17220 \begin_layout Standard
17225 cdashline{line number
17230 \begin_layout Standard
17231 in ERT as first element of the first cell in the table row.
17232 If you have for example a multicolumn spanning over columns 2 to 4 and
17233 you want to have a dashed line above, add the command
17236 \begin_layout Standard
17244 \begin_layout Standard
17245 as first element of the first cell in the row of the multicolumn.
17248 \begin_layout Standard
17249 \begin_inset VSpace bigskip
17255 \begin_layout Standard
17258 \begin_inset LatexCommand ref
17259 reference "tab:Table-with-dashed"
17264 \begin_inset Quotes eld
17272 \begin_inset Quotes erd
17275 as LaTeX-argument of the third column.
17282 was inserted to the first cell of the third row and the the ERT command
17291 was inserted to the first cell of the fourth row.
17294 \begin_layout Standard
17295 \begin_inset Note Greyedout
17298 \begin_layout Standard
17303 The used LaTeX-package
17307 is apparently not compatible with the LaTeX-package
17312 \begin_inset LatexCommand index
17313 name "LaTeX-packages ! colortbl"
17317 that is used for colored tables in section\InsetSpace ~
17319 \begin_inset LatexCommand ref
17320 reference "sec:Colored-Tables"
17325 That means colored tables cannot have dashed lines.
17333 \begin_layout Standard
17337 \begin_layout Standard
17347 \begin_inset Note Note
17350 \begin_layout Standard
17351 The following will be displayed when the LaTeX-package
17363 \begin_layout Standard
17364 You need to install the package
17368 to see the contents of this section in the output.
17371 \begin_layout Standard
17375 \begin_layout Standard
17387 \begin_layout Chapter
17389 \begin_inset LatexCommand index
17395 \begin_inset LatexCommand label
17403 \begin_layout Section
17405 \begin_inset LatexCommand label
17406 name "sec:FloatIntroduction"
17411 \begin_inset LatexCommand index
17412 name "Floats ! Introduction"
17419 \begin_layout Standard
17420 A float is a block of text associated with some sort of label, which doesn't
17421 have a fixed location.
17423 \begin_inset Quotes eld
17427 \begin_inset Quotes erd
17430 forward or backward a page or two, to wherever it fits best.
17437 Margin\InsetSpace ~
17440 are also floats, because they can float to the next page when there are
17441 too many notes at the page.
17444 \begin_layout Standard
17445 Floats allow a high quality layout.
17446 Images and tables can evenly be spread to the pages to avoid white space
17447 and pages without text.
17448 As the floating often destroys the context between the text and the image/table
17449 , every float can be referenced in the text.
17450 Floats are therefore numbered.
17451 Referencing is described in section\InsetSpace ~
17453 \begin_inset LatexCommand ref
17454 reference "sec:Referencing-Floats"
17461 \begin_layout Standard
17462 To insert a float, use the menu
17464 Insert\SpecialChar \menuseparator
17472 inset, a box with a label.
17473 The label will automatically be translated to the document language in
17475 Behind the label you can insert the caption text.
17476 The image or table is inserted above or below the caption in a separate
17477 paragraph within the float.
17478 More about the caption placement is described in section\InsetSpace ~
17480 \begin_inset LatexCommand ref
17481 reference "sec:Caption-Placement"
17486 To keep your LyX-document readable, you can open and close the float box
17487 by left-clicking on the box label.
17488 A closed float box looks like this:
17489 \begin_inset Graphics
17490 filename clipart/floatQt4.png
17495 -- a gray button with a red label.
17498 \begin_layout Standard
17499 It is recommended to insert floats as a separate paragraph to avoid possible
17500 LaTeX-errors that can occur when the surrounding text is specially formatted.
17503 \begin_layout Standard
17504 Existing figures or tables can be put into a float by marking them and then
17505 pressing the corresponding toolbar button for a new float.
17508 \begin_layout Section
17512 \begin_layout Standard
17513 Besides figure and table floats that are described in section\InsetSpace ~
17515 \begin_inset LatexCommand ref
17516 reference "sec:Figure-Floats"
17521 \begin_inset LatexCommand ref
17522 reference "sec:Table-Floats"
17526 , respectively, LyX offers the float types
17539 \begin_layout Subsection
17541 \begin_inset LatexCommand index
17542 name "Floats ! Algorithm Floats"
17549 \begin_layout Standard
17550 \begin_inset Float algorithm
17556 \begin_layout Standard
17557 \begin_inset Caption
17559 \begin_layout Standard
17560 \begin_inset LatexCommand label
17561 name "alg:Example-Algorithm-float"
17565 Example Algorithm float
17573 \begin_layout LyX-Code
17576 Sum:= Sum + A(I); /*senseless comment*/
17579 \begin_inset VSpace -4mm
17590 \begin_layout Standard
17591 This float type is inserted with the menu
17593 Insert\SpecialChar \menuseparator
17594 Floats\SpecialChar \menuseparator
17598 It is used for program codes and descriptions of algorithms.
17599 A possible environment for algorithms is the
17603 , described in LyX's
17608 Algorithm\InsetSpace ~
17610 \begin_inset LatexCommand ref
17611 reference "alg:Example-Algorithm-float"
17615 is an example of an algorithm float where -4\InsetSpace \thinspace{}
17616 mm vertical space was added
17617 at the end of the float to have the bottom rule exactly below the last
17621 \begin_layout Standard
17622 The float label is not automatically translated into the document language.
17623 If your document is not in English, you have to do this manually by adding
17624 the following line to the document preamble
17629 \begin_layout Standard
17634 floatname{algorithm}{your\InsetSpace ~
17638 \begin_layout Standard
17645 \begin_inset Quotes eld
17653 \begin_inset Quotes erd
17659 \begin_layout Description
17664 When the LaTeX-package
17669 \begin_inset LatexCommand index
17670 name "LaTeX-packages ! hyperref"
17674 is used to link cross-references to floats in the PDF-output, it must be
17675 loaded in the document preamble before the definition of floats to be able
17676 to reference floats.
17677 As LyX sets the float definition for algorithm floats automatically before
17678 the user editable part of the document preamble, you need to insert the
17679 following preamble lines
17683 the loading command of
17690 \begin_inset VSpace defskip
17697 newfloat{Xalgorithm}{tbp}{loa}
17701 floatname{Xalgorithm}{your\InsetSpace ~
17714 renewenvironment{algorithm}[1][tbp]
17720 \begin_layout Standard
17731 begin{Xalgorithm}[#1]}{
17734 \begin_inset VSpace defskip
17747 \begin_inset Quotes eld
17755 \begin_inset Quotes erd
17761 \begin_layout Standard
17762 Algorithm floats are not by default numbered in the scheme
17763 \begin_inset Quotes eld
17767 \begin_inset Quotes erd
17770 like it is the case for table and figure floats in many document-classes.
17771 To number algorithm floats in the same scheme, add this command to your
17775 \begin_layout Standard
17780 numberwithin{algorithm}{chapter}
17783 \begin_layout Standard
17784 If you use the LaTeX-package
17788 , add this line instead
17796 (the commands from above) to the preamble:
17799 \begin_layout Standard
17804 numberwithin{Xalgorithm}{chapter}
17807 \begin_layout Standard
17808 To be able to use the command
17819 in the document settings the option
17829 \begin_layout Subsection
17831 \begin_inset LatexCommand index
17832 name "Floats ! Text Wrap Floats"
17837 \begin_inset LatexCommand label
17838 name "sub:floatflt-wrap-float"
17845 \begin_layout Standard
17846 This float type is used if you want to
17847 \begin_inset Quotes eld
17851 \begin_inset Quotes erd
17854 text around a figure so that it only occupies some fraction of the column
17856 It can be inserted using the menu
17857 \begin_inset Wrap figure
17862 \begin_layout Standard
17863 \begin_inset Graphics
17864 filename clipart/mobius.eps
17867 rotateOrigin center
17874 \begin_layout Standard
17875 \begin_inset Caption
17877 \begin_layout Standard
17878 \begin_inset LatexCommand label
17879 name "fig:This-is-a"
17883 This is a wrapped figure, and this is the brilliant caption that describes
17885 \begin_inset VSpace medskip
17900 Insert\SpecialChar \menuseparator
17901 Floats\SpecialChar \menuseparator
17906 if the LaTeX-package
17911 \begin_inset LatexCommand index
17912 name "LaTeX-packages ! floatflt"
17920 \begin_layout Standard
17921 Installing a LaTeX-package is explained it in the
17931 The width and placement of the float is adjusted by right-clicking on the
17933 Figure\InsetSpace ~
17935 \begin_inset LatexCommand ref
17936 reference "fig:This-is-a"
17940 is an example text wrap float with a width of 40
17941 \begin_inset Formula $\,$
17948 \begin_layout Standard
17949 Available units are explained in
17950 \begin_inset LatexCommand ref
17951 reference "cha:Units-available-in"
17960 Some space was added under the caption to separate it better from the surroundi
17964 \begin_layout Standard
17969 also supports table wrap floats, but they are not yet supported by LyX.
17970 If you need this, read the documentation of
17975 \begin_inset LatexCommand cite
17983 \begin_layout Standard
17984 \begin_inset Note Greyedout
17987 \begin_layout Standard
17993 wrap float floats are fragile! E.\InsetSpace \thinspace{}
17995 having a figure too close to the bottom
17996 of the page can mess things up in the way that the float doesn't appear
17997 in the output or that it is placed over some other text.
18001 \begin_layout Standard
18002 The better solution is to use the LaTeX-package
18004 wrapf\SpecialChar \textcompwordmark{}
18008 \begin_inset LatexCommand index
18009 name "LaTeX-packages ! wrapfig\\vspace{4mm}"
18015 floatf\SpecialChar \textcompwordmark{}
18018 , but it is currently not supported by LyX.
18031 \begin_layout Standard
18035 \begin_layout Itemize
18036 Wrap floats should not be placed in paragraphs that run over a page break.
18037 That means that wrap floats should better be inserted to the exact place
18038 when the document is nearly finished and you are able to estimate where
18039 page breaks will appear.
18042 \begin_layout Itemize
18043 Wrap floats should either be placed in an own paragraph before the paragraph
18044 where they should wrap into or within a paragraph.
18047 \begin_layout Itemize
18048 Wrap floats in consecutive paragraphs may cause troubles, so assure that
18049 there is a text paragraph between them as separator.
18052 \begin_layout Itemize
18053 Wrap floats are not allowed in section headings or tables.
18056 \begin_layout Section
18058 \begin_inset LatexCommand label
18059 name "sec:Float-Numbering"
18064 \begin_inset LatexCommand index
18065 name "Floats ! Numbering"
18072 \begin_layout Standard
18073 Floats are usually numbered either independent from the sections the floats
18074 are in, or in the scheme
18075 \begin_inset Quotes eld
18079 \begin_inset Quotes erd
18083 \begin_inset Quotes eld
18087 \begin_inset Quotes erd
18091 This depends on the used document class.
18094 \begin_layout Standard
18095 To change the section independent numbering, you can use this command in
18096 the document preamble:
18099 \begin_layout Standard
18111 \begin_layout Standard
18118 is the command that prints the table number, for figure floats, the command
18132 prints in the command above the table number as small roman number.
18135 \begin_layout Standard
18136 To change the numbering scheme for example to
18137 \begin_inset Quotes eld
18141 \begin_inset Quotes erd
18144 , use this command in the preamble:
18147 \begin_layout Standard
18152 numberwithin{table}{subsection}
18155 \begin_layout Standard
18156 To be able to use the command
18167 in the document settings the option
18177 \begin_layout Standard
18178 Please also have a look at section\InsetSpace ~
18180 \begin_inset LatexCommand ref
18181 reference "sub:Footnote-Numbering"
18185 for the details and important notes about the numbering commands.
18188 \begin_layout Section
18190 \begin_inset LatexCommand label
18191 name "sec:Referencing-Floats"
18196 \begin_inset LatexCommand index
18197 name "Floats ! References"
18202 \begin_inset LatexCommand index
18210 \begin_layout Standard
18211 To reference a float, insert a label into its caption using the menu
18213 Insert\SpecialChar \menuseparator
18216 or the toolbar button
18217 \begin_inset Graphics
18218 filename ../images/label-insert.xpm
18224 A grey label box like this one:
18225 \begin_inset Graphics
18226 filename clipart/labelQt4.png
18231 will be inserted and the label window pops up asking for the label text.
18232 LyX offers as text the first words of the caption with a prefix.
18233 The prefix depends on the float type, e.\InsetSpace \thinspace{}
18235 for figure floats the prefix will
18243 \begin_layout Standard
18244 The label is used as anchor and name for the reference.
18245 You can refer to the label using the menu
18247 Insert\SpecialChar \menuseparator
18250 or the toolbar button
18251 \begin_inset Graphics
18252 filename ../images/dialog-show-new-inset_ref.xpm
18258 A grey cross-reference box like this one:
18259 \begin_inset Graphics
18260 filename clipart/referenceQt4.png
18265 will be inserted and the cross-reference window appear showing all labels
18267 If you have multiple LyX-documents opened, choose the one you are working
18268 on from the drop-list at the top of the dialog.
18269 You can now sort the labels alphabetically and then choose one.
18270 At the position of the cross-reference box the float number will appear
18274 \begin_layout Standard
18275 It is recommended to use a protected space between the cross-reference name
18276 and its number to avoid line breaks between them.
18277 If a cross-reference refers to a non-existing label, you will see two question
18278 marks in the output instead of the reference.
18281 \begin_layout Standard
18282 You can change labels at any time by clicking on the label box.
18283 References to the changed label will automatically change its link to the
18284 new label text, so that you don't need to take care about this.
18287 \begin_layout Standard
18294 in the cross-reference window sets the cursor before the referred label.
18295 The button text changes then to Go\InsetSpace ~
18296 Back and you can use it to set the cursor
18297 back to the cross-reference.
18298 Right-clicking on a cross-reference box also sets the cursor before the
18299 referenced label but without a possibility to go back.
18302 \begin_layout Subsection
18303 Cross-Reference Formats
18304 \begin_inset LatexCommand label
18305 name "sub:Cross-Reference-Formats"
18310 \begin_inset LatexCommand index
18311 name "References ! Formats"
18318 \begin_layout Standard
18319 There are six varieties of cross-references:
18322 \begin_layout Description
18323 <reference>: prints the float number, this is the default:
18324 \begin_inset LatexCommand ref
18325 reference "fig:Two-distorted-images"
18332 \begin_layout Description
18333 (<reference>): prints the float number within two parentheses, this is the
18334 style normally used to reference formulas, especially when the reference
18336 \begin_inset Quotes eld
18340 \begin_inset Quotes erd
18344 \begin_inset LatexCommand eqref
18352 \begin_layout Description
18353 <page>: prints the page number: Page\InsetSpace ~
18355 \begin_inset LatexCommand pageref
18356 reference "fig:Two-distorted-images"
18363 \begin_layout Description
18366 <page>: prints the text "on page" and the page number:
18367 \begin_inset LatexCommand vpageref
18368 reference "fig:Two-distorted-images"
18375 \begin_layout Description
18376 <reference>\InsetSpace ~
18379 <page>: prints the float number, the text "on page", and
18381 \begin_inset LatexCommand vref
18382 reference "fig:Two-distorted-images"
18389 \begin_layout Description
18390 Formatted\InsetSpace ~
18391 reference: prints a self defined cross-reference format.
18393 \begin_inset Note Greyedout
18396 \begin_layout Standard
18401 This feature is only available when you have the LaTeX-package
18413 \begin_layout Standard
18414 Note that the style <page> won't print the page number if the label is on
18415 the previous, the same, or the next page.
18416 You will e.\InsetSpace \thinspace{}
18419 \begin_inset Quotes eld
18427 \begin_inset Quotes erd
18433 \begin_layout Standard
18434 The number and current page of the referred document part in the output,
18435 is automatically calculated by LaTeX.
18436 The varieties are adjusted in the field
18440 of the cross-reference window, that appear when you click on the cross-referenc
18444 \begin_layout Subsection
18445 Referencing Subfigures
18446 \begin_inset LatexCommand label
18447 name "sub:Referencing-Subfigures"
18452 \begin_inset LatexCommand index
18453 name "References ! to Subfigures"
18460 \begin_layout Standard
18461 Currently referencing subfigures is not supported by LyX, so you have to
18462 use LaTeX-commands.
18463 The label is the created with the command
18466 \begin_layout Standard
18471 label{fig:YourLabelName}
18474 \begin_layout Standard
18475 that is directly inserted into the subfigure caption field.
18476 To reference the label add this command in ERT
18479 \begin_layout Standard
18484 ref{fig:YourLabelName}
18487 \begin_layout Standard
18488 to the position in your document where the reference should be placed.
18489 Here is a reference to a subfigure: Subfigure\InsetSpace ~
18494 \begin_layout Standard
18506 \begin_layout Subsection
18507 Automatic Reference Naming
18508 \begin_inset LatexCommand index
18509 name "References ! Automatic Reference Naming"
18516 \begin_layout Standard
18521 provides a very useful feature that cross-references automatically include
18522 the name of the referenced floats (or text parts like sections).
18523 You save to write e.\InsetSpace \thinspace{}
18526 \begin_inset Quotes eld
18530 \begin_inset Quotes erd
18533 before every reference box.
18534 To get this automatic reference naming, you have to load the LaTeX-package
18540 \begin_inset LatexCommand index
18541 name "LaTeX-packages ! hyperref"
18545 in the document preamble with
18548 \begin_layout Standard
18553 usepackage[pdfborder={0 0 0}]{hyperref}
18568 \begin_layout Standard
18573 is used to link cross-references in the DVI- and PDF-output, this means
18574 that the reader of your document will be able to click on a table of content
18575 (TOC) entry or on a reference and he will be shown the referenced document
18581 also creates PDF-bookmarks for every section of your document to make it
18582 easier for readers to navigate through the document.
18583 This is also used in this document but when you have a look in the document
18584 preamble you will find various options in the load command of
18589 To learn more about the
18593 package, we refer to its documentation
18594 \begin_inset LatexCommand cite
18602 \begin_layout Standard
18603 \begin_inset Note Greyedout
18606 \begin_layout Standard
18611 Automatic reference naming cannot be used when you use cross-references
18614 Formatted\InsetSpace ~
18617 style, described in section\InsetSpace ~
18619 \begin_inset LatexCommand ref
18620 reference "sub:Cross-Reference-Formats"
18632 \begin_layout Subsection
18634 \begin_inset LatexCommand label
18635 name "sub:Reference-Position"
18640 \begin_inset LatexCommand index
18641 name "References ! Reference Position"
18648 \begin_layout Standard
18654 \begin_inset LatexCommand index
18655 name "LaTeX-packages ! hyperref"
18659 to link cross-references in the output, you will see that clicking on an
18660 image float reference jumps to the image label.
18661 The caption will be the first text part on the screen, so that you cannot
18662 see the image without scrolling.
18663 This is because the reference link anchor is placed at the position of
18665 With the use of the package
18670 \begin_inset LatexCommand index
18671 name "LaTeX-packages ! hypcap"
18675 , which is part of the LaTeX-package
18680 \begin_inset LatexCommand index
18681 name "LaTeX-packages ! oberdiek"
18685 , the link anchor is placed at the beginning of a float.
18686 To use this feature for figure floats, load
18690 in the document preamble with the line
18693 \begin_layout Standard
18698 usepackage[f\SpecialChar \textcompwordmark{}
18702 \begin_layout Standard
18707 for all floats but this isn't recommended for stability reasons.
18708 For more informations, have a look at
18713 \begin_inset LatexCommand cite
18721 \begin_layout Standard
18722 \begin_inset Note Greyedout
18725 \begin_layout Standard
18734 must be loaded after
18738 in the document preamble.
18746 \begin_layout Standard
18747 \begin_inset Note Greyedout
18750 \begin_layout Standard
18759 has no effect for references to subfigures.
18767 \begin_layout Section
18769 \begin_inset LatexCommand label
18770 name "sec:Float-Placement"
18775 \begin_inset LatexCommand index
18776 name "Floats ! Placement"
18783 \begin_layout Standard
18784 Right-clicking on a float-box opens a dialog where you can alter the placement
18785 options that LaTeX uses for positioning the float.
18792 is only useful for two-column documents: If you select it, the float will
18793 span across both columns on the page instead of being confined to just
18798 Rotate\InsetSpace ~
18801 is used to rotate floats, see section
18802 \begin_inset LatexCommand ref
18803 reference "sec:Rotated-Floats"
18810 \begin_layout Standard
18811 You can use one ore more of the following options in the float dialog to
18812 set the placement for a particular float when you uncheck the option
18815 default\InsetSpace ~
18821 \begin_layout Description
18824 possible: try to place the float on the position where it is inserted
18827 \begin_layout Description
18830 page: try to place the float on the top of the current page
18833 \begin_layout Description
18834 Bottom\InsetSpace ~
18836 page: try to place the float on the bottom of the current page
18839 \begin_layout Description
18842 floats: try to place the float on an own page
18845 \begin_layout Standard
18846 The order of the above option is
18851 That means, if you use the default placement, LaTeX will first try out
18864 , and then the others.
18865 If you don't use the default, LaTeX will try only the checked options but
18867 If none of the 4 placements are possible the procedure is internally repeated
18868 but it is tried to put the float on the following page.
18871 \begin_layout Standard
18872 By default, each options has its own rules:
18875 \begin_layout Labeling
18876 \labelwidthstring 00.00.0000
18883 only floats occupying less than 70\InsetSpace \thinspace{}
18884 % of the page can be placed at the top
18894 \begin_layout Labeling
18895 \labelwidthstring 00.00.0000
18898 Bottom\InsetSpace ~
18902 : only floats occupying less than 30\InsetSpace \thinspace{}
18903 % of the page can be placed at the bottom
18914 \begin_layout Labeling
18915 \labelwidthstring 00.00.0000
18922 : only if more than 50\InsetSpace \thinspace{}
18923 % of the page are occupied by floats, several floats
18924 can be set together on a page.
18934 \begin_layout Standard
18935 If you don't like these rules, you can ignore them by using the additional
18938 Ignore\InsetSpace ~
18944 You can also redefine the rules with LaTeX-commands that are given in parenthese
18945 s behind the rules description above.
18946 To increase for example the often too small default of the bottom-rule
18947 to 50\InsetSpace \thinspace{}
18948 % of the page, add this line to your document preamble:
18951 \begin_layout Standard
18958 bottomfraction}{0.5}
18961 \begin_layout Standard
18962 Sometimes you might need, under all circumstances, a float to be placed
18963 exactly at the position where it is inserted.
18964 For this case you can use the option
18970 Use this option very rarely and only if the document is nearly ready to
18972 Because the float is then no longer able to
18973 \begin_inset Quotes eld
18977 \begin_inset Quotes erd
18980 when you change your document and this will often destroy the page layout.
18983 \begin_layout Standard
18984 There are no placement options for text wrap floats, because they are always
18985 surrounded by the text of a certain paragraph.
18986 \begin_inset VSpace bigskip
18992 \begin_layout Standard
18993 Sometimes you have the problem that a float is placed at the top of a page
18994 while its corresponding section starts at the middle of the page, so that
18995 the reader could think the float is part of the previous section.
18996 To avoid this the LaTeX-command
19000 suppressf\SpecialChar \textcompwordmark{}
19004 It suppresses a given float placement for the page where it is inserted
19005 and can therefore be used to avoid that floats could be set before a section
19007 To get this, add these commands to your document preamble:
19010 \begin_layout Standard
19027 suppressf\SpecialChar \textcompwordmark{}
19033 \begin_layout Standard
19034 You can define the same for all section headings, like chapters and subsections.
19035 This definition is not recommended to be used for small text parts like
19036 subsubsections because LaTeX may then have problems to find a suitable
19040 \begin_layout Standard
19041 \begin_inset VSpace bigskip
19044 In some cases it is required to have all figures/tables at the end of the
19046 For this purpose the LaTeX-package
19048 endf\SpecialChar \textcompwordmark{}
19052 \begin_inset LatexCommand index
19053 name "LaTeX-packages ! endfloat"
19058 It puts all figure and table floats at the end of the document into own
19060 At the original float position a text hint like
19061 \begin_inset Quotes eld
19066 [Figure\InsetSpace ~
19070 \begin_inset Quotes erd
19074 The endfloat-package is loaded in the preamble with the line
19077 \begin_layout Standard
19082 usepackage[options]{endf\SpecialChar \textcompwordmark{}
19086 \begin_layout Standard
19087 There are various package options to format the created figure/table sections.
19088 For more information we refer to the
19090 endf\SpecialChar \textcompwordmark{}
19094 \begin_inset LatexCommand cite
19102 \begin_inset Note Greyedout
19105 \begin_layout Standard
19108 Note: endf\SpecialChar \textcompwordmark{}
19111 doesn't provide an automatic translation for the text hint, you have to
19112 do this manually, see section\InsetSpace ~
19114 \begin_inset LatexCommand cite
19127 \begin_inset Note Greyedout
19130 \begin_layout Standard
19135 There is currently a bug in
19137 endf\SpecialChar \textcompwordmark{}
19140 when the caption contains a German
19141 \begin_inset Quotes eld
19145 \begin_inset Quotes erd
19149 Use in this case the command
19150 \begin_inset Quotes eld
19160 \begin_inset Quotes erd
19164 \begin_inset Quotes eld
19168 \begin_inset Quotes erd
19179 \begin_layout Standard
19180 \begin_inset VSpace bigskip
19183 For more details about float placements, have a look at LaTeX books,
19184 \begin_inset LatexCommand cite
19185 key "latexcompanion,latexguide,latexbook"
19192 \begin_layout Section
19194 \begin_inset LatexCommand label
19195 name "sec:Rotated-Floats"
19200 \begin_inset LatexCommand index
19201 name "Floats ! Rotating"
19208 \begin_layout Standard
19209 Especially for wide tables you might have floats rotated.
19210 To rotate a whole float including the caption, right-click on the float-box
19213 Rotate\InsetSpace ~
19219 \begin_layout Standard
19220 Rotated floats are always placed on its own page (or column, when you have
19221 a two-column document).
19222 They are normally rotated so that you can read them from the outside margin
19223 -- to the left on even pages, to the right on odd pages.
19226 \begin_layout Standard
19227 Referencing rotated floats is the same like for normal floats, the caption
19228 format is also the same: Table\InsetSpace ~
19230 \begin_inset LatexCommand ref
19231 reference "tab:Rotated-table"
19235 is an example of a rotated table float.
19238 \begin_layout Standard
19239 \begin_inset Note Greyedout
19242 \begin_layout Standard
19247 Not all DVI-viewers are able to display rotated floats.
19255 \begin_layout Standard
19256 \begin_inset Float table
19261 \begin_layout Standard
19262 \begin_inset Caption
19264 \begin_layout Standard
19265 \begin_inset LatexCommand label
19266 name "tab:Rotated-table"
19278 \begin_layout Standard
19280 \begin_inset Tabular
19281 <lyxtabular version="3" rows="1" columns="5">
19283 <column alignment="center" valignment="top" leftline="true" width="0">
19284 <column alignment="center" valignment="top" leftline="true" width="0">
19285 <column alignment="center" valignment="top" leftline="true" width="0">
19286 <column alignment="center" valignment="top" leftline="true" width="0">
19287 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19288 <row topline="true" bottomline="true">
19289 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19292 \begin_layout Standard
19298 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19301 \begin_layout Standard
19307 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19310 \begin_layout Standard
19316 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19319 \begin_layout Standard
19325 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19328 \begin_layout Standard
19347 \begin_layout Section
19349 \begin_inset LatexCommand index
19350 name "Caption ! Formatting"
19355 \begin_inset LatexCommand index
19356 name "Floats ! Caption Formatting"
19361 \begin_inset LatexCommand index
19362 name "LaTeX-packages ! caption"
19367 \begin_inset LatexCommand label
19368 name "sec:Caption-Formatting"
19375 \begin_layout Standard
19380 environment is the default paragraph environment for
19385 On the LyX screen captions appear as label, e.\InsetSpace \thinspace{}
19388 \begin_inset Quotes eld
19396 \begin_inset Quotes erd
19399 followed by the caption text.
19401 \begin_inset Quotes eld
19405 \begin_inset Quotes erd
19408 is substituted in the printed output by the actual reference number.
19409 By default the label and the number are in the same font as the caption
19410 text and a colon follows the number to divide then label from the text.
19411 This caption format is not suitable for all document formats.
19415 \begin_layout Standard
19416 To change the default caption format, load the LaTeX-package
19421 \begin_inset LatexCommand index
19422 name "LaTeX-packages ! caption"
19426 in the document preamble with this line:
19429 \begin_layout Standard
19434 usepackage[format definition]{caption}
19437 \begin_layout Standard
19438 To have for example the label and the number in sans-serif bold font and
19439 the table captions always above the table like in this document, use the
19443 \begin_layout Standard
19448 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
19451 \begin_layout Standard
19452 You can also define different caption formats for the different float types.
19453 In this case load the
19457 package without format specific options and define the different formats
19458 with the help of the command
19461 \begin_layout Standard
19466 captionsetup[float type]{format definition}
19469 \begin_layout Standard
19470 in the document preamble.
19471 For example the caption formats of Figure\InsetSpace ~
19473 \begin_inset LatexCommand ref
19474 reference "fig:This-is-an-fig"
19478 and Table\InsetSpace ~
19480 \begin_inset LatexCommand ref
19481 reference "tab:This-is-an-tab"
19485 can be created using these commands in the document preamble:
19488 \begin_layout Standard
19493 usepackage[tableposition=top]{caption}
19501 captionsetup[f\SpecialChar \textcompwordmark{}
19502 igure]{labelfont={tt}, textfont=it, indention=1cm,%
19508 \begin_layout Standard
19516 captionsetup[figure]
19527 captionsetup[table]{labelfont={bf,sf}}
19530 \begin_layout Standard
19531 \begin_inset Note Greyedout
19534 \begin_layout Standard
19543 has no effect when a
19548 \begin_inset LatexCommand index
19549 name "LaTeX-packages ! koma-script"
19553 document class is used.
19554 In this case the document class option
19566 \begin_layout Standard
19567 For more information about the package
19571 we refer to its documentation
19572 \begin_inset LatexCommand cite
19573 key "caption,caption-de"
19580 \begin_layout Standard
19581 To change the label name from e.g.
19583 \begin_inset Quotes eld
19587 \begin_inset Quotes erd
19591 \begin_inset Quotes eld
19595 \begin_inset Quotes erd
19598 use this preamble command:
19601 \begin_layout Standard
19608 fnum@figure}{Image~
19613 \begin_layout Standard
19620 inserts the figure number and
19623 \begin_inset Quotes eld
19629 \begin_inset Quotes erd
19632 creates a protected space.
19635 \begin_layout Standard
19636 \begin_inset VSpace bigskip
19644 \begin_inset LatexCommand index
19645 name "LaTeX-packages ! koma-script"
19651 article (koma-script)
19659 letter (koma-script)
19663 report (koma-script)
19665 \InsetSpace \thinspace{}
19666 ), you can alternatively to the
19674 's built-in command
19681 For example, to have the caption label in bold, add this command to your
19685 \begin_layout Standard
19690 setkomafont{captionlabel}{
19695 \begin_layout Standard
19696 For more information about
19707 \begin_inset LatexCommand cite
19708 key "koma-script,koma-script-de"
19715 \begin_layout Standard
19719 \begin_layout Standard
19723 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
19730 \begin_inset Note Note
19733 \begin_layout Standard
19734 The caption format is changed only for this example.
19742 \begin_layout Standard
19743 \begin_inset Float figure
19749 \begin_layout Standard
19751 \begin_inset Graphics
19752 filename clipart/mobius.eps
19761 \begin_layout Standard
19762 \begin_inset Caption
19764 \begin_layout Standard
19765 \begin_inset LatexCommand label
19766 name "fig:This-is-an-fig"
19770 This is an example figure caption that is longer than one line to show the
19771 different caption format.
19772 Here a self-defined caption format is used.
19785 \begin_layout Standard
19789 \begin_layout Standard
19793 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
19802 \begin_layout Standard
19803 \begin_inset Float table
19809 \begin_layout Standard
19810 \begin_inset Caption
19812 \begin_layout Standard
19813 \begin_inset LatexCommand label
19814 name "tab:This-is-an-tab"
19818 This is an example table caption that is longer than one line to show the
19819 different caption format.
19820 Here the standard caption format for tables in this document is used.
19828 \begin_layout Standard
19830 \begin_inset Tabular
19831 <lyxtabular version="3" rows="1" columns="5">
19833 <column alignment="center" valignment="top" leftline="true" width="0">
19834 <column alignment="center" valignment="top" leftline="true" width="0">
19835 <column alignment="center" valignment="top" leftline="true" width="0">
19836 <column alignment="center" valignment="top" leftline="true" width="0">
19837 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19838 <row topline="true" bottomline="true">
19839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19842 \begin_layout Standard
19848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19851 \begin_layout Standard
19857 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19860 \begin_layout Standard
19866 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19869 \begin_layout Standard
19875 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19878 \begin_layout Standard
19897 \begin_layout Section
19899 \begin_inset LatexCommand index
19900 name "Caption ! Placement"
19905 \begin_inset LatexCommand index
19906 name "Floats ! Caption Placement"
19911 \begin_inset LatexCommand label
19912 name "sec:Caption-Placement"
19919 \begin_layout Standard
19920 The common caption placement rule is:
19923 \begin_layout Description
19924 Figure: Caption is set below the figure
19927 \begin_layout Description
19928 Table: Caption is set above the table
19931 \begin_layout Standard
19932 Having the caption above the table is unfortunately not supported in LaTeX's
19934 That means if you are using the document classes
19950 there will be no space between the caption and the table.
19951 To insert the needed space, add the following option to the load command
19952 of the LaTeX-package
19956 in your document preamble
19960 \begin_layout Standard
19961 See section\InsetSpace ~
19963 \begin_inset LatexCommand ref
19964 reference "sec:Caption-Formatting"
19968 for more information of the package
19980 \begin_layout Standard
19986 \begin_layout Standard
19992 \begin_inset LatexCommand index
19993 name "LaTeX-packages ! koma-script"
19999 article (koma-script)
20007 letter (koma-script)
20011 report (koma-script)
20013 \InsetSpace \thinspace{}
20014 ), you can alternatively to the
20018 package set the document class option
20022 , or you can use the environment
20024 caption\InsetSpace ~
20034 \begin_layout Standard
20035 \begin_inset VSpace bigskip
20038 It is also possible to set the caption beside a figure or table.
20039 To get this the LaTeX-package
20044 \begin_inset LatexCommand index
20045 name "LaTeX-packages ! sidecap"
20049 has to be loaded in the document preamble with the line
20052 \begin_layout Standard
20057 usepackage[option]{sidecap}
20060 \begin_layout Standard
20061 If you set no option, the caption is placed on the side of the outer page
20062 margin -- to the right on odd pages, to the left on even pages.
20063 You can change the placement to inner margin with the option
20068 To force the placement always to the right or left, use the option
20079 \begin_layout Standard
20080 To place in LyX the caption of a float on the side, it is necessary to add
20081 these commands to the document preamble:
20084 \begin_layout Standard
20090 \begin_layout Standard
20103 \begin_layout Standard
20124 \begin_layout Standard
20145 \begin_layout Standard
20156 renewenvironment{table}{
20163 \begin_layout Standard
20176 \begin_layout Standard
20197 \begin_layout Standard
20215 \begin_layout Standard
20228 \begin_layout Standard
20243 f\SpecialChar \textcompwordmark{}
20250 \begin_layout Standard
20263 MyEndf\SpecialChar \textcompwordmark{}
20266 endf\SpecialChar \textcompwordmark{}
20273 \begin_layout Standard
20284 renewenvironment{f\SpecialChar \textcompwordmark{}
20287 begin{SCf\SpecialChar \textcompwordmark{}
20290 end{SCf\SpecialChar \textcompwordmark{}
20294 \begin_layout Standard
20307 \begin_layout Standard
20320 f\SpecialChar \textcompwordmark{}
20329 \begin_layout Standard
20342 endf\SpecialChar \textcompwordmark{}
20345 MyEndf\SpecialChar \textcompwordmark{}
20349 \begin_layout Standard
20355 \begin_layout Standard
20356 The commands allow you to redefine the floats so that the caption is set
20358 For figure floats use the command
20361 \begin_layout Standard
20369 \begin_layout Standard
20370 in ERT before the float.
20371 Behind the float insert the command
20374 \begin_layout Standard
20382 \begin_layout Standard
20383 in ERT to get back to the original float definition.
20386 \begin_layout Standard
20387 For table floats use the corresponding commands
20390 \begin_layout Standard
20404 \begin_layout Standard
20405 Figure\InsetSpace ~
20407 \begin_inset LatexCommand ref
20408 reference "fig:cap-beside-fig"
20412 and Table\InsetSpace ~
20414 \begin_inset LatexCommand ref
20415 reference "tab:cap-beside-tab"
20419 are examples where the caption is set beside.
20422 \begin_layout Standard
20423 You can see in the examples that the caption text appears at the top of
20424 the floats for table floats and at the bottom for figure floats.
20425 To change this, you can use the command
20428 \begin_layout Standard
20433 sidecaptionvpos{float type}{placement}
20436 \begin_layout Standard
20437 in the document preamble or in ERT before the float.
20438 The float type is either
20446 , the placement can be
20447 \begin_inset Quotes eld
20455 \begin_inset Quotes erd
20459 \begin_inset Quotes eld
20467 \begin_inset Quotes erd
20471 \begin_inset Quotes eld
20479 \begin_inset Quotes erd
20483 To have for example the caption of figure floats vertically centered, use
20487 \begin_layout Standard
20492 sidecaptionvpos{f\SpecialChar \textcompwordmark{}
20496 \begin_layout Standard
20497 This was used for Figure\InsetSpace ~
20499 \begin_inset LatexCommand ref
20500 reference "fig:cap-beside-fig-2"
20507 \begin_layout Standard
20508 \begin_inset VSpace defskip
20511 For more information about the package
20515 we refer to its documentation
20516 \begin_inset LatexCommand cite
20524 \begin_layout Standard
20525 \begin_inset Note Greyedout
20528 \begin_layout Standard
20538 \begin_inset LatexCommand index
20539 name "LaTeX-packages ! hypcap"
20543 , described in section\InsetSpace ~
20545 \begin_inset LatexCommand ref
20546 reference "sub:Reference-Position"
20550 , has no effect on floats with the caption set beside.
20558 \begin_layout Standard
20562 \begin_layout Standard
20574 \begin_layout Standard
20575 \begin_inset Float figure
20580 \begin_layout Standard
20581 \begin_inset Graphics
20582 filename clipart/escher-lsd.eps
20590 \begin_layout Standard
20591 \begin_inset Caption
20593 \begin_layout Standard
20594 \begin_inset LatexCommand label
20595 name "fig:cap-beside-fig"
20599 This is a caption beside a figure.
20612 \begin_layout Standard
20616 \begin_layout Standard
20628 \begin_layout Standard
20629 \begin_inset Float table
20634 \begin_layout Standard
20635 \begin_inset Caption
20637 \begin_layout Standard
20638 \begin_inset LatexCommand label
20639 name "tab:cap-beside-tab"
20643 This is a caption beside a table.
20651 \begin_layout Standard
20652 \begin_inset Tabular
20653 <lyxtabular version="3" rows="4" columns="5">
20655 <column alignment="center" valignment="top" leftline="true" width="0">
20656 <column alignment="center" valignment="top" leftline="true" width="0">
20657 <column alignment="center" valignment="top" leftline="true" width="0">
20658 <column alignment="center" valignment="top" leftline="true" width="0">
20659 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
20660 <row topline="true">
20661 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20664 \begin_layout Standard
20670 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20673 \begin_layout Standard
20679 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20682 \begin_layout Standard
20688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20691 \begin_layout Standard
20697 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20700 \begin_layout Standard
20707 <row topline="true">
20708 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20711 \begin_layout Standard
20717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20720 \begin_layout Standard
20726 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20729 \begin_layout Standard
20735 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20738 \begin_layout Standard
20744 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20747 \begin_layout Standard
20754 <row topline="true">
20755 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20758 \begin_layout Standard
20764 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20767 \begin_layout Standard
20773 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20776 \begin_layout Standard
20782 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20785 \begin_layout Standard
20791 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20794 \begin_layout Standard
20801 <row topline="true" bottomline="true">
20802 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20805 \begin_layout Standard
20811 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20814 \begin_layout Standard
20820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20823 \begin_layout Standard
20829 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20832 \begin_layout Standard
20838 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20841 \begin_layout Standard
20860 \begin_layout Standard
20864 \begin_layout Standard
20876 \begin_layout Standard
20880 \begin_layout Standard
20884 sidecaptionvpos{figure}{c}
20890 \begin_inset Float figure
20895 \begin_layout Standard
20896 \begin_inset Graphics
20897 filename clipart/escher-lsd.eps
20905 \begin_layout Standard
20906 \begin_inset Caption
20908 \begin_layout Standard
20909 \begin_inset LatexCommand label
20910 name "fig:cap-beside-fig-2"
20914 This is a vertically centered caption beside a figure.
20927 \begin_layout Standard
20931 \begin_layout Standard
20943 \begin_layout Section
20945 \begin_inset LatexCommand label
20946 name "sec:Listings-of-Floats"
20951 \begin_inset LatexCommand index
20952 name "Floats ! Listings"
20959 \begin_layout Standard
20960 Similar to the the table of contents where the sections of the document
20961 are listed, there are listings for all float types, like the figures of
20963 You can insert them via the
20965 Insert\SpecialChar \menuseparator
20973 \begin_layout Standard
20974 The list entries are the float captions or its short title, the float number,
20975 and the page number where they appear in the document.
20978 \begin_layout Standard
20979 You can find the list of figures and tables at the end of this document.
20982 \begin_layout Chapter
20986 \begin_layout Section
20990 \begin_layout Standard
21003 \begin_layout Standard
21011 \begin_inset LatexCommand label
21012 name "sec:LyX-Notes"
21017 \begin_inset LatexCommand index
21018 name "Notes ! LyX Notes"
21023 \begin_inset Note Note
21026 \begin_layout Standard
21029 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
21030 are displayed wrongly in PDF-bookmarks.
21031 For more information about this, have a look at
21032 \begin_inset LatexCommand cite
21045 \begin_layout Standard
21046 Notes are inserted with the toolbar button
21047 \begin_inset Graphics
21048 filename ../images/note-insert.xpm
21055 Insert\SpecialChar \menuseparator
21059 There are three types of notes:
21062 \begin_layout Description
21064 Note This note type is for internal notes that won't appear in the output.
21065 Its note-box looks like this:
21070 \begin_inset Graphics
21071 filename clipart/LyXNoteImageQt4.png
21078 \begin_inset Note Note
21081 \begin_layout Standard
21082 This is text in a note box that doesn't appear in the output.
21090 \begin_layout Description
21091 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
21092 ent, when you export the document to LaTeX via the menu
21094 File\SpecialChar \menuseparator
21095 Export\SpecialChar \menuseparator
21096 LaTeX (pdflatex) / LaTeX (plain)
21099 Its note-box looks like this:
21104 \begin_inset Graphics
21105 filename clipart/CommentNoteImageQt4.png
21112 \begin_inset Note Comment
21115 \begin_layout Standard
21116 This is text in a note box that only appears as comment in LaTeX-files.
21124 \begin_layout Description
21125 Greyed\InsetSpace ~
21126 Out This note will appear in the output as grey text.
21127 Its note-box looks like this:
21132 \begin_inset Graphics
21133 filename clipart/GreyedOutNoteImageQt4.png
21145 \begin_layout Standard
21149 renewenvironment{lyxgreyedout}
21152 \begin_layout Standard
21156 textcolor[gray]{0.8}
21166 \begin_inset Note Greyedout
21169 \begin_layout Standard
21174 \begin_layout Standard
21175 This is an example footnote within a greyed out note.
21180 of a comment that appears in the output as grey text.
21189 \begin_layout Standard
21193 renewenvironment{lyxgreyedout}
21196 \begin_layout Standard
21210 \begin_inset Note Note
21213 \begin_layout Standard
21214 The greyed out note is here redefined to show it with the original LyX definitio
21215 n because greyed out notes are redefined in the preamble of this document,
21216 as described below, to have blue text.
21225 As you can see in the example, the first line of greyed out notes is a bit
21226 indented and greyed out notes can have footnotes.
21229 \begin_layout Description
21230 Framed This note will appear in the output as framed text.
21231 Its note-box looks like this:
21236 \begin_inset Graphics
21237 filename clipart/FramedNoteImageQt4.png
21244 \begin_inset Note Framed
21247 \begin_layout Standard
21248 This is text in a note box that appears framed in the output.
21253 In contrary to framed boxes
21257 \begin_layout Standard
21258 Framed boxes are described in section\InsetSpace ~
21260 \begin_inset LatexCommand ref
21261 reference "sec:Framed-Boxes"
21270 the frame uses always the whole text width and the note is set into its
21274 \begin_layout Description
21275 Shaded This note will appear in the output with red background color.
21276 Its note box looks like this:
21281 \begin_inset Graphics
21282 filename clipart/ShadedNoteImageQt4.png
21289 \begin_inset Note Shaded
21292 \begin_layout Standard
21293 This text in a note box appears in the output with red background.
21298 In contrary to colored boxes
21302 \begin_layout Standard
21303 Colored boxes are described in section\InsetSpace ~
21305 \begin_inset LatexCommand ref
21306 reference "sec:Colored-Boxes"
21315 the note uses always the whole text width and the note is set into its
21319 \begin_layout Standard
21320 \begin_inset VSpace bigskip
21323 When you use the toolbar button to insert notes, a
21329 You can switch between the three note types by right-clicking on the note-box.
21334 If you want to turn existing text into a note, mark it and click on the
21350 \begin_layout Standard
21351 \begin_inset VSpace bigskip
21354 You can change the text color of the greyed out notes in the preamble with
21355 the following command:
21358 \begin_layout Standard
21363 renewenvironment{lyxgreyedout}
21369 \begin_layout Standard
21387 \begin_layout Standard
21388 The available colors and the method to define own colors is explained in
21389 section\InsetSpace ~
21391 \begin_inset LatexCommand ref
21392 reference "sec:Colored-Tables"
21399 \begin_layout Standard
21400 Notes that appear in blue in this document are set using greyed out notes
21404 \begin_layout Standard
21405 \begin_inset VSpace bigskip
21411 \begin_layout Standard
21420 notes can be set in the
21427 \begin_layout Standard
21428 The default frame width for
21432 notes is 0.4\InsetSpace \thinspace{}
21433 pt; it can be changed by changing the size
21440 The default space between the note content and the frame is 9\InsetSpace \thinspace{}
21442 be changed by changing the size
21449 For example the frame appearance of the following
21453 note is set with the ERT commands
21456 \begin_layout Standard
21466 \begin_layout Standard
21470 \begin_layout Standard
21482 \begin_inset Note Framed
21485 \begin_layout Standard
21499 \begin_layout Standard
21513 \begin_layout Standard
21514 \begin_inset VSpace bigskip
21520 \begin_layout Standard
21525 notes the default space between the note content and the note border is
21526 3\InsetSpace \thinspace{}
21527 pt; it can be changed by changing the size
21535 The default background color red can be changed with the command
21539 def\SpecialChar \textcompwordmark{}
21547 def\SpecialChar \textcompwordmark{}
21550 command is explained in section\InsetSpace ~
21552 \begin_inset LatexCommand ref
21553 reference "sec:Colored-Tables"
21561 \begin_layout Standard
21568 \SpecialChar \textcompwordmark{}
21573 requires the LaTeX-package
21577 in the preamble, see section\InsetSpace ~
21579 \begin_inset LatexCommand ref
21580 reference "sec:Colored-Boxes"
21592 \begin_layout Standard
21593 For example the appearance of the following
21597 note is set with the ERT commands
21600 \begin_layout Standard
21613 def\SpecialChar \textcompwordmark{}
21614 inecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21617 \begin_layout Standard
21621 \begin_layout Standard
21634 \begin_layout Standard
21638 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21644 \begin_inset Note Shaded
21647 \begin_layout Standard
21650 This is yellow text in a
21660 note with darkgreen background.
21669 \begin_layout Standard
21682 \begin_layout Standard
21686 definecolor{shadecolor}{rgb}{1,0,0}
21694 \begin_layout Section
21696 \begin_inset LatexCommand label
21697 name "sec:Footnotes"
21702 \begin_inset LatexCommand index
21703 name "Notes ! Footnotes"
21708 \begin_inset LatexCommand index
21716 \begin_layout Standard
21717 Footnotes can be inserted using the toolbar button
21718 \begin_inset Graphics
21719 filename ../images/footnote-insert.xpm
21726 Insert\SpecialChar \menuseparator
21738 then the following footnote-box:
21739 \begin_inset Graphics
21740 filename clipart/footnoteQt4.png
21749 where you can enter the footnote text.
21750 If you want to turn existing text into a footnote, mark it and click on
21766 \begin_layout Standard
21767 Here is an example footnote:
21775 \begin_layout Standard
21776 \begin_inset LatexCommand label
21777 name "foot:This-is-an"
21781 This is an example footnote.
21794 \begin_layout Standard
21798 newcounter{MyRepeatFoot}
21801 \begin_layout Standard
21805 setcounter{MyRepeatFoot}{
21815 \begin_layout Standard
21816 The footnote will appear in the output as a superscript number at the text
21817 position where the footnote box is placed.
21818 The footnote text is placed at the bottom of the current page.
21819 The footnote number is calculated by LaTeX, the numbers are consecutive.
21820 It depends on your document-class, if the footnote number is reset for
21824 \begin_layout Standard
21825 Footnotes can be referenced like floats: Insert a label into the footnote
21826 and cross-reference this label in the text as described in section\InsetSpace ~
21828 \begin_inset LatexCommand ref
21829 reference "sec:Referencing-Floats"
21835 This is a cross-reference of Footnote\InsetSpace ~
21837 \begin_inset LatexCommand ref
21838 reference "foot:This-is-an"
21845 \begin_inset Note Greyedout
21848 \begin_layout Standard
21853 LyX doesn't provide a prefix for labels in footnotes, so you have to insert
21854 e.\InsetSpace \thinspace{}
21859 \begin_inset Quotes eld
21865 \begin_inset Quotes erd
21868 manually when you want to use the reference style
21870 Formatted\InsetSpace ~
21881 \begin_layout Standard
21882 \begin_inset VSpace defskip
21885 To use footnotes within tables, you have to use minipages, see section\InsetSpace ~
21887 \begin_inset LatexCommand ref
21888 reference "sec:Minipages"
21893 Footnotes within longtables are described in section\InsetSpace ~
21895 \begin_inset LatexCommand ref
21896 reference "sub:Footnotes-in-Longtables"
21903 \begin_layout Standard
21904 \begin_inset VSpace defskip
21907 To create only a mark for a footnote, use the command
21911 footnotemark[number]
21914 This is used when you have the same annotation several times in a text
21915 but doesn't want to print the footnote text every time.
21918 the number of the repeating footnote while you are writing the text, you
21919 have to store its number.
21920 For the following footnote mark example, these commands were inserted in
21921 ERT behind Footnote\InsetSpace ~
21923 \begin_inset LatexCommand ref
21924 reference "foot:This-is-an"
21928 to store the footnote number:
21931 \begin_layout Standard
21936 newcounter{MyRepeatFoot}
21940 setcounter{MyRepeatFoot}{
21945 \begin_layout Standard
21946 The footnote mark was then created with this command:
21949 \begin_layout Standard
21959 \begin_layout Standard
21960 Here is an example footnote mark:
21968 \begin_layout Standard
21982 \begin_layout Subsection
21984 \begin_inset LatexCommand label
21985 name "sub:Footnote-Numbering"
21990 \begin_inset LatexCommand index
21991 name "Footnotes ! Numbering"
21998 \begin_layout Standard
21999 To reset the footnote number back to 1 after each section
22001 , add this command to your document preamble:
22004 \begin_layout Standard
22009 @addtoreset{footnote}{section}
22012 \begin_layout Standard
22013 \begin_inset VSpace bigskip
22016 The following preamble command changes the footnote numbering style to small
22020 \begin_layout Standard
22032 \begin_layout Standard
22036 \begin_layout Standard
22049 This is a footnote with roman numbering:
22053 \begin_layout Standard
22054 This is an example footnote with roman numbering.
22063 \begin_layout Standard
22079 \begin_layout Standard
22080 To change the numbering style to capital roman numerals replace in the command
22095 \begin_inset Quotes eld
22099 \begin_inset Quotes erd
22102 footnotes with capital or small Latin letters use
22116 \begin_inset Quotes eld
22120 \begin_inset Quotes erd
22123 footnotes with symbols use
22132 \begin_layout Standard
22133 \begin_inset Note Greyedout
22136 \begin_layout Standard
22141 You can only number 26 footnotes with Latin letters, because this numbering
22142 is limited to single letters.
22150 \begin_inset Note Greyedout
22153 \begin_layout Standard
22158 You can only number 9 footnotes with symbols.
22166 \begin_layout Standard
22167 To return to the default numbering style when you changed to another one,
22180 in the command above.
22183 \begin_layout Standard
22184 \begin_inset VSpace bigskip
22190 \begin_layout Standard
22191 If you want to have footnotes numbered in the scheme
22192 \begin_inset Quotes eld
22196 \begin_inset Quotes erd
22199 , add the following command to your document preamble:
22202 \begin_layout Standard
22207 numberwithin{footnote}{chapter}
22210 \begin_layout Standard
22211 To be able to use the command
22222 in the document settings the option
22232 \begin_layout Standard
22236 \begin_layout Standard
22240 numberwithin{footnote}{chapter}
22245 This is another example footnote:
22251 \begin_layout Standard
22252 This is a footnote numbered in the scheme
22253 \begin_inset Quotes eld
22257 \begin_inset Quotes erd
22271 \begin_layout Standard
22275 numberwithin{footnote}{part}
22283 \begin_layout Standard
22284 \begin_inset Note Greyedout
22287 \begin_layout Standard
22298 always prints out the footnote number as arabic number; previous redefinitions
22299 to get non-arabic numbers are overwritten.
22307 \begin_layout Standard
22308 So to get for example the scheme
22309 \begin_inset Quotes eld
22315 \begin_inset Quotes erd
22318 , use this command instead of
22327 \begin_layout Standard
22341 \begin_layout Subsection
22343 \begin_inset LatexCommand index
22344 name "Footnotes ! Placement"
22351 \begin_layout Standard
22352 If you have several footnotes in one page, they appear without vertical
22353 space between them at the bottom of the page.
22354 To make them better readable you can e.\InsetSpace \thinspace{}
22356 add 1.5\InsetSpace \thinspace{}
22357 mm space with the following
22361 \begin_layout Standard
22383 \begin_layout Standard
22384 \begin_inset VSpace bigskip
22387 In a two-column document the footnotes appear at the bottom of every column,
22388 see Figure\InsetSpace ~
22390 \begin_inset LatexCommand ref
22391 reference "fig:Standard-footnote-placement"
22396 If the footnotes should only appear at the bottom of the right column,
22397 as in Figure\InsetSpace ~
22399 \begin_inset LatexCommand ref
22400 reference "fig:Footnote-placement-in"
22404 , use the LaTeX-package
22409 \begin_inset LatexCommand index
22410 name "LaTeX-packages ! ftnright"
22414 with this command in the document preamble:
22417 \begin_layout Standard
22422 usepackage{ftnright}
22425 \begin_layout Standard
22426 \begin_inset Float figure
22432 \begin_layout Standard
22436 \begin_layout Standard
22446 \begin_inset Graphics
22447 filename clipart/without_fntright.pdf
22456 \begin_layout Standard
22466 \begin_layout Standard
22467 \begin_inset Caption
22469 \begin_layout Standard
22470 \begin_inset LatexCommand label
22471 name "fig:Standard-footnote-placement"
22475 Standard footnote placement in two-column documents.
22488 \begin_layout Standard
22489 \begin_inset Float figure
22495 \begin_layout Standard
22499 \begin_layout Standard
22509 \begin_inset Graphics
22510 filename clipart/with_fntright.pdf
22519 \begin_layout Standard
22529 \begin_layout Standard
22530 \begin_inset Caption
22532 \begin_layout Standard
22533 \begin_inset LatexCommand label
22534 name "fig:Footnote-placement-in"
22538 Footnote placement in two-column documents when the LaTeX-package
22555 \begin_layout Standard
22556 \begin_inset VSpace bigskip
22559 In some scientific literature it is usual to collect the footnotes and print
22560 them in a separate paragraph at the the end of a section, like in Figure\InsetSpace ~
22562 \begin_inset LatexCommand ref
22563 reference "fig:Endnotes----footnotes"
22568 They are then so called
22569 \begin_inset Quotes eld
22573 \begin_inset Quotes erd
22577 To use endnotes instead of footnotes in your document, load the LaTeX-package
22583 \begin_inset LatexCommand index
22584 name "LaTeX-packages ! endnotes"
22588 with the document preamble lines
22591 \begin_layout Standard
22596 usepackage{endnotes}
22607 \begin_layout Standard
22608 To insert the collected footnotes, insert the command
22611 \begin_layout Standard
22619 \begin_layout Standard
22620 in ERT at the the end of a section or chapter.
22623 \begin_layout Standard
22624 \begin_inset Float figure
22629 \begin_layout Standard
22634 \begin_layout Standard
22644 \begin_inset Graphics
22645 filename clipart/endnotes.pdf
22653 \begin_layout Standard
22663 \begin_layout Standard
22664 \begin_inset Caption
22666 \begin_layout Standard
22667 \begin_inset LatexCommand label
22668 name "fig:Endnotes----footnotes"
22672 Endnotes -- footnotes are printed in a separate paragraph at the end of
22673 sections or chapters.
22686 \begin_layout Standard
22687 \begin_inset VSpace defskip
22690 The paragraph heading for the endnotes isn't automatically translated into
22691 the document language, this must be done manually.
22692 The following preamble command translate the default English name
22693 \begin_inset Quotes eld
22697 \begin_inset Quotes erd
22700 to the German translation
22701 \begin_inset Quotes eld
22705 \begin_inset Quotes erd
22711 \begin_layout Standard
22718 notesname}{Anmerkungen}
22721 \begin_layout Standard
22722 \begin_inset VSpace defskip
22725 The numbering of endnotes can be changed like the footnote numbering as
22726 described in section\InsetSpace ~
22728 \begin_inset LatexCommand ref
22729 reference "sub:Footnote-Numbering"
22733 ; just replace the command
22746 To reset the endnote number use the command
22752 as described in section\InsetSpace ~
22754 \begin_inset LatexCommand ref
22755 reference "sub:Footnote-Numbering"
22759 and replace the command parameter
22770 \begin_layout Standard
22771 To create only a mark for an endnote, use the command
22775 endnotemark[number]
22777 similar to the command
22783 , described in section\InsetSpace ~
22785 \begin_inset LatexCommand ref
22786 reference "sec:Footnotes"
22793 \begin_layout Standard
22794 \begin_inset VSpace bigskip
22797 Footnotes can also be placed in the page margin and the footnote text alignment
22798 can be changed, see the LaTeX-package
22803 \begin_inset LatexCommand index
22804 name "LaTeX-packages ! footmisc"
22809 \begin_inset LatexCommand cite
22814 for more information about this.
22817 \begin_layout Standard
22818 For various further footnote formatting issues have a look at LaTeX-books,
22820 \begin_inset LatexCommand cite
22821 key "latexcompanion,latexguide,latexbook"
22828 \begin_layout Section
22830 \begin_inset LatexCommand index
22831 name "Notes ! Margin Notes"
22838 \begin_layout Standard
22839 Margin notes look and behave in LyX like footnotes.
22840 They are inserted via the menu
22842 Insert\SpecialChar \menuseparator
22843 Marginal\InsetSpace ~
22846 or the toolbar button
22847 \begin_inset Graphics
22848 filename ../images/marginalnote-insert.xpm
22864 \begin_inset Quotes eld
22868 \begin_inset Quotes erd
22871 appears where you can enter the text of the margin note.
22874 \begin_layout Standard
22875 At the side is an example margin note.
22879 \begin_inset Marginal
22882 \begin_layout Standard
22883 This is a margin note.
22891 \begin_layout Standard
22892 Margin notes appear at the right side in single-sided documents.
22893 In double-sided documents they appear in the outer margin -- left on even
22894 pages, right on odd pages.
22895 The text of margin notes is aligned opposite to the outer margin -- right-align
22896 ed when the note appears in the left margin.
22897 The first line of the margin note is placed at the position of the text
22898 line where it is inserted in the document.
22901 \begin_layout Standard
22902 \begin_inset VSpace bigskip
22905 To place the margin note in the inner margin, add the command
22908 \begin_layout Standard
22916 \begin_layout Standard
22917 in ERT before a margin note.
22918 The new placement is valid for all following margin notes.
22922 \begin_layout Standard
22932 \begin_inset Marginal
22935 \begin_layout Standard
22936 This is a margin note in the inner margin.
22948 \begin_inset Note Greyedout
22951 \begin_layout Standard
22956 There is often not enough space in the inner margin so that the notes are
22957 not correctly displayed in the output.
22965 \begin_layout Standard
22969 \begin_layout Standard
22978 To return to the default placement insert the command
22981 \begin_layout Standard
22989 \begin_layout Standard
22992 \begin_inset Note Greyedout
22995 \begin_layout Standard
23000 The command is ignored when it is within a paragraph where also the command
23015 \begin_layout Standard
23016 \begin_inset VSpace bigskip
23023 \begin_inset Marginal
23026 \begin_layout Standard
23027 AVeryLongMarginParWord that isn't hyphenated.
23035 Similar to the case described in section\InsetSpace ~
23037 \begin_inset LatexCommand ref
23038 reference "sub:Multiple-Lines-in"
23042 , long words cannot be hyphenated when they are the first word in a margin
23044 To avoid this, insert the command
23047 \begin_layout Standard
23055 \begin_layout Standard
23056 in ERT before the word
23060 \begin_inset Marginal
23063 \begin_layout Standard
23067 \begin_layout Standard
23076 AVeryLongMarginParWord that is hyphenated.
23084 \begin_layout Standard
23085 \begin_inset VSpace bigskip
23091 \begin_layout Standard
23092 \begin_inset Note Greyedout
23095 \begin_layout Standard
23100 Margin notes can normally not be used inside tables, floats, and footnotes.
23108 \begin_layout Standard
23109 \begin_inset VSpace bigskip
23115 \begin_layout Standard
23119 \begin_layout Standard
23129 \begin_inset Note Note
23132 \begin_layout Standard
23133 The following section will only be displayed when you have the LaTeX-package
23146 \begin_layout Standard
23147 This restriction can be evaded by using the LaTeX-package
23152 \begin_inset LatexCommand index
23153 name "LaTeX-packages ! marginnote"
23158 By adding these two lines to your document preamble, the command used by
23159 LyX for margin notes is redefined to use the command provided by the
23166 \begin_layout Standard
23171 usepackage{marginnote}
23182 \begin_layout Standard
23183 This is also used in this document because
23187 has another useful feature: You can set a vertical offset for the note.
23188 This is often needed when too many margin notes are too close together
23189 or for a better page layout.
23190 The offset is set in LyX as ERT directly behind the margin note in the
23194 \begin_layout Standard
23200 \begin_layout Standard
23201 where the offset is a length with one of the units listed in Table\InsetSpace ~
23203 \begin_inset LatexCommand ref
23204 reference "tab:Units"
23209 A negative value shifts the note up, a positive value shifts it down.
23213 For example the margin note beside this text line is shifted up 1.5\InsetSpace \thinspace{}
23216 \begin_inset Quotes eld
23226 \begin_inset Quotes erd
23230 \begin_inset Marginal
23233 \begin_layout Standard
23234 This margin note is shifted up 1.5\InsetSpace \thinspace{}
23235 cm from its original position.
23247 \begin_layout Standard
23257 \begin_layout Standard
23258 \begin_inset VSpace defskip
23265 you can also change the alignment of the text in the margin note.
23266 For example the commands
23269 \begin_layout Standard
23276 raggedleftmarginnote}{
23284 raggedrightmarginnote}{
23289 \begin_layout Standard
23290 set the alignment to centered.
23295 raggedleftmarginnote
23297 denotes margin notes that appear at the left side.
23304 \begin_layout Standard
23310 raggedleftmarginnote}{
23315 \begin_layout Standard
23321 raggedrightmarginnote}{
23329 \begin_inset Marginal
23332 \begin_layout Standard
23333 The text of this margin note is centered.
23344 \begin_layout Standard
23351 raggedleftmarginnote}{
23359 raggedrightmarginnote}{
23368 \begin_layout Standard
23374 raggedleftmarginnote}{
23379 \begin_layout Standard
23385 raggedrightmarginnote}{
23395 \begin_layout Standard
23396 \begin_inset VSpace defskip
23399 For the other features of
23403 we refer to its documentation
23404 \begin_inset LatexCommand cite
23412 \begin_layout Standard
23413 \begin_inset VSpace bigskip
23416 You can change the layout of margin notes by redefining its definition.
23417 To create for example a header for all margin notes with the underlined,
23418 sans-serif, and bold header text
23419 \begin_inset Quotes eld
23431 \begin_inset Quotes erd
23434 , add this to your document preamble:
23437 \begin_layout Standard
23460 \begin_layout Standard
23477 underbar{Attention!}}}%
23483 \begin_layout Standard
23501 \begin_layout Standard
23508 \begin_layout Standard
23519 \begin_layout Standard
23530 \begin_layout Standard
23538 underbar{Attention!}}}%
23541 \begin_layout Standard
23555 \begin_inset Marginal
23558 \begin_layout Standard
23559 This is a margin note with a defined heading.
23571 \begin_layout Standard
23585 \begin_layout Standard
23602 \begin_inset Note Note
23605 \begin_layout Standard
23606 The margin note format is changed only for this example.
23614 \begin_layout Standard
23618 \begin_layout Standard
23628 \begin_inset Note Note
23631 \begin_layout Standard
23632 The following will be displayed when the LaTeX-package
23644 \begin_layout Standard
23645 You need to install the LaTeX-package
23649 to see the following part of this section in the output.
23652 \begin_layout Standard
23656 \begin_layout Standard
23668 \begin_layout Chapter
23672 \begin_layout Section
23674 \begin_inset LatexCommand index
23675 name "Boxes ! Introduction"
23682 \begin_layout Standard
23683 Boxes are used to format a block of text.
23684 Boxes can be used to write documents with multiple languages, see section\InsetSpace ~
23686 \begin_inset LatexCommand ref
23687 reference "sec:Minipages"
23691 , to frame texts, see section\InsetSpace ~
23693 \begin_inset LatexCommand ref
23694 reference "sec:Framed-Boxes"
23698 , to prevent words to be hyphenated, see section\InsetSpace ~
23700 \begin_inset LatexCommand ref
23701 reference "sec:Prevent-Hyphenation"
23705 , to align text, see section\InsetSpace ~
23707 \begin_inset LatexCommand ref
23708 reference "sub:Vertical-Alignment"
23712 , or to set the background color of texts, see section\InsetSpace ~
23714 \begin_inset LatexCommand ref
23715 reference "sec:Colored-Boxes"
23722 \begin_layout Standard
23723 Boxes can be inserted with the menu
23725 Insert\SpecialChar \menuseparator
23729 A grey box with the label
23734 \begin_inset Graphics
23735 filename clipart/BoxInsetDefaultQt4.png
23740 , will be inserted.
23741 The box type can be specified by right-clicking on the box.
23742 The appearing box dialog offers the
23760 is the default for new boxes and is explained in section\InsetSpace ~
23762 \begin_inset LatexCommand ref
23763 reference "sec:Minipages"
23771 is described in section\InsetSpace ~
23773 \begin_inset LatexCommand ref
23774 reference "sec:Parboxes"
23781 \begin_layout Standard
23782 Boxes aren't numbered and can therefore not be referenced like floats or
23786 \begin_layout Standard
23787 \begin_inset Note Greyedout
23790 \begin_layout Standard
23795 Due to a bug in LyX you have to insert a protected space behind a box when
23796 you want to separate in a line the box from the following text with a space.
23804 \begin_layout Standard
23805 \begin_inset Note Greyedout
23808 \begin_layout Standard
23813 Boxes must not be the item in an
23829 \begin_layout Standard
23830 \begin_inset Note Greyedout
23833 \begin_layout Standard
23838 For an unknown reason you can only set the
23847 when you use a framed box.
23853 type and without frames are explained in section\InsetSpace ~
23855 \begin_inset LatexCommand ref
23856 reference "sec:Prevent-Hyphenation"
23868 \begin_layout Section
23870 \begin_inset LatexCommand label
23871 name "sec:Box-Dialog"
23876 \begin_inset LatexCommand index
23877 name "Boxes ! Box Dialog"
23882 \begin_inset LatexCommand index
23883 name "Boxes ! Alignment"
23890 \begin_layout Standard
23891 In the box dialog you can adjust the box geometry in the fields
23900 The available units for the geometry are explained in Table\InsetSpace ~
23902 \begin_inset LatexCommand ref
23903 reference "tab:Units"
23912 offers the following additional sizes:
23915 \begin_layout Description
23916 Depth This is the plain text
23917 \begin_inset Quotes eld
23921 \begin_inset Quotes erd
23925 It ignores the total depth when there are multiple text lines in the box:
23932 \begin_inset Box Boxed
23941 height_special "depth"
23944 \begin_layout Standard
23946 Box height set to 1\InsetSpace \thinspace{}
23959 \begin_layout Description
23960 Height This is the heigth of the text that is inside the box.
23961 A value of e.\InsetSpace \thinspace{}
23963 2 for this size will set the box heigth to 2 times the text
23965 \begin_inset Box Boxed
23974 height_special "height"
23977 \begin_layout Standard
23979 Box height set to 2\InsetSpace \thinspace{}
23988 \begin_layout Description
23990 Height This is the Height\InsetSpace \thinspace{}
23991 +\InsetSpace \thinspace{}
23993 \begin_inset Box Boxed
24002 height_special "totalheight"
24005 \begin_layout Standard
24007 Box height set to 1\InsetSpace \thinspace{}
24017 \begin_layout Description
24018 Width This set the width of the box as heigth:
24019 \begin_inset Box Boxed
24028 height_special "width"
24031 \begin_layout Standard
24033 Box height set to 1\InsetSpace \thinspace{}
24042 \begin_layout Standard
24043 \begin_inset VSpace bigskip
24046 When you have chosen an
24051 , the vertical box alignment can be:
24054 \begin_layout Description
24055 Top This is an example text line.
24057 \begin_inset Box Boxed
24066 height_special "totalheight"
24069 \begin_layout Standard
24071 This box is top-aligned.
24077 This is an example text line.
24080 \begin_layout Description
24081 Middle This is an example text line.
24083 \begin_inset Box Boxed
24092 height_special "totalheight"
24095 \begin_layout Standard
24097 This box is middle-aligned.
24103 This is an example text line.
24106 \begin_layout Description
24107 Bottom This is an example text line.
24109 \begin_inset Box Boxed
24118 height_special "totalheight"
24121 \begin_layout Standard
24123 This box is bottom-aligned.
24129 This is an example text line.
24132 \begin_layout Standard
24133 The horizontal box alignment can be set via LyX's paragraph dialog when
24134 you set the box into its own paragraph.
24137 \begin_layout Standard
24138 \begin_inset VSpace bigskip
24141 When you have chosen an
24146 , the box content can be vertical aligned to:
24149 \begin_layout Description
24150 top This is an example text line.
24152 \begin_inset Box Boxed
24161 height_special "totalheight"
24164 \begin_layout Standard
24166 This box text is top-aligned.
24172 This is an example text line.
24175 \begin_layout Description
24176 middle This is an example text line.
24178 \begin_inset Box Boxed
24187 height_special "totalheight"
24190 \begin_layout Standard
24192 This box text is middle-aligned.
24198 This is an example text line.
24201 \begin_layout Description
24202 bottom This is an example text line.
24204 \begin_inset Box Boxed
24213 height_special "totalheight"
24216 \begin_layout Standard
24218 This box text is bottom-aligned.
24224 This is an example text line.
24227 \begin_layout Description
24228 stretch This is an example text line.
24230 \begin_inset Box Boxed
24239 height_special "totalheight"
24242 \begin_layout Standard
24247 \begin_layout Standard
24252 \begin_layout Standard
24260 This is an example text line.
24263 \begin_layout Standard
24264 To stretch the box content, it must consist of more than one paragraph.
24265 In the example above every text line is in an own paragraph.
24268 \begin_layout Standard
24269 \begin_inset VSpace bigskip
24272 To align the box content horizontally you can use LyX's paragraph dialog
24273 when you have chosen an
24281 \begin_layout Standard
24283 \begin_inset Box Boxed
24292 height_special "totalheight"
24295 \begin_layout Standard
24300 \begin_layout Standard
24305 \begin_layout Standard
24315 \begin_layout Standard
24316 If you haven't set an
24321 , you can align the box content horizontally in the box dialog.
24324 \begin_layout Standard
24326 \begin_inset Box Boxed
24335 height_special "totalheight"
24338 \begin_layout Standard
24340 This box text is horizontally stretched.
24348 \begin_layout Section
24350 \begin_inset LatexCommand label
24351 name "sec:Framed-Boxes"
24356 \begin_inset LatexCommand index
24357 name "Boxes ! Frames"
24364 \begin_layout Standard
24365 The frame style of the box can be specified in the box-dialog in the drop-down
24371 The following frame types are possible:
24374 \begin_layout Description
24375 Rectangular\InsetSpace ~
24376 box This draws a rectangle frame around the box.
24377 The frame line thickness has the size of
24385 \begin_inset Box Boxed
24394 height_special "totalheight"
24397 \begin_layout Standard
24407 \begin_layout Description
24410 thin This draws an oval frame around the box.
24411 The frame line thickness has the size 0.4\InsetSpace \thinspace{}
24414 \begin_inset Box ovalbox
24423 height_special "totalheight"
24426 \begin_layout Standard
24436 \begin_layout Description
24439 thick This draws an oval frame around the box.
24440 The frame line thickness has the size 0.8\InsetSpace \thinspace{}
24443 \begin_inset Box Ovalbox
24452 height_special "totalheight"
24455 \begin_layout Standard
24465 \begin_layout Description
24466 Shadow\InsetSpace ~
24467 box This draws a rectangle frame with a shadow around the box.
24468 The frame line thickness has the size of
24474 , the shadow has a width of 4\InsetSpace \thinspace{}
24477 \begin_inset Box Shadowbox
24486 height_special "totalheight"
24489 \begin_layout Standard
24499 \begin_layout Description
24500 Double\InsetSpace ~
24501 box This draws a double-line rectangle frame around the box.
24502 The line thickness of the inner frame is 0.75\InsetSpace \thinspace{}
24509 , the thickness of the outer frame is 1.5\InsetSpace \thinspace{}
24517 The distance between the lines is 1.5\InsetSpace \thinspace{}
24524 \InsetSpace \thinspace{}
24525 +\InsetSpace \thinspace{}
24526 0.5\InsetSpace \thinspace{}
24529 \begin_inset Box Doublebox
24538 height_special "totalheight"
24541 \begin_layout Standard
24551 \begin_layout Standard
24552 \begin_inset VSpace bigskip
24555 LyX's box label will change to the used frame style when you set a frame.
24556 To be able to use the different frame styles, the LaTeX-package
24561 \begin_inset LatexCommand index
24562 name "LaTeX-packages ! fancybox"
24569 \begin_layout Standard
24570 \begin_inset VSpace bigskip
24573 The default value for the size
24579 is 0.4\InsetSpace \thinspace{}
24581 It can be changed with the following command in ERT to e.\InsetSpace \thinspace{}
24583 2\InsetSpace \thinspace{}
24587 \begin_layout Standard
24597 \begin_layout Standard
24601 \begin_layout Standard
24613 \begin_inset Box Boxed
24622 height_special "totalheight"
24625 \begin_layout Standard
24627 Rectangular box with
24633 \InsetSpace \thinspace{}
24634 =\InsetSpace \thinspace{}
24635 2\InsetSpace \thinspace{}
24645 \begin_layout Standard
24659 \begin_layout Standard
24660 \begin_inset VSpace bigskip
24663 The space between the frame and the box content is for all frame styles
24664 by default 3\InsetSpace \thinspace{}
24666 You can change it by setting the length
24673 For example the command
24676 \begin_layout Standard
24686 \begin_layout Standard
24687 sets the value to 10\InsetSpace \thinspace{}
24688 pt, like for the following box:
24691 \begin_layout Standard
24695 \begin_layout Standard
24707 \begin_inset Box Boxed
24716 height_special "totalheight"
24719 \begin_layout Standard
24721 Rectangular box with
24727 \InsetSpace \thinspace{}
24728 =\InsetSpace \thinspace{}
24729 10\InsetSpace \thinspace{}
24739 \begin_layout Standard
24753 \begin_layout Standard
24754 \begin_inset VSpace bigskip
24757 The diameter of the round corners of the oval boxes can be set with the
24768 \begin_layout Standard
24776 \begin_layout Standard
24777 sets the diameter to 1\InsetSpace \thinspace{}
24782 \begin_layout Standard
24790 \begin_layout Standard
24791 sets the diameter to
24793 num\InsetSpace \thinspace{}
24794 ×\InsetSpace \thinspace{}
24795 minimum(width and heigth of box)
24807 \begin_layout Standard
24811 \begin_layout Standard
24821 \begin_inset Box Ovalbox
24830 height_special "totalheight"
24833 \begin_layout Standard
24841 \InsetSpace \thinspace{}
24842 =\InsetSpace \thinspace{}
24843 1.5\InsetSpace \thinspace{}
24853 \begin_layout Standard
24865 \begin_layout Standard
24866 \begin_inset VSpace bigskip
24869 The size of the shadow can be adjusted by changing the length
24876 It it set to 2\InsetSpace \thinspace{}
24877 pt for the following box by this command:
24880 \begin_layout Standard
24890 \begin_layout Standard
24894 \begin_layout Standard
24906 \begin_inset Box Shadowbox
24915 height_special "totalheight"
24918 \begin_layout Standard
24926 \InsetSpace \thinspace{}
24927 =\InsetSpace \thinspace{}
24928 2\InsetSpace \thinspace{}
24938 \begin_layout Standard
24952 \begin_layout Standard
24953 \begin_inset VSpace bigskip
24956 Changed lengths and widths are valid for all boxes following the commands
24960 \begin_layout Section
24962 \begin_inset LatexCommand label
24963 name "sec:Minipages"
24968 \begin_inset LatexCommand index
24969 name "Boxes ! Minipages"
24976 \begin_layout Standard
24977 Minipages are treated by LaTeX as pages within pages and can therefore for
24978 example have their own footnotes.
24981 \begin_layout Standard
24982 Minipages are useful when you write documents with different languages.
24985 \begin_layout Standard
24986 Below are two example minipages side by side.
24987 Their width is set to 45\InsetSpace \thinspace{}
24988 col% and they are separated by a horizontal fill,
24989 that was inserted via the menu
24991 Insert\SpecialChar \menuseparator
24992 Special\InsetSpace ~
24993 Formatting\SpecialChar \menuseparator
24994 Horizontal\InsetSpace ~
25000 \begin_layout Standard
25001 \begin_inset Box Frameless
25010 height_special "totalheight"
25013 \begin_layout Standard
25016 Dies ist ein deutscher Text.
25017 Dies ist ein deutscher Text.
25018 Dies ist ein deutscher Text.
25019 Dies ist ein deutscher Text.
25020 Dies ist ein deutscher Text.
25021 Dies ist ein deutscher Text.
25022 Dies ist ein deutscher Text.
25023 Dies ist ein deutscher Text.
25024 Dies ist ein deutscher Text.
25025 Dies ist ein deutscher Text.
25026 Dies ist ein deutscher Text.
25027 Dies ist ein deutscher Text.
25028 Dies ist ein deutscher Text
25032 \begin_layout Standard
25035 Dies ist eine deutsche Fußnote.
25041 Dies ist ein deutscher Text.
25042 Dies ist ein deutscher Text.
25050 \begin_inset Box Frameless
25059 height_special "totalheight"
25062 \begin_layout Standard
25063 This is an English Text.
25064 This is an English Text.
25065 This is an English Text.
25066 This is an English Text.
25067 This is an English Text.
25068 This is an English Text.
25069 This is an English Text.
25070 This is an English Text.
25071 This is an English Text.
25072 This is an English Text.
25073 This is an English Text.
25074 This is an English Text.
25075 This is an English Text.
25076 This is an English Text.
25077 This is an English Text.
25078 This is an English Text.
25082 \begin_layout Standard
25083 This is an English footnote.
25088 This is an English Text.
25097 \begin_layout Standard
25098 \begin_inset VSpace bigskip
25101 Another application for minipages are footnotes within tables.
25102 Due to a LaTeX restriction footnotes within tables doesn't appear at the
25103 bottom of the current page.
25104 But when you put the table with the footnote to a minipage, the footnote
25105 will appear at its bottom, numbered with Latin letters.
25106 The footnote number is reset to 1 in every minipage but not outside the
25110 \begin_layout Standard
25111 The footnote of this table doesn't appear:
25112 \begin_inset Tabular
25113 <lyxtabular version="3" rows="3" columns="4">
25115 <column alignment="center" valignment="top" leftline="true" width="0pt">
25116 <column alignment="center" valignment="top" leftline="true" width="0pt">
25117 <column alignment="center" valignment="top" leftline="true" width="0pt">
25118 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25119 <row topline="true">
25120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25123 \begin_layout Standard
25129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25132 \begin_layout Standard
25138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25141 \begin_layout Standard
25146 \begin_layout Standard
25147 This is a footnote within a table.
25157 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25160 \begin_layout Standard
25167 <row topline="true">
25168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25171 \begin_layout Standard
25177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25180 \begin_layout Standard
25186 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25189 \begin_layout Standard
25195 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25198 \begin_layout Standard
25205 <row topline="true" bottomline="true">
25206 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25209 \begin_layout Standard
25215 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25218 \begin_layout Standard
25224 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25227 \begin_layout Standard
25233 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25236 \begin_layout Standard
25250 \begin_layout Standard
25252 \begin_inset Box Frameless
25261 height_special "totalheight"
25264 \begin_layout Standard
25266 \begin_inset Tabular
25267 <lyxtabular version="3" rows="3" columns="4">
25269 <column alignment="center" valignment="top" leftline="true" width="0pt">
25270 <column alignment="center" valignment="top" leftline="true" width="0pt">
25271 <column alignment="center" valignment="top" leftline="true" width="0pt">
25272 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25273 <row topline="true">
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" usebox="none">
25286 \begin_layout Standard
25292 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25295 \begin_layout Standard
25300 \begin_layout Standard
25301 This is a footnote within a table.
25311 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25314 \begin_layout Standard
25321 <row topline="true">
25322 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25325 \begin_layout Standard
25331 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25334 \begin_layout Standard
25340 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25343 \begin_layout Standard
25349 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25352 \begin_layout Standard
25359 <row topline="true" bottomline="true">
25360 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25363 \begin_layout Standard
25369 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25372 \begin_layout Standard
25378 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25381 \begin_layout Standard
25387 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25390 \begin_layout Standard
25409 \begin_layout Standard
25410 \begin_inset VSpace bigskip
25413 The document-wide paragraph settings are ignored within minipages.
25414 That means that there will be no space between paragraphs in minipages
25415 although you set it to e.\InsetSpace \thinspace{}
25421 in the document settings.
25424 \begin_layout Standard
25425 Minipages can also be used to set a background color for text parts, see
25426 section\InsetSpace ~
25428 \begin_inset LatexCommand ref
25429 reference "sub:Color-for-Paragraphs"
25436 \begin_layout Standard
25437 \begin_inset Note Greyedout
25440 \begin_layout Standard
25445 You cannot have floats or margin notes inside minipages but minipages can
25446 be used inside tables, floats, and other boxes.
25454 \begin_layout Section
25456 \begin_inset LatexCommand label
25457 name "sec:Parboxes"
25462 \begin_inset LatexCommand index
25463 name "Boxes ! Parboxes"
25470 \begin_layout Standard
25471 Parboxes are very similar to minipages with the difference that they cannot
25473 The main difference to minipages is that minipages are in contrary to parboxes
25474 no real boxes but LaTeX-environments.
25477 \begin_layout Standard
25479 \begin_inset Box Frameless
25488 height_special "totalheight"
25491 \begin_layout Standard
25492 This a text within a parbox.
25493 This a text within a parbox.
25496 \begin_layout Standard
25497 This footnote won't appear:
25501 \begin_layout Standard
25502 This footnote is inside a parbox and will therefore not appear.
25515 \begin_layout Section
25516 Boxes for Words and Characters
25517 \begin_inset LatexCommand index
25518 name "Boxes ! for Characters"
25525 \begin_layout Subsection
25526 Prevent Hyphenation
25527 \begin_inset LatexCommand label
25528 name "sec:Prevent-Hyphenation"
25533 \begin_inset LatexCommand index
25534 name "Boxes ! to Prevent Hyphenation"
25541 \begin_layout Standard
25542 You can use a special kind of boxes to prevent words or text to be hyphenated.
25545 e is an example text:
25548 \begin_layout Standard
25549 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25555 \begin_layout Standard
25556 To prevent the hyphenation of the word
25557 \begin_inset Quotes eld
25561 \begin_inset Quotes erd
25567 \begin_layout Standard
25575 \begin_layout Standard
25576 in ERT before the word.
25577 Behind the word insert a closing brace
25578 \begin_inset Quotes eld
25586 \begin_inset Quotes erd
25593 \begin_layout Standard
25605 \begin_layout Standard
25606 This is the result:
25609 \begin_layout Standard
25610 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25616 \begin_layout Standard
25629 \begin_layout Standard
25639 \begin_layout Standard
25640 Of course the word now protrudes over the side margin.
25641 To avoid this, add via the menu
25643 Insert\SpecialChar \menuseparator
25644 Special\InsetSpace ~
25645 Formatting\SpecialChar \menuseparator
25653 ) a line break before the word:
25656 \begin_layout Standard
25657 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25665 \begin_layout Standard
25678 \begin_layout Standard
25688 \begin_layout Subsection
25690 \begin_inset LatexCommand label
25691 name "sub:Vertical-Alignment"
25696 \begin_inset LatexCommand index
25697 name "Boxes ! for Vertical Alignment"
25702 \begin_inset LatexCommand index
25703 name "Boxes ! Raiseboxes"
25710 \begin_layout Standard
25711 With the help of the command
25717 you can align words, characters or other boxes vertically to the surrounding
25725 is used with the following scheme:
25728 \begin_layout Standard
25733 raisebox{lift}[height][depth]{box content}
25736 \begin_layout Standard
25737 The lift can be a positive value to raise the box or a negative value to
25741 \begin_layout Standard
25742 To align for example the word
25743 \begin_inset Quotes eld
25747 \begin_inset Quotes erd
25750 so that the bottom of the
25751 \begin_inset Quotes eld
25755 \begin_inset Quotes erd
25759 \begin_inset Quotes eld
25763 \begin_inset Quotes erd
25766 is at the baseline, insert the command
25769 \begin_layout Standard
25779 \begin_layout Standard
25780 in ERT before the word.
25781 Behind the word insert a closing brace
25782 \begin_inset Quotes eld
25790 \begin_inset Quotes erd
25795 This is the result:
25798 \begin_layout Standard
25799 This is a text line with the word
25803 \begin_layout Standard
25815 \begin_inset Quotes eld
25819 \begin_inset Quotes erd
25826 \begin_layout Standard
25836 \begin_layout Standard
25837 \begin_inset VSpace bigskip
25840 When you raise or lower characters in a line, the line distance will be
25844 \begin_layout Standard
25845 This is a text line with the word
25849 \begin_layout Standard
25861 \begin_inset Quotes eld
25865 \begin_inset Quotes erd
25872 \begin_layout Standard
25881 This is a text line with the word
25885 \begin_layout Standard
25895 \begin_inset Quotes eld
25899 \begin_inset Quotes erd
25906 \begin_layout Standard
25916 \begin_layout Standard
25917 If you want to prevent this for a certain reason, set the box height to
25922 \begin_layout Standard
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
25977 raisebox{0.5cm}[0pt]{
25983 \begin_inset Quotes eld
25987 \begin_inset Quotes erd
25994 \begin_layout Standard
26004 \begin_layout Section
26006 \begin_inset LatexCommand label
26007 name "sec:Colored-Boxes"
26012 \begin_inset LatexCommand index
26013 name "Boxes ! Color"
26020 \begin_layout Subsection
26022 \begin_inset LatexCommand index
26023 name "Color ! for Text"
26030 \begin_layout Standard
26031 To color the background of text the text must be put into a so called colorbox.
26032 This requires that the LaTeX-package
26037 \begin_inset LatexCommand index
26038 name "LaTeX-packages ! color"
26042 is loaded in the document preamble with the command
26045 \begin_layout Standard
26050 @ifundef\SpecialChar \textcompwordmark{}
26057 \begin_layout Standard
26068 usepackage{color}}{}
26071 \begin_layout Standard
26076 will be loaded automatically by LyX when you color text
26080 \begin_layout Standard
26081 To avoid that it is loaded twice the command
26085 @ifundef\SpecialChar \textcompwordmark{}
26096 \begin_layout Standard
26097 \begin_inset VSpace medskip
26100 Colorboxes are created with the command
26107 This will be used with the following scheme:
26110 \begin_layout Standard
26115 colorbox{color}{box content}
26118 \begin_layout Standard
26119 The box content can also be a box and colorboxes can also be within other
26123 \begin_layout Standard
26124 The following colors are predefined:
26163 You can also define your own color as described in section\InsetSpace ~
26165 \begin_inset LatexCommand ref
26166 reference "sec:Colored-Tables"
26173 \begin_layout Standard
26174 To have e.\InsetSpace \thinspace{}
26176 a red background for a word, insert the command
26179 \begin_layout Standard
26187 \begin_layout Standard
26188 before the word in ERT.
26189 Behind the word insert a closing brace
26190 \begin_inset Quotes eld
26198 \begin_inset Quotes erd
26203 This is the result:
26206 \begin_layout Standard
26207 This is a line where the word
26211 \begin_layout Standard
26221 \begin_inset Quotes eld
26225 \begin_inset Quotes erd
26232 \begin_layout Standard
26239 has a red background.
26242 \begin_layout Standard
26243 \begin_inset VSpace bigskip
26246 If you would have the box frame in a different color, you can use the command
26253 with the following scheme:
26256 \begin_layout Standard
26261 fcolorbox{frame color}{box color}{box content}
26264 \begin_layout Standard
26278 The frame thickness and the space between the frame and the box content
26279 can be adjusted with the lengths
26291 , respectively, as described in section\InsetSpace ~
26293 \begin_inset LatexCommand ref
26294 reference "sec:Framed-Boxes"
26301 \begin_layout Standard
26302 For the following example the command
26305 \begin_layout Standard
26310 fcolorbox{cyan}{magenta}{
26313 \begin_layout Standard
26317 \begin_layout Standard
26318 Here is an example where the frame line thickness was set to 1\InsetSpace \thinspace{}
26325 \begin_layout Standard
26340 \begin_layout Standard
26344 fcolorbox{cyan}{magenta}{
26349 This is text within a colored, framed box.
26353 \begin_layout Standard
26363 \begin_layout Standard
26364 \begin_inset VSpace bigskip
26367 Of course you can also have colored text inside a colorbox:
26373 \begin_layout Standard
26377 fcolorbox{cyan}{magenta}{
26384 This is colored text within a colored, framed box.
26390 \begin_layout Standard
26401 \begin_layout Standard
26415 \begin_layout Standard
26418 \begin_inset VSpace medskip
26424 \begin_layout Standard
26425 \begin_inset Note Greyedout
26428 \begin_layout Standard
26433 Text in colorboxes cannot have line breaks.
26434 To color multiple text lines or paragraphs, use a box inside a colorbox
26435 as described in the following.
26443 \begin_layout Subsection
26444 Color for Paragraphs
26445 \begin_inset LatexCommand label
26446 name "sub:Color-for-Paragraphs"
26451 \begin_inset LatexCommand index
26452 name "Color ! for Paragraphs"
26459 \begin_layout Standard
26460 To set the background color for more than one text line, put the text into
26462 Before the minipage insert the
26471 \begin_layout Standard
26479 \begin_layout Standard
26481 Behind the minipage insert a closing brace
26482 \begin_inset Quotes eld
26490 \begin_inset Quotes erd
26496 \begin_layout Standard
26500 \begin_layout Standard
26504 colorbox{lightgrey}{
26510 \begin_inset Box Frameless
26519 height_special "totalheight"
26522 \begin_layout Standard
26523 This is text with background color.
26524 This is text with background color.
26527 \begin_layout Standard
26528 \begin_inset VSpace defskip
26531 The text can have footnotes
26535 \begin_layout Standard
26536 Another example footnote
26541 and can include tables and figures.
26544 \begin_layout Standard
26546 \begin_inset Tabular
26547 <lyxtabular version="3" rows="3" columns="3">
26549 <column alignment="center" valignment="top" leftline="true" width="0">
26550 <column alignment="center" valignment="top" leftline="true" width="0">
26551 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
26552 <row topline="true">
26553 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26556 \begin_layout Standard
26562 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26565 \begin_layout Standard
26571 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26574 \begin_layout Standard
26581 <row topline="true">
26582 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26585 \begin_layout Standard
26591 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26594 \begin_layout Standard
26596 \begin_inset Quotes erd
26604 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26607 \begin_layout Standard
26614 <row topline="true" bottomline="true">
26615 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26618 \begin_layout Standard
26624 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26627 \begin_layout Standard
26633 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26636 \begin_layout Standard
26656 \begin_layout Standard
26666 \begin_layout Section
26667 URLs (Uniform Resource Locators)
26668 \begin_inset LatexCommand index
26676 \begin_layout Standard
26677 Links to web pages or email addresses can be inserted via the menu
26679 Insert\SpecialChar \menuseparator
26683 The appearing URL dialog has two fields; the
26691 field for the URL description, which will be typeset as plain text immediately
26695 \begin_layout Standard
26696 Here is an example URL:
26697 \begin_inset LatexCommand url
26698 name "LyX's homepage"
26699 target "http://www.lyx.org"
26706 \begin_layout Standard
26709 Generate\InsetSpace ~
26712 in the URL dialog has only an affect when you export your document to the
26714 \begin_inset Quotes eld
26722 \begin_inset Quotes erd
26728 \begin_layout Standard
26729 You cannot change the style of the link text.
26734 field will have the default text style of the document while the text of
26739 field will have the style
26740 \begin_inset Quotes eld
26748 \begin_inset Quotes erd
26754 \begin_layout Standard
26755 When you use the LaTeX-package
26760 \begin_inset LatexCommand index
26761 name "LaTeX-packages ! hyperref"
26765 to link cross-references in the output, URLs will automatically become
26766 clickable hyperlinks in DVI and PDF-output.
26769 \begin_layout Standard
26770 \begin_inset Note Greyedout
26773 \begin_layout Standard
26778 When you use the following characters: "%", "#", "^", you have to write
26779 them with a preceding backslash, e.\InsetSpace \thinspace{}
26782 \begin_inset Quotes eld
26788 \begin_inset Quotes erd
26792 URLs must not end with a backslash.
26800 \begin_layout Standard
26801 \begin_inset VSpace bigskip
26804 To create real hyperlinks without the force to write the link location to
26805 the text, you can use the command
26808 \begin_layout Standard
26813 href{link location}{link text}
26816 \begin_layout Standard
26818 To get for example a link to LyX's web page, write the command
26821 \begin_layout Standard
26826 href{http://www.lyx.org}{
26829 \begin_layout Standard
26831 Insert after the command the link text
26832 \begin_inset Quotes eld
26836 \begin_inset Quotes erd
26839 as normal text followed by a closing brace
26840 \begin_inset Quotes eld
26848 \begin_inset Quotes erd
26852 This is the result:
26856 \begin_layout Standard
26860 href{http://www.lyx.org}{
26869 \begin_layout Standard
26879 \begin_layout Standard
26880 To link to email addresses, add the prefix
26881 \begin_inset Quotes eld
26889 \begin_inset Quotes erd
26892 to the link location:
26898 \begin_layout Standard
26902 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's documentation}{
26907 lyx-docs mailing list
26911 \begin_layout Standard
26921 \begin_layout Standard
26928 instead of LyX's URL box has the advantage that you can specify the text
26929 style of the link text like for all other text parts.
26930 You can therefore set hyphenation points and forced linebreaks to have
26931 long link text broken at the page margin.
26932 You are furthermore able to change the text style for all URLs in your
26933 document with an option in
26937 's load command and the restrictions mentioned above doesn't apply for
26946 \begin_layout Chapter
26948 \begin_inset LatexCommand index
26949 name "External Stuff"
26956 \begin_layout Standard
26959 Insert\SpecialChar \menuseparator
26962 you can insert external material to your document.
26966 \begin_layout Description
26968 Document Another LyX document; its content is directly inserted to your
26972 \begin_layout Description
26974 Text A text document; every of its text lines is inserted to your document
26978 \begin_layout Description
26982 Lines A text document; its text lines are inserted as they
26984 Empty text lines creates a new paragraph in your document.
26987 \begin_layout Description
26988 External\InsetSpace ~
26989 Material Files in various formats.
26992 \begin_layout Description
26994 Document LyX or LaTeX-documents.
26997 \begin_layout Section
26999 \begin_inset LatexCommand index
27000 name "External Stuff ! External Material"
27007 \begin_layout Standard
27008 The external material feature allows you to insert files to your document
27009 without converting them previously to a format that can be read by the
27010 document output format because LyX takes care of needed conversions.
27011 This is similar to images that can be inserted in various image formats
27015 \begin_layout Standard
27016 External material can be inserted via the
27020 dialog that is accessible with the menu
27022 Insert\SpecialChar \menuseparator
27023 File\SpecialChar \menuseparator
27024 External\InsetSpace ~
27028 Currently the following file types (
27035 \begin_layout Description
27036 ChessDiagram This template supports chess position diagrams made with the
27041 \begin_layout Standard
27045 href{http://en.wikipedia.org/wiki/XBoard}{
27058 \begin_layout Standard
27068 \begin_layout Description
27069 Date This inserts the date in the form
27074 This is a date inserted as external material:
27075 \begin_inset External
27083 The date is not shown within LyX, only in the output.
27084 There are two other methods of inserting a date, via menu
27086 Insert\SpecialChar \menuseparator
27089 and with the LaTeX command
27096 The different methods are compared in Table\InsetSpace ~
27098 \begin_inset LatexCommand ref
27099 reference "tab:Comparison-of-the"
27106 \begin_layout Description
27107 LilyPond This template is used for music notation typeset with the program
27111 \begin_layout Standard
27124 \begin_layout Standard
27128 href{http://en.wikipedia.org/wiki/LilyPond}{
27141 \begin_layout Standard
27149 \begin_inset Note Note
27152 \begin_layout Standard
27159 breaks the line while the remaining text in the line is stretched to the
27168 \begin_layout Description
27169 RasterImage This can be used for bitmap images.
27170 Nearly all popular image formats are supported.
27171 The image can be treated in the
27175 dialog like the images that are usually included via the
27179 dialog as described in section\InsetSpace ~
27181 \begin_inset LatexCommand ref
27182 reference "sec:Graphics-Dialog"
27187 The difference is that only raster images are allowed, that means that
27188 PDF and EPS-images are not supported.
27191 \begin_layout Description
27192 XFig This template supports images created with the program
27196 \begin_layout Standard
27200 href{http://en.wikipedia.org/wiki/Xfig}{
27213 \begin_layout Standard
27223 \begin_layout Standard
27224 \begin_inset Float table
27230 \begin_layout Standard
27231 \begin_inset Caption
27233 \begin_layout Standard
27234 \begin_inset LatexCommand label
27235 name "tab:Comparison-of-the"
27239 Comparison of the date input methods.
27247 \begin_layout Standard
27249 \begin_inset Tabular
27250 <lyxtabular version="3" rows="4" columns="4">
27252 <column alignment="center" valignment="top" leftline="true" width="0">
27253 <column alignment="center" valignment="top" leftline="true" width="0">
27254 <column alignment="center" valignment="top" leftline="true" width="0">
27255 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27256 <row topline="true">
27257 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27260 \begin_layout Standard
27266 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27269 \begin_layout Standard
27272 External Material\SpecialChar \menuseparator
27278 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27281 \begin_layout Standard
27284 Insert\SpecialChar \menuseparator
27290 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27293 \begin_layout Standard
27304 <row topline="true">
27305 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27308 \begin_layout Standard
27314 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27317 \begin_layout Standard
27323 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27326 \begin_layout Standard
27332 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27335 \begin_layout Standard
27342 <row topline="true">
27343 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27346 \begin_layout Standard
27352 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27355 \begin_layout Standard
27361 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27364 \begin_layout Standard
27370 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27373 \begin_layout Standard
27380 <row topline="true" bottomline="true">
27381 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27384 \begin_layout Standard
27390 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27393 \begin_layout Standard
27399 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27402 \begin_layout Standard
27408 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27411 \begin_layout Standard
27430 \begin_layout Standard
27431 When you use the option
27443 dialog, only the path to the inserted file is shown in the output.
27446 material is displayed in LyX either as box like this:
27447 \begin_inset Graphics
27448 filename clipart/ExternalMaterialQt4.png
27453 or as image, depending on the setting in the
27465 \begin_layout Standard
27472 manual explains how you can define your own templates.
27475 \begin_layout Section
27477 \begin_inset LatexCommand index
27478 name "External Stuff ! Child Documents"
27483 \begin_inset LatexCommand index
27484 name "Files ! Include"
27491 \begin_layout Standard
27492 Child documents are used when you have a long document consisting of several
27493 larger parts or sections.
27494 For maintenance it is often useful and sometimes even required to split
27495 the document in several files that can be revised separately.
27496 The different documents are then the so called child documents and a master
27497 document connects them to print the full document or parts of it.
27500 \begin_layout Standard
27501 Included documents are displayed in LyX as a box like this:
27502 \begin_inset Graphics
27503 filename clipart/ChildDocumentQt4.png
27508 To include child documents to a master document use the menu
27510 Insert\SpecialChar \menuseparator
27511 File\SpecialChar \menuseparator
27516 A dialog pops up where you can choose between three include methods:
27519 \begin_layout Description
27520 Include You can include LyX and LaTeX-documents.
27529 dialog, the included documents will be opened in LyX in a new file tab
27530 so that you can modify it.
27535 \begin_layout Standard
27536 Here is a child document inserted using
27541 \begin_inset Include \include{DummyDocument1.lyx}
27549 \begin_layout Standard
27550 The section numbering includes the sections of the included files in the
27551 order they are inserted in the master document.
27552 The included example document has for example a subsection that is numbered
27553 as subsection of this section.
27554 Labels of included documents can be referenced: Subsection\InsetSpace ~
27556 \begin_inset LatexCommand ref
27557 reference "sub:External-Subsection-1"
27564 \begin_layout Standard
27565 The preamble of the child document is ignored, only the preamble of the
27566 master document is used.
27567 Included documents are inserted starting on a new page and end with a pagebreak.
27570 \begin_layout Standard
27571 With the LaTeX-command
27577 you can specify which included child documents are processed when the output
27579 This is useful when you are perhaps only working on a certain chapter of
27580 your large document as this saves compiling time.
27587 is inserted to the master document preamble.
27588 It takes a comma-separated list of the filenames as argument, e.g.
27591 \begin_layout Standard
27596 includeonly{chapter1,chapter5}
27599 \begin_layout Standard
27600 will only process the included files named
27601 \begin_inset Quotes eld
27605 \begin_inset Quotes erd
27609 \begin_inset Quotes eld
27613 \begin_inset Quotes erd
27617 \begin_inset Quotes eld
27621 \begin_inset Quotes erd
27627 \begin_layout Standard
27628 \begin_inset Note Greyedout
27631 \begin_layout Standard
27636 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
27637 w the document in case that the child document uses another document class
27638 than the master document as this will lead to unexpected outputs.
27646 \begin_layout Description
27647 Input This method is very similar to the Include method.
27648 The differences are:
27652 \begin_layout Itemize
27653 Input files don't start with a new page and don't end with a pagebreak.
27656 \begin_layout Itemize
27657 Input files can be previewed in LyX when
27659 Instant\InsetSpace ~
27662 is enabled in LyX's preferences under
27666 feel\SpecialChar \menuseparator
27672 \begin_layout Itemize
27683 \begin_layout Standard
27684 Here is a child document inserted using
27689 \begin_inset Include \input{DummyDocument2.lyx}
27697 \begin_layout Description
27698 Verbatim With this method every text file can be included.
27699 The file is shown in the output with its source code, no command used in
27700 the text is invoked.
27701 You can use the option
27703 Mark spaces in output
27705 that displays the character
27706 \begin_inset Quotes eld
27713 \begin_layout Standard
27723 \begin_inset Quotes erd
27726 for every space character in the source code.
27727 The difference to the method via the menu
27729 Insert\SpecialChar \menuseparator
27730 File\SpecialChar \menuseparator
27734 is that the document content is not shown in LyX.
27737 \begin_layout Standard
27738 Here is a child document inserted as Verbatim:
27739 \begin_inset Include \verbatiminput{DummyTextDocument.txt}
27745 \begin_inset VSpace bigskip
27748 Here is a child document inserted as Verbatim using the
27750 Mark spaces in output
27753 \begin_inset Include \verbatiminput*{DummyTextDocument.txt}
27761 \begin_layout Standard
27762 \begin_inset VSpace bigskip
27768 \begin_layout Standard
27769 \begin_inset Note Greyedout
27772 \begin_layout Standard
27777 As you can see in the examples above, the text of the documents included
27778 as verbatim is not broken at the end of the document lines.
27786 \begin_layout Standard
27787 \begin_inset Note Greyedout
27790 \begin_layout Standard
27795 Including the same document twice in a document using different methods
27796 could cause LaTeX-problems.
27804 \begin_layout Standard
27810 \begin_layout Chapter
27816 \begin_layout Standard
27829 \begin_layout Standard
27837 \begin_inset LatexCommand index
27843 \begin_inset LatexCommand label
27844 name "cha:Units-available-in"
27849 \begin_inset Note Note
27852 \begin_layout Standard
27855 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
27856 are displayed wrongly in PDF-bookmarks.
27857 For more information about this, have a look at
27858 \begin_inset LatexCommand cite
27871 \begin_layout Standard
27872 To understand the units described in this documentation, Table\InsetSpace ~
27874 \begin_inset LatexCommand ref
27875 reference "tab:Units"
27879 explains all units available in LyX.
27882 \begin_layout Standard
27883 \begin_inset Float table
27889 \begin_layout Standard
27890 \begin_inset Caption
27892 \begin_layout Standard
27893 \begin_inset LatexCommand label
27906 \begin_layout Standard
27907 \begin_inset VSpace medskip
27913 \begin_layout Standard
27915 \begin_inset Tabular
27916 <lyxtabular version="3" rows="20" columns="2">
27918 <column alignment="center" valignment="top" leftline="true" width="0">
27919 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27920 <row topline="true" bottomline="true">
27921 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27924 \begin_layout Standard
27930 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27933 \begin_layout Standard
27940 <row topline="true">
27941 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27944 \begin_layout Standard
27950 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27953 \begin_layout Standard
27960 <row topline="true">
27961 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27964 \begin_layout Standard
27970 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27973 \begin_layout Standard
27980 <row topline="true">
27981 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27984 \begin_layout Standard
27990 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27993 \begin_layout Standard
28000 <row topline="true">
28001 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28004 \begin_layout Standard
28010 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28013 \begin_layout Standard
28014 point (72.27\InsetSpace \thinspace{}
28015 pt = 1\InsetSpace \thinspace{}
28022 <row topline="true">
28023 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28026 \begin_layout Standard
28032 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28035 \begin_layout Standard
28036 pica (1\InsetSpace \thinspace{}
28037 pc = 12\InsetSpace \thinspace{}
28044 <row topline="true">
28045 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28048 \begin_layout Standard
28054 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28057 \begin_layout Standard
28058 scaled point (65536\InsetSpace \thinspace{}
28059 sp = 1\InsetSpace \thinspace{}
28066 <row topline="true">
28067 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28070 \begin_layout Standard
28076 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28079 \begin_layout Standard
28080 big point (72\InsetSpace \thinspace{}
28081 bp = 1\InsetSpace \thinspace{}
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 didot (72\InsetSpace \thinspace{}
28104 \begin_inset Formula $\approx$
28107 37.6\InsetSpace \thinspace{}
28114 <row topline="true">
28115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28118 \begin_layout Standard
28124 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28127 \begin_layout Standard
28128 cicero (1\InsetSpace \thinspace{}
28129 cc = 12\InsetSpace \thinspace{}
28136 <row topline="true">
28137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28140 \begin_layout Standard
28146 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28149 \begin_layout Standard
28150 % of original image width
28156 <row topline="true">
28157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28160 \begin_layout Standard
28166 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28169 \begin_layout Standard
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
28196 <row topline="true">
28197 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28200 \begin_layout Standard
28206 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28209 \begin_layout Standard
28216 <row topline="true">
28217 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28220 \begin_layout Standard
28226 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28229 \begin_layout Standard
28236 <row topline="true">
28237 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28240 \begin_layout Standard
28246 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28249 \begin_layout Standard
28256 <row topline="true">
28257 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28260 \begin_layout Standard
28266 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28269 \begin_layout Standard
28276 <row topline="true">
28277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28280 \begin_layout Standard
28286 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28289 \begin_layout Standard
28300 <row topline="true">
28301 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28304 \begin_layout Standard
28310 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28313 \begin_layout Standard
28324 <row topline="true" bottomline="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
28338 math unit (1\InsetSpace \thinspace{}
28339 mu = 1/18\InsetSpace \thinspace{}
28358 \begin_layout Chapter
28359 Output File Formats with Graphics
28360 \begin_inset LatexCommand label
28361 name "cha:Output-File-Formats"
28368 \begin_layout Section
28370 \begin_inset LatexCommand index
28371 name "File Formats ! DVI"
28376 \begin_inset LatexCommand index
28377 name "DVI|see{File Formats}"
28384 \begin_layout Standard
28385 This file type has the extension
28386 \begin_inset Quotes eld
28394 \begin_inset Quotes erd
28399 \begin_inset Quotes eld
28403 \begin_inset Quotes erd
28406 (DVI), because it is completely portable; you can move them from one machine
28407 to another without needing to do any sort of conversion.
28408 At the time when this file-format was developed, this was no matter of
28410 DVIs are used for quick previews and as pre-stage for other output formats,
28414 \begin_layout Standard
28415 \begin_inset Note Greyedout
28418 \begin_layout Standard
28423 DVI-files doesn't contain images, they will only be a linked.
28428 So don't forget this, if you move your
28432 file to another computer.
28433 This property can also slow down your computer when you view the DVI.
28434 Because the DVI-viewer has to convert the image in the background to make
28435 it visible when you scroll in the DVI.
28436 So we recommend to use PDF for files with many images.
28439 \begin_layout Standard
28440 You can export your document to DVI by using the menu
28442 File\SpecialChar \menuseparator
28443 Export\SpecialChar \menuseparator
28447 You can view your document as DVI via the
28451 menu or by using the toolbar button
28452 \begin_inset Graphics
28453 filename ../images/buffer-view_dvi.xpm
28461 \begin_layout Section
28463 \begin_inset LatexCommand label
28464 name "sec:PostScript"
28469 \begin_inset LatexCommand index
28470 name "File Formats ! PostScript"
28475 \begin_inset LatexCommand index
28476 name "PostScript|see{File Formats}"
28483 \begin_layout Standard
28484 This file type has the extension
28485 \begin_inset Quotes eld
28493 \begin_inset Quotes erd
28497 PostScript was developed by the company
28501 as printer language.
28502 The file contains therefore commands that the printer uses to print the
28504 PostScript can be seen as
28505 \begin_inset Quotes eld
28508 programming language
28509 \begin_inset Quotes erd
28512 ; you can calculate with it and draw diagrams and images
28516 \begin_layout Standard
28517 If you are interested to learn more about this, have a look at the LaTeX-package
28523 \begin_inset LatexCommand cite
28534 Due to this ability, the files are often bigger than PDFs.
28537 \begin_layout Standard
28538 PostScript can only contain images in the format
28539 \begin_inset Quotes eld
28542 Encapsulated PostScript
28543 \begin_inset Quotes erd
28546 (EPS, file extension
28547 \begin_inset Quotes eld
28555 \begin_inset Quotes erd
28559 As LyX allows you to use any known image format in your document, it has
28560 to convert images in the background to EPS.
28561 If you have e.g 50 images in your document, LyX has to do 50 conversions
28562 whenever you view or export your document.
28563 This will slow down your work flow with LyX drastically.
28564 So if you plan to use PostScript, you can insert your images directly as
28565 EPS to avoid this problem.
28568 \begin_layout Standard
28569 You can export your document to PostScript using the menu
28571 File\SpecialChar \menuseparator
28572 Export\SpecialChar \menuseparator
28576 You can view your document as PostScript via the
28580 menu or by using the toolbar button
28581 \begin_inset Graphics
28582 filename ../images/buffer-view_ps.xpm
28590 \begin_layout Section
28592 \begin_inset LatexCommand label
28598 \begin_inset LatexCommand index
28599 name "File Formats ! PDF"
28604 \begin_inset LatexCommand index
28612 \begin_layout Standard
28613 This file type has the extension
28614 \begin_inset Quotes eld
28622 \begin_inset Quotes erd
28627 \begin_inset Quotes eld
28630 Portable Document Format
28631 \begin_inset Quotes erd
28634 (PDF) is developed by
28638 as derivative from PostScript.
28639 It is more compressed and it uses much less commands than PostScript.
28641 \begin_inset Quotes eld
28645 \begin_inset Quotes erd
28648 implies, it can be processed at any computer system and the printed output
28649 looks exactly the same.
28652 \begin_layout Standard
28653 PDF can contain images in its own PDF format, in the format
28654 \begin_inset Quotes eld
28657 Joint Photographic Experts Group
28658 \begin_inset Quotes erd
28661 (JPG, file extension
28662 \begin_inset Quotes eld
28670 \begin_inset Quotes erd
28674 \begin_inset Quotes eld
28682 \begin_inset Quotes erd
28685 ), and in the format
28686 \begin_inset Quotes eld
28689 Portable Network Graphics
28690 \begin_inset Quotes erd
28693 (PNG, file extension
28694 \begin_inset Quotes eld
28702 \begin_inset Quotes erd
28706 You can although use any other image format, because LyX converts them
28707 in the background to one of these formats.
28708 But as described in the section about PostScript, the image conversion
28709 will slow down your work flow.
28710 So it is recommended to use images in one of the three mentioned formats.
28713 \begin_layout Standard
28714 You can export your document to PDF via the menu
28716 File\SpecialChar \menuseparator
28719 in three different ways:
28722 \begin_layout Description
28723 PDF This uses the program
28727 that creates a PDF from a PostScript-version of your file.
28728 The PostScript-version is produced by the program
28732 which uses a DVI-version as intermediate step.
28733 So this export variant consist of three conversions.
28736 \begin_layout Description
28738 (dvipdfm) This uses the program
28742 that converts your file in the background to DVI and in a second step to
28746 \begin_layout Description
28748 (pdflatex) This uses the program
28752 that converts your file directly to PDF.
28755 \begin_layout Standard
28756 It is recommended to use
28765 supports all features of actual PDF-versions, is quick and works stable
28771 is not under development and therefore a bit outdated.
28774 \begin_layout Standard
28775 You can view your document as PDF via the
28779 menu or by using the toolbar button
28780 \begin_inset Graphics
28781 filename ../images/buffer-view_pdf2.xpm
28798 \begin_layout Chapter
28799 Explanation of Equation\InsetSpace ~
28801 \begin_inset LatexCommand eqref
28807 \begin_inset LatexCommand label
28808 name "cha:Explanation-of-Equation"
28815 \begin_layout Standard
28821 \begin_inset Formula $W_{\mathrm{tot\, n}}$
28824 can be calculated to
28827 \begin_layout Standard
28828 \begin_inset Formula \begin{equation}
28829 W_{\mathrm{tot}\, n}=n·(W_{g\, n}+2·\backslash\mbox{tabcolsep})+(n+1)·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}\end{equation}
28836 \begin_layout Standard
28838 \begin_inset Formula $W_{g\, n}$
28841 is the given width of all cells.
28848 is the LaTeX-length between the cell text and the cell border, its default
28849 value is 6\InsetSpace \thinspace{}
28857 is the thickness of the cell border line, the default is 0.4\InsetSpace \thinspace{}
28861 \begin_layout Standard
28862 Following equation\InsetSpace ~
28864 \begin_inset LatexCommand eqref
28865 reference "eq:Wtot_n"
28869 , the total width of a multicolumn
28870 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
28876 \begin_layout Standard
28877 \begin_inset Formula \begin{equation}
28878 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2·\backslash\mbox{tabcolsep}+2·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
28885 \begin_layout Standard
28886 By setting equation\InsetSpace ~
28888 \begin_inset LatexCommand eqref
28889 reference "eq:Wtot_n"
28894 \begin_inset LatexCommand eqref
28895 reference "eq:Wtot_mult"
28899 equal we can calculate the needed given width
28900 \begin_inset Formula $W_{g\, n}$
28907 columns are spanned, so that each column has a total width of
28908 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
28914 \begin_layout Standard
28915 \begin_inset Formula \begin{equation}
28916 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)·(2·\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
28923 \begin_layout Bibliography
28924 \begin_inset LatexCommand bibitem
28925 key "latexcompanion"
28929 Frank Mittelbach and Michel Goossens:
28931 The LaTeX Companion Second Edition.
28934 Addison-Wesley, 2004
28937 \begin_layout Bibliography
28938 \begin_inset LatexCommand bibitem
28943 Helmut Kopka and Patrick W.
28946 A Guide to LaTeX Fourth Edition.
28949 Addison-Wesley, 2003
28952 \begin_layout Bibliography
28953 \begin_inset LatexCommand bibitem
28960 LaTeX: A Document Preparation System.
28963 Addison-Wesley, second edition, 1994
28966 \begin_layout Bibliography
28967 \begin_inset LatexCommand bibitem
28976 \begin_layout Standard
28980 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf}
28990 \begin_layout Standard
28997 of the LaTeX-package
29002 \begin_inset LatexCommand index
29003 name "LaTeX-packages ! booktabs"
29010 \begin_layout Bibliography
29011 \begin_inset LatexCommand bibitem
29020 \begin_layout Standard
29024 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf}{
29033 \begin_layout Standard
29040 of the LaTeX-package
29045 \begin_inset LatexCommand index
29046 name "LaTeX-packages ! caption"
29053 \begin_layout Bibliography
29054 \begin_inset LatexCommand bibitem
29063 \begin_layout Standard
29067 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/anleitung.pdf}
29077 \begin_layout Standard
29084 of the LaTeX-package
29089 \begin_layout Bibliography
29090 \begin_inset LatexCommand bibitem
29099 \begin_layout Standard
29103 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf}
29113 \begin_layout Standard
29120 of the LaTeX-package
29122 endf\SpecialChar \textcompwordmark{}
29126 \begin_inset LatexCommand index
29127 name "LaTeX-packages ! endfloat"
29134 \begin_layout Bibliography
29135 \begin_inset LatexCommand bibitem
29144 \begin_layout Standard
29148 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/floatflt/floatflt.pdf}
29158 \begin_layout Standard
29165 of the LaTeX-package
29167 floatf\SpecialChar \textcompwordmark{}
29171 \begin_inset LatexCommand index
29172 name "LaTeX-packages ! floatflt"
29179 \begin_layout Bibliography
29180 \begin_inset LatexCommand bibitem
29189 \begin_layout Standard
29193 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf}
29203 \begin_layout Standard
29210 of the LaTeX-package
29215 \begin_inset LatexCommand index
29216 name "LaTeX-packages ! footmisc"
29223 \begin_layout Bibliography
29224 \begin_inset LatexCommand bibitem
29233 \begin_layout Standard
29237 href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf}{
29246 \begin_layout Standard
29253 of the LaTeX-package
29258 \begin_inset LatexCommand index
29259 name "LaTeX-packages ! hyperref"
29266 \begin_layout Bibliography
29267 \begin_inset LatexCommand bibitem
29276 \begin_layout Standard
29280 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf}
29290 \begin_layout Standard
29297 of the LaTeX-package
29302 \begin_inset LatexCommand index
29303 name "LaTeX-packages ! hyperref"
29310 \begin_layout Bibliography
29311 \begin_inset LatexCommand bibitem
29320 \begin_layout Standard
29324 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.p
29334 \begin_layout Standard
29341 of the LaTeX-package
29346 \begin_inset LatexCommand index
29347 name "LaTeX-packages ! koma-script"
29354 \begin_layout Bibliography
29355 \begin_inset LatexCommand bibitem
29356 key "koma-script-de"
29364 \begin_layout Standard
29368 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguide.p
29378 \begin_layout Standard
29385 of the LaTeX-package
29390 \begin_inset LatexCommand index
29391 name "LaTeX-packages ! koma-script"
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/marginnote/marginnote.
29422 \begin_layout Standard
29429 of the LaTeX-package
29434 \begin_inset LatexCommand index
29435 name "LaTeX-packages ! marginnote"
29442 \begin_layout Bibliography
29443 \begin_inset LatexCommand bibitem
29452 \begin_layout Standard
29456 href{http://tug.org/PSTricks/main.cgi/}{
29465 \begin_layout Standard
29472 of the LaTeX-package
29477 \begin_inset LatexCommand index
29478 name "LaTeX-packages ! PSTricks"
29485 \begin_layout Bibliography
29486 \begin_inset LatexCommand bibitem
29495 \begin_layout Standard
29499 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf}{
29508 \begin_layout Standard
29515 of the LaTeX-package
29520 \begin_inset LatexCommand index
29521 name "LaTeX-packages ! sidecap"
29528 \begin_layout Bibliography
29529 \begin_inset LatexCommand bibitem
29538 \begin_layout Standard
29542 href{http://wiki.lyx.org/LyX/NewInLyX15}{
29551 \begin_layout Standard
29558 about new LyX-features planned for the release
29565 \begin_layout Standard
29566 \begin_inset LatexCommand printindex
29573 \begin_layout Standard
29574 \begin_inset FloatList figure
29581 \begin_layout Standard
29582 \begin_inset FloatList table