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 ready and you are able to estimate where page
18039 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
18755 The set reference position has no effect for references to subfigures.
18763 \begin_layout Section
18765 \begin_inset LatexCommand label
18766 name "sec:Float-Placement"
18771 \begin_inset LatexCommand index
18772 name "Floats ! Placement"
18779 \begin_layout Standard
18780 Right-clicking on a float-box opens a dialog where you can alter the placement
18781 options that LaTeX uses for positioning the float.
18788 is only useful for two-column documents: If you select it, the float will
18789 span across both columns on the page instead of being confined to just
18794 Rotate\InsetSpace ~
18797 is used to rotate floats, see section
18798 \begin_inset LatexCommand ref
18799 reference "sec:Rotated-Floats"
18806 \begin_layout Standard
18807 You can use one ore more of the following options in the float dialog to
18808 set the placement for a particular float when you uncheck the option
18811 default\InsetSpace ~
18817 \begin_layout Description
18820 possible: try to place the float on the position where it is inserted
18823 \begin_layout Description
18826 page: try to place the float on the top of the current page
18829 \begin_layout Description
18830 Bottom\InsetSpace ~
18832 page: try to place the float on the bottom of the current page
18835 \begin_layout Description
18838 floats: try to place the float on an own page
18841 \begin_layout Standard
18842 The order of the above option is
18847 That means, if you use the default placement, LaTeX will first try out
18860 , and then the others.
18861 If you don't use the default, LaTeX will try only the checked options but
18863 If none of the 4 placements are possible the procedure is internally repeated
18864 but it is tried to put the float on the following page.
18867 \begin_layout Standard
18868 By default, each options has its own rules:
18871 \begin_layout Labeling
18872 \labelwidthstring 00.00.0000
18879 only floats occupying less than 70\InsetSpace \thinspace{}
18880 % of the page can be placed at the top
18890 \begin_layout Labeling
18891 \labelwidthstring 00.00.0000
18894 Bottom\InsetSpace ~
18898 : only floats occupying less than 30\InsetSpace \thinspace{}
18899 % of the page can be placed at the bottom
18910 \begin_layout Labeling
18911 \labelwidthstring 00.00.0000
18918 : only if more than 50\InsetSpace \thinspace{}
18919 % of the page are occupied by floats, several floats
18920 can be set together on a page.
18930 \begin_layout Standard
18931 If you don't like these rules, you can ignore them by using the additional
18934 Ignore\InsetSpace ~
18940 You can also redefine the rules with LaTeX-commands that are given in parenthese
18941 s behind the rules description above.
18942 To increase for example the often too small default of the bottom-rule
18943 to 50\InsetSpace \thinspace{}
18944 % of the page, add this line to your document preamble:
18947 \begin_layout Standard
18954 bottomfraction}{0.5}
18957 \begin_layout Standard
18958 Sometimes you might need, under all circumstances, a float to be placed
18959 exactly at the position where it is inserted.
18960 For this case you can use the option
18966 Use this option very rarely and only if the document is nearly ready to
18968 Because the float is then no longer able to
18969 \begin_inset Quotes eld
18973 \begin_inset Quotes erd
18976 when you change your document and this will often destroy the page layout.
18979 \begin_layout Standard
18980 There are no placement options for text wrap floats, because they are always
18981 surrounded by the text of a certain paragraph.
18982 \begin_inset VSpace bigskip
18988 \begin_layout Standard
18989 Sometimes you have the problem that a float is placed at the top of a page
18990 while its corresponding section starts at the middle of the page, so that
18991 the reader could think the float is part of the previous section.
18992 To avoid this the LaTeX-command
18996 suppressf\SpecialChar \textcompwordmark{}
19000 It suppresses a given float placement for the page where it is inserted
19001 and can therefore be used to avoid that floats could be set before a section
19003 To get this, add these commands to your document preamble:
19006 \begin_layout Standard
19023 suppressf\SpecialChar \textcompwordmark{}
19029 \begin_layout Standard
19030 You can define the same for all section headings, like chapters and subsections.
19031 This definition is not recommended to be used for small text parts like
19032 subsubsections because LaTeX may then have problems to find a suitable
19036 \begin_layout Standard
19037 \begin_inset VSpace bigskip
19040 In some cases it is required to have all figures/tables at the end of the
19042 For this purpose the LaTeX-package
19044 endf\SpecialChar \textcompwordmark{}
19048 \begin_inset LatexCommand index
19049 name "LaTeX-packages ! endfloat"
19054 It puts all figure and table floats at the end of the document into own
19056 At the original float position a text hint like
19057 \begin_inset Quotes eld
19062 [Figure\InsetSpace ~
19066 \begin_inset Quotes erd
19070 The endfloat-package is loaded in the preamble with the line
19073 \begin_layout Standard
19078 usepackage[options]{endf\SpecialChar \textcompwordmark{}
19082 \begin_layout Standard
19083 There are various package options to format the created figure/table sections.
19084 For more information we refer to the
19086 endf\SpecialChar \textcompwordmark{}
19090 \begin_inset LatexCommand cite
19098 \begin_inset Note Greyedout
19101 \begin_layout Standard
19104 Note: endf\SpecialChar \textcompwordmark{}
19107 doesn't provide an automatic translation for the text hint, you have to
19108 do this manually, see section\InsetSpace ~
19110 \begin_inset LatexCommand cite
19123 \begin_inset Note Greyedout
19126 \begin_layout Standard
19131 There is currently a bug in
19133 endf\SpecialChar \textcompwordmark{}
19136 when the caption contains a German
19137 \begin_inset Quotes eld
19141 \begin_inset Quotes erd
19145 Use in this case the command
19146 \begin_inset Quotes eld
19156 \begin_inset Quotes erd
19160 \begin_inset Quotes eld
19164 \begin_inset Quotes erd
19175 \begin_layout Standard
19176 \begin_inset VSpace bigskip
19179 For more details about float placements, have a look at LaTeX books,
19180 \begin_inset LatexCommand cite
19181 key "latexcompanion,latexguide,latexbook"
19188 \begin_layout Section
19190 \begin_inset LatexCommand label
19191 name "sec:Rotated-Floats"
19196 \begin_inset LatexCommand index
19197 name "Floats ! Rotating"
19204 \begin_layout Standard
19205 Especially for wide tables you might have floats rotated.
19206 To rotate a whole float including the caption, right-click on the float-box
19209 Rotate\InsetSpace ~
19215 \begin_layout Standard
19216 Rotated floats are always placed on its own page (or column, when you have
19217 a two-column document).
19218 They are normally rotated so that you can read them from the outside margin
19219 -- to the left on even pages, to the right on odd pages.
19222 \begin_layout Standard
19223 Referencing rotated floats is the same like for normal floats, the caption
19224 format is also the same: Table\InsetSpace ~
19226 \begin_inset LatexCommand ref
19227 reference "tab:Rotated-table"
19231 is an example of a rotated table float.
19234 \begin_layout Standard
19235 \begin_inset Note Greyedout
19238 \begin_layout Standard
19243 Not all DVI-viewers are able to display rotated floats.
19251 \begin_layout Standard
19252 \begin_inset Float table
19257 \begin_layout Standard
19258 \begin_inset Caption
19260 \begin_layout Standard
19261 \begin_inset LatexCommand label
19262 name "tab:Rotated-table"
19274 \begin_layout Standard
19276 \begin_inset Tabular
19277 <lyxtabular version="3" rows="1" columns="5">
19279 <column alignment="center" valignment="top" leftline="true" width="0">
19280 <column alignment="center" valignment="top" leftline="true" width="0">
19281 <column alignment="center" valignment="top" leftline="true" width="0">
19282 <column alignment="center" valignment="top" leftline="true" width="0">
19283 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19284 <row topline="true" bottomline="true">
19285 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19288 \begin_layout Standard
19294 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19297 \begin_layout Standard
19303 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19306 \begin_layout Standard
19312 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19315 \begin_layout Standard
19321 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19324 \begin_layout Standard
19343 \begin_layout Section
19345 \begin_inset LatexCommand index
19346 name "Caption ! Formatting"
19351 \begin_inset LatexCommand index
19352 name "Floats ! Caption Formatting"
19357 \begin_inset LatexCommand index
19358 name "LaTeX-packages ! caption"
19363 \begin_inset LatexCommand label
19364 name "sec:Caption-Formatting"
19371 \begin_layout Standard
19376 environment is the default paragraph environment for
19381 On the LyX screen captions appear as label, e.\InsetSpace \thinspace{}
19384 \begin_inset Quotes eld
19392 \begin_inset Quotes erd
19395 followed by the caption text.
19397 \begin_inset Quotes eld
19401 \begin_inset Quotes erd
19404 is substituted in the printed output by the actual reference number.
19405 By default the label and the number are in the same font as the caption
19406 text and a colon follows the number to divide then label from the text.
19407 This caption format is not suitable for all document formats.
19411 \begin_layout Standard
19412 To change the default caption format, load the LaTeX-package
19417 \begin_inset LatexCommand index
19418 name "LaTeX-packages ! caption"
19422 in the document preamble with this line:
19425 \begin_layout Standard
19430 usepackage[format definition]{caption}
19433 \begin_layout Standard
19434 To have for example the label and the number in sans-serif bold font and
19435 the table captions always above the table like in this document, use the
19439 \begin_layout Standard
19444 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
19447 \begin_layout Standard
19448 You can also define different caption formats for the different float types.
19449 In this case load the
19453 package without format specific options and define the different formats
19454 with the help of the command
19457 \begin_layout Standard
19462 captionsetup[float type]{format definition}
19465 \begin_layout Standard
19466 in the document preamble.
19467 For example the caption formats of Figure\InsetSpace ~
19469 \begin_inset LatexCommand ref
19470 reference "fig:This-is-an-fig"
19474 and Table\InsetSpace ~
19476 \begin_inset LatexCommand ref
19477 reference "tab:This-is-an-tab"
19481 can be created using these commands in the document preamble:
19484 \begin_layout Standard
19489 usepackage[tableposition=top]{caption}
19497 captionsetup[f\SpecialChar \textcompwordmark{}
19498 igure]{labelfont={tt}, textfont=it, indention=1cm,%
19504 \begin_layout Standard
19512 captionsetup[figure]
19523 captionsetup[table]{labelfont={bf,sf}}
19526 \begin_layout Standard
19527 \begin_inset Note Greyedout
19530 \begin_layout Standard
19539 has no effect when a
19544 \begin_inset LatexCommand index
19545 name "LaTeX-packages ! koma-script"
19549 document class is used.
19550 In this case the document class option
19562 \begin_layout Standard
19563 For more information about the package
19567 we refer to its documentation
19568 \begin_inset LatexCommand cite
19569 key "caption,caption-de"
19576 \begin_layout Standard
19577 To change the label name from e.g.
19579 \begin_inset Quotes eld
19583 \begin_inset Quotes erd
19587 \begin_inset Quotes eld
19591 \begin_inset Quotes erd
19594 use this preamble command:
19597 \begin_layout Standard
19604 fnum@figure}{Image~
19609 \begin_layout Standard
19616 inserts the figure number and
19619 \begin_inset Quotes eld
19625 \begin_inset Quotes erd
19628 creates a protected space.
19631 \begin_layout Standard
19632 \begin_inset VSpace bigskip
19640 \begin_inset LatexCommand index
19641 name "LaTeX-packages ! koma-script"
19647 article (koma-script)
19655 letter (koma-script)
19659 report (koma-script)
19661 \InsetSpace \thinspace{}
19662 ), you can alternatively to the
19670 's built-in command
19677 For example, to have the caption label in bold, add this command to your
19681 \begin_layout Standard
19686 setkomafont{captionlabel}{
19691 \begin_layout Standard
19692 For more information about
19703 \begin_inset LatexCommand cite
19704 key "koma-script,koma-script-de"
19711 \begin_layout Standard
19715 \begin_layout Standard
19719 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
19726 \begin_inset Note Note
19729 \begin_layout Standard
19730 The caption format is changed only for this example.
19738 \begin_layout Standard
19739 \begin_inset Float figure
19745 \begin_layout Standard
19747 \begin_inset Graphics
19748 filename clipart/mobius.eps
19757 \begin_layout Standard
19758 \begin_inset Caption
19760 \begin_layout Standard
19761 \begin_inset LatexCommand label
19762 name "fig:This-is-an-fig"
19766 This is an example figure caption that is longer than one line to show the
19767 different caption format.
19768 Here a self-defined caption format is used.
19781 \begin_layout Standard
19785 \begin_layout Standard
19789 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
19798 \begin_layout Standard
19799 \begin_inset Float table
19805 \begin_layout Standard
19806 \begin_inset Caption
19808 \begin_layout Standard
19809 \begin_inset LatexCommand label
19810 name "tab:This-is-an-tab"
19814 This is an example table caption that is longer than one line to show the
19815 different caption format.
19816 Here the standard caption format for tables in this document is used.
19824 \begin_layout Standard
19826 \begin_inset Tabular
19827 <lyxtabular version="3" rows="1" columns="5">
19829 <column alignment="center" valignment="top" leftline="true" width="0">
19830 <column alignment="center" valignment="top" leftline="true" width="0">
19831 <column alignment="center" valignment="top" leftline="true" width="0">
19832 <column alignment="center" valignment="top" leftline="true" width="0">
19833 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19834 <row topline="true" bottomline="true">
19835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19838 \begin_layout Standard
19844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19847 \begin_layout Standard
19853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19856 \begin_layout Standard
19862 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19865 \begin_layout Standard
19871 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19874 \begin_layout Standard
19893 \begin_layout Section
19895 \begin_inset LatexCommand index
19896 name "Caption ! Placement"
19901 \begin_inset LatexCommand index
19902 name "Floats ! Caption Placement"
19907 \begin_inset LatexCommand label
19908 name "sec:Caption-Placement"
19915 \begin_layout Standard
19916 The common caption placement rule is:
19919 \begin_layout Description
19920 Figure: Caption is set below the figure
19923 \begin_layout Description
19924 Table: Caption is set above the table
19927 \begin_layout Standard
19928 Having the caption above the table is unfortunately not supported in LaTeX's
19930 That means if you are using the document classes
19946 there will be no space between the caption and the table.
19947 To insert the needed space, add the following option to the load command
19948 of the LaTeX-package
19952 in your document preamble
19956 \begin_layout Standard
19957 See section\InsetSpace ~
19959 \begin_inset LatexCommand ref
19960 reference "sec:Caption-Formatting"
19964 for more information of the package
19976 \begin_layout Standard
19982 \begin_layout Standard
19988 \begin_inset LatexCommand index
19989 name "LaTeX-packages ! koma-script"
19995 article (koma-script)
20003 letter (koma-script)
20007 report (koma-script)
20009 \InsetSpace \thinspace{}
20010 ), you can alternatively to the
20014 package set the document class option
20018 , or you can use the environment
20020 caption\InsetSpace ~
20030 \begin_layout Standard
20031 \begin_inset VSpace bigskip
20034 It is also possible to set the caption beside a figure or table.
20035 To get this the LaTeX-package
20040 \begin_inset LatexCommand index
20041 name "LaTeX-packages ! sidecap"
20045 has to be loaded in the document preamble with the line
20048 \begin_layout Standard
20053 usepackage[option]{sidecap}
20056 \begin_layout Standard
20057 If you set no option, the caption is placed on the side of the outer page
20058 margin -- to the right on odd pages, to the left on even pages.
20059 You can change the placement to inner margin with the option
20064 To force the placement always to the right or left, use the option
20075 \begin_layout Standard
20076 To place in LyX the caption of a float on the side, it is necessary to add
20077 these commands to the document preamble:
20080 \begin_layout Standard
20086 \begin_layout Standard
20099 \begin_layout Standard
20120 \begin_layout Standard
20141 \begin_layout Standard
20152 renewenvironment{table}{
20159 \begin_layout Standard
20172 \begin_layout Standard
20193 \begin_layout Standard
20211 \begin_layout Standard
20224 \begin_layout Standard
20239 f\SpecialChar \textcompwordmark{}
20246 \begin_layout Standard
20259 MyEndf\SpecialChar \textcompwordmark{}
20262 endf\SpecialChar \textcompwordmark{}
20269 \begin_layout Standard
20280 renewenvironment{f\SpecialChar \textcompwordmark{}
20283 begin{SCf\SpecialChar \textcompwordmark{}
20286 end{SCf\SpecialChar \textcompwordmark{}
20290 \begin_layout Standard
20303 \begin_layout Standard
20316 f\SpecialChar \textcompwordmark{}
20325 \begin_layout Standard
20338 endf\SpecialChar \textcompwordmark{}
20341 MyEndf\SpecialChar \textcompwordmark{}
20345 \begin_layout Standard
20351 \begin_layout Standard
20352 The commands allow you to redefine the floats so that the caption is set
20354 For figure floats use the command
20357 \begin_layout Standard
20365 \begin_layout Standard
20366 in ERT before the float.
20367 Behind the float insert the command
20370 \begin_layout Standard
20378 \begin_layout Standard
20379 in ERT to get back to the original float definition.
20382 \begin_layout Standard
20383 For table floats use the corresponding commands
20386 \begin_layout Standard
20400 \begin_layout Standard
20401 Figure\InsetSpace ~
20403 \begin_inset LatexCommand ref
20404 reference "fig:cap-beside-fig"
20408 and Table\InsetSpace ~
20410 \begin_inset LatexCommand ref
20411 reference "tab:cap-beside-tab"
20415 are examples where the caption is set beside.
20418 \begin_layout Standard
20419 You can see in the examples that the caption text appears at the top of
20420 the floats for table floats and at the bottom for figure floats.
20421 To change this, you can use the command
20424 \begin_layout Standard
20429 sidecaptionvpos{float type}{placement}
20432 \begin_layout Standard
20433 in the document preamble or in ERT before the float.
20434 The float type is either
20442 , the placement can be
20443 \begin_inset Quotes eld
20451 \begin_inset Quotes erd
20455 \begin_inset Quotes eld
20463 \begin_inset Quotes erd
20467 \begin_inset Quotes eld
20475 \begin_inset Quotes erd
20479 To have for example the caption of figure floats vertically centered, use
20483 \begin_layout Standard
20488 sidecaptionvpos{f\SpecialChar \textcompwordmark{}
20492 \begin_layout Standard
20493 This was used for Figure\InsetSpace ~
20495 \begin_inset LatexCommand ref
20496 reference "fig:cap-beside-fig-2"
20503 \begin_layout Standard
20504 \begin_inset VSpace defskip
20507 For more information about the package
20511 we refer to its documentation
20512 \begin_inset LatexCommand cite
20520 \begin_layout Standard
20521 \begin_inset Note Greyedout
20524 \begin_layout Standard
20534 \begin_inset LatexCommand index
20535 name "LaTeX-packages ! hypcap"
20539 , described in section\InsetSpace ~
20541 \begin_inset LatexCommand ref
20542 reference "sub:Reference-Position"
20546 , has no effect on floats with the caption set beside.
20554 \begin_layout Standard
20558 \begin_layout Standard
20570 \begin_layout Standard
20571 \begin_inset Float figure
20576 \begin_layout Standard
20577 \begin_inset Graphics
20578 filename clipart/escher-lsd.eps
20586 \begin_layout Standard
20587 \begin_inset Caption
20589 \begin_layout Standard
20590 \begin_inset LatexCommand label
20591 name "fig:cap-beside-fig"
20595 This is a caption beside a figure.
20608 \begin_layout Standard
20612 \begin_layout Standard
20624 \begin_layout Standard
20625 \begin_inset Float table
20630 \begin_layout Standard
20631 \begin_inset Caption
20633 \begin_layout Standard
20634 \begin_inset LatexCommand label
20635 name "tab:cap-beside-tab"
20639 This is a caption beside a table.
20647 \begin_layout Standard
20648 \begin_inset Tabular
20649 <lyxtabular version="3" rows="4" columns="5">
20651 <column alignment="center" valignment="top" leftline="true" width="0">
20652 <column alignment="center" valignment="top" leftline="true" width="0">
20653 <column alignment="center" valignment="top" leftline="true" width="0">
20654 <column alignment="center" valignment="top" leftline="true" width="0">
20655 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
20656 <row topline="true">
20657 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20660 \begin_layout Standard
20666 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20669 \begin_layout Standard
20675 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20678 \begin_layout Standard
20684 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20687 \begin_layout Standard
20693 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20696 \begin_layout Standard
20703 <row topline="true">
20704 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20707 \begin_layout Standard
20713 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20716 \begin_layout Standard
20722 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20725 \begin_layout Standard
20731 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20734 \begin_layout Standard
20740 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20743 \begin_layout Standard
20750 <row topline="true">
20751 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20754 \begin_layout Standard
20760 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20763 \begin_layout Standard
20769 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20772 \begin_layout Standard
20778 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20781 \begin_layout Standard
20787 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20790 \begin_layout Standard
20797 <row topline="true" bottomline="true">
20798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20801 \begin_layout Standard
20807 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20810 \begin_layout Standard
20816 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20819 \begin_layout Standard
20825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20828 \begin_layout Standard
20834 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20837 \begin_layout Standard
20856 \begin_layout Standard
20860 \begin_layout Standard
20872 \begin_layout Standard
20876 \begin_layout Standard
20880 sidecaptionvpos{figure}{c}
20886 \begin_inset Float figure
20891 \begin_layout Standard
20892 \begin_inset Graphics
20893 filename clipart/escher-lsd.eps
20901 \begin_layout Standard
20902 \begin_inset Caption
20904 \begin_layout Standard
20905 \begin_inset LatexCommand label
20906 name "fig:cap-beside-fig-2"
20910 This is a vertically centered caption beside a figure.
20923 \begin_layout Standard
20927 \begin_layout Standard
20939 \begin_layout Section
20941 \begin_inset LatexCommand label
20942 name "sec:Listings-of-Floats"
20947 \begin_inset LatexCommand index
20948 name "Floats ! Listings"
20955 \begin_layout Standard
20956 Similar to the the table of contents where the sections of the document
20957 are listed, there are listings for all float types, like the figures of
20959 You can insert them via the
20961 Insert\SpecialChar \menuseparator
20969 \begin_layout Standard
20970 The list entries are the float captions or its short title, the float number,
20971 and the page number where they appear in the document.
20974 \begin_layout Standard
20975 You can find the list of figures and tables at the end of this document.
20978 \begin_layout Chapter
20982 \begin_layout Section
20986 \begin_layout Standard
20999 \begin_layout Standard
21007 \begin_inset LatexCommand label
21008 name "sec:LyX-Notes"
21013 \begin_inset LatexCommand index
21014 name "Notes ! LyX Notes"
21019 \begin_inset Note Note
21022 \begin_layout Standard
21025 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
21026 are displayed wrongly in PDF-bookmarks.
21027 For more information about this, have a look at
21028 \begin_inset LatexCommand cite
21041 \begin_layout Standard
21042 Notes are inserted with the toolbar button
21043 \begin_inset Graphics
21044 filename ../images/note-insert.xpm
21051 Insert\SpecialChar \menuseparator
21055 There are three types of notes:
21058 \begin_layout Description
21060 Note This note type is for internal notes that won't appear in the output.
21061 Its note-box looks like this:
21066 \begin_inset Graphics
21067 filename clipart/LyXNoteImageQt4.png
21074 \begin_inset Note Note
21077 \begin_layout Standard
21078 This is text in a note box that doesn't appear in the output.
21086 \begin_layout Description
21087 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
21088 ent, when you export the document to LaTeX via the menu
21090 File\SpecialChar \menuseparator
21091 Export\SpecialChar \menuseparator
21092 LaTeX (pdflatex) / LaTeX (plain)
21095 Its note-box looks like this:
21100 \begin_inset Graphics
21101 filename clipart/CommentNoteImageQt4.png
21108 \begin_inset Note Comment
21111 \begin_layout Standard
21112 This is text in a note box that only appears as comment in LaTeX-files.
21120 \begin_layout Description
21121 Greyed\InsetSpace ~
21122 Out This note will appear in the output as grey text.
21123 Its note-box looks like this:
21128 \begin_inset Graphics
21129 filename clipart/GreyedOutNoteImageQt4.png
21141 \begin_layout Standard
21145 renewenvironment{lyxgreyedout}
21148 \begin_layout Standard
21152 textcolor[gray]{0.8}
21162 \begin_inset Note Greyedout
21165 \begin_layout Standard
21170 \begin_layout Standard
21171 This is an example footnote within a greyed out note.
21176 of a comment that appears in the output as grey text.
21185 \begin_layout Standard
21189 renewenvironment{lyxgreyedout}
21192 \begin_layout Standard
21206 \begin_inset Note Note
21209 \begin_layout Standard
21210 The greyed out note is here redefined to show it with the original LyX definitio
21211 n because greyed out notes are redefined in the preamble of this document,
21212 as described below, to have blue text.
21221 As you can see in the example, the first line of greyed out notes is a bit
21222 indented and greyed out notes can have footnotes.
21225 \begin_layout Description
21226 Framed This note will appear in the output as framed text.
21227 Its note-box looks like this:
21232 \begin_inset Graphics
21233 filename clipart/FramedNoteImageQt4.png
21240 \begin_inset Note Framed
21243 \begin_layout Standard
21244 This is text in a note box that appears framed in the output.
21249 In contrary to framed boxes
21253 \begin_layout Standard
21254 Framed boxes are described in section\InsetSpace ~
21256 \begin_inset LatexCommand ref
21257 reference "sec:Framed-Boxes"
21266 the frame uses always the whole text width and the note is set into its
21270 \begin_layout Description
21271 Shaded This note will appear in the output with red background color.
21272 Its note box looks like this:
21277 \begin_inset Graphics
21278 filename clipart/ShadedNoteImageQt4.png
21285 \begin_inset Note Shaded
21288 \begin_layout Standard
21289 This text in a note box appears in the output with red background.
21294 In contrary to colored boxes
21298 \begin_layout Standard
21299 Colored boxes are described in section\InsetSpace ~
21301 \begin_inset LatexCommand ref
21302 reference "sec:Colored-Boxes"
21311 the note uses always the whole text width and the note is set into its
21315 \begin_layout Standard
21316 \begin_inset VSpace bigskip
21319 When you use the toolbar button to insert notes, a
21325 You can switch between the three note types by right-clicking on the note-box.
21330 If you want to turn existing text into a note, mark it and click on the
21346 \begin_layout Standard
21347 \begin_inset VSpace bigskip
21350 You can change the text color of the greyed out notes in the preamble with
21351 the following command:
21354 \begin_layout Standard
21359 renewenvironment{lyxgreyedout}
21365 \begin_layout Standard
21383 \begin_layout Standard
21384 The available colors and the method to define own colors is explained in
21385 section\InsetSpace ~
21387 \begin_inset LatexCommand ref
21388 reference "sec:Colored-Tables"
21395 \begin_layout Standard
21396 Notes that appear in blue in this document are set using greyed out notes
21400 \begin_layout Standard
21401 \begin_inset VSpace bigskip
21407 \begin_layout Standard
21416 notes can be set in the
21423 \begin_layout Standard
21424 The default frame width for
21428 notes is 0.4\InsetSpace \thinspace{}
21429 pt; it can be changed by changing the size
21436 The default space between the note content and the frame is 9\InsetSpace \thinspace{}
21438 be changed by changing the size
21445 For example the frame appearance of the following
21449 note is set with the ERT commands
21452 \begin_layout Standard
21462 \begin_layout Standard
21466 \begin_layout Standard
21478 \begin_inset Note Framed
21481 \begin_layout Standard
21495 \begin_layout Standard
21509 \begin_layout Standard
21510 \begin_inset VSpace bigskip
21516 \begin_layout Standard
21521 notes the default space between the note content and the note border is
21522 3\InsetSpace \thinspace{}
21523 pt; it can be changed by changing the size
21531 The default background color red can be changed with the command
21535 def\SpecialChar \textcompwordmark{}
21543 def\SpecialChar \textcompwordmark{}
21546 command is explained in section\InsetSpace ~
21548 \begin_inset LatexCommand ref
21549 reference "sec:Colored-Tables"
21557 \begin_layout Standard
21564 \SpecialChar \textcompwordmark{}
21569 requires the LaTeX-package
21573 in the preamble, see section\InsetSpace ~
21575 \begin_inset LatexCommand ref
21576 reference "sec:Colored-Boxes"
21588 \begin_layout Standard
21589 For example the appearance of the following
21593 note is set with the ERT commands
21596 \begin_layout Standard
21609 def\SpecialChar \textcompwordmark{}
21610 inecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21613 \begin_layout Standard
21617 \begin_layout Standard
21630 \begin_layout Standard
21634 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21640 \begin_inset Note Shaded
21643 \begin_layout Standard
21646 This is yellow text in a
21656 note with darkgreen background.
21665 \begin_layout Standard
21678 \begin_layout Standard
21682 definecolor{shadecolor}{rgb}{1,0,0}
21690 \begin_layout Section
21692 \begin_inset LatexCommand label
21693 name "sec:Footnotes"
21698 \begin_inset LatexCommand index
21699 name "Notes ! Footnotes"
21704 \begin_inset LatexCommand index
21712 \begin_layout Standard
21713 Footnotes can be inserted using the toolbar button
21714 \begin_inset Graphics
21715 filename ../images/footnote-insert.xpm
21722 Insert\SpecialChar \menuseparator
21734 then the following footnote-box:
21735 \begin_inset Graphics
21736 filename clipart/footnoteQt4.png
21745 where you can enter the footnote text.
21746 If you want to turn existing text into a footnote, mark it and click on
21762 \begin_layout Standard
21763 Here is an example footnote:
21771 \begin_layout Standard
21772 \begin_inset LatexCommand label
21773 name "foot:This-is-an"
21777 This is an example footnote.
21790 \begin_layout Standard
21794 newcounter{MyRepeatFoot}
21797 \begin_layout Standard
21801 setcounter{MyRepeatFoot}{
21811 \begin_layout Standard
21812 The footnote will appear in the output as a superscript number at the text
21813 position where the footnote box is placed.
21814 The footnote text is placed at the bottom of the current page.
21815 The footnote number is calculated by LaTeX, the numbers are consecutive.
21816 It depends on your document-class, if the footnote number is reset for
21820 \begin_layout Standard
21821 Footnotes can be referenced like floats: Insert a label into the footnote
21822 and cross-reference this label in the text as described in section\InsetSpace ~
21824 \begin_inset LatexCommand ref
21825 reference "sec:Referencing-Floats"
21831 This is a cross-reference of Footnote\InsetSpace ~
21833 \begin_inset LatexCommand ref
21834 reference "foot:This-is-an"
21841 \begin_inset Note Greyedout
21844 \begin_layout Standard
21849 LyX doesn't provide a prefix for labels in footnotes, so you have to insert
21850 e.\InsetSpace \thinspace{}
21855 \begin_inset Quotes eld
21861 \begin_inset Quotes erd
21864 manually when you want to use the reference style
21866 Formatted\InsetSpace ~
21877 \begin_layout Standard
21878 \begin_inset VSpace defskip
21881 To use footnotes within tables, you have to use minipages, see section\InsetSpace ~
21883 \begin_inset LatexCommand ref
21884 reference "sec:Minipages"
21889 Footnotes within longtables are described in section\InsetSpace ~
21891 \begin_inset LatexCommand ref
21892 reference "sub:Footnotes-in-Longtables"
21899 \begin_layout Standard
21900 \begin_inset VSpace defskip
21903 To create only a mark for a footnote, use the command
21907 footnotemark[number]
21910 This is used when you have the same annotation several times in a text
21911 but doesn't want to print the footnote text every time.
21914 the number of the repeating footnote while you are writing the text, you
21915 have to store its number.
21916 For the following footnote mark example, these commands were inserted in
21917 ERT behind Footnote\InsetSpace ~
21919 \begin_inset LatexCommand ref
21920 reference "foot:This-is-an"
21924 to store the footnote number:
21927 \begin_layout Standard
21932 newcounter{MyRepeatFoot}
21936 setcounter{MyRepeatFoot}{
21941 \begin_layout Standard
21942 The footnote mark was then created with this command:
21945 \begin_layout Standard
21955 \begin_layout Standard
21956 Here is an example footnote mark:
21964 \begin_layout Standard
21978 \begin_layout Subsection
21980 \begin_inset LatexCommand label
21981 name "sub:Footnote-Numbering"
21986 \begin_inset LatexCommand index
21987 name "Footnotes ! Numbering"
21994 \begin_layout Standard
21995 To reset the footnote number back to 1 after each section
21997 , add this command to your document preamble:
22000 \begin_layout Standard
22005 @addtoreset{footnote}{section}
22008 \begin_layout Standard
22009 \begin_inset VSpace bigskip
22012 The following preamble command changes the footnote numbering style to small
22016 \begin_layout Standard
22028 \begin_layout Standard
22032 \begin_layout Standard
22045 This is a footnote with roman numbering:
22049 \begin_layout Standard
22050 This is an example footnote with roman numbering.
22059 \begin_layout Standard
22075 \begin_layout Standard
22076 To change the numbering style to capital roman numerals replace in the command
22091 \begin_inset Quotes eld
22095 \begin_inset Quotes erd
22098 footnotes with capital or small Latin letters use
22112 \begin_inset Quotes eld
22116 \begin_inset Quotes erd
22119 footnotes with symbols use
22128 \begin_layout Standard
22129 \begin_inset Note Greyedout
22132 \begin_layout Standard
22137 You can only number 26 footnotes with Latin letters, because this numbering
22138 is limited to single letters.
22146 \begin_inset Note Greyedout
22149 \begin_layout Standard
22154 You can only number 9 footnotes with symbols.
22162 \begin_layout Standard
22163 To return to the default numbering style when you changed to another one,
22176 in the command above.
22179 \begin_layout Standard
22180 \begin_inset VSpace bigskip
22186 \begin_layout Standard
22187 If you want to have footnotes numbered in the scheme
22188 \begin_inset Quotes eld
22192 \begin_inset Quotes erd
22195 , add the following command to your document preamble:
22198 \begin_layout Standard
22203 numberwithin{footnote}{chapter}
22206 \begin_layout Standard
22207 To be able to use the command
22218 in the document settings the option
22228 \begin_layout Standard
22232 \begin_layout Standard
22236 numberwithin{footnote}{chapter}
22241 This is another example footnote:
22247 \begin_layout Standard
22248 This is a footnote numbered in the scheme
22249 \begin_inset Quotes eld
22253 \begin_inset Quotes erd
22267 \begin_layout Standard
22271 numberwithin{footnote}{part}
22279 \begin_layout Standard
22280 \begin_inset Note Greyedout
22283 \begin_layout Standard
22294 always prints out the footnote number as arabic number; previous redefinitions
22295 to get non-arabic numbers are overwritten.
22303 \begin_layout Standard
22304 So to get for example the scheme
22305 \begin_inset Quotes eld
22311 \begin_inset Quotes erd
22314 , use this command instead of
22323 \begin_layout Standard
22337 \begin_layout Subsection
22339 \begin_inset LatexCommand index
22340 name "Footnotes ! Placement"
22347 \begin_layout Standard
22348 If you have several footnotes in one page, they appear without vertical
22349 space between them at the bottom of the page.
22350 To make them better readable you can e.\InsetSpace \thinspace{}
22352 add 1.5\InsetSpace \thinspace{}
22353 mm space with the following
22357 \begin_layout Standard
22379 \begin_layout Standard
22380 \begin_inset VSpace bigskip
22383 In a two-column document the footnotes appear at the bottom of every column,
22384 see Figure\InsetSpace ~
22386 \begin_inset LatexCommand ref
22387 reference "fig:Standard-footnote-placement"
22392 If the footnotes should only appear at the bottom of the right column,
22393 as in Figure\InsetSpace ~
22395 \begin_inset LatexCommand ref
22396 reference "fig:Footnote-placement-in"
22400 , use the LaTeX-package
22405 \begin_inset LatexCommand index
22406 name "LaTeX-packages ! ftnright"
22410 with this command in the document preamble:
22413 \begin_layout Standard
22418 usepackage{ftnright}
22421 \begin_layout Standard
22422 \begin_inset Float figure
22428 \begin_layout Standard
22432 \begin_layout Standard
22442 \begin_inset Graphics
22443 filename clipart/without_fntright.pdf
22452 \begin_layout Standard
22462 \begin_layout Standard
22463 \begin_inset Caption
22465 \begin_layout Standard
22466 \begin_inset LatexCommand label
22467 name "fig:Standard-footnote-placement"
22471 Standard footnote placement in two-column documents.
22484 \begin_layout Standard
22485 \begin_inset Float figure
22491 \begin_layout Standard
22495 \begin_layout Standard
22505 \begin_inset Graphics
22506 filename clipart/with_fntright.pdf
22515 \begin_layout Standard
22525 \begin_layout Standard
22526 \begin_inset Caption
22528 \begin_layout Standard
22529 \begin_inset LatexCommand label
22530 name "fig:Footnote-placement-in"
22534 Footnote placement in two-column documents when the LaTeX-package
22551 \begin_layout Standard
22552 \begin_inset VSpace bigskip
22555 In some scientific literature it is usual to collect the footnotes and print
22556 them in a separate paragraph at the the end of a section, like in Figure\InsetSpace ~
22558 \begin_inset LatexCommand ref
22559 reference "fig:Endnotes----footnotes"
22564 They are then so called
22565 \begin_inset Quotes eld
22569 \begin_inset Quotes erd
22573 To use endnotes instead of footnotes in your document, load the LaTeX-package
22579 \begin_inset LatexCommand index
22580 name "LaTeX-packages ! endnotes"
22584 with the document preamble lines
22587 \begin_layout Standard
22592 usepackage{endnotes}
22603 \begin_layout Standard
22604 To insert the collected footnotes, insert the command
22607 \begin_layout Standard
22615 \begin_layout Standard
22616 in ERT at the the end of a section or chapter.
22619 \begin_layout Standard
22620 \begin_inset Float figure
22625 \begin_layout Standard
22630 \begin_layout Standard
22640 \begin_inset Graphics
22641 filename clipart/endnotes.pdf
22649 \begin_layout Standard
22659 \begin_layout Standard
22660 \begin_inset Caption
22662 \begin_layout Standard
22663 \begin_inset LatexCommand label
22664 name "fig:Endnotes----footnotes"
22668 Endnotes -- footnotes are printed in a separate paragraph at the end of
22669 sections or chapters.
22682 \begin_layout Standard
22683 \begin_inset VSpace defskip
22686 The paragraph heading for the endnotes isn't automatically translated into
22687 the document language, this must be done manually.
22688 The following preamble command translate the default English name
22689 \begin_inset Quotes eld
22693 \begin_inset Quotes erd
22696 to the German translation
22697 \begin_inset Quotes eld
22701 \begin_inset Quotes erd
22707 \begin_layout Standard
22714 notesname}{Anmerkungen}
22717 \begin_layout Standard
22718 \begin_inset VSpace defskip
22721 The numbering of endnotes can be changed like the footnote numbering as
22722 described in section\InsetSpace ~
22724 \begin_inset LatexCommand ref
22725 reference "sub:Footnote-Numbering"
22729 ; just replace the command
22742 To reset the endnote number use the command
22748 as described in section\InsetSpace ~
22750 \begin_inset LatexCommand ref
22751 reference "sub:Footnote-Numbering"
22755 and replace the command parameter
22766 \begin_layout Standard
22767 To create only a mark for an endnote, use the command
22771 endnotemark[number]
22773 similar to the command
22779 , described in section\InsetSpace ~
22781 \begin_inset LatexCommand ref
22782 reference "sec:Footnotes"
22789 \begin_layout Standard
22790 \begin_inset VSpace bigskip
22793 Footnotes can also be placed in the page margin and the footnote text alignment
22794 can be changed, see the LaTeX-package
22799 \begin_inset LatexCommand index
22800 name "LaTeX-packages ! footmisc"
22805 \begin_inset LatexCommand cite
22810 for more information about this.
22813 \begin_layout Standard
22814 For various further footnote formatting issues have a look at LaTeX-books,
22816 \begin_inset LatexCommand cite
22817 key "latexcompanion,latexguide,latexbook"
22824 \begin_layout Section
22826 \begin_inset LatexCommand index
22827 name "Notes ! Margin Notes"
22834 \begin_layout Standard
22835 Margin notes look and behave in LyX like footnotes.
22836 They are inserted via the menu
22838 Insert\SpecialChar \menuseparator
22839 Marginal\InsetSpace ~
22842 or the toolbar button
22843 \begin_inset Graphics
22844 filename ../images/marginalnote-insert.xpm
22860 \begin_inset Quotes eld
22864 \begin_inset Quotes erd
22867 appears where you can enter the text of the margin note.
22870 \begin_layout Standard
22871 At the side is an example margin note.
22875 \begin_inset Marginal
22878 \begin_layout Standard
22879 This is a margin note.
22887 \begin_layout Standard
22888 Margin notes appear at the right side in single-sided documents.
22889 In double-sided documents they appear in the outer margin -- left on even
22890 pages, right on odd pages.
22891 The text of margin notes is aligned opposite to the outer margin -- right-align
22892 ed when the note appears in the left margin.
22893 The first line of the margin note is placed at the position of the text
22894 line where it is inserted in the document.
22897 \begin_layout Standard
22898 \begin_inset VSpace bigskip
22901 To place the margin note in the inner margin, add the command
22904 \begin_layout Standard
22912 \begin_layout Standard
22913 in ERT before a margin note.
22914 The new placement is valid for all following margin notes.
22918 \begin_layout Standard
22928 \begin_inset Marginal
22931 \begin_layout Standard
22932 This is a margin note in the inner margin.
22944 \begin_inset Note Greyedout
22947 \begin_layout Standard
22952 There is often not enough space in the inner margin so that the notes are
22953 not correctly displayed in the output.
22961 \begin_layout Standard
22965 \begin_layout Standard
22974 To return to the default placement insert the command
22977 \begin_layout Standard
22985 \begin_layout Standard
22988 \begin_inset Note Greyedout
22991 \begin_layout Standard
22996 The command is ignored when it is within a paragraph where also the command
23011 \begin_layout Standard
23012 \begin_inset VSpace bigskip
23019 \begin_inset Marginal
23022 \begin_layout Standard
23023 AVeryLongMarginParWord that isn't hyphenated.
23031 Similar to the case described in section\InsetSpace ~
23033 \begin_inset LatexCommand ref
23034 reference "sub:Multiple-Lines-in"
23038 , long words cannot be hyphenated when they are the first word in a margin
23040 To avoid this, insert the command
23043 \begin_layout Standard
23051 \begin_layout Standard
23052 in ERT before the word
23056 \begin_inset Marginal
23059 \begin_layout Standard
23063 \begin_layout Standard
23072 AVeryLongMarginParWord that is hyphenated.
23080 \begin_layout Standard
23081 \begin_inset VSpace bigskip
23087 \begin_layout Standard
23088 \begin_inset Note Greyedout
23091 \begin_layout Standard
23096 Margin notes can normally not be used inside tables, floats, and footnotes.
23104 \begin_layout Standard
23105 \begin_inset VSpace bigskip
23111 \begin_layout Standard
23115 \begin_layout Standard
23125 \begin_inset Note Note
23128 \begin_layout Standard
23129 The following section will only be displayed when you have the LaTeX-package
23142 \begin_layout Standard
23143 This restriction can be evaded by using the LaTeX-package
23148 \begin_inset LatexCommand index
23149 name "LaTeX-packages ! marginnote"
23154 By adding these two lines to your document preamble, the command used by
23155 LyX for margin notes is redefined to use the command provided by the
23162 \begin_layout Standard
23167 usepackage{marginnote}
23178 \begin_layout Standard
23179 This is also used in this document because
23183 has another useful feature: You can set a vertical offset for the note.
23184 This is often needed when too many margin notes are too close together
23185 or for a better page layout.
23186 The offset is set in LyX as ERT directly behind the margin note in the
23190 \begin_layout Standard
23196 \begin_layout Standard
23197 where the offset is a length with one of the units listed in Table\InsetSpace ~
23199 \begin_inset LatexCommand ref
23200 reference "tab:Units"
23205 A negative value shifts the note up, a positive value shifts it down.
23209 For example the margin note beside this text line is shifted up 1.5\InsetSpace \thinspace{}
23212 \begin_inset Quotes eld
23222 \begin_inset Quotes erd
23226 \begin_inset Marginal
23229 \begin_layout Standard
23230 This margin note is shifted up 1.5\InsetSpace \thinspace{}
23231 cm from its original position.
23243 \begin_layout Standard
23253 \begin_layout Standard
23254 \begin_inset VSpace defskip
23261 you can also change the alignment of the text in the margin note.
23262 For example the commands
23265 \begin_layout Standard
23272 raggedleftmarginnote}{
23280 raggedrightmarginnote}{
23285 \begin_layout Standard
23286 set the alignment to centered.
23291 raggedleftmarginnote
23293 denotes margin notes that appear at the left side.
23300 \begin_layout Standard
23306 raggedleftmarginnote}{
23311 \begin_layout Standard
23317 raggedrightmarginnote}{
23325 \begin_inset Marginal
23328 \begin_layout Standard
23329 The text of this margin note is centered.
23340 \begin_layout Standard
23347 raggedleftmarginnote}{
23355 raggedrightmarginnote}{
23364 \begin_layout Standard
23370 raggedleftmarginnote}{
23375 \begin_layout Standard
23381 raggedrightmarginnote}{
23391 \begin_layout Standard
23392 \begin_inset VSpace defskip
23395 For the other features of
23399 we refer to its documentation
23400 \begin_inset LatexCommand cite
23408 \begin_layout Standard
23409 \begin_inset VSpace bigskip
23412 You can change the layout of margin notes by redefining its definition.
23413 To create for example a header for all margin notes with the underlined,
23414 sans-serif, and bold header text
23415 \begin_inset Quotes eld
23427 \begin_inset Quotes erd
23430 , add this to your document preamble:
23433 \begin_layout Standard
23456 \begin_layout Standard
23473 underbar{Attention!}}}%
23479 \begin_layout Standard
23497 \begin_layout Standard
23504 \begin_layout Standard
23515 \begin_layout Standard
23526 \begin_layout Standard
23534 underbar{Attention!}}}%
23537 \begin_layout Standard
23551 \begin_inset Marginal
23554 \begin_layout Standard
23555 This is a margin note with a defined heading.
23567 \begin_layout Standard
23581 \begin_layout Standard
23598 \begin_inset Note Note
23601 \begin_layout Standard
23602 The margin note format is changed only for this example.
23610 \begin_layout Standard
23614 \begin_layout Standard
23624 \begin_inset Note Note
23627 \begin_layout Standard
23628 The following will be displayed when the LaTeX-package
23640 \begin_layout Standard
23641 You need to install the LaTeX-package
23645 to see the following part of this section in the output.
23648 \begin_layout Standard
23652 \begin_layout Standard
23664 \begin_layout Chapter
23668 \begin_layout Section
23670 \begin_inset LatexCommand index
23671 name "Boxes ! Introduction"
23678 \begin_layout Standard
23679 Boxes are used to format a block of text.
23680 Boxes can be used to write documents with multiple languages, see section\InsetSpace ~
23682 \begin_inset LatexCommand ref
23683 reference "sec:Minipages"
23687 , to frame texts, see section\InsetSpace ~
23689 \begin_inset LatexCommand ref
23690 reference "sec:Framed-Boxes"
23694 , to prevent words to be hyphenated, see section\InsetSpace ~
23696 \begin_inset LatexCommand ref
23697 reference "sec:Prevent-Hyphenation"
23701 , to align text, see section\InsetSpace ~
23703 \begin_inset LatexCommand ref
23704 reference "sub:Vertical-Alignment"
23708 , or to set the background color of texts, see section\InsetSpace ~
23710 \begin_inset LatexCommand ref
23711 reference "sec:Colored-Boxes"
23718 \begin_layout Standard
23719 Boxes can be inserted with the menu
23721 Insert\SpecialChar \menuseparator
23725 A grey box with the label
23730 \begin_inset Graphics
23731 filename clipart/BoxInsetDefaultQt4.png
23736 , will be inserted.
23737 The box type can be specified by right-clicking on the box.
23738 The appearing box dialog offers the
23756 is the default for new boxes and is explained in section\InsetSpace ~
23758 \begin_inset LatexCommand ref
23759 reference "sec:Minipages"
23767 is described in section\InsetSpace ~
23769 \begin_inset LatexCommand ref
23770 reference "sec:Parboxes"
23777 \begin_layout Standard
23778 Boxes aren't numbered and can therefore not be referenced like floats or
23782 \begin_layout Standard
23783 \begin_inset Note Greyedout
23786 \begin_layout Standard
23791 Due to a bug in LyX you have to insert a protected space behind a box when
23792 you want to separate in a line the box from the following text with a space.
23800 \begin_layout Standard
23801 \begin_inset Note Greyedout
23804 \begin_layout Standard
23809 Boxes must not be the item in an
23825 \begin_layout Standard
23826 \begin_inset Note Greyedout
23829 \begin_layout Standard
23834 For an unknown reason you can only set the
23843 when you use a framed box.
23849 type and without frames are explained in section\InsetSpace ~
23851 \begin_inset LatexCommand ref
23852 reference "sec:Prevent-Hyphenation"
23864 \begin_layout Section
23866 \begin_inset LatexCommand label
23867 name "sec:Box-Dialog"
23872 \begin_inset LatexCommand index
23873 name "Boxes ! Box Dialog"
23878 \begin_inset LatexCommand index
23879 name "Boxes ! Alignment"
23886 \begin_layout Standard
23887 In the box dialog you can adjust the box geometry in the fields
23896 The available units for the geometry are explained in Table\InsetSpace ~
23898 \begin_inset LatexCommand ref
23899 reference "tab:Units"
23908 offers the following additional sizes:
23911 \begin_layout Description
23912 Depth This is the plain text
23913 \begin_inset Quotes eld
23917 \begin_inset Quotes erd
23921 It ignores the total depth when there are multiple text lines in the box:
23928 \begin_inset Box Boxed
23937 height_special "depth"
23940 \begin_layout Standard
23942 Box height set to 1\InsetSpace \thinspace{}
23955 \begin_layout Description
23956 Height This is the heigth of the text that is inside the box.
23957 A value of e.\InsetSpace \thinspace{}
23959 2 for this size will set the box heigth to 2 times the text
23961 \begin_inset Box Boxed
23970 height_special "height"
23973 \begin_layout Standard
23975 Box height set to 2\InsetSpace \thinspace{}
23984 \begin_layout Description
23986 Height This is the Height\InsetSpace \thinspace{}
23987 +\InsetSpace \thinspace{}
23989 \begin_inset Box Boxed
23998 height_special "totalheight"
24001 \begin_layout Standard
24003 Box height set to 1\InsetSpace \thinspace{}
24013 \begin_layout Description
24014 Width This set the width of the box as heigth:
24015 \begin_inset Box Boxed
24024 height_special "width"
24027 \begin_layout Standard
24029 Box height set to 1\InsetSpace \thinspace{}
24038 \begin_layout Standard
24039 \begin_inset VSpace bigskip
24042 When you have chosen an
24047 , the vertical box alignment can be:
24050 \begin_layout Description
24051 Top This is an example text line.
24053 \begin_inset Box Boxed
24062 height_special "totalheight"
24065 \begin_layout Standard
24067 This box is top-aligned.
24073 This is an example text line.
24076 \begin_layout Description
24077 Middle This is an example text line.
24079 \begin_inset Box Boxed
24088 height_special "totalheight"
24091 \begin_layout Standard
24093 This box is middle-aligned.
24099 This is an example text line.
24102 \begin_layout Description
24103 Bottom This is an example text line.
24105 \begin_inset Box Boxed
24114 height_special "totalheight"
24117 \begin_layout Standard
24119 This box is bottom-aligned.
24125 This is an example text line.
24128 \begin_layout Standard
24129 The horizontal box alignment can be set via LyX's paragraph dialog when
24130 you set the box into its own paragraph.
24133 \begin_layout Standard
24134 \begin_inset VSpace bigskip
24137 When you have chosen an
24142 , the box content can be vertical aligned to:
24145 \begin_layout Description
24146 top This is an example text line.
24148 \begin_inset Box Boxed
24157 height_special "totalheight"
24160 \begin_layout Standard
24162 This box text is top-aligned.
24168 This is an example text line.
24171 \begin_layout Description
24172 middle This is an example text line.
24174 \begin_inset Box Boxed
24183 height_special "totalheight"
24186 \begin_layout Standard
24188 This box text is middle-aligned.
24194 This is an example text line.
24197 \begin_layout Description
24198 bottom This is an example text line.
24200 \begin_inset Box Boxed
24209 height_special "totalheight"
24212 \begin_layout Standard
24214 This box text is bottom-aligned.
24220 This is an example text line.
24223 \begin_layout Description
24224 stretch This is an example text line.
24226 \begin_inset Box Boxed
24235 height_special "totalheight"
24238 \begin_layout Standard
24243 \begin_layout Standard
24248 \begin_layout Standard
24256 This is an example text line.
24259 \begin_layout Standard
24260 To stretch the box content, it must consist of more than one paragraph.
24261 In the example above every text line is in an own paragraph.
24264 \begin_layout Standard
24265 \begin_inset VSpace bigskip
24268 To align the box content horizontally you can use LyX's paragraph dialog
24269 when you have chosen an
24277 \begin_layout Standard
24279 \begin_inset Box Boxed
24288 height_special "totalheight"
24291 \begin_layout Standard
24296 \begin_layout Standard
24301 \begin_layout Standard
24311 \begin_layout Standard
24312 If you haven't set an
24317 , you can align the box content horizontally in the box dialog.
24320 \begin_layout Standard
24322 \begin_inset Box Boxed
24331 height_special "totalheight"
24334 \begin_layout Standard
24336 This box text is horizontally stretched.
24344 \begin_layout Section
24346 \begin_inset LatexCommand label
24347 name "sec:Framed-Boxes"
24352 \begin_inset LatexCommand index
24353 name "Boxes ! Frames"
24360 \begin_layout Standard
24361 The frame style of the box can be specified in the box-dialog in the drop-down
24367 The following frame types are possible:
24370 \begin_layout Description
24371 Rectangular\InsetSpace ~
24372 box This draws a rectangle frame around the box.
24373 The frame line thickness has the size of
24381 \begin_inset Box Boxed
24390 height_special "totalheight"
24393 \begin_layout Standard
24403 \begin_layout Description
24406 thin This draws an oval frame around the box.
24407 The frame line thickness has the size 0.4\InsetSpace \thinspace{}
24410 \begin_inset Box ovalbox
24419 height_special "totalheight"
24422 \begin_layout Standard
24432 \begin_layout Description
24435 thick This draws an oval frame around the box.
24436 The frame line thickness has the size 0.8\InsetSpace \thinspace{}
24439 \begin_inset Box Ovalbox
24448 height_special "totalheight"
24451 \begin_layout Standard
24461 \begin_layout Description
24462 Shadow\InsetSpace ~
24463 box This draws a rectangle frame with a shadow around the box.
24464 The frame line thickness has the size of
24470 , the shadow has a width of 4\InsetSpace \thinspace{}
24473 \begin_inset Box Shadowbox
24482 height_special "totalheight"
24485 \begin_layout Standard
24495 \begin_layout Description
24496 Double\InsetSpace ~
24497 box This draws a double-line rectangle frame around the box.
24498 The line thickness of the inner frame is 0.75\InsetSpace \thinspace{}
24505 , the thickness of the outer frame is 1.5\InsetSpace \thinspace{}
24513 The distance between the lines is 1.5\InsetSpace \thinspace{}
24520 \InsetSpace \thinspace{}
24521 +\InsetSpace \thinspace{}
24522 0.5\InsetSpace \thinspace{}
24525 \begin_inset Box Doublebox
24534 height_special "totalheight"
24537 \begin_layout Standard
24547 \begin_layout Standard
24548 \begin_inset VSpace bigskip
24551 LyX's box label will change to the used frame style when you set a frame.
24552 To be able to use the different frame styles, the LaTeX-package
24557 \begin_inset LatexCommand index
24558 name "LaTeX-packages ! fancybox"
24565 \begin_layout Standard
24566 \begin_inset VSpace bigskip
24569 The default value for the size
24575 is 0.4\InsetSpace \thinspace{}
24577 It can be changed with the following command in ERT to e.\InsetSpace \thinspace{}
24579 2\InsetSpace \thinspace{}
24583 \begin_layout Standard
24593 \begin_layout Standard
24597 \begin_layout Standard
24609 \begin_inset Box Boxed
24618 height_special "totalheight"
24621 \begin_layout Standard
24623 Rectangular box with
24629 \InsetSpace \thinspace{}
24630 =\InsetSpace \thinspace{}
24631 2\InsetSpace \thinspace{}
24641 \begin_layout Standard
24655 \begin_layout Standard
24656 \begin_inset VSpace bigskip
24659 The space between the frame and the box content is for all frame styles
24660 by default 3\InsetSpace \thinspace{}
24662 You can change it by setting the length
24669 For example the command
24672 \begin_layout Standard
24682 \begin_layout Standard
24683 sets the value to 10\InsetSpace \thinspace{}
24684 pt, like for the following box:
24687 \begin_layout Standard
24691 \begin_layout Standard
24703 \begin_inset Box Boxed
24712 height_special "totalheight"
24715 \begin_layout Standard
24717 Rectangular box with
24723 \InsetSpace \thinspace{}
24724 =\InsetSpace \thinspace{}
24725 10\InsetSpace \thinspace{}
24735 \begin_layout Standard
24749 \begin_layout Standard
24750 \begin_inset VSpace bigskip
24753 The diameter of the round corners of the oval boxes can be set with the
24764 \begin_layout Standard
24772 \begin_layout Standard
24773 sets the diameter to 1\InsetSpace \thinspace{}
24778 \begin_layout Standard
24786 \begin_layout Standard
24787 sets the diameter to
24789 num\InsetSpace \thinspace{}
24790 ×\InsetSpace \thinspace{}
24791 minimum(width and heigth of box)
24803 \begin_layout Standard
24807 \begin_layout Standard
24817 \begin_inset Box Ovalbox
24826 height_special "totalheight"
24829 \begin_layout Standard
24837 \InsetSpace \thinspace{}
24838 =\InsetSpace \thinspace{}
24839 1.5\InsetSpace \thinspace{}
24849 \begin_layout Standard
24861 \begin_layout Standard
24862 \begin_inset VSpace bigskip
24865 The size of the shadow can be adjusted by changing the length
24872 It it set to 2\InsetSpace \thinspace{}
24873 pt for the following box by this command:
24876 \begin_layout Standard
24886 \begin_layout Standard
24890 \begin_layout Standard
24902 \begin_inset Box Shadowbox
24911 height_special "totalheight"
24914 \begin_layout Standard
24922 \InsetSpace \thinspace{}
24923 =\InsetSpace \thinspace{}
24924 2\InsetSpace \thinspace{}
24934 \begin_layout Standard
24948 \begin_layout Standard
24949 \begin_inset VSpace bigskip
24952 Changed lengths and widths are valid for all boxes following the commands
24956 \begin_layout Section
24958 \begin_inset LatexCommand label
24959 name "sec:Minipages"
24964 \begin_inset LatexCommand index
24965 name "Boxes ! Minipages"
24972 \begin_layout Standard
24973 Minipages are treated by LaTeX as pages within pages and can therefore for
24974 example have their own footnotes.
24977 \begin_layout Standard
24978 Minipages are useful when you write documents with different languages.
24981 \begin_layout Standard
24982 Below are two example minipages side by side.
24983 Their width is set to 45\InsetSpace \thinspace{}
24984 col% and they are separated by a horizontal fill,
24985 that was inserted via the menu
24987 Insert\SpecialChar \menuseparator
24988 Special\InsetSpace ~
24989 Formatting\SpecialChar \menuseparator
24990 Horizontal\InsetSpace ~
24996 \begin_layout Standard
24997 \begin_inset Box Frameless
25006 height_special "totalheight"
25009 \begin_layout Standard
25012 Dies ist ein deutscher Text.
25013 Dies ist ein deutscher Text.
25014 Dies ist ein deutscher Text.
25015 Dies ist ein deutscher Text.
25016 Dies ist ein deutscher Text.
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
25028 \begin_layout Standard
25031 Dies ist eine deutsche Fußnote.
25037 Dies ist ein deutscher Text.
25038 Dies ist ein deutscher Text.
25046 \begin_inset Box Frameless
25055 height_special "totalheight"
25058 \begin_layout Standard
25059 This is an English Text.
25060 This is an English Text.
25061 This is an English Text.
25062 This is an English Text.
25063 This is an English Text.
25064 This is an English Text.
25065 This is an English Text.
25066 This is an English Text.
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.
25078 \begin_layout Standard
25079 This is an English footnote.
25084 This is an English Text.
25093 \begin_layout Standard
25094 \begin_inset VSpace bigskip
25097 Another application for minipages are footnotes within tables.
25098 Due to a LaTeX restriction footnotes within tables doesn't appear at the
25099 bottom of the current page.
25100 But when you put the table with the footnote to a minipage, the footnote
25101 will appear at its bottom, numbered with Latin letters.
25102 The footnote number is reset to 1 in every minipage but not outside the
25106 \begin_layout Standard
25107 The footnote of this table doesn't appear:
25108 \begin_inset Tabular
25109 <lyxtabular version="3" rows="3" columns="4">
25111 <column alignment="center" valignment="top" leftline="true" width="0pt">
25112 <column alignment="center" valignment="top" leftline="true" width="0pt">
25113 <column alignment="center" valignment="top" leftline="true" width="0pt">
25114 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25115 <row topline="true">
25116 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25119 \begin_layout Standard
25125 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25128 \begin_layout Standard
25134 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25137 \begin_layout Standard
25142 \begin_layout Standard
25143 This is a footnote within a table.
25153 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25156 \begin_layout Standard
25163 <row topline="true">
25164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25167 \begin_layout Standard
25173 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25176 \begin_layout Standard
25182 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25185 \begin_layout Standard
25191 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25194 \begin_layout Standard
25201 <row topline="true" bottomline="true">
25202 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25205 \begin_layout Standard
25211 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25214 \begin_layout Standard
25220 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25223 \begin_layout Standard
25229 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25232 \begin_layout Standard
25246 \begin_layout Standard
25248 \begin_inset Box Frameless
25257 height_special "totalheight"
25260 \begin_layout Standard
25262 \begin_inset Tabular
25263 <lyxtabular version="3" rows="3" columns="4">
25265 <column alignment="center" valignment="top" leftline="true" width="0pt">
25266 <column alignment="center" valignment="top" leftline="true" width="0pt">
25267 <column alignment="center" valignment="top" leftline="true" width="0pt">
25268 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25269 <row topline="true">
25270 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25273 \begin_layout Standard
25279 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25282 \begin_layout Standard
25288 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25291 \begin_layout Standard
25296 \begin_layout Standard
25297 This is a footnote within a table.
25307 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25310 \begin_layout Standard
25317 <row topline="true">
25318 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25321 \begin_layout Standard
25327 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25330 \begin_layout Standard
25336 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25339 \begin_layout Standard
25345 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25348 \begin_layout Standard
25355 <row topline="true" bottomline="true">
25356 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25359 \begin_layout Standard
25365 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25368 \begin_layout Standard
25374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25377 \begin_layout Standard
25383 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25386 \begin_layout Standard
25405 \begin_layout Standard
25406 \begin_inset VSpace bigskip
25409 The document-wide paragraph settings are ignored within minipages.
25410 That means that there will be no space between paragraphs in minipages
25411 although you set it to e.\InsetSpace \thinspace{}
25417 in the document settings.
25420 \begin_layout Standard
25421 Minipages can also be used to set a background color for text parts, see
25422 section\InsetSpace ~
25424 \begin_inset LatexCommand ref
25425 reference "sub:Color-for-Paragraphs"
25432 \begin_layout Standard
25433 \begin_inset Note Greyedout
25436 \begin_layout Standard
25441 You cannot have floats or margin notes inside minipages but minipages can
25442 be used inside tables, floats, and other boxes.
25450 \begin_layout Section
25452 \begin_inset LatexCommand label
25453 name "sec:Parboxes"
25458 \begin_inset LatexCommand index
25459 name "Boxes ! Parboxes"
25466 \begin_layout Standard
25467 Parboxes are very similar to minipages with the difference that they cannot
25469 The main difference to minipages is that minipages are in contrary to parboxes
25470 no real boxes but LaTeX-environments.
25473 \begin_layout Standard
25475 \begin_inset Box Frameless
25484 height_special "totalheight"
25487 \begin_layout Standard
25488 This a text within a parbox.
25489 This a text within a parbox.
25492 \begin_layout Standard
25493 This footnote won't appear:
25497 \begin_layout Standard
25498 This footnote is inside a parbox and will therefore not appear.
25511 \begin_layout Section
25512 Boxes for Words and Characters
25513 \begin_inset LatexCommand index
25514 name "Boxes ! for Characters"
25521 \begin_layout Subsection
25522 Prevent Hyphenation
25523 \begin_inset LatexCommand label
25524 name "sec:Prevent-Hyphenation"
25529 \begin_inset LatexCommand index
25530 name "Boxes ! to Prevent Hyphenation"
25537 \begin_layout Standard
25538 You can use a special kind of boxes to prevent words or text to be hyphenated.
25541 e is an example text:
25544 \begin_layout Standard
25545 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25551 \begin_layout Standard
25552 To prevent the hyphenation of the word
25553 \begin_inset Quotes eld
25557 \begin_inset Quotes erd
25563 \begin_layout Standard
25571 \begin_layout Standard
25572 in ERT before the word.
25573 Behind the word insert a closing brace
25574 \begin_inset Quotes eld
25582 \begin_inset Quotes erd
25589 \begin_layout Standard
25601 \begin_layout Standard
25602 This is the result:
25605 \begin_layout Standard
25606 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25612 \begin_layout Standard
25625 \begin_layout Standard
25635 \begin_layout Standard
25636 Of course the word now protrudes over the side margin.
25637 To avoid this, add via the menu
25639 Insert\SpecialChar \menuseparator
25640 Special\InsetSpace ~
25641 Formatting\SpecialChar \menuseparator
25649 ) a line break before the word:
25652 \begin_layout Standard
25653 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25661 \begin_layout Standard
25674 \begin_layout Standard
25684 \begin_layout Subsection
25686 \begin_inset LatexCommand label
25687 name "sub:Vertical-Alignment"
25692 \begin_inset LatexCommand index
25693 name "Boxes ! for Vertical Alignment"
25698 \begin_inset LatexCommand index
25699 name "Boxes ! Raiseboxes"
25706 \begin_layout Standard
25707 With the help of the command
25713 you can align words, characters or other boxes vertically to the surrounding
25721 is used with the following scheme:
25724 \begin_layout Standard
25729 raisebox{lift}[height][depth]{box content}
25732 \begin_layout Standard
25733 The lift can be a positive value to raise the box or a negative value to
25737 \begin_layout Standard
25738 To align for example the word
25739 \begin_inset Quotes eld
25743 \begin_inset Quotes erd
25746 so that the bottom of the
25747 \begin_inset Quotes eld
25751 \begin_inset Quotes erd
25755 \begin_inset Quotes eld
25759 \begin_inset Quotes erd
25762 is at the baseline, insert the command
25765 \begin_layout Standard
25775 \begin_layout Standard
25776 in ERT before the word.
25777 Behind the word insert a closing brace
25778 \begin_inset Quotes eld
25786 \begin_inset Quotes erd
25791 This is the result:
25794 \begin_layout Standard
25795 This is a text line with the word
25799 \begin_layout Standard
25811 \begin_inset Quotes eld
25815 \begin_inset Quotes erd
25822 \begin_layout Standard
25832 \begin_layout Standard
25833 \begin_inset VSpace bigskip
25836 When you raise or lower characters in a line, the line distance will be
25840 \begin_layout Standard
25841 This is a text line with the word
25845 \begin_layout Standard
25857 \begin_inset Quotes eld
25861 \begin_inset Quotes erd
25868 \begin_layout Standard
25877 This is a text line with the word
25881 \begin_layout Standard
25891 \begin_inset Quotes eld
25895 \begin_inset Quotes erd
25902 \begin_layout Standard
25912 \begin_layout Standard
25913 If you want to prevent this for a certain reason, set the box height to
25918 \begin_layout Standard
25928 \begin_layout Standard
25929 This is a text line with the word
25933 \begin_layout Standard
25945 \begin_inset Quotes eld
25949 \begin_inset Quotes erd
25956 \begin_layout Standard
25965 This is a text line with the word
25969 \begin_layout Standard
25973 raisebox{0.5cm}[0pt]{
25979 \begin_inset Quotes eld
25983 \begin_inset Quotes erd
25990 \begin_layout Standard
26000 \begin_layout Section
26002 \begin_inset LatexCommand label
26003 name "sec:Colored-Boxes"
26008 \begin_inset LatexCommand index
26009 name "Boxes ! Color"
26016 \begin_layout Subsection
26018 \begin_inset LatexCommand index
26019 name "Color ! for Text"
26026 \begin_layout Standard
26027 To color the background of text the text must be put into a so called colorbox.
26028 This requires that the LaTeX-package
26033 \begin_inset LatexCommand index
26034 name "LaTeX-packages ! color"
26038 is loaded in the document preamble with the command
26041 \begin_layout Standard
26046 @ifundef\SpecialChar \textcompwordmark{}
26053 \begin_layout Standard
26064 usepackage{color}}{}
26067 \begin_layout Standard
26072 will be loaded automatically by LyX when you color text
26076 \begin_layout Standard
26077 To avoid that it is loaded twice the command
26081 @ifundef\SpecialChar \textcompwordmark{}
26092 \begin_layout Standard
26093 \begin_inset VSpace medskip
26096 Colorboxes are created with the command
26103 This will be used with the following scheme:
26106 \begin_layout Standard
26111 colorbox{color}{box content}
26114 \begin_layout Standard
26115 The box content can also be a box and colorboxes can also be within other
26119 \begin_layout Standard
26120 The following colors are predefined:
26159 You can also define your own color as described in section\InsetSpace ~
26161 \begin_inset LatexCommand ref
26162 reference "sec:Colored-Tables"
26169 \begin_layout Standard
26170 To have e.\InsetSpace \thinspace{}
26172 a red background for a word, insert the command
26175 \begin_layout Standard
26183 \begin_layout Standard
26184 before the word in ERT.
26185 Behind the word insert a closing brace
26186 \begin_inset Quotes eld
26194 \begin_inset Quotes erd
26199 This is the result:
26202 \begin_layout Standard
26203 This is a line where the word
26207 \begin_layout Standard
26217 \begin_inset Quotes eld
26221 \begin_inset Quotes erd
26228 \begin_layout Standard
26235 has a red background.
26238 \begin_layout Standard
26239 \begin_inset VSpace bigskip
26242 If you would have the box frame in a different color, you can use the command
26249 with the following scheme:
26252 \begin_layout Standard
26257 fcolorbox{frame color}{box color}{box content}
26260 \begin_layout Standard
26274 The frame thickness and the space between the frame and the box content
26275 can be adjusted with the lengths
26287 , respectively, as described in section\InsetSpace ~
26289 \begin_inset LatexCommand ref
26290 reference "sec:Framed-Boxes"
26297 \begin_layout Standard
26298 For the following example the command
26301 \begin_layout Standard
26306 fcolorbox{cyan}{magenta}{
26309 \begin_layout Standard
26313 \begin_layout Standard
26314 Here is an example where the frame line thickness was set to 1\InsetSpace \thinspace{}
26321 \begin_layout Standard
26336 \begin_layout Standard
26340 fcolorbox{cyan}{magenta}{
26345 This is text within a colored, framed box.
26349 \begin_layout Standard
26359 \begin_layout Standard
26360 \begin_inset VSpace bigskip
26363 Of course you can also have colored text inside a colorbox:
26369 \begin_layout Standard
26373 fcolorbox{cyan}{magenta}{
26380 This is colored text within a colored, framed box.
26386 \begin_layout Standard
26397 \begin_layout Standard
26411 \begin_layout Standard
26414 \begin_inset VSpace medskip
26420 \begin_layout Standard
26421 \begin_inset Note Greyedout
26424 \begin_layout Standard
26429 Text in colorboxes cannot have line breaks.
26430 To color multiple text lines or paragraphs, use a box inside a colorbox
26431 as described in the following.
26439 \begin_layout Subsection
26440 Color for Paragraphs
26441 \begin_inset LatexCommand label
26442 name "sub:Color-for-Paragraphs"
26447 \begin_inset LatexCommand index
26448 name "Color ! for Paragraphs"
26455 \begin_layout Standard
26456 To set the background color for more than one text line, put the text into
26458 Before the minipage insert the
26467 \begin_layout Standard
26475 \begin_layout Standard
26477 Behind the minipage insert a closing brace
26478 \begin_inset Quotes eld
26486 \begin_inset Quotes erd
26492 \begin_layout Standard
26496 \begin_layout Standard
26500 colorbox{lightgrey}{
26506 \begin_inset Box Frameless
26515 height_special "totalheight"
26518 \begin_layout Standard
26519 This is text with background color.
26520 This is text with background color.
26523 \begin_layout Standard
26524 \begin_inset VSpace defskip
26527 The text can have footnotes
26531 \begin_layout Standard
26532 Another example footnote
26537 and can include tables and figures.
26540 \begin_layout Standard
26542 \begin_inset Tabular
26543 <lyxtabular version="3" rows="3" columns="3">
26545 <column alignment="center" valignment="top" leftline="true" width="0">
26546 <column alignment="center" valignment="top" leftline="true" width="0">
26547 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
26548 <row topline="true">
26549 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26552 \begin_layout Standard
26558 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26561 \begin_layout Standard
26567 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26570 \begin_layout Standard
26577 <row topline="true">
26578 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26581 \begin_layout Standard
26587 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26590 \begin_layout Standard
26592 \begin_inset Quotes erd
26600 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26603 \begin_layout Standard
26610 <row topline="true" bottomline="true">
26611 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26614 \begin_layout Standard
26620 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26623 \begin_layout Standard
26629 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26632 \begin_layout Standard
26652 \begin_layout Standard
26662 \begin_layout Section
26663 URLs (Uniform Resource Locators)
26664 \begin_inset LatexCommand index
26672 \begin_layout Standard
26673 Links to web pages or email addresses can be inserted via the menu
26675 Insert\SpecialChar \menuseparator
26679 The appearing URL dialog has two fields; the
26687 field for the URL description, which will be typeset as plain text immediately
26691 \begin_layout Standard
26692 Here is an example URL:
26693 \begin_inset LatexCommand url
26694 name "LyX's homepage"
26695 target "http://www.lyx.org"
26702 \begin_layout Standard
26705 Generate\InsetSpace ~
26708 in the URL dialog has only an affect when you export your document to the
26710 \begin_inset Quotes eld
26718 \begin_inset Quotes erd
26724 \begin_layout Standard
26725 You cannot change the style of the link text.
26730 field will have the default text style of the document while the text of
26735 field will have the style
26736 \begin_inset Quotes eld
26744 \begin_inset Quotes erd
26750 \begin_layout Standard
26751 When you use the LaTeX-package
26756 \begin_inset LatexCommand index
26757 name "LaTeX-packages ! hyperref"
26761 to link cross-references in the output, URLs will automatically become
26762 clickable hyperlinks in DVI and PDF-output.
26765 \begin_layout Standard
26766 \begin_inset Note Greyedout
26769 \begin_layout Standard
26774 When you use the following characters: "%", "#", "^", you have to write
26775 them with a preceding backslash, e.\InsetSpace \thinspace{}
26778 \begin_inset Quotes eld
26784 \begin_inset Quotes erd
26788 URLs must not end with a backslash.
26796 \begin_layout Standard
26797 \begin_inset VSpace bigskip
26800 To create real hyperlinks without the force to write the link location to
26801 the text, you can use the command
26804 \begin_layout Standard
26809 href{link location}{link text}
26812 \begin_layout Standard
26814 To get for example a link to LyX's web page, write the command
26817 \begin_layout Standard
26822 href{http://www.lyx.org}{
26825 \begin_layout Standard
26827 Insert after the command the link text
26828 \begin_inset Quotes eld
26832 \begin_inset Quotes erd
26835 as normal text followed by a closing brace
26836 \begin_inset Quotes eld
26844 \begin_inset Quotes erd
26848 This is the result:
26852 \begin_layout Standard
26856 href{http://www.lyx.org}{
26865 \begin_layout Standard
26875 \begin_layout Standard
26876 To link to email addresses, add the prefix
26877 \begin_inset Quotes eld
26885 \begin_inset Quotes erd
26888 to the link location:
26894 \begin_layout Standard
26898 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's documentation}{
26903 lyx-docs mailing list
26907 \begin_layout Standard
26917 \begin_layout Standard
26924 instead of LyX's URL box has the advantage that you can specify the text
26925 style of the link text like for all other text parts.
26926 You can therefore set hyphenation points and forced linebreaks to have
26927 long link text broken at the page margin.
26928 You are furthermore able to change the text style for all URLs in your
26929 document with an option in
26933 's load command and the restrictions mentioned above doesn't apply for
26942 \begin_layout Chapter
26944 \begin_inset LatexCommand index
26945 name "External Stuff"
26952 \begin_layout Standard
26955 Insert\SpecialChar \menuseparator
26958 you can insert external material to your document.
26962 \begin_layout Description
26964 Document Another LyX document; its content is directly inserted to your
26968 \begin_layout Description
26970 Text A text document; every of its text lines is inserted to your document
26974 \begin_layout Description
26978 Lines A text document; its text lines are inserted as they
26980 Empty text lines creates a new paragraph in your document.
26983 \begin_layout Description
26984 External\InsetSpace ~
26985 Material Files in various formats.
26988 \begin_layout Description
26990 Document LyX or LaTeX-documents.
26993 \begin_layout Section
26995 \begin_inset LatexCommand index
26996 name "External Stuff ! External Material"
27003 \begin_layout Standard
27004 The external material feature allows you to insert files to your document
27005 without converting them previously to a format that can be read by the
27006 document output format because LyX takes care of needed conversions.
27007 This is similar to images that can be inserted in various image formats
27011 \begin_layout Standard
27012 External material can be inserted via the
27016 dialog that is accessible with the menu
27018 Insert\SpecialChar \menuseparator
27019 File\SpecialChar \menuseparator
27020 External\InsetSpace ~
27024 Currently the following file types (
27031 \begin_layout Description
27032 ChessDiagram This template supports chess position diagrams made with the
27037 \begin_layout Standard
27041 href{http://en.wikipedia.org/wiki/XBoard}{
27054 \begin_layout Standard
27064 \begin_layout Description
27065 Date This inserts the date in the form
27070 This is a date inserted as external material:
27071 \begin_inset External
27079 The date is not shown within LyX, only in the output.
27080 There are two other methods of inserting a date, via menu
27082 Insert\SpecialChar \menuseparator
27085 and with the LaTeX command
27092 The different methods are compared in Table\InsetSpace ~
27094 \begin_inset LatexCommand ref
27095 reference "tab:Comparison-of-the"
27102 \begin_layout Description
27103 LilyPond This template is used for music notation typeset with the program
27107 \begin_layout Standard
27120 \begin_layout Standard
27124 href{http://en.wikipedia.org/wiki/LilyPond}{
27137 \begin_layout Standard
27145 \begin_inset Note Note
27148 \begin_layout Standard
27155 breaks the line while the remaining text in the line is stretched to the
27164 \begin_layout Description
27165 RasterImage This can be used for bitmap images.
27166 Nearly all popular image formats are supported.
27167 The image can be treated in the
27171 dialog like the images that are usually included via the
27175 dialog as described in section\InsetSpace ~
27177 \begin_inset LatexCommand ref
27178 reference "sec:Graphics-Dialog"
27183 The difference is that only raster images are allowed, that means that
27184 PDF and EPS-images are not supported.
27187 \begin_layout Description
27188 XFig This template supports images created with the program
27192 \begin_layout Standard
27196 href{http://en.wikipedia.org/wiki/Xfig}{
27209 \begin_layout Standard
27219 \begin_layout Standard
27220 \begin_inset Float table
27226 \begin_layout Standard
27227 \begin_inset Caption
27229 \begin_layout Standard
27230 \begin_inset LatexCommand label
27231 name "tab:Comparison-of-the"
27235 Comparison of the date input methods.
27243 \begin_layout Standard
27245 \begin_inset Tabular
27246 <lyxtabular version="3" rows="4" columns="4">
27248 <column alignment="center" valignment="top" leftline="true" width="0">
27249 <column alignment="center" valignment="top" leftline="true" width="0">
27250 <column alignment="center" valignment="top" leftline="true" width="0">
27251 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27252 <row topline="true">
27253 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27256 \begin_layout Standard
27262 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27265 \begin_layout Standard
27268 External Material\SpecialChar \menuseparator
27274 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27277 \begin_layout Standard
27280 Insert\SpecialChar \menuseparator
27286 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27289 \begin_layout Standard
27300 <row topline="true">
27301 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27304 \begin_layout Standard
27310 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27313 \begin_layout Standard
27319 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27322 \begin_layout Standard
27328 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27331 \begin_layout Standard
27338 <row topline="true">
27339 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27342 \begin_layout Standard
27348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27351 \begin_layout Standard
27357 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27360 \begin_layout Standard
27366 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27369 \begin_layout Standard
27376 <row topline="true" bottomline="true">
27377 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27380 \begin_layout Standard
27386 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27389 \begin_layout Standard
27395 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27398 \begin_layout Standard
27404 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27407 \begin_layout Standard
27426 \begin_layout Standard
27427 When you use the option
27439 dialog, only the path to the inserted file is shown in the output.
27442 material is displayed in LyX either as box like this:
27443 \begin_inset Graphics
27444 filename clipart/ExternalMaterialQt4.png
27449 or as image, depending on the setting in the
27461 \begin_layout Standard
27468 manual explains how you can define your own templates.
27471 \begin_layout Section
27473 \begin_inset LatexCommand index
27474 name "External Stuff ! Child Documents"
27479 \begin_inset LatexCommand index
27480 name "Files ! Include"
27487 \begin_layout Standard
27488 Child documents are used when you have a long document consisting of several
27489 larger parts or sections.
27490 For maintenance it is often useful and sometimes even required to split
27491 the document in several files that can be revised separately.
27492 The different documents are then the so called child documents and a master
27493 document connects them to print the full document or parts of it.
27496 \begin_layout Standard
27497 Included documents are displayed in LyX as a box like this:
27498 \begin_inset Graphics
27499 filename clipart/ChildDocumentQt4.png
27504 To include child documents to a master document use the menu
27506 Insert\SpecialChar \menuseparator
27507 File\SpecialChar \menuseparator
27512 A dialog pops up where you can choose between three include methods:
27515 \begin_layout Description
27516 Include You can include LyX and LaTeX-documents.
27525 dialog, the included documents will be opened in LyX in a new file tab
27526 so that you can modify it.
27531 \begin_layout Standard
27532 Here is a child document inserted using
27537 \begin_inset Include \include{DummyDocument1.lyx}
27545 \begin_layout Standard
27546 The section numbering includes the sections of the included files in the
27547 order they are inserted in the master document.
27548 The included example document has for example a subsection that is numbered
27549 as subsection of this section.
27550 Labels of included documents can be referenced: Subsection\InsetSpace ~
27552 \begin_inset LatexCommand ref
27553 reference "sub:External-Subsection-1"
27560 \begin_layout Standard
27561 The preamble of the child document is ignored, only the preamble of the
27562 master document is used.
27563 Included documents are inserted starting on a new page and end with a pagebreak.
27566 \begin_layout Standard
27567 With the LaTeX-command
27573 you can specify which included child documents are processed when the output
27575 This is useful when you are perhaps only working on a certain chapter of
27576 your large document as this saves compiling time.
27583 is inserted to the master document preamble.
27584 It takes a comma-separated list of the filenames as argument, e.g.
27587 \begin_layout Standard
27592 includeonly{chapter1,chapter5}
27595 \begin_layout Standard
27596 will only process the included files named
27597 \begin_inset Quotes eld
27601 \begin_inset Quotes erd
27605 \begin_inset Quotes eld
27609 \begin_inset Quotes erd
27613 \begin_inset Quotes eld
27617 \begin_inset Quotes erd
27623 \begin_layout Standard
27624 \begin_inset Note Greyedout
27627 \begin_layout Standard
27632 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
27633 w the document in case that the child document uses another document class
27634 than the master document as this will lead to unexpected outputs.
27642 \begin_layout Description
27643 Input This method is very similar to the Include method.
27644 The differences are:
27648 \begin_layout Itemize
27649 Input files don't start with a new page and don't end with a pagebreak.
27652 \begin_layout Itemize
27653 Input files can be previewed in LyX when
27655 Instant\InsetSpace ~
27658 is enabled in LyX's preferences under
27662 feel\SpecialChar \menuseparator
27668 \begin_layout Itemize
27679 \begin_layout Standard
27680 Here is a child document inserted using
27685 \begin_inset Include \input{DummyDocument2.lyx}
27693 \begin_layout Description
27694 Verbatim With this method every text file can be included.
27695 The file is shown in the output with its source code, no command used in
27696 the text is invoked.
27697 You can use the option
27699 Mark spaces in output
27701 that displays the character
27702 \begin_inset Quotes eld
27709 \begin_layout Standard
27719 \begin_inset Quotes erd
27722 for every space character in the source code.
27723 The difference to the method via the menu
27725 Insert\SpecialChar \menuseparator
27726 File\SpecialChar \menuseparator
27730 is that the document content is not shown in LyX.
27733 \begin_layout Standard
27734 Here is a child document inserted as Verbatim:
27735 \begin_inset Include \verbatiminput{DummyTextDocument.txt}
27741 \begin_inset VSpace bigskip
27744 Here is a child document inserted as Verbatim using the
27746 Mark spaces in output
27749 \begin_inset Include \verbatiminput*{DummyTextDocument.txt}
27757 \begin_layout Standard
27758 \begin_inset VSpace bigskip
27764 \begin_layout Standard
27765 \begin_inset Note Greyedout
27768 \begin_layout Standard
27773 As you can see in the examples above, the text of the documents included
27774 as verbatim is not broken at the end of the document lines.
27782 \begin_layout Standard
27783 \begin_inset Note Greyedout
27786 \begin_layout Standard
27791 Including the same document twice in a document using different methods
27792 could cause LaTeX-problems.
27800 \begin_layout Standard
27806 \begin_layout Chapter
27812 \begin_layout Standard
27825 \begin_layout Standard
27833 \begin_inset LatexCommand index
27839 \begin_inset LatexCommand label
27840 name "cha:Units-available-in"
27845 \begin_inset Note Note
27848 \begin_layout Standard
27851 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
27852 are displayed wrongly in PDF-bookmarks.
27853 For more information about this, have a look at
27854 \begin_inset LatexCommand cite
27867 \begin_layout Standard
27868 To understand the units described in this documentation, Table\InsetSpace ~
27870 \begin_inset LatexCommand ref
27871 reference "tab:Units"
27875 explains all units available in LyX.
27878 \begin_layout Standard
27879 \begin_inset Float table
27885 \begin_layout Standard
27886 \begin_inset Caption
27888 \begin_layout Standard
27889 \begin_inset LatexCommand label
27902 \begin_layout Standard
27903 \begin_inset VSpace medskip
27909 \begin_layout Standard
27911 \begin_inset Tabular
27912 <lyxtabular version="3" rows="20" columns="2">
27914 <column alignment="center" valignment="top" leftline="true" width="0">
27915 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27916 <row topline="true" bottomline="true">
27917 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27920 \begin_layout Standard
27926 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27929 \begin_layout Standard
27936 <row topline="true">
27937 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27940 \begin_layout Standard
27946 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27949 \begin_layout Standard
27956 <row topline="true">
27957 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27960 \begin_layout Standard
27966 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27969 \begin_layout Standard
27976 <row topline="true">
27977 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27980 \begin_layout Standard
27986 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27989 \begin_layout Standard
27996 <row topline="true">
27997 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28000 \begin_layout Standard
28006 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28009 \begin_layout Standard
28010 point (72.27\InsetSpace \thinspace{}
28011 pt = 1\InsetSpace \thinspace{}
28018 <row topline="true">
28019 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28022 \begin_layout Standard
28028 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28031 \begin_layout Standard
28032 pica (1\InsetSpace \thinspace{}
28033 pc = 12\InsetSpace \thinspace{}
28040 <row topline="true">
28041 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28044 \begin_layout Standard
28050 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28053 \begin_layout Standard
28054 scaled point (65536\InsetSpace \thinspace{}
28055 sp = 1\InsetSpace \thinspace{}
28062 <row topline="true">
28063 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28066 \begin_layout Standard
28072 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28075 \begin_layout Standard
28076 big point (72\InsetSpace \thinspace{}
28077 bp = 1\InsetSpace \thinspace{}
28084 <row topline="true">
28085 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28088 \begin_layout Standard
28094 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28097 \begin_layout Standard
28098 didot (72\InsetSpace \thinspace{}
28100 \begin_inset Formula $\approx$
28103 37.6\InsetSpace \thinspace{}
28110 <row topline="true">
28111 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28114 \begin_layout Standard
28120 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28123 \begin_layout Standard
28124 cicero (1\InsetSpace \thinspace{}
28125 cc = 12\InsetSpace \thinspace{}
28132 <row topline="true">
28133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28136 \begin_layout Standard
28142 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28145 \begin_layout Standard
28146 % of original image width
28152 <row topline="true">
28153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28156 \begin_layout Standard
28162 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28165 \begin_layout Standard
28172 <row topline="true">
28173 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28176 \begin_layout Standard
28182 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28185 \begin_layout Standard
28192 <row topline="true">
28193 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28196 \begin_layout Standard
28202 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28205 \begin_layout Standard
28212 <row topline="true">
28213 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28216 \begin_layout Standard
28222 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28225 \begin_layout Standard
28232 <row topline="true">
28233 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28236 \begin_layout Standard
28242 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28245 \begin_layout Standard
28252 <row topline="true">
28253 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28256 \begin_layout Standard
28262 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28265 \begin_layout Standard
28272 <row topline="true">
28273 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28276 \begin_layout Standard
28282 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28285 \begin_layout Standard
28296 <row topline="true">
28297 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28300 \begin_layout Standard
28306 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28309 \begin_layout Standard
28320 <row topline="true" bottomline="true">
28321 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28324 \begin_layout Standard
28330 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28333 \begin_layout Standard
28334 math unit (1\InsetSpace \thinspace{}
28335 mu = 1/18\InsetSpace \thinspace{}
28354 \begin_layout Chapter
28355 Output File Formats with Graphics
28356 \begin_inset LatexCommand label
28357 name "cha:Output-File-Formats"
28364 \begin_layout Section
28366 \begin_inset LatexCommand index
28367 name "File Formats ! DVI"
28372 \begin_inset LatexCommand index
28373 name "DVI|see{File Formats}"
28380 \begin_layout Standard
28381 This file type has the extension
28382 \begin_inset Quotes eld
28390 \begin_inset Quotes erd
28395 \begin_inset Quotes eld
28399 \begin_inset Quotes erd
28402 (DVI), because it is completely portable; you can move them from one machine
28403 to another without needing to do any sort of conversion.
28404 At the time when this file-format was developed, this was no matter of
28406 DVIs are used for quick previews and as pre-stage for other output formats,
28410 \begin_layout Standard
28411 \begin_inset Note Greyedout
28414 \begin_layout Standard
28419 DVI-files doesn't contain images, they will only be a linked.
28424 So don't forget this, if you move your
28428 file to another computer.
28429 This property can also slow down your computer when you view the DVI.
28430 Because the DVI-viewer has to convert the image in the background to make
28431 it visible when you scroll in the DVI.
28432 So we recommend to use PDF for files with many images.
28435 \begin_layout Standard
28436 You can export your document to DVI by using the menu
28438 File\SpecialChar \menuseparator
28439 Export\SpecialChar \menuseparator
28443 You can view your document as DVI via the
28447 menu or by using the toolbar button
28448 \begin_inset Graphics
28449 filename ../images/buffer-view_dvi.xpm
28457 \begin_layout Section
28459 \begin_inset LatexCommand label
28460 name "sec:PostScript"
28465 \begin_inset LatexCommand index
28466 name "File Formats ! PostScript"
28471 \begin_inset LatexCommand index
28472 name "PostScript|see{File Formats}"
28479 \begin_layout Standard
28480 This file type has the extension
28481 \begin_inset Quotes eld
28489 \begin_inset Quotes erd
28493 PostScript was developed by the company
28497 as printer language.
28498 The file contains therefore commands that the printer uses to print the
28500 PostScript can be seen as
28501 \begin_inset Quotes eld
28504 programming language
28505 \begin_inset Quotes erd
28508 ; you can calculate with it and draw diagrams and images
28512 \begin_layout Standard
28513 If you are interested to learn more about this, have a look at the LaTeX-package
28519 \begin_inset LatexCommand cite
28530 Due to this ability, the files are often bigger than PDFs.
28533 \begin_layout Standard
28534 PostScript can only contain images in the format
28535 \begin_inset Quotes eld
28538 Encapsulated PostScript
28539 \begin_inset Quotes erd
28542 (EPS, file extension
28543 \begin_inset Quotes eld
28551 \begin_inset Quotes erd
28555 As LyX allows you to use any known image format in your document, it has
28556 to convert images in the background to EPS.
28557 If you have e.g 50 images in your document, LyX has to do 50 conversions
28558 whenever you view or export your document.
28559 This will slow down your work flow with LyX drastically.
28560 So if you plan to use PostScript, you can insert your images directly as
28561 EPS to avoid this problem.
28564 \begin_layout Standard
28565 You can export your document to PostScript using the menu
28567 File\SpecialChar \menuseparator
28568 Export\SpecialChar \menuseparator
28572 You can view your document as PostScript via the
28576 menu or by using the toolbar button
28577 \begin_inset Graphics
28578 filename ../images/buffer-view_ps.xpm
28586 \begin_layout Section
28588 \begin_inset LatexCommand label
28594 \begin_inset LatexCommand index
28595 name "File Formats ! PDF"
28600 \begin_inset LatexCommand index
28608 \begin_layout Standard
28609 This file type has the extension
28610 \begin_inset Quotes eld
28618 \begin_inset Quotes erd
28623 \begin_inset Quotes eld
28626 Portable Document Format
28627 \begin_inset Quotes erd
28630 (PDF) is developed by
28634 as derivative from PostScript.
28635 It is more compressed and it uses much less commands than PostScript.
28637 \begin_inset Quotes eld
28641 \begin_inset Quotes erd
28644 implies, it can be processed at any computer system and the printed output
28645 looks exactly the same.
28648 \begin_layout Standard
28649 PDF can contain images in its own PDF format, in the format
28650 \begin_inset Quotes eld
28653 Joint Photographic Experts Group
28654 \begin_inset Quotes erd
28657 (JPG, file extension
28658 \begin_inset Quotes eld
28666 \begin_inset Quotes erd
28670 \begin_inset Quotes eld
28678 \begin_inset Quotes erd
28681 ), and in the format
28682 \begin_inset Quotes eld
28685 Portable Network Graphics
28686 \begin_inset Quotes erd
28689 (PNG, file extension
28690 \begin_inset Quotes eld
28698 \begin_inset Quotes erd
28702 You can although use any other image format, because LyX converts them
28703 in the background to one of these formats.
28704 But as described in the section about PostScript, the image conversion
28705 will slow down your work flow.
28706 So it is recommended to use images in one of the three mentioned formats.
28709 \begin_layout Standard
28710 You can export your document to PDF via the menu
28712 File\SpecialChar \menuseparator
28715 in three different ways:
28718 \begin_layout Description
28719 PDF This uses the program
28723 that creates a PDF from a PostScript-version of your file.
28724 The PostScript-version is produced by the program
28728 which uses a DVI-version as intermediate step.
28729 So this export variant consist of three conversions.
28732 \begin_layout Description
28734 (dvipdfm) This uses the program
28738 that converts your file in the background to DVI and in a second step to
28742 \begin_layout Description
28744 (pdflatex) This uses the program
28748 that converts your file directly to PDF.
28751 \begin_layout Standard
28752 It is recommended to use
28761 supports all features of actual PDF-versions, is quick and works stable
28767 is not under development and therefore a bit outdated.
28770 \begin_layout Standard
28771 You can view your document as PDF via the
28775 menu or by using the toolbar button
28776 \begin_inset Graphics
28777 filename ../images/buffer-view_pdf2.xpm
28794 \begin_layout Chapter
28795 Explanation of Equation\InsetSpace ~
28797 \begin_inset LatexCommand eqref
28803 \begin_inset LatexCommand label
28804 name "cha:Explanation-of-Equation"
28811 \begin_layout Standard
28817 \begin_inset Formula $W_{\mathrm{tot\, n}}$
28820 can be calculated to
28823 \begin_layout Standard
28824 \begin_inset Formula \begin{equation}
28825 W_{\mathrm{tot}\, n}=n·(W_{g\, n}+2·\backslash\mbox{tabcolsep})+(n+1)·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}\end{equation}
28832 \begin_layout Standard
28834 \begin_inset Formula $W_{g\, n}$
28837 is the given width of all cells.
28844 is the LaTeX-length between the cell text and the cell border, its default
28845 value is 6\InsetSpace \thinspace{}
28853 is the thickness of the cell border line, the default is 0.4\InsetSpace \thinspace{}
28857 \begin_layout Standard
28858 Following equation\InsetSpace ~
28860 \begin_inset LatexCommand eqref
28861 reference "eq:Wtot_n"
28865 , the total width of a multicolumn
28866 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
28872 \begin_layout Standard
28873 \begin_inset Formula \begin{equation}
28874 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2·\backslash\mbox{tabcolsep}+2·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
28881 \begin_layout Standard
28882 By setting equation\InsetSpace ~
28884 \begin_inset LatexCommand eqref
28885 reference "eq:Wtot_n"
28890 \begin_inset LatexCommand eqref
28891 reference "eq:Wtot_mult"
28895 equal we can calculate the needed given width
28896 \begin_inset Formula $W_{g\, n}$
28903 columns are spanned, so that each column has a total width of
28904 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
28910 \begin_layout Standard
28911 \begin_inset Formula \begin{equation}
28912 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)·(2·\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
28919 \begin_layout Bibliography
28920 \begin_inset LatexCommand bibitem
28921 key "latexcompanion"
28925 Frank Mittelbach and Michel Goossens:
28927 The LaTeX Companion Second Edition.
28930 Addison-Wesley, 2004
28933 \begin_layout Bibliography
28934 \begin_inset LatexCommand bibitem
28939 Helmut Kopka and Patrick W.
28942 A Guide to LaTeX Fourth Edition.
28945 Addison-Wesley, 2003
28948 \begin_layout Bibliography
28949 \begin_inset LatexCommand bibitem
28956 LaTeX: A Document Preparation System.
28959 Addison-Wesley, second edition, 1994
28962 \begin_layout Bibliography
28963 \begin_inset LatexCommand bibitem
28972 \begin_layout Standard
28976 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf}
28986 \begin_layout Standard
28993 of the LaTeX-package
28998 \begin_inset LatexCommand index
28999 name "LaTeX-packages ! booktabs"
29006 \begin_layout Bibliography
29007 \begin_inset LatexCommand bibitem
29016 \begin_layout Standard
29020 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf}{
29029 \begin_layout Standard
29036 of the LaTeX-package
29041 \begin_inset LatexCommand index
29042 name "LaTeX-packages ! caption"
29049 \begin_layout Bibliography
29050 \begin_inset LatexCommand bibitem
29059 \begin_layout Standard
29063 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/anleitung.pdf}
29073 \begin_layout Standard
29080 of the LaTeX-package
29085 \begin_layout Bibliography
29086 \begin_inset LatexCommand bibitem
29095 \begin_layout Standard
29099 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf}
29109 \begin_layout Standard
29116 of the LaTeX-package
29118 endf\SpecialChar \textcompwordmark{}
29122 \begin_inset LatexCommand index
29123 name "LaTeX-packages ! endfloat"
29130 \begin_layout Bibliography
29131 \begin_inset LatexCommand bibitem
29140 \begin_layout Standard
29144 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/floatflt/floatflt.pdf}
29154 \begin_layout Standard
29161 of the LaTeX-package
29163 floatf\SpecialChar \textcompwordmark{}
29167 \begin_inset LatexCommand index
29168 name "LaTeX-packages ! floatflt"
29175 \begin_layout Bibliography
29176 \begin_inset LatexCommand bibitem
29185 \begin_layout Standard
29189 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf}
29199 \begin_layout Standard
29206 of the LaTeX-package
29211 \begin_inset LatexCommand index
29212 name "LaTeX-packages ! footmisc"
29219 \begin_layout Bibliography
29220 \begin_inset LatexCommand bibitem
29229 \begin_layout Standard
29233 href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf}{
29242 \begin_layout Standard
29249 of the LaTeX-package
29254 \begin_inset LatexCommand index
29255 name "LaTeX-packages ! hyperref"
29262 \begin_layout Bibliography
29263 \begin_inset LatexCommand bibitem
29272 \begin_layout Standard
29276 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf}
29286 \begin_layout Standard
29293 of the LaTeX-package
29298 \begin_inset LatexCommand index
29299 name "LaTeX-packages ! hyperref"
29306 \begin_layout Bibliography
29307 \begin_inset LatexCommand bibitem
29316 \begin_layout Standard
29320 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.p
29330 \begin_layout Standard
29337 of the LaTeX-package
29342 \begin_inset LatexCommand index
29343 name "LaTeX-packages ! koma-script"
29350 \begin_layout Bibliography
29351 \begin_inset LatexCommand bibitem
29352 key "koma-script-de"
29360 \begin_layout Standard
29364 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguide.p
29374 \begin_layout Standard
29381 of the LaTeX-package
29386 \begin_inset LatexCommand index
29387 name "LaTeX-packages ! koma-script"
29394 \begin_layout Bibliography
29395 \begin_inset LatexCommand bibitem
29404 \begin_layout Standard
29408 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.
29418 \begin_layout Standard
29425 of the LaTeX-package
29430 \begin_inset LatexCommand index
29431 name "LaTeX-packages ! marginnote"
29438 \begin_layout Bibliography
29439 \begin_inset LatexCommand bibitem
29448 \begin_layout Standard
29452 href{http://tug.org/PSTricks/main.cgi/}{
29461 \begin_layout Standard
29468 of the LaTeX-package
29473 \begin_inset LatexCommand index
29474 name "LaTeX-packages ! PSTricks"
29481 \begin_layout Bibliography
29482 \begin_inset LatexCommand bibitem
29491 \begin_layout Standard
29495 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf}{
29504 \begin_layout Standard
29511 of the LaTeX-package
29516 \begin_inset LatexCommand index
29517 name "LaTeX-packages ! sidecap"
29524 \begin_layout Bibliography
29525 \begin_inset LatexCommand bibitem
29534 \begin_layout Standard
29538 href{http://wiki.lyx.org/LyX/NewInLyX15}{
29547 \begin_layout Standard
29554 about new LyX-features planned for the release
29561 \begin_layout Standard
29562 \begin_inset LatexCommand printindex
29569 \begin_layout Standard
29570 \begin_inset FloatList figure
29577 \begin_layout Standard
29578 \begin_inset FloatList table