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 for the current row and the width
1526 of the current column.
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:
2410 Footer, Last\InsetSpace ~
2423 See the following longtable to see how it works:
2426 \begin_layout Standard
2428 \begin_inset Tabular
2429 <lyxtabular version="3" rows="69" columns="3">
2430 <features islongtable="true">
2431 <column alignment="left" valignment="top" leftline="true" width="0cm">
2432 <column alignment="left" valignment="top" width="0pt">
2433 <column alignment="right" valignment="top" leftline="true" rightline="true" width="0pt">
2434 <row topline="true" bottomline="true" endfirsthead="true">
2435 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2438 \begin_layout Standard
2441 Example Phone List (ignore the names)
2446 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2449 \begin_layout Standard
2455 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2458 \begin_layout Standard
2465 <row topline="true" bottomline="true" endfirsthead="true">
2466 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2469 \begin_layout Standard
2477 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2480 \begin_layout Standard
2486 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2489 \begin_layout Standard
2498 <row topline="true" bottomline="true" endhead="true">
2499 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2502 \begin_layout Standard
2510 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2513 \begin_layout Standard
2519 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2522 \begin_layout Standard
2529 <row topline="true" bottomline="true" endhead="true">
2530 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2533 \begin_layout Standard
2541 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2544 \begin_layout Standard
2550 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2553 \begin_layout Standard
2562 <row topline="true" bottomline="true" endfoot="true">
2563 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
2566 \begin_layout Standard
2567 continued on next page
2572 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2575 \begin_layout Standard
2581 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2584 \begin_layout Standard
2592 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2595 \begin_layout Standard
2603 <cell alignment="center" valignment="top" topline="true" usebox="none">
2606 \begin_layout Standard
2612 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2615 \begin_layout Standard
2623 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2626 \begin_layout Standard
2634 <cell alignment="center" valignment="top" topline="true" usebox="none">
2637 \begin_layout Standard
2643 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2646 \begin_layout Standard
2654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2657 \begin_layout Standard
2665 <cell alignment="center" valignment="top" topline="true" usebox="none">
2668 \begin_layout Standard
2674 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2677 \begin_layout Standard
2685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2688 \begin_layout Standard
2696 <cell alignment="center" valignment="top" topline="true" usebox="none">
2699 \begin_layout Standard
2705 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2708 \begin_layout Standard
2716 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2719 \begin_layout Standard
2727 <cell alignment="center" valignment="top" topline="true" usebox="none">
2730 \begin_layout Standard
2736 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2739 \begin_layout Standard
2747 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2750 \begin_layout Standard
2758 <cell alignment="center" valignment="top" topline="true" usebox="none">
2761 \begin_layout Standard
2767 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2770 \begin_layout Standard
2778 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2781 \begin_layout Standard
2789 <cell alignment="center" valignment="top" topline="true" usebox="none">
2792 \begin_layout Standard
2798 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2801 \begin_layout Standard
2809 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2812 \begin_layout Standard
2820 <cell alignment="center" valignment="top" topline="true" usebox="none">
2823 \begin_layout Standard
2829 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2832 \begin_layout Standard
2840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2843 \begin_layout Standard
2851 <cell alignment="center" valignment="top" topline="true" usebox="none">
2854 \begin_layout Standard
2860 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2863 \begin_layout Standard
2871 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2874 \begin_layout Standard
2882 <cell alignment="center" valignment="top" topline="true" usebox="none">
2885 \begin_layout Standard
2891 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2894 \begin_layout Standard
2902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2905 \begin_layout Standard
2913 <cell alignment="center" valignment="top" topline="true" usebox="none">
2916 \begin_layout Standard
2922 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2925 \begin_layout Standard
2933 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2936 \begin_layout Standard
2944 <cell alignment="center" valignment="top" topline="true" usebox="none">
2947 \begin_layout Standard
2953 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2956 \begin_layout Standard
2964 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2967 \begin_layout Standard
2975 <cell alignment="center" valignment="top" topline="true" usebox="none">
2978 \begin_layout Standard
2984 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2987 \begin_layout Standard
2995 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2998 \begin_layout Standard
3006 <cell alignment="center" valignment="top" topline="true" usebox="none">
3009 \begin_layout Standard
3015 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3018 \begin_layout Standard
3026 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3029 \begin_layout Standard
3037 <cell alignment="center" valignment="top" topline="true" usebox="none">
3040 \begin_layout Standard
3046 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3049 \begin_layout Standard
3057 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3060 \begin_layout Standard
3068 <cell alignment="center" valignment="top" topline="true" usebox="none">
3071 \begin_layout Standard
3077 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3080 \begin_layout Standard
3088 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3091 \begin_layout Standard
3099 <cell alignment="center" valignment="top" topline="true" usebox="none">
3102 \begin_layout Standard
3108 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3111 \begin_layout Standard
3119 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3122 \begin_layout Standard
3130 <cell alignment="center" valignment="top" topline="true" usebox="none">
3133 \begin_layout Standard
3139 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3142 \begin_layout Standard
3150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3153 \begin_layout Standard
3161 <cell alignment="center" valignment="top" topline="true" usebox="none">
3164 \begin_layout Standard
3170 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3173 \begin_layout Standard
3181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3184 \begin_layout Standard
3192 <cell alignment="center" valignment="top" topline="true" usebox="none">
3195 \begin_layout Standard
3201 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3204 \begin_layout Standard
3212 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3215 \begin_layout Standard
3223 <cell alignment="center" valignment="top" topline="true" usebox="none">
3226 \begin_layout Standard
3232 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3235 \begin_layout Standard
3243 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3246 \begin_layout Standard
3254 <cell alignment="center" valignment="top" topline="true" usebox="none">
3257 \begin_layout Standard
3263 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3266 \begin_layout Standard
3274 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3277 \begin_layout Standard
3285 <cell alignment="center" valignment="top" topline="true" usebox="none">
3288 \begin_layout Standard
3294 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3297 \begin_layout Standard
3305 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3308 \begin_layout Standard
3316 <cell alignment="center" valignment="top" topline="true" usebox="none">
3319 \begin_layout Standard
3325 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3328 \begin_layout Standard
3336 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3339 \begin_layout Standard
3347 <cell alignment="center" valignment="top" topline="true" usebox="none">
3350 \begin_layout Standard
3356 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3359 \begin_layout Standard
3367 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3370 \begin_layout Standard
3378 <cell alignment="center" valignment="top" topline="true" usebox="none">
3381 \begin_layout Standard
3387 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3390 \begin_layout Standard
3398 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3401 \begin_layout Standard
3409 <cell alignment="center" valignment="top" topline="true" usebox="none">
3412 \begin_layout Standard
3418 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3421 \begin_layout Standard
3429 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3432 \begin_layout Standard
3440 <cell alignment="center" valignment="top" topline="true" usebox="none">
3443 \begin_layout Standard
3449 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3452 \begin_layout Standard
3460 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3463 \begin_layout Standard
3471 <cell alignment="center" valignment="top" topline="true" usebox="none">
3474 \begin_layout Standard
3480 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3483 \begin_layout Standard
3491 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3494 \begin_layout Standard
3502 <cell alignment="center" valignment="top" topline="true" usebox="none">
3505 \begin_layout Standard
3511 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3514 \begin_layout Standard
3521 <row bottomline="true">
3522 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3525 \begin_layout Standard
3533 <cell alignment="center" valignment="top" topline="true" usebox="none">
3536 \begin_layout Standard
3542 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3545 \begin_layout Standard
3552 <row bottomline="true">
3553 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3556 \begin_layout Standard
3562 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
3565 \begin_layout Standard
3571 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3574 \begin_layout Standard
3582 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3585 \begin_layout Standard
3593 <cell alignment="center" valignment="top" topline="true" usebox="none">
3596 \begin_layout Standard
3602 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3605 \begin_layout Standard
3613 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3616 \begin_layout Standard
3624 <cell alignment="center" valignment="top" topline="true" usebox="none">
3627 \begin_layout Standard
3633 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3636 \begin_layout Standard
3644 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3647 \begin_layout Standard
3655 <cell alignment="center" valignment="top" topline="true" usebox="none">
3658 \begin_layout Standard
3664 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3667 \begin_layout Standard
3675 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3678 \begin_layout Standard
3686 <cell alignment="center" valignment="top" topline="true" usebox="none">
3689 \begin_layout Standard
3695 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3698 \begin_layout Standard
3706 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3709 \begin_layout Standard
3717 <cell alignment="center" valignment="top" topline="true" usebox="none">
3720 \begin_layout Standard
3726 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3729 \begin_layout Standard
3737 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3740 \begin_layout Standard
3748 <cell alignment="center" valignment="top" topline="true" usebox="none">
3751 \begin_layout Standard
3757 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3760 \begin_layout Standard
3768 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3771 \begin_layout Standard
3779 <cell alignment="center" valignment="top" topline="true" usebox="none">
3782 \begin_layout Standard
3788 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3791 \begin_layout Standard
3799 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3802 \begin_layout Standard
3810 <cell alignment="center" valignment="top" topline="true" usebox="none">
3813 \begin_layout Standard
3819 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3822 \begin_layout Standard
3830 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3833 \begin_layout Standard
3841 <cell alignment="center" valignment="top" topline="true" usebox="none">
3844 \begin_layout Standard
3850 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3853 \begin_layout Standard
3861 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3864 \begin_layout Standard
3872 <cell alignment="center" valignment="top" topline="true" usebox="none">
3875 \begin_layout Standard
3881 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3884 \begin_layout Standard
3892 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3895 \begin_layout Standard
3903 <cell alignment="center" valignment="top" topline="true" usebox="none">
3906 \begin_layout Standard
3912 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3915 \begin_layout Standard
3923 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3926 \begin_layout Standard
3934 <cell alignment="center" valignment="top" topline="true" usebox="none">
3937 \begin_layout Standard
3943 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3946 \begin_layout Standard
3954 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3957 \begin_layout Standard
3965 <cell alignment="center" valignment="top" topline="true" usebox="none">
3968 \begin_layout Standard
3974 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3977 \begin_layout Standard
3985 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3988 \begin_layout Standard
3996 <cell alignment="center" valignment="top" topline="true" usebox="none">
3999 \begin_layout Standard
4005 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4008 \begin_layout Standard
4016 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4019 \begin_layout Standard
4027 <cell alignment="center" valignment="top" topline="true" usebox="none">
4030 \begin_layout Standard
4036 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4039 \begin_layout Standard
4047 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4050 \begin_layout Standard
4058 <cell alignment="center" valignment="top" topline="true" usebox="none">
4061 \begin_layout Standard
4067 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4070 \begin_layout Standard
4078 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4081 \begin_layout Standard
4089 <cell alignment="center" valignment="top" topline="true" usebox="none">
4092 \begin_layout Standard
4098 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4101 \begin_layout Standard
4109 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4112 \begin_layout Standard
4120 <cell alignment="center" valignment="top" topline="true" usebox="none">
4123 \begin_layout Standard
4129 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4132 \begin_layout Standard
4140 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4143 \begin_layout Standard
4151 <cell alignment="center" valignment="top" topline="true" usebox="none">
4154 \begin_layout Standard
4160 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4163 \begin_layout Standard
4171 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4174 \begin_layout Standard
4182 <cell alignment="center" valignment="top" topline="true" usebox="none">
4185 \begin_layout Standard
4191 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4194 \begin_layout Standard
4202 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4205 \begin_layout Standard
4213 <cell alignment="center" valignment="top" topline="true" usebox="none">
4216 \begin_layout Standard
4222 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4225 \begin_layout Standard
4233 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4236 \begin_layout Standard
4244 <cell alignment="center" valignment="top" topline="true" usebox="none">
4247 \begin_layout Standard
4253 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4256 \begin_layout Standard
4264 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4267 \begin_layout Standard
4275 <cell alignment="center" valignment="top" topline="true" usebox="none">
4278 \begin_layout Standard
4284 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4287 \begin_layout Standard
4295 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4298 \begin_layout Standard
4306 <cell alignment="center" valignment="top" topline="true" usebox="none">
4309 \begin_layout Standard
4315 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4318 \begin_layout Standard
4326 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4329 \begin_layout Standard
4337 <cell alignment="center" valignment="top" topline="true" usebox="none">
4340 \begin_layout Standard
4346 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4349 \begin_layout Standard
4357 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4360 \begin_layout Standard
4368 <cell alignment="center" valignment="top" topline="true" usebox="none">
4371 \begin_layout Standard
4377 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4380 \begin_layout Standard
4388 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4391 \begin_layout Standard
4399 <cell alignment="center" valignment="top" topline="true" usebox="none">
4402 \begin_layout Standard
4408 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4411 \begin_layout Standard
4419 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4422 \begin_layout Standard
4430 <cell alignment="center" valignment="top" topline="true" usebox="none">
4433 \begin_layout Standard
4439 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4442 \begin_layout Standard
4450 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4453 \begin_layout Standard
4461 <cell alignment="center" valignment="top" topline="true" usebox="none">
4464 \begin_layout Standard
4470 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4473 \begin_layout Standard
4481 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4484 \begin_layout Standard
4492 <cell alignment="center" valignment="top" topline="true" usebox="none">
4495 \begin_layout Standard
4501 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4504 \begin_layout Standard
4511 <row bottomline="true">
4512 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4515 \begin_layout Standard
4523 <cell alignment="center" valignment="top" topline="true" usebox="none">
4526 \begin_layout Standard
4532 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4535 \begin_layout Standard
4542 <row bottomline="true" endlastfoot="true">
4543 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
4546 \begin_layout Standard
4552 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4555 \begin_layout Standard
4561 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4564 \begin_layout Standard
4579 \begin_layout Standard
4583 addtocounter{table}{-1}
4589 \begin_inset Note Note
4592 \begin_layout Standard
4593 See greyed-out note in section 2.6.2 for an explanation of this command.
4601 \begin_layout Subsection
4602 Footnotes in Longtables
4603 \begin_inset LatexCommand label
4604 name "sub:Footnotes-in-Longtables"
4609 \begin_inset LatexCommand index
4610 name "Longtables ! Footnotes"
4617 \begin_layout Standard
4618 Footnotes can be inserted to every longtable cell.
4619 They appear at the bottom of the page where the table cell with the footnote
4623 \begin_inset LatexCommand ref
4624 reference "tab:DiffCaptions"
4628 has for example a footnote.
4631 \begin_layout Subsection
4633 \begin_inset LatexCommand index
4634 name "Longtables ! Captions"
4641 \begin_layout Standard
4642 A longtable cannot be put into a table float because floats can only be
4643 on one page but the caption environment of floats can also be used for
4647 \begin_layout Standard
4648 As LyX does not yet fully support captions in longtables, a hack is needed
4652 \begin_layout Enumerate
4658 \begin_layout Enumerate
4659 Mark the first row an disable its upper line.
4662 \begin_layout Enumerate
4663 Insert a caption via the menu
4665 Insert\SpecialChar \menuseparator
4668 into the first table cell.
4670 You can also add a short title for the caption.
4673 \begin_layout Enumerate
4675 \begin_inset Quotes eld
4687 \begin_inset Quotes erd
4690 as ERT behind the caption.
4693 \begin_layout Standard
4694 A short title that will appear in the LOT instead of the full title.
4703 behind the caption omits the vertical lines between the following cells
4705 The first table row is now only a dummy row for the caption, the actual
4706 table starts with the second row.
4709 \begin_layout Standard
4710 Here is a short longtable to see how it works:
4713 \begin_layout Standard
4714 \begin_inset Tabular
4715 <lyxtabular version="3" rows="6" columns="5">
4716 <features islongtable="true">
4717 <column alignment="center" valignment="top" leftline="true" width="0">
4718 <column alignment="center" valignment="top" leftline="true" width="0">
4719 <column alignment="center" valignment="top" leftline="true" width="0">
4720 <column alignment="center" valignment="top" leftline="true" width="0">
4721 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
4723 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4726 \begin_layout Standard
4727 \begin_inset Caption
4729 \begin_layout Standard
4730 Longtable with caption
4734 \begin_layout Standard
4749 \begin_layout Standard
4765 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4768 \begin_layout Standard
4774 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4777 \begin_layout Standard
4783 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4786 \begin_layout Standard
4792 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4795 \begin_layout Standard
4802 <row topline="true">
4803 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4806 \begin_layout Standard
4812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4815 \begin_layout Standard
4821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4824 \begin_layout Standard
4830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4833 \begin_layout Standard
4839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4842 \begin_layout Standard
4849 <row topline="true">
4850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4853 \begin_layout Standard
4859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4862 \begin_layout Standard
4868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4871 \begin_layout Standard
4877 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4880 \begin_layout Standard
4886 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4889 \begin_layout Standard
4896 <row topline="true">
4897 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4900 \begin_layout Standard
4906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4909 \begin_layout Standard
4915 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4918 \begin_layout Standard
4924 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4927 \begin_layout Standard
4933 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4936 \begin_layout Standard
4943 <row topline="true">
4944 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4947 \begin_layout Standard
4953 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4956 \begin_layout Standard
4962 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4965 \begin_layout Standard
4971 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4974 \begin_layout Standard
4980 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4983 \begin_layout Standard
4990 <row topline="true" bottomline="true">
4991 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4994 \begin_layout Standard
5000 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5003 \begin_layout Standard
5009 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5012 \begin_layout Standard
5018 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5021 \begin_layout Standard
5027 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5030 \begin_layout Standard
5044 \begin_layout Standard
5045 \begin_inset VSpace medskip
5049 \begin_inset Note Greyedout
5052 \begin_layout Standard
5057 The table number is increased for every longtable, also if you didn't set
5059 For this reason you could have the case that e.g.
5061 2.4 follows on Table\InsetSpace ~
5062 2.1 in the list of tables if there are two longtables
5064 To avoid this you can add the following command in ERT behind every longtable
5068 \begin_layout Standard
5073 addtocounter{table}{-1}
5081 \begin_layout Standard
5082 \begin_inset Note Greyedout
5085 \begin_layout Standard
5090 If you are using the LaTeX-package
5095 \begin_inset LatexCommand index
5096 name "LaTeX-packages ! hyperref"
5100 to link cross-references, the link to a longtable caption will always point
5101 to the beginning of the document.
5109 \begin_layout Subsubsection
5110 References to Longtables
5111 \begin_inset LatexCommand index
5112 name "Longtables ! References"
5119 \begin_layout Standard
5120 \begin_inset Tabular
5121 <lyxtabular version="3" rows="6" columns="5">
5122 <features islongtable="true">
5123 <column alignment="center" valignment="top" leftline="true" width="0">
5124 <column alignment="center" valignment="top" leftline="true" width="0">
5125 <column alignment="center" valignment="top" leftline="true" width="0">
5126 <column alignment="center" valignment="top" leftline="true" width="0">
5127 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5132 \begin_layout Standard
5133 \begin_inset Caption
5135 \begin_layout Standard
5136 Referenced longtable
5137 \begin_inset LatexCommand label
5138 name "tab:RefExample"
5151 \begin_layout Standard
5167 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5170 \begin_layout Standard
5176 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5179 \begin_layout Standard
5185 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5188 \begin_layout Standard
5194 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5197 \begin_layout Standard
5204 <row topline="true">
5205 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5208 \begin_layout Standard
5214 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5217 \begin_layout Standard
5223 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5226 \begin_layout Standard
5232 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5235 \begin_layout Standard
5241 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5244 \begin_layout Standard
5251 <row topline="true">
5252 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5255 \begin_layout Standard
5261 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5264 \begin_layout Standard
5270 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5273 \begin_layout Standard
5279 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5282 \begin_layout Standard
5288 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5291 \begin_layout Standard
5298 <row topline="true">
5299 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5302 \begin_layout Standard
5308 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5311 \begin_layout Standard
5317 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5320 \begin_layout Standard
5326 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5329 \begin_layout Standard
5335 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5338 \begin_layout Standard
5345 <row topline="true">
5346 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5349 \begin_layout Standard
5355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5358 \begin_layout Standard
5364 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5367 \begin_layout Standard
5373 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5376 \begin_layout Standard
5382 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5385 \begin_layout Standard
5392 <row topline="true" bottomline="true">
5393 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5396 \begin_layout Standard
5402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5405 \begin_layout Standard
5411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5414 \begin_layout Standard
5420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5423 \begin_layout Standard
5429 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5432 \begin_layout Standard
5446 \begin_layout Standard
5447 To reference a longtable, insert a label into the caption.
5448 Note that you have to add the label prefix
5449 \begin_inset Quotes eld
5457 \begin_inset Quotes eld
5460 manually in the label field.
5463 \begin_layout Standard
5464 This is a reference to Table\InsetSpace ~
5466 \begin_inset LatexCommand ref
5467 reference "tab:RefExample"
5474 \begin_layout Standard
5475 The caption layout can be set together with all other caption of your document
5476 using the LaTeX-package
5481 \begin_inset LatexCommand index
5482 name "LaTeX-packages ! caption"
5486 , see section\InsetSpace ~
5488 \begin_inset LatexCommand ref
5489 reference "sec:Caption-Formatting"
5496 \begin_layout Subsubsection
5498 \begin_inset LatexCommand index
5499 name "Longtables ! Caption Width"
5506 \begin_layout Standard
5507 The maximal width of of caption lines is defined by the length
5514 Its default value is 4\InsetSpace \thinspace{}
5516 To change it add the following command to your document preamble or as
5517 ERT into your document before the longtable that should be affected
5520 \begin_layout Standard
5530 \begin_layout Standard
5531 where the width could have one of the units listed in appendix\InsetSpace ~
5533 \begin_inset LatexCommand ref
5534 reference "cha:Units-available-in"
5541 \begin_layout Standard
5542 The following tables show the difference:
5545 \begin_layout Standard
5546 \begin_inset Tabular
5547 <lyxtabular version="3" rows="6" columns="5">
5548 <features islongtable="true">
5549 <column alignment="center" valignment="top" leftline="true" width="0">
5550 <column alignment="center" valignment="top" leftline="true" width="0">
5551 <column alignment="center" valignment="top" leftline="true" width="0">
5552 <column alignment="center" valignment="top" leftline="true" width="0">
5553 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5555 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5558 \begin_layout Standard
5559 \begin_inset Caption
5561 \begin_layout Standard
5562 long full title with default width long full title with default width long
5563 full title with default width
5567 \begin_layout Standard
5568 caption with default width
5582 \begin_layout Standard
5598 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5601 \begin_layout Standard
5607 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5610 \begin_layout Standard
5616 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5619 \begin_layout Standard
5625 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5628 \begin_layout Standard
5635 <row topline="true">
5636 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5639 \begin_layout Standard
5645 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5648 \begin_layout Standard
5654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5657 \begin_layout Standard
5663 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5666 \begin_layout Standard
5672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5675 \begin_layout Standard
5682 <row topline="true">
5683 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5686 \begin_layout Standard
5692 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5695 \begin_layout Standard
5701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5704 \begin_layout Standard
5710 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5713 \begin_layout Standard
5719 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5722 \begin_layout Standard
5729 <row topline="true">
5730 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5733 \begin_layout Standard
5739 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5742 \begin_layout Standard
5748 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5751 \begin_layout Standard
5757 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5760 \begin_layout Standard
5766 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5769 \begin_layout Standard
5776 <row topline="true">
5777 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5780 \begin_layout Standard
5786 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5789 \begin_layout Standard
5795 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5798 \begin_layout Standard
5804 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5807 \begin_layout Standard
5813 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5816 \begin_layout Standard
5823 <row topline="true" bottomline="true">
5824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5827 \begin_layout Standard
5833 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5836 \begin_layout Standard
5842 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5845 \begin_layout Standard
5851 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5854 \begin_layout Standard
5860 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5863 \begin_layout Standard
5877 \begin_layout Standard
5881 \begin_layout Standard
5893 \begin_inset Tabular
5894 <lyxtabular version="3" rows="6" columns="5">
5895 <features islongtable="true">
5896 <column alignment="center" valignment="top" leftline="true" width="0">
5897 <column alignment="center" valignment="top" leftline="true" width="0">
5898 <column alignment="center" valignment="top" leftline="true" width="0">
5899 <column alignment="center" valignment="top" leftline="true" width="0">
5900 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5905 \begin_layout Standard
5906 \begin_inset Caption
5908 \begin_layout Standard
5909 long full title with width set to 5\InsetSpace \thinspace{}
5910 cm long full title with width set to
5911 5\InsetSpace \thinspace{}
5912 cm long full title with width set to 5\InsetSpace \thinspace{}
5917 \begin_layout Standard
5918 caption with width\InsetSpace \thinspace{}
5919 =\InsetSpace \thinspace{}
5920 5\InsetSpace \thinspace{}
5935 \begin_layout Standard
5951 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5954 \begin_layout Standard
5960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5963 \begin_layout Standard
5969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5972 \begin_layout Standard
5978 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5981 \begin_layout Standard
5988 <row topline="true">
5989 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5992 \begin_layout Standard
5998 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6001 \begin_layout Standard
6007 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6010 \begin_layout Standard
6016 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6019 \begin_layout Standard
6025 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6028 \begin_layout Standard
6035 <row topline="true">
6036 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6039 \begin_layout Standard
6045 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6048 \begin_layout Standard
6054 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6057 \begin_layout Standard
6063 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6066 \begin_layout Standard
6072 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6075 \begin_layout Standard
6082 <row topline="true">
6083 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6086 \begin_layout Standard
6092 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6095 \begin_layout Standard
6101 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6104 \begin_layout Standard
6110 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6113 \begin_layout Standard
6119 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6122 \begin_layout Standard
6129 <row topline="true">
6130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6133 \begin_layout Standard
6139 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6142 \begin_layout Standard
6148 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6151 \begin_layout Standard
6157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6160 \begin_layout Standard
6166 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6169 \begin_layout Standard
6176 <row topline="true" bottomline="true">
6177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6180 \begin_layout Standard
6186 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6189 \begin_layout Standard
6195 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6198 \begin_layout Standard
6204 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6207 \begin_layout Standard
6213 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6216 \begin_layout Standard
6231 \begin_layout Standard
6245 \begin_layout Standard
6249 \begin_layout Subsubsection
6250 Different Captions for Table Pages
6251 \begin_inset LatexCommand index
6252 name "Longtables ! Different Captions for Pages"
6259 \begin_layout Standard
6260 When the other captions should differ from the one of the first table page,
6261 insert a caption with a non-empty short title in a dummy caption row marked
6263 The caption used for the other table pages is inserted as caption without
6264 a short title in a dummy caption row that is marked as main header.
6265 When this caption shouldn't include the table number, use the command
6268 \begin_layout Standard
6273 caption*{caption text}
6276 \begin_layout Standard
6277 instead of LyX's caption box.
6278 The label to reference the table is inserted into the caption of the first
6282 \begin_inset LatexCommand ref
6283 reference "tab:DiffCaptions"
6287 is an example for a longtable with different heading where the second caption
6288 doesn't include the table number.
6291 \begin_layout Standard
6293 \begin_inset Tabular
6294 <lyxtabular version="3" rows="60" columns="3">
6295 <features islongtable="true">
6296 <column alignment="left" valignment="top" leftline="true" width="0cm">
6297 <column alignment="left" valignment="top" rightline="true" width="0pt">
6298 <column alignment="right" valignment="top" rightline="true" width="0pt">
6299 <row endfirsthead="true">
6300 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6303 \begin_layout Standard
6304 \begin_inset Caption
6306 \begin_layout Standard
6308 \begin_inset LatexCommand label
6309 name "tab:DiffCaptions"
6317 \begin_layout Standard
6332 \begin_layout Standard
6348 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6351 \begin_layout Standard
6357 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6360 \begin_layout Standard
6367 <row topline="true" bottomline="true" endfirsthead="true">
6368 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6371 \begin_layout Standard
6374 Example Phone List (ignore the names)
6379 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6382 \begin_layout Standard
6388 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6391 \begin_layout Standard
6398 <row topline="true" bottomline="true" endfirsthead="true">
6399 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6402 \begin_layout Standard
6410 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6413 \begin_layout Standard
6419 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6422 \begin_layout Standard
6431 <row bottomline="true" endhead="true">
6432 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6435 \begin_layout Standard
6439 \begin_layout Standard
6443 caption*{Continued Example Phone List}
6457 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6460 \begin_layout Standard
6466 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6469 \begin_layout Standard
6476 <row topline="true" bottomline="true" endhead="true">
6477 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6480 \begin_layout Standard
6488 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6491 \begin_layout Standard
6497 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6500 \begin_layout Standard
6507 <row topline="true" bottomline="true" endhead="true">
6508 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6511 \begin_layout Standard
6519 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6522 \begin_layout Standard
6528 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6531 \begin_layout Standard
6540 <row topline="true" bottomline="true" endfoot="true">
6541 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
6544 \begin_layout Standard
6545 continued on next page
6550 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6553 \begin_layout Standard
6559 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6562 \begin_layout Standard
6570 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6573 \begin_layout Standard
6581 <cell alignment="center" valignment="top" topline="true" usebox="none">
6584 \begin_layout Standard
6590 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6593 \begin_layout Standard
6601 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6604 \begin_layout Standard
6612 <cell alignment="center" valignment="top" topline="true" usebox="none">
6615 \begin_layout Standard
6621 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6624 \begin_layout Standard
6632 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6635 \begin_layout Standard
6643 <cell alignment="center" valignment="top" topline="true" usebox="none">
6646 \begin_layout Standard
6652 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6655 \begin_layout Standard
6663 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6666 \begin_layout Standard
6674 <cell alignment="center" valignment="top" topline="true" usebox="none">
6677 \begin_layout Standard
6683 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6686 \begin_layout Standard
6694 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6697 \begin_layout Standard
6705 <cell alignment="center" valignment="top" topline="true" usebox="none">
6708 \begin_layout Standard
6714 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6717 \begin_layout Standard
6725 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6728 \begin_layout Standard
6736 <cell alignment="center" valignment="top" topline="true" usebox="none">
6739 \begin_layout Standard
6745 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6748 \begin_layout Standard
6756 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6759 \begin_layout Standard
6767 <cell alignment="center" valignment="top" topline="true" usebox="none">
6770 \begin_layout Standard
6776 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6779 \begin_layout Standard
6787 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6790 \begin_layout Standard
6798 <cell alignment="center" valignment="top" topline="true" usebox="none">
6801 \begin_layout Standard
6807 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6810 \begin_layout Standard
6818 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6821 \begin_layout Standard
6829 <cell alignment="center" valignment="top" topline="true" usebox="none">
6832 \begin_layout Standard
6838 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6841 \begin_layout Standard
6849 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6852 \begin_layout Standard
6860 <cell alignment="center" valignment="top" topline="true" usebox="none">
6863 \begin_layout Standard
6869 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6872 \begin_layout Standard
6880 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6883 \begin_layout Standard
6891 <cell alignment="center" valignment="top" topline="true" usebox="none">
6894 \begin_layout Standard
6900 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6903 \begin_layout Standard
6911 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6914 \begin_layout Standard
6922 <cell alignment="center" valignment="top" topline="true" usebox="none">
6925 \begin_layout Standard
6931 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6934 \begin_layout Standard
6942 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6945 \begin_layout Standard
6953 <cell alignment="center" valignment="top" topline="true" usebox="none">
6956 \begin_layout Standard
6962 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6965 \begin_layout Standard
6973 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6976 \begin_layout Standard
6984 <cell alignment="center" valignment="top" topline="true" usebox="none">
6987 \begin_layout Standard
6993 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6996 \begin_layout Standard
7004 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7007 \begin_layout Standard
7016 \begin_layout Standard
7027 <cell alignment="center" valignment="top" topline="true" usebox="none">
7030 \begin_layout Standard
7036 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7039 \begin_layout Standard
7047 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7050 \begin_layout Standard
7058 <cell alignment="center" valignment="top" topline="true" usebox="none">
7061 \begin_layout Standard
7067 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7070 \begin_layout Standard
7078 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7081 \begin_layout Standard
7089 <cell alignment="center" valignment="top" topline="true" usebox="none">
7092 \begin_layout Standard
7098 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7101 \begin_layout Standard
7109 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7112 \begin_layout Standard
7120 <cell alignment="center" valignment="top" topline="true" usebox="none">
7123 \begin_layout Standard
7129 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7132 \begin_layout Standard
7140 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7143 \begin_layout Standard
7151 <cell alignment="center" valignment="top" topline="true" usebox="none">
7154 \begin_layout Standard
7160 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7163 \begin_layout Standard
7171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7174 \begin_layout Standard
7182 <cell alignment="center" valignment="top" topline="true" usebox="none">
7185 \begin_layout Standard
7191 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7194 \begin_layout Standard
7202 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7205 \begin_layout Standard
7213 <cell alignment="center" valignment="top" topline="true" usebox="none">
7216 \begin_layout Standard
7222 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7225 \begin_layout Standard
7233 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7236 \begin_layout Standard
7244 <cell alignment="center" valignment="top" topline="true" usebox="none">
7247 \begin_layout Standard
7253 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7256 \begin_layout Standard
7264 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7267 \begin_layout Standard
7275 <cell alignment="center" valignment="top" topline="true" usebox="none">
7278 \begin_layout Standard
7284 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7287 \begin_layout Standard
7295 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7298 \begin_layout Standard
7306 <cell alignment="center" valignment="top" topline="true" usebox="none">
7309 \begin_layout Standard
7315 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7318 \begin_layout Standard
7326 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7329 \begin_layout Standard
7337 <cell alignment="center" valignment="top" topline="true" usebox="none">
7340 \begin_layout Standard
7346 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7349 \begin_layout Standard
7357 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7360 \begin_layout Standard
7368 <cell alignment="center" valignment="top" topline="true" usebox="none">
7371 \begin_layout Standard
7377 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7380 \begin_layout Standard
7388 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7391 \begin_layout Standard
7399 <cell alignment="center" valignment="top" topline="true" usebox="none">
7402 \begin_layout Standard
7408 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7411 \begin_layout Standard
7419 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7422 \begin_layout Standard
7430 <cell alignment="center" valignment="top" topline="true" usebox="none">
7433 \begin_layout Standard
7439 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7442 \begin_layout Standard
7450 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7453 \begin_layout Standard
7461 <cell alignment="center" valignment="top" topline="true" usebox="none">
7464 \begin_layout Standard
7470 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7473 \begin_layout Standard
7481 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7484 \begin_layout Standard
7492 <cell alignment="center" valignment="top" topline="true" usebox="none">
7495 \begin_layout Standard
7501 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7504 \begin_layout Standard
7511 <row bottomline="true">
7512 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7515 \begin_layout Standard
7523 <cell alignment="center" valignment="top" topline="true" usebox="none">
7526 \begin_layout Standard
7532 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7535 \begin_layout Standard
7542 <row bottomline="true">
7543 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7546 \begin_layout Standard
7552 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
7555 \begin_layout Standard
7561 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7564 \begin_layout Standard
7572 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7575 \begin_layout Standard
7583 <cell alignment="center" valignment="top" topline="true" usebox="none">
7586 \begin_layout Standard
7592 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7595 \begin_layout Standard
7603 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7606 \begin_layout Standard
7614 <cell alignment="center" valignment="top" topline="true" usebox="none">
7617 \begin_layout Standard
7623 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7626 \begin_layout Standard
7634 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7637 \begin_layout Standard
7645 <cell alignment="center" valignment="top" topline="true" usebox="none">
7648 \begin_layout Standard
7654 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7657 \begin_layout Standard
7665 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7668 \begin_layout Standard
7676 <cell alignment="center" valignment="top" topline="true" usebox="none">
7679 \begin_layout Standard
7685 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7688 \begin_layout Standard
7696 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7699 \begin_layout Standard
7707 <cell alignment="center" valignment="top" topline="true" usebox="none">
7710 \begin_layout Standard
7716 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7719 \begin_layout Standard
7727 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7730 \begin_layout Standard
7738 <cell alignment="center" valignment="top" topline="true" usebox="none">
7741 \begin_layout Standard
7747 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7750 \begin_layout Standard
7758 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7761 \begin_layout Standard
7769 <cell alignment="center" valignment="top" topline="true" usebox="none">
7772 \begin_layout Standard
7778 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7781 \begin_layout Standard
7789 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7792 \begin_layout Standard
7800 <cell alignment="center" valignment="top" topline="true" usebox="none">
7803 \begin_layout Standard
7809 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7812 \begin_layout Standard
7820 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7823 \begin_layout Standard
7831 <cell alignment="center" valignment="top" topline="true" usebox="none">
7834 \begin_layout Standard
7840 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7843 \begin_layout Standard
7851 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7854 \begin_layout Standard
7862 <cell alignment="center" valignment="top" topline="true" usebox="none">
7865 \begin_layout Standard
7871 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7874 \begin_layout Standard
7882 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7885 \begin_layout Standard
7893 <cell alignment="center" valignment="top" topline="true" usebox="none">
7896 \begin_layout Standard
7902 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7905 \begin_layout Standard
7913 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7916 \begin_layout Standard
7924 <cell alignment="center" valignment="top" topline="true" usebox="none">
7927 \begin_layout Standard
7933 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7936 \begin_layout Standard
7944 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7947 \begin_layout Standard
7955 <cell alignment="center" valignment="top" topline="true" usebox="none">
7958 \begin_layout Standard
7964 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7967 \begin_layout Standard
7975 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7978 \begin_layout Standard
7986 <cell alignment="center" valignment="top" topline="true" usebox="none">
7989 \begin_layout Standard
7995 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7998 \begin_layout Standard
8006 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8009 \begin_layout Standard
8017 <cell alignment="center" valignment="top" topline="true" usebox="none">
8020 \begin_layout Standard
8026 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8029 \begin_layout Standard
8037 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8040 \begin_layout Standard
8048 <cell alignment="center" valignment="top" topline="true" usebox="none">
8051 \begin_layout Standard
8057 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8060 \begin_layout Standard
8068 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8071 \begin_layout Standard
8079 <cell alignment="center" valignment="top" topline="true" usebox="none">
8082 \begin_layout Standard
8088 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8091 \begin_layout Standard
8099 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8102 \begin_layout Standard
8110 <cell alignment="center" valignment="top" topline="true" usebox="none">
8113 \begin_layout Standard
8119 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8122 \begin_layout Standard
8130 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8133 \begin_layout Standard
8141 <cell alignment="center" valignment="top" topline="true" usebox="none">
8144 \begin_layout Standard
8150 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8153 \begin_layout Standard
8160 <row bottomline="true">
8161 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8164 \begin_layout Standard
8172 <cell alignment="center" valignment="top" topline="true" usebox="none">
8175 \begin_layout Standard
8181 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8184 \begin_layout Standard
8191 <row bottomline="true" endlastfoot="true">
8192 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
8195 \begin_layout Standard
8201 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8204 \begin_layout Standard
8210 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8213 \begin_layout Standard
8227 \begin_layout Section
8228 Special Longtable Issues
8229 \begin_inset LatexCommand label
8230 name "sec:Special-Longtable-Issues"
8237 \begin_layout Subsection
8238 Longtable Calculation
8239 \begin_inset LatexCommand index
8240 name "Longtables ! Calculation"
8247 \begin_layout Standard
8248 LaTeX calculates the height of table pages and their page breaks using so
8250 Chunks are pieces of the tables that are at once in LaTeX's memory.
8251 The default value is historically set to only 20 table rows.
8252 If you are using longtables with many pages this may slow down the creation
8254 You can safely increase the chunk size to values of 100-1000 by adding
8255 this command line to your document preamble:
8258 \begin_layout Standard
8263 setcounter{LTchunksize}{100}
8266 \begin_layout Subsection
8267 Floats and Longtables
8268 \begin_inset LatexCommand index
8269 name "Longtables ! Floats"
8276 \begin_layout Standard
8277 There might be problems when a float appears on the same page where a longtable
8279 To avoid such situation, add the command
8285 as ERT before your longtable.
8288 \begin_layout Subsection
8290 \begin_inset LatexCommand index
8291 name "Longtables ! Forced Page Breaks"
8298 \begin_layout Standard
8299 By default tables are only broken between rows.
8300 If you have a cell with multiples lines and want to have a page break within
8301 the cell, insert the new line command
8302 \begin_inset Quotes eld
8314 \begin_inset Quotes erd
8317 as ERT at this point of the cell where it should be broken.
8326 command you have to insert in ERT so many
8327 \begin_inset Quotes eld
8335 \begin_inset Quotes erd
8338 characters like the number of the following table columns.
8343 is the character to separate table cells.
8344 Write in ERT after each
8348 the content of the corresponding following cell and delete the content
8359 command, insert so many
8363 characters like the number of table columns before the current column.
8364 In Table\InsetSpace ~
8366 \begin_inset LatexCommand ref
8367 reference "tab:ForcedPagebreak"
8371 the cell that should be broken is in the second column followed by another
8373 Therefore the following command was inserted in the cell as ERT behind
8375 \begin_inset Quotes eld
8383 \begin_inset Quotes erd
8389 \begin_layout Standard
8401 \begin_layout Standard
8403 \begin_inset Quotes eld
8407 \begin_inset Quotes erd
8410 in the third columns of the row was deleted.
8411 If your footer row of the longtable has for a certain reason no upper line
8412 but you would have a horizontal line where the cell is broken, use this
8416 \begin_layout Standard
8430 \begin_layout Standard
8431 When the cell to be broken is in the last column, the command
8434 \begin_layout Standard
8441 parf\SpecialChar \textcompwordmark{}
8445 \begin_layout Standard
8446 must be inserted as ERT at the beginning of the cell.
8447 This assures that the part of the cell that will be displayed on the new
8448 page appears with the full width.
8452 \begin_layout Standard
8454 \begin_inset Tabular
8455 <lyxtabular version="3" rows="39" columns="3">
8456 <features islongtable="true">
8457 <column alignment="left" valignment="top" leftline="true" width="0cm">
8458 <column alignment="left" valignment="top" rightline="true" width="3cm">
8459 <column alignment="right" valignment="top" rightline="true" width="0pt">
8460 <row endfirsthead="true">
8461 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8464 \begin_layout Standard
8465 \begin_inset Caption
8467 \begin_layout Standard
8468 Table with forced page break in table cell
8469 \begin_inset LatexCommand label
8470 name "tab:ForcedPagebreak"
8478 \begin_layout Standard
8479 Table with forced page break in table cell
8493 \begin_layout Standard
8509 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8512 \begin_layout Standard
8518 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8521 \begin_layout Standard
8528 <row topline="true" bottomline="true" endfirsthead="true">
8529 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8532 \begin_layout Standard
8535 Example Phone List (ignore the names)
8540 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8543 \begin_layout Standard
8549 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8552 \begin_layout Standard
8559 <row topline="true" bottomline="true" endfirsthead="true">
8560 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8563 \begin_layout Standard
8571 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8574 \begin_layout Standard
8580 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8583 \begin_layout Standard
8592 <row bottomline="true" endhead="true">
8593 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8596 \begin_layout Standard
8600 \begin_layout Standard
8604 caption*{Continued table with forced page break in table cell}
8618 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8621 \begin_layout Standard
8627 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8630 \begin_layout Standard
8637 <row topline="true" bottomline="true" endhead="true">
8638 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8641 \begin_layout Standard
8649 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8652 \begin_layout Standard
8658 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8661 \begin_layout Standard
8668 <row topline="true" bottomline="true" endhead="true">
8669 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8672 \begin_layout Standard
8680 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8683 \begin_layout Standard
8689 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8692 \begin_layout Standard
8701 <row topline="true" bottomline="true" endfoot="true">
8702 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
8705 \begin_layout Standard
8706 continued on next page
8711 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8714 \begin_layout Standard
8720 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8723 \begin_layout Standard
8731 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8734 \begin_layout Standard
8742 <cell alignment="center" valignment="top" topline="true" usebox="none">
8745 \begin_layout Standard
8751 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8754 \begin_layout Standard
8762 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8765 \begin_layout Standard
8773 <cell alignment="center" valignment="top" topline="true" usebox="none">
8776 \begin_layout Standard
8782 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8785 \begin_layout Standard
8793 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8796 \begin_layout Standard
8804 <cell alignment="center" valignment="top" topline="true" usebox="none">
8807 \begin_layout Standard
8813 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8816 \begin_layout Standard
8824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8827 \begin_layout Standard
8835 <cell alignment="center" valignment="top" topline="true" usebox="none">
8838 \begin_layout Standard
8844 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8847 \begin_layout Standard
8855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8858 \begin_layout Standard
8866 <cell alignment="center" valignment="top" topline="true" usebox="none">
8869 \begin_layout Standard
8875 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8878 \begin_layout Standard
8886 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8889 \begin_layout Standard
8897 <cell alignment="center" valignment="top" topline="true" usebox="none">
8900 \begin_layout Standard
8906 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8909 \begin_layout Standard
8917 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8920 \begin_layout Standard
8928 <cell alignment="center" valignment="top" topline="true" usebox="none">
8931 \begin_layout Standard
8937 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8940 \begin_layout Standard
8948 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8951 \begin_layout Standard
8959 <cell alignment="center" valignment="top" topline="true" usebox="none">
8962 \begin_layout Standard
8968 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8971 \begin_layout Standard
8979 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8982 \begin_layout Standard
8990 <cell alignment="center" valignment="top" topline="true" usebox="none">
8993 \begin_layout Standard
8999 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9002 \begin_layout Standard
9010 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9013 \begin_layout Standard
9021 <cell alignment="center" valignment="top" topline="true" usebox="none">
9024 \begin_layout Standard
9030 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9033 \begin_layout Standard
9041 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9044 \begin_layout Standard
9052 <cell alignment="center" valignment="top" topline="true" usebox="none">
9055 \begin_layout Standard
9061 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9064 \begin_layout Standard
9072 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9075 \begin_layout Standard
9083 <cell alignment="center" valignment="top" topline="true" usebox="none">
9086 \begin_layout Standard
9092 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9095 \begin_layout Standard
9103 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9106 \begin_layout Standard
9114 <cell alignment="center" valignment="top" topline="true" usebox="none">
9117 \begin_layout Standard
9123 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9126 \begin_layout Standard
9134 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9137 \begin_layout Standard
9145 <cell alignment="center" valignment="top" topline="true" usebox="none">
9148 \begin_layout Standard
9154 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9157 \begin_layout Standard
9165 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9168 \begin_layout Standard
9176 <cell alignment="center" valignment="top" topline="true" usebox="none">
9179 \begin_layout Standard
9185 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9188 \begin_layout Standard
9196 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9199 \begin_layout Standard
9207 <cell alignment="center" valignment="top" topline="true" usebox="none">
9210 \begin_layout Standard
9216 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9219 \begin_layout Standard
9227 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9230 \begin_layout Standard
9238 <cell alignment="center" valignment="top" topline="true" usebox="none">
9241 \begin_layout Standard
9247 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9250 \begin_layout Standard
9258 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9261 \begin_layout Standard
9269 <cell alignment="center" valignment="top" topline="true" usebox="none">
9272 \begin_layout Standard
9278 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9281 \begin_layout Standard
9289 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9292 \begin_layout Standard
9300 <cell alignment="center" valignment="top" topline="true" usebox="none">
9303 \begin_layout Standard
9309 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9312 \begin_layout Standard
9320 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9323 \begin_layout Standard
9331 <cell alignment="center" valignment="top" topline="true" usebox="none">
9334 \begin_layout Standard
9340 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9343 \begin_layout Standard
9351 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9354 \begin_layout Standard
9362 <cell alignment="center" valignment="top" topline="true" usebox="none">
9365 \begin_layout Standard
9371 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9374 \begin_layout Standard
9382 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9385 \begin_layout Standard
9393 <cell alignment="center" valignment="top" topline="true" usebox="none">
9396 \begin_layout Standard
9402 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9405 \begin_layout Standard
9413 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9416 \begin_layout Standard
9424 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9427 \begin_layout Standard
9429 Fürst von Montecompatri, 11.
9430 Fürst von Sulmona und Vivaro, 10.
9431 Fürst von Rossano, 5.
9432 Herzog von Canemorte, 11.
9433 Herzog von Palombara, 5.
9434 Herzog von Castelchiodato,
9438 \begin_layout Standard
9447 \begin_layout Standard
9455 Herzog von Poggionativo, 11.
9456 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
9457 Graf von Valinfreda, 11.
9458 Baron von Cropalati, 11.
9459 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
9464 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9467 \begin_layout Standard
9475 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9478 \begin_layout Standard
9486 <cell alignment="center" valignment="top" topline="true" usebox="none">
9489 \begin_layout Standard
9495 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9498 \begin_layout Standard
9506 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9509 \begin_layout Standard
9517 <cell alignment="center" valignment="top" topline="true" usebox="none">
9520 \begin_layout Standard
9526 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9529 \begin_layout Standard
9537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9540 \begin_layout Standard
9548 <cell alignment="center" valignment="top" topline="true" usebox="none">
9551 \begin_layout Standard
9557 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9560 \begin_layout Standard
9568 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9571 \begin_layout Standard
9579 <cell alignment="center" valignment="top" topline="true" usebox="none">
9582 \begin_layout Standard
9588 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9591 \begin_layout Standard
9599 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9602 \begin_layout Standard
9610 <cell alignment="center" valignment="top" topline="true" usebox="none">
9613 \begin_layout Standard
9619 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9622 \begin_layout Standard
9630 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9633 \begin_layout Standard
9641 <cell alignment="center" valignment="top" topline="true" usebox="none">
9644 \begin_layout Standard
9650 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9653 \begin_layout Standard
9661 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9664 \begin_layout Standard
9672 <cell alignment="center" valignment="top" topline="true" usebox="none">
9675 \begin_layout Standard
9681 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9684 \begin_layout Standard
9691 <row bottomline="true">
9692 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9695 \begin_layout Standard
9703 <cell alignment="center" valignment="top" topline="true" usebox="none">
9706 \begin_layout Standard
9712 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9715 \begin_layout Standard
9722 <row endlastfoot="true">
9723 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9726 \begin_layout Standard
9732 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9735 \begin_layout Standard
9741 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9744 \begin_layout Standard
9758 \begin_layout Section
9759 Multiple Lines Columns and Rows
9762 \begin_layout Subsection
9763 Multiple Lines in Table Cells
9764 \begin_inset LatexCommand label
9765 name "sub:Multiple-Lines-in"
9770 \begin_inset LatexCommand index
9771 name "Multiple Lines in Table Cells"
9776 \begin_inset LatexCommand index
9777 name "Table ! Linebreaks"
9784 \begin_layout Standard
9786 \begin_inset Float table
9792 \begin_layout Standard
9793 \begin_inset Caption
9795 \begin_layout Standard
9796 \begin_inset LatexCommand label
9797 name "tab:Table-with-multiple"
9801 Table with multiple lines in cells
9809 \begin_layout Standard
9811 \begin_inset Tabular
9812 <lyxtabular version="3" rows="3" columns="3">
9814 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
9815 <column alignment="center" valignment="middle" leftline="true" width="0.5cm">
9816 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0.5cm">
9817 <row topline="true">
9818 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9821 \begin_layout Standard
9826 \begin_layout Standard
9840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9843 \begin_layout Standard
9849 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9852 \begin_layout Standard
9859 <row topline="true">
9860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9863 \begin_layout Standard
9869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9872 \begin_layout Standard
9878 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9881 \begin_layout Standard
9888 <row topline="true" bottomline="true">
9889 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9892 \begin_layout Standard
9898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9901 \begin_layout Standard
9907 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9910 \begin_layout Standard
9929 \begin_layout Standard
9930 Adjusting a fixed width for a column, enables to enter text as a paragraph
9931 with multiple lines and hyphenations.
9934 \begin_layout Standard
9935 To produce Table\InsetSpace ~
9937 \begin_inset LatexCommand ref
9938 reference "tab:Table-with-multiple"
9942 , create a 3×3 table, mark the first cell and right-click on it.
9943 In the appearing table dialog we set a cell width of 2.5\InsetSpace \thinspace{}
9944 cm and choose centered
9945 for the vertical and horizontal alignment.
9946 As our text is smaller than than 2.5\InsetSpace \thinspace{}
9947 cm, only one line will appear.
9948 To get two lines, we add a line break with the command
9951 \begin_layout Standard
9959 \begin_layout Standard
9961 If the text is wider than the set cell width it will automatically be broken
9965 \begin_layout Standard
9966 To center the text inside the two other cells of the first row vertically,
9967 right-click in the second cell, adjust a fixed width of 0.5\InsetSpace \thinspace{}
9969 centered alignments.
9970 Then do the same for the third cell of the row.
9973 \begin_layout Standard
9974 If you have a long word in a cell with a fixed width, it cannot be hyphenated
9975 by LaTeX if it is the first entry.
9976 Therefore you need to insert something, to make the word not being the
9977 first entry: Add the command
9980 \begin_layout Standard
9988 \begin_layout Standard
9989 in ERT before the word.
9990 As the space is zero, it doesn't change the output.
9993 \begin_inset LatexCommand ref
9994 reference "tab:Table-with-and"
10001 \begin_layout Standard
10002 \begin_inset Float table
10007 \begin_layout Standard
10008 \begin_inset Caption
10010 \begin_layout Standard
10011 \begin_inset LatexCommand label
10012 name "tab:Table-with-and"
10016 Table with and without hyphenation
10024 \begin_layout Standard
10028 \begin_inset Tabular
10029 <lyxtabular version="3" rows="3" columns="3">
10031 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10032 <column alignment="center" valignment="middle" leftline="true" width="0.5cm">
10033 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0.5cm">
10034 <row topline="true">
10035 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10038 \begin_layout Standard
10039 verylongtablecellword
10044 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10047 \begin_layout Standard
10053 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10056 \begin_layout Standard
10063 <row topline="true">
10064 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10067 \begin_layout Standard
10073 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10076 \begin_layout Standard
10082 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10085 \begin_layout Standard
10092 <row topline="true" bottomline="true">
10093 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10096 \begin_layout Standard
10102 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10105 \begin_layout Standard
10111 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10114 \begin_layout Standard
10128 \begin_inset Tabular
10129 <lyxtabular version="3" rows="3" columns="3">
10131 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10132 <column alignment="center" valignment="middle" leftline="true" width="0.5cm">
10133 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0.5cm">
10134 <row topline="true">
10135 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10138 \begin_layout Standard
10142 \begin_layout Standard
10151 verylongtablecellword
10156 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10159 \begin_layout Standard
10165 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10168 \begin_layout Standard
10175 <row topline="true">
10176 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10179 \begin_layout Standard
10185 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10188 \begin_layout Standard
10194 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10197 \begin_layout Standard
10204 <row topline="true" bottomline="true">
10205 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10208 \begin_layout Standard
10214 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10217 \begin_layout Standard
10223 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10226 \begin_layout Standard
10247 \begin_layout Standard
10253 \begin_layout Subsection
10255 \begin_inset LatexCommand label
10256 name "sub:Multicolumns"
10261 \begin_inset LatexCommand index
10262 name "Multicolumns"
10267 \begin_inset LatexCommand index
10268 name "Table ! Multicolumns"
10275 \begin_layout Subsubsection
10279 \begin_layout Standard
10280 To span a cell over multiple columns, mark as much cells within a line that
10281 should be one spanned cell and use either the table-toolbar button
10282 \begin_inset Graphics
10283 filename ../images/tabular-feature_multicolumn.xpm
10290 Edit\SpecialChar \menuseparator
10291 Table\SpecialChar \menuseparator
10294 , or right click on the marked cells and choose multicolumn in the appearing
10295 table dialog under the tab
10302 \begin_layout Standard
10303 Multicolumns have there own cell settings.
10304 That means changing cell borders, cell alignment, and the width only affects
10306 Here is an example table with a multicolumn cell in the first row and one
10307 in the last row without the upper border:
10310 \begin_layout Standard
10312 \begin_inset Tabular
10313 <lyxtabular version="3" rows="3" columns="4">
10314 <features firstHeadTopDL="true" firstHeadBottomDL="true">
10315 <column alignment="center" valignment="top" leftline="true" width="0pt">
10316 <column alignment="center" valignment="middle" leftline="true" width="0">
10317 <column alignment="center" valignment="top" leftline="true" width="0in">
10318 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
10319 <row topline="true" bottomline="true">
10320 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10323 \begin_layout Standard
10329 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
10332 \begin_layout Standard
10342 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10345 \begin_layout Standard
10351 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10354 \begin_layout Standard
10361 <row topline="true">
10362 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10365 \begin_layout Standard
10380 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10383 \begin_layout Standard
10389 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10392 \begin_layout Standard
10398 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10401 \begin_layout Standard
10408 <row topline="true" bottomline="true">
10409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10412 \begin_layout Standard
10418 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10421 \begin_layout Standard
10427 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10430 \begin_layout Standard
10436 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10439 \begin_layout Standard
10453 \begin_layout Subsubsection
10454 Multicolumn Calculations
10455 \begin_inset LatexCommand label
10456 name "sub:Multicolumn-Calculations"
10461 \begin_inset LatexCommand index
10462 name "Multicolumns ! Calculations"
10469 \begin_layout Standard
10470 LyX supports multicolumns directly, but we have to take notice of the cell
10471 width of the columns spanned by the multicolumn cell.
10474 \begin_layout Standard
10475 \begin_inset Float table
10480 \begin_layout Standard
10481 \begin_inset Caption
10483 \begin_layout Standard
10484 \begin_inset LatexCommand label
10485 name "tab:Table-with-centered"
10489 Table with centered multicolumn text above two columns that have exactly
10490 half the width of the multicolumn cell
10491 \begin_inset OptArg
10494 \begin_layout Standard
10495 Perfect multicolumn table
10508 \begin_layout Standard
10510 \begin_inset Tabular
10511 <lyxtabular version="3" rows="3" columns="3">
10513 <column alignment="center" valignment="middle" leftline="true" width="0" special="|>{\centering}m{1.25cm-6.2pt}">
10514 <column alignment="center" valignment="middle" leftline="true" width="0">
10515 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10516 <row topline="true">
10517 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special="|>{\centering}m{2.5cm}|">
10520 \begin_layout Standard
10521 multiple lines multicolumn
10526 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10529 \begin_layout Standard
10535 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10538 \begin_layout Standard
10545 <row topline="true">
10546 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10549 \begin_layout Standard
10555 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10558 \begin_layout Standard
10564 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10567 \begin_layout Standard
10574 <row topline="true" bottomline="true">
10575 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10578 \begin_layout Standard
10584 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10587 \begin_layout Standard
10593 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10596 \begin_layout Standard
10615 \begin_layout Standard
10616 To create for example Table\InsetSpace ~
10618 \begin_inset LatexCommand ref
10619 reference "tab:Table-with-centered"
10623 , mark the first two cells in the first row a 3×3 table and right-click
10625 Now choose for this cell
10633 and a width of 2.5\InsetSpace \thinspace{}
10634 cm in the table dialog.
10635 The spanned columns should have exactly half the width of the multicolumn
10636 cell, so that you would adjust a width of 1.25\InsetSpace \thinspace{}
10637 cm for the first column.
10638 The second column has then automatically a width of 1.25\InsetSpace \thinspace{}
10640 width - width of first column).
10641 This was done for Table\InsetSpace ~
10643 \begin_inset LatexCommand ref
10644 reference "tab:Table-without-half"
10651 \begin_layout Standard
10652 \begin_inset Float table
10657 \begin_layout Standard
10658 \begin_inset Caption
10660 \begin_layout Standard
10661 \begin_inset LatexCommand label
10662 name "tab:Table-without-half"
10666 Table where the spanned table columns have not exactly half the width of
10667 the multicolumn cell
10668 \begin_inset OptArg
10671 \begin_layout Standard
10672 Imperfect multicolumn table
10685 \begin_layout Standard
10687 \begin_inset Tabular
10688 <lyxtabular version="3" rows="3" columns="3">
10690 <column alignment="center" valignment="top" leftline="true" width="1.25cm">
10691 <column alignment="center" valignment="top" leftline="true" width="0">
10692 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10693 <row topline="true" bottomline="true">
10694 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
10697 \begin_layout Standard
10698 multiple lines multicolumn
10703 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10706 \begin_layout Standard
10712 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10715 \begin_layout Standard
10722 <row topline="true">
10723 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10726 \begin_layout Standard
10732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10735 \begin_layout Standard
10741 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10744 \begin_layout Standard
10751 <row topline="true" bottomline="true">
10752 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10755 \begin_layout Standard
10761 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10764 \begin_layout Standard
10770 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10773 \begin_layout Standard
10792 \begin_layout Standard
10793 You can see that the first column has not the half width of the multicolumn
10794 cell, it is a bit bigger.
10795 The reason is that the given width of a cell
10796 \begin_inset Formula $W_{g}$
10799 is not its total width
10800 \begin_inset Formula $W_{\mathrm{tot}}$
10803 because a cell is always a bit larger than its given width.
10804 Appendix\InsetSpace ~
10806 \begin_inset LatexCommand eqref
10807 reference "cha:Explanation-of-Equation"
10811 explains it in detail.
10814 \begin_layout Standard
10815 The needed given width
10816 \begin_inset Formula $W_{g\, n}$
10823 columns are spanned columns can be calculated, so that each column has
10825 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
10829 \begin_inset Formula \begin{equation}
10830 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)·(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
10837 \begin_layout Standard
10838 In our case we have
10839 \begin_inset Formula $n=2$
10843 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
10846 cm and the default values for the lengths, so that equation
10847 \begin_inset LatexCommand ref
10853 \begin_inset Formula \begin{equation}
10854 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
10861 \begin_layout Standard
10862 To enable calculations in LaTeX, the LaTeX-package
10866 must be loaded with the document preamble line
10867 \begin_inset LatexCommand index
10868 name "LaTeX-packages ! calc"
10875 \begin_layout Standard
10883 \begin_layout Standard
10884 LyX does not allow to calculate lengths in the width-field of the table
10886 Therefore you have to format the column by inserting a LaTeX-argument in
10888 Here is an overview about the arguments:
10891 \begin_layout Itemize
10896 creates cell with a fixed width, its text is vertically top-aligned
10899 \begin_layout Itemize
10904 creates cell with a fixed width, its text is vertically centered
10907 \begin_layout Itemize
10912 creates cell with a fixed width, its text is vertically bottom-aligned
10915 \begin_layout Standard
10916 By entering a LaTeX-argument, all cell properties set in the table dialog
10919 \begin_inset Note Greyedout
10922 \begin_layout Standard
10927 Due to a bug, LyX shows the overwritten properties anyway.
10932 As the text should be horizontally centered, the command
10939 You can now enter the following LaTeX-argument for the first spanned column:
10942 \begin_layout Standard
10947 centering}m{1.25cm-6.2pt}
10950 \begin_layout Standard
10952 \begin_inset Quotes eld
10960 \begin_inset Quotes erd
10963 at the beginning draws the border line and the command
10967 means, that the commands inside the braces are applied before the cell
10971 \begin_layout Standard
10972 Although we have chosen centered alignment for the text of the multicolumn
10973 cell, it is still left aligned.
10974 This is because LyX only applies the alignment to single columns.
10975 So we have to use for the multicolumn the LaTeX-argument
10978 \begin_layout Standard
10983 centering}m{2.5cm}|
10986 \begin_layout Subsection
10988 \begin_inset LatexCommand index
10994 \begin_inset LatexCommand index
10995 name "Table ! Multirows"
11000 \begin_inset LatexCommand index
11001 name "LaTeX-packages ! multirow"
11008 \begin_layout Standard
11009 In contrary to multicolumns multirows are not yet supported by LyX so a
11010 bit of ERT needs to be used.
11011 To use multirows load the LaTeX-package
11015 in your document preamble with the command
11018 \begin_layout Standard
11023 usepackage{multirow}
11026 \begin_layout Standard
11027 Multirows are created with the command
11030 \begin_layout Standard
11035 multirow{number of rows}{cell width}{cell entry}
11038 \begin_layout Standard
11039 To create the following table:
11042 \begin_layout Standard
11047 \begin_layout Standard
11061 \begin_inset Tabular
11062 <lyxtabular version="3" rows="3" columns="3">
11064 <column alignment="center" valignment="top" leftline="true" width="0">
11065 <column alignment="center" valignment="top" leftline="true" width="0">
11066 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
11067 <row topline="true">
11068 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11071 \begin_layout Standard
11077 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11080 \begin_layout Standard
11086 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11089 \begin_layout Standard
11096 <row topline="true">
11097 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11100 \begin_layout Standard
11104 \begin_layout Standard
11108 multirow{2}{2.5cm}{
11117 \begin_layout Standard
11129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11132 \begin_layout Standard
11138 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11141 \begin_layout Standard
11148 <row topline="true" bottomline="true">
11149 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11152 \begin_layout Standard
11158 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11161 \begin_layout Standard
11167 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11170 \begin_layout Standard
11185 \begin_layout Standard
11201 \begin_layout Standard
11202 create a 3×3 table.
11203 To get rid of the line above the last cell in the first column, the cell
11204 is marked as multicolumn and the upper border is unset.
11205 The multirow is now created in the second row of the first column by inserting
11209 \begin_layout Standard
11214 multirow{2}{2.5cm}{
11217 \begin_layout Standard
11219 According to the command parameters the multirow spans now two rows and
11220 has a width of 2.5\InsetSpace \thinspace{}
11222 The content of the multirow cell follows outside the ERT box and the command
11223 is finished with a right brace
11227 in another ERT-box behind the text.
11230 \begin_layout Standard
11237 left-aligns its content by default.
11238 To override the default, renew the command
11247 \begin_layout Standard
11259 \begin_layout Standard
11260 in ERT in the document preamble.
11261 Then all entries of multirow cells in the document are centered.
11262 If centering is only needed for several tables, you can renew the command
11263 in an ERT box just before the table instead of the preamble.
11264 If the text should be right-aligned, replace
11277 To return to left-alignment
11286 \begin_layout Section
11288 \begin_inset LatexCommand label
11289 name "sec:Formal-Tables"
11294 \begin_inset LatexCommand index
11295 name "Table ! Formal"
11302 \begin_layout Standard
11303 Tables are often typeset in books similar to Table\InsetSpace ~
11305 \begin_inset LatexCommand ref
11306 reference "tab:Example-booktabs-table"
11311 This kind of tables is called
11312 \begin_inset Quotes eld
11320 \begin_inset Quotes erd
11324 To make a table a formal table use the option
11332 tab of the table dialog.
11335 \begin_layout Standard
11336 \begin_inset Float table
11342 \begin_layout Standard
11343 \begin_inset Caption
11345 \begin_layout Standard
11346 \begin_inset LatexCommand label
11347 name "tab:Example-booktabs-table"
11351 Example booktabs-table
11359 \begin_layout Standard
11361 \begin_inset Tabular
11362 <lyxtabular version="3" rows="8" columns="4">
11363 <features booktabs="true">
11364 <column alignment="center" valignment="top" rightline="true" width="0">
11365 <column alignment="center" valignment="top" width="0">
11366 <column alignment="center" valignment="top" width="0">
11367 <column alignment="center" valignment="top" width="0">
11368 <row topline="true">
11369 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11372 \begin_layout Standard
11378 <cell alignment="center" valignment="top" topline="true" usebox="none">
11381 \begin_layout Standard
11383 \begin_inset Formula $\,$
11391 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
11394 \begin_layout Standard
11396 \begin_inset Formula $\,$
11404 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11407 \begin_layout Standard
11415 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11418 \begin_layout Standard
11422 \begin_layout Standard
11435 \begin_layout Standard
11444 Detector thickness [µm]
11449 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11452 \begin_layout Standard
11458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11461 \begin_layout Standard
11467 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11470 \begin_layout Standard
11477 <row topline="true">
11478 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11481 \begin_layout Standard
11487 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11490 \begin_layout Standard
11496 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11499 \begin_layout Standard
11505 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11508 \begin_layout Standard
11515 <row topspace="default">
11516 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11519 \begin_layout Standard
11520 Spatial resolution [µm]
11525 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11528 \begin_layout Standard
11534 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11537 \begin_layout Standard
11543 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11546 \begin_layout Standard
11553 <row topspace="default">
11554 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11557 \begin_layout Standard
11559 \begin_inset Formula $f_{\mathrm{max}}$
11567 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11570 \begin_layout Standard
11576 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11579 \begin_layout Standard
11585 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11588 \begin_layout Standard
11595 <row topspace="default">
11596 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11599 \begin_layout Standard
11603 \begin_layout Standard
11607 cmidrule(l{10pt}){1-1}
11612 LSF-spatial resolution
11617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11620 \begin_layout Standard
11626 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11629 \begin_layout Standard
11635 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11638 \begin_layout Standard
11646 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11649 \begin_layout Standard
11655 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11658 \begin_layout Standard
11664 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11667 \begin_layout Standard
11673 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11676 \begin_layout Standard
11683 <row bottomline="true">
11684 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11687 \begin_layout Standard
11693 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11696 \begin_layout Standard
11702 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11705 \begin_layout Standard
11711 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11714 \begin_layout Standard
11733 \begin_layout Standard
11734 Spaces to table rows can be added using the
11738 tab of the table dialog as described in section\InsetSpace ~
11740 \begin_inset LatexCommand ref
11741 reference "sub:Row-Spacing"
11748 \begin_layout Standard
11749 In contrary to normal tables, formal tables have no vertical table lines.
11750 The horizontal table lines can be set like for normal tables but they appear
11751 with different width in the output:
11753 The first and the last table line have
11754 a default width of 0.08\InsetSpace \thinspace{}
11755 em while the other lines have a default width of
11756 0.05\InsetSpace \thinspace{}
11760 \begin_layout Standard
11761 The default widths can be changed with the following preamble lines
11764 \begin_layout Standard
11784 \begin_layout Standard
11785 This example is for the first line, the so called toprule.
11786 If you want to change the width for the last line, replace
11795 To change the width for the other lines replace
11804 You can use all units listed in appendix\InsetSpace ~
11806 \begin_inset LatexCommand ref
11807 reference "cha:Units-available-in"
11814 \begin_layout Standard
11815 Lines that don't span over all table columns can be created by setting a
11816 table line for multicolumn cells.
11817 LyX will then internally use the command
11823 to create this line.
11827 \begin_layout Standard
11832 cmidrule[width](trim){startcol-endcol}
11835 \begin_layout Standard
11842 are are currently not supported by LyX so you have to use ERT to be able
11850 s can manually be created by inserting the command as ERT as first cell
11851 entry of the first cell of a row.
11852 The line is then drawn in the output above the current row.
11855 \begin_layout Standard
11856 The default for the width is 0.03\InsetSpace \thinspace{}
11858 Startcol is the number of the column where the line starts and endcol the
11859 column number where the line ends.
11860 The endcol always needs to be specified, also when the line should span
11862 The optional parameter trim could be either
11870 where the trimwidth is also optional.
11871 Using for example the parameter
11875 means that the line is trimmed from its left end by 2\InsetSpace \thinspace{}
11877 If you don't specify the trimwidth the lines are trimmed by the default
11878 of 0.5\InsetSpace \thinspace{}
11882 \begin_layout Standard
11883 \begin_inset VSpace bigskip
11888 \begin_inset LatexCommand ref
11889 reference "tab:Example-booktabs-table"
11893 was created using the commands
11896 \begin_layout Standard
11906 \begin_layout Standard
11907 at the beginning of the in the second row and
11910 \begin_layout Standard
11915 cmidrule(l{10pt}){1-1}
11918 \begin_layout Standard
11922 \begin_layout Standard
11926 \begin_layout Standard
11927 \begin_inset VSpace bigskip
11933 \begin_layout Standard
11934 You might want to have overlapping
11940 s like in Table\InsetSpace ~
11942 \begin_inset LatexCommand ref
11943 reference "tab:Special-booktabs-table"
11948 This can be achieved with the ERT command
11951 \begin_layout Standard
11959 \begin_layout Standard
11960 The command that was used for the second row of Table\InsetSpace ~
11962 \begin_inset LatexCommand ref
11963 reference "tab:Special-booktabs-table"
11970 \begin_layout Standard
11984 \begin_layout Standard
11985 The command for the sixth row is
11988 \begin_layout Standard
12000 \begin_layout Standard
12001 \begin_inset VSpace bigskip
12007 \begin_layout Standard
12008 If you are anyway not satisfied with the border line spacing, you can use
12009 the following command to produce lines that span over all table columns
12014 \begin_layout Standard
12019 specialrule{width}{space above}{space below}
12022 \begin_layout Standard
12023 For more informations about these specialties, we refer to the manual of
12029 \begin_inset LatexCommand cite
12035 \begin_inset LatexCommand index
12036 name "LaTeX-packages ! booktabs"
12043 \begin_layout Standard
12044 \begin_inset Float table
12050 \begin_layout Standard
12051 \begin_inset Caption
12053 \begin_layout Standard
12054 \begin_inset LatexCommand label
12055 name "tab:Special-booktabs-table"
12059 Special booktabs-table
12067 \begin_layout Standard
12069 \begin_inset Tabular
12070 <lyxtabular version="3" rows="8" columns="4">
12071 <features booktabs="true">
12072 <column alignment="center" valignment="top" width="0">
12073 <column alignment="center" valignment="top" width="0">
12074 <column alignment="center" valignment="top" width="0">
12075 <column alignment="center" valignment="top" width="0">
12076 <row topline="true">
12077 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12080 \begin_layout Standard
12086 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12089 \begin_layout Standard
12090 Medipix\InsetSpace \thinspace{}
12096 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
12099 \begin_layout Standard
12100 Medipix\InsetSpace \thinspace{}
12106 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12109 \begin_layout Standard
12117 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12120 \begin_layout Standard
12124 \begin_layout Standard
12137 \begin_layout Standard
12150 \begin_layout Standard
12163 \begin_layout Standard
12172 Detector thickness [µm]
12177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12180 \begin_layout Standard
12186 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12189 \begin_layout Standard
12195 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12198 \begin_layout Standard
12205 <row topline="true">
12206 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12209 \begin_layout Standard
12215 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12218 \begin_layout Standard
12224 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12227 \begin_layout Standard
12233 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12236 \begin_layout Standard
12243 <row topspace="default">
12244 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12247 \begin_layout Standard
12248 Spatial resolution [µm]
12253 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12256 \begin_layout Standard
12262 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12265 \begin_layout Standard
12271 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12274 \begin_layout Standard
12281 <row topspace="default">
12282 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12285 \begin_layout Standard
12287 \begin_inset Formula $f_{\mathrm{max}}$
12295 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12298 \begin_layout Standard
12304 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12307 \begin_layout Standard
12313 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12316 \begin_layout Standard
12323 <row topline="true">
12324 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12327 \begin_layout Standard
12331 \begin_layout Standard
12344 \begin_layout Standard
12353 LSF-spatial resolution
12358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12361 \begin_layout Standard
12367 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12370 \begin_layout Standard
12376 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12379 \begin_layout Standard
12387 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12390 \begin_layout Standard
12396 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12399 \begin_layout Standard
12405 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12408 \begin_layout Standard
12414 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12417 \begin_layout Standard
12424 <row bottomline="true">
12425 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12428 \begin_layout Standard
12434 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12437 \begin_layout Standard
12443 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12446 \begin_layout Standard
12452 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12455 \begin_layout Standard
12474 \begin_layout Section
12475 Vertical Table Alignment
12476 \begin_inset LatexCommand index
12477 name "Table ! Alignment"
12484 \begin_layout Standard
12485 To align tables vertically in a text line the table must be inside a box.
12486 The box can then be vertically aligned as described in section\InsetSpace ~
12488 \begin_inset LatexCommand ref
12489 reference "sec:Box-Dialog"
12496 \begin_layout Standard
12497 In the following example the tables are inside a minipage
12501 \begin_layout Standard
12502 Minipages are described in section\InsetSpace ~
12504 \begin_inset LatexCommand ref
12505 reference "sec:Minipages"
12514 box that has a width of 15\InsetSpace \thinspace{}
12518 \begin_layout Itemize
12520 \begin_inset Box Frameless
12529 height_special "totalheight"
12532 \begin_layout Standard
12533 \begin_inset Tabular
12534 <lyxtabular version="3" rows="3" columns="3">
12536 <column alignment="center" valignment="top" leftline="true" width="0">
12537 <column alignment="center" valignment="top" leftline="true" width="0">
12538 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12539 <row topline="true">
12540 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12543 \begin_layout Standard
12549 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12552 \begin_layout Standard
12558 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12561 \begin_layout Standard
12568 <row topline="true">
12569 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12572 \begin_layout Standard
12578 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12581 \begin_layout Standard
12587 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12590 \begin_layout Standard
12597 <row topline="true" bottomline="true">
12598 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12601 \begin_layout Standard
12607 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12610 \begin_layout Standard
12616 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12619 \begin_layout Standard
12639 \begin_layout Standard
12651 \begin_inset Box Frameless
12660 height_special "totalheight"
12663 \begin_layout Standard
12664 \begin_inset Tabular
12665 <lyxtabular version="3" rows="3" columns="3">
12667 <column alignment="center" valignment="top" leftline="true" width="0">
12668 <column alignment="center" valignment="top" leftline="true" width="0">
12669 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12670 <row topline="true">
12671 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12674 \begin_layout Standard
12680 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12683 \begin_layout Standard
12689 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12692 \begin_layout Standard
12699 <row topline="true">
12700 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12703 \begin_layout Standard
12709 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12712 \begin_layout Standard
12718 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12721 \begin_layout Standard
12728 <row topline="true" bottomline="true">
12729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12732 \begin_layout Standard
12738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12741 \begin_layout Standard
12747 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12750 \begin_layout Standard
12770 \begin_layout Standard
12780 \begin_layout Itemize
12782 \begin_inset Box Frameless
12791 height_special "totalheight"
12794 \begin_layout Standard
12795 \begin_inset Tabular
12796 <lyxtabular version="3" rows="3" columns="3">
12798 <column alignment="center" valignment="top" leftline="true" width="0">
12799 <column alignment="center" valignment="top" leftline="true" width="0">
12800 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12801 <row topline="true">
12802 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12805 \begin_layout Standard
12811 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12814 \begin_layout Standard
12820 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12823 \begin_layout Standard
12830 <row topline="true">
12831 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12834 \begin_layout Standard
12840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12843 \begin_layout Standard
12849 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12852 \begin_layout Standard
12859 <row topline="true" bottomline="true">
12860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12863 \begin_layout Standard
12869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12872 \begin_layout Standard
12878 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12881 \begin_layout Standard
12900 \begin_layout Itemize
12902 \begin_inset Box Frameless
12911 height_special "totalheight"
12914 \begin_layout Standard
12915 \begin_inset Tabular
12916 <lyxtabular version="3" rows="3" columns="3">
12918 <column alignment="center" valignment="top" leftline="true" width="0">
12919 <column alignment="center" valignment="top" leftline="true" width="0">
12920 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12921 <row topline="true">
12922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12925 \begin_layout Standard
12931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12934 \begin_layout Standard
12940 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12943 \begin_layout Standard
12950 <row topline="true">
12951 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12954 \begin_layout Standard
12960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12963 \begin_layout Standard
12969 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12972 \begin_layout Standard
12979 <row topline="true" bottomline="true">
12980 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12983 \begin_layout Standard
12989 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12992 \begin_layout Standard
12998 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13001 \begin_layout Standard
13021 \begin_layout Standard
13033 \begin_inset Box Frameless
13042 height_special "totalheight"
13045 \begin_layout Standard
13046 \begin_inset Tabular
13047 <lyxtabular version="3" rows="3" columns="3">
13049 <column alignment="center" valignment="top" leftline="true" width="0">
13050 <column alignment="center" valignment="top" leftline="true" width="0">
13051 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13052 <row topline="true">
13053 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13056 \begin_layout Standard
13062 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13065 \begin_layout Standard
13071 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13074 \begin_layout Standard
13081 <row topline="true">
13082 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13085 \begin_layout Standard
13091 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13094 \begin_layout Standard
13100 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13103 \begin_layout Standard
13110 <row topline="true" bottomline="true">
13111 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13114 \begin_layout Standard
13120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13123 \begin_layout Standard
13129 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13132 \begin_layout Standard
13152 \begin_layout Standard
13162 \begin_layout Standard
13163 As you can see, the content of the first and last table row is not correctly
13164 aligned with the text line where the table is in.
13165 To get this alignment, the minipage box must be set into a raisebox
13169 \begin_layout Standard
13170 Raiseboxes are described in section\InsetSpace ~
13172 \begin_inset LatexCommand ref
13173 reference "sub:Vertical-Alignment"
13183 In the example above the second table in the first item is aligned using
13187 \begin_layout Standard
13197 \begin_layout Standard
13199 Behind the box the closing brace
13203 is inserted as ERT.
13204 For the second table in the last item the command
13207 \begin_layout Standard
13217 \begin_layout Standard
13221 \begin_layout Standard
13222 \begin_inset Note Greyedout
13225 \begin_layout Standard
13230 The alignment of the table row content to the surrounding text line is
13232 The needed factor of the
13238 command for this alignment depends on the document font, the font size,
13239 and the table line thickness.
13247 \begin_layout Section
13249 \begin_inset LatexCommand label
13250 name "sec:Colored-Tables"
13255 \begin_inset LatexCommand index
13256 name "Table ! Color"
13263 \begin_layout Subsection
13265 \begin_inset LatexCommand index
13266 name "Table Color ! for Cells"
13271 \begin_inset LatexCommand index
13272 name "Color ! for Table Cells"
13279 \begin_layout Standard
13280 \begin_inset Float table
13286 \begin_layout Standard
13287 \begin_inset Caption
13289 \begin_layout Standard
13290 \begin_inset LatexCommand label
13291 name "tab:Table-colored-without"
13295 Table colored without using the package
13300 \begin_inset OptArg
13303 \begin_layout Standard
13304 Table without colortbl
13317 \begin_layout Standard
13319 \begin_inset Tabular
13320 <lyxtabular version="3" rows="3" columns="3">
13322 <column alignment="center" valignment="top" leftline="true" width="0">
13323 <column alignment="center" valignment="top" leftline="true" width="0">
13324 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13325 <row topline="true">
13326 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13329 \begin_layout Standard
13337 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13340 \begin_layout Standard
13348 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13351 \begin_layout Standard
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" bottomline="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
13442 \begin_layout Standard
13443 If you only need colored text, mark the cells and choose a color in the
13446 Edit\SpecialChar \menuseparator
13451 This was used to create Table\InsetSpace ~
13453 \begin_inset LatexCommand ref
13454 reference "tab:Table-colored-without"
13459 In any other case you have to use the LaTeX-package
13464 \begin_inset LatexCommand index
13465 name "LaTeX-packages ! colortbl"
13472 \begin_layout Standard
13473 To create colored tables,
13477 must be loaded in the preamble with the line
13480 \begin_layout Standard
13485 usepackage{colortbl}
13488 \begin_layout Standard
13489 The color of a column is adjusted with the command
13492 \begin_layout Standard
13497 columncolor{name of color}
13500 \begin_layout Standard
13506 More about the command
13510 is described in section\InsetSpace ~
13512 \begin_inset LatexCommand ref
13513 reference "sub:Multicolumn-Calculations"
13520 \begin_layout Standard
13521 The following color names are predefined:
13524 \begin_layout Standard
13558 \begin_layout Standard
13559 \begin_inset VSpace medskip
13565 \begin_layout Standard
13566 You can also define your own color with the command
13569 \begin_layout Standard
13574 def\SpecialChar \textcompwordmark{}
13575 inecolor{color name}{color model}{color values}
13578 \begin_layout Standard
13579 The color model can be
13582 \begin_layout Labeling
13583 \labelwidthstring 00.00.0000
13584 cmyk: cyan, magenta, yellow, black
13587 \begin_layout Labeling
13588 \labelwidthstring 00.00.0000
13589 rgb: red, green blue
13592 \begin_layout Labeling
13593 \labelwidthstring 00.00.0000
13597 \begin_layout Standard
13598 and the color values are comma separated numbers between 0 and 1 describing
13599 the factor for the corresponding color of the color model.
13602 \begin_layout Standard
13603 You can e.\InsetSpace \thinspace{}
13609 " in the preamble with
13612 \begin_layout Standard
13617 def\SpecialChar \textcompwordmark{}
13618 inecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
13621 \begin_layout Standard
13629 \begin_layout Standard
13634 def\SpecialChar \textcompwordmark{}
13635 inecolor{lightgray}{gray}{0.8}
13638 \begin_layout Standard
13639 \begin_inset VSpace medskip
13645 \begin_layout Standard
13646 Lines are colored with the command
13649 \begin_layout Standard
13654 rowcolor{name of color}
13657 \begin_layout Standard
13658 and cells are colored with the command
13661 \begin_layout Standard
13666 cellcolor{name of color}
13669 \begin_layout Standard
13670 Both commands are inserted at the beginning of a cell as ERT.
13673 \begin_layout Standard
13674 To color characters in the table, mark the cells and use the LyX menu
13676 Edit\SpecialChar \menuseparator
13681 If a cell contains ERT mark only the characters, otherwise the colored
13682 ERT will cause LaTeX-errors.
13685 \begin_layout Standard
13686 \begin_inset VSpace bigskip
13692 \begin_layout Standard
13693 To create Table\InsetSpace ~
13695 \begin_inset LatexCommand ref
13696 reference "tab:Table-colored-using"
13700 do the following: The color of the first column should be
13708 \begin_layout Standard
13713 columncolor{darkgreen}
13718 \begin_layout Standard
13719 as LaTeX-argument for this column.
13720 The first row should be blue, therefore the ERT command
13723 \begin_layout Standard
13731 \begin_layout Standard
13732 is inserted to the first cell of this row.
13733 Note that this overwrites the column color for the first cell.
13734 The last cell of the last row is colored magenta by inserting the ERT command
13737 \begin_layout Standard
13745 \begin_layout Standard
13746 The characters could now be colored using the menu
13748 Edit\SpecialChar \menuseparator
13755 \begin_layout Standard
13756 \begin_inset Float table
13762 \begin_layout Standard
13763 \begin_inset Caption
13765 \begin_layout Standard
13766 \begin_inset LatexCommand label
13767 name "tab:Table-colored-using"
13771 Table colored using the package
13776 \begin_inset OptArg
13779 \begin_layout Standard
13780 Table with colortbl
13793 \begin_layout Standard
13795 \begin_inset Tabular
13796 <lyxtabular version="3" rows="3" columns="3">
13798 <column alignment="center" valignment="top" leftline="true" width="0" special=">{\columncolor{darkgreen}\centering}c">
13799 <column alignment="center" valignment="top" width="0">
13800 <column alignment="center" valignment="top" width="0">
13802 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13805 \begin_layout Standard
13809 \begin_layout Standard
13825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13828 \begin_layout Standard
13836 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13839 \begin_layout Standard
13849 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13852 \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
13913 \begin_layout Standard
13942 \begin_layout Subsection
13944 \begin_inset LatexCommand index
13945 name "Table Color ! for Lines"
13950 \begin_inset LatexCommand index
13951 name "Color ! for Table Lines"
13958 \begin_layout Standard
13959 As described in section\InsetSpace ~
13961 \begin_inset LatexCommand ref
13962 reference "sub:Line-Thickness"
13966 , the line thickness for all lines in a table can be adjusted with the length
13974 It is set to 1.5\InsetSpace \thinspace{}
13975 pt for all tables of this section.
13979 \begin_layout Standard
13985 arrayrulewidth}{1.5pt}
13993 \begin_layout Standard
13994 To color vertical lines for example with green, create the following column
13995 format in the document preamble, according to the description in section\InsetSpace ~
13997 \begin_inset LatexCommand ref
13998 reference "sub:Customized-Format"
14005 \begin_layout Standard
14010 newcolumntype{W}{!{
14017 \begin_layout Standard
14018 For Table\InsetSpace ~
14020 \begin_inset LatexCommand ref
14021 reference "tab:Table-with-vertical-colored"
14028 \begin_layout Standard
14034 \begin_layout Standard
14035 was used for the last column and
14038 \begin_layout Standard
14044 \begin_layout Standard
14045 for the other columns.
14048 \begin_layout Standard
14049 If you want to have several colors, define more column formats.
14052 \begin_layout Standard
14053 \begin_inset Float table
14058 \begin_layout Standard
14059 \begin_inset Caption
14061 \begin_layout Standard
14062 \begin_inset LatexCommand label
14063 name "tab:Table-with-vertical-colored"
14067 Table with colored vertical lines
14075 \begin_layout Standard
14077 \begin_inset Tabular
14078 <lyxtabular version="3" rows="3" columns="3">
14080 <column alignment="center" valignment="top" leftline="true" width="0" special="Wc">
14081 <column alignment="center" valignment="top" width="0" special="Wc">
14082 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0" special="WcW">
14083 <row topline="true">
14084 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14087 \begin_layout Standard
14093 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14096 \begin_layout Standard
14102 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14105 \begin_layout Standard
14112 <row topline="true">
14113 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14116 \begin_layout Standard
14122 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14125 \begin_layout Standard
14131 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14134 \begin_layout Standard
14141 <row topline="true" bottomline="true">
14142 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14145 \begin_layout Standard
14151 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14154 \begin_layout Standard
14160 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14163 \begin_layout Standard
14182 \begin_layout Standard
14183 \begin_inset VSpace bigskip
14186 To color horizontal lines for example with red, like in Table\InsetSpace ~
14188 \begin_inset LatexCommand ref
14189 reference "tab:Table-with-horizontal-colored"
14193 , insert these commands in ERT before the table or table float:
14196 \begin_layout Standard
14213 arrayrulecolor{red}
14217 arrayrulecolor{black}}
14220 \begin_layout Standard
14224 \begin_layout Standard
14235 \begin_layout Standard
14243 arrayrulecolor{red}
14247 arrayrulecolor{black}}
14253 \begin_inset Float table
14258 \begin_layout Standard
14259 \begin_inset Caption
14261 \begin_layout Standard
14262 \begin_inset LatexCommand label
14263 name "tab:Table-with-horizontal-colored"
14267 Table with colored horizontal lines
14275 \begin_layout Standard
14277 \begin_inset Tabular
14278 <lyxtabular version="3" rows="3" columns="3">
14280 <column alignment="center" valignment="top" leftline="true" width="0">
14281 <column alignment="center" valignment="top" leftline="true" width="0">
14282 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14283 <row topline="true">
14284 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14287 \begin_layout Standard
14293 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14296 \begin_layout Standard
14302 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14305 \begin_layout Standard
14312 <row topline="true">
14313 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14316 \begin_layout Standard
14322 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14325 \begin_layout Standard
14331 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14334 \begin_layout Standard
14341 <row topline="true" bottomline="true">
14342 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14345 \begin_layout Standard
14351 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14354 \begin_layout Standard
14360 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14363 \begin_layout Standard
14382 \begin_layout Standard
14386 \begin_layout Standard
14398 \begin_layout Standard
14399 To return to the default line color black, insert this command in ERT behind
14400 the table or table float:
14403 \begin_layout Standard
14415 \begin_layout Standard
14418 \begin_inset LatexCommand ref
14419 reference "tab:Table-with-colored"
14423 is an example with colored vertical and horizontal lines.
14426 \begin_layout Standard
14427 \begin_inset Float table
14432 \begin_layout Standard
14433 \begin_inset Caption
14435 \begin_layout Standard
14436 \begin_inset LatexCommand label
14437 name "tab:Table-with-colored"
14441 Table with colored lines
14449 \begin_layout Standard
14451 \begin_inset Tabular
14452 <lyxtabular version="3" rows="3" columns="3">
14454 <column alignment="center" valignment="top" leftline="true" width="0" special="Wc">
14455 <column alignment="center" valignment="top" width="0" special="Wc">
14456 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0" special="WcW">
14457 <row topline="true">
14458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14461 \begin_layout Standard
14467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14470 \begin_layout Standard
14476 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14479 \begin_layout Standard
14486 <row topline="true">
14487 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14490 \begin_layout Standard
14496 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14499 \begin_layout Standard
14505 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14508 \begin_layout Standard
14515 <row topline="true" bottomline="true" topspace="default">
14516 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14519 \begin_layout Standard
14525 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14528 \begin_layout Standard
14534 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14537 \begin_layout Standard
14556 \begin_layout Standard
14560 \begin_layout Standard
14576 \begin_layout Standard
14580 \begin_layout Standard
14586 arrayrulewidth}{0.4pt}
14594 \begin_layout Section
14595 Table Customization
14596 \begin_inset LatexCommand index
14597 name "Table Customization"
14602 \begin_inset LatexCommand index
14603 name "Table ! Customization"
14610 \begin_layout Subsection
14612 \begin_inset LatexCommand label
14613 name "sub:Row-Spacing"
14618 \begin_inset LatexCommand index
14619 name "Table Customization ! Row Spacing"
14626 \begin_layout Standard
14627 You can add vertical space to table rows in the
14631 tab of the table dialog.
14632 You find there three possibilities:
14635 \begin_layout Description
14638 row will add space above the characters of the table row.
14639 If the table is a formal table
14643 \begin_layout Standard
14644 Formal tables are explained in section\InsetSpace ~
14646 \begin_inset LatexCommand ref
14647 reference "sec:Formal-Tables"
14656 LyX will insert as default 0.5\InsetSpace \thinspace{}
14658 For normal tables the inserted space will unfortunately destroy the vertical
14659 table lines as in the following table:
14660 \begin_inset Tabular
14661 <lyxtabular version="3" rows="3" columns="1">
14663 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14664 <row topline="true">
14665 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14668 \begin_layout Standard
14675 <row topline="true" topspace="3mm">
14676 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14679 \begin_layout Standard
14680 3\InsetSpace \thinspace{}
14681 mm space top of row
14687 <row topline="true" bottomline="true">
14688 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14691 \begin_layout Standard
14704 So inserting space to the top of row for normal tables is only useful when
14705 you don't have vertical lines.
14708 \begin_layout Description
14709 Bottom\InsetSpace ~
14711 row will add space below the characters of the table row.
14712 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
14714 normal tables the default size is 2\InsetSpace \thinspace{}
14718 \begin_layout Description
14719 Between\InsetSpace ~
14720 rows adds space between the current and the following row.
14721 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
14723 For normal tables the inserted space will unfortunately destroy the vertical
14724 table lines as in the following table:
14725 \begin_inset Tabular
14726 <lyxtabular version="3" rows="3" columns="1">
14728 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14729 <row topline="true">
14730 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14733 \begin_layout Standard
14740 <row topline="true" interlinespace="3mm">
14741 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14744 \begin_layout Standard
14745 \begin_inset Formula $\downarrow$
14748 3\InsetSpace \thinspace{}
14749 mm space between row
14750 \begin_inset Formula $\downarrow$
14759 <row topline="true" bottomline="true">
14760 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14763 \begin_layout Standard
14764 \begin_inset Formula $\uparrow$
14767 3\InsetSpace \thinspace{}
14768 mm space between row
14769 \begin_inset Formula $\uparrow$
14784 So inserting space between rows for normal tables is only useful when you
14785 don't have vertical lines.
14788 \begin_layout Standard
14789 When you want to add extra height to all cells of all tables, you can do
14790 this with the following preamble line:
14793 \begin_layout Standard
14800 extrarowheight}{height}
14803 \begin_layout Standard
14804 But this has the disadvantage that the cell texts are no longer exactly
14805 vertically centered.
14808 \begin_layout Subsection
14809 Special Cell Alignment
14810 \begin_inset LatexCommand index
14811 name "Table Customization ! Special Cell Alignment"
14818 \begin_layout Standard
14819 Sometimes it looks better when the cell entries of a column are aligned
14820 with a special character, e.\InsetSpace \thinspace{}
14822 with the decimal separator as in Table\InsetSpace ~
14824 \begin_inset LatexCommand ref
14825 reference "tab:Table-cells-of"
14832 \begin_layout Standard
14833 \begin_inset Float table
14839 \begin_layout Standard
14840 \begin_inset Caption
14842 \begin_layout Standard
14843 \begin_inset LatexCommand label
14844 name "tab:Table-cells-of"
14848 Table cells of a column aligned with the decimal separator.
14856 \begin_layout Standard
14858 \begin_inset Tabular
14859 <lyxtabular version="3" rows="4" columns="2">
14861 <column alignment="right" valignment="top" width="0">
14862 <column alignment="left" valignment="top" width="0" special="@{}l">
14863 <row bottomline="true">
14864 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
14867 \begin_layout Standard
14873 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14876 \begin_layout Standard
14884 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14887 \begin_layout Standard
14893 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14896 \begin_layout Standard
14904 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14907 \begin_layout Standard
14913 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14916 \begin_layout Standard
14924 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14927 \begin_layout Standard
14933 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14936 \begin_layout Standard
14955 \begin_layout Standard
14956 This table was created with a 4×2 table.
14957 The heading is a centered multicolumn.
14958 The first column is right-aligned and contains the digits before the decimal
14959 point and the decimal point.
14960 The second column is left aligned and contains the digits after the decimal
14962 To omit the space that is normally between two table columns, use the following
14963 LaTeX-argument for the second column:
14966 \begin_layout Standard
14972 \begin_layout Standard
14973 If you need a vertical line right beside the second column, use this LaTeX-argum
14979 \begin_layout Standard
14982 \begin_inset LatexCommand ref
14983 reference "tab:Several-table-cell"
14987 shows some example alignments.
14988 For the alignment with the relation sign, you must add the second smallest
14989 math-space at the beginning of the last column to get the correct space
14990 surrounding the relation sign.
14993 \begin_layout Standard
14994 \begin_inset Float table
14999 \begin_layout Standard
15000 \begin_inset Caption
15002 \begin_layout Standard
15003 \begin_inset LatexCommand label
15004 name "tab:Several-table-cell"
15008 Several table cell alignments.
15016 \begin_layout Standard
15018 \begin_inset Tabular
15019 <lyxtabular version="3" rows="4" columns="6">
15021 <column alignment="right" valignment="top" width="0">
15022 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l|">
15023 <column alignment="right" valignment="top" width="0">
15024 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l|">
15025 <column alignment="right" valignment="top" width="0">
15026 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15027 <row bottomline="true">
15028 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15031 \begin_layout Standard
15037 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15040 \begin_layout Standard
15046 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15049 \begin_layout Standard
15055 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15058 \begin_layout Standard
15064 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15067 \begin_layout Standard
15073 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15076 \begin_layout Standard
15084 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15087 \begin_layout Standard
15093 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15096 \begin_layout Standard
15097 24\InsetSpace \thinspace{}
15103 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15106 \begin_layout Standard
15107 \begin_inset Formula $10\cdot$
15115 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15118 \begin_layout Standard
15119 \begin_inset Formula $10^{\mbox{-}17}$
15127 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15130 \begin_layout Standard
15131 \begin_inset Formula $\Gamma(t)\propto$
15139 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15142 \begin_layout Standard
15143 \begin_inset Formula $\:\Upsilon(t)$
15153 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15156 \begin_layout Standard
15162 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15165 \begin_layout Standard
15166 768\InsetSpace \thinspace{}
15172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15175 \begin_layout Standard
15176 \begin_inset Formula $5.78\cdot$
15184 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15187 \begin_layout Standard
15188 \begin_inset Formula $10^{7}$
15196 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15199 \begin_layout Standard
15200 \begin_inset Formula $A\ne$
15208 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15211 \begin_layout Standard
15212 \begin_inset Formula $\: B_{\mathrm{red}}$
15222 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15225 \begin_layout Standard
15231 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15234 \begin_layout Standard
15235 6\InsetSpace \thinspace{}
15241 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15244 \begin_layout Standard
15246 \begin_inset Formula $33.5\cdot$
15254 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15257 \begin_layout Standard
15258 \begin_inset Formula $10^{4}$
15266 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15269 \begin_layout Standard
15270 \begin_inset Formula $\sin(\alpha)\ge$
15278 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15281 \begin_layout Standard
15282 \begin_inset Formula $\:\sin(\beta)$
15303 \begin_layout Standard
15304 \begin_inset VSpace bigskip
15307 There is also the LaTeX-package
15312 \begin_inset LatexCommand index
15313 name "LaTeX-packages ! dcolumn"
15317 that provides table cell alignments.
15318 But this unfortunately treats the cell entries as math and doesn't allow
15319 formulas in table cells: The first column of Table\InsetSpace ~
15321 \begin_inset LatexCommand ref
15322 reference "tab:Several-table-cell"
15330 like the first column in Table\InsetSpace ~
15332 \begin_inset LatexCommand ref
15333 reference "tab:Alignments-when"
15337 and only with some tricks like the expected.
15338 The alignment of the second and third column of Table\InsetSpace ~
15340 \begin_inset LatexCommand ref
15341 reference "tab:Several-table-cell"
15345 is not possible with
15352 \begin_layout Standard
15353 \begin_inset Float table
15359 \begin_layout Standard
15360 \begin_inset Caption
15362 \begin_layout Standard
15363 \begin_inset LatexCommand label
15364 name "tab:Alignments-when"
15368 Alignments when LaTeX-package dcolumn is used.
15369 For all column alignments tricks have to be used to get the output.
15377 \begin_layout Standard
15379 \begin_inset Tabular
15380 <lyxtabular version="3" rows="4" columns="3">
15382 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{-1}|">
15383 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{4.9}|">
15384 <column alignment="center" valignment="top" rightline="true" width="0" special="D{~}{\,}{9.7}">
15385 <row bottomline="true">
15386 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15389 \begin_layout Standard
15395 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15398 \begin_layout Standard
15404 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15407 \begin_layout Standard
15415 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15418 \begin_layout Standard
15419 12x24\InsetSpace \thinspace{}
15425 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15428 \begin_layout Standard
15429 12x24\InsetSpace \thinspace{}
15431 \begin_inset Formula $\mbox{bottles}$
15439 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15442 \begin_layout Standard
15447 \begin_layout Standard
15457 \begin_inset Formula $\mbox{bottles}$
15467 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15470 \begin_layout Standard
15471 1024x768\InsetSpace \thinspace{}
15477 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15480 \begin_layout Standard
15481 1024x768\InsetSpace \thinspace{}
15483 \begin_inset Formula $\mbox{Pixels}$
15491 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15494 \begin_layout Standard
15499 \begin_layout Standard
15509 \begin_inset Formula $\mbox{Pixels}$
15519 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15522 \begin_layout Standard
15523 32x6\InsetSpace \thinspace{}
15529 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15532 \begin_layout Standard
15533 32x6\InsetSpace \thinspace{}
15535 \begin_inset Formula $\mbox{cm}$
15543 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15546 \begin_layout Standard
15551 \begin_layout Standard
15561 \begin_inset Formula $\mbox{cm}$
15582 \begin_layout Subsection
15583 Customized Cell/Column Format
15584 \begin_inset LatexCommand label
15585 name "sub:Customized-Format"
15590 \begin_inset LatexCommand index
15591 name "Table Customization ! Cell/Column Format"
15598 \begin_layout Standard
15599 Calculating the needed width for spanned columns like in section\InsetSpace ~
15601 \begin_inset LatexCommand ref
15602 reference "sub:Multicolumn-Calculations"
15606 is very annoying if you have several tables with multicolumn cells.
15607 To make life easier, you can define a cell/column format in the preamble,
15608 so that it can be used in all tables of the document.
15609 The format is defined with the command
15612 \begin_layout Standard
15617 newcolumntype{name of format}[number of arguments]{commands}
15620 \begin_layout Standard
15621 The format name may only consist of one letter.
15646 are predefined and cannot be used.
15647 But all letters are allowed as capitals.
15650 \begin_layout Standard
15651 \begin_inset VSpace medskip
15657 \begin_layout Standard
15658 For vertically and horizontally centered multicolumn cells with a fixed
15659 width you can define the cell format
15662 \begin_layout Standard
15667 newcolumntype{M}[1]{>{
15674 \begin_layout Standard
15681 avoids the problem of hyphenating the first word, as described in section\InsetSpace ~
15683 \begin_inset LatexCommand ref
15684 reference "sub:Multiple-Lines-in"
15689 Now you can simply enter
15692 \begin_layout Standard
15698 \begin_layout Standard
15699 as LaTeX-argument in the table dialog to create a multicolumn.
15702 \begin_layout Standard
15703 \begin_inset VSpace bigskip
15709 \begin_layout Standard
15710 For cells spanned by a multicolumn cell, you can define the format
15713 \begin_layout Standard
15718 newcolumntype{S}[2]{>{
15728 \begin_layout Standard
15739 newcolumntype{S}[2]
15743 \begin_layout Standard
15754 arrayrulewidth)*(1-#2))/#2}}
15757 \begin_layout Standard
15758 This format uses equation
15759 \begin_inset LatexCommand eqref
15764 to calculate the needed width so that each spanned cell has the same width.
15767 \begin_layout Standard
15771 \begin_layout Standard
15774 |S{width of multicolumn cell}{number of spanned columns}
15777 \begin_layout Standard
15778 as LaTeX-argument of the column.
15781 \begin_layout Standard
15782 \begin_inset VSpace bigskip
15788 \begin_layout Standard
15789 For colored columns, you can define
15792 \begin_layout Standard
15797 newcolumntype{K}[1]{>{
15804 \begin_layout Standard
15806 \begin_inset Quotes eld
15810 \begin_inset Quotes erd
15813 at the end creates a column with a flexible width whose text is horizontally
15818 \begin_layout Standard
15824 \begin_layout Standard
15828 \begin_layout Standard
15829 \begin_inset VSpace bigskip
15835 \begin_layout Standard
15836 To create Table\InsetSpace ~
15838 \begin_inset LatexCommand ref
15839 reference "tab:Table-using-user-defined"
15843 use the LaTeX-arguments
15846 \begin_layout Standard
15852 \begin_layout Standard
15853 for the first column and the multicolumn,
15856 \begin_layout Standard
15862 \begin_layout Standard
15863 for the the last column, and
15866 \begin_layout Standard
15872 \begin_layout Standard
15873 for the cells in the second column.
15876 \begin_layout Standard
15877 \begin_inset Float table
15883 \begin_layout Standard
15884 \begin_inset Caption
15886 \begin_layout Standard
15887 \begin_inset LatexCommand label
15888 name "tab:Table-using-user-defined"
15892 Table using user-defined table formats
15900 \begin_layout Standard
15902 \begin_inset Tabular
15903 <lyxtabular version="3" rows="3" columns="4">
15905 <column alignment="center" valignment="middle" leftline="true" width="2.5cm" special="|M{2.5cm}">
15906 <column alignment="center" valignment="middle" leftline="true" width="0" special="|S{2.5cm}{2}">
15907 <column alignment="center" valignment="middle" leftline="true" width="0">
15908 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0" special="|K{red}|">
15909 <row topline="true">
15910 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15913 \begin_layout Standard
15914 verylongtablecellword
15919 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none" special="M{2.5cm}|">
15922 \begin_layout Standard
15923 multiple lines multicolumn
15928 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15931 \begin_layout Standard
15937 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15940 \begin_layout Standard
15947 <row topline="true">
15948 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15951 \begin_layout Standard
15957 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15960 \begin_layout Standard
15966 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15969 \begin_layout Standard
15975 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15978 \begin_layout Standard
15985 <row topline="true" bottomline="true">
15986 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15989 \begin_layout Standard
15995 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15998 \begin_layout Standard
16004 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16007 \begin_layout Standard
16013 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16016 \begin_layout Standard
16035 \begin_layout Subsection
16037 \begin_inset LatexCommand label
16038 name "sub:Line-Thickness"
16043 \begin_inset LatexCommand index
16044 name "Table Customization ! Line Thickness"
16051 \begin_layout Standard
16052 The line thickness for all lines in a table can be adjusted with the length
16060 To set for example a line thickness of 1.5\InsetSpace \thinspace{}
16061 pt, like in Table\InsetSpace ~
16063 \begin_inset LatexCommand ref
16064 reference "tab:Table-with-1.5"
16068 , insert the command
16071 \begin_layout Standard
16078 arrayrulewidth}{1.5pt}
16081 \begin_layout Standard
16082 in ERT before the table or table float.
16083 The changed thickness is valid for all following tables.
16084 To use the default value again, set
16090 to 0.4\InsetSpace \thinspace{}
16091 pt in ERT behind the table or table float.
16094 \begin_layout Standard
16098 \begin_layout Standard
16104 arrayrulewidth}{1.5pt}
16110 \begin_inset Float table
16115 \begin_layout Standard
16116 \begin_inset Caption
16118 \begin_layout Standard
16119 \begin_inset LatexCommand label
16120 name "tab:Table-with-1.5"
16124 Table with 1.5\InsetSpace \thinspace{}
16133 \begin_layout Standard
16135 \begin_inset Tabular
16136 <lyxtabular version="3" rows="3" columns="3">
16138 <column alignment="center" valignment="top" leftline="true" width="0">
16139 <column alignment="center" valignment="top" leftline="true" width="0">
16140 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16141 <row topline="true">
16142 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16145 \begin_layout Standard
16151 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16154 \begin_layout Standard
16160 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16163 \begin_layout Standard
16170 <row topline="true">
16171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16174 \begin_layout Standard
16180 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16183 \begin_layout Standard
16189 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16192 \begin_layout Standard
16199 <row topline="true" bottomline="true">
16200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16203 \begin_layout Standard
16209 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16212 \begin_layout Standard
16218 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16221 \begin_layout Standard
16241 \begin_layout Standard
16247 arrayrulewidth}{0.4pt}
16255 \begin_layout Standard
16256 \begin_inset VSpace bigskip
16259 To set the line thickness to 1.5\InsetSpace \thinspace{}
16260 pt only for horizontal lines, like in Table\InsetSpace ~
16262 \begin_inset LatexCommand ref
16263 reference "tab:Table-with-horizontal"
16267 , insert these commands in ERT before the table or table float:
16270 \begin_layout Standard
16293 arrayrulewidth 1.5pt}
16303 arrayrulewidth 0.4pt}}
16306 \begin_layout Standard
16307 To return to the default line thickness, insert this command in ERT behind
16308 the table or table float:
16311 \begin_layout Standard
16323 \begin_layout Standard
16327 \begin_layout Standard
16338 \begin_layout Standard
16347 \begin_layout Standard
16355 arrayrulewidth 1.5pt}
16358 \begin_layout Standard
16368 arrayrulewidth 0.4pt}}
16374 \begin_inset Float table
16379 \begin_layout Standard
16380 \begin_inset Caption
16382 \begin_layout Standard
16383 \begin_inset LatexCommand label
16384 name "tab:Table-with-horizontal"
16388 Table with 1.5\InsetSpace \thinspace{}
16389 pt thick horizontal lines
16397 \begin_layout Standard
16399 \begin_inset Tabular
16400 <lyxtabular version="3" rows="3" columns="3">
16402 <column alignment="center" valignment="top" leftline="true" width="0">
16403 <column alignment="center" valignment="top" leftline="true" width="0">
16404 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16405 <row topline="true">
16406 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16409 \begin_layout Standard
16415 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16418 \begin_layout Standard
16424 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16427 \begin_layout Standard
16434 <row topline="true">
16435 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16438 \begin_layout Standard
16444 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16447 \begin_layout Standard
16453 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16456 \begin_layout Standard
16463 <row topline="true" bottomline="true">
16464 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16467 \begin_layout Standard
16473 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16476 \begin_layout Standard
16482 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16485 \begin_layout Standard
16505 \begin_layout Standard
16521 \begin_layout Standard
16522 \begin_inset VSpace bigskip
16525 To set the line thickness to 1.5\InsetSpace \thinspace{}
16526 pt only for vertical lines, create the following
16527 column format in the document preamble, according to the description in
16528 section\InsetSpace ~
16530 \begin_inset LatexCommand ref
16531 reference "sub:Customized-Format"
16538 \begin_layout Standard
16543 newcolumntype{V}{!{
16545 vrule width 1.5pt}}
16548 \begin_layout Standard
16549 For Table\InsetSpace ~
16551 \begin_inset LatexCommand ref
16552 reference "tab:Table-with-vertical"
16559 \begin_layout Standard
16565 \begin_layout Standard
16566 was used for the last column and
16569 \begin_layout Standard
16575 \begin_layout Standard
16576 for the other columns.
16579 \begin_layout Standard
16580 \begin_inset Float table
16585 \begin_layout Standard
16586 \begin_inset Caption
16588 \begin_layout Standard
16589 \begin_inset LatexCommand label
16590 name "tab:Table-with-vertical"
16594 Table with 1.5\InsetSpace \thinspace{}
16595 pt thick vertical lines
16603 \begin_layout Standard
16605 \begin_inset Tabular
16606 <lyxtabular version="3" rows="3" columns="3">
16608 <column alignment="center" valignment="top" leftline="true" width="0" special="Vc">
16609 <column alignment="center" valignment="top" leftline="true" width="0" special="Vc">
16610 <column alignment="center" valignment="top" leftline="true" width="0" special="VcV">
16611 <row topline="true">
16612 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16615 \begin_layout Standard
16621 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16624 \begin_layout Standard
16630 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16633 \begin_layout Standard
16640 <row topline="true">
16641 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16644 \begin_layout Standard
16650 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16653 \begin_layout Standard
16659 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16662 \begin_layout Standard
16669 <row topline="true" bottomline="true">
16670 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16673 \begin_layout Standard
16679 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16682 \begin_layout Standard
16688 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16691 \begin_layout Standard
16710 \begin_layout Subsection
16712 \begin_inset LatexCommand index
16713 name "Table Customization ! Dashed Lines"
16720 \begin_layout Standard
16724 \begin_layout Standard
16734 \begin_inset Note Note
16737 \begin_layout Standard
16738 The following section will only be displayed when you have the LaTeX-package
16751 \begin_layout Standard
16752 \begin_inset Float table
16758 \begin_layout Standard
16759 \begin_inset Caption
16761 \begin_layout Standard
16762 \begin_inset LatexCommand label
16763 name "tab:Table-with-dashed"
16767 Table with dashed lines
16775 \begin_layout Standard
16777 \begin_inset Tabular
16778 <lyxtabular version="3" rows="5" columns="5">
16780 <column alignment="center" valignment="top" leftline="true" width="0">
16781 <column alignment="center" valignment="top" leftline="true" width="0">
16782 <column alignment="center" valignment="top" width="0" special=":c">
16783 <column alignment="center" valignment="top" leftline="true" width="0">
16784 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16785 <row topline="true" bottomline="true">
16786 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16789 \begin_layout Standard
16795 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16798 \begin_layout Standard
16804 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16807 \begin_layout Standard
16813 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16816 \begin_layout Standard
16822 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16825 \begin_layout Standard
16832 <row topline="true">
16833 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16836 \begin_layout Standard
16842 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16845 \begin_layout Standard
16851 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16854 \begin_layout Standard
16860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16863 \begin_layout Standard
16869 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16872 \begin_layout Standard
16880 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16883 \begin_layout Standard
16887 \begin_layout Standard
16901 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16904 \begin_layout Standard
16910 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16913 \begin_layout Standard
16919 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16922 \begin_layout Standard
16928 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16931 \begin_layout Standard
16938 <row topline="true">
16939 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16942 \begin_layout Standard
16946 \begin_layout Standard
16960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16963 \begin_layout Standard
16969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="c:">
16972 \begin_layout Standard
16978 <cell multicolumn="1" alignment="center" valignment="top" rightline="true" usebox="none" special="c:">
16981 \begin_layout Standard
16987 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16990 \begin_layout Standard
16997 <row topline="true" bottomline="true">
16998 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17001 \begin_layout Standard
17007 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17010 \begin_layout Standard
17016 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17019 \begin_layout Standard
17025 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17028 \begin_layout Standard
17034 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17037 \begin_layout Standard
17056 \begin_layout Standard
17057 LyX doesn't natively support dashed lines, so you have to use ERT.
17058 As prerequisite the LaTeX-package
17063 \begin_inset LatexCommand index
17064 name "LaTeX-packages ! arydshln"
17068 must be loaded in the document preamble with the command
17071 \begin_layout Standard
17076 usepackage{arydshln}
17079 \begin_layout Standard
17080 To make a vertical line dashed, enter the colon
17081 \begin_inset Quotes eld
17085 \begin_inset Quotes erd
17088 together with the character for the horizontal alignment as LaTeX-argument
17089 in the table cell dialog.
17092 \begin_layout Standard
17093 For a horizontal dashed line add the command
17096 \begin_layout Standard
17104 \begin_layout Standard
17105 in ERT as first element of the first cell in the table row.
17108 \begin_layout Standard
17109 For dashed multicolumn lines use the command
17112 \begin_layout Standard
17117 cdashline{line number
17122 \begin_layout Standard
17123 in ERT as first element of the first cell in the table row.
17124 If you have for example a multicolumn spanning over columns 2 to 4 and
17125 you want to have a dashed line above, add the command
17128 \begin_layout Standard
17136 \begin_layout Standard
17137 as first element of the first cell in the row of the multicolumn.
17140 \begin_layout Standard
17141 \begin_inset VSpace bigskip
17147 \begin_layout Standard
17150 \begin_inset LatexCommand ref
17151 reference "tab:Table-with-dashed"
17156 \begin_inset Quotes eld
17164 \begin_inset Quotes erd
17167 as LaTeX-argument of the third column.
17174 was inserted to the first cell of the third row and the the ERT command
17183 was inserted to the first cell of the fourth row.
17186 \begin_layout Standard
17187 \begin_inset Note Greyedout
17190 \begin_layout Standard
17195 The used LaTeX-package
17199 is apparently not compatible with the LaTeX-package
17204 \begin_inset LatexCommand index
17205 name "LaTeX-packages ! colortbl"
17209 that is used for colored tables in section\InsetSpace ~
17211 \begin_inset LatexCommand ref
17212 reference "sec:Colored-Tables"
17217 That means colored tables cannot have dashed lines.
17225 \begin_layout Standard
17229 \begin_layout Standard
17239 \begin_inset Note Note
17242 \begin_layout Standard
17243 The following will be displayed when the LaTeX-package
17255 \begin_layout Standard
17256 You need to install the package
17260 to see the contents of this section in the output.
17263 \begin_layout Standard
17267 \begin_layout Standard
17279 \begin_layout Chapter
17281 \begin_inset LatexCommand index
17287 \begin_inset LatexCommand label
17295 \begin_layout Section
17297 \begin_inset LatexCommand label
17298 name "sec:FloatIntroduction"
17303 \begin_inset LatexCommand index
17304 name "Floats ! Introduction"
17311 \begin_layout Standard
17312 A float is a block of text associated with some sort of label, which doesn't
17313 have a fixed location.
17315 \begin_inset Quotes eld
17319 \begin_inset Quotes erd
17322 forward or backward a page or two, to wherever it fits best.
17329 Margin\InsetSpace ~
17332 are also floats, because they can float to the next page when there are
17333 too many notes at the page.
17336 \begin_layout Standard
17337 Floats allow a high quality layout.
17338 Images and tables can evenly be spread to the pages to avoid white space
17339 and pages without text.
17340 As the floating often destroys the context between the text and the image/table
17341 , every float can be referenced in the text.
17342 Floats are therefore numbered.
17343 Referencing is described in section\InsetSpace ~
17345 \begin_inset LatexCommand ref
17346 reference "sec:Referencing-Floats"
17353 \begin_layout Standard
17354 To insert a float, use the menu
17356 Insert\SpecialChar \menuseparator
17360 This inserts a box with a label in the
17368 \begin_layout Standard
17373 environment is described in LyX's
17382 into your document.
17383 Every label ends with the character
17384 \begin_inset Quotes eld
17388 \begin_inset Quotes erd
17391 as placeholder for the float number in the output.
17392 The label will automatically be translated to the document language in
17394 Behind the label you can insert the caption text.
17395 The image or table is inserted above or below the caption in a separate
17396 paragraph within the float.
17397 More about the caption placement is described in section\InsetSpace ~
17399 \begin_inset LatexCommand ref
17400 reference "sec:Caption-Placement"
17405 To keep your LyX-document readable, you can open and close the float box
17406 by left-clicking on the box label.
17407 A closed float box looks like this:
17408 \begin_inset Graphics
17409 filename clipart/floatQt4.png
17414 -- a gray button with a red label.
17417 \begin_layout Standard
17418 It is recommended to insert floats as a separate paragraph to avoid possible
17419 LaTeX-errors that can occur when the surrounding text is specially formatted.
17422 \begin_layout Standard
17423 Existing figures or tables can be put into a float by marking them and then
17424 pressing the corresponding toolbar button for a new float.
17427 \begin_layout Section
17431 \begin_layout Standard
17432 Besides figure and table floats that are described in section\InsetSpace ~
17434 \begin_inset LatexCommand ref
17435 reference "sec:Figure-Floats"
17440 \begin_inset LatexCommand ref
17441 reference "sec:Table-Floats"
17445 , respectively, LyX offers the float types
17458 \begin_layout Subsection
17460 \begin_inset LatexCommand index
17461 name "Floats ! Algorithm Floats"
17468 \begin_layout Standard
17469 \begin_inset Float algorithm
17475 \begin_layout Standard
17476 \begin_inset Caption
17478 \begin_layout Standard
17479 \begin_inset LatexCommand label
17480 name "alg:Example-Algorithm-float"
17484 Example Algorithm float
17492 \begin_layout LyX-Code
17495 Sum:= Sum + A(I); /*senseless comment*/
17498 \begin_inset VSpace -4mm
17509 \begin_layout Standard
17510 This float type is inserted with the menu
17512 Insert\SpecialChar \menuseparator
17513 Floats\SpecialChar \menuseparator
17517 It is used for program codes and descriptions of algorithms.
17518 A possible environment for algorithms is the
17522 , described in LyX's
17527 Algorithm\InsetSpace ~
17529 \begin_inset LatexCommand ref
17530 reference "alg:Example-Algorithm-float"
17534 is an example of an algorithm float where -4\InsetSpace \thinspace{}
17535 mm vertical space was added
17536 at the end of the float to have the bottom rule exactly below the last
17540 \begin_layout Standard
17541 The float label is not automatically translated into the document language.
17542 If your document is not in English, you have to do this manually by adding
17543 the following line to the document preamble
17548 \begin_layout Standard
17553 floatname{algorithm}{your\InsetSpace ~
17557 \begin_layout Standard
17564 \begin_inset Quotes eld
17572 \begin_inset Quotes erd
17578 \begin_layout Description
17583 When the LaTeX-package
17588 \begin_inset LatexCommand index
17589 name "LaTeX-packages ! hyperref"
17593 is used to link cross-references to floats in the PDF-output, it must be
17594 loaded in the document preamble before the definition of floats to be able
17595 to reference floats.
17596 As LyX sets the float definition for algorithm floats automatically before
17597 the user editable part of the document preamble, you need to insert the
17598 following preamble lines
17602 the loading command of
17609 \begin_inset VSpace defskip
17616 newfloat{Xalgorithm}{tbp}{loa}
17620 floatname{Xalgorithm}{your\InsetSpace ~
17633 renewenvironment{algorithm}[1][tbp]
17639 \begin_layout Standard
17650 begin{Xalgorithm}[#1]}{
17653 \begin_inset VSpace defskip
17666 \begin_inset Quotes eld
17674 \begin_inset Quotes erd
17680 \begin_layout Standard
17681 Algorithm floats are not by default numbered in the scheme
17682 \begin_inset Quotes eld
17686 \begin_inset Quotes erd
17689 like it is the case for table and figure floats in many document-classes.
17690 To number algorithm floats in the same scheme, add this command to your
17694 \begin_layout Standard
17699 numberwithin{algorithm}{chapter}
17702 \begin_layout Standard
17703 If you use the LaTeX-package
17707 , add this line instead
17715 (the commands from above) to the preamble:
17718 \begin_layout Standard
17723 numberwithin{Xalgorithm}{chapter}
17726 \begin_layout Standard
17727 To be able to use the command
17738 in the document settings the option
17748 \begin_layout Subsection
17750 \begin_inset LatexCommand index
17751 name "Floats ! Text Wrap Floats"
17756 \begin_inset LatexCommand label
17757 name "sub:floatflt-wrap-float"
17764 \begin_layout Standard
17765 This float type is used if you want to
17766 \begin_inset Quotes eld
17770 \begin_inset Quotes erd
17773 text around a figure so that it only occupies some fraction of the column
17775 It can be inserted using the menu
17776 \begin_inset Wrap figure
17781 \begin_layout Standard
17782 \begin_inset Graphics
17783 filename clipart/mobius.eps
17786 rotateOrigin center
17793 \begin_layout Standard
17794 \begin_inset Caption
17796 \begin_layout Standard
17797 \begin_inset LatexCommand label
17798 name "fig:This-is-a"
17802 This is a wrapped figure, and this is the brilliant caption that describes
17804 \begin_inset VSpace medskip
17819 Insert\SpecialChar \menuseparator
17820 Floats\SpecialChar \menuseparator
17825 if the LaTeX-package
17830 \begin_inset LatexCommand index
17831 name "LaTeX-packages ! floatflt"
17839 \begin_layout Standard
17840 Installing a LaTeX-package is explained it in the
17850 The width and placement of the float is adjusted by right-clicking on the
17852 Figure\InsetSpace ~
17854 \begin_inset LatexCommand ref
17855 reference "fig:This-is-a"
17859 is an example text wrap float with a width of 40
17860 \begin_inset Formula $\,$
17867 \begin_layout Standard
17868 Available units are explained in
17869 \begin_inset LatexCommand ref
17870 reference "cha:Units-available-in"
17879 Some space was added under the caption to separate it better from the surroundi
17883 \begin_layout Standard
17888 also supports table wrap floats, but they are not yet supported by LyX.
17889 If you need this, read the documentation of
17894 \begin_inset LatexCommand cite
17902 \begin_layout Standard
17903 \begin_inset Note Greyedout
17906 \begin_layout Standard
17912 wrap float floats are fragile! E.\InsetSpace \thinspace{}
17914 having a figure too close to the bottom
17915 of the page can mess things up in the way that the float doesn't appear
17916 in the output or that it is placed over some other text.
17920 \begin_layout Standard
17921 The better solution is to use the LaTeX-package
17923 wrapf\SpecialChar \textcompwordmark{}
17927 \begin_inset LatexCommand index
17928 name "LaTeX-packages ! wrapfig\\vspace{4mm}"
17934 floatf\SpecialChar \textcompwordmark{}
17937 , but it is currently not supported by LyX.
17950 \begin_layout Standard
17954 \begin_layout Itemize
17955 Wrap floats should not be placed in paragraphs that run over a page break.
17956 That means that wrap floats should better be inserted to the exact place
17957 when the document is nearly ready and you are able to estimate where page
17958 breaks will appear.
17961 \begin_layout Itemize
17962 Wrap floats should either be placed in an own paragraph before the paragraph
17963 where they should wrap into or within a paragraph.
17966 \begin_layout Itemize
17967 Wrap floats in consecutive paragraphs may cause troubles, so assure that
17968 there is a text paragraph between them as separator.
17971 \begin_layout Itemize
17972 Wrap floats are not allowed in section headings or tables.
17975 \begin_layout Section
17977 \begin_inset LatexCommand label
17978 name "sec:Referencing-Floats"
17983 \begin_inset LatexCommand index
17984 name "Floats ! References"
17989 \begin_inset LatexCommand index
17997 \begin_layout Standard
17998 To reference a float, insert a label into its caption using the menu
18000 Insert\SpecialChar \menuseparator
18003 or the toolbar button
18004 \begin_inset Graphics
18005 filename ../images/label-insert.xpm
18011 A grey label box like this one:
18012 \begin_inset Graphics
18013 filename clipart/labelQt4.png
18018 will be inserted and the label window pops up asking for the label text.
18019 LyX offers as text the first words of the caption with a prefix.
18020 The prefix depends on the float type, e.\InsetSpace \thinspace{}
18022 for figure floats the prefix will
18030 \begin_layout Standard
18031 The label is used as anchor and name for the reference.
18032 You can refer to the label using the menu
18034 Insert\SpecialChar \menuseparator
18037 or the toolbar button
18038 \begin_inset Graphics
18039 filename ../images/dialog-show-new-inset_ref.xpm
18045 A grey cross-reference box like this one:
18046 \begin_inset Graphics
18047 filename clipart/referenceQt4.png
18052 will be inserted and the cross-reference window appear showing all labels
18054 If you have multiple LyX-documents opened, choose the one you are working
18055 on from the drop-list at the top of the dialog.
18056 You can now sort the labels alphabetically and then choose one.
18057 At the position of the cross-reference box the float number will appear
18061 \begin_layout Standard
18062 It is recommended to use a protected space between the cross-reference name
18063 and its number to avoid line breaks between them.
18064 If a cross-reference refers to a non-existing label, you will see two question
18065 marks in the output instead of the reference.
18068 \begin_layout Standard
18069 You can change labels at any time by clicking on the label box.
18070 References to the changed label will automatically change its link to the
18071 new label text, so that you don't need to take care about this.
18074 \begin_layout Standard
18081 in the cross-reference window sets the cursor before the referred label.
18082 The button text changes then to Go\InsetSpace ~
18083 Back and you can use it to set the cursor
18084 back to the cross-reference.
18085 Right-clicking on a cross-reference box also sets the cursor before the
18086 referenced label but without a possibility to go back.
18089 \begin_layout Subsection
18090 Cross-Reference Formats
18091 \begin_inset LatexCommand label
18092 name "sub:Cross-Reference-Formats"
18097 \begin_inset LatexCommand index
18098 name "References ! Formats"
18105 \begin_layout Standard
18106 There are six varieties of cross-references:
18109 \begin_layout Description
18110 <reference>: prints the float number, this is the default:
18111 \begin_inset LatexCommand ref
18112 reference "fig:Two-distorted-images"
18119 \begin_layout Description
18120 (<reference>): prints the float number within two parentheses, this is the
18121 style normally used to reference formulas, especially when the reference
18123 \begin_inset Quotes eld
18127 \begin_inset Quotes erd
18131 \begin_inset LatexCommand eqref
18139 \begin_layout Description
18140 <page>: prints the page number: Page\InsetSpace ~
18142 \begin_inset LatexCommand pageref
18143 reference "fig:Two-distorted-images"
18150 \begin_layout Description
18153 <page>: prints the text "on page" and the page number:
18154 \begin_inset LatexCommand vpageref
18155 reference "fig:Two-distorted-images"
18162 \begin_layout Description
18163 <reference>\InsetSpace ~
18166 <page>: prints the float number, the text "on page", and
18168 \begin_inset LatexCommand vref
18169 reference "fig:Two-distorted-images"
18176 \begin_layout Description
18177 Formatted\InsetSpace ~
18178 reference: prints a self defined cross-reference format.
18180 \begin_inset Note Greyedout
18183 \begin_layout Standard
18188 This feature is only available when you have the LaTeX-package
18200 \begin_layout Standard
18201 Note that the style <page> won't print the page number if the label is on
18202 the previous, the same, or the next page.
18203 You will e.\InsetSpace \thinspace{}
18206 \begin_inset Quotes eld
18214 \begin_inset Quotes erd
18220 \begin_layout Standard
18221 The number and current page of the referred document part in the output,
18222 is automatically calculated by LaTeX.
18223 The varieties are adjusted in the field
18227 of the cross-reference window, that appear when you click on the cross-referenc
18231 \begin_layout Subsection
18232 Referencing Subfigures
18233 \begin_inset LatexCommand label
18234 name "sub:Referencing-Subfigures"
18239 \begin_inset LatexCommand index
18240 name "References ! to Subfigures"
18247 \begin_layout Standard
18248 Currently referencing subfigures is not supported by LyX, so you have to
18249 use LaTeX-commands.
18250 The label is the created with the command
18253 \begin_layout Standard
18258 label{fig:YourLabelName}
18261 \begin_layout Standard
18262 that is directly inserted into the subfigure caption field.
18263 To reference the label add this command in ERT
18266 \begin_layout Standard
18271 ref{fig:YourLabelName}
18274 \begin_layout Standard
18275 to the position in your document where the reference should be placed.
18276 Here is a reference to a subfigure: Subfigure\InsetSpace ~
18281 \begin_layout Standard
18293 \begin_layout Subsection
18294 Automatic Reference Naming
18295 \begin_inset LatexCommand index
18296 name "References ! Automatic Reference Naming"
18303 \begin_layout Standard
18308 provides a very useful feature that cross-references automatically include
18309 the name of the referenced floats (or text parts like sections).
18310 You save to write e.\InsetSpace \thinspace{}
18313 \begin_inset Quotes eld
18317 \begin_inset Quotes erd
18320 before every reference box.
18321 To get this automatic reference naming, you have to load the LaTeX-package
18327 \begin_inset LatexCommand index
18328 name "LaTeX-packages ! hyperref"
18332 in the document preamble with
18335 \begin_layout Standard
18340 usepackage[pdfborder={0 0 0}]{hyperref}
18355 \begin_layout Standard
18360 is used to link cross-references in the DVI- and PDF-output, this means
18361 that the reader of your document will be able to click on a table of content
18362 (TOC) entry or on a reference and he will be shown the referenced document
18368 also creates PDF-bookmarks for every section of your document to make it
18369 easier for readers to navigate through the document.
18370 This is also used in this document but when you have a look in the document
18371 preamble you will find various options in the load command of
18376 To learn more about the
18380 package, we refer to its documentation
18381 \begin_inset LatexCommand cite
18389 \begin_layout Standard
18390 \begin_inset Note Greyedout
18393 \begin_layout Standard
18398 Automatic reference naming cannot be used when you use cross-references
18401 Formatted\InsetSpace ~
18404 style, described in section\InsetSpace ~
18406 \begin_inset LatexCommand ref
18407 reference "sub:Cross-Reference-Formats"
18419 \begin_layout Subsection
18421 \begin_inset LatexCommand label
18422 name "sub:Reference-Position"
18427 \begin_inset LatexCommand index
18428 name "References ! Reference Position"
18435 \begin_layout Standard
18441 \begin_inset LatexCommand index
18442 name "LaTeX-packages ! hyperref"
18446 to link cross-references in the output, you will see that clicking on an
18447 image float reference jumps to the image label.
18448 The caption will be the first text part on the screen, so that you cannot
18449 see the image without scrolling.
18450 This is because the reference link anchor is placed at the position of
18452 With the use of the package
18457 \begin_inset LatexCommand index
18458 name "LaTeX-packages ! hypcap"
18462 , which is part of the LaTeX-package
18467 \begin_inset LatexCommand index
18468 name "LaTeX-packages ! oberdiek"
18472 , the link anchor is placed at the beginning of a float.
18473 To use this feature for figure floats, load
18477 in the document preamble with the line
18480 \begin_layout Standard
18485 usepackage[f\SpecialChar \textcompwordmark{}
18489 \begin_layout Standard
18494 for all floats but this isn't recommended for stability reasons.
18495 For more informations, have a look at
18500 \begin_inset LatexCommand cite
18508 \begin_layout Standard
18509 \begin_inset Note Greyedout
18512 \begin_layout Standard
18521 must be loaded after
18525 in the document preamble.
18533 \begin_layout Standard
18534 \begin_inset Note Greyedout
18537 \begin_layout Standard
18542 The set reference position has no effect for references to subfigures.
18550 \begin_layout Section
18552 \begin_inset LatexCommand label
18553 name "sec:Float-Placement"
18558 \begin_inset LatexCommand index
18559 name "Floats ! Placement"
18566 \begin_layout Standard
18567 Right-clicking on a float-box opens a dialog where you can alter the placement
18568 options that LaTeX uses for positioning the float.
18575 is only useful for two-column documents: If you select it, the float will
18576 span across both columns on the page instead of being confined to just
18581 Rotate\InsetSpace ~
18584 is used to rotate floats, see section
18585 \begin_inset LatexCommand ref
18586 reference "sec:Rotated-Floats"
18593 \begin_layout Standard
18594 You can use one ore more of the following options in the float dialog to
18595 set the placement for a particular float when you uncheck the option
18598 default\InsetSpace ~
18604 \begin_layout Description
18607 possible: try to place the float on the position where it is inserted
18610 \begin_layout Description
18613 page: try to place the float on the top of the current page
18616 \begin_layout Description
18617 Bottom\InsetSpace ~
18619 page: try to place the float on the bottom of the current page
18622 \begin_layout Description
18625 floats: try to place the float on an own page
18628 \begin_layout Standard
18629 The order of the above option is
18634 That means, if you use the default placement, LaTeX will first try out
18647 , and then the others.
18648 If you don't use the default, LaTeX will try only the checked options but
18650 If none of the 4 placements are possible the procedure is internally repeated
18651 but it is tried to put the float on the following page.
18654 \begin_layout Standard
18655 By default, each options has its own rules:
18658 \begin_layout Labeling
18659 \labelwidthstring 00.00.0000
18666 only floats occupying less than 70\InsetSpace \thinspace{}
18667 % of the page can be placed at the top
18677 \begin_layout Labeling
18678 \labelwidthstring 00.00.0000
18681 Bottom\InsetSpace ~
18685 : only floats occupying less than 30\InsetSpace \thinspace{}
18686 % of the page can be placed at the bottom
18697 \begin_layout Labeling
18698 \labelwidthstring 00.00.0000
18705 : only if more than 50\InsetSpace \thinspace{}
18706 % of the page are occupied by floats, several floats
18707 can be set together on a page.
18717 \begin_layout Standard
18718 If you don't like these rules, you can ignore them by using the additional
18721 Ignore\InsetSpace ~
18727 You can also redefine the rules with LaTeX-commands that are given in parenthese
18728 s behind the rules description above.
18729 To increase for example the often too small default of the bottom-rule
18730 to 50\InsetSpace \thinspace{}
18731 % of the page, add this line to your document preamble:
18734 \begin_layout Standard
18741 bottomfraction}{0.5}
18744 \begin_layout Standard
18745 Sometimes you might need, under all circumstances, a float to be placed
18746 exactly at the position where it is inserted.
18747 For this case you can use the option
18753 Use this option very rarely and only if the document is nearly ready to
18755 Because the float is then no longer able to
18756 \begin_inset Quotes eld
18760 \begin_inset Quotes erd
18763 when you change your document and this will often destroy the page layout.
18766 \begin_layout Standard
18767 There are no placement options for text wrap floats, because they are always
18768 surrounded by the text of a certain paragraph.
18769 \begin_inset VSpace bigskip
18775 \begin_layout Standard
18776 Sometimes you have the problem that a float is placed at the top of a page
18777 while its corresponding section starts at the middle of the page, so that
18778 the reader could think the float is part of the previous section.
18779 To avoid this the LaTeX-command
18783 suppressf\SpecialChar \textcompwordmark{}
18787 It suppresses a given float placement for the page where it is inserted
18788 and can therefore be used to avoid that floats could be set before a section
18790 To get this, add these commands to your document preamble:
18793 \begin_layout Standard
18810 suppressf\SpecialChar \textcompwordmark{}
18816 \begin_layout Standard
18817 You can define the same for all section headings, like chapters and subsections.
18818 This definition is not recommended to be used for small text parts like
18819 subsubsections because LaTeX may then have problems to find a suitable
18823 \begin_layout Standard
18824 \begin_inset VSpace bigskip
18827 In some cases it is required to have all figures/tables at the end of the
18829 For this purpose the LaTeX-package
18831 endf\SpecialChar \textcompwordmark{}
18835 \begin_inset LatexCommand index
18836 name "LaTeX-packages ! endfloat"
18841 It puts all figure and table floats at the end of the document into own
18843 At the original float position a text hint like
18844 \begin_inset Quotes eld
18849 [Figure\InsetSpace ~
18853 \begin_inset Quotes erd
18857 The endfloat-package is loaded in the preamble with the line
18860 \begin_layout Standard
18865 usepackage[options]{endf\SpecialChar \textcompwordmark{}
18869 \begin_layout Standard
18870 There are various package options to format the created figure/table sections.
18871 For more information we refer to the
18873 endf\SpecialChar \textcompwordmark{}
18877 \begin_inset LatexCommand cite
18885 \begin_inset Note Greyedout
18888 \begin_layout Standard
18891 Note: endf\SpecialChar \textcompwordmark{}
18894 doesn't provide an automatic translation for the text hint, you have to
18895 do this manually, see section\InsetSpace ~
18897 \begin_inset LatexCommand cite
18910 \begin_inset Note Greyedout
18913 \begin_layout Standard
18918 There is currently a bug in
18920 endf\SpecialChar \textcompwordmark{}
18923 when the caption contains a German
18924 \begin_inset Quotes eld
18928 \begin_inset Quotes erd
18932 Use in this case the command
18933 \begin_inset Quotes eld
18943 \begin_inset Quotes erd
18947 \begin_inset Quotes eld
18951 \begin_inset Quotes erd
18962 \begin_layout Standard
18963 \begin_inset VSpace bigskip
18966 For more details about float placements, have a look at LaTeX books,
18967 \begin_inset LatexCommand cite
18968 key "latexcompanion,latexguide,latexbook"
18975 \begin_layout Section
18977 \begin_inset LatexCommand label
18978 name "sec:Rotated-Floats"
18983 \begin_inset LatexCommand index
18984 name "Floats ! Rotating"
18991 \begin_layout Standard
18992 Especially for wide tables you might have floats rotated.
18993 To rotate a whole float including the caption, right-click on the float-box
18996 Rotate\InsetSpace ~
19002 \begin_layout Standard
19003 Rotated floats are always placed on its own page (or column, when you have
19004 a two-column document).
19005 They are normally rotated so that you can read them from the outside margin
19006 -- to the left on even pages, to the right on odd pages.
19009 \begin_layout Standard
19010 Referencing rotated floats is the same like for normal floats, the caption
19011 format is also the same: Table\InsetSpace ~
19013 \begin_inset LatexCommand ref
19014 reference "tab:Rotated-table"
19018 is an example of a rotated table float.
19021 \begin_layout Standard
19022 \begin_inset Note Greyedout
19025 \begin_layout Standard
19030 Not all DVI-viewers are able to display rotated floats.
19038 \begin_layout Standard
19039 \begin_inset Float table
19044 \begin_layout Standard
19045 \begin_inset Caption
19047 \begin_layout Standard
19048 \begin_inset LatexCommand label
19049 name "tab:Rotated-table"
19061 \begin_layout Standard
19063 \begin_inset Tabular
19064 <lyxtabular version="3" rows="1" columns="5">
19066 <column alignment="center" valignment="top" leftline="true" width="0">
19067 <column alignment="center" valignment="top" leftline="true" width="0">
19068 <column alignment="center" valignment="top" leftline="true" width="0">
19069 <column alignment="center" valignment="top" leftline="true" width="0">
19070 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19071 <row topline="true" bottomline="true">
19072 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19075 \begin_layout Standard
19081 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19084 \begin_layout Standard
19090 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19093 \begin_layout Standard
19099 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19102 \begin_layout Standard
19108 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19111 \begin_layout Standard
19130 \begin_layout Section
19132 \begin_inset LatexCommand index
19133 name "Caption ! Formatting"
19138 \begin_inset LatexCommand index
19139 name "Floats ! Caption Formatting"
19144 \begin_inset LatexCommand index
19145 name "LaTeX-packages ! caption"
19150 \begin_inset LatexCommand label
19151 name "sec:Caption-Formatting"
19158 \begin_layout Standard
19163 environment is the default paragraph environment for
19168 On the LyX screen captions appear as label, e.\InsetSpace \thinspace{}
19171 \begin_inset Quotes eld
19179 \begin_inset Quotes erd
19182 followed by the caption text.
19184 \begin_inset Quotes eld
19188 \begin_inset Quotes erd
19191 is substituted in the printed output by the actual reference number.
19192 By default the label and the number are in the same font as the caption
19193 text and a colon follows the number to divide then label from the text.
19194 This caption format is not suitable for all document formats.
19198 \begin_layout Standard
19199 To change the default caption format, load the LaTeX-package
19204 \begin_inset LatexCommand index
19205 name "LaTeX-packages ! caption"
19209 in the document preamble with this line:
19212 \begin_layout Standard
19217 usepackage[format definition]{caption}
19220 \begin_layout Standard
19221 To have for example the label and the number in sans-serif bold font and
19222 the table captions always above the table like in this document, use the
19226 \begin_layout Standard
19231 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
19234 \begin_layout Standard
19235 You can also define different caption formats for the different float types.
19236 In this case load the
19240 package without format specific options and define the different formats
19241 with the help of the command
19244 \begin_layout Standard
19249 captionsetup[float type]{format definition}
19252 \begin_layout Standard
19253 in the document preamble.
19254 For example the caption formats of Figure\InsetSpace ~
19256 \begin_inset LatexCommand ref
19257 reference "fig:This-is-an-fig"
19261 and Table\InsetSpace ~
19263 \begin_inset LatexCommand ref
19264 reference "tab:This-is-an-tab"
19268 can be created using these commands in the document preamble:
19271 \begin_layout Standard
19276 usepackage[tableposition=top]{caption}
19284 captionsetup[f\SpecialChar \textcompwordmark{}
19285 igure]{labelfont={tt}, textfont=it, indention=1cm,%
19291 \begin_layout Standard
19299 captionsetup[figure]
19310 captionsetup[table]{labelfont={bf,sf}}
19313 \begin_layout Standard
19314 \begin_inset Note Greyedout
19317 \begin_layout Standard
19326 has no effect when a
19331 \begin_inset LatexCommand index
19332 name "LaTeX-packages ! koma-script"
19336 document class is used.
19337 In this case the document class option
19349 \begin_layout Standard
19350 For more information about the package
19354 we refer to its documentation
19355 \begin_inset LatexCommand cite
19356 key "caption,caption-de"
19363 \begin_layout Standard
19364 To change the label name from e.g.
19366 \begin_inset Quotes eld
19370 \begin_inset Quotes erd
19374 \begin_inset Quotes eld
19378 \begin_inset Quotes erd
19381 use this preamble command:
19384 \begin_layout Standard
19391 fnum@figure}{Image~
19396 \begin_layout Standard
19403 inserts the figure number and
19406 \begin_inset Quotes eld
19412 \begin_inset Quotes erd
19415 creates a protected space.
19418 \begin_layout Standard
19419 \begin_inset VSpace bigskip
19427 \begin_inset LatexCommand index
19428 name "LaTeX-packages ! koma-script"
19434 article (koma-script)
19442 letter (koma-script)
19446 report (koma-script)
19448 \InsetSpace \thinspace{}
19449 ), you can alternatively to the
19457 's built-in command
19464 For example, to have the caption label in bold, add this command to your
19468 \begin_layout Standard
19473 setkomafont{captionlabel}{
19478 \begin_layout Standard
19479 For more information about
19490 \begin_inset LatexCommand cite
19491 key "koma-script,koma-script-de"
19498 \begin_layout Standard
19502 \begin_layout Standard
19506 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
19513 \begin_inset Note Note
19516 \begin_layout Standard
19517 The caption format is changed only for this example.
19525 \begin_layout Standard
19526 \begin_inset Float figure
19532 \begin_layout Standard
19534 \begin_inset Graphics
19535 filename clipart/mobius.eps
19544 \begin_layout Standard
19545 \begin_inset Caption
19547 \begin_layout Standard
19548 \begin_inset LatexCommand label
19549 name "fig:This-is-an-fig"
19553 This is an example figure caption that is longer than one line to show the
19554 different caption format.
19555 Here a self-defined caption format is used.
19568 \begin_layout Standard
19572 \begin_layout Standard
19576 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
19585 \begin_layout Standard
19586 \begin_inset Float table
19592 \begin_layout Standard
19593 \begin_inset Caption
19595 \begin_layout Standard
19596 \begin_inset LatexCommand label
19597 name "tab:This-is-an-tab"
19601 This is an example table caption that is longer than one line to show the
19602 different caption format.
19603 Here the standard caption format for tables in this document is used.
19611 \begin_layout Standard
19613 \begin_inset Tabular
19614 <lyxtabular version="3" rows="1" columns="5">
19616 <column alignment="center" valignment="top" leftline="true" width="0">
19617 <column alignment="center" valignment="top" leftline="true" width="0">
19618 <column alignment="center" valignment="top" leftline="true" width="0">
19619 <column alignment="center" valignment="top" leftline="true" width="0">
19620 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19621 <row topline="true" bottomline="true">
19622 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19625 \begin_layout Standard
19631 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19634 \begin_layout Standard
19640 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19643 \begin_layout Standard
19649 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19652 \begin_layout Standard
19658 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19661 \begin_layout Standard
19680 \begin_layout Section
19682 \begin_inset LatexCommand index
19683 name "Caption ! Placement"
19688 \begin_inset LatexCommand index
19689 name "Floats ! Caption Placement"
19694 \begin_inset LatexCommand label
19695 name "sec:Caption-Placement"
19702 \begin_layout Standard
19703 The common caption placement rule is:
19706 \begin_layout Description
19707 Figure: Caption is set below the figure
19710 \begin_layout Description
19711 Table: Caption is set above the table
19714 \begin_layout Standard
19715 Having the caption above the table is unfortunately not supported in LaTeX's
19717 That means if you are using the document classes
19733 there will be no space between the caption and the table.
19734 To insert the needed space, add the following option to the load command
19735 of the LaTeX-package
19739 in your document preamble
19743 \begin_layout Standard
19744 See section\InsetSpace ~
19746 \begin_inset LatexCommand ref
19747 reference "sec:Caption-Formatting"
19751 for more information of the package
19763 \begin_layout Standard
19769 \begin_layout Standard
19775 \begin_inset LatexCommand index
19776 name "LaTeX-packages ! koma-script"
19782 article (koma-script)
19790 letter (koma-script)
19794 report (koma-script)
19796 \InsetSpace \thinspace{}
19797 ), you can alternatively to the
19801 package set the document class option
19805 , or you can use the environment
19807 caption\InsetSpace ~
19817 \begin_layout Standard
19818 \begin_inset VSpace bigskip
19821 It is also possible to set the caption beside a figure or table.
19822 To get this the LaTeX-package
19827 \begin_inset LatexCommand index
19828 name "LaTeX-packages ! sidecap"
19832 has to be loaded in the document preamble with the line
19835 \begin_layout Standard
19840 usepackage[option]{sidecap}
19843 \begin_layout Standard
19844 If you set no option, the caption is placed on the side of the outer page
19845 margin -- to the right on odd pages, to the left on even pages.
19846 You can change the placement to inner margin with the option
19851 To force the placement always to the right or left, use the option
19862 \begin_layout Standard
19863 To place in LyX the caption of a float on the side, it is necessary to add
19864 these commands to the document preamble:
19867 \begin_layout Standard
19873 \begin_layout Standard
19886 \begin_layout Standard
19907 \begin_layout Standard
19928 \begin_layout Standard
19939 renewenvironment{table}{
19946 \begin_layout Standard
19959 \begin_layout Standard
19980 \begin_layout Standard
19998 \begin_layout Standard
20011 \begin_layout Standard
20026 f\SpecialChar \textcompwordmark{}
20033 \begin_layout Standard
20046 MyEndf\SpecialChar \textcompwordmark{}
20049 endf\SpecialChar \textcompwordmark{}
20056 \begin_layout Standard
20067 renewenvironment{f\SpecialChar \textcompwordmark{}
20070 begin{SCf\SpecialChar \textcompwordmark{}
20073 end{SCf\SpecialChar \textcompwordmark{}
20077 \begin_layout Standard
20090 \begin_layout Standard
20103 f\SpecialChar \textcompwordmark{}
20112 \begin_layout Standard
20125 endf\SpecialChar \textcompwordmark{}
20128 MyEndf\SpecialChar \textcompwordmark{}
20132 \begin_layout Standard
20138 \begin_layout Standard
20139 The commands allow you to redefine the floats so that the caption is set
20141 For figure floats use the command
20144 \begin_layout Standard
20152 \begin_layout Standard
20153 in ERT before the float.
20154 Behind the float insert the command
20157 \begin_layout Standard
20165 \begin_layout Standard
20166 in ERT to get back to the original float definition.
20169 \begin_layout Standard
20170 For table floats use the corresponding commands
20173 \begin_layout Standard
20187 \begin_layout Standard
20188 Figure\InsetSpace ~
20190 \begin_inset LatexCommand ref
20191 reference "fig:cap-beside-fig"
20195 and Table\InsetSpace ~
20197 \begin_inset LatexCommand ref
20198 reference "tab:cap-beside-tab"
20202 are examples where the caption is set beside.
20205 \begin_layout Standard
20206 You can see in the examples that the caption text appears at the top of
20207 the floats for table floats and at the bottom for figure floats.
20208 To change this, you can use the command
20211 \begin_layout Standard
20216 sidecaptionvpos{float type}{placement}
20219 \begin_layout Standard
20220 in the document preamble or in ERT before the float.
20221 The float type is either
20229 , the placement can be
20230 \begin_inset Quotes eld
20238 \begin_inset Quotes erd
20242 \begin_inset Quotes eld
20250 \begin_inset Quotes erd
20254 \begin_inset Quotes eld
20262 \begin_inset Quotes erd
20266 To have for example the caption of figure floats vertically centered, use
20270 \begin_layout Standard
20275 sidecaptionvpos{f\SpecialChar \textcompwordmark{}
20279 \begin_layout Standard
20280 This was used for Figure\InsetSpace ~
20282 \begin_inset LatexCommand ref
20283 reference "fig:cap-beside-fig-2"
20290 \begin_layout Standard
20291 \begin_inset VSpace defskip
20294 For more information about the package
20298 we refer to its documentation
20299 \begin_inset LatexCommand cite
20307 \begin_layout Standard
20308 \begin_inset Note Greyedout
20311 \begin_layout Standard
20321 \begin_inset LatexCommand index
20322 name "LaTeX-packages ! hypcap"
20326 , described in section\InsetSpace ~
20328 \begin_inset LatexCommand ref
20329 reference "sub:Reference-Position"
20333 , has no effect on floats with the caption set beside.
20341 \begin_layout Standard
20345 \begin_layout Standard
20357 \begin_layout Standard
20358 \begin_inset Float figure
20363 \begin_layout Standard
20364 \begin_inset Graphics
20365 filename clipart/escher-lsd.eps
20373 \begin_layout Standard
20374 \begin_inset Caption
20376 \begin_layout Standard
20377 \begin_inset LatexCommand label
20378 name "fig:cap-beside-fig"
20382 This is a caption beside a figure.
20395 \begin_layout Standard
20399 \begin_layout Standard
20411 \begin_layout Standard
20412 \begin_inset Float table
20417 \begin_layout Standard
20418 \begin_inset Caption
20420 \begin_layout Standard
20421 \begin_inset LatexCommand label
20422 name "tab:cap-beside-tab"
20426 This is a caption beside a table.
20434 \begin_layout Standard
20435 \begin_inset Tabular
20436 <lyxtabular version="3" rows="4" columns="5">
20438 <column alignment="center" valignment="top" leftline="true" width="0">
20439 <column alignment="center" valignment="top" leftline="true" width="0">
20440 <column alignment="center" valignment="top" leftline="true" width="0">
20441 <column alignment="center" valignment="top" leftline="true" width="0">
20442 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
20443 <row topline="true">
20444 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20447 \begin_layout Standard
20453 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20456 \begin_layout Standard
20462 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20465 \begin_layout Standard
20471 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20474 \begin_layout Standard
20480 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20483 \begin_layout Standard
20490 <row topline="true">
20491 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20494 \begin_layout Standard
20500 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20503 \begin_layout Standard
20509 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20512 \begin_layout Standard
20518 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20521 \begin_layout Standard
20527 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20530 \begin_layout Standard
20537 <row topline="true">
20538 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20541 \begin_layout Standard
20547 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20550 \begin_layout Standard
20556 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20559 \begin_layout Standard
20565 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20568 \begin_layout Standard
20574 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20577 \begin_layout Standard
20584 <row topline="true" bottomline="true">
20585 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20588 \begin_layout Standard
20594 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20597 \begin_layout Standard
20603 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20606 \begin_layout Standard
20612 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20615 \begin_layout Standard
20621 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20624 \begin_layout Standard
20643 \begin_layout Standard
20647 \begin_layout Standard
20659 \begin_layout Standard
20663 \begin_layout Standard
20667 sidecaptionvpos{figure}{c}
20673 \begin_inset Float figure
20678 \begin_layout Standard
20679 \begin_inset Graphics
20680 filename clipart/escher-lsd.eps
20688 \begin_layout Standard
20689 \begin_inset Caption
20691 \begin_layout Standard
20692 \begin_inset LatexCommand label
20693 name "fig:cap-beside-fig-2"
20697 This is a vertically centered caption beside a figure.
20710 \begin_layout Standard
20714 \begin_layout Standard
20726 \begin_layout Section
20728 \begin_inset LatexCommand label
20729 name "sec:Listings-of-Floats"
20734 \begin_inset LatexCommand index
20735 name "Floats ! Listings"
20742 \begin_layout Standard
20743 Similar to the the table of contents where the sections of the document
20744 are listed, there are listings for all float types, like the figures of
20746 You can insert them via the
20748 Insert\SpecialChar \menuseparator
20756 \begin_layout Standard
20757 The list entries are the float captions or its short title, the float number,
20758 and the page number where they appear in the document.
20761 \begin_layout Standard
20762 You can find the list of figures and tables at the end of this document.
20765 \begin_layout Chapter
20769 \begin_layout Section
20773 \begin_layout Standard
20786 \begin_layout Standard
20794 \begin_inset LatexCommand label
20795 name "sec:LyX-Notes"
20800 \begin_inset LatexCommand index
20801 name "Notes ! LyX Notes"
20806 \begin_inset Note Note
20809 \begin_layout Standard
20812 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
20813 are displayed wrongly in PDF-bookmarks.
20814 For more information about this, have a look at
20815 \begin_inset LatexCommand cite
20828 \begin_layout Standard
20829 Notes are inserted with the toolbar button
20830 \begin_inset Graphics
20831 filename ../images/note-insert.xpm
20838 Insert\SpecialChar \menuseparator
20842 There are three types of notes:
20845 \begin_layout Description
20847 Note This note type is for internal notes that won't appear in the output.
20848 Its note-box looks like this:
20853 \begin_inset Graphics
20854 filename clipart/LyXNoteImageQt4.png
20861 \begin_inset Note Note
20864 \begin_layout Standard
20865 This is text in a note box that doesn't appear in the output.
20873 \begin_layout Description
20874 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
20875 ent, when you export the document to LaTeX via the menu
20877 File\SpecialChar \menuseparator
20878 Export\SpecialChar \menuseparator
20879 LaTeX (pdflatex) / LaTeX (plain)
20882 Its note-box looks like this:
20887 \begin_inset Graphics
20888 filename clipart/CommentNoteImageQt4.png
20895 \begin_inset Note Comment
20898 \begin_layout Standard
20899 This is text in a note box that only appears as comment in LaTeX-files.
20907 \begin_layout Description
20908 Greyed\InsetSpace ~
20909 Out This note will appear in the output as grey text.
20910 Its note-box looks like this:
20915 \begin_inset Graphics
20916 filename clipart/GreyedOutNoteImageQt4.png
20928 \begin_layout Standard
20932 renewenvironment{lyxgreyedout}
20935 \begin_layout Standard
20939 textcolor[gray]{0.8}
20949 \begin_inset Note Greyedout
20952 \begin_layout Standard
20957 \begin_layout Standard
20958 This is an example footnote within a greyed out note.
20963 of a comment that appears in the output as grey text.
20972 \begin_layout Standard
20976 renewenvironment{lyxgreyedout}
20979 \begin_layout Standard
20993 \begin_inset Note Note
20996 \begin_layout Standard
20997 The greyed out note is here redefined to show it with the original LyX definitio
20998 n because greyed out notes are redefined in the preamble of this document,
20999 as described below, to have blue text.
21008 As you can see in the example, the first line of greyed out notes is a bit
21009 indented and greyed out notes can have footnotes.
21012 \begin_layout Description
21013 Framed This note will appear in the output as framed text.
21014 Its note-box looks like this:
21019 \begin_inset Graphics
21020 filename clipart/FramedNoteImageQt4.png
21027 \begin_inset Note Framed
21030 \begin_layout Standard
21031 This is text in a note box that appears framed in the output.
21036 In contrary to framed boxes
21040 \begin_layout Standard
21041 Framed boxes are described in section\InsetSpace ~
21043 \begin_inset LatexCommand ref
21044 reference "sec:Framed-Boxes"
21053 the frame uses always the whole text width and the note is set into its
21057 \begin_layout Description
21058 Shaded This note will appear in the output with red background color.
21059 Its note box looks like this:
21064 \begin_inset Graphics
21065 filename clipart/ShadedNoteImageQt4.png
21072 \begin_inset Note Shaded
21075 \begin_layout Standard
21076 This text in a note box appears in the output with red background.
21081 In contrary to colored boxes
21085 \begin_layout Standard
21086 Colored boxes are described in section\InsetSpace ~
21088 \begin_inset LatexCommand ref
21089 reference "sec:Colored-Boxes"
21098 the note uses always the whole text width and the note is set into its
21102 \begin_layout Standard
21103 \begin_inset VSpace bigskip
21106 When you use the toolbar button to insert notes, a
21112 You can switch between the three note types by right-clicking on the note-box.
21117 If you want to turn existing text into a note, mark it and click on the
21133 \begin_layout Standard
21134 \begin_inset VSpace bigskip
21137 You can change the text color of the greyed out notes in the preamble with
21138 the following command:
21141 \begin_layout Standard
21146 renewenvironment{lyxgreyedout}
21152 \begin_layout Standard
21170 \begin_layout Standard
21171 The available colors and the method to define own colors is explained in
21172 section\InsetSpace ~
21174 \begin_inset LatexCommand ref
21175 reference "sec:Colored-Tables"
21182 \begin_layout Standard
21183 Notes that appear in blue in this document are set using greyed out notes
21187 \begin_layout Standard
21188 \begin_inset VSpace bigskip
21194 \begin_layout Standard
21203 notes can be set in the
21210 \begin_layout Standard
21211 The default frame width for
21215 notes is 0.4\InsetSpace \thinspace{}
21216 pt; it can be changed by changing the size
21223 The default space between the note content and the frame is 9\InsetSpace \thinspace{}
21225 be changed by changing the size
21232 For example the frame appearance of the following
21236 note is set with the ERT commands
21239 \begin_layout Standard
21249 \begin_layout Standard
21253 \begin_layout Standard
21265 \begin_inset Note Framed
21268 \begin_layout Standard
21282 \begin_layout Standard
21296 \begin_layout Standard
21297 \begin_inset VSpace bigskip
21303 \begin_layout Standard
21308 notes the default space between the note content and the note border is
21309 3\InsetSpace \thinspace{}
21310 pt; it can be changed by changing the size
21318 The default background color red can be changed with the command
21322 def\SpecialChar \textcompwordmark{}
21330 def\SpecialChar \textcompwordmark{}
21333 command is explained in section\InsetSpace ~
21335 \begin_inset LatexCommand ref
21336 reference "sec:Colored-Tables"
21344 \begin_layout Standard
21351 \SpecialChar \textcompwordmark{}
21356 requires the LaTeX-package
21360 in the preamble, see section\InsetSpace ~
21362 \begin_inset LatexCommand ref
21363 reference "sec:Colored-Boxes"
21375 \begin_layout Standard
21376 For example the appearance of the following
21380 note is set with the ERT commands
21383 \begin_layout Standard
21396 def\SpecialChar \textcompwordmark{}
21397 inecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21400 \begin_layout Standard
21404 \begin_layout Standard
21417 \begin_layout Standard
21421 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21427 \begin_inset Note Shaded
21430 \begin_layout Standard
21433 This is yellow text in a
21443 note with darkgreen background.
21452 \begin_layout Standard
21465 \begin_layout Standard
21469 definecolor{shadecolor}{rgb}{1,0,0}
21477 \begin_layout Section
21479 \begin_inset LatexCommand label
21480 name "sec:Footnotes"
21485 \begin_inset LatexCommand index
21486 name "Notes ! Footnotes"
21491 \begin_inset LatexCommand index
21499 \begin_layout Standard
21500 Footnotes can be inserted using the toolbar button
21501 \begin_inset Graphics
21502 filename ../images/footnote-insert.xpm
21509 Insert\SpecialChar \menuseparator
21521 then the following footnote-box:
21522 \begin_inset Graphics
21523 filename clipart/footnoteQt4.png
21532 where you can enter the footnote text.
21533 If you want to turn existing text into a footnote, mark it and click on
21549 \begin_layout Standard
21550 Here is an example footnote:
21558 \begin_layout Standard
21559 \begin_inset LatexCommand label
21560 name "foot:This-is-an"
21564 This is an example footnote.
21577 \begin_layout Standard
21581 newcounter{MyRepeatFoot}
21584 \begin_layout Standard
21588 setcounter{MyRepeatFoot}{
21598 \begin_layout Standard
21599 The footnote will appear in the output as a superscript number at the text
21600 position where the footnote box is placed.
21601 The footnote text is placed at the bottom of the current page.
21602 The footnote number is calculated by LaTeX, the numbers are consecutive.
21603 It depends on your document-class, if the footnote number is reset for
21607 \begin_layout Standard
21608 Footnotes can be referenced like floats: Insert a label into the footnote
21609 and cross-reference this label in the text as described in section\InsetSpace ~
21611 \begin_inset LatexCommand ref
21612 reference "sec:Referencing-Floats"
21618 This is a cross-reference of Footnote\InsetSpace ~
21620 \begin_inset LatexCommand ref
21621 reference "foot:This-is-an"
21628 \begin_inset Note Greyedout
21631 \begin_layout Standard
21636 LyX doesn't provide a prefix for labels in footnotes, so you have to insert
21637 e.\InsetSpace \thinspace{}
21642 \begin_inset Quotes eld
21648 \begin_inset Quotes erd
21651 manually when you want to use the reference style
21653 Formatted\InsetSpace ~
21664 \begin_layout Standard
21665 \begin_inset VSpace defskip
21668 To use footnotes within tables, you have to use minipages, see section\InsetSpace ~
21670 \begin_inset LatexCommand ref
21671 reference "sec:Minipages"
21676 Footnotes within longtables are described in section\InsetSpace ~
21678 \begin_inset LatexCommand ref
21679 reference "sub:Footnotes-in-Longtables"
21686 \begin_layout Standard
21687 \begin_inset VSpace defskip
21690 To create only a mark for a footnote, use the command
21694 footnotemark[number]
21697 This is used when you have the same annotation several times in a text
21698 but doesn't want to print the footnote text every time.
21701 the number of the repeating footnote while you are writing the text, you
21702 have to store its number.
21703 For the following footnote mark example, these commands were inserted in
21704 ERT behind Footnote\InsetSpace ~
21706 \begin_inset LatexCommand ref
21707 reference "foot:This-is-an"
21711 to store the footnote number:
21714 \begin_layout Standard
21719 newcounter{MyRepeatFoot}
21723 setcounter{MyRepeatFoot}{
21728 \begin_layout Standard
21729 The footnote mark was then created with this command:
21732 \begin_layout Standard
21742 \begin_layout Standard
21743 Here is an example footnote mark:
21751 \begin_layout Standard
21765 \begin_layout Subsection
21767 \begin_inset LatexCommand label
21768 name "sub:Footnote-Numbering"
21773 \begin_inset LatexCommand index
21774 name "Footnotes ! Numbering"
21781 \begin_layout Standard
21782 If you want to have footnotes numbered in the scheme
21783 \begin_inset Quotes eld
21787 \begin_inset Quotes erd
21790 , add the following command to your document preamble:
21793 \begin_layout Standard
21798 numberwithin{footnote}{chapter}
21801 \begin_layout Standard
21802 To be able to use the command
21813 in the document settings the option
21823 \begin_layout Standard
21827 \begin_layout Standard
21831 numberwithin{footnote}{chapter}
21836 This is another example footnote:
21842 \begin_layout Standard
21843 This is a footnote numbered in the scheme
21844 \begin_inset Quotes eld
21848 \begin_inset Quotes erd
21862 \begin_layout Standard
21866 numberwithin{footnote}{part}
21874 \begin_layout Standard
21875 \begin_inset VSpace bigskip
21881 \begin_layout Standard
21882 To reset the footnote number back to 1 after each section
21884 , add this command to your document preamble:
21887 \begin_layout Standard
21892 @addtoreset{footnote}{section}
21895 \begin_layout Standard
21896 \begin_inset VSpace bigskip
21899 The following preamble command changes the footnote numbering style to small
21903 \begin_layout Standard
21915 \begin_layout Standard
21919 \begin_layout Standard
21932 This is a footnote with roman numbering:
21936 \begin_layout Standard
21937 This is an example footnote with roman numbering.
21946 \begin_layout Standard
21962 \begin_layout Standard
21963 To change the numbering style to capital roman numerals replace in the command
21978 \begin_inset Quotes eld
21982 \begin_inset Quotes erd
21985 footnotes with capital or small Latin letters use
21999 \begin_inset Quotes eld
22003 \begin_inset Quotes erd
22006 footnotes with symbols use
22015 \begin_layout Standard
22016 \begin_inset Note Greyedout
22019 \begin_layout Standard
22024 You can only number 26 footnotes with Latin letters, because this numbering
22025 is limited to single letters.
22033 \begin_inset Note Greyedout
22036 \begin_layout Standard
22041 You can only number 9 footnotes with symbols.
22049 \begin_layout Standard
22050 To return to the default numbering style when you changed to another one,
22063 in the command above.
22066 \begin_layout Subsection
22068 \begin_inset LatexCommand index
22069 name "Footnotes ! Placement"
22076 \begin_layout Standard
22077 If you have several footnotes in one page, they appear without vertical
22078 space between them at the bottom of the page.
22079 To make them better readable you can e.\InsetSpace \thinspace{}
22081 add 1.5\InsetSpace \thinspace{}
22082 mm space with the following
22086 \begin_layout Standard
22108 \begin_layout Standard
22109 \begin_inset VSpace bigskip
22112 In a two-column document the footnotes appear at the bottom of every column,
22113 see Figure\InsetSpace ~
22115 \begin_inset LatexCommand ref
22116 reference "fig:Standard-footnote-placement"
22121 If the footnotes should only appear at the bottom of the right column,
22122 as in Figure\InsetSpace ~
22124 \begin_inset LatexCommand ref
22125 reference "fig:Footnote-placement-in"
22129 , use the LaTeX-package
22134 \begin_inset LatexCommand index
22135 name "LaTeX-packages ! ftnright"
22139 with this command in the document preamble:
22142 \begin_layout Standard
22147 usepackage{ftnright}
22150 \begin_layout Standard
22151 \begin_inset Float figure
22157 \begin_layout Standard
22161 \begin_layout Standard
22171 \begin_inset Graphics
22172 filename clipart/without_fntright.pdf
22181 \begin_layout Standard
22191 \begin_layout Standard
22192 \begin_inset Caption
22194 \begin_layout Standard
22195 \begin_inset LatexCommand label
22196 name "fig:Standard-footnote-placement"
22200 Standard footnote placement in two-column documents.
22213 \begin_layout Standard
22214 \begin_inset Float figure
22220 \begin_layout Standard
22224 \begin_layout Standard
22234 \begin_inset Graphics
22235 filename clipart/with_fntright.pdf
22244 \begin_layout Standard
22254 \begin_layout Standard
22255 \begin_inset Caption
22257 \begin_layout Standard
22258 \begin_inset LatexCommand label
22259 name "fig:Footnote-placement-in"
22263 Footnote placement in two-column documents when the LaTeX-package
22280 \begin_layout Standard
22281 \begin_inset VSpace bigskip
22284 In some scientific literature it is usual to collect the footnotes and print
22285 them in a separate paragraph at the the end of a section, like in Figure\InsetSpace ~
22287 \begin_inset LatexCommand ref
22288 reference "fig:Endnotes----footnotes"
22293 They are then so called
22294 \begin_inset Quotes eld
22298 \begin_inset Quotes erd
22302 To use endnotes instead of footnotes in your document, load the LaTeX-package
22308 \begin_inset LatexCommand index
22309 name "LaTeX-packages ! endnotes"
22313 with the document preamble lines
22316 \begin_layout Standard
22321 usepackage{endnotes}
22332 \begin_layout Standard
22333 To insert the collected footnotes, insert the command
22336 \begin_layout Standard
22344 \begin_layout Standard
22345 in ERT at the the end of a section or chapter.
22348 \begin_layout Standard
22349 \begin_inset Float figure
22354 \begin_layout Standard
22359 \begin_layout Standard
22369 \begin_inset Graphics
22370 filename clipart/endnotes.pdf
22378 \begin_layout Standard
22388 \begin_layout Standard
22389 \begin_inset Caption
22391 \begin_layout Standard
22392 \begin_inset LatexCommand label
22393 name "fig:Endnotes----footnotes"
22397 Endnotes -- footnotes are printed in a separate paragraph at the end of
22398 sections or chapters.
22411 \begin_layout Standard
22412 \begin_inset VSpace defskip
22415 The paragraph heading for the endnotes isn't automatically translated into
22416 the document language, this must be done manually.
22417 The following preamble command translate the default English name
22418 \begin_inset Quotes eld
22422 \begin_inset Quotes erd
22425 to the German translation
22426 \begin_inset Quotes eld
22430 \begin_inset Quotes erd
22436 \begin_layout Standard
22443 notesname}{Anmerkungen}
22446 \begin_layout Standard
22447 \begin_inset VSpace defskip
22450 The numbering of endnotes can be changed like the footnote numbering as
22451 described in section\InsetSpace ~
22453 \begin_inset LatexCommand ref
22454 reference "sub:Footnote-Numbering"
22458 ; just replace the command
22471 To reset the endnote number use the command
22477 as described in section\InsetSpace ~
22479 \begin_inset LatexCommand ref
22480 reference "sub:Footnote-Numbering"
22484 and replace the command parameter
22495 \begin_layout Standard
22496 To create only a mark for an endnote, use the command
22500 endnotemark[number]
22502 similar to the command
22508 , described in section\InsetSpace ~
22510 \begin_inset LatexCommand ref
22511 reference "sec:Footnotes"
22518 \begin_layout Standard
22519 \begin_inset VSpace bigskip
22522 Footnotes can also be placed in the page margin and the footnote text alignment
22523 can be changed, see the LaTeX-package
22528 \begin_inset LatexCommand index
22529 name "LaTeX-packages ! footmisc"
22534 \begin_inset LatexCommand cite
22539 for more information about this.
22542 \begin_layout Standard
22543 For various further footnote formatting issues have a look at LaTeX-books,
22545 \begin_inset LatexCommand cite
22546 key "latexcompanion,latexguide,latexbook"
22553 \begin_layout Section
22555 \begin_inset LatexCommand index
22556 name "Notes ! Margin Notes"
22563 \begin_layout Standard
22564 Margin notes look and behave in LyX like footnotes.
22565 They are inserted via the menu
22567 Insert\SpecialChar \menuseparator
22568 Marginal\InsetSpace ~
22571 or the toolbar button
22572 \begin_inset Graphics
22573 filename ../images/marginalnote-insert.xpm
22589 \begin_inset Quotes eld
22593 \begin_inset Quotes erd
22596 appears where you can enter the text of the margin note.
22599 \begin_layout Standard
22600 At the side is an example margin note.
22604 \begin_inset Marginal
22607 \begin_layout Standard
22608 This is a margin note.
22616 \begin_layout Standard
22617 Margin notes appear at the right side in single-sided documents.
22618 In double-sided documents they appear in the outer margin -- left on even
22619 pages, right on odd pages.
22620 The text of margin notes is aligned opposite to the outer margin -- right-align
22621 ed when the note appears in the left margin.
22622 The first line of the margin note is placed at the position of the text
22623 line where it is inserted in the document.
22626 \begin_layout Standard
22627 \begin_inset VSpace bigskip
22630 To place the margin note in the inner margin, add the command
22633 \begin_layout Standard
22641 \begin_layout Standard
22642 in ERT before a margin note.
22643 The new placement is valid for all following margin notes.
22647 \begin_layout Standard
22657 \begin_inset Marginal
22660 \begin_layout Standard
22661 This is a margin note in the inner margin.
22673 \begin_inset Note Greyedout
22676 \begin_layout Standard
22681 There is often not enough space in the inner margin so that the notes are
22682 not correctly displayed in the output.
22690 \begin_layout Standard
22694 \begin_layout Standard
22703 To return to the default placement insert the command
22706 \begin_layout Standard
22714 \begin_layout Standard
22717 \begin_inset Note Greyedout
22720 \begin_layout Standard
22725 The command is ignored when it is within a paragraph where also the command
22740 \begin_layout Standard
22741 \begin_inset VSpace bigskip
22748 \begin_inset Marginal
22751 \begin_layout Standard
22752 AVeryLongMarginParWord that isn't hyphenated.
22760 Similar to the case described in section\InsetSpace ~
22762 \begin_inset LatexCommand ref
22763 reference "sub:Multiple-Lines-in"
22767 , long words cannot be hyphenated when they are the first word in a margin
22769 To avoid this, insert the command
22772 \begin_layout Standard
22780 \begin_layout Standard
22781 in ERT before the word
22785 \begin_inset Marginal
22788 \begin_layout Standard
22792 \begin_layout Standard
22801 AVeryLongMarginParWord that is hyphenated.
22809 \begin_layout Standard
22810 \begin_inset VSpace bigskip
22816 \begin_layout Standard
22817 \begin_inset Note Greyedout
22820 \begin_layout Standard
22825 Margin notes can normally not be used inside tables, floats, and footnotes.
22833 \begin_layout Standard
22834 \begin_inset VSpace bigskip
22840 \begin_layout Standard
22844 \begin_layout Standard
22854 \begin_inset Note Note
22857 \begin_layout Standard
22858 The following section will only be displayed when you have the LaTeX-package
22871 \begin_layout Standard
22872 This restriction can be evaded by using the LaTeX-package
22877 \begin_inset LatexCommand index
22878 name "LaTeX-packages ! marginnote"
22883 By adding these two lines to your document preamble, the command used by
22884 LyX for margin notes is redefined to use the command provided by the
22891 \begin_layout Standard
22896 usepackage{marginnote}
22907 \begin_layout Standard
22908 This is also used in this document because
22912 has another useful feature: You can set a vertical offset for the note.
22913 This is often needed when too many margin notes are too close together
22914 or for a better page layout.
22915 The offset is set in LyX as ERT directly behind the margin note in the
22919 \begin_layout Standard
22925 \begin_layout Standard
22926 where the offset is a length with one of the units listed in Table\InsetSpace ~
22928 \begin_inset LatexCommand ref
22929 reference "tab:Units"
22934 A negative value shifts the note up, a positive value shifts it down.
22938 For example the margin note beside this text line is shifted up 1.5\InsetSpace \thinspace{}
22941 \begin_inset Quotes eld
22951 \begin_inset Quotes erd
22955 \begin_inset Marginal
22958 \begin_layout Standard
22959 This margin note is shifted up 1.5\InsetSpace \thinspace{}
22960 cm from its original position.
22972 \begin_layout Standard
22982 \begin_layout Standard
22983 \begin_inset VSpace defskip
22990 you can also change the alignment of the text in the margin note.
22991 For example the commands
22994 \begin_layout Standard
23001 raggedleftmarginnote}{
23009 raggedrightmarginnote}{
23014 \begin_layout Standard
23015 set the alignment to centered.
23020 raggedleftmarginnote
23022 denotes margin notes that appear at the left side.
23029 \begin_layout Standard
23035 raggedleftmarginnote}{
23040 \begin_layout Standard
23046 raggedrightmarginnote}{
23054 \begin_inset Marginal
23057 \begin_layout Standard
23058 The text of this margin note is centered.
23069 \begin_layout Standard
23076 raggedleftmarginnote}{
23084 raggedrightmarginnote}{
23093 \begin_layout Standard
23099 raggedleftmarginnote}{
23104 \begin_layout Standard
23110 raggedrightmarginnote}{
23120 \begin_layout Standard
23121 \begin_inset VSpace defskip
23124 For the other features of
23128 we refer to its documentation
23129 \begin_inset LatexCommand cite
23137 \begin_layout Standard
23138 \begin_inset VSpace bigskip
23141 You can change the layout of margin notes by redefining its definition.
23142 To create for example a header for all margin notes with the underlined,
23143 sans-serif, and bold header text
23144 \begin_inset Quotes eld
23156 \begin_inset Quotes erd
23159 , add this to your document preamble:
23162 \begin_layout Standard
23185 \begin_layout Standard
23202 underbar{Attention!}}}%
23208 \begin_layout Standard
23226 \begin_layout Standard
23233 \begin_layout Standard
23244 \begin_layout Standard
23255 \begin_layout Standard
23263 underbar{Attention!}}}%
23266 \begin_layout Standard
23280 \begin_inset Marginal
23283 \begin_layout Standard
23284 This is a margin note with a defined heading.
23296 \begin_layout Standard
23310 \begin_layout Standard
23327 \begin_inset Note Note
23330 \begin_layout Standard
23331 The margin note format is changed only for this example.
23339 \begin_layout Standard
23343 \begin_layout Standard
23353 \begin_inset Note Note
23356 \begin_layout Standard
23357 The following will be displayed when the LaTeX-package
23369 \begin_layout Standard
23370 You need to install the LaTeX-package
23374 to see the following part of this section in the output.
23377 \begin_layout Standard
23381 \begin_layout Standard
23393 \begin_layout Chapter
23397 \begin_layout Section
23399 \begin_inset LatexCommand index
23400 name "Boxes ! Introduction"
23407 \begin_layout Standard
23408 Boxes are used to format a block of text.
23409 Boxes can be used to write documents with multiple languages, see section\InsetSpace ~
23411 \begin_inset LatexCommand ref
23412 reference "sec:Minipages"
23416 , to frame texts, see section\InsetSpace ~
23418 \begin_inset LatexCommand ref
23419 reference "sec:Framed-Boxes"
23423 , to prevent words to be hyphenated, see section\InsetSpace ~
23425 \begin_inset LatexCommand ref
23426 reference "sec:Prevent-Hyphenation"
23430 , to align text, see section\InsetSpace ~
23432 \begin_inset LatexCommand ref
23433 reference "sub:Vertical-Alignment"
23437 , or to set the background color of texts, see section\InsetSpace ~
23439 \begin_inset LatexCommand ref
23440 reference "sec:Colored-Boxes"
23447 \begin_layout Standard
23448 Boxes can be inserted with the menu
23450 Insert\SpecialChar \menuseparator
23454 A grey box with the label
23459 \begin_inset Graphics
23460 filename clipart/BoxInsetDefaultQt4.png
23465 , will be inserted.
23466 The box type can be specified by right-clicking on the box.
23467 The appearing box dialog offers the
23485 is the default for new boxes and is explained in section\InsetSpace ~
23487 \begin_inset LatexCommand ref
23488 reference "sec:Minipages"
23496 is described in section\InsetSpace ~
23498 \begin_inset LatexCommand ref
23499 reference "sec:Parboxes"
23506 \begin_layout Standard
23507 Boxes aren't numbered and can therefore not be referenced like floats or
23511 \begin_layout Standard
23512 \begin_inset Note Greyedout
23515 \begin_layout Standard
23520 Due to a bug in LyX you have to insert a protected space behind a box when
23521 you want to separate in a line the box from the following text with a space.
23529 \begin_layout Standard
23530 \begin_inset Note Greyedout
23533 \begin_layout Standard
23538 Boxes must not be the item in an
23554 \begin_layout Standard
23555 \begin_inset Note Greyedout
23558 \begin_layout Standard
23563 For an unknown reason you can only set the
23572 when you use a framed box.
23578 type and without frames are explained in section\InsetSpace ~
23580 \begin_inset LatexCommand ref
23581 reference "sec:Prevent-Hyphenation"
23593 \begin_layout Section
23595 \begin_inset LatexCommand label
23596 name "sec:Box-Dialog"
23601 \begin_inset LatexCommand index
23602 name "Boxes ! Box Dialog"
23607 \begin_inset LatexCommand index
23608 name "Boxes ! Alignment"
23615 \begin_layout Standard
23616 In the box dialog you can adjust the box geometry in the fields
23625 The available units for the geometry are explained in Table\InsetSpace ~
23627 \begin_inset LatexCommand ref
23628 reference "tab:Units"
23637 offers the following additional sizes:
23640 \begin_layout Description
23641 Depth This is the plain text
23642 \begin_inset Quotes eld
23646 \begin_inset Quotes erd
23650 It ignores the total depth when there are multiple text lines in the box:
23657 \begin_inset Box Boxed
23666 height_special "depth"
23669 \begin_layout Standard
23671 Box height set to 1\InsetSpace \thinspace{}
23684 \begin_layout Description
23685 Height This is the heigth of the text that is inside the box.
23686 A value of e.\InsetSpace \thinspace{}
23688 2 for this size will set the box heigth to 2 times the text
23690 \begin_inset Box Boxed
23699 height_special "height"
23702 \begin_layout Standard
23704 Box height set to 2\InsetSpace \thinspace{}
23713 \begin_layout Description
23715 Height This is the Height\InsetSpace \thinspace{}
23716 +\InsetSpace \thinspace{}
23718 \begin_inset Box Boxed
23727 height_special "totalheight"
23730 \begin_layout Standard
23732 Box height set to 1\InsetSpace \thinspace{}
23742 \begin_layout Description
23743 Width This set the width of the box as heigth:
23744 \begin_inset Box Boxed
23753 height_special "width"
23756 \begin_layout Standard
23758 Box height set to 1\InsetSpace \thinspace{}
23767 \begin_layout Standard
23768 \begin_inset VSpace bigskip
23771 When you have chosen an
23776 , the vertical box alignment can be:
23779 \begin_layout Description
23780 Top This is an example text line.
23782 \begin_inset Box Boxed
23791 height_special "totalheight"
23794 \begin_layout Standard
23796 This box is top-aligned.
23802 This is an example text line.
23805 \begin_layout Description
23806 Middle This is an example text line.
23808 \begin_inset Box Boxed
23817 height_special "totalheight"
23820 \begin_layout Standard
23822 This box is middle-aligned.
23828 This is an example text line.
23831 \begin_layout Description
23832 Bottom This is an example text line.
23834 \begin_inset Box Boxed
23843 height_special "totalheight"
23846 \begin_layout Standard
23848 This box is bottom-aligned.
23854 This is an example text line.
23857 \begin_layout Standard
23858 The horizontal box alignment can be set via LyX's paragraph dialog when
23859 you set the box into its own paragraph.
23862 \begin_layout Standard
23863 \begin_inset VSpace bigskip
23866 When you have chosen an
23871 , the box content can be vertical aligned to:
23874 \begin_layout Description
23875 top This is an example text line.
23877 \begin_inset Box Boxed
23886 height_special "totalheight"
23889 \begin_layout Standard
23891 This box text is top-aligned.
23897 This is an example text line.
23900 \begin_layout Description
23901 middle This is an example text line.
23903 \begin_inset Box Boxed
23912 height_special "totalheight"
23915 \begin_layout Standard
23917 This box text is middle-aligned.
23923 This is an example text line.
23926 \begin_layout Description
23927 bottom This is an example text line.
23929 \begin_inset Box Boxed
23938 height_special "totalheight"
23941 \begin_layout Standard
23943 This box text is bottom-aligned.
23949 This is an example text line.
23952 \begin_layout Description
23953 stretch This is an example text line.
23955 \begin_inset Box Boxed
23964 height_special "totalheight"
23967 \begin_layout Standard
23972 \begin_layout Standard
23977 \begin_layout Standard
23985 This is an example text line.
23988 \begin_layout Standard
23989 To stretch the box content, it must consist of more than one paragraph.
23990 In the example above every text line is in an own paragraph.
23993 \begin_layout Standard
23994 \begin_inset VSpace bigskip
23997 To align the box content horizontally you can use LyX's paragraph dialog
23998 when you have chosen an
24006 \begin_layout Standard
24008 \begin_inset Box Boxed
24017 height_special "totalheight"
24020 \begin_layout Standard
24025 \begin_layout Standard
24030 \begin_layout Standard
24040 \begin_layout Standard
24041 If you haven't set an
24046 , you can align the box content horizontally in the box dialog.
24049 \begin_layout Standard
24051 \begin_inset Box Boxed
24060 height_special "totalheight"
24063 \begin_layout Standard
24065 This box text is horizontally stretched.
24073 \begin_layout Section
24075 \begin_inset LatexCommand label
24076 name "sec:Framed-Boxes"
24081 \begin_inset LatexCommand index
24082 name "Boxes ! Frames"
24089 \begin_layout Standard
24090 The frame style of the box can be specified in the box-dialog in the drop-down
24096 The following frame types are possible:
24099 \begin_layout Description
24100 Rectangular\InsetSpace ~
24101 box This draws a rectangle frame around the box.
24102 The frame line thickness has the size of
24110 \begin_inset Box Boxed
24119 height_special "totalheight"
24122 \begin_layout Standard
24132 \begin_layout Description
24135 thin This draws an oval frame around the box.
24136 The frame line thickness has the size 0.4\InsetSpace \thinspace{}
24139 \begin_inset Box ovalbox
24148 height_special "totalheight"
24151 \begin_layout Standard
24161 \begin_layout Description
24164 thick This draws an oval frame around the box.
24165 The frame line thickness has the size 0.8\InsetSpace \thinspace{}
24168 \begin_inset Box Ovalbox
24177 height_special "totalheight"
24180 \begin_layout Standard
24190 \begin_layout Description
24191 Shadow\InsetSpace ~
24192 box This draws a rectangle frame with a shadow around the box.
24193 The frame line thickness has the size of
24199 , the shadow has a width of 4\InsetSpace \thinspace{}
24202 \begin_inset Box Shadowbox
24211 height_special "totalheight"
24214 \begin_layout Standard
24224 \begin_layout Description
24225 Double\InsetSpace ~
24226 box This draws a double-line rectangle frame around the box.
24227 The line thickness of the inner frame is 0.75\InsetSpace \thinspace{}
24234 , the thickness of the outer frame is 1.5\InsetSpace \thinspace{}
24242 The distance between the lines is 1.5\InsetSpace \thinspace{}
24249 \InsetSpace \thinspace{}
24250 +\InsetSpace \thinspace{}
24251 0.5\InsetSpace \thinspace{}
24254 \begin_inset Box Doublebox
24263 height_special "totalheight"
24266 \begin_layout Standard
24276 \begin_layout Standard
24277 \begin_inset VSpace bigskip
24280 LyX's box label will change to the used frame style when you set a frame.
24281 To be able to use the different frame styles, the LaTeX-package
24286 \begin_inset LatexCommand index
24287 name "LaTeX-packages ! fancybox"
24294 \begin_layout Standard
24295 \begin_inset VSpace bigskip
24298 The default value for the size
24304 is 0.4\InsetSpace \thinspace{}
24306 It can be changed with the following command in ERT to e.\InsetSpace \thinspace{}
24308 2\InsetSpace \thinspace{}
24312 \begin_layout Standard
24322 \begin_layout Standard
24326 \begin_layout Standard
24338 \begin_inset Box Boxed
24347 height_special "totalheight"
24350 \begin_layout Standard
24352 Rectangular box with
24358 \InsetSpace \thinspace{}
24359 =\InsetSpace \thinspace{}
24360 2\InsetSpace \thinspace{}
24370 \begin_layout Standard
24384 \begin_layout Standard
24385 \begin_inset VSpace bigskip
24388 The space between the frame and the box content is for all frame styles
24389 by default 3\InsetSpace \thinspace{}
24391 You can change it by setting the length
24398 For example the command
24401 \begin_layout Standard
24411 \begin_layout Standard
24412 sets the value to 10\InsetSpace \thinspace{}
24413 pt, like for the following box:
24416 \begin_layout Standard
24420 \begin_layout Standard
24432 \begin_inset Box Boxed
24441 height_special "totalheight"
24444 \begin_layout Standard
24446 Rectangular box with
24452 \InsetSpace \thinspace{}
24453 =\InsetSpace \thinspace{}
24454 10\InsetSpace \thinspace{}
24464 \begin_layout Standard
24478 \begin_layout Standard
24479 \begin_inset VSpace bigskip
24482 The diameter of the round corners of the oval boxes can be set with the
24493 \begin_layout Standard
24501 \begin_layout Standard
24502 sets the diameter to 1\InsetSpace \thinspace{}
24507 \begin_layout Standard
24515 \begin_layout Standard
24516 sets the diameter to
24518 num\InsetSpace \thinspace{}
24519 ×\InsetSpace \thinspace{}
24520 minimum(width and heigth of box)
24532 \begin_layout Standard
24536 \begin_layout Standard
24546 \begin_inset Box Ovalbox
24555 height_special "totalheight"
24558 \begin_layout Standard
24566 \InsetSpace \thinspace{}
24567 =\InsetSpace \thinspace{}
24568 1.5\InsetSpace \thinspace{}
24578 \begin_layout Standard
24590 \begin_layout Standard
24591 \begin_inset VSpace bigskip
24594 The size of the shadow can be adjusted by changing the length
24601 It it set to 2\InsetSpace \thinspace{}
24602 pt for the following box by this command:
24605 \begin_layout Standard
24615 \begin_layout Standard
24619 \begin_layout Standard
24631 \begin_inset Box Shadowbox
24640 height_special "totalheight"
24643 \begin_layout Standard
24651 \InsetSpace \thinspace{}
24652 =\InsetSpace \thinspace{}
24653 2\InsetSpace \thinspace{}
24663 \begin_layout Standard
24677 \begin_layout Standard
24678 \begin_inset VSpace bigskip
24681 Changed lengths and widths are valid for all boxes following the commands
24685 \begin_layout Section
24687 \begin_inset LatexCommand label
24688 name "sec:Minipages"
24693 \begin_inset LatexCommand index
24694 name "Boxes ! Minipages"
24701 \begin_layout Standard
24702 Minipages are treated by LaTeX as pages within pages and can therefore for
24703 example have their own footnotes.
24706 \begin_layout Standard
24707 Minipages are useful when you write documents with different languages.
24710 \begin_layout Standard
24711 Below are two example minipages side by side.
24712 Their width is set to 45\InsetSpace \thinspace{}
24713 col% and they are separated by a horizontal fill,
24714 that was inserted via the menu
24716 Insert\SpecialChar \menuseparator
24717 Special\InsetSpace ~
24718 Formatting\SpecialChar \menuseparator
24719 Horizontal\InsetSpace ~
24725 \begin_layout Standard
24726 \begin_inset Box Frameless
24735 height_special "totalheight"
24738 \begin_layout Standard
24741 Dies ist ein deutscher Text.
24742 Dies ist ein deutscher Text.
24743 Dies ist ein deutscher Text.
24744 Dies ist ein deutscher Text.
24745 Dies ist ein deutscher Text.
24746 Dies ist ein deutscher Text.
24747 Dies ist ein deutscher Text.
24748 Dies ist ein deutscher Text.
24749 Dies ist ein deutscher Text.
24750 Dies ist ein deutscher Text.
24751 Dies ist ein deutscher Text.
24752 Dies ist ein deutscher Text.
24753 Dies ist ein deutscher Text
24757 \begin_layout Standard
24760 Dies ist eine deutsche Fußnote.
24766 Dies ist ein deutscher Text.
24767 Dies ist ein deutscher Text.
24775 \begin_inset Box Frameless
24784 height_special "totalheight"
24787 \begin_layout Standard
24788 This is an English Text.
24789 This is an English Text.
24790 This is an English Text.
24791 This is an English Text.
24792 This is an English Text.
24793 This is an English Text.
24794 This is an English Text.
24795 This is an English Text.
24796 This is an English Text.
24797 This is an English Text.
24798 This is an English Text.
24799 This is an English Text.
24800 This is an English Text.
24801 This is an English Text.
24802 This is an English Text.
24803 This is an English Text.
24807 \begin_layout Standard
24808 This is an English footnote.
24813 This is an English Text.
24822 \begin_layout Standard
24823 \begin_inset VSpace bigskip
24826 Another application for minipages are footnotes within tables.
24827 Due to a LaTeX restriction footnotes within tables doesn't appear at the
24828 bottom of the current page.
24829 But when you put the table with the footnote to a minipage, the footnote
24830 will appear at its bottom, numbered with Latin letters.
24831 The footnote number is reset to 1 in every minipage but not outside the
24835 \begin_layout Standard
24836 The footnote of this table doesn't appear:
24837 \begin_inset Tabular
24838 <lyxtabular version="3" rows="3" columns="4">
24840 <column alignment="center" valignment="top" leftline="true" width="0pt">
24841 <column alignment="center" valignment="top" leftline="true" width="0pt">
24842 <column alignment="center" valignment="top" leftline="true" width="0pt">
24843 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
24844 <row topline="true">
24845 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24848 \begin_layout Standard
24854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24857 \begin_layout Standard
24863 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24866 \begin_layout Standard
24871 \begin_layout Standard
24872 This is a footnote within a table.
24882 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24885 \begin_layout Standard
24892 <row topline="true">
24893 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24896 \begin_layout Standard
24902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24905 \begin_layout Standard
24911 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24914 \begin_layout Standard
24920 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24923 \begin_layout Standard
24930 <row topline="true" bottomline="true">
24931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24934 \begin_layout Standard
24940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24943 \begin_layout Standard
24949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24952 \begin_layout Standard
24958 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24961 \begin_layout Standard
24975 \begin_layout Standard
24977 \begin_inset Box Frameless
24986 height_special "totalheight"
24989 \begin_layout Standard
24991 \begin_inset Tabular
24992 <lyxtabular version="3" rows="3" columns="4">
24994 <column alignment="center" valignment="top" leftline="true" width="0pt">
24995 <column alignment="center" valignment="top" leftline="true" width="0pt">
24996 <column alignment="center" valignment="top" leftline="true" width="0pt">
24997 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
24998 <row topline="true">
24999 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25002 \begin_layout Standard
25008 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25011 \begin_layout Standard
25017 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25020 \begin_layout Standard
25025 \begin_layout Standard
25026 This is a footnote within a table.
25036 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25039 \begin_layout Standard
25046 <row topline="true">
25047 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25050 \begin_layout Standard
25056 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25059 \begin_layout Standard
25065 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25068 \begin_layout Standard
25074 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25077 \begin_layout Standard
25084 <row topline="true" bottomline="true">
25085 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25088 \begin_layout Standard
25094 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25097 \begin_layout Standard
25103 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25106 \begin_layout Standard
25112 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25115 \begin_layout Standard
25134 \begin_layout Standard
25135 \begin_inset VSpace bigskip
25138 The document-wide paragraph settings are ignored within minipages.
25139 That means that there will be no space between paragraphs in minipages
25140 although you set it to e.\InsetSpace \thinspace{}
25146 in the document settings.
25149 \begin_layout Standard
25150 Minipages can also be used to set a background color for text parts, see
25151 section\InsetSpace ~
25153 \begin_inset LatexCommand ref
25154 reference "sub:Color-for-Paragraphs"
25161 \begin_layout Standard
25162 \begin_inset Note Greyedout
25165 \begin_layout Standard
25170 You cannot have floats or margin notes inside minipages but minipages can
25171 be used inside tables, floats, and other boxes.
25179 \begin_layout Section
25181 \begin_inset LatexCommand label
25182 name "sec:Parboxes"
25187 \begin_inset LatexCommand index
25188 name "Boxes ! Parboxes"
25195 \begin_layout Standard
25196 Parboxes are very similar to minipages with the difference that they cannot
25198 The main difference to minipages is that minipages are in contrary to parboxes
25199 no real boxes but LaTeX-environments.
25202 \begin_layout Standard
25204 \begin_inset Box Frameless
25213 height_special "totalheight"
25216 \begin_layout Standard
25217 This a text within a parbox.
25218 This a text within a parbox.
25221 \begin_layout Standard
25222 This footnote won't appear:
25226 \begin_layout Standard
25227 This footnote is inside a parbox and will therefore not appear.
25240 \begin_layout Section
25241 Boxes for Words and Characters
25242 \begin_inset LatexCommand index
25243 name "Boxes ! for Characters"
25250 \begin_layout Subsection
25251 Prevent Hyphenation
25252 \begin_inset LatexCommand label
25253 name "sec:Prevent-Hyphenation"
25258 \begin_inset LatexCommand index
25259 name "Boxes ! to Prevent Hyphenation"
25266 \begin_layout Standard
25267 You can use a special kind of boxes to prevent words or text to be hyphenated.
25270 e is an example text:
25273 \begin_layout Standard
25274 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25280 \begin_layout Standard
25281 To prevent the hyphenation of the word
25282 \begin_inset Quotes eld
25286 \begin_inset Quotes erd
25292 \begin_layout Standard
25300 \begin_layout Standard
25301 in ERT before the word.
25302 Behind the word insert a closing brace
25303 \begin_inset Quotes eld
25311 \begin_inset Quotes erd
25318 \begin_layout Standard
25330 \begin_layout Standard
25331 This is the result:
25334 \begin_layout Standard
25335 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25341 \begin_layout Standard
25354 \begin_layout Standard
25364 \begin_layout Standard
25365 Of course the word now protrudes over the side margin.
25366 To avoid this, add via the menu
25368 Insert\SpecialChar \menuseparator
25369 Special\InsetSpace ~
25370 Formatting\SpecialChar \menuseparator
25378 ) a line break before the word:
25381 \begin_layout Standard
25382 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25390 \begin_layout Standard
25403 \begin_layout Standard
25413 \begin_layout Subsection
25415 \begin_inset LatexCommand label
25416 name "sub:Vertical-Alignment"
25421 \begin_inset LatexCommand index
25422 name "Boxes ! for Vertical Alignment"
25427 \begin_inset LatexCommand index
25428 name "Boxes ! Raiseboxes"
25435 \begin_layout Standard
25436 With the help of the command
25442 you can align words, characters or other boxes vertically to the surrounding
25450 is used with the following scheme:
25453 \begin_layout Standard
25458 raisebox{lift}[height][depth]{box content}
25461 \begin_layout Standard
25462 The lift can be a positive value to raise the box or a negative value to
25466 \begin_layout Standard
25467 To align for example the word
25468 \begin_inset Quotes eld
25472 \begin_inset Quotes erd
25475 so that the bottom of the
25476 \begin_inset Quotes eld
25480 \begin_inset Quotes erd
25484 \begin_inset Quotes eld
25488 \begin_inset Quotes erd
25491 is at the baseline, insert the command
25494 \begin_layout Standard
25504 \begin_layout Standard
25505 in ERT before the word.
25506 Behind the word insert a closing brace
25507 \begin_inset Quotes eld
25515 \begin_inset Quotes erd
25520 This is the result:
25523 \begin_layout Standard
25524 This is a text line with the word
25528 \begin_layout Standard
25540 \begin_inset Quotes eld
25544 \begin_inset Quotes erd
25551 \begin_layout Standard
25561 \begin_layout Standard
25562 \begin_inset VSpace bigskip
25565 When you raise or lower characters in a line, the line distance will be
25569 \begin_layout Standard
25570 This is a text line with the word
25574 \begin_layout Standard
25586 \begin_inset Quotes eld
25590 \begin_inset Quotes erd
25597 \begin_layout Standard
25606 This is a text line with the word
25610 \begin_layout Standard
25620 \begin_inset Quotes eld
25624 \begin_inset Quotes erd
25631 \begin_layout Standard
25641 \begin_layout Standard
25642 If you want to prevent this for a certain reason, set the box height to
25647 \begin_layout Standard
25657 \begin_layout Standard
25658 This is a text line with the word
25662 \begin_layout Standard
25674 \begin_inset Quotes eld
25678 \begin_inset Quotes erd
25685 \begin_layout Standard
25694 This is a text line with the word
25698 \begin_layout Standard
25702 raisebox{0.5cm}[0pt]{
25708 \begin_inset Quotes eld
25712 \begin_inset Quotes erd
25719 \begin_layout Standard
25729 \begin_layout Section
25731 \begin_inset LatexCommand label
25732 name "sec:Colored-Boxes"
25737 \begin_inset LatexCommand index
25738 name "Boxes ! Color"
25745 \begin_layout Subsection
25747 \begin_inset LatexCommand index
25748 name "Color ! for Text"
25755 \begin_layout Standard
25756 To color the background of text the text must be put into a so called colorbox.
25757 This requires that the LaTeX-package
25762 \begin_inset LatexCommand index
25763 name "LaTeX-packages ! color"
25767 is loaded in the document preamble with the command
25770 \begin_layout Standard
25775 @ifundef\SpecialChar \textcompwordmark{}
25782 \begin_layout Standard
25793 usepackage{color}}{}
25796 \begin_layout Standard
25801 will be loaded automatically by LyX when you color text
25805 \begin_layout Standard
25806 To avoid that it is loaded twice the command
25810 @ifundef\SpecialChar \textcompwordmark{}
25821 \begin_layout Standard
25822 \begin_inset VSpace medskip
25825 Colorboxes are created with the command
25832 This will be used with the following scheme:
25835 \begin_layout Standard
25840 colorbox{color}{box content}
25843 \begin_layout Standard
25844 The box content can also be a box and colorboxes can also be within other
25848 \begin_layout Standard
25849 The following colors are predefined:
25888 You can also define your own color as described in section\InsetSpace ~
25890 \begin_inset LatexCommand ref
25891 reference "sec:Colored-Tables"
25898 \begin_layout Standard
25899 To have e.\InsetSpace \thinspace{}
25901 a red background for a word, insert the command
25904 \begin_layout Standard
25912 \begin_layout Standard
25913 before the word in ERT.
25914 Behind the word insert a closing brace
25915 \begin_inset Quotes eld
25923 \begin_inset Quotes erd
25928 This is the result:
25931 \begin_layout Standard
25932 This is a line where the word
25936 \begin_layout Standard
25946 \begin_inset Quotes eld
25950 \begin_inset Quotes erd
25957 \begin_layout Standard
25964 has a red background.
25967 \begin_layout Standard
25968 \begin_inset VSpace bigskip
25971 If you would have the box frame in a different color, you can use the command
25978 with the following scheme:
25981 \begin_layout Standard
25986 fcolorbox{frame color}{box color}{box content}
25989 \begin_layout Standard
26003 The frame thickness and the space between the frame and the box content
26004 can be adjusted with the lengths
26016 , respectively, as described in section\InsetSpace ~
26018 \begin_inset LatexCommand ref
26019 reference "sec:Framed-Boxes"
26026 \begin_layout Standard
26027 For the following example the command
26030 \begin_layout Standard
26035 fcolorbox{cyan}{magenta}{
26038 \begin_layout Standard
26042 \begin_layout Standard
26043 Here is an example where the frame line thickness was set to 1\InsetSpace \thinspace{}
26050 \begin_layout Standard
26065 \begin_layout Standard
26069 fcolorbox{cyan}{magenta}{
26074 This is text within a colored, framed box.
26078 \begin_layout Standard
26088 \begin_layout Standard
26089 \begin_inset VSpace bigskip
26092 Of course you can also have colored text inside a colorbox:
26098 \begin_layout Standard
26102 fcolorbox{cyan}{magenta}{
26109 This is colored text within a colored, framed box.
26115 \begin_layout Standard
26126 \begin_layout Standard
26140 \begin_layout Standard
26143 \begin_inset VSpace medskip
26149 \begin_layout Standard
26150 \begin_inset Note Greyedout
26153 \begin_layout Standard
26158 Text in colorboxes cannot have line breaks.
26159 To color multiple text lines or paragraphs, use a box inside a colorbox
26160 as described in the following.
26168 \begin_layout Subsection
26169 Color for Paragraphs
26170 \begin_inset LatexCommand label
26171 name "sub:Color-for-Paragraphs"
26176 \begin_inset LatexCommand index
26177 name "Color ! for Paragraphs"
26184 \begin_layout Standard
26185 To set the background color for more than one text line, put the text into
26187 Before the minipage insert the
26196 \begin_layout Standard
26204 \begin_layout Standard
26206 Behind the minipage insert a closing brace
26207 \begin_inset Quotes eld
26215 \begin_inset Quotes erd
26221 \begin_layout Standard
26225 \begin_layout Standard
26229 colorbox{lightgrey}{
26235 \begin_inset Box Frameless
26244 height_special "totalheight"
26247 \begin_layout Standard
26248 This is text with background color.
26249 This is text with background color.
26252 \begin_layout Standard
26253 \begin_inset VSpace defskip
26256 The text can have footnotes
26260 \begin_layout Standard
26261 Another example footnote
26266 and can include tables and figures.
26269 \begin_layout Standard
26271 \begin_inset Tabular
26272 <lyxtabular version="3" rows="3" columns="3">
26274 <column alignment="center" valignment="top" leftline="true" width="0">
26275 <column alignment="center" valignment="top" leftline="true" width="0">
26276 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
26277 <row topline="true">
26278 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26281 \begin_layout Standard
26287 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26290 \begin_layout Standard
26296 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26299 \begin_layout Standard
26306 <row topline="true">
26307 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26310 \begin_layout Standard
26316 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26319 \begin_layout Standard
26321 \begin_inset Quotes erd
26329 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26332 \begin_layout Standard
26339 <row topline="true" bottomline="true">
26340 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26343 \begin_layout Standard
26349 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26352 \begin_layout Standard
26358 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26361 \begin_layout Standard
26381 \begin_layout Standard
26391 \begin_layout Section
26392 URLs (Uniform Resource Locators)
26393 \begin_inset LatexCommand index
26401 \begin_layout Standard
26402 Links to web pages or email addresses can be inserted via the menu
26404 Insert\SpecialChar \menuseparator
26408 The appearing URL dialog has two fields; the
26416 field for the URL description, which will be typeset as plain text immediately
26420 \begin_layout Standard
26421 Here is an example URL:
26422 \begin_inset LatexCommand url
26423 name "LyX's homepage"
26424 target "http://www.lyx.org"
26431 \begin_layout Standard
26434 Generate\InsetSpace ~
26437 in the URL dialog has only an affect when you export your document to the
26439 \begin_inset Quotes eld
26447 \begin_inset Quotes erd
26453 \begin_layout Standard
26454 You cannot change the style of the link text.
26459 field will have the default text style of the document while the text of
26464 field will have the style
26465 \begin_inset Quotes eld
26473 \begin_inset Quotes erd
26479 \begin_layout Standard
26480 When you use the LaTeX-package
26485 \begin_inset LatexCommand index
26486 name "LaTeX-packages ! hyperref"
26490 to link cross-references in the output, URLs will automatically become
26491 clickable hyperlinks in DVI and PDF-output.
26494 \begin_layout Standard
26495 \begin_inset Note Greyedout
26498 \begin_layout Standard
26503 When you use the following characters: "%", "#", "^", you have to write
26504 them with a preceding backslash, e.\InsetSpace \thinspace{}
26507 \begin_inset Quotes eld
26513 \begin_inset Quotes erd
26517 URLs must not end with a backslash.
26525 \begin_layout Standard
26526 \begin_inset VSpace bigskip
26529 To create real hyperlinks without the force to write the link location to
26530 the text, you can use the command
26533 \begin_layout Standard
26538 href{link location}{link text}
26541 \begin_layout Standard
26543 To get for example a link to LyX's web page, write the command
26546 \begin_layout Standard
26551 href{http://www.lyx.org}{
26554 \begin_layout Standard
26556 Insert after the command the link text
26557 \begin_inset Quotes eld
26561 \begin_inset Quotes erd
26564 as normal text followed by a closing brace
26565 \begin_inset Quotes eld
26573 \begin_inset Quotes erd
26577 This is the result:
26581 \begin_layout Standard
26585 href{http://www.lyx.org}{
26594 \begin_layout Standard
26604 \begin_layout Standard
26605 To link to email addresses, add the prefix
26606 \begin_inset Quotes eld
26614 \begin_inset Quotes erd
26617 to the link location:
26623 \begin_layout Standard
26627 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's documentation}{
26632 lyx-docs mailing list
26636 \begin_layout Standard
26646 \begin_layout Standard
26653 instead of LyX's URL box has the advantage that you can specify the text
26654 style of the link text like for all other text parts.
26655 You can therefore set hyphenation points and forced linebreaks to have
26656 long link text broken at the page margin.
26657 You are furthermore able to change the text style for all URLs in your
26658 document with an option in
26662 's load command and the restrictions mentioned above doesn't apply for
26671 \begin_layout Chapter
26673 \begin_inset LatexCommand index
26674 name "External Stuff"
26681 \begin_layout Standard
26684 Insert\SpecialChar \menuseparator
26687 you can insert external material to your document.
26691 \begin_layout Description
26693 Document Another LyX document; its content is directly inserted to your
26697 \begin_layout Description
26699 Text A text document; every of its text lines is inserted to your document
26703 \begin_layout Description
26707 Lines A text document; its text lines are inserted as they
26709 Empty text lines creates a new paragraph in your document.
26712 \begin_layout Description
26713 External\InsetSpace ~
26714 Material Files in various formats.
26717 \begin_layout Description
26719 Document LyX or LaTeX-documents.
26722 \begin_layout Section
26724 \begin_inset LatexCommand index
26725 name "External Stuff ! External Material"
26732 \begin_layout Standard
26733 The external material feature allows you to insert files to your document
26734 without converting them previously to a format that can be read by the
26735 document output format because LyX takes care of needed conversions.
26736 This is similar to images that can be inserted in various image formats
26740 \begin_layout Standard
26741 External material can be inserted via the
26745 dialog that is accessible with the menu
26747 Insert\SpecialChar \menuseparator
26748 File\SpecialChar \menuseparator
26749 External\InsetSpace ~
26753 Currently the following file types (
26760 \begin_layout Description
26761 ChessDiagram This template supports chess position diagrams made with the
26766 \begin_layout Standard
26770 href{http://en.wikipedia.org/wiki/XBoard}{
26783 \begin_layout Standard
26793 \begin_layout Description
26794 Date This inserts the date in the form
26799 This is a date inserted as external material:
26800 \begin_inset External
26808 The date is not shown within LyX, only in the output.
26809 There are two other methods of inserting a date, via menu
26811 Insert\SpecialChar \menuseparator
26814 and with the LaTeX command
26821 The different methods are compared in Table\InsetSpace ~
26823 \begin_inset LatexCommand ref
26824 reference "tab:Comparison-of-the"
26831 \begin_layout Description
26832 LilyPond This template is used for music notation typeset with the program
26836 \begin_layout Standard
26849 \begin_layout Standard
26853 href{http://en.wikipedia.org/wiki/LilyPond}{
26866 \begin_layout Standard
26874 \begin_inset Note Note
26877 \begin_layout Standard
26884 breaks the line while the remaining text in the line is stretched to the
26893 \begin_layout Description
26894 RasterImage This can be used for bitmap images.
26895 Nearly all popular image formats are supported.
26896 The image can be treated in the
26900 dialog like the images that are usually included via the
26904 dialog as described in section\InsetSpace ~
26906 \begin_inset LatexCommand ref
26907 reference "sec:Graphics-Dialog"
26912 The difference is that only raster images are allowed, that means that
26913 PDF and EPS-images are not supported.
26916 \begin_layout Description
26917 XFig This template supports images created with the program
26921 \begin_layout Standard
26925 href{http://en.wikipedia.org/wiki/Xfig}{
26938 \begin_layout Standard
26948 \begin_layout Standard
26949 \begin_inset Float table
26955 \begin_layout Standard
26956 \begin_inset Caption
26958 \begin_layout Standard
26959 \begin_inset LatexCommand label
26960 name "tab:Comparison-of-the"
26964 Comparison of the date input methods.
26972 \begin_layout Standard
26974 \begin_inset Tabular
26975 <lyxtabular version="3" rows="4" columns="4">
26977 <column alignment="center" valignment="top" leftline="true" width="0">
26978 <column alignment="center" valignment="top" leftline="true" width="0">
26979 <column alignment="center" valignment="top" leftline="true" width="0">
26980 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
26981 <row topline="true">
26982 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26985 \begin_layout Standard
26991 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26994 \begin_layout Standard
26997 External Material\SpecialChar \menuseparator
27003 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27006 \begin_layout Standard
27009 Insert\SpecialChar \menuseparator
27015 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27018 \begin_layout Standard
27029 <row topline="true">
27030 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27033 \begin_layout Standard
27039 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27042 \begin_layout Standard
27048 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27051 \begin_layout Standard
27057 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27060 \begin_layout Standard
27067 <row topline="true">
27068 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27071 \begin_layout Standard
27077 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27080 \begin_layout Standard
27086 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27089 \begin_layout Standard
27095 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27098 \begin_layout Standard
27105 <row topline="true" bottomline="true">
27106 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27109 \begin_layout Standard
27115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27118 \begin_layout Standard
27124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27127 \begin_layout Standard
27133 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27136 \begin_layout Standard
27155 \begin_layout Standard
27156 When you use the option
27168 dialog, only the path to the inserted file is shown in the output.
27171 material is displayed in LyX either as box like this:
27172 \begin_inset Graphics
27173 filename clipart/ExternalMaterialQt4.png
27178 or as image, depending on the setting in the
27190 \begin_layout Standard
27197 manual explains how you can define your own templates.
27200 \begin_layout Section
27202 \begin_inset LatexCommand index
27203 name "External Stuff ! Child Documents"
27208 \begin_inset LatexCommand index
27209 name "Files ! Include"
27216 \begin_layout Standard
27217 Child documents are used when you have a long document consisting of several
27218 larger parts or sections.
27219 For maintenance it is often useful and sometimes even required to split
27220 the document in several files that can be revised separately.
27221 The different documents are then the so called child documents and a master
27222 document connects them to print the full document or parts of it.
27225 \begin_layout Standard
27226 Included documents are displayed in LyX as a box like this:
27227 \begin_inset Graphics
27228 filename clipart/ChildDocumentQt4.png
27233 To include child documents to a master document use the menu
27235 Insert\SpecialChar \menuseparator
27236 File\SpecialChar \menuseparator
27241 A dialog pops up where you can choose between three include methods:
27244 \begin_layout Description
27245 Include You can include LyX and LaTeX-documents.
27254 dialog, the included documents will be opened in LyX in a new file tab
27255 so that you can modify it.
27260 \begin_layout Standard
27261 Here is a child document inserted using
27266 \begin_inset Include \include{DummyDocument1.lyx}
27274 \begin_layout Standard
27275 The section numbering includes the sections of the included files in the
27276 order they are inserted in the master document.
27277 The included example document has for example a subsection that is numbered
27278 as subsection of this section.
27279 Labels of included documents can be referenced: Subsection\InsetSpace ~
27281 \begin_inset LatexCommand ref
27282 reference "sub:External-Subsection-1"
27289 \begin_layout Standard
27290 The preamble of the child document is ignored, only the preamble of the
27291 master document is used.
27292 Included documents are inserted starting on a new page and end with a pagebreak.
27295 \begin_layout Standard
27296 With the LaTeX-command
27302 you can specify which included child documents are processed when the output
27304 This is useful when you are perhaps only working on a certain chapter of
27305 your large document as this saves compiling time.
27312 is inserted to the master document preamble.
27313 It takes a comma-separated list of the filenames as argument, e.g.
27316 \begin_layout Standard
27321 includeonly{chapter1,chapter5}
27324 \begin_layout Standard
27325 will only process the included files named
27326 \begin_inset Quotes eld
27330 \begin_inset Quotes erd
27334 \begin_inset Quotes eld
27338 \begin_inset Quotes erd
27342 \begin_inset Quotes eld
27346 \begin_inset Quotes erd
27352 \begin_layout Standard
27353 \begin_inset Note Greyedout
27356 \begin_layout Standard
27361 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
27362 w the document in case that the child document uses another document class
27363 than the master document as this will lead to unexpected outputs.
27371 \begin_layout Description
27372 Input This method is very similar to the Include method.
27373 The differences are:
27377 \begin_layout Itemize
27378 Input files don't start with a new page and don't end with a pagebreak.
27381 \begin_layout Itemize
27382 Input files can be previewed in LyX when
27384 Instant\InsetSpace ~
27387 is enabled in LyX's preferences under
27391 feel\SpecialChar \menuseparator
27397 \begin_layout Itemize
27408 \begin_layout Standard
27409 Here is a child document inserted using
27414 \begin_inset Include \input{DummyDocument2.lyx}
27422 \begin_layout Description
27423 Verbatim With this method every text file can be included.
27424 The file is shown in the output with its source code, no command used in
27425 the text is invoked.
27426 You can use the option
27428 Mark spaces in output
27430 that displays the character
27431 \begin_inset Quotes eld
27438 \begin_layout Standard
27448 \begin_inset Quotes erd
27451 for every space character in the source code.
27452 The difference to the method via the menu
27454 Insert\SpecialChar \menuseparator
27455 File\SpecialChar \menuseparator
27459 is that the document content is not shown in LyX.
27462 \begin_layout Standard
27463 Here is a child document inserted as Verbatim:
27464 \begin_inset Include \verbatiminput{DummyTextDocument.txt}
27470 \begin_inset VSpace bigskip
27473 Here is a child document inserted as Verbatim using the
27475 Mark spaces in output
27478 \begin_inset Include \verbatiminput*{DummyTextDocument.txt}
27486 \begin_layout Standard
27487 \begin_inset VSpace bigskip
27493 \begin_layout Standard
27494 \begin_inset Note Greyedout
27497 \begin_layout Standard
27502 As you can see in the examples above, the text of the documents included
27503 as verbatim is not broken at the end of the document lines.
27511 \begin_layout Standard
27512 \begin_inset Note Greyedout
27515 \begin_layout Standard
27520 Including the same document twice in a document using different methods
27521 could cause LaTeX-problems.
27529 \begin_layout Standard
27535 \begin_layout Chapter
27541 \begin_layout Standard
27554 \begin_layout Standard
27562 \begin_inset LatexCommand index
27568 \begin_inset LatexCommand label
27569 name "cha:Units-available-in"
27574 \begin_inset Note Note
27577 \begin_layout Standard
27580 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
27581 are displayed wrongly in PDF-bookmarks.
27582 For more information about this, have a look at
27583 \begin_inset LatexCommand cite
27596 \begin_layout Standard
27597 To understand the units described in this documentation, Table\InsetSpace ~
27599 \begin_inset LatexCommand ref
27600 reference "tab:Units"
27604 explains all units available in LyX.
27607 \begin_layout Standard
27608 \begin_inset Float table
27614 \begin_layout Standard
27615 \begin_inset Caption
27617 \begin_layout Standard
27618 \begin_inset LatexCommand label
27631 \begin_layout Standard
27632 \begin_inset VSpace medskip
27638 \begin_layout Standard
27640 \begin_inset Tabular
27641 <lyxtabular version="3" rows="20" columns="2">
27643 <column alignment="center" valignment="top" leftline="true" width="0">
27644 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27645 <row topline="true" bottomline="true">
27646 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27649 \begin_layout Standard
27655 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27658 \begin_layout Standard
27665 <row topline="true">
27666 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27669 \begin_layout Standard
27675 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27678 \begin_layout Standard
27685 <row topline="true">
27686 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27689 \begin_layout Standard
27695 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27698 \begin_layout Standard
27705 <row topline="true">
27706 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27709 \begin_layout Standard
27715 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27718 \begin_layout Standard
27725 <row topline="true">
27726 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27729 \begin_layout Standard
27735 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27738 \begin_layout Standard
27739 point (72.27\InsetSpace \thinspace{}
27740 pt = 1\InsetSpace \thinspace{}
27747 <row topline="true">
27748 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27751 \begin_layout Standard
27757 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27760 \begin_layout Standard
27761 pica (1\InsetSpace \thinspace{}
27762 pc = 12\InsetSpace \thinspace{}
27769 <row topline="true">
27770 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27773 \begin_layout Standard
27779 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27782 \begin_layout Standard
27783 scaled point (65536\InsetSpace \thinspace{}
27784 sp = 1\InsetSpace \thinspace{}
27791 <row topline="true">
27792 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27795 \begin_layout Standard
27801 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27804 \begin_layout Standard
27805 big point (72\InsetSpace \thinspace{}
27806 bp = 1\InsetSpace \thinspace{}
27813 <row topline="true">
27814 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27817 \begin_layout Standard
27823 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27826 \begin_layout Standard
27827 didot (72\InsetSpace \thinspace{}
27829 \begin_inset Formula $\approx$
27832 37.6\InsetSpace \thinspace{}
27839 <row topline="true">
27840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27843 \begin_layout Standard
27849 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27852 \begin_layout Standard
27853 cicero (1\InsetSpace \thinspace{}
27854 cc = 12\InsetSpace \thinspace{}
27861 <row topline="true">
27862 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27865 \begin_layout Standard
27871 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27874 \begin_layout Standard
27875 % of original image width
27881 <row topline="true">
27882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27885 \begin_layout Standard
27891 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27894 \begin_layout Standard
27901 <row topline="true">
27902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27905 \begin_layout Standard
27911 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27914 \begin_layout Standard
27921 <row topline="true">
27922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27925 \begin_layout Standard
27931 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27934 \begin_layout Standard
27941 <row topline="true">
27942 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27945 \begin_layout Standard
27951 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27954 \begin_layout Standard
27961 <row topline="true">
27962 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27965 \begin_layout Standard
27971 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27974 \begin_layout Standard
27981 <row topline="true">
27982 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27985 \begin_layout Standard
27991 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27994 \begin_layout Standard
28001 <row topline="true">
28002 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28005 \begin_layout Standard
28011 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28014 \begin_layout Standard
28025 <row topline="true">
28026 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28029 \begin_layout Standard
28035 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28038 \begin_layout Standard
28049 <row topline="true" bottomline="true">
28050 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28053 \begin_layout Standard
28059 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28062 \begin_layout Standard
28063 math unit (1\InsetSpace \thinspace{}
28064 mu = 1/18\InsetSpace \thinspace{}
28083 \begin_layout Chapter
28084 Output File Formats with Graphics
28085 \begin_inset LatexCommand label
28086 name "cha:Output-File-Formats"
28093 \begin_layout Section
28095 \begin_inset LatexCommand index
28096 name "File Formats ! DVI"
28101 \begin_inset LatexCommand index
28102 name "DVI|see{File Formats}"
28109 \begin_layout Standard
28110 This file type has the extension
28111 \begin_inset Quotes eld
28119 \begin_inset Quotes erd
28124 \begin_inset Quotes eld
28128 \begin_inset Quotes erd
28131 (DVI), because it is completely portable; you can move them from one machine
28132 to another without needing to do any sort of conversion.
28133 At the time when this file-format was developed, this was no matter of
28135 DVIs are used for quick previews and as pre-stage for other output formats,
28139 \begin_layout Standard
28140 \begin_inset Note Greyedout
28143 \begin_layout Standard
28148 DVI-files doesn't contain images, they will only be a linked.
28153 So don't forget this, if you move your
28157 file to another computer.
28158 This property can also slow down your computer when you view the DVI.
28159 Because the DVI-viewer has to convert the image in the background to make
28160 it visible when you scroll in the DVI.
28161 So we recommend to use PDF for files with many images.
28164 \begin_layout Standard
28165 You can export your document to DVI by using the menu
28167 File\SpecialChar \menuseparator
28168 Export\SpecialChar \menuseparator
28172 You can view your document as DVI via the
28176 menu or by using the toolbar button
28177 \begin_inset Graphics
28178 filename ../images/buffer-view_dvi.xpm
28186 \begin_layout Section
28188 \begin_inset LatexCommand label
28189 name "sec:PostScript"
28194 \begin_inset LatexCommand index
28195 name "File Formats ! PostScript"
28200 \begin_inset LatexCommand index
28201 name "PostScript|see{File Formats}"
28208 \begin_layout Standard
28209 This file type has the extension
28210 \begin_inset Quotes eld
28218 \begin_inset Quotes erd
28222 PostScript was developed by the company
28226 as printer language.
28227 The file contains therefore commands that the printer uses to print the
28229 PostScript can be seen as
28230 \begin_inset Quotes eld
28233 programming language
28234 \begin_inset Quotes erd
28237 ; you can calculate with it and draw diagrams and images
28241 \begin_layout Standard
28242 If you are interested to learn more about this, have a look at the LaTeX-package
28248 \begin_inset LatexCommand cite
28259 Due to this ability, the files are often bigger than PDFs.
28262 \begin_layout Standard
28263 PostScript can only contain images in the format
28264 \begin_inset Quotes eld
28267 Encapsulated PostScript
28268 \begin_inset Quotes erd
28271 (EPS, file extension
28272 \begin_inset Quotes eld
28280 \begin_inset Quotes erd
28284 As LyX allows you to use any known image format in your document, it has
28285 to convert images in the background to EPS.
28286 If you have e.g 50 images in your document, LyX has to do 50 conversions
28287 whenever you view or export your document.
28288 This will slow down your work flow with LyX drastically.
28289 So if you plan to use PostScript, you can insert your images directly as
28290 EPS to avoid this problem.
28293 \begin_layout Standard
28294 You can export your document to PostScript using the menu
28296 File\SpecialChar \menuseparator
28297 Export\SpecialChar \menuseparator
28301 You can view your document as PostScript via the
28305 menu or by using the toolbar button
28306 \begin_inset Graphics
28307 filename ../images/buffer-view_ps.xpm
28315 \begin_layout Section
28317 \begin_inset LatexCommand label
28323 \begin_inset LatexCommand index
28324 name "File Formats ! PDF"
28329 \begin_inset LatexCommand index
28337 \begin_layout Standard
28338 This file type has the extension
28339 \begin_inset Quotes eld
28347 \begin_inset Quotes erd
28352 \begin_inset Quotes eld
28355 Portable Document Format
28356 \begin_inset Quotes erd
28359 (PDF) is developed by
28363 as derivative from PostScript.
28364 It is more compressed and it uses much less commands than PostScript.
28366 \begin_inset Quotes eld
28370 \begin_inset Quotes erd
28373 implies, it can be processed at any computer system and the printed output
28374 looks exactly the same.
28377 \begin_layout Standard
28378 PDF can contain images in its own PDF format, in the format
28379 \begin_inset Quotes eld
28382 Joint Photographic Experts Group
28383 \begin_inset Quotes erd
28386 (JPG, file extension
28387 \begin_inset Quotes eld
28395 \begin_inset Quotes erd
28399 \begin_inset Quotes eld
28407 \begin_inset Quotes erd
28410 ), and in the format
28411 \begin_inset Quotes eld
28414 Portable Network Graphics
28415 \begin_inset Quotes erd
28418 (PNG, file extension
28419 \begin_inset Quotes eld
28427 \begin_inset Quotes erd
28431 You can although use any other image format, because LyX converts them
28432 in the background to one of these formats.
28433 But as described in the section about PostScript, the image conversion
28434 will slow down your work flow.
28435 So it is recommended to use images in one of the three mentioned formats.
28438 \begin_layout Standard
28439 You can export your document to PDF via the menu
28441 File\SpecialChar \menuseparator
28444 in three different ways:
28447 \begin_layout Description
28448 PDF This uses the program
28452 that creates a PDF from a PostScript-version of your file.
28453 The PostScript-version is produced by the program
28457 which uses a DVI-version as intermediate step.
28458 So this export variant consist of three conversions.
28461 \begin_layout Description
28463 (dvipdfm) This uses the program
28467 that converts your file in the background to DVI and in a second step to
28471 \begin_layout Description
28473 (pdflatex) This uses the program
28477 that converts your file directly to PDF.
28480 \begin_layout Standard
28481 It is recommended to use
28490 supports all features of actual PDF-versions, is quick and works stable
28496 is not under development and therefore a bit outdated.
28499 \begin_layout Standard
28500 You can view your document as PDF via the
28504 menu or by using the toolbar button
28505 \begin_inset Graphics
28506 filename ../images/buffer-view_pdf2.xpm
28523 \begin_layout Chapter
28524 Explanation of Equation\InsetSpace ~
28526 \begin_inset LatexCommand eqref
28532 \begin_inset LatexCommand label
28533 name "cha:Explanation-of-Equation"
28540 \begin_layout Standard
28546 \begin_inset Formula $W_{\mathrm{tot\, n}}$
28549 can be calculated to
28552 \begin_layout Standard
28553 \begin_inset Formula \begin{equation}
28554 W_{\mathrm{tot}\, n}=n·(W_{g\, n}+2·\backslash\mbox{tabcolsep})+(n+1)·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}\end{equation}
28561 \begin_layout Standard
28563 \begin_inset Formula $W_{g\, n}$
28566 is the given width of all cells.
28573 is the LaTeX-length between the cell text and the cell border, its default
28574 value is 6\InsetSpace \thinspace{}
28582 is the thickness of the cell border line, the default is 0.4\InsetSpace \thinspace{}
28586 \begin_layout Standard
28587 Following equation\InsetSpace ~
28589 \begin_inset LatexCommand eqref
28590 reference "eq:Wtot_n"
28594 , the total width of a multicolumn
28595 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
28601 \begin_layout Standard
28602 \begin_inset Formula \begin{equation}
28603 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2·\backslash\mbox{tabcolsep}+2·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
28610 \begin_layout Standard
28611 By setting equation\InsetSpace ~
28613 \begin_inset LatexCommand eqref
28614 reference "eq:Wtot_n"
28619 \begin_inset LatexCommand eqref
28620 reference "eq:Wtot_mult"
28624 equal we can calculate the needed given width
28625 \begin_inset Formula $W_{g\, n}$
28632 columns are spanned, so that each column has a total width of
28633 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
28639 \begin_layout Standard
28640 \begin_inset Formula \begin{equation}
28641 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)·(2·\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
28648 \begin_layout Bibliography
28649 \begin_inset LatexCommand bibitem
28650 key "latexcompanion"
28654 Frank Mittelbach and Michel Goossens:
28656 The LaTeX Companion Second Edition.
28659 Addison-Wesley, 2004
28662 \begin_layout Bibliography
28663 \begin_inset LatexCommand bibitem
28668 Helmut Kopka and Patrick W.
28671 A Guide to LaTeX Fourth Edition.
28674 Addison-Wesley, 2003
28677 \begin_layout Bibliography
28678 \begin_inset LatexCommand bibitem
28685 LaTeX: A Document Preparation System.
28688 Addison-Wesley, second edition, 1994
28691 \begin_layout Bibliography
28692 \begin_inset LatexCommand bibitem
28701 \begin_layout Standard
28705 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf}
28715 \begin_layout Standard
28722 of the LaTeX-package
28727 \begin_inset LatexCommand index
28728 name "LaTeX-packages ! booktabs"
28735 \begin_layout Bibliography
28736 \begin_inset LatexCommand bibitem
28745 \begin_layout Standard
28749 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf}{
28758 \begin_layout Standard
28765 of the LaTeX-package
28770 \begin_inset LatexCommand index
28771 name "LaTeX-packages ! caption"
28778 \begin_layout Bibliography
28779 \begin_inset LatexCommand bibitem
28788 \begin_layout Standard
28792 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/anleitung.pdf}
28802 \begin_layout Standard
28809 of the LaTeX-package
28814 \begin_layout Bibliography
28815 \begin_inset LatexCommand bibitem
28824 \begin_layout Standard
28828 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf}
28838 \begin_layout Standard
28845 of the LaTeX-package
28847 endf\SpecialChar \textcompwordmark{}
28851 \begin_inset LatexCommand index
28852 name "LaTeX-packages ! endfloat"
28859 \begin_layout Bibliography
28860 \begin_inset LatexCommand bibitem
28869 \begin_layout Standard
28873 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/floatflt/floatflt.pdf}
28883 \begin_layout Standard
28890 of the LaTeX-package
28892 floatf\SpecialChar \textcompwordmark{}
28896 \begin_inset LatexCommand index
28897 name "LaTeX-packages ! floatflt"
28904 \begin_layout Bibliography
28905 \begin_inset LatexCommand bibitem
28914 \begin_layout Standard
28918 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf}
28928 \begin_layout Standard
28935 of the LaTeX-package
28940 \begin_inset LatexCommand index
28941 name "LaTeX-packages ! footmisc"
28948 \begin_layout Bibliography
28949 \begin_inset LatexCommand bibitem
28958 \begin_layout Standard
28962 href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf}{
28971 \begin_layout Standard
28978 of the LaTeX-package
28983 \begin_inset LatexCommand index
28984 name "LaTeX-packages ! hyperref"
28991 \begin_layout Bibliography
28992 \begin_inset LatexCommand bibitem
29001 \begin_layout Standard
29005 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf}
29015 \begin_layout Standard
29022 of the LaTeX-package
29027 \begin_inset LatexCommand index
29028 name "LaTeX-packages ! hyperref"
29035 \begin_layout Bibliography
29036 \begin_inset LatexCommand bibitem
29045 \begin_layout Standard
29049 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.p
29059 \begin_layout Standard
29066 of the LaTeX-package
29071 \begin_inset LatexCommand index
29072 name "LaTeX-packages ! koma-script"
29079 \begin_layout Bibliography
29080 \begin_inset LatexCommand bibitem
29081 key "koma-script-de"
29089 \begin_layout Standard
29093 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguide.p
29103 \begin_layout Standard
29110 of the LaTeX-package
29115 \begin_inset LatexCommand index
29116 name "LaTeX-packages ! koma-script"
29123 \begin_layout Bibliography
29124 \begin_inset LatexCommand bibitem
29133 \begin_layout Standard
29137 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.
29147 \begin_layout Standard
29154 of the LaTeX-package
29159 \begin_inset LatexCommand index
29160 name "LaTeX-packages ! marginnote"
29167 \begin_layout Bibliography
29168 \begin_inset LatexCommand bibitem
29177 \begin_layout Standard
29181 href{http://tug.org/PSTricks/main.cgi/}{
29190 \begin_layout Standard
29197 of the LaTeX-package
29202 \begin_inset LatexCommand index
29203 name "LaTeX-packages ! PSTricks"
29210 \begin_layout Bibliography
29211 \begin_inset LatexCommand bibitem
29220 \begin_layout Standard
29224 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf}{
29233 \begin_layout Standard
29240 of the LaTeX-package
29245 \begin_inset LatexCommand index
29246 name "LaTeX-packages ! sidecap"
29253 \begin_layout Bibliography
29254 \begin_inset LatexCommand bibitem
29263 \begin_layout Standard
29267 href{http://wiki.lyx.org/LyX/NewInLyX15}{
29276 \begin_layout Standard
29283 about new LyX-features planned for the release
29290 \begin_layout Standard
29291 \begin_inset LatexCommand printindex
29298 \begin_layout Standard
29299 \begin_inset FloatList figure
29306 \begin_layout Standard
29307 \begin_inset FloatList table