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
17468 This inserts a box with a label in the
17476 \begin_layout Standard
17481 environment is described in LyX's
17490 into your document.
17491 Every label ends with the character
17492 \begin_inset Quotes eld
17496 \begin_inset Quotes erd
17499 as placeholder for the float number in the output.
17500 The label will automatically be translated to the document language in
17502 Behind the label you can insert the caption text.
17503 The image or table is inserted above or below the caption in a separate
17504 paragraph within the float.
17505 More about the caption placement is described in section\InsetSpace ~
17507 \begin_inset LatexCommand ref
17508 reference "sec:Caption-Placement"
17513 To keep your LyX-document readable, you can open and close the float box
17514 by left-clicking on the box label.
17515 A closed float box looks like this:
17516 \begin_inset Graphics
17517 filename clipart/floatQt4.png
17522 -- a gray button with a red label.
17525 \begin_layout Standard
17526 It is recommended to insert floats as a separate paragraph to avoid possible
17527 LaTeX-errors that can occur when the surrounding text is specially formatted.
17530 \begin_layout Standard
17531 Existing figures or tables can be put into a float by marking them and then
17532 pressing the corresponding toolbar button for a new float.
17535 \begin_layout Section
17539 \begin_layout Standard
17540 Besides figure and table floats that are described in section\InsetSpace ~
17542 \begin_inset LatexCommand ref
17543 reference "sec:Figure-Floats"
17548 \begin_inset LatexCommand ref
17549 reference "sec:Table-Floats"
17553 , respectively, LyX offers the float types
17566 \begin_layout Subsection
17568 \begin_inset LatexCommand index
17569 name "Floats ! Algorithm Floats"
17576 \begin_layout Standard
17577 \begin_inset Float algorithm
17583 \begin_layout Standard
17584 \begin_inset Caption
17586 \begin_layout Standard
17587 \begin_inset LatexCommand label
17588 name "alg:Example-Algorithm-float"
17592 Example Algorithm float
17600 \begin_layout LyX-Code
17603 Sum:= Sum + A(I); /*senseless comment*/
17606 \begin_inset VSpace -4mm
17617 \begin_layout Standard
17618 This float type is inserted with the menu
17620 Insert\SpecialChar \menuseparator
17621 Floats\SpecialChar \menuseparator
17625 It is used for program codes and descriptions of algorithms.
17626 A possible environment for algorithms is the
17630 , described in LyX's
17635 Algorithm\InsetSpace ~
17637 \begin_inset LatexCommand ref
17638 reference "alg:Example-Algorithm-float"
17642 is an example of an algorithm float where -4\InsetSpace \thinspace{}
17643 mm vertical space was added
17644 at the end of the float to have the bottom rule exactly below the last
17648 \begin_layout Standard
17649 The float label is not automatically translated into the document language.
17650 If your document is not in English, you have to do this manually by adding
17651 the following line to the document preamble
17656 \begin_layout Standard
17661 floatname{algorithm}{your\InsetSpace ~
17665 \begin_layout Standard
17672 \begin_inset Quotes eld
17680 \begin_inset Quotes erd
17686 \begin_layout Description
17691 When the LaTeX-package
17696 \begin_inset LatexCommand index
17697 name "LaTeX-packages ! hyperref"
17701 is used to link cross-references to floats in the PDF-output, it must be
17702 loaded in the document preamble before the definition of floats to be able
17703 to reference floats.
17704 As LyX sets the float definition for algorithm floats automatically before
17705 the user editable part of the document preamble, you need to insert the
17706 following preamble lines
17710 the loading command of
17717 \begin_inset VSpace defskip
17724 newfloat{Xalgorithm}{tbp}{loa}
17728 floatname{Xalgorithm}{your\InsetSpace ~
17741 renewenvironment{algorithm}[1][tbp]
17747 \begin_layout Standard
17758 begin{Xalgorithm}[#1]}{
17761 \begin_inset VSpace defskip
17774 \begin_inset Quotes eld
17782 \begin_inset Quotes erd
17788 \begin_layout Standard
17789 Algorithm floats are not by default numbered in the scheme
17790 \begin_inset Quotes eld
17794 \begin_inset Quotes erd
17797 like it is the case for table and figure floats in many document-classes.
17798 To number algorithm floats in the same scheme, add this command to your
17802 \begin_layout Standard
17807 numberwithin{algorithm}{chapter}
17810 \begin_layout Standard
17811 If you use the LaTeX-package
17815 , add this line instead
17823 (the commands from above) to the preamble:
17826 \begin_layout Standard
17831 numberwithin{Xalgorithm}{chapter}
17834 \begin_layout Standard
17835 To be able to use the command
17846 in the document settings the option
17856 \begin_layout Subsection
17858 \begin_inset LatexCommand index
17859 name "Floats ! Text Wrap Floats"
17864 \begin_inset LatexCommand label
17865 name "sub:floatflt-wrap-float"
17872 \begin_layout Standard
17873 This float type is used if you want to
17874 \begin_inset Quotes eld
17878 \begin_inset Quotes erd
17881 text around a figure so that it only occupies some fraction of the column
17883 It can be inserted using the menu
17884 \begin_inset Wrap figure
17889 \begin_layout Standard
17890 \begin_inset Graphics
17891 filename clipart/mobius.eps
17894 rotateOrigin center
17901 \begin_layout Standard
17902 \begin_inset Caption
17904 \begin_layout Standard
17905 \begin_inset LatexCommand label
17906 name "fig:This-is-a"
17910 This is a wrapped figure, and this is the brilliant caption that describes
17912 \begin_inset VSpace medskip
17927 Insert\SpecialChar \menuseparator
17928 Floats\SpecialChar \menuseparator
17933 if the LaTeX-package
17938 \begin_inset LatexCommand index
17939 name "LaTeX-packages ! floatflt"
17947 \begin_layout Standard
17948 Installing a LaTeX-package is explained it in the
17958 The width and placement of the float is adjusted by right-clicking on the
17960 Figure\InsetSpace ~
17962 \begin_inset LatexCommand ref
17963 reference "fig:This-is-a"
17967 is an example text wrap float with a width of 40
17968 \begin_inset Formula $\,$
17975 \begin_layout Standard
17976 Available units are explained in
17977 \begin_inset LatexCommand ref
17978 reference "cha:Units-available-in"
17987 Some space was added under the caption to separate it better from the surroundi
17991 \begin_layout Standard
17996 also supports table wrap floats, but they are not yet supported by LyX.
17997 If you need this, read the documentation of
18002 \begin_inset LatexCommand cite
18010 \begin_layout Standard
18011 \begin_inset Note Greyedout
18014 \begin_layout Standard
18020 wrap float floats are fragile! E.\InsetSpace \thinspace{}
18022 having a figure too close to the bottom
18023 of the page can mess things up in the way that the float doesn't appear
18024 in the output or that it is placed over some other text.
18028 \begin_layout Standard
18029 The better solution is to use the LaTeX-package
18031 wrapf\SpecialChar \textcompwordmark{}
18035 \begin_inset LatexCommand index
18036 name "LaTeX-packages ! wrapfig\\vspace{4mm}"
18042 floatf\SpecialChar \textcompwordmark{}
18045 , but it is currently not supported by LyX.
18058 \begin_layout Standard
18062 \begin_layout Itemize
18063 Wrap floats should not be placed in paragraphs that run over a page break.
18064 That means that wrap floats should better be inserted to the exact place
18065 when the document is nearly ready and you are able to estimate where page
18066 breaks will appear.
18069 \begin_layout Itemize
18070 Wrap floats should either be placed in an own paragraph before the paragraph
18071 where they should wrap into or within a paragraph.
18074 \begin_layout Itemize
18075 Wrap floats in consecutive paragraphs may cause troubles, so assure that
18076 there is a text paragraph between them as separator.
18079 \begin_layout Itemize
18080 Wrap floats are not allowed in section headings or tables.
18083 \begin_layout Section
18085 \begin_inset LatexCommand label
18086 name "sec:Float-Numbering"
18091 \begin_inset LatexCommand index
18092 name "Floats ! Numbering"
18099 \begin_layout Standard
18100 Floats are usually numbered either independent from the sections the floats
18101 are in, or in the scheme
18102 \begin_inset Quotes eld
18106 \begin_inset Quotes erd
18110 \begin_inset Quotes eld
18114 \begin_inset Quotes erd
18118 This depends on the used document class.
18121 \begin_layout Standard
18122 To change the section independent numbering, you can use this command in
18123 the document preamble:
18126 \begin_layout Standard
18138 \begin_layout Standard
18145 is the command that prints the table number, for figure floats, the command
18159 prints in the command above the table number as small roman number.
18162 \begin_layout Standard
18163 To change the numbering scheme for example to
18164 \begin_inset Quotes eld
18168 \begin_inset Quotes erd
18171 , use this command in the preamble:
18174 \begin_layout Standard
18179 numberwithin{table}{subsection}
18182 \begin_layout Standard
18183 To be able to use the command
18194 in the document settings the option
18204 \begin_layout Standard
18205 Please also have a look at section\InsetSpace ~
18207 \begin_inset LatexCommand ref
18208 reference "sub:Footnote-Numbering"
18212 for the details and important notes about the numbering commands.
18215 \begin_layout Section
18217 \begin_inset LatexCommand label
18218 name "sec:Referencing-Floats"
18223 \begin_inset LatexCommand index
18224 name "Floats ! References"
18229 \begin_inset LatexCommand index
18237 \begin_layout Standard
18238 To reference a float, insert a label into its caption using the menu
18240 Insert\SpecialChar \menuseparator
18243 or the toolbar button
18244 \begin_inset Graphics
18245 filename ../images/label-insert.xpm
18251 A grey label box like this one:
18252 \begin_inset Graphics
18253 filename clipart/labelQt4.png
18258 will be inserted and the label window pops up asking for the label text.
18259 LyX offers as text the first words of the caption with a prefix.
18260 The prefix depends on the float type, e.\InsetSpace \thinspace{}
18262 for figure floats the prefix will
18270 \begin_layout Standard
18271 The label is used as anchor and name for the reference.
18272 You can refer to the label using the menu
18274 Insert\SpecialChar \menuseparator
18277 or the toolbar button
18278 \begin_inset Graphics
18279 filename ../images/dialog-show-new-inset_ref.xpm
18285 A grey cross-reference box like this one:
18286 \begin_inset Graphics
18287 filename clipart/referenceQt4.png
18292 will be inserted and the cross-reference window appear showing all labels
18294 If you have multiple LyX-documents opened, choose the one you are working
18295 on from the drop-list at the top of the dialog.
18296 You can now sort the labels alphabetically and then choose one.
18297 At the position of the cross-reference box the float number will appear
18301 \begin_layout Standard
18302 It is recommended to use a protected space between the cross-reference name
18303 and its number to avoid line breaks between them.
18304 If a cross-reference refers to a non-existing label, you will see two question
18305 marks in the output instead of the reference.
18308 \begin_layout Standard
18309 You can change labels at any time by clicking on the label box.
18310 References to the changed label will automatically change its link to the
18311 new label text, so that you don't need to take care about this.
18314 \begin_layout Standard
18321 in the cross-reference window sets the cursor before the referred label.
18322 The button text changes then to Go\InsetSpace ~
18323 Back and you can use it to set the cursor
18324 back to the cross-reference.
18325 Right-clicking on a cross-reference box also sets the cursor before the
18326 referenced label but without a possibility to go back.
18329 \begin_layout Subsection
18330 Cross-Reference Formats
18331 \begin_inset LatexCommand label
18332 name "sub:Cross-Reference-Formats"
18337 \begin_inset LatexCommand index
18338 name "References ! Formats"
18345 \begin_layout Standard
18346 There are six varieties of cross-references:
18349 \begin_layout Description
18350 <reference>: prints the float number, this is the default:
18351 \begin_inset LatexCommand ref
18352 reference "fig:Two-distorted-images"
18359 \begin_layout Description
18360 (<reference>): prints the float number within two parentheses, this is the
18361 style normally used to reference formulas, especially when the reference
18363 \begin_inset Quotes eld
18367 \begin_inset Quotes erd
18371 \begin_inset LatexCommand eqref
18379 \begin_layout Description
18380 <page>: prints the page number: Page\InsetSpace ~
18382 \begin_inset LatexCommand pageref
18383 reference "fig:Two-distorted-images"
18390 \begin_layout Description
18393 <page>: prints the text "on page" and the page number:
18394 \begin_inset LatexCommand vpageref
18395 reference "fig:Two-distorted-images"
18402 \begin_layout Description
18403 <reference>\InsetSpace ~
18406 <page>: prints the float number, the text "on page", and
18408 \begin_inset LatexCommand vref
18409 reference "fig:Two-distorted-images"
18416 \begin_layout Description
18417 Formatted\InsetSpace ~
18418 reference: prints a self defined cross-reference format.
18420 \begin_inset Note Greyedout
18423 \begin_layout Standard
18428 This feature is only available when you have the LaTeX-package
18440 \begin_layout Standard
18441 Note that the style <page> won't print the page number if the label is on
18442 the previous, the same, or the next page.
18443 You will e.\InsetSpace \thinspace{}
18446 \begin_inset Quotes eld
18454 \begin_inset Quotes erd
18460 \begin_layout Standard
18461 The number and current page of the referred document part in the output,
18462 is automatically calculated by LaTeX.
18463 The varieties are adjusted in the field
18467 of the cross-reference window, that appear when you click on the cross-referenc
18471 \begin_layout Subsection
18472 Referencing Subfigures
18473 \begin_inset LatexCommand label
18474 name "sub:Referencing-Subfigures"
18479 \begin_inset LatexCommand index
18480 name "References ! to Subfigures"
18487 \begin_layout Standard
18488 Currently referencing subfigures is not supported by LyX, so you have to
18489 use LaTeX-commands.
18490 The label is the created with the command
18493 \begin_layout Standard
18498 label{fig:YourLabelName}
18501 \begin_layout Standard
18502 that is directly inserted into the subfigure caption field.
18503 To reference the label add this command in ERT
18506 \begin_layout Standard
18511 ref{fig:YourLabelName}
18514 \begin_layout Standard
18515 to the position in your document where the reference should be placed.
18516 Here is a reference to a subfigure: Subfigure\InsetSpace ~
18521 \begin_layout Standard
18533 \begin_layout Subsection
18534 Automatic Reference Naming
18535 \begin_inset LatexCommand index
18536 name "References ! Automatic Reference Naming"
18543 \begin_layout Standard
18548 provides a very useful feature that cross-references automatically include
18549 the name of the referenced floats (or text parts like sections).
18550 You save to write e.\InsetSpace \thinspace{}
18553 \begin_inset Quotes eld
18557 \begin_inset Quotes erd
18560 before every reference box.
18561 To get this automatic reference naming, you have to load the LaTeX-package
18567 \begin_inset LatexCommand index
18568 name "LaTeX-packages ! hyperref"
18572 in the document preamble with
18575 \begin_layout Standard
18580 usepackage[pdfborder={0 0 0}]{hyperref}
18595 \begin_layout Standard
18600 is used to link cross-references in the DVI- and PDF-output, this means
18601 that the reader of your document will be able to click on a table of content
18602 (TOC) entry or on a reference and he will be shown the referenced document
18608 also creates PDF-bookmarks for every section of your document to make it
18609 easier for readers to navigate through the document.
18610 This is also used in this document but when you have a look in the document
18611 preamble you will find various options in the load command of
18616 To learn more about the
18620 package, we refer to its documentation
18621 \begin_inset LatexCommand cite
18629 \begin_layout Standard
18630 \begin_inset Note Greyedout
18633 \begin_layout Standard
18638 Automatic reference naming cannot be used when you use cross-references
18641 Formatted\InsetSpace ~
18644 style, described in section\InsetSpace ~
18646 \begin_inset LatexCommand ref
18647 reference "sub:Cross-Reference-Formats"
18659 \begin_layout Subsection
18661 \begin_inset LatexCommand label
18662 name "sub:Reference-Position"
18667 \begin_inset LatexCommand index
18668 name "References ! Reference Position"
18675 \begin_layout Standard
18681 \begin_inset LatexCommand index
18682 name "LaTeX-packages ! hyperref"
18686 to link cross-references in the output, you will see that clicking on an
18687 image float reference jumps to the image label.
18688 The caption will be the first text part on the screen, so that you cannot
18689 see the image without scrolling.
18690 This is because the reference link anchor is placed at the position of
18692 With the use of the package
18697 \begin_inset LatexCommand index
18698 name "LaTeX-packages ! hypcap"
18702 , which is part of the LaTeX-package
18707 \begin_inset LatexCommand index
18708 name "LaTeX-packages ! oberdiek"
18712 , the link anchor is placed at the beginning of a float.
18713 To use this feature for figure floats, load
18717 in the document preamble with the line
18720 \begin_layout Standard
18725 usepackage[f\SpecialChar \textcompwordmark{}
18729 \begin_layout Standard
18734 for all floats but this isn't recommended for stability reasons.
18735 For more informations, have a look at
18740 \begin_inset LatexCommand cite
18748 \begin_layout Standard
18749 \begin_inset Note Greyedout
18752 \begin_layout Standard
18761 must be loaded after
18765 in the document preamble.
18773 \begin_layout Standard
18774 \begin_inset Note Greyedout
18777 \begin_layout Standard
18782 The set reference position has no effect for references to subfigures.
18790 \begin_layout Section
18792 \begin_inset LatexCommand label
18793 name "sec:Float-Placement"
18798 \begin_inset LatexCommand index
18799 name "Floats ! Placement"
18806 \begin_layout Standard
18807 Right-clicking on a float-box opens a dialog where you can alter the placement
18808 options that LaTeX uses for positioning the float.
18815 is only useful for two-column documents: If you select it, the float will
18816 span across both columns on the page instead of being confined to just
18821 Rotate\InsetSpace ~
18824 is used to rotate floats, see section
18825 \begin_inset LatexCommand ref
18826 reference "sec:Rotated-Floats"
18833 \begin_layout Standard
18834 You can use one ore more of the following options in the float dialog to
18835 set the placement for a particular float when you uncheck the option
18838 default\InsetSpace ~
18844 \begin_layout Description
18847 possible: try to place the float on the position where it is inserted
18850 \begin_layout Description
18853 page: try to place the float on the top of the current page
18856 \begin_layout Description
18857 Bottom\InsetSpace ~
18859 page: try to place the float on the bottom of the current page
18862 \begin_layout Description
18865 floats: try to place the float on an own page
18868 \begin_layout Standard
18869 The order of the above option is
18874 That means, if you use the default placement, LaTeX will first try out
18887 , and then the others.
18888 If you don't use the default, LaTeX will try only the checked options but
18890 If none of the 4 placements are possible the procedure is internally repeated
18891 but it is tried to put the float on the following page.
18894 \begin_layout Standard
18895 By default, each options has its own rules:
18898 \begin_layout Labeling
18899 \labelwidthstring 00.00.0000
18906 only floats occupying less than 70\InsetSpace \thinspace{}
18907 % of the page can be placed at the top
18917 \begin_layout Labeling
18918 \labelwidthstring 00.00.0000
18921 Bottom\InsetSpace ~
18925 : only floats occupying less than 30\InsetSpace \thinspace{}
18926 % of the page can be placed at the bottom
18937 \begin_layout Labeling
18938 \labelwidthstring 00.00.0000
18945 : only if more than 50\InsetSpace \thinspace{}
18946 % of the page are occupied by floats, several floats
18947 can be set together on a page.
18957 \begin_layout Standard
18958 If you don't like these rules, you can ignore them by using the additional
18961 Ignore\InsetSpace ~
18967 You can also redefine the rules with LaTeX-commands that are given in parenthese
18968 s behind the rules description above.
18969 To increase for example the often too small default of the bottom-rule
18970 to 50\InsetSpace \thinspace{}
18971 % of the page, add this line to your document preamble:
18974 \begin_layout Standard
18981 bottomfraction}{0.5}
18984 \begin_layout Standard
18985 Sometimes you might need, under all circumstances, a float to be placed
18986 exactly at the position where it is inserted.
18987 For this case you can use the option
18993 Use this option very rarely and only if the document is nearly ready to
18995 Because the float is then no longer able to
18996 \begin_inset Quotes eld
19000 \begin_inset Quotes erd
19003 when you change your document and this will often destroy the page layout.
19006 \begin_layout Standard
19007 There are no placement options for text wrap floats, because they are always
19008 surrounded by the text of a certain paragraph.
19009 \begin_inset VSpace bigskip
19015 \begin_layout Standard
19016 Sometimes you have the problem that a float is placed at the top of a page
19017 while its corresponding section starts at the middle of the page, so that
19018 the reader could think the float is part of the previous section.
19019 To avoid this the LaTeX-command
19023 suppressf\SpecialChar \textcompwordmark{}
19027 It suppresses a given float placement for the page where it is inserted
19028 and can therefore be used to avoid that floats could be set before a section
19030 To get this, add these commands to your document preamble:
19033 \begin_layout Standard
19050 suppressf\SpecialChar \textcompwordmark{}
19056 \begin_layout Standard
19057 You can define the same for all section headings, like chapters and subsections.
19058 This definition is not recommended to be used for small text parts like
19059 subsubsections because LaTeX may then have problems to find a suitable
19063 \begin_layout Standard
19064 \begin_inset VSpace bigskip
19067 In some cases it is required to have all figures/tables at the end of the
19069 For this purpose the LaTeX-package
19071 endf\SpecialChar \textcompwordmark{}
19075 \begin_inset LatexCommand index
19076 name "LaTeX-packages ! endfloat"
19081 It puts all figure and table floats at the end of the document into own
19083 At the original float position a text hint like
19084 \begin_inset Quotes eld
19089 [Figure\InsetSpace ~
19093 \begin_inset Quotes erd
19097 The endfloat-package is loaded in the preamble with the line
19100 \begin_layout Standard
19105 usepackage[options]{endf\SpecialChar \textcompwordmark{}
19109 \begin_layout Standard
19110 There are various package options to format the created figure/table sections.
19111 For more information we refer to the
19113 endf\SpecialChar \textcompwordmark{}
19117 \begin_inset LatexCommand cite
19125 \begin_inset Note Greyedout
19128 \begin_layout Standard
19131 Note: endf\SpecialChar \textcompwordmark{}
19134 doesn't provide an automatic translation for the text hint, you have to
19135 do this manually, see section\InsetSpace ~
19137 \begin_inset LatexCommand cite
19150 \begin_inset Note Greyedout
19153 \begin_layout Standard
19158 There is currently a bug in
19160 endf\SpecialChar \textcompwordmark{}
19163 when the caption contains a German
19164 \begin_inset Quotes eld
19168 \begin_inset Quotes erd
19172 Use in this case the command
19173 \begin_inset Quotes eld
19183 \begin_inset Quotes erd
19187 \begin_inset Quotes eld
19191 \begin_inset Quotes erd
19202 \begin_layout Standard
19203 \begin_inset VSpace bigskip
19206 For more details about float placements, have a look at LaTeX books,
19207 \begin_inset LatexCommand cite
19208 key "latexcompanion,latexguide,latexbook"
19215 \begin_layout Section
19217 \begin_inset LatexCommand label
19218 name "sec:Rotated-Floats"
19223 \begin_inset LatexCommand index
19224 name "Floats ! Rotating"
19231 \begin_layout Standard
19232 Especially for wide tables you might have floats rotated.
19233 To rotate a whole float including the caption, right-click on the float-box
19236 Rotate\InsetSpace ~
19242 \begin_layout Standard
19243 Rotated floats are always placed on its own page (or column, when you have
19244 a two-column document).
19245 They are normally rotated so that you can read them from the outside margin
19246 -- to the left on even pages, to the right on odd pages.
19249 \begin_layout Standard
19250 Referencing rotated floats is the same like for normal floats, the caption
19251 format is also the same: Table\InsetSpace ~
19253 \begin_inset LatexCommand ref
19254 reference "tab:Rotated-table"
19258 is an example of a rotated table float.
19261 \begin_layout Standard
19262 \begin_inset Note Greyedout
19265 \begin_layout Standard
19270 Not all DVI-viewers are able to display rotated floats.
19278 \begin_layout Standard
19279 \begin_inset Float table
19284 \begin_layout Standard
19285 \begin_inset Caption
19287 \begin_layout Standard
19288 \begin_inset LatexCommand label
19289 name "tab:Rotated-table"
19301 \begin_layout Standard
19303 \begin_inset Tabular
19304 <lyxtabular version="3" rows="1" columns="5">
19306 <column alignment="center" valignment="top" leftline="true" width="0">
19307 <column alignment="center" valignment="top" leftline="true" width="0">
19308 <column alignment="center" valignment="top" leftline="true" width="0">
19309 <column alignment="center" valignment="top" leftline="true" width="0">
19310 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19311 <row topline="true" bottomline="true">
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" usebox="none">
19324 \begin_layout Standard
19330 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19333 \begin_layout Standard
19339 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19342 \begin_layout Standard
19348 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19351 \begin_layout Standard
19370 \begin_layout Section
19372 \begin_inset LatexCommand index
19373 name "Caption ! Formatting"
19378 \begin_inset LatexCommand index
19379 name "Floats ! Caption Formatting"
19384 \begin_inset LatexCommand index
19385 name "LaTeX-packages ! caption"
19390 \begin_inset LatexCommand label
19391 name "sec:Caption-Formatting"
19398 \begin_layout Standard
19403 environment is the default paragraph environment for
19408 On the LyX screen captions appear as label, e.\InsetSpace \thinspace{}
19411 \begin_inset Quotes eld
19419 \begin_inset Quotes erd
19422 followed by the caption text.
19424 \begin_inset Quotes eld
19428 \begin_inset Quotes erd
19431 is substituted in the printed output by the actual reference number.
19432 By default the label and the number are in the same font as the caption
19433 text and a colon follows the number to divide then label from the text.
19434 This caption format is not suitable for all document formats.
19438 \begin_layout Standard
19439 To change the default caption format, load the LaTeX-package
19444 \begin_inset LatexCommand index
19445 name "LaTeX-packages ! caption"
19449 in the document preamble with this line:
19452 \begin_layout Standard
19457 usepackage[format definition]{caption}
19460 \begin_layout Standard
19461 To have for example the label and the number in sans-serif bold font and
19462 the table captions always above the table like in this document, use the
19466 \begin_layout Standard
19471 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
19474 \begin_layout Standard
19475 You can also define different caption formats for the different float types.
19476 In this case load the
19480 package without format specific options and define the different formats
19481 with the help of the command
19484 \begin_layout Standard
19489 captionsetup[float type]{format definition}
19492 \begin_layout Standard
19493 in the document preamble.
19494 For example the caption formats of Figure\InsetSpace ~
19496 \begin_inset LatexCommand ref
19497 reference "fig:This-is-an-fig"
19501 and Table\InsetSpace ~
19503 \begin_inset LatexCommand ref
19504 reference "tab:This-is-an-tab"
19508 can be created using these commands in the document preamble:
19511 \begin_layout Standard
19516 usepackage[tableposition=top]{caption}
19524 captionsetup[f\SpecialChar \textcompwordmark{}
19525 igure]{labelfont={tt}, textfont=it, indention=1cm,%
19531 \begin_layout Standard
19539 captionsetup[figure]
19550 captionsetup[table]{labelfont={bf,sf}}
19553 \begin_layout Standard
19554 \begin_inset Note Greyedout
19557 \begin_layout Standard
19566 has no effect when a
19571 \begin_inset LatexCommand index
19572 name "LaTeX-packages ! koma-script"
19576 document class is used.
19577 In this case the document class option
19589 \begin_layout Standard
19590 For more information about the package
19594 we refer to its documentation
19595 \begin_inset LatexCommand cite
19596 key "caption,caption-de"
19603 \begin_layout Standard
19604 To change the label name from e.g.
19606 \begin_inset Quotes eld
19610 \begin_inset Quotes erd
19614 \begin_inset Quotes eld
19618 \begin_inset Quotes erd
19621 use this preamble command:
19624 \begin_layout Standard
19631 fnum@figure}{Image~
19636 \begin_layout Standard
19643 inserts the figure number and
19646 \begin_inset Quotes eld
19652 \begin_inset Quotes erd
19655 creates a protected space.
19658 \begin_layout Standard
19659 \begin_inset VSpace bigskip
19667 \begin_inset LatexCommand index
19668 name "LaTeX-packages ! koma-script"
19674 article (koma-script)
19682 letter (koma-script)
19686 report (koma-script)
19688 \InsetSpace \thinspace{}
19689 ), you can alternatively to the
19697 's built-in command
19704 For example, to have the caption label in bold, add this command to your
19708 \begin_layout Standard
19713 setkomafont{captionlabel}{
19718 \begin_layout Standard
19719 For more information about
19730 \begin_inset LatexCommand cite
19731 key "koma-script,koma-script-de"
19738 \begin_layout Standard
19742 \begin_layout Standard
19746 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
19753 \begin_inset Note Note
19756 \begin_layout Standard
19757 The caption format is changed only for this example.
19765 \begin_layout Standard
19766 \begin_inset Float figure
19772 \begin_layout Standard
19774 \begin_inset Graphics
19775 filename clipart/mobius.eps
19784 \begin_layout Standard
19785 \begin_inset Caption
19787 \begin_layout Standard
19788 \begin_inset LatexCommand label
19789 name "fig:This-is-an-fig"
19793 This is an example figure caption that is longer than one line to show the
19794 different caption format.
19795 Here a self-defined caption format is used.
19808 \begin_layout Standard
19812 \begin_layout Standard
19816 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
19825 \begin_layout Standard
19826 \begin_inset Float table
19832 \begin_layout Standard
19833 \begin_inset Caption
19835 \begin_layout Standard
19836 \begin_inset LatexCommand label
19837 name "tab:This-is-an-tab"
19841 This is an example table caption that is longer than one line to show the
19842 different caption format.
19843 Here the standard caption format for tables in this document is used.
19851 \begin_layout Standard
19853 \begin_inset Tabular
19854 <lyxtabular version="3" rows="1" columns="5">
19856 <column alignment="center" valignment="top" leftline="true" width="0">
19857 <column alignment="center" valignment="top" leftline="true" width="0">
19858 <column alignment="center" valignment="top" leftline="true" width="0">
19859 <column alignment="center" valignment="top" leftline="true" width="0">
19860 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19861 <row topline="true" bottomline="true">
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" usebox="none">
19874 \begin_layout Standard
19880 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19883 \begin_layout Standard
19889 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19892 \begin_layout Standard
19898 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19901 \begin_layout Standard
19920 \begin_layout Section
19922 \begin_inset LatexCommand index
19923 name "Caption ! Placement"
19928 \begin_inset LatexCommand index
19929 name "Floats ! Caption Placement"
19934 \begin_inset LatexCommand label
19935 name "sec:Caption-Placement"
19942 \begin_layout Standard
19943 The common caption placement rule is:
19946 \begin_layout Description
19947 Figure: Caption is set below the figure
19950 \begin_layout Description
19951 Table: Caption is set above the table
19954 \begin_layout Standard
19955 Having the caption above the table is unfortunately not supported in LaTeX's
19957 That means if you are using the document classes
19973 there will be no space between the caption and the table.
19974 To insert the needed space, add the following option to the load command
19975 of the LaTeX-package
19979 in your document preamble
19983 \begin_layout Standard
19984 See section\InsetSpace ~
19986 \begin_inset LatexCommand ref
19987 reference "sec:Caption-Formatting"
19991 for more information of the package
20003 \begin_layout Standard
20009 \begin_layout Standard
20015 \begin_inset LatexCommand index
20016 name "LaTeX-packages ! koma-script"
20022 article (koma-script)
20030 letter (koma-script)
20034 report (koma-script)
20036 \InsetSpace \thinspace{}
20037 ), you can alternatively to the
20041 package set the document class option
20045 , or you can use the environment
20047 caption\InsetSpace ~
20057 \begin_layout Standard
20058 \begin_inset VSpace bigskip
20061 It is also possible to set the caption beside a figure or table.
20062 To get this the LaTeX-package
20067 \begin_inset LatexCommand index
20068 name "LaTeX-packages ! sidecap"
20072 has to be loaded in the document preamble with the line
20075 \begin_layout Standard
20080 usepackage[option]{sidecap}
20083 \begin_layout Standard
20084 If you set no option, the caption is placed on the side of the outer page
20085 margin -- to the right on odd pages, to the left on even pages.
20086 You can change the placement to inner margin with the option
20091 To force the placement always to the right or left, use the option
20102 \begin_layout Standard
20103 To place in LyX the caption of a float on the side, it is necessary to add
20104 these commands to the document preamble:
20107 \begin_layout Standard
20113 \begin_layout Standard
20126 \begin_layout Standard
20147 \begin_layout Standard
20168 \begin_layout Standard
20179 renewenvironment{table}{
20186 \begin_layout Standard
20199 \begin_layout Standard
20220 \begin_layout Standard
20238 \begin_layout Standard
20251 \begin_layout Standard
20266 f\SpecialChar \textcompwordmark{}
20273 \begin_layout Standard
20286 MyEndf\SpecialChar \textcompwordmark{}
20289 endf\SpecialChar \textcompwordmark{}
20296 \begin_layout Standard
20307 renewenvironment{f\SpecialChar \textcompwordmark{}
20310 begin{SCf\SpecialChar \textcompwordmark{}
20313 end{SCf\SpecialChar \textcompwordmark{}
20317 \begin_layout Standard
20330 \begin_layout Standard
20343 f\SpecialChar \textcompwordmark{}
20352 \begin_layout Standard
20365 endf\SpecialChar \textcompwordmark{}
20368 MyEndf\SpecialChar \textcompwordmark{}
20372 \begin_layout Standard
20378 \begin_layout Standard
20379 The commands allow you to redefine the floats so that the caption is set
20381 For figure floats use the command
20384 \begin_layout Standard
20392 \begin_layout Standard
20393 in ERT before the float.
20394 Behind the float insert the command
20397 \begin_layout Standard
20405 \begin_layout Standard
20406 in ERT to get back to the original float definition.
20409 \begin_layout Standard
20410 For table floats use the corresponding commands
20413 \begin_layout Standard
20427 \begin_layout Standard
20428 Figure\InsetSpace ~
20430 \begin_inset LatexCommand ref
20431 reference "fig:cap-beside-fig"
20435 and Table\InsetSpace ~
20437 \begin_inset LatexCommand ref
20438 reference "tab:cap-beside-tab"
20442 are examples where the caption is set beside.
20445 \begin_layout Standard
20446 You can see in the examples that the caption text appears at the top of
20447 the floats for table floats and at the bottom for figure floats.
20448 To change this, you can use the command
20451 \begin_layout Standard
20456 sidecaptionvpos{float type}{placement}
20459 \begin_layout Standard
20460 in the document preamble or in ERT before the float.
20461 The float type is either
20469 , the placement can be
20470 \begin_inset Quotes eld
20478 \begin_inset Quotes erd
20482 \begin_inset Quotes eld
20490 \begin_inset Quotes erd
20494 \begin_inset Quotes eld
20502 \begin_inset Quotes erd
20506 To have for example the caption of figure floats vertically centered, use
20510 \begin_layout Standard
20515 sidecaptionvpos{f\SpecialChar \textcompwordmark{}
20519 \begin_layout Standard
20520 This was used for Figure\InsetSpace ~
20522 \begin_inset LatexCommand ref
20523 reference "fig:cap-beside-fig-2"
20530 \begin_layout Standard
20531 \begin_inset VSpace defskip
20534 For more information about the package
20538 we refer to its documentation
20539 \begin_inset LatexCommand cite
20547 \begin_layout Standard
20548 \begin_inset Note Greyedout
20551 \begin_layout Standard
20561 \begin_inset LatexCommand index
20562 name "LaTeX-packages ! hypcap"
20566 , described in section\InsetSpace ~
20568 \begin_inset LatexCommand ref
20569 reference "sub:Reference-Position"
20573 , has no effect on floats with the caption set beside.
20581 \begin_layout Standard
20585 \begin_layout Standard
20597 \begin_layout Standard
20598 \begin_inset Float figure
20603 \begin_layout Standard
20604 \begin_inset Graphics
20605 filename clipart/escher-lsd.eps
20613 \begin_layout Standard
20614 \begin_inset Caption
20616 \begin_layout Standard
20617 \begin_inset LatexCommand label
20618 name "fig:cap-beside-fig"
20622 This is a caption beside a figure.
20635 \begin_layout Standard
20639 \begin_layout Standard
20651 \begin_layout Standard
20652 \begin_inset Float table
20657 \begin_layout Standard
20658 \begin_inset Caption
20660 \begin_layout Standard
20661 \begin_inset LatexCommand label
20662 name "tab:cap-beside-tab"
20666 This is a caption beside a table.
20674 \begin_layout Standard
20675 \begin_inset Tabular
20676 <lyxtabular version="3" rows="4" columns="5">
20678 <column alignment="center" valignment="top" leftline="true" width="0">
20679 <column alignment="center" valignment="top" leftline="true" width="0">
20680 <column alignment="center" valignment="top" leftline="true" width="0">
20681 <column alignment="center" valignment="top" leftline="true" width="0">
20682 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
20683 <row topline="true">
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" usebox="none">
20696 \begin_layout Standard
20702 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20705 \begin_layout Standard
20711 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20714 \begin_layout Standard
20720 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20723 \begin_layout Standard
20730 <row topline="true">
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" usebox="none">
20743 \begin_layout Standard
20749 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20752 \begin_layout Standard
20758 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20761 \begin_layout Standard
20767 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20770 \begin_layout Standard
20777 <row topline="true">
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" usebox="none">
20790 \begin_layout Standard
20796 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20799 \begin_layout Standard
20805 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20808 \begin_layout Standard
20814 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20817 \begin_layout Standard
20824 <row topline="true" bottomline="true">
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
20843 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20846 \begin_layout Standard
20852 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20855 \begin_layout Standard
20861 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20864 \begin_layout Standard
20883 \begin_layout Standard
20887 \begin_layout Standard
20899 \begin_layout Standard
20903 \begin_layout Standard
20907 sidecaptionvpos{figure}{c}
20913 \begin_inset Float figure
20918 \begin_layout Standard
20919 \begin_inset Graphics
20920 filename clipart/escher-lsd.eps
20928 \begin_layout Standard
20929 \begin_inset Caption
20931 \begin_layout Standard
20932 \begin_inset LatexCommand label
20933 name "fig:cap-beside-fig-2"
20937 This is a vertically centered caption beside a figure.
20950 \begin_layout Standard
20954 \begin_layout Standard
20966 \begin_layout Section
20968 \begin_inset LatexCommand label
20969 name "sec:Listings-of-Floats"
20974 \begin_inset LatexCommand index
20975 name "Floats ! Listings"
20982 \begin_layout Standard
20983 Similar to the the table of contents where the sections of the document
20984 are listed, there are listings for all float types, like the figures of
20986 You can insert them via the
20988 Insert\SpecialChar \menuseparator
20996 \begin_layout Standard
20997 The list entries are the float captions or its short title, the float number,
20998 and the page number where they appear in the document.
21001 \begin_layout Standard
21002 You can find the list of figures and tables at the end of this document.
21005 \begin_layout Chapter
21009 \begin_layout Section
21013 \begin_layout Standard
21026 \begin_layout Standard
21034 \begin_inset LatexCommand label
21035 name "sec:LyX-Notes"
21040 \begin_inset LatexCommand index
21041 name "Notes ! LyX Notes"
21046 \begin_inset Note Note
21049 \begin_layout Standard
21052 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
21053 are displayed wrongly in PDF-bookmarks.
21054 For more information about this, have a look at
21055 \begin_inset LatexCommand cite
21068 \begin_layout Standard
21069 Notes are inserted with the toolbar button
21070 \begin_inset Graphics
21071 filename ../images/note-insert.xpm
21078 Insert\SpecialChar \menuseparator
21082 There are three types of notes:
21085 \begin_layout Description
21087 Note This note type is for internal notes that won't appear in the output.
21088 Its note-box looks like this:
21093 \begin_inset Graphics
21094 filename clipart/LyXNoteImageQt4.png
21101 \begin_inset Note Note
21104 \begin_layout Standard
21105 This is text in a note box that doesn't appear in the output.
21113 \begin_layout Description
21114 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
21115 ent, when you export the document to LaTeX via the menu
21117 File\SpecialChar \menuseparator
21118 Export\SpecialChar \menuseparator
21119 LaTeX (pdflatex) / LaTeX (plain)
21122 Its note-box looks like this:
21127 \begin_inset Graphics
21128 filename clipart/CommentNoteImageQt4.png
21135 \begin_inset Note Comment
21138 \begin_layout Standard
21139 This is text in a note box that only appears as comment in LaTeX-files.
21147 \begin_layout Description
21148 Greyed\InsetSpace ~
21149 Out This note will appear in the output as grey text.
21150 Its note-box looks like this:
21155 \begin_inset Graphics
21156 filename clipart/GreyedOutNoteImageQt4.png
21168 \begin_layout Standard
21172 renewenvironment{lyxgreyedout}
21175 \begin_layout Standard
21179 textcolor[gray]{0.8}
21189 \begin_inset Note Greyedout
21192 \begin_layout Standard
21197 \begin_layout Standard
21198 This is an example footnote within a greyed out note.
21203 of a comment that appears in the output as grey text.
21212 \begin_layout Standard
21216 renewenvironment{lyxgreyedout}
21219 \begin_layout Standard
21233 \begin_inset Note Note
21236 \begin_layout Standard
21237 The greyed out note is here redefined to show it with the original LyX definitio
21238 n because greyed out notes are redefined in the preamble of this document,
21239 as described below, to have blue text.
21248 As you can see in the example, the first line of greyed out notes is a bit
21249 indented and greyed out notes can have footnotes.
21252 \begin_layout Description
21253 Framed This note will appear in the output as framed text.
21254 Its note-box looks like this:
21259 \begin_inset Graphics
21260 filename clipart/FramedNoteImageQt4.png
21267 \begin_inset Note Framed
21270 \begin_layout Standard
21271 This is text in a note box that appears framed in the output.
21276 In contrary to framed boxes
21280 \begin_layout Standard
21281 Framed boxes are described in section\InsetSpace ~
21283 \begin_inset LatexCommand ref
21284 reference "sec:Framed-Boxes"
21293 the frame uses always the whole text width and the note is set into its
21297 \begin_layout Description
21298 Shaded This note will appear in the output with red background color.
21299 Its note box looks like this:
21304 \begin_inset Graphics
21305 filename clipart/ShadedNoteImageQt4.png
21312 \begin_inset Note Shaded
21315 \begin_layout Standard
21316 This text in a note box appears in the output with red background.
21321 In contrary to colored boxes
21325 \begin_layout Standard
21326 Colored boxes are described in section\InsetSpace ~
21328 \begin_inset LatexCommand ref
21329 reference "sec:Colored-Boxes"
21338 the note uses always the whole text width and the note is set into its
21342 \begin_layout Standard
21343 \begin_inset VSpace bigskip
21346 When you use the toolbar button to insert notes, a
21352 You can switch between the three note types by right-clicking on the note-box.
21357 If you want to turn existing text into a note, mark it and click on the
21373 \begin_layout Standard
21374 \begin_inset VSpace bigskip
21377 You can change the text color of the greyed out notes in the preamble with
21378 the following command:
21381 \begin_layout Standard
21386 renewenvironment{lyxgreyedout}
21392 \begin_layout Standard
21410 \begin_layout Standard
21411 The available colors and the method to define own colors is explained in
21412 section\InsetSpace ~
21414 \begin_inset LatexCommand ref
21415 reference "sec:Colored-Tables"
21422 \begin_layout Standard
21423 Notes that appear in blue in this document are set using greyed out notes
21427 \begin_layout Standard
21428 \begin_inset VSpace bigskip
21434 \begin_layout Standard
21443 notes can be set in the
21450 \begin_layout Standard
21451 The default frame width for
21455 notes is 0.4\InsetSpace \thinspace{}
21456 pt; it can be changed by changing the size
21463 The default space between the note content and the frame is 9\InsetSpace \thinspace{}
21465 be changed by changing the size
21472 For example the frame appearance of the following
21476 note is set with the ERT commands
21479 \begin_layout Standard
21489 \begin_layout Standard
21493 \begin_layout Standard
21505 \begin_inset Note Framed
21508 \begin_layout Standard
21522 \begin_layout Standard
21536 \begin_layout Standard
21537 \begin_inset VSpace bigskip
21543 \begin_layout Standard
21548 notes the default space between the note content and the note border is
21549 3\InsetSpace \thinspace{}
21550 pt; it can be changed by changing the size
21558 The default background color red can be changed with the command
21562 def\SpecialChar \textcompwordmark{}
21570 def\SpecialChar \textcompwordmark{}
21573 command is explained in section\InsetSpace ~
21575 \begin_inset LatexCommand ref
21576 reference "sec:Colored-Tables"
21584 \begin_layout Standard
21591 \SpecialChar \textcompwordmark{}
21596 requires the LaTeX-package
21600 in the preamble, see section\InsetSpace ~
21602 \begin_inset LatexCommand ref
21603 reference "sec:Colored-Boxes"
21615 \begin_layout Standard
21616 For example the appearance of the following
21620 note is set with the ERT commands
21623 \begin_layout Standard
21636 def\SpecialChar \textcompwordmark{}
21637 inecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21640 \begin_layout Standard
21644 \begin_layout Standard
21657 \begin_layout Standard
21661 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21667 \begin_inset Note Shaded
21670 \begin_layout Standard
21673 This is yellow text in a
21683 note with darkgreen background.
21692 \begin_layout Standard
21705 \begin_layout Standard
21709 definecolor{shadecolor}{rgb}{1,0,0}
21717 \begin_layout Section
21719 \begin_inset LatexCommand label
21720 name "sec:Footnotes"
21725 \begin_inset LatexCommand index
21726 name "Notes ! Footnotes"
21731 \begin_inset LatexCommand index
21739 \begin_layout Standard
21740 Footnotes can be inserted using the toolbar button
21741 \begin_inset Graphics
21742 filename ../images/footnote-insert.xpm
21749 Insert\SpecialChar \menuseparator
21761 then the following footnote-box:
21762 \begin_inset Graphics
21763 filename clipart/footnoteQt4.png
21772 where you can enter the footnote text.
21773 If you want to turn existing text into a footnote, mark it and click on
21789 \begin_layout Standard
21790 Here is an example footnote:
21798 \begin_layout Standard
21799 \begin_inset LatexCommand label
21800 name "foot:This-is-an"
21804 This is an example footnote.
21817 \begin_layout Standard
21821 newcounter{MyRepeatFoot}
21824 \begin_layout Standard
21828 setcounter{MyRepeatFoot}{
21838 \begin_layout Standard
21839 The footnote will appear in the output as a superscript number at the text
21840 position where the footnote box is placed.
21841 The footnote text is placed at the bottom of the current page.
21842 The footnote number is calculated by LaTeX, the numbers are consecutive.
21843 It depends on your document-class, if the footnote number is reset for
21847 \begin_layout Standard
21848 Footnotes can be referenced like floats: Insert a label into the footnote
21849 and cross-reference this label in the text as described in section\InsetSpace ~
21851 \begin_inset LatexCommand ref
21852 reference "sec:Referencing-Floats"
21858 This is a cross-reference of Footnote\InsetSpace ~
21860 \begin_inset LatexCommand ref
21861 reference "foot:This-is-an"
21868 \begin_inset Note Greyedout
21871 \begin_layout Standard
21876 LyX doesn't provide a prefix for labels in footnotes, so you have to insert
21877 e.\InsetSpace \thinspace{}
21882 \begin_inset Quotes eld
21888 \begin_inset Quotes erd
21891 manually when you want to use the reference style
21893 Formatted\InsetSpace ~
21904 \begin_layout Standard
21905 \begin_inset VSpace defskip
21908 To use footnotes within tables, you have to use minipages, see section\InsetSpace ~
21910 \begin_inset LatexCommand ref
21911 reference "sec:Minipages"
21916 Footnotes within longtables are described in section\InsetSpace ~
21918 \begin_inset LatexCommand ref
21919 reference "sub:Footnotes-in-Longtables"
21926 \begin_layout Standard
21927 \begin_inset VSpace defskip
21930 To create only a mark for a footnote, use the command
21934 footnotemark[number]
21937 This is used when you have the same annotation several times in a text
21938 but doesn't want to print the footnote text every time.
21941 the number of the repeating footnote while you are writing the text, you
21942 have to store its number.
21943 For the following footnote mark example, these commands were inserted in
21944 ERT behind Footnote\InsetSpace ~
21946 \begin_inset LatexCommand ref
21947 reference "foot:This-is-an"
21951 to store the footnote number:
21954 \begin_layout Standard
21959 newcounter{MyRepeatFoot}
21963 setcounter{MyRepeatFoot}{
21968 \begin_layout Standard
21969 The footnote mark was then created with this command:
21972 \begin_layout Standard
21982 \begin_layout Standard
21983 Here is an example footnote mark:
21991 \begin_layout Standard
22005 \begin_layout Subsection
22007 \begin_inset LatexCommand label
22008 name "sub:Footnote-Numbering"
22013 \begin_inset LatexCommand index
22014 name "Footnotes ! Numbering"
22021 \begin_layout Standard
22022 To reset the footnote number back to 1 after each section
22024 , add this command to your document preamble:
22027 \begin_layout Standard
22032 @addtoreset{footnote}{section}
22035 \begin_layout Standard
22036 \begin_inset VSpace bigskip
22039 The following preamble command changes the footnote numbering style to small
22043 \begin_layout Standard
22055 \begin_layout Standard
22059 \begin_layout Standard
22072 This is a footnote with roman numbering:
22076 \begin_layout Standard
22077 This is an example footnote with roman numbering.
22086 \begin_layout Standard
22102 \begin_layout Standard
22103 To change the numbering style to capital roman numerals replace in the command
22118 \begin_inset Quotes eld
22122 \begin_inset Quotes erd
22125 footnotes with capital or small Latin letters use
22139 \begin_inset Quotes eld
22143 \begin_inset Quotes erd
22146 footnotes with symbols use
22155 \begin_layout Standard
22156 \begin_inset Note Greyedout
22159 \begin_layout Standard
22164 You can only number 26 footnotes with Latin letters, because this numbering
22165 is limited to single letters.
22173 \begin_inset Note Greyedout
22176 \begin_layout Standard
22181 You can only number 9 footnotes with symbols.
22189 \begin_layout Standard
22190 To return to the default numbering style when you changed to another one,
22203 in the command above.
22206 \begin_layout Standard
22207 \begin_inset VSpace bigskip
22213 \begin_layout Standard
22214 If you want to have footnotes numbered in the scheme
22215 \begin_inset Quotes eld
22219 \begin_inset Quotes erd
22222 , add the following command to your document preamble:
22225 \begin_layout Standard
22230 numberwithin{footnote}{chapter}
22233 \begin_layout Standard
22234 To be able to use the command
22245 in the document settings the option
22255 \begin_layout Standard
22259 \begin_layout Standard
22263 numberwithin{footnote}{chapter}
22268 This is another example footnote:
22274 \begin_layout Standard
22275 This is a footnote numbered in the scheme
22276 \begin_inset Quotes eld
22280 \begin_inset Quotes erd
22294 \begin_layout Standard
22298 numberwithin{footnote}{part}
22306 \begin_layout Standard
22307 \begin_inset Note Greyedout
22310 \begin_layout Standard
22321 always prints out the footnote number as arabic number; previous redefinitions
22322 to get non-arabic numbers are overwritten.
22330 \begin_layout Standard
22331 So to get for example the scheme
22332 \begin_inset Quotes eld
22338 \begin_inset Quotes erd
22341 , use this command instead of
22350 \begin_layout Standard
22364 \begin_layout Subsection
22366 \begin_inset LatexCommand index
22367 name "Footnotes ! Placement"
22374 \begin_layout Standard
22375 If you have several footnotes in one page, they appear without vertical
22376 space between them at the bottom of the page.
22377 To make them better readable you can e.\InsetSpace \thinspace{}
22379 add 1.5\InsetSpace \thinspace{}
22380 mm space with the following
22384 \begin_layout Standard
22406 \begin_layout Standard
22407 \begin_inset VSpace bigskip
22410 In a two-column document the footnotes appear at the bottom of every column,
22411 see Figure\InsetSpace ~
22413 \begin_inset LatexCommand ref
22414 reference "fig:Standard-footnote-placement"
22419 If the footnotes should only appear at the bottom of the right column,
22420 as in Figure\InsetSpace ~
22422 \begin_inset LatexCommand ref
22423 reference "fig:Footnote-placement-in"
22427 , use the LaTeX-package
22432 \begin_inset LatexCommand index
22433 name "LaTeX-packages ! ftnright"
22437 with this command in the document preamble:
22440 \begin_layout Standard
22445 usepackage{ftnright}
22448 \begin_layout Standard
22449 \begin_inset Float figure
22455 \begin_layout Standard
22459 \begin_layout Standard
22469 \begin_inset Graphics
22470 filename clipart/without_fntright.pdf
22479 \begin_layout Standard
22489 \begin_layout Standard
22490 \begin_inset Caption
22492 \begin_layout Standard
22493 \begin_inset LatexCommand label
22494 name "fig:Standard-footnote-placement"
22498 Standard footnote placement in two-column documents.
22511 \begin_layout Standard
22512 \begin_inset Float figure
22518 \begin_layout Standard
22522 \begin_layout Standard
22532 \begin_inset Graphics
22533 filename clipart/with_fntright.pdf
22542 \begin_layout Standard
22552 \begin_layout Standard
22553 \begin_inset Caption
22555 \begin_layout Standard
22556 \begin_inset LatexCommand label
22557 name "fig:Footnote-placement-in"
22561 Footnote placement in two-column documents when the LaTeX-package
22578 \begin_layout Standard
22579 \begin_inset VSpace bigskip
22582 In some scientific literature it is usual to collect the footnotes and print
22583 them in a separate paragraph at the the end of a section, like in Figure\InsetSpace ~
22585 \begin_inset LatexCommand ref
22586 reference "fig:Endnotes----footnotes"
22591 They are then so called
22592 \begin_inset Quotes eld
22596 \begin_inset Quotes erd
22600 To use endnotes instead of footnotes in your document, load the LaTeX-package
22606 \begin_inset LatexCommand index
22607 name "LaTeX-packages ! endnotes"
22611 with the document preamble lines
22614 \begin_layout Standard
22619 usepackage{endnotes}
22630 \begin_layout Standard
22631 To insert the collected footnotes, insert the command
22634 \begin_layout Standard
22642 \begin_layout Standard
22643 in ERT at the the end of a section or chapter.
22646 \begin_layout Standard
22647 \begin_inset Float figure
22652 \begin_layout Standard
22657 \begin_layout Standard
22667 \begin_inset Graphics
22668 filename clipart/endnotes.pdf
22676 \begin_layout Standard
22686 \begin_layout Standard
22687 \begin_inset Caption
22689 \begin_layout Standard
22690 \begin_inset LatexCommand label
22691 name "fig:Endnotes----footnotes"
22695 Endnotes -- footnotes are printed in a separate paragraph at the end of
22696 sections or chapters.
22709 \begin_layout Standard
22710 \begin_inset VSpace defskip
22713 The paragraph heading for the endnotes isn't automatically translated into
22714 the document language, this must be done manually.
22715 The following preamble command translate the default English name
22716 \begin_inset Quotes eld
22720 \begin_inset Quotes erd
22723 to the German translation
22724 \begin_inset Quotes eld
22728 \begin_inset Quotes erd
22734 \begin_layout Standard
22741 notesname}{Anmerkungen}
22744 \begin_layout Standard
22745 \begin_inset VSpace defskip
22748 The numbering of endnotes can be changed like the footnote numbering as
22749 described in section\InsetSpace ~
22751 \begin_inset LatexCommand ref
22752 reference "sub:Footnote-Numbering"
22756 ; just replace the command
22769 To reset the endnote number use the command
22775 as described in section\InsetSpace ~
22777 \begin_inset LatexCommand ref
22778 reference "sub:Footnote-Numbering"
22782 and replace the command parameter
22793 \begin_layout Standard
22794 To create only a mark for an endnote, use the command
22798 endnotemark[number]
22800 similar to the command
22806 , described in section\InsetSpace ~
22808 \begin_inset LatexCommand ref
22809 reference "sec:Footnotes"
22816 \begin_layout Standard
22817 \begin_inset VSpace bigskip
22820 Footnotes can also be placed in the page margin and the footnote text alignment
22821 can be changed, see the LaTeX-package
22826 \begin_inset LatexCommand index
22827 name "LaTeX-packages ! footmisc"
22832 \begin_inset LatexCommand cite
22837 for more information about this.
22840 \begin_layout Standard
22841 For various further footnote formatting issues have a look at LaTeX-books,
22843 \begin_inset LatexCommand cite
22844 key "latexcompanion,latexguide,latexbook"
22851 \begin_layout Section
22853 \begin_inset LatexCommand index
22854 name "Notes ! Margin Notes"
22861 \begin_layout Standard
22862 Margin notes look and behave in LyX like footnotes.
22863 They are inserted via the menu
22865 Insert\SpecialChar \menuseparator
22866 Marginal\InsetSpace ~
22869 or the toolbar button
22870 \begin_inset Graphics
22871 filename ../images/marginalnote-insert.xpm
22887 \begin_inset Quotes eld
22891 \begin_inset Quotes erd
22894 appears where you can enter the text of the margin note.
22897 \begin_layout Standard
22898 At the side is an example margin note.
22902 \begin_inset Marginal
22905 \begin_layout Standard
22906 This is a margin note.
22914 \begin_layout Standard
22915 Margin notes appear at the right side in single-sided documents.
22916 In double-sided documents they appear in the outer margin -- left on even
22917 pages, right on odd pages.
22918 The text of margin notes is aligned opposite to the outer margin -- right-align
22919 ed when the note appears in the left margin.
22920 The first line of the margin note is placed at the position of the text
22921 line where it is inserted in the document.
22924 \begin_layout Standard
22925 \begin_inset VSpace bigskip
22928 To place the margin note in the inner margin, add the command
22931 \begin_layout Standard
22939 \begin_layout Standard
22940 in ERT before a margin note.
22941 The new placement is valid for all following margin notes.
22945 \begin_layout Standard
22955 \begin_inset Marginal
22958 \begin_layout Standard
22959 This is a margin note in the inner margin.
22971 \begin_inset Note Greyedout
22974 \begin_layout Standard
22979 There is often not enough space in the inner margin so that the notes are
22980 not correctly displayed in the output.
22988 \begin_layout Standard
22992 \begin_layout Standard
23001 To return to the default placement insert the command
23004 \begin_layout Standard
23012 \begin_layout Standard
23015 \begin_inset Note Greyedout
23018 \begin_layout Standard
23023 The command is ignored when it is within a paragraph where also the command
23038 \begin_layout Standard
23039 \begin_inset VSpace bigskip
23046 \begin_inset Marginal
23049 \begin_layout Standard
23050 AVeryLongMarginParWord that isn't hyphenated.
23058 Similar to the case described in section\InsetSpace ~
23060 \begin_inset LatexCommand ref
23061 reference "sub:Multiple-Lines-in"
23065 , long words cannot be hyphenated when they are the first word in a margin
23067 To avoid this, insert the command
23070 \begin_layout Standard
23078 \begin_layout Standard
23079 in ERT before the word
23083 \begin_inset Marginal
23086 \begin_layout Standard
23090 \begin_layout Standard
23099 AVeryLongMarginParWord that is hyphenated.
23107 \begin_layout Standard
23108 \begin_inset VSpace bigskip
23114 \begin_layout Standard
23115 \begin_inset Note Greyedout
23118 \begin_layout Standard
23123 Margin notes can normally not be used inside tables, floats, and footnotes.
23131 \begin_layout Standard
23132 \begin_inset VSpace bigskip
23138 \begin_layout Standard
23142 \begin_layout Standard
23152 \begin_inset Note Note
23155 \begin_layout Standard
23156 The following section will only be displayed when you have the LaTeX-package
23169 \begin_layout Standard
23170 This restriction can be evaded by using the LaTeX-package
23175 \begin_inset LatexCommand index
23176 name "LaTeX-packages ! marginnote"
23181 By adding these two lines to your document preamble, the command used by
23182 LyX for margin notes is redefined to use the command provided by the
23189 \begin_layout Standard
23194 usepackage{marginnote}
23205 \begin_layout Standard
23206 This is also used in this document because
23210 has another useful feature: You can set a vertical offset for the note.
23211 This is often needed when too many margin notes are too close together
23212 or for a better page layout.
23213 The offset is set in LyX as ERT directly behind the margin note in the
23217 \begin_layout Standard
23223 \begin_layout Standard
23224 where the offset is a length with one of the units listed in Table\InsetSpace ~
23226 \begin_inset LatexCommand ref
23227 reference "tab:Units"
23232 A negative value shifts the note up, a positive value shifts it down.
23236 For example the margin note beside this text line is shifted up 1.5\InsetSpace \thinspace{}
23239 \begin_inset Quotes eld
23249 \begin_inset Quotes erd
23253 \begin_inset Marginal
23256 \begin_layout Standard
23257 This margin note is shifted up 1.5\InsetSpace \thinspace{}
23258 cm from its original position.
23270 \begin_layout Standard
23280 \begin_layout Standard
23281 \begin_inset VSpace defskip
23288 you can also change the alignment of the text in the margin note.
23289 For example the commands
23292 \begin_layout Standard
23299 raggedleftmarginnote}{
23307 raggedrightmarginnote}{
23312 \begin_layout Standard
23313 set the alignment to centered.
23318 raggedleftmarginnote
23320 denotes margin notes that appear at the left side.
23327 \begin_layout Standard
23333 raggedleftmarginnote}{
23338 \begin_layout Standard
23344 raggedrightmarginnote}{
23352 \begin_inset Marginal
23355 \begin_layout Standard
23356 The text of this margin note is centered.
23367 \begin_layout Standard
23374 raggedleftmarginnote}{
23382 raggedrightmarginnote}{
23391 \begin_layout Standard
23397 raggedleftmarginnote}{
23402 \begin_layout Standard
23408 raggedrightmarginnote}{
23418 \begin_layout Standard
23419 \begin_inset VSpace defskip
23422 For the other features of
23426 we refer to its documentation
23427 \begin_inset LatexCommand cite
23435 \begin_layout Standard
23436 \begin_inset VSpace bigskip
23439 You can change the layout of margin notes by redefining its definition.
23440 To create for example a header for all margin notes with the underlined,
23441 sans-serif, and bold header text
23442 \begin_inset Quotes eld
23454 \begin_inset Quotes erd
23457 , add this to your document preamble:
23460 \begin_layout Standard
23483 \begin_layout Standard
23500 underbar{Attention!}}}%
23506 \begin_layout Standard
23524 \begin_layout Standard
23531 \begin_layout Standard
23542 \begin_layout Standard
23553 \begin_layout Standard
23561 underbar{Attention!}}}%
23564 \begin_layout Standard
23578 \begin_inset Marginal
23581 \begin_layout Standard
23582 This is a margin note with a defined heading.
23594 \begin_layout Standard
23608 \begin_layout Standard
23625 \begin_inset Note Note
23628 \begin_layout Standard
23629 The margin note format is changed only for this example.
23637 \begin_layout Standard
23641 \begin_layout Standard
23651 \begin_inset Note Note
23654 \begin_layout Standard
23655 The following will be displayed when the LaTeX-package
23667 \begin_layout Standard
23668 You need to install the LaTeX-package
23672 to see the following part of this section in the output.
23675 \begin_layout Standard
23679 \begin_layout Standard
23691 \begin_layout Chapter
23695 \begin_layout Section
23697 \begin_inset LatexCommand index
23698 name "Boxes ! Introduction"
23705 \begin_layout Standard
23706 Boxes are used to format a block of text.
23707 Boxes can be used to write documents with multiple languages, see section\InsetSpace ~
23709 \begin_inset LatexCommand ref
23710 reference "sec:Minipages"
23714 , to frame texts, see section\InsetSpace ~
23716 \begin_inset LatexCommand ref
23717 reference "sec:Framed-Boxes"
23721 , to prevent words to be hyphenated, see section\InsetSpace ~
23723 \begin_inset LatexCommand ref
23724 reference "sec:Prevent-Hyphenation"
23728 , to align text, see section\InsetSpace ~
23730 \begin_inset LatexCommand ref
23731 reference "sub:Vertical-Alignment"
23735 , or to set the background color of texts, see section\InsetSpace ~
23737 \begin_inset LatexCommand ref
23738 reference "sec:Colored-Boxes"
23745 \begin_layout Standard
23746 Boxes can be inserted with the menu
23748 Insert\SpecialChar \menuseparator
23752 A grey box with the label
23757 \begin_inset Graphics
23758 filename clipart/BoxInsetDefaultQt4.png
23763 , will be inserted.
23764 The box type can be specified by right-clicking on the box.
23765 The appearing box dialog offers the
23783 is the default for new boxes and is explained in section\InsetSpace ~
23785 \begin_inset LatexCommand ref
23786 reference "sec:Minipages"
23794 is described in section\InsetSpace ~
23796 \begin_inset LatexCommand ref
23797 reference "sec:Parboxes"
23804 \begin_layout Standard
23805 Boxes aren't numbered and can therefore not be referenced like floats or
23809 \begin_layout Standard
23810 \begin_inset Note Greyedout
23813 \begin_layout Standard
23818 Due to a bug in LyX you have to insert a protected space behind a box when
23819 you want to separate in a line the box from the following text with a space.
23827 \begin_layout Standard
23828 \begin_inset Note Greyedout
23831 \begin_layout Standard
23836 Boxes must not be the item in an
23852 \begin_layout Standard
23853 \begin_inset Note Greyedout
23856 \begin_layout Standard
23861 For an unknown reason you can only set the
23870 when you use a framed box.
23876 type and without frames are explained in section\InsetSpace ~
23878 \begin_inset LatexCommand ref
23879 reference "sec:Prevent-Hyphenation"
23891 \begin_layout Section
23893 \begin_inset LatexCommand label
23894 name "sec:Box-Dialog"
23899 \begin_inset LatexCommand index
23900 name "Boxes ! Box Dialog"
23905 \begin_inset LatexCommand index
23906 name "Boxes ! Alignment"
23913 \begin_layout Standard
23914 In the box dialog you can adjust the box geometry in the fields
23923 The available units for the geometry are explained in Table\InsetSpace ~
23925 \begin_inset LatexCommand ref
23926 reference "tab:Units"
23935 offers the following additional sizes:
23938 \begin_layout Description
23939 Depth This is the plain text
23940 \begin_inset Quotes eld
23944 \begin_inset Quotes erd
23948 It ignores the total depth when there are multiple text lines in the box:
23955 \begin_inset Box Boxed
23964 height_special "depth"
23967 \begin_layout Standard
23969 Box height set to 1\InsetSpace \thinspace{}
23982 \begin_layout Description
23983 Height This is the heigth of the text that is inside the box.
23984 A value of e.\InsetSpace \thinspace{}
23986 2 for this size will set the box heigth to 2 times the text
23988 \begin_inset Box Boxed
23997 height_special "height"
24000 \begin_layout Standard
24002 Box height set to 2\InsetSpace \thinspace{}
24011 \begin_layout Description
24013 Height This is the Height\InsetSpace \thinspace{}
24014 +\InsetSpace \thinspace{}
24016 \begin_inset Box Boxed
24025 height_special "totalheight"
24028 \begin_layout Standard
24030 Box height set to 1\InsetSpace \thinspace{}
24040 \begin_layout Description
24041 Width This set the width of the box as heigth:
24042 \begin_inset Box Boxed
24051 height_special "width"
24054 \begin_layout Standard
24056 Box height set to 1\InsetSpace \thinspace{}
24065 \begin_layout Standard
24066 \begin_inset VSpace bigskip
24069 When you have chosen an
24074 , the vertical box alignment can be:
24077 \begin_layout Description
24078 Top This is an example text line.
24080 \begin_inset Box Boxed
24089 height_special "totalheight"
24092 \begin_layout Standard
24094 This box is top-aligned.
24100 This is an example text line.
24103 \begin_layout Description
24104 Middle This is an example text line.
24106 \begin_inset Box Boxed
24115 height_special "totalheight"
24118 \begin_layout Standard
24120 This box is middle-aligned.
24126 This is an example text line.
24129 \begin_layout Description
24130 Bottom This is an example text line.
24132 \begin_inset Box Boxed
24141 height_special "totalheight"
24144 \begin_layout Standard
24146 This box is bottom-aligned.
24152 This is an example text line.
24155 \begin_layout Standard
24156 The horizontal box alignment can be set via LyX's paragraph dialog when
24157 you set the box into its own paragraph.
24160 \begin_layout Standard
24161 \begin_inset VSpace bigskip
24164 When you have chosen an
24169 , the box content can be vertical aligned to:
24172 \begin_layout Description
24173 top This is an example text line.
24175 \begin_inset Box Boxed
24184 height_special "totalheight"
24187 \begin_layout Standard
24189 This box text is top-aligned.
24195 This is an example text line.
24198 \begin_layout Description
24199 middle This is an example text line.
24201 \begin_inset Box Boxed
24210 height_special "totalheight"
24213 \begin_layout Standard
24215 This box text is middle-aligned.
24221 This is an example text line.
24224 \begin_layout Description
24225 bottom This is an example text line.
24227 \begin_inset Box Boxed
24236 height_special "totalheight"
24239 \begin_layout Standard
24241 This box text is bottom-aligned.
24247 This is an example text line.
24250 \begin_layout Description
24251 stretch This is an example text line.
24253 \begin_inset Box Boxed
24262 height_special "totalheight"
24265 \begin_layout Standard
24270 \begin_layout Standard
24275 \begin_layout Standard
24283 This is an example text line.
24286 \begin_layout Standard
24287 To stretch the box content, it must consist of more than one paragraph.
24288 In the example above every text line is in an own paragraph.
24291 \begin_layout Standard
24292 \begin_inset VSpace bigskip
24295 To align the box content horizontally you can use LyX's paragraph dialog
24296 when you have chosen an
24304 \begin_layout Standard
24306 \begin_inset Box Boxed
24315 height_special "totalheight"
24318 \begin_layout Standard
24323 \begin_layout Standard
24328 \begin_layout Standard
24338 \begin_layout Standard
24339 If you haven't set an
24344 , you can align the box content horizontally in the box dialog.
24347 \begin_layout Standard
24349 \begin_inset Box Boxed
24358 height_special "totalheight"
24361 \begin_layout Standard
24363 This box text is horizontally stretched.
24371 \begin_layout Section
24373 \begin_inset LatexCommand label
24374 name "sec:Framed-Boxes"
24379 \begin_inset LatexCommand index
24380 name "Boxes ! Frames"
24387 \begin_layout Standard
24388 The frame style of the box can be specified in the box-dialog in the drop-down
24394 The following frame types are possible:
24397 \begin_layout Description
24398 Rectangular\InsetSpace ~
24399 box This draws a rectangle frame around the box.
24400 The frame line thickness has the size of
24408 \begin_inset Box Boxed
24417 height_special "totalheight"
24420 \begin_layout Standard
24430 \begin_layout Description
24433 thin This draws an oval frame around the box.
24434 The frame line thickness has the size 0.4\InsetSpace \thinspace{}
24437 \begin_inset Box ovalbox
24446 height_special "totalheight"
24449 \begin_layout Standard
24459 \begin_layout Description
24462 thick This draws an oval frame around the box.
24463 The frame line thickness has the size 0.8\InsetSpace \thinspace{}
24466 \begin_inset Box Ovalbox
24475 height_special "totalheight"
24478 \begin_layout Standard
24488 \begin_layout Description
24489 Shadow\InsetSpace ~
24490 box This draws a rectangle frame with a shadow around the box.
24491 The frame line thickness has the size of
24497 , the shadow has a width of 4\InsetSpace \thinspace{}
24500 \begin_inset Box Shadowbox
24509 height_special "totalheight"
24512 \begin_layout Standard
24522 \begin_layout Description
24523 Double\InsetSpace ~
24524 box This draws a double-line rectangle frame around the box.
24525 The line thickness of the inner frame is 0.75\InsetSpace \thinspace{}
24532 , the thickness of the outer frame is 1.5\InsetSpace \thinspace{}
24540 The distance between the lines is 1.5\InsetSpace \thinspace{}
24547 \InsetSpace \thinspace{}
24548 +\InsetSpace \thinspace{}
24549 0.5\InsetSpace \thinspace{}
24552 \begin_inset Box Doublebox
24561 height_special "totalheight"
24564 \begin_layout Standard
24574 \begin_layout Standard
24575 \begin_inset VSpace bigskip
24578 LyX's box label will change to the used frame style when you set a frame.
24579 To be able to use the different frame styles, the LaTeX-package
24584 \begin_inset LatexCommand index
24585 name "LaTeX-packages ! fancybox"
24592 \begin_layout Standard
24593 \begin_inset VSpace bigskip
24596 The default value for the size
24602 is 0.4\InsetSpace \thinspace{}
24604 It can be changed with the following command in ERT to e.\InsetSpace \thinspace{}
24606 2\InsetSpace \thinspace{}
24610 \begin_layout Standard
24620 \begin_layout Standard
24624 \begin_layout Standard
24636 \begin_inset Box Boxed
24645 height_special "totalheight"
24648 \begin_layout Standard
24650 Rectangular box with
24656 \InsetSpace \thinspace{}
24657 =\InsetSpace \thinspace{}
24658 2\InsetSpace \thinspace{}
24668 \begin_layout Standard
24682 \begin_layout Standard
24683 \begin_inset VSpace bigskip
24686 The space between the frame and the box content is for all frame styles
24687 by default 3\InsetSpace \thinspace{}
24689 You can change it by setting the length
24696 For example the command
24699 \begin_layout Standard
24709 \begin_layout Standard
24710 sets the value to 10\InsetSpace \thinspace{}
24711 pt, like for the following box:
24714 \begin_layout Standard
24718 \begin_layout Standard
24730 \begin_inset Box Boxed
24739 height_special "totalheight"
24742 \begin_layout Standard
24744 Rectangular box with
24750 \InsetSpace \thinspace{}
24751 =\InsetSpace \thinspace{}
24752 10\InsetSpace \thinspace{}
24762 \begin_layout Standard
24776 \begin_layout Standard
24777 \begin_inset VSpace bigskip
24780 The diameter of the round corners of the oval boxes can be set with the
24791 \begin_layout Standard
24799 \begin_layout Standard
24800 sets the diameter to 1\InsetSpace \thinspace{}
24805 \begin_layout Standard
24813 \begin_layout Standard
24814 sets the diameter to
24816 num\InsetSpace \thinspace{}
24817 ×\InsetSpace \thinspace{}
24818 minimum(width and heigth of box)
24830 \begin_layout Standard
24834 \begin_layout Standard
24844 \begin_inset Box Ovalbox
24853 height_special "totalheight"
24856 \begin_layout Standard
24864 \InsetSpace \thinspace{}
24865 =\InsetSpace \thinspace{}
24866 1.5\InsetSpace \thinspace{}
24876 \begin_layout Standard
24888 \begin_layout Standard
24889 \begin_inset VSpace bigskip
24892 The size of the shadow can be adjusted by changing the length
24899 It it set to 2\InsetSpace \thinspace{}
24900 pt for the following box by this command:
24903 \begin_layout Standard
24913 \begin_layout Standard
24917 \begin_layout Standard
24929 \begin_inset Box Shadowbox
24938 height_special "totalheight"
24941 \begin_layout Standard
24949 \InsetSpace \thinspace{}
24950 =\InsetSpace \thinspace{}
24951 2\InsetSpace \thinspace{}
24961 \begin_layout Standard
24975 \begin_layout Standard
24976 \begin_inset VSpace bigskip
24979 Changed lengths and widths are valid for all boxes following the commands
24983 \begin_layout Section
24985 \begin_inset LatexCommand label
24986 name "sec:Minipages"
24991 \begin_inset LatexCommand index
24992 name "Boxes ! Minipages"
24999 \begin_layout Standard
25000 Minipages are treated by LaTeX as pages within pages and can therefore for
25001 example have their own footnotes.
25004 \begin_layout Standard
25005 Minipages are useful when you write documents with different languages.
25008 \begin_layout Standard
25009 Below are two example minipages side by side.
25010 Their width is set to 45\InsetSpace \thinspace{}
25011 col% and they are separated by a horizontal fill,
25012 that was inserted via the menu
25014 Insert\SpecialChar \menuseparator
25015 Special\InsetSpace ~
25016 Formatting\SpecialChar \menuseparator
25017 Horizontal\InsetSpace ~
25023 \begin_layout Standard
25024 \begin_inset Box Frameless
25033 height_special "totalheight"
25036 \begin_layout Standard
25039 Dies ist ein deutscher Text.
25040 Dies ist ein deutscher Text.
25041 Dies ist ein deutscher Text.
25042 Dies ist ein deutscher Text.
25043 Dies ist ein deutscher Text.
25044 Dies ist ein deutscher Text.
25045 Dies ist ein deutscher Text.
25046 Dies ist ein deutscher Text.
25047 Dies ist ein deutscher Text.
25048 Dies ist ein deutscher Text.
25049 Dies ist ein deutscher Text.
25050 Dies ist ein deutscher Text.
25051 Dies ist ein deutscher Text
25055 \begin_layout Standard
25058 Dies ist eine deutsche Fußnote.
25064 Dies ist ein deutscher Text.
25065 Dies ist ein deutscher Text.
25073 \begin_inset Box Frameless
25082 height_special "totalheight"
25085 \begin_layout Standard
25086 This is an English Text.
25087 This is an English Text.
25088 This is an English Text.
25089 This is an English Text.
25090 This is an English Text.
25091 This is an English Text.
25092 This is an English Text.
25093 This is an English Text.
25094 This is an English Text.
25095 This is an English Text.
25096 This is an English Text.
25097 This is an English Text.
25098 This is an English Text.
25099 This is an English Text.
25100 This is an English Text.
25101 This is an English Text.
25105 \begin_layout Standard
25106 This is an English footnote.
25111 This is an English Text.
25120 \begin_layout Standard
25121 \begin_inset VSpace bigskip
25124 Another application for minipages are footnotes within tables.
25125 Due to a LaTeX restriction footnotes within tables doesn't appear at the
25126 bottom of the current page.
25127 But when you put the table with the footnote to a minipage, the footnote
25128 will appear at its bottom, numbered with Latin letters.
25129 The footnote number is reset to 1 in every minipage but not outside the
25133 \begin_layout Standard
25134 The footnote of this table doesn't appear:
25135 \begin_inset Tabular
25136 <lyxtabular version="3" rows="3" columns="4">
25138 <column alignment="center" valignment="top" leftline="true" width="0pt">
25139 <column alignment="center" valignment="top" leftline="true" width="0pt">
25140 <column alignment="center" valignment="top" leftline="true" width="0pt">
25141 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25142 <row topline="true">
25143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25146 \begin_layout Standard
25152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25155 \begin_layout Standard
25161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25164 \begin_layout Standard
25169 \begin_layout Standard
25170 This is a footnote within a table.
25180 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25183 \begin_layout Standard
25190 <row topline="true">
25191 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25194 \begin_layout Standard
25200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25203 \begin_layout Standard
25209 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25212 \begin_layout Standard
25218 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25221 \begin_layout Standard
25228 <row topline="true" bottomline="true">
25229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25232 \begin_layout Standard
25238 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25241 \begin_layout Standard
25247 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25250 \begin_layout Standard
25256 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25259 \begin_layout Standard
25273 \begin_layout Standard
25275 \begin_inset Box Frameless
25284 height_special "totalheight"
25287 \begin_layout Standard
25289 \begin_inset Tabular
25290 <lyxtabular version="3" rows="3" columns="4">
25292 <column alignment="center" valignment="top" leftline="true" width="0pt">
25293 <column alignment="center" valignment="top" leftline="true" width="0pt">
25294 <column alignment="center" valignment="top" leftline="true" width="0pt">
25295 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25296 <row topline="true">
25297 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25300 \begin_layout Standard
25306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25309 \begin_layout Standard
25315 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25318 \begin_layout Standard
25323 \begin_layout Standard
25324 This is a footnote within a table.
25334 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25337 \begin_layout Standard
25344 <row topline="true">
25345 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25348 \begin_layout Standard
25354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25357 \begin_layout Standard
25363 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25366 \begin_layout Standard
25372 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25375 \begin_layout Standard
25382 <row topline="true" bottomline="true">
25383 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25386 \begin_layout Standard
25392 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25395 \begin_layout Standard
25401 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25404 \begin_layout Standard
25410 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25413 \begin_layout Standard
25432 \begin_layout Standard
25433 \begin_inset VSpace bigskip
25436 The document-wide paragraph settings are ignored within minipages.
25437 That means that there will be no space between paragraphs in minipages
25438 although you set it to e.\InsetSpace \thinspace{}
25444 in the document settings.
25447 \begin_layout Standard
25448 Minipages can also be used to set a background color for text parts, see
25449 section\InsetSpace ~
25451 \begin_inset LatexCommand ref
25452 reference "sub:Color-for-Paragraphs"
25459 \begin_layout Standard
25460 \begin_inset Note Greyedout
25463 \begin_layout Standard
25468 You cannot have floats or margin notes inside minipages but minipages can
25469 be used inside tables, floats, and other boxes.
25477 \begin_layout Section
25479 \begin_inset LatexCommand label
25480 name "sec:Parboxes"
25485 \begin_inset LatexCommand index
25486 name "Boxes ! Parboxes"
25493 \begin_layout Standard
25494 Parboxes are very similar to minipages with the difference that they cannot
25496 The main difference to minipages is that minipages are in contrary to parboxes
25497 no real boxes but LaTeX-environments.
25500 \begin_layout Standard
25502 \begin_inset Box Frameless
25511 height_special "totalheight"
25514 \begin_layout Standard
25515 This a text within a parbox.
25516 This a text within a parbox.
25519 \begin_layout Standard
25520 This footnote won't appear:
25524 \begin_layout Standard
25525 This footnote is inside a parbox and will therefore not appear.
25538 \begin_layout Section
25539 Boxes for Words and Characters
25540 \begin_inset LatexCommand index
25541 name "Boxes ! for Characters"
25548 \begin_layout Subsection
25549 Prevent Hyphenation
25550 \begin_inset LatexCommand label
25551 name "sec:Prevent-Hyphenation"
25556 \begin_inset LatexCommand index
25557 name "Boxes ! to Prevent Hyphenation"
25564 \begin_layout Standard
25565 You can use a special kind of boxes to prevent words or text to be hyphenated.
25568 e is an example text:
25571 \begin_layout Standard
25572 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25578 \begin_layout Standard
25579 To prevent the hyphenation of the word
25580 \begin_inset Quotes eld
25584 \begin_inset Quotes erd
25590 \begin_layout Standard
25598 \begin_layout Standard
25599 in ERT before the word.
25600 Behind the word insert a closing brace
25601 \begin_inset Quotes eld
25609 \begin_inset Quotes erd
25616 \begin_layout Standard
25628 \begin_layout Standard
25629 This is the result:
25632 \begin_layout Standard
25633 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25639 \begin_layout Standard
25652 \begin_layout Standard
25662 \begin_layout Standard
25663 Of course the word now protrudes over the side margin.
25664 To avoid this, add via the menu
25666 Insert\SpecialChar \menuseparator
25667 Special\InsetSpace ~
25668 Formatting\SpecialChar \menuseparator
25676 ) a line break before the word:
25679 \begin_layout Standard
25680 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25688 \begin_layout Standard
25701 \begin_layout Standard
25711 \begin_layout Subsection
25713 \begin_inset LatexCommand label
25714 name "sub:Vertical-Alignment"
25719 \begin_inset LatexCommand index
25720 name "Boxes ! for Vertical Alignment"
25725 \begin_inset LatexCommand index
25726 name "Boxes ! Raiseboxes"
25733 \begin_layout Standard
25734 With the help of the command
25740 you can align words, characters or other boxes vertically to the surrounding
25748 is used with the following scheme:
25751 \begin_layout Standard
25756 raisebox{lift}[height][depth]{box content}
25759 \begin_layout Standard
25760 The lift can be a positive value to raise the box or a negative value to
25764 \begin_layout Standard
25765 To align for example the word
25766 \begin_inset Quotes eld
25770 \begin_inset Quotes erd
25773 so that the bottom of the
25774 \begin_inset Quotes eld
25778 \begin_inset Quotes erd
25782 \begin_inset Quotes eld
25786 \begin_inset Quotes erd
25789 is at the baseline, insert the command
25792 \begin_layout Standard
25802 \begin_layout Standard
25803 in ERT before the word.
25804 Behind the word insert a closing brace
25805 \begin_inset Quotes eld
25813 \begin_inset Quotes erd
25818 This is the result:
25821 \begin_layout Standard
25822 This is a text line with the word
25826 \begin_layout Standard
25838 \begin_inset Quotes eld
25842 \begin_inset Quotes erd
25849 \begin_layout Standard
25859 \begin_layout Standard
25860 \begin_inset VSpace bigskip
25863 When you raise or lower characters in a line, the line distance will be
25867 \begin_layout Standard
25868 This is a text line with the word
25872 \begin_layout Standard
25884 \begin_inset Quotes eld
25888 \begin_inset Quotes erd
25895 \begin_layout Standard
25904 This is a text line with the word
25908 \begin_layout Standard
25918 \begin_inset Quotes eld
25922 \begin_inset Quotes erd
25929 \begin_layout Standard
25939 \begin_layout Standard
25940 If you want to prevent this for a certain reason, set the box height to
25945 \begin_layout Standard
25955 \begin_layout Standard
25956 This is a text line with the word
25960 \begin_layout Standard
25972 \begin_inset Quotes eld
25976 \begin_inset Quotes erd
25983 \begin_layout Standard
25992 This is a text line with the word
25996 \begin_layout Standard
26000 raisebox{0.5cm}[0pt]{
26006 \begin_inset Quotes eld
26010 \begin_inset Quotes erd
26017 \begin_layout Standard
26027 \begin_layout Section
26029 \begin_inset LatexCommand label
26030 name "sec:Colored-Boxes"
26035 \begin_inset LatexCommand index
26036 name "Boxes ! Color"
26043 \begin_layout Subsection
26045 \begin_inset LatexCommand index
26046 name "Color ! for Text"
26053 \begin_layout Standard
26054 To color the background of text the text must be put into a so called colorbox.
26055 This requires that the LaTeX-package
26060 \begin_inset LatexCommand index
26061 name "LaTeX-packages ! color"
26065 is loaded in the document preamble with the command
26068 \begin_layout Standard
26073 @ifundef\SpecialChar \textcompwordmark{}
26080 \begin_layout Standard
26091 usepackage{color}}{}
26094 \begin_layout Standard
26099 will be loaded automatically by LyX when you color text
26103 \begin_layout Standard
26104 To avoid that it is loaded twice the command
26108 @ifundef\SpecialChar \textcompwordmark{}
26119 \begin_layout Standard
26120 \begin_inset VSpace medskip
26123 Colorboxes are created with the command
26130 This will be used with the following scheme:
26133 \begin_layout Standard
26138 colorbox{color}{box content}
26141 \begin_layout Standard
26142 The box content can also be a box and colorboxes can also be within other
26146 \begin_layout Standard
26147 The following colors are predefined:
26186 You can also define your own color as described in section\InsetSpace ~
26188 \begin_inset LatexCommand ref
26189 reference "sec:Colored-Tables"
26196 \begin_layout Standard
26197 To have e.\InsetSpace \thinspace{}
26199 a red background for a word, insert the command
26202 \begin_layout Standard
26210 \begin_layout Standard
26211 before the word in ERT.
26212 Behind the word insert a closing brace
26213 \begin_inset Quotes eld
26221 \begin_inset Quotes erd
26226 This is the result:
26229 \begin_layout Standard
26230 This is a line where the word
26234 \begin_layout Standard
26244 \begin_inset Quotes eld
26248 \begin_inset Quotes erd
26255 \begin_layout Standard
26262 has a red background.
26265 \begin_layout Standard
26266 \begin_inset VSpace bigskip
26269 If you would have the box frame in a different color, you can use the command
26276 with the following scheme:
26279 \begin_layout Standard
26284 fcolorbox{frame color}{box color}{box content}
26287 \begin_layout Standard
26301 The frame thickness and the space between the frame and the box content
26302 can be adjusted with the lengths
26314 , respectively, as described in section\InsetSpace ~
26316 \begin_inset LatexCommand ref
26317 reference "sec:Framed-Boxes"
26324 \begin_layout Standard
26325 For the following example the command
26328 \begin_layout Standard
26333 fcolorbox{cyan}{magenta}{
26336 \begin_layout Standard
26340 \begin_layout Standard
26341 Here is an example where the frame line thickness was set to 1\InsetSpace \thinspace{}
26348 \begin_layout Standard
26363 \begin_layout Standard
26367 fcolorbox{cyan}{magenta}{
26372 This is text within a colored, framed box.
26376 \begin_layout Standard
26386 \begin_layout Standard
26387 \begin_inset VSpace bigskip
26390 Of course you can also have colored text inside a colorbox:
26396 \begin_layout Standard
26400 fcolorbox{cyan}{magenta}{
26407 This is colored text within a colored, framed box.
26413 \begin_layout Standard
26424 \begin_layout Standard
26438 \begin_layout Standard
26441 \begin_inset VSpace medskip
26447 \begin_layout Standard
26448 \begin_inset Note Greyedout
26451 \begin_layout Standard
26456 Text in colorboxes cannot have line breaks.
26457 To color multiple text lines or paragraphs, use a box inside a colorbox
26458 as described in the following.
26466 \begin_layout Subsection
26467 Color for Paragraphs
26468 \begin_inset LatexCommand label
26469 name "sub:Color-for-Paragraphs"
26474 \begin_inset LatexCommand index
26475 name "Color ! for Paragraphs"
26482 \begin_layout Standard
26483 To set the background color for more than one text line, put the text into
26485 Before the minipage insert the
26494 \begin_layout Standard
26502 \begin_layout Standard
26504 Behind the minipage insert a closing brace
26505 \begin_inset Quotes eld
26513 \begin_inset Quotes erd
26519 \begin_layout Standard
26523 \begin_layout Standard
26527 colorbox{lightgrey}{
26533 \begin_inset Box Frameless
26542 height_special "totalheight"
26545 \begin_layout Standard
26546 This is text with background color.
26547 This is text with background color.
26550 \begin_layout Standard
26551 \begin_inset VSpace defskip
26554 The text can have footnotes
26558 \begin_layout Standard
26559 Another example footnote
26564 and can include tables and figures.
26567 \begin_layout Standard
26569 \begin_inset Tabular
26570 <lyxtabular version="3" rows="3" columns="3">
26572 <column alignment="center" valignment="top" leftline="true" width="0">
26573 <column alignment="center" valignment="top" leftline="true" width="0">
26574 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
26575 <row topline="true">
26576 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26579 \begin_layout Standard
26585 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26588 \begin_layout Standard
26594 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26597 \begin_layout Standard
26604 <row topline="true">
26605 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26608 \begin_layout Standard
26614 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26617 \begin_layout Standard
26619 \begin_inset Quotes erd
26627 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26630 \begin_layout Standard
26637 <row topline="true" bottomline="true">
26638 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26641 \begin_layout Standard
26647 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26650 \begin_layout Standard
26656 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26659 \begin_layout Standard
26679 \begin_layout Standard
26689 \begin_layout Section
26690 URLs (Uniform Resource Locators)
26691 \begin_inset LatexCommand index
26699 \begin_layout Standard
26700 Links to web pages or email addresses can be inserted via the menu
26702 Insert\SpecialChar \menuseparator
26706 The appearing URL dialog has two fields; the
26714 field for the URL description, which will be typeset as plain text immediately
26718 \begin_layout Standard
26719 Here is an example URL:
26720 \begin_inset LatexCommand url
26721 name "LyX's homepage"
26722 target "http://www.lyx.org"
26729 \begin_layout Standard
26732 Generate\InsetSpace ~
26735 in the URL dialog has only an affect when you export your document to the
26737 \begin_inset Quotes eld
26745 \begin_inset Quotes erd
26751 \begin_layout Standard
26752 You cannot change the style of the link text.
26757 field will have the default text style of the document while the text of
26762 field will have the style
26763 \begin_inset Quotes eld
26771 \begin_inset Quotes erd
26777 \begin_layout Standard
26778 When you use the LaTeX-package
26783 \begin_inset LatexCommand index
26784 name "LaTeX-packages ! hyperref"
26788 to link cross-references in the output, URLs will automatically become
26789 clickable hyperlinks in DVI and PDF-output.
26792 \begin_layout Standard
26793 \begin_inset Note Greyedout
26796 \begin_layout Standard
26801 When you use the following characters: "%", "#", "^", you have to write
26802 them with a preceding backslash, e.\InsetSpace \thinspace{}
26805 \begin_inset Quotes eld
26811 \begin_inset Quotes erd
26815 URLs must not end with a backslash.
26823 \begin_layout Standard
26824 \begin_inset VSpace bigskip
26827 To create real hyperlinks without the force to write the link location to
26828 the text, you can use the command
26831 \begin_layout Standard
26836 href{link location}{link text}
26839 \begin_layout Standard
26841 To get for example a link to LyX's web page, write the command
26844 \begin_layout Standard
26849 href{http://www.lyx.org}{
26852 \begin_layout Standard
26854 Insert after the command the link text
26855 \begin_inset Quotes eld
26859 \begin_inset Quotes erd
26862 as normal text followed by a closing brace
26863 \begin_inset Quotes eld
26871 \begin_inset Quotes erd
26875 This is the result:
26879 \begin_layout Standard
26883 href{http://www.lyx.org}{
26892 \begin_layout Standard
26902 \begin_layout Standard
26903 To link to email addresses, add the prefix
26904 \begin_inset Quotes eld
26912 \begin_inset Quotes erd
26915 to the link location:
26921 \begin_layout Standard
26925 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's documentation}{
26930 lyx-docs mailing list
26934 \begin_layout Standard
26944 \begin_layout Standard
26951 instead of LyX's URL box has the advantage that you can specify the text
26952 style of the link text like for all other text parts.
26953 You can therefore set hyphenation points and forced linebreaks to have
26954 long link text broken at the page margin.
26955 You are furthermore able to change the text style for all URLs in your
26956 document with an option in
26960 's load command and the restrictions mentioned above doesn't apply for
26969 \begin_layout Chapter
26971 \begin_inset LatexCommand index
26972 name "External Stuff"
26979 \begin_layout Standard
26982 Insert\SpecialChar \menuseparator
26985 you can insert external material to your document.
26989 \begin_layout Description
26991 Document Another LyX document; its content is directly inserted to your
26995 \begin_layout Description
26997 Text A text document; every of its text lines is inserted to your document
27001 \begin_layout Description
27005 Lines A text document; its text lines are inserted as they
27007 Empty text lines creates a new paragraph in your document.
27010 \begin_layout Description
27011 External\InsetSpace ~
27012 Material Files in various formats.
27015 \begin_layout Description
27017 Document LyX or LaTeX-documents.
27020 \begin_layout Section
27022 \begin_inset LatexCommand index
27023 name "External Stuff ! External Material"
27030 \begin_layout Standard
27031 The external material feature allows you to insert files to your document
27032 without converting them previously to a format that can be read by the
27033 document output format because LyX takes care of needed conversions.
27034 This is similar to images that can be inserted in various image formats
27038 \begin_layout Standard
27039 External material can be inserted via the
27043 dialog that is accessible with the menu
27045 Insert\SpecialChar \menuseparator
27046 File\SpecialChar \menuseparator
27047 External\InsetSpace ~
27051 Currently the following file types (
27058 \begin_layout Description
27059 ChessDiagram This template supports chess position diagrams made with the
27064 \begin_layout Standard
27068 href{http://en.wikipedia.org/wiki/XBoard}{
27081 \begin_layout Standard
27091 \begin_layout Description
27092 Date This inserts the date in the form
27097 This is a date inserted as external material:
27098 \begin_inset External
27106 The date is not shown within LyX, only in the output.
27107 There are two other methods of inserting a date, via menu
27109 Insert\SpecialChar \menuseparator
27112 and with the LaTeX command
27119 The different methods are compared in Table\InsetSpace ~
27121 \begin_inset LatexCommand ref
27122 reference "tab:Comparison-of-the"
27129 \begin_layout Description
27130 LilyPond This template is used for music notation typeset with the program
27134 \begin_layout Standard
27147 \begin_layout Standard
27151 href{http://en.wikipedia.org/wiki/LilyPond}{
27164 \begin_layout Standard
27172 \begin_inset Note Note
27175 \begin_layout Standard
27182 breaks the line while the remaining text in the line is stretched to the
27191 \begin_layout Description
27192 RasterImage This can be used for bitmap images.
27193 Nearly all popular image formats are supported.
27194 The image can be treated in the
27198 dialog like the images that are usually included via the
27202 dialog as described in section\InsetSpace ~
27204 \begin_inset LatexCommand ref
27205 reference "sec:Graphics-Dialog"
27210 The difference is that only raster images are allowed, that means that
27211 PDF and EPS-images are not supported.
27214 \begin_layout Description
27215 XFig This template supports images created with the program
27219 \begin_layout Standard
27223 href{http://en.wikipedia.org/wiki/Xfig}{
27236 \begin_layout Standard
27246 \begin_layout Standard
27247 \begin_inset Float table
27253 \begin_layout Standard
27254 \begin_inset Caption
27256 \begin_layout Standard
27257 \begin_inset LatexCommand label
27258 name "tab:Comparison-of-the"
27262 Comparison of the date input methods.
27270 \begin_layout Standard
27272 \begin_inset Tabular
27273 <lyxtabular version="3" rows="4" columns="4">
27275 <column alignment="center" valignment="top" leftline="true" width="0">
27276 <column alignment="center" valignment="top" leftline="true" width="0">
27277 <column alignment="center" valignment="top" leftline="true" width="0">
27278 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27279 <row topline="true">
27280 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27283 \begin_layout Standard
27289 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27292 \begin_layout Standard
27295 External Material\SpecialChar \menuseparator
27301 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27304 \begin_layout Standard
27307 Insert\SpecialChar \menuseparator
27313 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27316 \begin_layout Standard
27327 <row topline="true">
27328 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27331 \begin_layout Standard
27337 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27340 \begin_layout Standard
27346 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27349 \begin_layout Standard
27355 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27358 \begin_layout Standard
27365 <row topline="true">
27366 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27369 \begin_layout Standard
27375 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27378 \begin_layout Standard
27384 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27387 \begin_layout Standard
27393 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27396 \begin_layout Standard
27403 <row topline="true" bottomline="true">
27404 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27407 \begin_layout Standard
27413 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27416 \begin_layout Standard
27422 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27425 \begin_layout Standard
27431 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27434 \begin_layout Standard
27453 \begin_layout Standard
27454 When you use the option
27466 dialog, only the path to the inserted file is shown in the output.
27469 material is displayed in LyX either as box like this:
27470 \begin_inset Graphics
27471 filename clipart/ExternalMaterialQt4.png
27476 or as image, depending on the setting in the
27488 \begin_layout Standard
27495 manual explains how you can define your own templates.
27498 \begin_layout Section
27500 \begin_inset LatexCommand index
27501 name "External Stuff ! Child Documents"
27506 \begin_inset LatexCommand index
27507 name "Files ! Include"
27514 \begin_layout Standard
27515 Child documents are used when you have a long document consisting of several
27516 larger parts or sections.
27517 For maintenance it is often useful and sometimes even required to split
27518 the document in several files that can be revised separately.
27519 The different documents are then the so called child documents and a master
27520 document connects them to print the full document or parts of it.
27523 \begin_layout Standard
27524 Included documents are displayed in LyX as a box like this:
27525 \begin_inset Graphics
27526 filename clipart/ChildDocumentQt4.png
27531 To include child documents to a master document use the menu
27533 Insert\SpecialChar \menuseparator
27534 File\SpecialChar \menuseparator
27539 A dialog pops up where you can choose between three include methods:
27542 \begin_layout Description
27543 Include You can include LyX and LaTeX-documents.
27552 dialog, the included documents will be opened in LyX in a new file tab
27553 so that you can modify it.
27558 \begin_layout Standard
27559 Here is a child document inserted using
27564 \begin_inset Include \include{DummyDocument1.lyx}
27572 \begin_layout Standard
27573 The section numbering includes the sections of the included files in the
27574 order they are inserted in the master document.
27575 The included example document has for example a subsection that is numbered
27576 as subsection of this section.
27577 Labels of included documents can be referenced: Subsection\InsetSpace ~
27579 \begin_inset LatexCommand ref
27580 reference "sub:External-Subsection-1"
27587 \begin_layout Standard
27588 The preamble of the child document is ignored, only the preamble of the
27589 master document is used.
27590 Included documents are inserted starting on a new page and end with a pagebreak.
27593 \begin_layout Standard
27594 With the LaTeX-command
27600 you can specify which included child documents are processed when the output
27602 This is useful when you are perhaps only working on a certain chapter of
27603 your large document as this saves compiling time.
27610 is inserted to the master document preamble.
27611 It takes a comma-separated list of the filenames as argument, e.g.
27614 \begin_layout Standard
27619 includeonly{chapter1,chapter5}
27622 \begin_layout Standard
27623 will only process the included files named
27624 \begin_inset Quotes eld
27628 \begin_inset Quotes erd
27632 \begin_inset Quotes eld
27636 \begin_inset Quotes erd
27640 \begin_inset Quotes eld
27644 \begin_inset Quotes erd
27650 \begin_layout Standard
27651 \begin_inset Note Greyedout
27654 \begin_layout Standard
27659 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
27660 w the document in case that the child document uses another document class
27661 than the master document as this will lead to unexpected outputs.
27669 \begin_layout Description
27670 Input This method is very similar to the Include method.
27671 The differences are:
27675 \begin_layout Itemize
27676 Input files don't start with a new page and don't end with a pagebreak.
27679 \begin_layout Itemize
27680 Input files can be previewed in LyX when
27682 Instant\InsetSpace ~
27685 is enabled in LyX's preferences under
27689 feel\SpecialChar \menuseparator
27695 \begin_layout Itemize
27706 \begin_layout Standard
27707 Here is a child document inserted using
27712 \begin_inset Include \input{DummyDocument2.lyx}
27720 \begin_layout Description
27721 Verbatim With this method every text file can be included.
27722 The file is shown in the output with its source code, no command used in
27723 the text is invoked.
27724 You can use the option
27726 Mark spaces in output
27728 that displays the character
27729 \begin_inset Quotes eld
27736 \begin_layout Standard
27746 \begin_inset Quotes erd
27749 for every space character in the source code.
27750 The difference to the method via the menu
27752 Insert\SpecialChar \menuseparator
27753 File\SpecialChar \menuseparator
27757 is that the document content is not shown in LyX.
27760 \begin_layout Standard
27761 Here is a child document inserted as Verbatim:
27762 \begin_inset Include \verbatiminput{DummyTextDocument.txt}
27768 \begin_inset VSpace bigskip
27771 Here is a child document inserted as Verbatim using the
27773 Mark spaces in output
27776 \begin_inset Include \verbatiminput*{DummyTextDocument.txt}
27784 \begin_layout Standard
27785 \begin_inset VSpace bigskip
27791 \begin_layout Standard
27792 \begin_inset Note Greyedout
27795 \begin_layout Standard
27800 As you can see in the examples above, the text of the documents included
27801 as verbatim is not broken at the end of the document lines.
27809 \begin_layout Standard
27810 \begin_inset Note Greyedout
27813 \begin_layout Standard
27818 Including the same document twice in a document using different methods
27819 could cause LaTeX-problems.
27827 \begin_layout Standard
27833 \begin_layout Chapter
27839 \begin_layout Standard
27852 \begin_layout Standard
27860 \begin_inset LatexCommand index
27866 \begin_inset LatexCommand label
27867 name "cha:Units-available-in"
27872 \begin_inset Note Note
27875 \begin_layout Standard
27878 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
27879 are displayed wrongly in PDF-bookmarks.
27880 For more information about this, have a look at
27881 \begin_inset LatexCommand cite
27894 \begin_layout Standard
27895 To understand the units described in this documentation, Table\InsetSpace ~
27897 \begin_inset LatexCommand ref
27898 reference "tab:Units"
27902 explains all units available in LyX.
27905 \begin_layout Standard
27906 \begin_inset Float table
27912 \begin_layout Standard
27913 \begin_inset Caption
27915 \begin_layout Standard
27916 \begin_inset LatexCommand label
27929 \begin_layout Standard
27930 \begin_inset VSpace medskip
27936 \begin_layout Standard
27938 \begin_inset Tabular
27939 <lyxtabular version="3" rows="20" columns="2">
27941 <column alignment="center" valignment="top" leftline="true" width="0">
27942 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27943 <row topline="true" bottomline="true">
27944 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27947 \begin_layout Standard
27953 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27956 \begin_layout Standard
27963 <row topline="true">
27964 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27967 \begin_layout Standard
27973 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27976 \begin_layout Standard
27983 <row topline="true">
27984 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27987 \begin_layout Standard
27993 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27996 \begin_layout Standard
28003 <row topline="true">
28004 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28007 \begin_layout Standard
28013 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28016 \begin_layout Standard
28023 <row topline="true">
28024 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28027 \begin_layout Standard
28033 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28036 \begin_layout Standard
28037 point (72.27\InsetSpace \thinspace{}
28038 pt = 1\InsetSpace \thinspace{}
28045 <row topline="true">
28046 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28049 \begin_layout Standard
28055 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28058 \begin_layout Standard
28059 pica (1\InsetSpace \thinspace{}
28060 pc = 12\InsetSpace \thinspace{}
28067 <row topline="true">
28068 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28071 \begin_layout Standard
28077 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28080 \begin_layout Standard
28081 scaled point (65536\InsetSpace \thinspace{}
28082 sp = 1\InsetSpace \thinspace{}
28089 <row topline="true">
28090 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28093 \begin_layout Standard
28099 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28102 \begin_layout Standard
28103 big point (72\InsetSpace \thinspace{}
28104 bp = 1\InsetSpace \thinspace{}
28111 <row topline="true">
28112 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28115 \begin_layout Standard
28121 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28124 \begin_layout Standard
28125 didot (72\InsetSpace \thinspace{}
28127 \begin_inset Formula $\approx$
28130 37.6\InsetSpace \thinspace{}
28137 <row topline="true">
28138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28141 \begin_layout Standard
28147 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28150 \begin_layout Standard
28151 cicero (1\InsetSpace \thinspace{}
28152 cc = 12\InsetSpace \thinspace{}
28159 <row topline="true">
28160 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28163 \begin_layout Standard
28169 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28172 \begin_layout Standard
28173 % of original image width
28179 <row topline="true">
28180 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28183 \begin_layout Standard
28189 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28192 \begin_layout Standard
28199 <row topline="true">
28200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28203 \begin_layout Standard
28209 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28212 \begin_layout Standard
28219 <row topline="true">
28220 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28223 \begin_layout Standard
28229 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28232 \begin_layout Standard
28239 <row topline="true">
28240 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28243 \begin_layout Standard
28249 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28252 \begin_layout Standard
28259 <row topline="true">
28260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28263 \begin_layout Standard
28269 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28272 \begin_layout Standard
28279 <row topline="true">
28280 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28283 \begin_layout Standard
28289 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28292 \begin_layout Standard
28299 <row topline="true">
28300 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28303 \begin_layout Standard
28309 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28312 \begin_layout Standard
28323 <row topline="true">
28324 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28327 \begin_layout Standard
28333 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28336 \begin_layout Standard
28347 <row topline="true" bottomline="true">
28348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28351 \begin_layout Standard
28357 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28360 \begin_layout Standard
28361 math unit (1\InsetSpace \thinspace{}
28362 mu = 1/18\InsetSpace \thinspace{}
28381 \begin_layout Chapter
28382 Output File Formats with Graphics
28383 \begin_inset LatexCommand label
28384 name "cha:Output-File-Formats"
28391 \begin_layout Section
28393 \begin_inset LatexCommand index
28394 name "File Formats ! DVI"
28399 \begin_inset LatexCommand index
28400 name "DVI|see{File Formats}"
28407 \begin_layout Standard
28408 This file type has the extension
28409 \begin_inset Quotes eld
28417 \begin_inset Quotes erd
28422 \begin_inset Quotes eld
28426 \begin_inset Quotes erd
28429 (DVI), because it is completely portable; you can move them from one machine
28430 to another without needing to do any sort of conversion.
28431 At the time when this file-format was developed, this was no matter of
28433 DVIs are used for quick previews and as pre-stage for other output formats,
28437 \begin_layout Standard
28438 \begin_inset Note Greyedout
28441 \begin_layout Standard
28446 DVI-files doesn't contain images, they will only be a linked.
28451 So don't forget this, if you move your
28455 file to another computer.
28456 This property can also slow down your computer when you view the DVI.
28457 Because the DVI-viewer has to convert the image in the background to make
28458 it visible when you scroll in the DVI.
28459 So we recommend to use PDF for files with many images.
28462 \begin_layout Standard
28463 You can export your document to DVI by using the menu
28465 File\SpecialChar \menuseparator
28466 Export\SpecialChar \menuseparator
28470 You can view your document as DVI via the
28474 menu or by using the toolbar button
28475 \begin_inset Graphics
28476 filename ../images/buffer-view_dvi.xpm
28484 \begin_layout Section
28486 \begin_inset LatexCommand label
28487 name "sec:PostScript"
28492 \begin_inset LatexCommand index
28493 name "File Formats ! PostScript"
28498 \begin_inset LatexCommand index
28499 name "PostScript|see{File Formats}"
28506 \begin_layout Standard
28507 This file type has the extension
28508 \begin_inset Quotes eld
28516 \begin_inset Quotes erd
28520 PostScript was developed by the company
28524 as printer language.
28525 The file contains therefore commands that the printer uses to print the
28527 PostScript can be seen as
28528 \begin_inset Quotes eld
28531 programming language
28532 \begin_inset Quotes erd
28535 ; you can calculate with it and draw diagrams and images
28539 \begin_layout Standard
28540 If you are interested to learn more about this, have a look at the LaTeX-package
28546 \begin_inset LatexCommand cite
28557 Due to this ability, the files are often bigger than PDFs.
28560 \begin_layout Standard
28561 PostScript can only contain images in the format
28562 \begin_inset Quotes eld
28565 Encapsulated PostScript
28566 \begin_inset Quotes erd
28569 (EPS, file extension
28570 \begin_inset Quotes eld
28578 \begin_inset Quotes erd
28582 As LyX allows you to use any known image format in your document, it has
28583 to convert images in the background to EPS.
28584 If you have e.g 50 images in your document, LyX has to do 50 conversions
28585 whenever you view or export your document.
28586 This will slow down your work flow with LyX drastically.
28587 So if you plan to use PostScript, you can insert your images directly as
28588 EPS to avoid this problem.
28591 \begin_layout Standard
28592 You can export your document to PostScript using the menu
28594 File\SpecialChar \menuseparator
28595 Export\SpecialChar \menuseparator
28599 You can view your document as PostScript via the
28603 menu or by using the toolbar button
28604 \begin_inset Graphics
28605 filename ../images/buffer-view_ps.xpm
28613 \begin_layout Section
28615 \begin_inset LatexCommand label
28621 \begin_inset LatexCommand index
28622 name "File Formats ! PDF"
28627 \begin_inset LatexCommand index
28635 \begin_layout Standard
28636 This file type has the extension
28637 \begin_inset Quotes eld
28645 \begin_inset Quotes erd
28650 \begin_inset Quotes eld
28653 Portable Document Format
28654 \begin_inset Quotes erd
28657 (PDF) is developed by
28661 as derivative from PostScript.
28662 It is more compressed and it uses much less commands than PostScript.
28664 \begin_inset Quotes eld
28668 \begin_inset Quotes erd
28671 implies, it can be processed at any computer system and the printed output
28672 looks exactly the same.
28675 \begin_layout Standard
28676 PDF can contain images in its own PDF format, in the format
28677 \begin_inset Quotes eld
28680 Joint Photographic Experts Group
28681 \begin_inset Quotes erd
28684 (JPG, file extension
28685 \begin_inset Quotes eld
28693 \begin_inset Quotes erd
28697 \begin_inset Quotes eld
28705 \begin_inset Quotes erd
28708 ), and in the format
28709 \begin_inset Quotes eld
28712 Portable Network Graphics
28713 \begin_inset Quotes erd
28716 (PNG, file extension
28717 \begin_inset Quotes eld
28725 \begin_inset Quotes erd
28729 You can although use any other image format, because LyX converts them
28730 in the background to one of these formats.
28731 But as described in the section about PostScript, the image conversion
28732 will slow down your work flow.
28733 So it is recommended to use images in one of the three mentioned formats.
28736 \begin_layout Standard
28737 You can export your document to PDF via the menu
28739 File\SpecialChar \menuseparator
28742 in three different ways:
28745 \begin_layout Description
28746 PDF This uses the program
28750 that creates a PDF from a PostScript-version of your file.
28751 The PostScript-version is produced by the program
28755 which uses a DVI-version as intermediate step.
28756 So this export variant consist of three conversions.
28759 \begin_layout Description
28761 (dvipdfm) This uses the program
28765 that converts your file in the background to DVI and in a second step to
28769 \begin_layout Description
28771 (pdflatex) This uses the program
28775 that converts your file directly to PDF.
28778 \begin_layout Standard
28779 It is recommended to use
28788 supports all features of actual PDF-versions, is quick and works stable
28794 is not under development and therefore a bit outdated.
28797 \begin_layout Standard
28798 You can view your document as PDF via the
28802 menu or by using the toolbar button
28803 \begin_inset Graphics
28804 filename ../images/buffer-view_pdf2.xpm
28821 \begin_layout Chapter
28822 Explanation of Equation\InsetSpace ~
28824 \begin_inset LatexCommand eqref
28830 \begin_inset LatexCommand label
28831 name "cha:Explanation-of-Equation"
28838 \begin_layout Standard
28844 \begin_inset Formula $W_{\mathrm{tot\, n}}$
28847 can be calculated to
28850 \begin_layout Standard
28851 \begin_inset Formula \begin{equation}
28852 W_{\mathrm{tot}\, n}=n·(W_{g\, n}+2·\backslash\mbox{tabcolsep})+(n+1)·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}\end{equation}
28859 \begin_layout Standard
28861 \begin_inset Formula $W_{g\, n}$
28864 is the given width of all cells.
28871 is the LaTeX-length between the cell text and the cell border, its default
28872 value is 6\InsetSpace \thinspace{}
28880 is the thickness of the cell border line, the default is 0.4\InsetSpace \thinspace{}
28884 \begin_layout Standard
28885 Following equation\InsetSpace ~
28887 \begin_inset LatexCommand eqref
28888 reference "eq:Wtot_n"
28892 , the total width of a multicolumn
28893 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
28899 \begin_layout Standard
28900 \begin_inset Formula \begin{equation}
28901 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2·\backslash\mbox{tabcolsep}+2·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
28908 \begin_layout Standard
28909 By setting equation\InsetSpace ~
28911 \begin_inset LatexCommand eqref
28912 reference "eq:Wtot_n"
28917 \begin_inset LatexCommand eqref
28918 reference "eq:Wtot_mult"
28922 equal we can calculate the needed given width
28923 \begin_inset Formula $W_{g\, n}$
28930 columns are spanned, so that each column has a total width of
28931 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
28937 \begin_layout Standard
28938 \begin_inset Formula \begin{equation}
28939 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)·(2·\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
28946 \begin_layout Bibliography
28947 \begin_inset LatexCommand bibitem
28948 key "latexcompanion"
28952 Frank Mittelbach and Michel Goossens:
28954 The LaTeX Companion Second Edition.
28957 Addison-Wesley, 2004
28960 \begin_layout Bibliography
28961 \begin_inset LatexCommand bibitem
28966 Helmut Kopka and Patrick W.
28969 A Guide to LaTeX Fourth Edition.
28972 Addison-Wesley, 2003
28975 \begin_layout Bibliography
28976 \begin_inset LatexCommand bibitem
28983 LaTeX: A Document Preparation System.
28986 Addison-Wesley, second edition, 1994
28989 \begin_layout Bibliography
28990 \begin_inset LatexCommand bibitem
28999 \begin_layout Standard
29003 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf}
29013 \begin_layout Standard
29020 of the LaTeX-package
29025 \begin_inset LatexCommand index
29026 name "LaTeX-packages ! booktabs"
29033 \begin_layout Bibliography
29034 \begin_inset LatexCommand bibitem
29043 \begin_layout Standard
29047 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf}{
29056 \begin_layout Standard
29063 of the LaTeX-package
29068 \begin_inset LatexCommand index
29069 name "LaTeX-packages ! caption"
29076 \begin_layout Bibliography
29077 \begin_inset LatexCommand bibitem
29086 \begin_layout Standard
29090 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/anleitung.pdf}
29100 \begin_layout Standard
29107 of the LaTeX-package
29112 \begin_layout Bibliography
29113 \begin_inset LatexCommand bibitem
29122 \begin_layout Standard
29126 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf}
29136 \begin_layout Standard
29143 of the LaTeX-package
29145 endf\SpecialChar \textcompwordmark{}
29149 \begin_inset LatexCommand index
29150 name "LaTeX-packages ! endfloat"
29157 \begin_layout Bibliography
29158 \begin_inset LatexCommand bibitem
29167 \begin_layout Standard
29171 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/floatflt/floatflt.pdf}
29181 \begin_layout Standard
29188 of the LaTeX-package
29190 floatf\SpecialChar \textcompwordmark{}
29194 \begin_inset LatexCommand index
29195 name "LaTeX-packages ! floatflt"
29202 \begin_layout Bibliography
29203 \begin_inset LatexCommand bibitem
29212 \begin_layout Standard
29216 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf}
29226 \begin_layout Standard
29233 of the LaTeX-package
29238 \begin_inset LatexCommand index
29239 name "LaTeX-packages ! footmisc"
29246 \begin_layout Bibliography
29247 \begin_inset LatexCommand bibitem
29256 \begin_layout Standard
29260 href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf}{
29269 \begin_layout Standard
29276 of the LaTeX-package
29281 \begin_inset LatexCommand index
29282 name "LaTeX-packages ! hyperref"
29289 \begin_layout Bibliography
29290 \begin_inset LatexCommand bibitem
29299 \begin_layout Standard
29303 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf}
29313 \begin_layout Standard
29320 of the LaTeX-package
29325 \begin_inset LatexCommand index
29326 name "LaTeX-packages ! hyperref"
29333 \begin_layout Bibliography
29334 \begin_inset LatexCommand bibitem
29343 \begin_layout Standard
29347 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.p
29357 \begin_layout Standard
29364 of the LaTeX-package
29369 \begin_inset LatexCommand index
29370 name "LaTeX-packages ! koma-script"
29377 \begin_layout Bibliography
29378 \begin_inset LatexCommand bibitem
29379 key "koma-script-de"
29387 \begin_layout Standard
29391 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguide.p
29401 \begin_layout Standard
29408 of the LaTeX-package
29413 \begin_inset LatexCommand index
29414 name "LaTeX-packages ! koma-script"
29421 \begin_layout Bibliography
29422 \begin_inset LatexCommand bibitem
29431 \begin_layout Standard
29435 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.
29445 \begin_layout Standard
29452 of the LaTeX-package
29457 \begin_inset LatexCommand index
29458 name "LaTeX-packages ! marginnote"
29465 \begin_layout Bibliography
29466 \begin_inset LatexCommand bibitem
29475 \begin_layout Standard
29479 href{http://tug.org/PSTricks/main.cgi/}{
29488 \begin_layout Standard
29495 of the LaTeX-package
29500 \begin_inset LatexCommand index
29501 name "LaTeX-packages ! PSTricks"
29508 \begin_layout Bibliography
29509 \begin_inset LatexCommand bibitem
29518 \begin_layout Standard
29522 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf}{
29531 \begin_layout Standard
29538 of the LaTeX-package
29543 \begin_inset LatexCommand index
29544 name "LaTeX-packages ! sidecap"
29551 \begin_layout Bibliography
29552 \begin_inset LatexCommand bibitem
29561 \begin_layout Standard
29565 href{http://wiki.lyx.org/LyX/NewInLyX15}{
29574 \begin_layout Standard
29581 about new LyX-features planned for the release
29588 \begin_layout Standard
29589 \begin_inset LatexCommand printindex
29596 \begin_layout Standard
29597 \begin_inset FloatList figure
29604 \begin_layout Standard
29605 \begin_inset FloatList table