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 only has an effect when you have selected the whole table row
14722 The space is added between the current and the following row.
14723 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
14725 For normal tables the inserted space will unfortunately destroy the vertical
14726 table lines as in the following table:
14727 \begin_inset Tabular
14728 <lyxtabular version="3" rows="3" columns="1">
14730 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14731 <row topline="true">
14732 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14735 \begin_layout Standard
14742 <row topline="true" interlinespace="3mm">
14743 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14746 \begin_layout Standard
14747 \begin_inset Formula $\downarrow$
14750 3\InsetSpace \thinspace{}
14751 mm space between row
14752 \begin_inset Formula $\downarrow$
14761 <row topline="true" bottomline="true">
14762 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14765 \begin_layout Standard
14766 \begin_inset Formula $\uparrow$
14769 3\InsetSpace \thinspace{}
14770 mm space between row
14771 \begin_inset Formula $\uparrow$
14786 So inserting space between rows for normal tables is only useful when you
14787 don't have vertical lines.
14790 \begin_layout Standard
14791 When you want to add extra height to all cells of all tables, you can do
14792 this with the following preamble line:
14795 \begin_layout Standard
14802 extrarowheight}{height}
14805 \begin_layout Standard
14806 But this has the disadvantage that the cell texts are no longer exactly
14807 vertically centered.
14810 \begin_layout Subsection
14811 Special Cell Alignment
14812 \begin_inset LatexCommand index
14813 name "Table Customization ! Special Cell Alignment"
14820 \begin_layout Standard
14821 Sometimes it looks better when the cell entries of a column are aligned
14822 with a special character, e.\InsetSpace \thinspace{}
14824 with the decimal separator as in Table\InsetSpace ~
14826 \begin_inset LatexCommand ref
14827 reference "tab:Table-cells-of"
14834 \begin_layout Standard
14835 \begin_inset Float table
14841 \begin_layout Standard
14842 \begin_inset Caption
14844 \begin_layout Standard
14845 \begin_inset LatexCommand label
14846 name "tab:Table-cells-of"
14850 Table cells of a column aligned with the decimal separator.
14858 \begin_layout Standard
14860 \begin_inset Tabular
14861 <lyxtabular version="3" rows="4" columns="2">
14863 <column alignment="right" valignment="top" width="0">
14864 <column alignment="left" valignment="top" width="0" special="@{}l">
14865 <row bottomline="true">
14866 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
14869 \begin_layout Standard
14875 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14878 \begin_layout Standard
14886 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14889 \begin_layout Standard
14895 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14898 \begin_layout Standard
14906 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14909 \begin_layout Standard
14915 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14918 \begin_layout Standard
14926 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14929 \begin_layout Standard
14935 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14938 \begin_layout Standard
14957 \begin_layout Standard
14958 This table was created with a 4×2 table.
14959 The heading is a centered multicolumn.
14960 The first column is right-aligned and contains the digits before the decimal
14961 point and the decimal point.
14962 The second column is left aligned and contains the digits after the decimal
14964 To omit the space that is normally between two table columns, use the following
14965 LaTeX-argument for the second column:
14968 \begin_layout Standard
14974 \begin_layout Standard
14975 If you need a vertical line right beside the second column, use this LaTeX-argum
14981 \begin_layout Standard
14984 \begin_inset LatexCommand ref
14985 reference "tab:Several-table-cell"
14989 shows some example alignments.
14990 For the alignment with the relation sign, you must add the second smallest
14991 math-space at the beginning of the last column to get the correct space
14992 surrounding the relation sign.
14995 \begin_layout Standard
14996 \begin_inset Float table
15001 \begin_layout Standard
15002 \begin_inset Caption
15004 \begin_layout Standard
15005 \begin_inset LatexCommand label
15006 name "tab:Several-table-cell"
15010 Several table cell alignments.
15018 \begin_layout Standard
15020 \begin_inset Tabular
15021 <lyxtabular version="3" rows="4" columns="6">
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 <column alignment="right" valignment="top" width="0">
15028 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15029 <row bottomline="true">
15030 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15033 \begin_layout Standard
15039 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15042 \begin_layout Standard
15048 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15051 \begin_layout Standard
15057 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15060 \begin_layout Standard
15066 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15069 \begin_layout Standard
15075 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15078 \begin_layout Standard
15086 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15089 \begin_layout Standard
15095 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15098 \begin_layout Standard
15099 24\InsetSpace \thinspace{}
15105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15108 \begin_layout Standard
15109 \begin_inset Formula $10\cdot$
15117 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15120 \begin_layout Standard
15121 \begin_inset Formula $10^{\mbox{-}17}$
15129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15132 \begin_layout Standard
15133 \begin_inset Formula $\Gamma(t)\propto$
15141 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15144 \begin_layout Standard
15145 \begin_inset Formula $\:\Upsilon(t)$
15155 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15158 \begin_layout Standard
15164 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15167 \begin_layout Standard
15168 768\InsetSpace \thinspace{}
15174 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15177 \begin_layout Standard
15178 \begin_inset Formula $5.78\cdot$
15186 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15189 \begin_layout Standard
15190 \begin_inset Formula $10^{7}$
15198 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15201 \begin_layout Standard
15202 \begin_inset Formula $A\ne$
15210 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15213 \begin_layout Standard
15214 \begin_inset Formula $\: B_{\mathrm{red}}$
15224 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15227 \begin_layout Standard
15233 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15236 \begin_layout Standard
15237 6\InsetSpace \thinspace{}
15243 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15246 \begin_layout Standard
15248 \begin_inset Formula $33.5\cdot$
15256 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15259 \begin_layout Standard
15260 \begin_inset Formula $10^{4}$
15268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15271 \begin_layout Standard
15272 \begin_inset Formula $\sin(\alpha)\ge$
15280 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15283 \begin_layout Standard
15284 \begin_inset Formula $\:\sin(\beta)$
15305 \begin_layout Standard
15306 \begin_inset VSpace bigskip
15309 There is also the LaTeX-package
15314 \begin_inset LatexCommand index
15315 name "LaTeX-packages ! dcolumn"
15319 that provides table cell alignments.
15320 But this unfortunately treats the cell entries as math and doesn't allow
15321 formulas in table cells: The first column of Table\InsetSpace ~
15323 \begin_inset LatexCommand ref
15324 reference "tab:Several-table-cell"
15332 like the first column in Table\InsetSpace ~
15334 \begin_inset LatexCommand ref
15335 reference "tab:Alignments-when"
15339 and only with some tricks like the expected.
15340 The alignment of the second and third column of Table\InsetSpace ~
15342 \begin_inset LatexCommand ref
15343 reference "tab:Several-table-cell"
15347 is not possible with
15354 \begin_layout Standard
15355 \begin_inset Float table
15361 \begin_layout Standard
15362 \begin_inset Caption
15364 \begin_layout Standard
15365 \begin_inset LatexCommand label
15366 name "tab:Alignments-when"
15370 Alignments when LaTeX-package dcolumn is used.
15371 For all column alignments tricks have to be used to get the output.
15379 \begin_layout Standard
15381 \begin_inset Tabular
15382 <lyxtabular version="3" rows="4" columns="3">
15384 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{-1}|">
15385 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{4.9}|">
15386 <column alignment="center" valignment="top" rightline="true" width="0" special="D{~}{\,}{9.7}">
15387 <row bottomline="true">
15388 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15391 \begin_layout Standard
15397 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15400 \begin_layout Standard
15406 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15409 \begin_layout Standard
15417 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15420 \begin_layout Standard
15421 12x24\InsetSpace \thinspace{}
15427 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15430 \begin_layout Standard
15431 12x24\InsetSpace \thinspace{}
15433 \begin_inset Formula $\mbox{bottles}$
15441 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15444 \begin_layout Standard
15449 \begin_layout Standard
15459 \begin_inset Formula $\mbox{bottles}$
15469 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15472 \begin_layout Standard
15473 1024x768\InsetSpace \thinspace{}
15479 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15482 \begin_layout Standard
15483 1024x768\InsetSpace \thinspace{}
15485 \begin_inset Formula $\mbox{Pixels}$
15493 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15496 \begin_layout Standard
15501 \begin_layout Standard
15511 \begin_inset Formula $\mbox{Pixels}$
15521 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15524 \begin_layout Standard
15525 32x6\InsetSpace \thinspace{}
15531 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15534 \begin_layout Standard
15535 32x6\InsetSpace \thinspace{}
15537 \begin_inset Formula $\mbox{cm}$
15545 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15548 \begin_layout Standard
15553 \begin_layout Standard
15563 \begin_inset Formula $\mbox{cm}$
15584 \begin_layout Subsection
15585 Customized Cell/Column Format
15586 \begin_inset LatexCommand label
15587 name "sub:Customized-Format"
15592 \begin_inset LatexCommand index
15593 name "Table Customization ! Cell/Column Format"
15600 \begin_layout Standard
15601 Calculating the needed width for spanned columns like in section\InsetSpace ~
15603 \begin_inset LatexCommand ref
15604 reference "sub:Multicolumn-Calculations"
15608 is very annoying if you have several tables with multicolumn cells.
15609 To make life easier, you can define a cell/column format in the preamble,
15610 so that it can be used in all tables of the document.
15611 The format is defined with the command
15614 \begin_layout Standard
15619 newcolumntype{name of format}[number of arguments]{commands}
15622 \begin_layout Standard
15623 The format name may only consist of one letter.
15648 are predefined and cannot be used.
15649 But all letters are allowed as capitals.
15652 \begin_layout Standard
15653 \begin_inset VSpace medskip
15659 \begin_layout Standard
15660 For vertically and horizontally centered multicolumn cells with a fixed
15661 width you can define the cell format
15664 \begin_layout Standard
15669 newcolumntype{M}[1]{>{
15676 \begin_layout Standard
15683 avoids the problem of hyphenating the first word, as described in section\InsetSpace ~
15685 \begin_inset LatexCommand ref
15686 reference "sub:Multiple-Lines-in"
15691 Now you can simply enter
15694 \begin_layout Standard
15700 \begin_layout Standard
15701 as LaTeX-argument in the table dialog to create a multicolumn.
15704 \begin_layout Standard
15705 \begin_inset VSpace bigskip
15711 \begin_layout Standard
15712 For cells spanned by a multicolumn cell, you can define the format
15715 \begin_layout Standard
15720 newcolumntype{S}[2]{>{
15730 \begin_layout Standard
15741 newcolumntype{S}[2]
15745 \begin_layout Standard
15756 arrayrulewidth)*(1-#2))/#2}}
15759 \begin_layout Standard
15760 This format uses equation
15761 \begin_inset LatexCommand eqref
15766 to calculate the needed width so that each spanned cell has the same width.
15769 \begin_layout Standard
15773 \begin_layout Standard
15776 |S{width of multicolumn cell}{number of spanned columns}
15779 \begin_layout Standard
15780 as LaTeX-argument of the column.
15783 \begin_layout Standard
15784 \begin_inset VSpace bigskip
15790 \begin_layout Standard
15791 For colored columns, you can define
15794 \begin_layout Standard
15799 newcolumntype{K}[1]{>{
15806 \begin_layout Standard
15808 \begin_inset Quotes eld
15812 \begin_inset Quotes erd
15815 at the end creates a column with a flexible width whose text is horizontally
15820 \begin_layout Standard
15826 \begin_layout Standard
15830 \begin_layout Standard
15831 \begin_inset VSpace bigskip
15837 \begin_layout Standard
15838 To create Table\InsetSpace ~
15840 \begin_inset LatexCommand ref
15841 reference "tab:Table-using-user-defined"
15845 use the LaTeX-arguments
15848 \begin_layout Standard
15854 \begin_layout Standard
15855 for the first column and the multicolumn,
15858 \begin_layout Standard
15864 \begin_layout Standard
15865 for the the last column, and
15868 \begin_layout Standard
15874 \begin_layout Standard
15875 for the cells in the second column.
15878 \begin_layout Standard
15879 \begin_inset Float table
15885 \begin_layout Standard
15886 \begin_inset Caption
15888 \begin_layout Standard
15889 \begin_inset LatexCommand label
15890 name "tab:Table-using-user-defined"
15894 Table using user-defined table formats
15902 \begin_layout Standard
15904 \begin_inset Tabular
15905 <lyxtabular version="3" rows="3" columns="4">
15907 <column alignment="center" valignment="middle" leftline="true" width="2.5cm" special="|M{2.5cm}">
15908 <column alignment="center" valignment="middle" leftline="true" width="0" special="|S{2.5cm}{2}">
15909 <column alignment="center" valignment="middle" leftline="true" width="0">
15910 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0" special="|K{red}|">
15911 <row topline="true">
15912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15915 \begin_layout Standard
15916 verylongtablecellword
15921 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none" special="M{2.5cm}|">
15924 \begin_layout Standard
15925 multiple lines multicolumn
15930 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15933 \begin_layout Standard
15939 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15942 \begin_layout Standard
15949 <row topline="true">
15950 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15953 \begin_layout Standard
15959 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15962 \begin_layout Standard
15968 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15971 \begin_layout Standard
15977 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15980 \begin_layout Standard
15987 <row topline="true" bottomline="true">
15988 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15991 \begin_layout Standard
15997 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16000 \begin_layout Standard
16006 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16009 \begin_layout Standard
16015 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16018 \begin_layout Standard
16037 \begin_layout Subsection
16039 \begin_inset LatexCommand label
16040 name "sub:Line-Thickness"
16045 \begin_inset LatexCommand index
16046 name "Table Customization ! Line Thickness"
16053 \begin_layout Standard
16054 The line thickness for all lines in a table can be adjusted with the length
16062 To set for example a line thickness of 1.5\InsetSpace \thinspace{}
16063 pt, like in Table\InsetSpace ~
16065 \begin_inset LatexCommand ref
16066 reference "tab:Table-with-1.5"
16070 , insert the command
16073 \begin_layout Standard
16080 arrayrulewidth}{1.5pt}
16083 \begin_layout Standard
16084 in ERT before the table or table float.
16085 The changed thickness is valid for all following tables.
16086 To use the default value again, set
16092 to 0.4\InsetSpace \thinspace{}
16093 pt in ERT behind the table or table float.
16096 \begin_layout Standard
16100 \begin_layout Standard
16106 arrayrulewidth}{1.5pt}
16112 \begin_inset Float table
16117 \begin_layout Standard
16118 \begin_inset Caption
16120 \begin_layout Standard
16121 \begin_inset LatexCommand label
16122 name "tab:Table-with-1.5"
16126 Table with 1.5\InsetSpace \thinspace{}
16135 \begin_layout Standard
16137 \begin_inset Tabular
16138 <lyxtabular version="3" rows="3" columns="3">
16140 <column alignment="center" valignment="top" leftline="true" width="0">
16141 <column alignment="center" valignment="top" leftline="true" width="0">
16142 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16143 <row topline="true">
16144 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16147 \begin_layout Standard
16153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16156 \begin_layout Standard
16162 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16165 \begin_layout Standard
16172 <row topline="true">
16173 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16176 \begin_layout Standard
16182 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16185 \begin_layout Standard
16191 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16194 \begin_layout Standard
16201 <row topline="true" bottomline="true">
16202 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16205 \begin_layout Standard
16211 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16214 \begin_layout Standard
16220 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16223 \begin_layout Standard
16243 \begin_layout Standard
16249 arrayrulewidth}{0.4pt}
16257 \begin_layout Standard
16258 \begin_inset VSpace bigskip
16261 To set the line thickness to 1.5\InsetSpace \thinspace{}
16262 pt only for horizontal lines, like in Table\InsetSpace ~
16264 \begin_inset LatexCommand ref
16265 reference "tab:Table-with-horizontal"
16269 , insert these commands in ERT before the table or table float:
16272 \begin_layout Standard
16295 arrayrulewidth 1.5pt}
16305 arrayrulewidth 0.4pt}}
16308 \begin_layout Standard
16309 To return to the default line thickness, insert this command in ERT behind
16310 the table or table float:
16313 \begin_layout Standard
16325 \begin_layout Standard
16329 \begin_layout Standard
16340 \begin_layout Standard
16349 \begin_layout Standard
16357 arrayrulewidth 1.5pt}
16360 \begin_layout Standard
16370 arrayrulewidth 0.4pt}}
16376 \begin_inset Float table
16381 \begin_layout Standard
16382 \begin_inset Caption
16384 \begin_layout Standard
16385 \begin_inset LatexCommand label
16386 name "tab:Table-with-horizontal"
16390 Table with 1.5\InsetSpace \thinspace{}
16391 pt thick horizontal lines
16399 \begin_layout Standard
16401 \begin_inset Tabular
16402 <lyxtabular version="3" rows="3" columns="3">
16404 <column alignment="center" valignment="top" leftline="true" width="0">
16405 <column alignment="center" valignment="top" leftline="true" width="0">
16406 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16407 <row topline="true">
16408 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16411 \begin_layout Standard
16417 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16420 \begin_layout Standard
16426 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16429 \begin_layout Standard
16436 <row topline="true">
16437 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16440 \begin_layout Standard
16446 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16449 \begin_layout Standard
16455 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16458 \begin_layout Standard
16465 <row topline="true" bottomline="true">
16466 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16469 \begin_layout Standard
16475 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16478 \begin_layout Standard
16484 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16487 \begin_layout Standard
16507 \begin_layout Standard
16523 \begin_layout Standard
16524 \begin_inset VSpace bigskip
16527 To set the line thickness to 1.5\InsetSpace \thinspace{}
16528 pt only for vertical lines, create the following
16529 column format in the document preamble, according to the description in
16530 section\InsetSpace ~
16532 \begin_inset LatexCommand ref
16533 reference "sub:Customized-Format"
16540 \begin_layout Standard
16545 newcolumntype{V}{!{
16547 vrule width 1.5pt}}
16550 \begin_layout Standard
16551 For Table\InsetSpace ~
16553 \begin_inset LatexCommand ref
16554 reference "tab:Table-with-vertical"
16561 \begin_layout Standard
16567 \begin_layout Standard
16568 was used for the last column and
16571 \begin_layout Standard
16577 \begin_layout Standard
16578 for the other columns.
16581 \begin_layout Standard
16582 \begin_inset Float table
16587 \begin_layout Standard
16588 \begin_inset Caption
16590 \begin_layout Standard
16591 \begin_inset LatexCommand label
16592 name "tab:Table-with-vertical"
16596 Table with 1.5\InsetSpace \thinspace{}
16597 pt thick vertical lines
16605 \begin_layout Standard
16607 \begin_inset Tabular
16608 <lyxtabular version="3" rows="3" columns="3">
16610 <column alignment="center" valignment="top" leftline="true" width="0" special="Vc">
16611 <column alignment="center" valignment="top" leftline="true" width="0" special="Vc">
16612 <column alignment="center" valignment="top" leftline="true" width="0" special="VcV">
16613 <row topline="true">
16614 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16617 \begin_layout Standard
16623 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16626 \begin_layout Standard
16632 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16635 \begin_layout Standard
16642 <row topline="true">
16643 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16646 \begin_layout Standard
16652 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16655 \begin_layout Standard
16661 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16664 \begin_layout Standard
16671 <row topline="true" bottomline="true">
16672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16675 \begin_layout Standard
16681 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16684 \begin_layout Standard
16690 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16693 \begin_layout Standard
16712 \begin_layout Subsection
16714 \begin_inset LatexCommand index
16715 name "Table Customization ! Dashed Lines"
16722 \begin_layout Standard
16726 \begin_layout Standard
16736 \begin_inset Note Note
16739 \begin_layout Standard
16740 The following section will only be displayed when you have the LaTeX-package
16753 \begin_layout Standard
16754 \begin_inset Float table
16760 \begin_layout Standard
16761 \begin_inset Caption
16763 \begin_layout Standard
16764 \begin_inset LatexCommand label
16765 name "tab:Table-with-dashed"
16769 Table with dashed lines
16777 \begin_layout Standard
16779 \begin_inset Tabular
16780 <lyxtabular version="3" rows="5" columns="5">
16782 <column alignment="center" valignment="top" leftline="true" width="0">
16783 <column alignment="center" valignment="top" leftline="true" width="0">
16784 <column alignment="center" valignment="top" width="0" special=":c">
16785 <column alignment="center" valignment="top" leftline="true" width="0">
16786 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16787 <row topline="true" bottomline="true">
16788 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16791 \begin_layout Standard
16797 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16800 \begin_layout Standard
16806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16809 \begin_layout Standard
16815 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16818 \begin_layout Standard
16824 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16827 \begin_layout Standard
16834 <row topline="true">
16835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16838 \begin_layout Standard
16844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16847 \begin_layout Standard
16853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16856 \begin_layout Standard
16862 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16865 \begin_layout Standard
16871 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16874 \begin_layout Standard
16882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16885 \begin_layout Standard
16889 \begin_layout Standard
16903 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16906 \begin_layout Standard
16912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16915 \begin_layout Standard
16921 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16924 \begin_layout Standard
16930 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16933 \begin_layout Standard
16940 <row topline="true">
16941 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16944 \begin_layout Standard
16948 \begin_layout Standard
16962 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16965 \begin_layout Standard
16971 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="c:">
16974 \begin_layout Standard
16980 <cell multicolumn="1" alignment="center" valignment="top" rightline="true" usebox="none" special="c:">
16983 \begin_layout Standard
16989 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16992 \begin_layout Standard
16999 <row topline="true" bottomline="true">
17000 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17003 \begin_layout Standard
17009 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17012 \begin_layout Standard
17018 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17021 \begin_layout Standard
17027 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17030 \begin_layout Standard
17036 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17039 \begin_layout Standard
17058 \begin_layout Standard
17059 LyX doesn't natively support dashed lines, so you have to use ERT.
17060 As prerequisite the LaTeX-package
17065 \begin_inset LatexCommand index
17066 name "LaTeX-packages ! arydshln"
17070 must be loaded in the document preamble with the command
17073 \begin_layout Standard
17078 usepackage{arydshln}
17081 \begin_layout Standard
17082 To make a vertical line dashed, enter the colon
17083 \begin_inset Quotes eld
17087 \begin_inset Quotes erd
17090 together with the character for the horizontal alignment as LaTeX-argument
17091 in the table cell dialog.
17094 \begin_layout Standard
17095 For a horizontal dashed line add the command
17098 \begin_layout Standard
17106 \begin_layout Standard
17107 in ERT as first element of the first cell in the table row.
17110 \begin_layout Standard
17111 For dashed multicolumn lines use the command
17114 \begin_layout Standard
17119 cdashline{line number
17124 \begin_layout Standard
17125 in ERT as first element of the first cell in the table row.
17126 If you have for example a multicolumn spanning over columns 2 to 4 and
17127 you want to have a dashed line above, add the command
17130 \begin_layout Standard
17138 \begin_layout Standard
17139 as first element of the first cell in the row of the multicolumn.
17142 \begin_layout Standard
17143 \begin_inset VSpace bigskip
17149 \begin_layout Standard
17152 \begin_inset LatexCommand ref
17153 reference "tab:Table-with-dashed"
17158 \begin_inset Quotes eld
17166 \begin_inset Quotes erd
17169 as LaTeX-argument of the third column.
17176 was inserted to the first cell of the third row and the the ERT command
17185 was inserted to the first cell of the fourth row.
17188 \begin_layout Standard
17189 \begin_inset Note Greyedout
17192 \begin_layout Standard
17197 The used LaTeX-package
17201 is apparently not compatible with the LaTeX-package
17206 \begin_inset LatexCommand index
17207 name "LaTeX-packages ! colortbl"
17211 that is used for colored tables in section\InsetSpace ~
17213 \begin_inset LatexCommand ref
17214 reference "sec:Colored-Tables"
17219 That means colored tables cannot have dashed lines.
17227 \begin_layout Standard
17231 \begin_layout Standard
17241 \begin_inset Note Note
17244 \begin_layout Standard
17245 The following will be displayed when the LaTeX-package
17257 \begin_layout Standard
17258 You need to install the package
17262 to see the contents of this section in the output.
17265 \begin_layout Standard
17269 \begin_layout Standard
17281 \begin_layout Chapter
17283 \begin_inset LatexCommand index
17289 \begin_inset LatexCommand label
17297 \begin_layout Section
17299 \begin_inset LatexCommand label
17300 name "sec:FloatIntroduction"
17305 \begin_inset LatexCommand index
17306 name "Floats ! Introduction"
17313 \begin_layout Standard
17314 A float is a block of text associated with some sort of label, which doesn't
17315 have a fixed location.
17317 \begin_inset Quotes eld
17321 \begin_inset Quotes erd
17324 forward or backward a page or two, to wherever it fits best.
17331 Margin\InsetSpace ~
17334 are also floats, because they can float to the next page when there are
17335 too many notes at the page.
17338 \begin_layout Standard
17339 Floats allow a high quality layout.
17340 Images and tables can evenly be spread to the pages to avoid white space
17341 and pages without text.
17342 As the floating often destroys the context between the text and the image/table
17343 , every float can be referenced in the text.
17344 Floats are therefore numbered.
17345 Referencing is described in section\InsetSpace ~
17347 \begin_inset LatexCommand ref
17348 reference "sec:Referencing-Floats"
17355 \begin_layout Standard
17356 To insert a float, use the menu
17358 Insert\SpecialChar \menuseparator
17362 This inserts a box with a label in the
17370 \begin_layout Standard
17375 environment is described in LyX's
17384 into your document.
17385 Every label ends with the character
17386 \begin_inset Quotes eld
17390 \begin_inset Quotes erd
17393 as placeholder for the float number in the output.
17394 The label will automatically be translated to the document language in
17396 Behind the label you can insert the caption text.
17397 The image or table is inserted above or below the caption in a separate
17398 paragraph within the float.
17399 More about the caption placement is described in section\InsetSpace ~
17401 \begin_inset LatexCommand ref
17402 reference "sec:Caption-Placement"
17407 To keep your LyX-document readable, you can open and close the float box
17408 by left-clicking on the box label.
17409 A closed float box looks like this:
17410 \begin_inset Graphics
17411 filename clipart/floatQt4.png
17416 -- a gray button with a red label.
17419 \begin_layout Standard
17420 It is recommended to insert floats as a separate paragraph to avoid possible
17421 LaTeX-errors that can occur when the surrounding text is specially formatted.
17424 \begin_layout Standard
17425 Existing figures or tables can be put into a float by marking them and then
17426 pressing the corresponding toolbar button for a new float.
17429 \begin_layout Section
17433 \begin_layout Standard
17434 Besides figure and table floats that are described in section\InsetSpace ~
17436 \begin_inset LatexCommand ref
17437 reference "sec:Figure-Floats"
17442 \begin_inset LatexCommand ref
17443 reference "sec:Table-Floats"
17447 , respectively, LyX offers the float types
17460 \begin_layout Subsection
17462 \begin_inset LatexCommand index
17463 name "Floats ! Algorithm Floats"
17470 \begin_layout Standard
17471 \begin_inset Float algorithm
17477 \begin_layout Standard
17478 \begin_inset Caption
17480 \begin_layout Standard
17481 \begin_inset LatexCommand label
17482 name "alg:Example-Algorithm-float"
17486 Example Algorithm float
17494 \begin_layout LyX-Code
17497 Sum:= Sum + A(I); /*senseless comment*/
17500 \begin_inset VSpace -4mm
17511 \begin_layout Standard
17512 This float type is inserted with the menu
17514 Insert\SpecialChar \menuseparator
17515 Floats\SpecialChar \menuseparator
17519 It is used for program codes and descriptions of algorithms.
17520 A possible environment for algorithms is the
17524 , described in LyX's
17529 Algorithm\InsetSpace ~
17531 \begin_inset LatexCommand ref
17532 reference "alg:Example-Algorithm-float"
17536 is an example of an algorithm float where -4\InsetSpace \thinspace{}
17537 mm vertical space was added
17538 at the end of the float to have the bottom rule exactly below the last
17542 \begin_layout Standard
17543 The float label is not automatically translated into the document language.
17544 If your document is not in English, you have to do this manually by adding
17545 the following line to the document preamble
17550 \begin_layout Standard
17555 floatname{algorithm}{your\InsetSpace ~
17559 \begin_layout Standard
17566 \begin_inset Quotes eld
17574 \begin_inset Quotes erd
17580 \begin_layout Description
17585 When the LaTeX-package
17590 \begin_inset LatexCommand index
17591 name "LaTeX-packages ! hyperref"
17595 is used to link cross-references to floats in the PDF-output, it must be
17596 loaded in the document preamble before the definition of floats to be able
17597 to reference floats.
17598 As LyX sets the float definition for algorithm floats automatically before
17599 the user editable part of the document preamble, you need to insert the
17600 following preamble lines
17604 the loading command of
17611 \begin_inset VSpace defskip
17618 newfloat{Xalgorithm}{tbp}{loa}
17622 floatname{Xalgorithm}{your\InsetSpace ~
17635 renewenvironment{algorithm}[1][tbp]
17641 \begin_layout Standard
17652 begin{Xalgorithm}[#1]}{
17655 \begin_inset VSpace defskip
17668 \begin_inset Quotes eld
17676 \begin_inset Quotes erd
17682 \begin_layout Standard
17683 Algorithm floats are not by default numbered in the scheme
17684 \begin_inset Quotes eld
17688 \begin_inset Quotes erd
17691 like it is the case for table and figure floats in many document-classes.
17692 To number algorithm floats in the same scheme, add this command to your
17696 \begin_layout Standard
17701 numberwithin{algorithm}{chapter}
17704 \begin_layout Standard
17705 If you use the LaTeX-package
17709 , add this line instead
17717 (the commands from above) to the preamble:
17720 \begin_layout Standard
17725 numberwithin{Xalgorithm}{chapter}
17728 \begin_layout Standard
17729 To be able to use the command
17740 in the document settings the option
17750 \begin_layout Subsection
17752 \begin_inset LatexCommand index
17753 name "Floats ! Text Wrap Floats"
17758 \begin_inset LatexCommand label
17759 name "sub:floatflt-wrap-float"
17766 \begin_layout Standard
17767 This float type is used if you want to
17768 \begin_inset Quotes eld
17772 \begin_inset Quotes erd
17775 text around a figure so that it only occupies some fraction of the column
17777 It can be inserted using the menu
17778 \begin_inset Wrap figure
17783 \begin_layout Standard
17784 \begin_inset Graphics
17785 filename clipart/mobius.eps
17788 rotateOrigin center
17795 \begin_layout Standard
17796 \begin_inset Caption
17798 \begin_layout Standard
17799 \begin_inset LatexCommand label
17800 name "fig:This-is-a"
17804 This is a wrapped figure, and this is the brilliant caption that describes
17806 \begin_inset VSpace medskip
17821 Insert\SpecialChar \menuseparator
17822 Floats\SpecialChar \menuseparator
17827 if the LaTeX-package
17832 \begin_inset LatexCommand index
17833 name "LaTeX-packages ! floatflt"
17841 \begin_layout Standard
17842 Installing a LaTeX-package is explained it in the
17852 The width and placement of the float is adjusted by right-clicking on the
17854 Figure\InsetSpace ~
17856 \begin_inset LatexCommand ref
17857 reference "fig:This-is-a"
17861 is an example text wrap float with a width of 40
17862 \begin_inset Formula $\,$
17869 \begin_layout Standard
17870 Available units are explained in
17871 \begin_inset LatexCommand ref
17872 reference "cha:Units-available-in"
17881 Some space was added under the caption to separate it better from the surroundi
17885 \begin_layout Standard
17890 also supports table wrap floats, but they are not yet supported by LyX.
17891 If you need this, read the documentation of
17896 \begin_inset LatexCommand cite
17904 \begin_layout Standard
17905 \begin_inset Note Greyedout
17908 \begin_layout Standard
17914 wrap float floats are fragile! E.\InsetSpace \thinspace{}
17916 having a figure too close to the bottom
17917 of the page can mess things up in the way that the float doesn't appear
17918 in the output or that it is placed over some other text.
17922 \begin_layout Standard
17923 The better solution is to use the LaTeX-package
17925 wrapf\SpecialChar \textcompwordmark{}
17929 \begin_inset LatexCommand index
17930 name "LaTeX-packages ! wrapfig\\vspace{4mm}"
17936 floatf\SpecialChar \textcompwordmark{}
17939 , but it is currently not supported by LyX.
17952 \begin_layout Standard
17956 \begin_layout Itemize
17957 Wrap floats should not be placed in paragraphs that run over a page break.
17958 That means that wrap floats should better be inserted to the exact place
17959 when the document is nearly ready and you are able to estimate where page
17960 breaks will appear.
17963 \begin_layout Itemize
17964 Wrap floats should either be placed in an own paragraph before the paragraph
17965 where they should wrap into or within a paragraph.
17968 \begin_layout Itemize
17969 Wrap floats in consecutive paragraphs may cause troubles, so assure that
17970 there is a text paragraph between them as separator.
17973 \begin_layout Itemize
17974 Wrap floats are not allowed in section headings or tables.
17977 \begin_layout Section
17979 \begin_inset LatexCommand label
17980 name "sec:Referencing-Floats"
17985 \begin_inset LatexCommand index
17986 name "Floats ! References"
17991 \begin_inset LatexCommand index
17999 \begin_layout Standard
18000 To reference a float, insert a label into its caption using the menu
18002 Insert\SpecialChar \menuseparator
18005 or the toolbar button
18006 \begin_inset Graphics
18007 filename ../images/label-insert.xpm
18013 A grey label box like this one:
18014 \begin_inset Graphics
18015 filename clipart/labelQt4.png
18020 will be inserted and the label window pops up asking for the label text.
18021 LyX offers as text the first words of the caption with a prefix.
18022 The prefix depends on the float type, e.\InsetSpace \thinspace{}
18024 for figure floats the prefix will
18032 \begin_layout Standard
18033 The label is used as anchor and name for the reference.
18034 You can refer to the label using the menu
18036 Insert\SpecialChar \menuseparator
18039 or the toolbar button
18040 \begin_inset Graphics
18041 filename ../images/dialog-show-new-inset_ref.xpm
18047 A grey cross-reference box like this one:
18048 \begin_inset Graphics
18049 filename clipart/referenceQt4.png
18054 will be inserted and the cross-reference window appear showing all labels
18056 If you have multiple LyX-documents opened, choose the one you are working
18057 on from the drop-list at the top of the dialog.
18058 You can now sort the labels alphabetically and then choose one.
18059 At the position of the cross-reference box the float number will appear
18063 \begin_layout Standard
18064 It is recommended to use a protected space between the cross-reference name
18065 and its number to avoid line breaks between them.
18066 If a cross-reference refers to a non-existing label, you will see two question
18067 marks in the output instead of the reference.
18070 \begin_layout Standard
18071 You can change labels at any time by clicking on the label box.
18072 References to the changed label will automatically change its link to the
18073 new label text, so that you don't need to take care about this.
18076 \begin_layout Standard
18083 in the cross-reference window sets the cursor before the referred label.
18084 The button text changes then to Go\InsetSpace ~
18085 Back and you can use it to set the cursor
18086 back to the cross-reference.
18087 Right-clicking on a cross-reference box also sets the cursor before the
18088 referenced label but without a possibility to go back.
18091 \begin_layout Subsection
18092 Cross-Reference Formats
18093 \begin_inset LatexCommand label
18094 name "sub:Cross-Reference-Formats"
18099 \begin_inset LatexCommand index
18100 name "References ! Formats"
18107 \begin_layout Standard
18108 There are six varieties of cross-references:
18111 \begin_layout Description
18112 <reference>: prints the float number, this is the default:
18113 \begin_inset LatexCommand ref
18114 reference "fig:Two-distorted-images"
18121 \begin_layout Description
18122 (<reference>): prints the float number within two parentheses, this is the
18123 style normally used to reference formulas, especially when the reference
18125 \begin_inset Quotes eld
18129 \begin_inset Quotes erd
18133 \begin_inset LatexCommand eqref
18141 \begin_layout Description
18142 <page>: prints the page number: Page\InsetSpace ~
18144 \begin_inset LatexCommand pageref
18145 reference "fig:Two-distorted-images"
18152 \begin_layout Description
18155 <page>: prints the text "on page" and the page number:
18156 \begin_inset LatexCommand vpageref
18157 reference "fig:Two-distorted-images"
18164 \begin_layout Description
18165 <reference>\InsetSpace ~
18168 <page>: prints the float number, the text "on page", and
18170 \begin_inset LatexCommand vref
18171 reference "fig:Two-distorted-images"
18178 \begin_layout Description
18179 Formatted\InsetSpace ~
18180 reference: prints a self defined cross-reference format.
18182 \begin_inset Note Greyedout
18185 \begin_layout Standard
18190 This feature is only available when you have the LaTeX-package
18202 \begin_layout Standard
18203 Note that the style <page> won't print the page number if the label is on
18204 the previous, the same, or the next page.
18205 You will e.\InsetSpace \thinspace{}
18208 \begin_inset Quotes eld
18216 \begin_inset Quotes erd
18222 \begin_layout Standard
18223 The number and current page of the referred document part in the output,
18224 is automatically calculated by LaTeX.
18225 The varieties are adjusted in the field
18229 of the cross-reference window, that appear when you click on the cross-referenc
18233 \begin_layout Subsection
18234 Referencing Subfigures
18235 \begin_inset LatexCommand label
18236 name "sub:Referencing-Subfigures"
18241 \begin_inset LatexCommand index
18242 name "References ! to Subfigures"
18249 \begin_layout Standard
18250 Currently referencing subfigures is not supported by LyX, so you have to
18251 use LaTeX-commands.
18252 The label is the created with the command
18255 \begin_layout Standard
18260 label{fig:YourLabelName}
18263 \begin_layout Standard
18264 that is directly inserted into the subfigure caption field.
18265 To reference the label add this command in ERT
18268 \begin_layout Standard
18273 ref{fig:YourLabelName}
18276 \begin_layout Standard
18277 to the position in your document where the reference should be placed.
18278 Here is a reference to a subfigure: Subfigure\InsetSpace ~
18283 \begin_layout Standard
18295 \begin_layout Subsection
18296 Automatic Reference Naming
18297 \begin_inset LatexCommand index
18298 name "References ! Automatic Reference Naming"
18305 \begin_layout Standard
18310 provides a very useful feature that cross-references automatically include
18311 the name of the referenced floats (or text parts like sections).
18312 You save to write e.\InsetSpace \thinspace{}
18315 \begin_inset Quotes eld
18319 \begin_inset Quotes erd
18322 before every reference box.
18323 To get this automatic reference naming, you have to load the LaTeX-package
18329 \begin_inset LatexCommand index
18330 name "LaTeX-packages ! hyperref"
18334 in the document preamble with
18337 \begin_layout Standard
18342 usepackage[pdfborder={0 0 0}]{hyperref}
18357 \begin_layout Standard
18362 is used to link cross-references in the DVI- and PDF-output, this means
18363 that the reader of your document will be able to click on a table of content
18364 (TOC) entry or on a reference and he will be shown the referenced document
18370 also creates PDF-bookmarks for every section of your document to make it
18371 easier for readers to navigate through the document.
18372 This is also used in this document but when you have a look in the document
18373 preamble you will find various options in the load command of
18378 To learn more about the
18382 package, we refer to its documentation
18383 \begin_inset LatexCommand cite
18391 \begin_layout Standard
18392 \begin_inset Note Greyedout
18395 \begin_layout Standard
18400 Automatic reference naming cannot be used when you use cross-references
18403 Formatted\InsetSpace ~
18406 style, described in section\InsetSpace ~
18408 \begin_inset LatexCommand ref
18409 reference "sub:Cross-Reference-Formats"
18421 \begin_layout Subsection
18423 \begin_inset LatexCommand label
18424 name "sub:Reference-Position"
18429 \begin_inset LatexCommand index
18430 name "References ! Reference Position"
18437 \begin_layout Standard
18443 \begin_inset LatexCommand index
18444 name "LaTeX-packages ! hyperref"
18448 to link cross-references in the output, you will see that clicking on an
18449 image float reference jumps to the image label.
18450 The caption will be the first text part on the screen, so that you cannot
18451 see the image without scrolling.
18452 This is because the reference link anchor is placed at the position of
18454 With the use of the package
18459 \begin_inset LatexCommand index
18460 name "LaTeX-packages ! hypcap"
18464 , which is part of the LaTeX-package
18469 \begin_inset LatexCommand index
18470 name "LaTeX-packages ! oberdiek"
18474 , the link anchor is placed at the beginning of a float.
18475 To use this feature for figure floats, load
18479 in the document preamble with the line
18482 \begin_layout Standard
18487 usepackage[f\SpecialChar \textcompwordmark{}
18491 \begin_layout Standard
18496 for all floats but this isn't recommended for stability reasons.
18497 For more informations, have a look at
18502 \begin_inset LatexCommand cite
18510 \begin_layout Standard
18511 \begin_inset Note Greyedout
18514 \begin_layout Standard
18523 must be loaded after
18527 in the document preamble.
18535 \begin_layout Standard
18536 \begin_inset Note Greyedout
18539 \begin_layout Standard
18544 The set reference position has no effect for references to subfigures.
18552 \begin_layout Section
18554 \begin_inset LatexCommand label
18555 name "sec:Float-Placement"
18560 \begin_inset LatexCommand index
18561 name "Floats ! Placement"
18568 \begin_layout Standard
18569 Right-clicking on a float-box opens a dialog where you can alter the placement
18570 options that LaTeX uses for positioning the float.
18577 is only useful for two-column documents: If you select it, the float will
18578 span across both columns on the page instead of being confined to just
18583 Rotate\InsetSpace ~
18586 is used to rotate floats, see section
18587 \begin_inset LatexCommand ref
18588 reference "sec:Rotated-Floats"
18595 \begin_layout Standard
18596 You can use one ore more of the following options in the float dialog to
18597 set the placement for a particular float when you uncheck the option
18600 default\InsetSpace ~
18606 \begin_layout Description
18609 possible: try to place the float on the position where it is inserted
18612 \begin_layout Description
18615 page: try to place the float on the top of the current page
18618 \begin_layout Description
18619 Bottom\InsetSpace ~
18621 page: try to place the float on the bottom of the current page
18624 \begin_layout Description
18627 floats: try to place the float on an own page
18630 \begin_layout Standard
18631 The order of the above option is
18636 That means, if you use the default placement, LaTeX will first try out
18649 , and then the others.
18650 If you don't use the default, LaTeX will try only the checked options but
18652 If none of the 4 placements are possible the procedure is internally repeated
18653 but it is tried to put the float on the following page.
18656 \begin_layout Standard
18657 By default, each options has its own rules:
18660 \begin_layout Labeling
18661 \labelwidthstring 00.00.0000
18668 only floats occupying less than 70\InsetSpace \thinspace{}
18669 % of the page can be placed at the top
18679 \begin_layout Labeling
18680 \labelwidthstring 00.00.0000
18683 Bottom\InsetSpace ~
18687 : only floats occupying less than 30\InsetSpace \thinspace{}
18688 % of the page can be placed at the bottom
18699 \begin_layout Labeling
18700 \labelwidthstring 00.00.0000
18707 : only if more than 50\InsetSpace \thinspace{}
18708 % of the page are occupied by floats, several floats
18709 can be set together on a page.
18719 \begin_layout Standard
18720 If you don't like these rules, you can ignore them by using the additional
18723 Ignore\InsetSpace ~
18729 You can also redefine the rules with LaTeX-commands that are given in parenthese
18730 s behind the rules description above.
18731 To increase for example the often too small default of the bottom-rule
18732 to 50\InsetSpace \thinspace{}
18733 % of the page, add this line to your document preamble:
18736 \begin_layout Standard
18743 bottomfraction}{0.5}
18746 \begin_layout Standard
18747 Sometimes you might need, under all circumstances, a float to be placed
18748 exactly at the position where it is inserted.
18749 For this case you can use the option
18755 Use this option very rarely and only if the document is nearly ready to
18757 Because the float is then no longer able to
18758 \begin_inset Quotes eld
18762 \begin_inset Quotes erd
18765 when you change your document and this will often destroy the page layout.
18768 \begin_layout Standard
18769 There are no placement options for text wrap floats, because they are always
18770 surrounded by the text of a certain paragraph.
18771 \begin_inset VSpace bigskip
18777 \begin_layout Standard
18778 Sometimes you have the problem that a float is placed at the top of a page
18779 while its corresponding section starts at the middle of the page, so that
18780 the reader could think the float is part of the previous section.
18781 To avoid this the LaTeX-command
18785 suppressf\SpecialChar \textcompwordmark{}
18789 It suppresses a given float placement for the page where it is inserted
18790 and can therefore be used to avoid that floats could be set before a section
18792 To get this, add these commands to your document preamble:
18795 \begin_layout Standard
18812 suppressf\SpecialChar \textcompwordmark{}
18818 \begin_layout Standard
18819 You can define the same for all section headings, like chapters and subsections.
18820 This definition is not recommended to be used for small text parts like
18821 subsubsections because LaTeX may then have problems to find a suitable
18825 \begin_layout Standard
18826 \begin_inset VSpace bigskip
18829 In some cases it is required to have all figures/tables at the end of the
18831 For this purpose the LaTeX-package
18833 endf\SpecialChar \textcompwordmark{}
18837 \begin_inset LatexCommand index
18838 name "LaTeX-packages ! endfloat"
18843 It puts all figure and table floats at the end of the document into own
18845 At the original float position a text hint like
18846 \begin_inset Quotes eld
18851 [Figure\InsetSpace ~
18855 \begin_inset Quotes erd
18859 The endfloat-package is loaded in the preamble with the line
18862 \begin_layout Standard
18867 usepackage[options]{endf\SpecialChar \textcompwordmark{}
18871 \begin_layout Standard
18872 There are various package options to format the created figure/table sections.
18873 For more information we refer to the
18875 endf\SpecialChar \textcompwordmark{}
18879 \begin_inset LatexCommand cite
18887 \begin_inset Note Greyedout
18890 \begin_layout Standard
18893 Note: endf\SpecialChar \textcompwordmark{}
18896 doesn't provide an automatic translation for the text hint, you have to
18897 do this manually, see section\InsetSpace ~
18899 \begin_inset LatexCommand cite
18912 \begin_inset Note Greyedout
18915 \begin_layout Standard
18920 There is currently a bug in
18922 endf\SpecialChar \textcompwordmark{}
18925 when the caption contains a German
18926 \begin_inset Quotes eld
18930 \begin_inset Quotes erd
18934 Use in this case the command
18935 \begin_inset Quotes eld
18945 \begin_inset Quotes erd
18949 \begin_inset Quotes eld
18953 \begin_inset Quotes erd
18964 \begin_layout Standard
18965 \begin_inset VSpace bigskip
18968 For more details about float placements, have a look at LaTeX books,
18969 \begin_inset LatexCommand cite
18970 key "latexcompanion,latexguide,latexbook"
18977 \begin_layout Section
18979 \begin_inset LatexCommand label
18980 name "sec:Rotated-Floats"
18985 \begin_inset LatexCommand index
18986 name "Floats ! Rotating"
18993 \begin_layout Standard
18994 Especially for wide tables you might have floats rotated.
18995 To rotate a whole float including the caption, right-click on the float-box
18998 Rotate\InsetSpace ~
19004 \begin_layout Standard
19005 Rotated floats are always placed on its own page (or column, when you have
19006 a two-column document).
19007 They are normally rotated so that you can read them from the outside margin
19008 -- to the left on even pages, to the right on odd pages.
19011 \begin_layout Standard
19012 Referencing rotated floats is the same like for normal floats, the caption
19013 format is also the same: Table\InsetSpace ~
19015 \begin_inset LatexCommand ref
19016 reference "tab:Rotated-table"
19020 is an example of a rotated table float.
19023 \begin_layout Standard
19024 \begin_inset Note Greyedout
19027 \begin_layout Standard
19032 Not all DVI-viewers are able to display rotated floats.
19040 \begin_layout Standard
19041 \begin_inset Float table
19046 \begin_layout Standard
19047 \begin_inset Caption
19049 \begin_layout Standard
19050 \begin_inset LatexCommand label
19051 name "tab:Rotated-table"
19063 \begin_layout Standard
19065 \begin_inset Tabular
19066 <lyxtabular version="3" rows="1" columns="5">
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" width="0">
19071 <column alignment="center" valignment="top" leftline="true" width="0">
19072 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19073 <row topline="true" bottomline="true">
19074 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19077 \begin_layout Standard
19083 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19086 \begin_layout Standard
19092 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19095 \begin_layout Standard
19101 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19104 \begin_layout Standard
19110 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19113 \begin_layout Standard
19132 \begin_layout Section
19134 \begin_inset LatexCommand index
19135 name "Caption ! Formatting"
19140 \begin_inset LatexCommand index
19141 name "Floats ! Caption Formatting"
19146 \begin_inset LatexCommand index
19147 name "LaTeX-packages ! caption"
19152 \begin_inset LatexCommand label
19153 name "sec:Caption-Formatting"
19160 \begin_layout Standard
19165 environment is the default paragraph environment for
19170 On the LyX screen captions appear as label, e.\InsetSpace \thinspace{}
19173 \begin_inset Quotes eld
19181 \begin_inset Quotes erd
19184 followed by the caption text.
19186 \begin_inset Quotes eld
19190 \begin_inset Quotes erd
19193 is substituted in the printed output by the actual reference number.
19194 By default the label and the number are in the same font as the caption
19195 text and a colon follows the number to divide then label from the text.
19196 This caption format is not suitable for all document formats.
19200 \begin_layout Standard
19201 To change the default caption format, load the LaTeX-package
19206 \begin_inset LatexCommand index
19207 name "LaTeX-packages ! caption"
19211 in the document preamble with this line:
19214 \begin_layout Standard
19219 usepackage[format definition]{caption}
19222 \begin_layout Standard
19223 To have for example the label and the number in sans-serif bold font and
19224 the table captions always above the table like in this document, use the
19228 \begin_layout Standard
19233 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
19236 \begin_layout Standard
19237 You can also define different caption formats for the different float types.
19238 In this case load the
19242 package without format specific options and define the different formats
19243 with the help of the command
19246 \begin_layout Standard
19251 captionsetup[float type]{format definition}
19254 \begin_layout Standard
19255 in the document preamble.
19256 For example the caption formats of Figure\InsetSpace ~
19258 \begin_inset LatexCommand ref
19259 reference "fig:This-is-an-fig"
19263 and Table\InsetSpace ~
19265 \begin_inset LatexCommand ref
19266 reference "tab:This-is-an-tab"
19270 can be created using these commands in the document preamble:
19273 \begin_layout Standard
19278 usepackage[tableposition=top]{caption}
19286 captionsetup[f\SpecialChar \textcompwordmark{}
19287 igure]{labelfont={tt}, textfont=it, indention=1cm,%
19293 \begin_layout Standard
19301 captionsetup[figure]
19312 captionsetup[table]{labelfont={bf,sf}}
19315 \begin_layout Standard
19316 \begin_inset Note Greyedout
19319 \begin_layout Standard
19328 has no effect when a
19333 \begin_inset LatexCommand index
19334 name "LaTeX-packages ! koma-script"
19338 document class is used.
19339 In this case the document class option
19351 \begin_layout Standard
19352 For more information about the package
19356 we refer to its documentation
19357 \begin_inset LatexCommand cite
19358 key "caption,caption-de"
19365 \begin_layout Standard
19366 To change the label name from e.g.
19368 \begin_inset Quotes eld
19372 \begin_inset Quotes erd
19376 \begin_inset Quotes eld
19380 \begin_inset Quotes erd
19383 use this preamble command:
19386 \begin_layout Standard
19393 fnum@figure}{Image~
19398 \begin_layout Standard
19405 inserts the figure number and
19408 \begin_inset Quotes eld
19414 \begin_inset Quotes erd
19417 creates a protected space.
19420 \begin_layout Standard
19421 \begin_inset VSpace bigskip
19429 \begin_inset LatexCommand index
19430 name "LaTeX-packages ! koma-script"
19436 article (koma-script)
19444 letter (koma-script)
19448 report (koma-script)
19450 \InsetSpace \thinspace{}
19451 ), you can alternatively to the
19459 's built-in command
19466 For example, to have the caption label in bold, add this command to your
19470 \begin_layout Standard
19475 setkomafont{captionlabel}{
19480 \begin_layout Standard
19481 For more information about
19492 \begin_inset LatexCommand cite
19493 key "koma-script,koma-script-de"
19500 \begin_layout Standard
19504 \begin_layout Standard
19508 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
19515 \begin_inset Note Note
19518 \begin_layout Standard
19519 The caption format is changed only for this example.
19527 \begin_layout Standard
19528 \begin_inset Float figure
19534 \begin_layout Standard
19536 \begin_inset Graphics
19537 filename clipart/mobius.eps
19546 \begin_layout Standard
19547 \begin_inset Caption
19549 \begin_layout Standard
19550 \begin_inset LatexCommand label
19551 name "fig:This-is-an-fig"
19555 This is an example figure caption that is longer than one line to show the
19556 different caption format.
19557 Here a self-defined caption format is used.
19570 \begin_layout Standard
19574 \begin_layout Standard
19578 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
19587 \begin_layout Standard
19588 \begin_inset Float table
19594 \begin_layout Standard
19595 \begin_inset Caption
19597 \begin_layout Standard
19598 \begin_inset LatexCommand label
19599 name "tab:This-is-an-tab"
19603 This is an example table caption that is longer than one line to show the
19604 different caption format.
19605 Here the standard caption format for tables in this document is used.
19613 \begin_layout Standard
19615 \begin_inset Tabular
19616 <lyxtabular version="3" rows="1" columns="5">
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" width="0">
19621 <column alignment="center" valignment="top" leftline="true" width="0">
19622 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19623 <row topline="true" bottomline="true">
19624 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19627 \begin_layout Standard
19633 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19636 \begin_layout Standard
19642 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19645 \begin_layout Standard
19651 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19654 \begin_layout Standard
19660 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19663 \begin_layout Standard
19682 \begin_layout Section
19684 \begin_inset LatexCommand index
19685 name "Caption ! Placement"
19690 \begin_inset LatexCommand index
19691 name "Floats ! Caption Placement"
19696 \begin_inset LatexCommand label
19697 name "sec:Caption-Placement"
19704 \begin_layout Standard
19705 The common caption placement rule is:
19708 \begin_layout Description
19709 Figure: Caption is set below the figure
19712 \begin_layout Description
19713 Table: Caption is set above the table
19716 \begin_layout Standard
19717 Having the caption above the table is unfortunately not supported in LaTeX's
19719 That means if you are using the document classes
19735 there will be no space between the caption and the table.
19736 To insert the needed space, add the following option to the load command
19737 of the LaTeX-package
19741 in your document preamble
19745 \begin_layout Standard
19746 See section\InsetSpace ~
19748 \begin_inset LatexCommand ref
19749 reference "sec:Caption-Formatting"
19753 for more information of the package
19765 \begin_layout Standard
19771 \begin_layout Standard
19777 \begin_inset LatexCommand index
19778 name "LaTeX-packages ! koma-script"
19784 article (koma-script)
19792 letter (koma-script)
19796 report (koma-script)
19798 \InsetSpace \thinspace{}
19799 ), you can alternatively to the
19803 package set the document class option
19807 , or you can use the environment
19809 caption\InsetSpace ~
19819 \begin_layout Standard
19820 \begin_inset VSpace bigskip
19823 It is also possible to set the caption beside a figure or table.
19824 To get this the LaTeX-package
19829 \begin_inset LatexCommand index
19830 name "LaTeX-packages ! sidecap"
19834 has to be loaded in the document preamble with the line
19837 \begin_layout Standard
19842 usepackage[option]{sidecap}
19845 \begin_layout Standard
19846 If you set no option, the caption is placed on the side of the outer page
19847 margin -- to the right on odd pages, to the left on even pages.
19848 You can change the placement to inner margin with the option
19853 To force the placement always to the right or left, use the option
19864 \begin_layout Standard
19865 To place in LyX the caption of a float on the side, it is necessary to add
19866 these commands to the document preamble:
19869 \begin_layout Standard
19875 \begin_layout Standard
19888 \begin_layout Standard
19909 \begin_layout Standard
19930 \begin_layout Standard
19941 renewenvironment{table}{
19948 \begin_layout Standard
19961 \begin_layout Standard
19982 \begin_layout Standard
20000 \begin_layout Standard
20013 \begin_layout Standard
20028 f\SpecialChar \textcompwordmark{}
20035 \begin_layout Standard
20048 MyEndf\SpecialChar \textcompwordmark{}
20051 endf\SpecialChar \textcompwordmark{}
20058 \begin_layout Standard
20069 renewenvironment{f\SpecialChar \textcompwordmark{}
20072 begin{SCf\SpecialChar \textcompwordmark{}
20075 end{SCf\SpecialChar \textcompwordmark{}
20079 \begin_layout Standard
20092 \begin_layout Standard
20105 f\SpecialChar \textcompwordmark{}
20114 \begin_layout Standard
20127 endf\SpecialChar \textcompwordmark{}
20130 MyEndf\SpecialChar \textcompwordmark{}
20134 \begin_layout Standard
20140 \begin_layout Standard
20141 The commands allow you to redefine the floats so that the caption is set
20143 For figure floats use the command
20146 \begin_layout Standard
20154 \begin_layout Standard
20155 in ERT before the float.
20156 Behind the float insert the command
20159 \begin_layout Standard
20167 \begin_layout Standard
20168 in ERT to get back to the original float definition.
20171 \begin_layout Standard
20172 For table floats use the corresponding commands
20175 \begin_layout Standard
20189 \begin_layout Standard
20190 Figure\InsetSpace ~
20192 \begin_inset LatexCommand ref
20193 reference "fig:cap-beside-fig"
20197 and Table\InsetSpace ~
20199 \begin_inset LatexCommand ref
20200 reference "tab:cap-beside-tab"
20204 are examples where the caption is set beside.
20207 \begin_layout Standard
20208 You can see in the examples that the caption text appears at the top of
20209 the floats for table floats and at the bottom for figure floats.
20210 To change this, you can use the command
20213 \begin_layout Standard
20218 sidecaptionvpos{float type}{placement}
20221 \begin_layout Standard
20222 in the document preamble or in ERT before the float.
20223 The float type is either
20231 , the placement can be
20232 \begin_inset Quotes eld
20240 \begin_inset Quotes erd
20244 \begin_inset Quotes eld
20252 \begin_inset Quotes erd
20256 \begin_inset Quotes eld
20264 \begin_inset Quotes erd
20268 To have for example the caption of figure floats vertically centered, use
20272 \begin_layout Standard
20277 sidecaptionvpos{f\SpecialChar \textcompwordmark{}
20281 \begin_layout Standard
20282 This was used for Figure\InsetSpace ~
20284 \begin_inset LatexCommand ref
20285 reference "fig:cap-beside-fig-2"
20292 \begin_layout Standard
20293 \begin_inset VSpace defskip
20296 For more information about the package
20300 we refer to its documentation
20301 \begin_inset LatexCommand cite
20309 \begin_layout Standard
20310 \begin_inset Note Greyedout
20313 \begin_layout Standard
20323 \begin_inset LatexCommand index
20324 name "LaTeX-packages ! hypcap"
20328 , described in section\InsetSpace ~
20330 \begin_inset LatexCommand ref
20331 reference "sub:Reference-Position"
20335 , has no effect on floats with the caption set beside.
20343 \begin_layout Standard
20347 \begin_layout Standard
20359 \begin_layout Standard
20360 \begin_inset Float figure
20365 \begin_layout Standard
20366 \begin_inset Graphics
20367 filename clipart/escher-lsd.eps
20375 \begin_layout Standard
20376 \begin_inset Caption
20378 \begin_layout Standard
20379 \begin_inset LatexCommand label
20380 name "fig:cap-beside-fig"
20384 This is a caption beside a figure.
20397 \begin_layout Standard
20401 \begin_layout Standard
20413 \begin_layout Standard
20414 \begin_inset Float table
20419 \begin_layout Standard
20420 \begin_inset Caption
20422 \begin_layout Standard
20423 \begin_inset LatexCommand label
20424 name "tab:cap-beside-tab"
20428 This is a caption beside a table.
20436 \begin_layout Standard
20437 \begin_inset Tabular
20438 <lyxtabular version="3" rows="4" columns="5">
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" width="0">
20443 <column alignment="center" valignment="top" leftline="true" width="0">
20444 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
20445 <row topline="true">
20446 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20449 \begin_layout Standard
20455 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20458 \begin_layout Standard
20464 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20467 \begin_layout Standard
20473 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20476 \begin_layout Standard
20482 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20485 \begin_layout Standard
20492 <row topline="true">
20493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20496 \begin_layout Standard
20502 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20505 \begin_layout Standard
20511 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20514 \begin_layout Standard
20520 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20523 \begin_layout Standard
20529 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20532 \begin_layout Standard
20539 <row topline="true">
20540 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20543 \begin_layout Standard
20549 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20552 \begin_layout Standard
20558 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20561 \begin_layout Standard
20567 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20570 \begin_layout Standard
20576 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20579 \begin_layout Standard
20586 <row topline="true" bottomline="true">
20587 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20590 \begin_layout Standard
20596 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20599 \begin_layout Standard
20605 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20608 \begin_layout Standard
20614 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20617 \begin_layout Standard
20623 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20626 \begin_layout Standard
20645 \begin_layout Standard
20649 \begin_layout Standard
20661 \begin_layout Standard
20665 \begin_layout Standard
20669 sidecaptionvpos{figure}{c}
20675 \begin_inset Float figure
20680 \begin_layout Standard
20681 \begin_inset Graphics
20682 filename clipart/escher-lsd.eps
20690 \begin_layout Standard
20691 \begin_inset Caption
20693 \begin_layout Standard
20694 \begin_inset LatexCommand label
20695 name "fig:cap-beside-fig-2"
20699 This is a vertically centered caption beside a figure.
20712 \begin_layout Standard
20716 \begin_layout Standard
20728 \begin_layout Section
20730 \begin_inset LatexCommand label
20731 name "sec:Listings-of-Floats"
20736 \begin_inset LatexCommand index
20737 name "Floats ! Listings"
20744 \begin_layout Standard
20745 Similar to the the table of contents where the sections of the document
20746 are listed, there are listings for all float types, like the figures of
20748 You can insert them via the
20750 Insert\SpecialChar \menuseparator
20758 \begin_layout Standard
20759 The list entries are the float captions or its short title, the float number,
20760 and the page number where they appear in the document.
20763 \begin_layout Standard
20764 You can find the list of figures and tables at the end of this document.
20767 \begin_layout Chapter
20771 \begin_layout Section
20775 \begin_layout Standard
20788 \begin_layout Standard
20796 \begin_inset LatexCommand label
20797 name "sec:LyX-Notes"
20802 \begin_inset LatexCommand index
20803 name "Notes ! LyX Notes"
20808 \begin_inset Note Note
20811 \begin_layout Standard
20814 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
20815 are displayed wrongly in PDF-bookmarks.
20816 For more information about this, have a look at
20817 \begin_inset LatexCommand cite
20830 \begin_layout Standard
20831 Notes are inserted with the toolbar button
20832 \begin_inset Graphics
20833 filename ../images/note-insert.xpm
20840 Insert\SpecialChar \menuseparator
20844 There are three types of notes:
20847 \begin_layout Description
20849 Note This note type is for internal notes that won't appear in the output.
20850 Its note-box looks like this:
20855 \begin_inset Graphics
20856 filename clipart/LyXNoteImageQt4.png
20863 \begin_inset Note Note
20866 \begin_layout Standard
20867 This is text in a note box that doesn't appear in the output.
20875 \begin_layout Description
20876 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
20877 ent, when you export the document to LaTeX via the menu
20879 File\SpecialChar \menuseparator
20880 Export\SpecialChar \menuseparator
20881 LaTeX (pdflatex) / LaTeX (plain)
20884 Its note-box looks like this:
20889 \begin_inset Graphics
20890 filename clipart/CommentNoteImageQt4.png
20897 \begin_inset Note Comment
20900 \begin_layout Standard
20901 This is text in a note box that only appears as comment in LaTeX-files.
20909 \begin_layout Description
20910 Greyed\InsetSpace ~
20911 Out This note will appear in the output as grey text.
20912 Its note-box looks like this:
20917 \begin_inset Graphics
20918 filename clipart/GreyedOutNoteImageQt4.png
20930 \begin_layout Standard
20934 renewenvironment{lyxgreyedout}
20937 \begin_layout Standard
20941 textcolor[gray]{0.8}
20951 \begin_inset Note Greyedout
20954 \begin_layout Standard
20959 \begin_layout Standard
20960 This is an example footnote within a greyed out note.
20965 of a comment that appears in the output as grey text.
20974 \begin_layout Standard
20978 renewenvironment{lyxgreyedout}
20981 \begin_layout Standard
20995 \begin_inset Note Note
20998 \begin_layout Standard
20999 The greyed out note is here redefined to show it with the original LyX definitio
21000 n because greyed out notes are redefined in the preamble of this document,
21001 as described below, to have blue text.
21010 As you can see in the example, the first line of greyed out notes is a bit
21011 indented and greyed out notes can have footnotes.
21014 \begin_layout Description
21015 Framed This note will appear in the output as framed text.
21016 Its note-box looks like this:
21021 \begin_inset Graphics
21022 filename clipart/FramedNoteImageQt4.png
21029 \begin_inset Note Framed
21032 \begin_layout Standard
21033 This is text in a note box that appears framed in the output.
21038 In contrary to framed boxes
21042 \begin_layout Standard
21043 Framed boxes are described in section\InsetSpace ~
21045 \begin_inset LatexCommand ref
21046 reference "sec:Framed-Boxes"
21055 the frame uses always the whole text width and the note is set into its
21059 \begin_layout Description
21060 Shaded This note will appear in the output with red background color.
21061 Its note box looks like this:
21066 \begin_inset Graphics
21067 filename clipart/ShadedNoteImageQt4.png
21074 \begin_inset Note Shaded
21077 \begin_layout Standard
21078 This text in a note box appears in the output with red background.
21083 In contrary to colored boxes
21087 \begin_layout Standard
21088 Colored boxes are described in section\InsetSpace ~
21090 \begin_inset LatexCommand ref
21091 reference "sec:Colored-Boxes"
21100 the note uses always the whole text width and the note is set into its
21104 \begin_layout Standard
21105 \begin_inset VSpace bigskip
21108 When you use the toolbar button to insert notes, a
21114 You can switch between the three note types by right-clicking on the note-box.
21119 If you want to turn existing text into a note, mark it and click on the
21135 \begin_layout Standard
21136 \begin_inset VSpace bigskip
21139 You can change the text color of the greyed out notes in the preamble with
21140 the following command:
21143 \begin_layout Standard
21148 renewenvironment{lyxgreyedout}
21154 \begin_layout Standard
21172 \begin_layout Standard
21173 The available colors and the method to define own colors is explained in
21174 section\InsetSpace ~
21176 \begin_inset LatexCommand ref
21177 reference "sec:Colored-Tables"
21184 \begin_layout Standard
21185 Notes that appear in blue in this document are set using greyed out notes
21189 \begin_layout Standard
21190 \begin_inset VSpace bigskip
21196 \begin_layout Standard
21205 notes can be set in the
21212 \begin_layout Standard
21213 The default frame width for
21217 notes is 0.4\InsetSpace \thinspace{}
21218 pt; it can be changed by changing the size
21225 The default space between the note content and the frame is 9\InsetSpace \thinspace{}
21227 be changed by changing the size
21234 For example the frame appearance of the following
21238 note is set with the ERT commands
21241 \begin_layout Standard
21251 \begin_layout Standard
21255 \begin_layout Standard
21267 \begin_inset Note Framed
21270 \begin_layout Standard
21284 \begin_layout Standard
21298 \begin_layout Standard
21299 \begin_inset VSpace bigskip
21305 \begin_layout Standard
21310 notes the default space between the note content and the note border is
21311 3\InsetSpace \thinspace{}
21312 pt; it can be changed by changing the size
21320 The default background color red can be changed with the command
21324 def\SpecialChar \textcompwordmark{}
21332 def\SpecialChar \textcompwordmark{}
21335 command is explained in section\InsetSpace ~
21337 \begin_inset LatexCommand ref
21338 reference "sec:Colored-Tables"
21346 \begin_layout Standard
21353 \SpecialChar \textcompwordmark{}
21358 requires the LaTeX-package
21362 in the preamble, see section\InsetSpace ~
21364 \begin_inset LatexCommand ref
21365 reference "sec:Colored-Boxes"
21377 \begin_layout Standard
21378 For example the appearance of the following
21382 note is set with the ERT commands
21385 \begin_layout Standard
21398 def\SpecialChar \textcompwordmark{}
21399 inecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21402 \begin_layout Standard
21406 \begin_layout Standard
21419 \begin_layout Standard
21423 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21429 \begin_inset Note Shaded
21432 \begin_layout Standard
21435 This is yellow text in a
21445 note with darkgreen background.
21454 \begin_layout Standard
21467 \begin_layout Standard
21471 definecolor{shadecolor}{rgb}{1,0,0}
21479 \begin_layout Section
21481 \begin_inset LatexCommand label
21482 name "sec:Footnotes"
21487 \begin_inset LatexCommand index
21488 name "Notes ! Footnotes"
21493 \begin_inset LatexCommand index
21501 \begin_layout Standard
21502 Footnotes can be inserted using the toolbar button
21503 \begin_inset Graphics
21504 filename ../images/footnote-insert.xpm
21511 Insert\SpecialChar \menuseparator
21523 then the following footnote-box:
21524 \begin_inset Graphics
21525 filename clipart/footnoteQt4.png
21534 where you can enter the footnote text.
21535 If you want to turn existing text into a footnote, mark it and click on
21551 \begin_layout Standard
21552 Here is an example footnote:
21560 \begin_layout Standard
21561 \begin_inset LatexCommand label
21562 name "foot:This-is-an"
21566 This is an example footnote.
21579 \begin_layout Standard
21583 newcounter{MyRepeatFoot}
21586 \begin_layout Standard
21590 setcounter{MyRepeatFoot}{
21600 \begin_layout Standard
21601 The footnote will appear in the output as a superscript number at the text
21602 position where the footnote box is placed.
21603 The footnote text is placed at the bottom of the current page.
21604 The footnote number is calculated by LaTeX, the numbers are consecutive.
21605 It depends on your document-class, if the footnote number is reset for
21609 \begin_layout Standard
21610 Footnotes can be referenced like floats: Insert a label into the footnote
21611 and cross-reference this label in the text as described in section\InsetSpace ~
21613 \begin_inset LatexCommand ref
21614 reference "sec:Referencing-Floats"
21620 This is a cross-reference of Footnote\InsetSpace ~
21622 \begin_inset LatexCommand ref
21623 reference "foot:This-is-an"
21630 \begin_inset Note Greyedout
21633 \begin_layout Standard
21638 LyX doesn't provide a prefix for labels in footnotes, so you have to insert
21639 e.\InsetSpace \thinspace{}
21644 \begin_inset Quotes eld
21650 \begin_inset Quotes erd
21653 manually when you want to use the reference style
21655 Formatted\InsetSpace ~
21666 \begin_layout Standard
21667 \begin_inset VSpace defskip
21670 To use footnotes within tables, you have to use minipages, see section\InsetSpace ~
21672 \begin_inset LatexCommand ref
21673 reference "sec:Minipages"
21678 Footnotes within longtables are described in section\InsetSpace ~
21680 \begin_inset LatexCommand ref
21681 reference "sub:Footnotes-in-Longtables"
21688 \begin_layout Standard
21689 \begin_inset VSpace defskip
21692 To create only a mark for a footnote, use the command
21696 footnotemark[number]
21699 This is used when you have the same annotation several times in a text
21700 but doesn't want to print the footnote text every time.
21703 the number of the repeating footnote while you are writing the text, you
21704 have to store its number.
21705 For the following footnote mark example, these commands were inserted in
21706 ERT behind Footnote\InsetSpace ~
21708 \begin_inset LatexCommand ref
21709 reference "foot:This-is-an"
21713 to store the footnote number:
21716 \begin_layout Standard
21721 newcounter{MyRepeatFoot}
21725 setcounter{MyRepeatFoot}{
21730 \begin_layout Standard
21731 The footnote mark was then created with this command:
21734 \begin_layout Standard
21744 \begin_layout Standard
21745 Here is an example footnote mark:
21753 \begin_layout Standard
21767 \begin_layout Subsection
21769 \begin_inset LatexCommand label
21770 name "sub:Footnote-Numbering"
21775 \begin_inset LatexCommand index
21776 name "Footnotes ! Numbering"
21783 \begin_layout Standard
21784 If you want to have footnotes numbered in the scheme
21785 \begin_inset Quotes eld
21789 \begin_inset Quotes erd
21792 , add the following command to your document preamble:
21795 \begin_layout Standard
21800 numberwithin{footnote}{chapter}
21803 \begin_layout Standard
21804 To be able to use the command
21815 in the document settings the option
21825 \begin_layout Standard
21829 \begin_layout Standard
21833 numberwithin{footnote}{chapter}
21838 This is another example footnote:
21844 \begin_layout Standard
21845 This is a footnote numbered in the scheme
21846 \begin_inset Quotes eld
21850 \begin_inset Quotes erd
21864 \begin_layout Standard
21868 numberwithin{footnote}{part}
21876 \begin_layout Standard
21877 \begin_inset VSpace bigskip
21883 \begin_layout Standard
21884 To reset the footnote number back to 1 after each section
21886 , add this command to your document preamble:
21889 \begin_layout Standard
21894 @addtoreset{footnote}{section}
21897 \begin_layout Standard
21898 \begin_inset VSpace bigskip
21901 The following preamble command changes the footnote numbering style to small
21905 \begin_layout Standard
21917 \begin_layout Standard
21921 \begin_layout Standard
21934 This is a footnote with roman numbering:
21938 \begin_layout Standard
21939 This is an example footnote with roman numbering.
21948 \begin_layout Standard
21964 \begin_layout Standard
21965 To change the numbering style to capital roman numerals replace in the command
21980 \begin_inset Quotes eld
21984 \begin_inset Quotes erd
21987 footnotes with capital or small Latin letters use
22001 \begin_inset Quotes eld
22005 \begin_inset Quotes erd
22008 footnotes with symbols use
22017 \begin_layout Standard
22018 \begin_inset Note Greyedout
22021 \begin_layout Standard
22026 You can only number 26 footnotes with Latin letters, because this numbering
22027 is limited to single letters.
22035 \begin_inset Note Greyedout
22038 \begin_layout Standard
22043 You can only number 9 footnotes with symbols.
22051 \begin_layout Standard
22052 To return to the default numbering style when you changed to another one,
22065 in the command above.
22068 \begin_layout Subsection
22070 \begin_inset LatexCommand index
22071 name "Footnotes ! Placement"
22078 \begin_layout Standard
22079 If you have several footnotes in one page, they appear without vertical
22080 space between them at the bottom of the page.
22081 To make them better readable you can e.\InsetSpace \thinspace{}
22083 add 1.5\InsetSpace \thinspace{}
22084 mm space with the following
22088 \begin_layout Standard
22110 \begin_layout Standard
22111 \begin_inset VSpace bigskip
22114 In a two-column document the footnotes appear at the bottom of every column,
22115 see Figure\InsetSpace ~
22117 \begin_inset LatexCommand ref
22118 reference "fig:Standard-footnote-placement"
22123 If the footnotes should only appear at the bottom of the right column,
22124 as in Figure\InsetSpace ~
22126 \begin_inset LatexCommand ref
22127 reference "fig:Footnote-placement-in"
22131 , use the LaTeX-package
22136 \begin_inset LatexCommand index
22137 name "LaTeX-packages ! ftnright"
22141 with this command in the document preamble:
22144 \begin_layout Standard
22149 usepackage{ftnright}
22152 \begin_layout Standard
22153 \begin_inset Float figure
22159 \begin_layout Standard
22163 \begin_layout Standard
22173 \begin_inset Graphics
22174 filename clipart/without_fntright.pdf
22183 \begin_layout Standard
22193 \begin_layout Standard
22194 \begin_inset Caption
22196 \begin_layout Standard
22197 \begin_inset LatexCommand label
22198 name "fig:Standard-footnote-placement"
22202 Standard footnote placement in two-column documents.
22215 \begin_layout Standard
22216 \begin_inset Float figure
22222 \begin_layout Standard
22226 \begin_layout Standard
22236 \begin_inset Graphics
22237 filename clipart/with_fntright.pdf
22246 \begin_layout Standard
22256 \begin_layout Standard
22257 \begin_inset Caption
22259 \begin_layout Standard
22260 \begin_inset LatexCommand label
22261 name "fig:Footnote-placement-in"
22265 Footnote placement in two-column documents when the LaTeX-package
22282 \begin_layout Standard
22283 \begin_inset VSpace bigskip
22286 In some scientific literature it is usual to collect the footnotes and print
22287 them in a separate paragraph at the the end of a section, like in Figure\InsetSpace ~
22289 \begin_inset LatexCommand ref
22290 reference "fig:Endnotes----footnotes"
22295 They are then so called
22296 \begin_inset Quotes eld
22300 \begin_inset Quotes erd
22304 To use endnotes instead of footnotes in your document, load the LaTeX-package
22310 \begin_inset LatexCommand index
22311 name "LaTeX-packages ! endnotes"
22315 with the document preamble lines
22318 \begin_layout Standard
22323 usepackage{endnotes}
22334 \begin_layout Standard
22335 To insert the collected footnotes, insert the command
22338 \begin_layout Standard
22346 \begin_layout Standard
22347 in ERT at the the end of a section or chapter.
22350 \begin_layout Standard
22351 \begin_inset Float figure
22356 \begin_layout Standard
22361 \begin_layout Standard
22371 \begin_inset Graphics
22372 filename clipart/endnotes.pdf
22380 \begin_layout Standard
22390 \begin_layout Standard
22391 \begin_inset Caption
22393 \begin_layout Standard
22394 \begin_inset LatexCommand label
22395 name "fig:Endnotes----footnotes"
22399 Endnotes -- footnotes are printed in a separate paragraph at the end of
22400 sections or chapters.
22413 \begin_layout Standard
22414 \begin_inset VSpace defskip
22417 The paragraph heading for the endnotes isn't automatically translated into
22418 the document language, this must be done manually.
22419 The following preamble command translate the default English name
22420 \begin_inset Quotes eld
22424 \begin_inset Quotes erd
22427 to the German translation
22428 \begin_inset Quotes eld
22432 \begin_inset Quotes erd
22438 \begin_layout Standard
22445 notesname}{Anmerkungen}
22448 \begin_layout Standard
22449 \begin_inset VSpace defskip
22452 The numbering of endnotes can be changed like the footnote numbering as
22453 described in section\InsetSpace ~
22455 \begin_inset LatexCommand ref
22456 reference "sub:Footnote-Numbering"
22460 ; just replace the command
22473 To reset the endnote number use the command
22479 as described in section\InsetSpace ~
22481 \begin_inset LatexCommand ref
22482 reference "sub:Footnote-Numbering"
22486 and replace the command parameter
22497 \begin_layout Standard
22498 To create only a mark for an endnote, use the command
22502 endnotemark[number]
22504 similar to the command
22510 , described in section\InsetSpace ~
22512 \begin_inset LatexCommand ref
22513 reference "sec:Footnotes"
22520 \begin_layout Standard
22521 \begin_inset VSpace bigskip
22524 Footnotes can also be placed in the page margin and the footnote text alignment
22525 can be changed, see the LaTeX-package
22530 \begin_inset LatexCommand index
22531 name "LaTeX-packages ! footmisc"
22536 \begin_inset LatexCommand cite
22541 for more information about this.
22544 \begin_layout Standard
22545 For various further footnote formatting issues have a look at LaTeX-books,
22547 \begin_inset LatexCommand cite
22548 key "latexcompanion,latexguide,latexbook"
22555 \begin_layout Section
22557 \begin_inset LatexCommand index
22558 name "Notes ! Margin Notes"
22565 \begin_layout Standard
22566 Margin notes look and behave in LyX like footnotes.
22567 They are inserted via the menu
22569 Insert\SpecialChar \menuseparator
22570 Marginal\InsetSpace ~
22573 or the toolbar button
22574 \begin_inset Graphics
22575 filename ../images/marginalnote-insert.xpm
22591 \begin_inset Quotes eld
22595 \begin_inset Quotes erd
22598 appears where you can enter the text of the margin note.
22601 \begin_layout Standard
22602 At the side is an example margin note.
22606 \begin_inset Marginal
22609 \begin_layout Standard
22610 This is a margin note.
22618 \begin_layout Standard
22619 Margin notes appear at the right side in single-sided documents.
22620 In double-sided documents they appear in the outer margin -- left on even
22621 pages, right on odd pages.
22622 The text of margin notes is aligned opposite to the outer margin -- right-align
22623 ed when the note appears in the left margin.
22624 The first line of the margin note is placed at the position of the text
22625 line where it is inserted in the document.
22628 \begin_layout Standard
22629 \begin_inset VSpace bigskip
22632 To place the margin note in the inner margin, add the command
22635 \begin_layout Standard
22643 \begin_layout Standard
22644 in ERT before a margin note.
22645 The new placement is valid for all following margin notes.
22649 \begin_layout Standard
22659 \begin_inset Marginal
22662 \begin_layout Standard
22663 This is a margin note in the inner margin.
22675 \begin_inset Note Greyedout
22678 \begin_layout Standard
22683 There is often not enough space in the inner margin so that the notes are
22684 not correctly displayed in the output.
22692 \begin_layout Standard
22696 \begin_layout Standard
22705 To return to the default placement insert the command
22708 \begin_layout Standard
22716 \begin_layout Standard
22719 \begin_inset Note Greyedout
22722 \begin_layout Standard
22727 The command is ignored when it is within a paragraph where also the command
22742 \begin_layout Standard
22743 \begin_inset VSpace bigskip
22750 \begin_inset Marginal
22753 \begin_layout Standard
22754 AVeryLongMarginParWord that isn't hyphenated.
22762 Similar to the case described in section\InsetSpace ~
22764 \begin_inset LatexCommand ref
22765 reference "sub:Multiple-Lines-in"
22769 , long words cannot be hyphenated when they are the first word in a margin
22771 To avoid this, insert the command
22774 \begin_layout Standard
22782 \begin_layout Standard
22783 in ERT before the word
22787 \begin_inset Marginal
22790 \begin_layout Standard
22794 \begin_layout Standard
22803 AVeryLongMarginParWord that is hyphenated.
22811 \begin_layout Standard
22812 \begin_inset VSpace bigskip
22818 \begin_layout Standard
22819 \begin_inset Note Greyedout
22822 \begin_layout Standard
22827 Margin notes can normally not be used inside tables, floats, and footnotes.
22835 \begin_layout Standard
22836 \begin_inset VSpace bigskip
22842 \begin_layout Standard
22846 \begin_layout Standard
22856 \begin_inset Note Note
22859 \begin_layout Standard
22860 The following section will only be displayed when you have the LaTeX-package
22873 \begin_layout Standard
22874 This restriction can be evaded by using the LaTeX-package
22879 \begin_inset LatexCommand index
22880 name "LaTeX-packages ! marginnote"
22885 By adding these two lines to your document preamble, the command used by
22886 LyX for margin notes is redefined to use the command provided by the
22893 \begin_layout Standard
22898 usepackage{marginnote}
22909 \begin_layout Standard
22910 This is also used in this document because
22914 has another useful feature: You can set a vertical offset for the note.
22915 This is often needed when too many margin notes are too close together
22916 or for a better page layout.
22917 The offset is set in LyX as ERT directly behind the margin note in the
22921 \begin_layout Standard
22927 \begin_layout Standard
22928 where the offset is a length with one of the units listed in Table\InsetSpace ~
22930 \begin_inset LatexCommand ref
22931 reference "tab:Units"
22936 A negative value shifts the note up, a positive value shifts it down.
22940 For example the margin note beside this text line is shifted up 1.5\InsetSpace \thinspace{}
22943 \begin_inset Quotes eld
22953 \begin_inset Quotes erd
22957 \begin_inset Marginal
22960 \begin_layout Standard
22961 This margin note is shifted up 1.5\InsetSpace \thinspace{}
22962 cm from its original position.
22974 \begin_layout Standard
22984 \begin_layout Standard
22985 \begin_inset VSpace defskip
22992 you can also change the alignment of the text in the margin note.
22993 For example the commands
22996 \begin_layout Standard
23003 raggedleftmarginnote}{
23011 raggedrightmarginnote}{
23016 \begin_layout Standard
23017 set the alignment to centered.
23022 raggedleftmarginnote
23024 denotes margin notes that appear at the left side.
23031 \begin_layout Standard
23037 raggedleftmarginnote}{
23042 \begin_layout Standard
23048 raggedrightmarginnote}{
23056 \begin_inset Marginal
23059 \begin_layout Standard
23060 The text of this margin note is centered.
23071 \begin_layout Standard
23078 raggedleftmarginnote}{
23086 raggedrightmarginnote}{
23095 \begin_layout Standard
23101 raggedleftmarginnote}{
23106 \begin_layout Standard
23112 raggedrightmarginnote}{
23122 \begin_layout Standard
23123 \begin_inset VSpace defskip
23126 For the other features of
23130 we refer to its documentation
23131 \begin_inset LatexCommand cite
23139 \begin_layout Standard
23140 \begin_inset VSpace bigskip
23143 You can change the layout of margin notes by redefining its definition.
23144 To create for example a header for all margin notes with the underlined,
23145 sans-serif, and bold header text
23146 \begin_inset Quotes eld
23158 \begin_inset Quotes erd
23161 , add this to your document preamble:
23164 \begin_layout Standard
23187 \begin_layout Standard
23204 underbar{Attention!}}}%
23210 \begin_layout Standard
23228 \begin_layout Standard
23235 \begin_layout Standard
23246 \begin_layout Standard
23257 \begin_layout Standard
23265 underbar{Attention!}}}%
23268 \begin_layout Standard
23282 \begin_inset Marginal
23285 \begin_layout Standard
23286 This is a margin note with a defined heading.
23298 \begin_layout Standard
23312 \begin_layout Standard
23329 \begin_inset Note Note
23332 \begin_layout Standard
23333 The margin note format is changed only for this example.
23341 \begin_layout Standard
23345 \begin_layout Standard
23355 \begin_inset Note Note
23358 \begin_layout Standard
23359 The following will be displayed when the LaTeX-package
23371 \begin_layout Standard
23372 You need to install the LaTeX-package
23376 to see the following part of this section in the output.
23379 \begin_layout Standard
23383 \begin_layout Standard
23395 \begin_layout Chapter
23399 \begin_layout Section
23401 \begin_inset LatexCommand index
23402 name "Boxes ! Introduction"
23409 \begin_layout Standard
23410 Boxes are used to format a block of text.
23411 Boxes can be used to write documents with multiple languages, see section\InsetSpace ~
23413 \begin_inset LatexCommand ref
23414 reference "sec:Minipages"
23418 , to frame texts, see section\InsetSpace ~
23420 \begin_inset LatexCommand ref
23421 reference "sec:Framed-Boxes"
23425 , to prevent words to be hyphenated, see section\InsetSpace ~
23427 \begin_inset LatexCommand ref
23428 reference "sec:Prevent-Hyphenation"
23432 , to align text, see section\InsetSpace ~
23434 \begin_inset LatexCommand ref
23435 reference "sub:Vertical-Alignment"
23439 , or to set the background color of texts, see section\InsetSpace ~
23441 \begin_inset LatexCommand ref
23442 reference "sec:Colored-Boxes"
23449 \begin_layout Standard
23450 Boxes can be inserted with the menu
23452 Insert\SpecialChar \menuseparator
23456 A grey box with the label
23461 \begin_inset Graphics
23462 filename clipart/BoxInsetDefaultQt4.png
23467 , will be inserted.
23468 The box type can be specified by right-clicking on the box.
23469 The appearing box dialog offers the
23487 is the default for new boxes and is explained in section\InsetSpace ~
23489 \begin_inset LatexCommand ref
23490 reference "sec:Minipages"
23498 is described in section\InsetSpace ~
23500 \begin_inset LatexCommand ref
23501 reference "sec:Parboxes"
23508 \begin_layout Standard
23509 Boxes aren't numbered and can therefore not be referenced like floats or
23513 \begin_layout Standard
23514 \begin_inset Note Greyedout
23517 \begin_layout Standard
23522 Due to a bug in LyX you have to insert a protected space behind a box when
23523 you want to separate in a line the box from the following text with a space.
23531 \begin_layout Standard
23532 \begin_inset Note Greyedout
23535 \begin_layout Standard
23540 Boxes must not be the item in an
23556 \begin_layout Standard
23557 \begin_inset Note Greyedout
23560 \begin_layout Standard
23565 For an unknown reason you can only set the
23574 when you use a framed box.
23580 type and without frames are explained in section\InsetSpace ~
23582 \begin_inset LatexCommand ref
23583 reference "sec:Prevent-Hyphenation"
23595 \begin_layout Section
23597 \begin_inset LatexCommand label
23598 name "sec:Box-Dialog"
23603 \begin_inset LatexCommand index
23604 name "Boxes ! Box Dialog"
23609 \begin_inset LatexCommand index
23610 name "Boxes ! Alignment"
23617 \begin_layout Standard
23618 In the box dialog you can adjust the box geometry in the fields
23627 The available units for the geometry are explained in Table\InsetSpace ~
23629 \begin_inset LatexCommand ref
23630 reference "tab:Units"
23639 offers the following additional sizes:
23642 \begin_layout Description
23643 Depth This is the plain text
23644 \begin_inset Quotes eld
23648 \begin_inset Quotes erd
23652 It ignores the total depth when there are multiple text lines in the box:
23659 \begin_inset Box Boxed
23668 height_special "depth"
23671 \begin_layout Standard
23673 Box height set to 1\InsetSpace \thinspace{}
23686 \begin_layout Description
23687 Height This is the heigth of the text that is inside the box.
23688 A value of e.\InsetSpace \thinspace{}
23690 2 for this size will set the box heigth to 2 times the text
23692 \begin_inset Box Boxed
23701 height_special "height"
23704 \begin_layout Standard
23706 Box height set to 2\InsetSpace \thinspace{}
23715 \begin_layout Description
23717 Height This is the Height\InsetSpace \thinspace{}
23718 +\InsetSpace \thinspace{}
23720 \begin_inset Box Boxed
23729 height_special "totalheight"
23732 \begin_layout Standard
23734 Box height set to 1\InsetSpace \thinspace{}
23744 \begin_layout Description
23745 Width This set the width of the box as heigth:
23746 \begin_inset Box Boxed
23755 height_special "width"
23758 \begin_layout Standard
23760 Box height set to 1\InsetSpace \thinspace{}
23769 \begin_layout Standard
23770 \begin_inset VSpace bigskip
23773 When you have chosen an
23778 , the vertical box alignment can be:
23781 \begin_layout Description
23782 Top This is an example text line.
23784 \begin_inset Box Boxed
23793 height_special "totalheight"
23796 \begin_layout Standard
23798 This box is top-aligned.
23804 This is an example text line.
23807 \begin_layout Description
23808 Middle This is an example text line.
23810 \begin_inset Box Boxed
23819 height_special "totalheight"
23822 \begin_layout Standard
23824 This box is middle-aligned.
23830 This is an example text line.
23833 \begin_layout Description
23834 Bottom This is an example text line.
23836 \begin_inset Box Boxed
23845 height_special "totalheight"
23848 \begin_layout Standard
23850 This box is bottom-aligned.
23856 This is an example text line.
23859 \begin_layout Standard
23860 The horizontal box alignment can be set via LyX's paragraph dialog when
23861 you set the box into its own paragraph.
23864 \begin_layout Standard
23865 \begin_inset VSpace bigskip
23868 When you have chosen an
23873 , the box content can be vertical aligned to:
23876 \begin_layout Description
23877 top This is an example text line.
23879 \begin_inset Box Boxed
23888 height_special "totalheight"
23891 \begin_layout Standard
23893 This box text is top-aligned.
23899 This is an example text line.
23902 \begin_layout Description
23903 middle This is an example text line.
23905 \begin_inset Box Boxed
23914 height_special "totalheight"
23917 \begin_layout Standard
23919 This box text is middle-aligned.
23925 This is an example text line.
23928 \begin_layout Description
23929 bottom This is an example text line.
23931 \begin_inset Box Boxed
23940 height_special "totalheight"
23943 \begin_layout Standard
23945 This box text is bottom-aligned.
23951 This is an example text line.
23954 \begin_layout Description
23955 stretch This is an example text line.
23957 \begin_inset Box Boxed
23966 height_special "totalheight"
23969 \begin_layout Standard
23974 \begin_layout Standard
23979 \begin_layout Standard
23987 This is an example text line.
23990 \begin_layout Standard
23991 To stretch the box content, it must consist of more than one paragraph.
23992 In the example above every text line is in an own paragraph.
23995 \begin_layout Standard
23996 \begin_inset VSpace bigskip
23999 To align the box content horizontally you can use LyX's paragraph dialog
24000 when you have chosen an
24008 \begin_layout Standard
24010 \begin_inset Box Boxed
24019 height_special "totalheight"
24022 \begin_layout Standard
24027 \begin_layout Standard
24032 \begin_layout Standard
24042 \begin_layout Standard
24043 If you haven't set an
24048 , you can align the box content horizontally in the box dialog.
24051 \begin_layout Standard
24053 \begin_inset Box Boxed
24062 height_special "totalheight"
24065 \begin_layout Standard
24067 This box text is horizontally stretched.
24075 \begin_layout Section
24077 \begin_inset LatexCommand label
24078 name "sec:Framed-Boxes"
24083 \begin_inset LatexCommand index
24084 name "Boxes ! Frames"
24091 \begin_layout Standard
24092 The frame style of the box can be specified in the box-dialog in the drop-down
24098 The following frame types are possible:
24101 \begin_layout Description
24102 Rectangular\InsetSpace ~
24103 box This draws a rectangle frame around the box.
24104 The frame line thickness has the size of
24112 \begin_inset Box Boxed
24121 height_special "totalheight"
24124 \begin_layout Standard
24134 \begin_layout Description
24137 thin This draws an oval frame around the box.
24138 The frame line thickness has the size 0.4\InsetSpace \thinspace{}
24141 \begin_inset Box ovalbox
24150 height_special "totalheight"
24153 \begin_layout Standard
24163 \begin_layout Description
24166 thick This draws an oval frame around the box.
24167 The frame line thickness has the size 0.8\InsetSpace \thinspace{}
24170 \begin_inset Box Ovalbox
24179 height_special "totalheight"
24182 \begin_layout Standard
24192 \begin_layout Description
24193 Shadow\InsetSpace ~
24194 box This draws a rectangle frame with a shadow around the box.
24195 The frame line thickness has the size of
24201 , the shadow has a width of 4\InsetSpace \thinspace{}
24204 \begin_inset Box Shadowbox
24213 height_special "totalheight"
24216 \begin_layout Standard
24226 \begin_layout Description
24227 Double\InsetSpace ~
24228 box This draws a double-line rectangle frame around the box.
24229 The line thickness of the inner frame is 0.75\InsetSpace \thinspace{}
24236 , the thickness of the outer frame is 1.5\InsetSpace \thinspace{}
24244 The distance between the lines is 1.5\InsetSpace \thinspace{}
24251 \InsetSpace \thinspace{}
24252 +\InsetSpace \thinspace{}
24253 0.5\InsetSpace \thinspace{}
24256 \begin_inset Box Doublebox
24265 height_special "totalheight"
24268 \begin_layout Standard
24278 \begin_layout Standard
24279 \begin_inset VSpace bigskip
24282 LyX's box label will change to the used frame style when you set a frame.
24283 To be able to use the different frame styles, the LaTeX-package
24288 \begin_inset LatexCommand index
24289 name "LaTeX-packages ! fancybox"
24296 \begin_layout Standard
24297 \begin_inset VSpace bigskip
24300 The default value for the size
24306 is 0.4\InsetSpace \thinspace{}
24308 It can be changed with the following command in ERT to e.\InsetSpace \thinspace{}
24310 2\InsetSpace \thinspace{}
24314 \begin_layout Standard
24324 \begin_layout Standard
24328 \begin_layout Standard
24340 \begin_inset Box Boxed
24349 height_special "totalheight"
24352 \begin_layout Standard
24354 Rectangular box with
24360 \InsetSpace \thinspace{}
24361 =\InsetSpace \thinspace{}
24362 2\InsetSpace \thinspace{}
24372 \begin_layout Standard
24386 \begin_layout Standard
24387 \begin_inset VSpace bigskip
24390 The space between the frame and the box content is for all frame styles
24391 by default 3\InsetSpace \thinspace{}
24393 You can change it by setting the length
24400 For example the command
24403 \begin_layout Standard
24413 \begin_layout Standard
24414 sets the value to 10\InsetSpace \thinspace{}
24415 pt, like for the following box:
24418 \begin_layout Standard
24422 \begin_layout Standard
24434 \begin_inset Box Boxed
24443 height_special "totalheight"
24446 \begin_layout Standard
24448 Rectangular box with
24454 \InsetSpace \thinspace{}
24455 =\InsetSpace \thinspace{}
24456 10\InsetSpace \thinspace{}
24466 \begin_layout Standard
24480 \begin_layout Standard
24481 \begin_inset VSpace bigskip
24484 The diameter of the round corners of the oval boxes can be set with the
24495 \begin_layout Standard
24503 \begin_layout Standard
24504 sets the diameter to 1\InsetSpace \thinspace{}
24509 \begin_layout Standard
24517 \begin_layout Standard
24518 sets the diameter to
24520 num\InsetSpace \thinspace{}
24521 ×\InsetSpace \thinspace{}
24522 minimum(width and heigth of box)
24534 \begin_layout Standard
24538 \begin_layout Standard
24548 \begin_inset Box Ovalbox
24557 height_special "totalheight"
24560 \begin_layout Standard
24568 \InsetSpace \thinspace{}
24569 =\InsetSpace \thinspace{}
24570 1.5\InsetSpace \thinspace{}
24580 \begin_layout Standard
24592 \begin_layout Standard
24593 \begin_inset VSpace bigskip
24596 The size of the shadow can be adjusted by changing the length
24603 It it set to 2\InsetSpace \thinspace{}
24604 pt for the following box by this command:
24607 \begin_layout Standard
24617 \begin_layout Standard
24621 \begin_layout Standard
24633 \begin_inset Box Shadowbox
24642 height_special "totalheight"
24645 \begin_layout Standard
24653 \InsetSpace \thinspace{}
24654 =\InsetSpace \thinspace{}
24655 2\InsetSpace \thinspace{}
24665 \begin_layout Standard
24679 \begin_layout Standard
24680 \begin_inset VSpace bigskip
24683 Changed lengths and widths are valid for all boxes following the commands
24687 \begin_layout Section
24689 \begin_inset LatexCommand label
24690 name "sec:Minipages"
24695 \begin_inset LatexCommand index
24696 name "Boxes ! Minipages"
24703 \begin_layout Standard
24704 Minipages are treated by LaTeX as pages within pages and can therefore for
24705 example have their own footnotes.
24708 \begin_layout Standard
24709 Minipages are useful when you write documents with different languages.
24712 \begin_layout Standard
24713 Below are two example minipages side by side.
24714 Their width is set to 45\InsetSpace \thinspace{}
24715 col% and they are separated by a horizontal fill,
24716 that was inserted via the menu
24718 Insert\SpecialChar \menuseparator
24719 Special\InsetSpace ~
24720 Formatting\SpecialChar \menuseparator
24721 Horizontal\InsetSpace ~
24727 \begin_layout Standard
24728 \begin_inset Box Frameless
24737 height_special "totalheight"
24740 \begin_layout Standard
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.
24754 Dies ist ein deutscher Text.
24755 Dies ist ein deutscher Text
24759 \begin_layout Standard
24762 Dies ist eine deutsche Fußnote.
24768 Dies ist ein deutscher Text.
24769 Dies ist ein deutscher Text.
24777 \begin_inset Box Frameless
24786 height_special "totalheight"
24789 \begin_layout Standard
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.
24804 This is an English Text.
24805 This is an English Text.
24809 \begin_layout Standard
24810 This is an English footnote.
24815 This is an English Text.
24824 \begin_layout Standard
24825 \begin_inset VSpace bigskip
24828 Another application for minipages are footnotes within tables.
24829 Due to a LaTeX restriction footnotes within tables doesn't appear at the
24830 bottom of the current page.
24831 But when you put the table with the footnote to a minipage, the footnote
24832 will appear at its bottom, numbered with Latin letters.
24833 The footnote number is reset to 1 in every minipage but not outside the
24837 \begin_layout Standard
24838 The footnote of this table doesn't appear:
24839 \begin_inset Tabular
24840 <lyxtabular version="3" rows="3" columns="4">
24842 <column alignment="center" valignment="top" leftline="true" width="0pt">
24843 <column alignment="center" valignment="top" leftline="true" width="0pt">
24844 <column alignment="center" valignment="top" leftline="true" width="0pt">
24845 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
24846 <row topline="true">
24847 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24850 \begin_layout Standard
24856 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24859 \begin_layout Standard
24865 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24868 \begin_layout Standard
24873 \begin_layout Standard
24874 This is a footnote within a table.
24884 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24887 \begin_layout Standard
24894 <row topline="true">
24895 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24898 \begin_layout Standard
24904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24907 \begin_layout Standard
24913 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24916 \begin_layout Standard
24922 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24925 \begin_layout Standard
24932 <row topline="true" bottomline="true">
24933 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24936 \begin_layout Standard
24942 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24945 \begin_layout Standard
24951 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24954 \begin_layout Standard
24960 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24963 \begin_layout Standard
24977 \begin_layout Standard
24979 \begin_inset Box Frameless
24988 height_special "totalheight"
24991 \begin_layout Standard
24993 \begin_inset Tabular
24994 <lyxtabular version="3" rows="3" columns="4">
24996 <column alignment="center" valignment="top" leftline="true" width="0pt">
24997 <column alignment="center" valignment="top" leftline="true" width="0pt">
24998 <column alignment="center" valignment="top" leftline="true" width="0pt">
24999 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25000 <row topline="true">
25001 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25004 \begin_layout Standard
25010 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25013 \begin_layout Standard
25019 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25022 \begin_layout Standard
25027 \begin_layout Standard
25028 This is a footnote within a table.
25038 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25041 \begin_layout Standard
25048 <row topline="true">
25049 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25052 \begin_layout Standard
25058 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25061 \begin_layout Standard
25067 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25070 \begin_layout Standard
25076 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25079 \begin_layout Standard
25086 <row topline="true" bottomline="true">
25087 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25090 \begin_layout Standard
25096 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25099 \begin_layout Standard
25105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25108 \begin_layout Standard
25114 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25117 \begin_layout Standard
25136 \begin_layout Standard
25137 \begin_inset VSpace bigskip
25140 The document-wide paragraph settings are ignored within minipages.
25141 That means that there will be no space between paragraphs in minipages
25142 although you set it to e.\InsetSpace \thinspace{}
25148 in the document settings.
25151 \begin_layout Standard
25152 Minipages can also be used to set a background color for text parts, see
25153 section\InsetSpace ~
25155 \begin_inset LatexCommand ref
25156 reference "sub:Color-for-Paragraphs"
25163 \begin_layout Standard
25164 \begin_inset Note Greyedout
25167 \begin_layout Standard
25172 You cannot have floats or margin notes inside minipages but minipages can
25173 be used inside tables, floats, and other boxes.
25181 \begin_layout Section
25183 \begin_inset LatexCommand label
25184 name "sec:Parboxes"
25189 \begin_inset LatexCommand index
25190 name "Boxes ! Parboxes"
25197 \begin_layout Standard
25198 Parboxes are very similar to minipages with the difference that they cannot
25200 The main difference to minipages is that minipages are in contrary to parboxes
25201 no real boxes but LaTeX-environments.
25204 \begin_layout Standard
25206 \begin_inset Box Frameless
25215 height_special "totalheight"
25218 \begin_layout Standard
25219 This a text within a parbox.
25220 This a text within a parbox.
25223 \begin_layout Standard
25224 This footnote won't appear:
25228 \begin_layout Standard
25229 This footnote is inside a parbox and will therefore not appear.
25242 \begin_layout Section
25243 Boxes for Words and Characters
25244 \begin_inset LatexCommand index
25245 name "Boxes ! for Characters"
25252 \begin_layout Subsection
25253 Prevent Hyphenation
25254 \begin_inset LatexCommand label
25255 name "sec:Prevent-Hyphenation"
25260 \begin_inset LatexCommand index
25261 name "Boxes ! to Prevent Hyphenation"
25268 \begin_layout Standard
25269 You can use a special kind of boxes to prevent words or text to be hyphenated.
25272 e is an example text:
25275 \begin_layout Standard
25276 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25282 \begin_layout Standard
25283 To prevent the hyphenation of the word
25284 \begin_inset Quotes eld
25288 \begin_inset Quotes erd
25294 \begin_layout Standard
25302 \begin_layout Standard
25303 in ERT before the word.
25304 Behind the word insert a closing brace
25305 \begin_inset Quotes eld
25313 \begin_inset Quotes erd
25320 \begin_layout Standard
25332 \begin_layout Standard
25333 This is the result:
25336 \begin_layout Standard
25337 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25343 \begin_layout Standard
25356 \begin_layout Standard
25366 \begin_layout Standard
25367 Of course the word now protrudes over the side margin.
25368 To avoid this, add via the menu
25370 Insert\SpecialChar \menuseparator
25371 Special\InsetSpace ~
25372 Formatting\SpecialChar \menuseparator
25380 ) a line break before the word:
25383 \begin_layout Standard
25384 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25392 \begin_layout Standard
25405 \begin_layout Standard
25415 \begin_layout Subsection
25417 \begin_inset LatexCommand label
25418 name "sub:Vertical-Alignment"
25423 \begin_inset LatexCommand index
25424 name "Boxes ! for Vertical Alignment"
25429 \begin_inset LatexCommand index
25430 name "Boxes ! Raiseboxes"
25437 \begin_layout Standard
25438 With the help of the command
25444 you can align words, characters or other boxes vertically to the surrounding
25452 is used with the following scheme:
25455 \begin_layout Standard
25460 raisebox{lift}[height][depth]{box content}
25463 \begin_layout Standard
25464 The lift can be a positive value to raise the box or a negative value to
25468 \begin_layout Standard
25469 To align for example the word
25470 \begin_inset Quotes eld
25474 \begin_inset Quotes erd
25477 so that the bottom of the
25478 \begin_inset Quotes eld
25482 \begin_inset Quotes erd
25486 \begin_inset Quotes eld
25490 \begin_inset Quotes erd
25493 is at the baseline, insert the command
25496 \begin_layout Standard
25506 \begin_layout Standard
25507 in ERT before the word.
25508 Behind the word insert a closing brace
25509 \begin_inset Quotes eld
25517 \begin_inset Quotes erd
25522 This is the result:
25525 \begin_layout Standard
25526 This is a text line with the word
25530 \begin_layout Standard
25542 \begin_inset Quotes eld
25546 \begin_inset Quotes erd
25553 \begin_layout Standard
25563 \begin_layout Standard
25564 \begin_inset VSpace bigskip
25567 When you raise or lower characters in a line, the line distance will be
25571 \begin_layout Standard
25572 This is a text line with the word
25576 \begin_layout Standard
25588 \begin_inset Quotes eld
25592 \begin_inset Quotes erd
25599 \begin_layout Standard
25608 This is a text line with the word
25612 \begin_layout Standard
25622 \begin_inset Quotes eld
25626 \begin_inset Quotes erd
25633 \begin_layout Standard
25643 \begin_layout Standard
25644 If you want to prevent this for a certain reason, set the box height to
25649 \begin_layout Standard
25659 \begin_layout Standard
25660 This is a text line with the word
25664 \begin_layout Standard
25676 \begin_inset Quotes eld
25680 \begin_inset Quotes erd
25687 \begin_layout Standard
25696 This is a text line with the word
25700 \begin_layout Standard
25704 raisebox{0.5cm}[0pt]{
25710 \begin_inset Quotes eld
25714 \begin_inset Quotes erd
25721 \begin_layout Standard
25731 \begin_layout Section
25733 \begin_inset LatexCommand label
25734 name "sec:Colored-Boxes"
25739 \begin_inset LatexCommand index
25740 name "Boxes ! Color"
25747 \begin_layout Subsection
25749 \begin_inset LatexCommand index
25750 name "Color ! for Text"
25757 \begin_layout Standard
25758 To color the background of text the text must be put into a so called colorbox.
25759 This requires that the LaTeX-package
25764 \begin_inset LatexCommand index
25765 name "LaTeX-packages ! color"
25769 is loaded in the document preamble with the command
25772 \begin_layout Standard
25777 @ifundef\SpecialChar \textcompwordmark{}
25784 \begin_layout Standard
25795 usepackage{color}}{}
25798 \begin_layout Standard
25803 will be loaded automatically by LyX when you color text
25807 \begin_layout Standard
25808 To avoid that it is loaded twice the command
25812 @ifundef\SpecialChar \textcompwordmark{}
25823 \begin_layout Standard
25824 \begin_inset VSpace medskip
25827 Colorboxes are created with the command
25834 This will be used with the following scheme:
25837 \begin_layout Standard
25842 colorbox{color}{box content}
25845 \begin_layout Standard
25846 The box content can also be a box and colorboxes can also be within other
25850 \begin_layout Standard
25851 The following colors are predefined:
25890 You can also define your own color as described in section\InsetSpace ~
25892 \begin_inset LatexCommand ref
25893 reference "sec:Colored-Tables"
25900 \begin_layout Standard
25901 To have e.\InsetSpace \thinspace{}
25903 a red background for a word, insert the command
25906 \begin_layout Standard
25914 \begin_layout Standard
25915 before the word in ERT.
25916 Behind the word insert a closing brace
25917 \begin_inset Quotes eld
25925 \begin_inset Quotes erd
25930 This is the result:
25933 \begin_layout Standard
25934 This is a line where the word
25938 \begin_layout Standard
25948 \begin_inset Quotes eld
25952 \begin_inset Quotes erd
25959 \begin_layout Standard
25966 has a red background.
25969 \begin_layout Standard
25970 \begin_inset VSpace bigskip
25973 If you would have the box frame in a different color, you can use the command
25980 with the following scheme:
25983 \begin_layout Standard
25988 fcolorbox{frame color}{box color}{box content}
25991 \begin_layout Standard
26005 The frame thickness and the space between the frame and the box content
26006 can be adjusted with the lengths
26018 , respectively, as described in section\InsetSpace ~
26020 \begin_inset LatexCommand ref
26021 reference "sec:Framed-Boxes"
26028 \begin_layout Standard
26029 For the following example the command
26032 \begin_layout Standard
26037 fcolorbox{cyan}{magenta}{
26040 \begin_layout Standard
26044 \begin_layout Standard
26045 Here is an example where the frame line thickness was set to 1\InsetSpace \thinspace{}
26052 \begin_layout Standard
26067 \begin_layout Standard
26071 fcolorbox{cyan}{magenta}{
26076 This is text within a colored, framed box.
26080 \begin_layout Standard
26090 \begin_layout Standard
26091 \begin_inset VSpace bigskip
26094 Of course you can also have colored text inside a colorbox:
26100 \begin_layout Standard
26104 fcolorbox{cyan}{magenta}{
26111 This is colored text within a colored, framed box.
26117 \begin_layout Standard
26128 \begin_layout Standard
26142 \begin_layout Standard
26145 \begin_inset VSpace medskip
26151 \begin_layout Standard
26152 \begin_inset Note Greyedout
26155 \begin_layout Standard
26160 Text in colorboxes cannot have line breaks.
26161 To color multiple text lines or paragraphs, use a box inside a colorbox
26162 as described in the following.
26170 \begin_layout Subsection
26171 Color for Paragraphs
26172 \begin_inset LatexCommand label
26173 name "sub:Color-for-Paragraphs"
26178 \begin_inset LatexCommand index
26179 name "Color ! for Paragraphs"
26186 \begin_layout Standard
26187 To set the background color for more than one text line, put the text into
26189 Before the minipage insert the
26198 \begin_layout Standard
26206 \begin_layout Standard
26208 Behind the minipage insert a closing brace
26209 \begin_inset Quotes eld
26217 \begin_inset Quotes erd
26223 \begin_layout Standard
26227 \begin_layout Standard
26231 colorbox{lightgrey}{
26237 \begin_inset Box Frameless
26246 height_special "totalheight"
26249 \begin_layout Standard
26250 This is text with background color.
26251 This is text with background color.
26254 \begin_layout Standard
26255 \begin_inset VSpace defskip
26258 The text can have footnotes
26262 \begin_layout Standard
26263 Another example footnote
26268 and can include tables and figures.
26271 \begin_layout Standard
26273 \begin_inset Tabular
26274 <lyxtabular version="3" rows="3" columns="3">
26276 <column alignment="center" valignment="top" leftline="true" width="0">
26277 <column alignment="center" valignment="top" leftline="true" width="0">
26278 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
26279 <row topline="true">
26280 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26283 \begin_layout Standard
26289 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26292 \begin_layout Standard
26298 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26301 \begin_layout Standard
26308 <row topline="true">
26309 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26312 \begin_layout Standard
26318 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26321 \begin_layout Standard
26323 \begin_inset Quotes erd
26331 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26334 \begin_layout Standard
26341 <row topline="true" bottomline="true">
26342 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26345 \begin_layout Standard
26351 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26354 \begin_layout Standard
26360 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26363 \begin_layout Standard
26383 \begin_layout Standard
26393 \begin_layout Section
26394 URLs (Uniform Resource Locators)
26395 \begin_inset LatexCommand index
26403 \begin_layout Standard
26404 Links to web pages or email addresses can be inserted via the menu
26406 Insert\SpecialChar \menuseparator
26410 The appearing URL dialog has two fields; the
26418 field for the URL description, which will be typeset as plain text immediately
26422 \begin_layout Standard
26423 Here is an example URL:
26424 \begin_inset LatexCommand url
26425 name "LyX's homepage"
26426 target "http://www.lyx.org"
26433 \begin_layout Standard
26436 Generate\InsetSpace ~
26439 in the URL dialog has only an affect when you export your document to the
26441 \begin_inset Quotes eld
26449 \begin_inset Quotes erd
26455 \begin_layout Standard
26456 You cannot change the style of the link text.
26461 field will have the default text style of the document while the text of
26466 field will have the style
26467 \begin_inset Quotes eld
26475 \begin_inset Quotes erd
26481 \begin_layout Standard
26482 When you use the LaTeX-package
26487 \begin_inset LatexCommand index
26488 name "LaTeX-packages ! hyperref"
26492 to link cross-references in the output, URLs will automatically become
26493 clickable hyperlinks in DVI and PDF-output.
26496 \begin_layout Standard
26497 \begin_inset Note Greyedout
26500 \begin_layout Standard
26505 When you use the following characters: "%", "#", "^", you have to write
26506 them with a preceding backslash, e.\InsetSpace \thinspace{}
26509 \begin_inset Quotes eld
26515 \begin_inset Quotes erd
26519 URLs must not end with a backslash.
26527 \begin_layout Standard
26528 \begin_inset VSpace bigskip
26531 To create real hyperlinks without the force to write the link location to
26532 the text, you can use the command
26535 \begin_layout Standard
26540 href{link location}{link text}
26543 \begin_layout Standard
26545 To get for example a link to LyX's web page, write the command
26548 \begin_layout Standard
26553 href{http://www.lyx.org}{
26556 \begin_layout Standard
26558 Insert after the command the link text
26559 \begin_inset Quotes eld
26563 \begin_inset Quotes erd
26566 as normal text followed by a closing brace
26567 \begin_inset Quotes eld
26575 \begin_inset Quotes erd
26579 This is the result:
26583 \begin_layout Standard
26587 href{http://www.lyx.org}{
26596 \begin_layout Standard
26606 \begin_layout Standard
26607 To link to email addresses, add the prefix
26608 \begin_inset Quotes eld
26616 \begin_inset Quotes erd
26619 to the link location:
26625 \begin_layout Standard
26629 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's documentation}{
26634 lyx-docs mailing list
26638 \begin_layout Standard
26648 \begin_layout Standard
26655 instead of LyX's URL box has the advantage that you can specify the text
26656 style of the link text like for all other text parts.
26657 You can therefore set hyphenation points and forced linebreaks to have
26658 long link text broken at the page margin.
26659 You are furthermore able to change the text style for all URLs in your
26660 document with an option in
26664 's load command and the restrictions mentioned above doesn't apply for
26673 \begin_layout Chapter
26675 \begin_inset LatexCommand index
26676 name "External Stuff"
26683 \begin_layout Standard
26686 Insert\SpecialChar \menuseparator
26689 you can insert external material to your document.
26693 \begin_layout Description
26695 Document Another LyX document; its content is directly inserted to your
26699 \begin_layout Description
26701 Text A text document; every of its text lines is inserted to your document
26705 \begin_layout Description
26709 Lines A text document; its text lines are inserted as they
26711 Empty text lines creates a new paragraph in your document.
26714 \begin_layout Description
26715 External\InsetSpace ~
26716 Material Files in various formats.
26719 \begin_layout Description
26721 Document LyX or LaTeX-documents.
26724 \begin_layout Section
26726 \begin_inset LatexCommand index
26727 name "External Stuff ! External Material"
26734 \begin_layout Standard
26735 The external material feature allows you to insert files to your document
26736 without converting them previously to a format that can be read by the
26737 document output format because LyX takes care of needed conversions.
26738 This is similar to images that can be inserted in various image formats
26742 \begin_layout Standard
26743 External material can be inserted via the
26747 dialog that is accessible with the menu
26749 Insert\SpecialChar \menuseparator
26750 File\SpecialChar \menuseparator
26751 External\InsetSpace ~
26755 Currently the following file types (
26762 \begin_layout Description
26763 ChessDiagram This template supports chess position diagrams made with the
26768 \begin_layout Standard
26772 href{http://en.wikipedia.org/wiki/XBoard}{
26785 \begin_layout Standard
26795 \begin_layout Description
26796 Date This inserts the date in the form
26801 This is a date inserted as external material:
26802 \begin_inset External
26810 The date is not shown within LyX, only in the output.
26811 There are two other methods of inserting a date, via menu
26813 Insert\SpecialChar \menuseparator
26816 and with the LaTeX command
26823 The different methods are compared in Table\InsetSpace ~
26825 \begin_inset LatexCommand ref
26826 reference "tab:Comparison-of-the"
26833 \begin_layout Description
26834 LilyPond This template is used for music notation typeset with the program
26838 \begin_layout Standard
26851 \begin_layout Standard
26855 href{http://en.wikipedia.org/wiki/LilyPond}{
26868 \begin_layout Standard
26876 \begin_inset Note Note
26879 \begin_layout Standard
26886 breaks the line while the remaining text in the line is stretched to the
26895 \begin_layout Description
26896 RasterImage This can be used for bitmap images.
26897 Nearly all popular image formats are supported.
26898 The image can be treated in the
26902 dialog like the images that are usually included via the
26906 dialog as described in section\InsetSpace ~
26908 \begin_inset LatexCommand ref
26909 reference "sec:Graphics-Dialog"
26914 The difference is that only raster images are allowed, that means that
26915 PDF and EPS-images are not supported.
26918 \begin_layout Description
26919 XFig This template supports images created with the program
26923 \begin_layout Standard
26927 href{http://en.wikipedia.org/wiki/Xfig}{
26940 \begin_layout Standard
26950 \begin_layout Standard
26951 \begin_inset Float table
26957 \begin_layout Standard
26958 \begin_inset Caption
26960 \begin_layout Standard
26961 \begin_inset LatexCommand label
26962 name "tab:Comparison-of-the"
26966 Comparison of the date input methods.
26974 \begin_layout Standard
26976 \begin_inset Tabular
26977 <lyxtabular version="3" rows="4" columns="4">
26979 <column alignment="center" valignment="top" leftline="true" width="0">
26980 <column alignment="center" valignment="top" leftline="true" width="0">
26981 <column alignment="center" valignment="top" leftline="true" width="0">
26982 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
26983 <row topline="true">
26984 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26987 \begin_layout Standard
26993 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26996 \begin_layout Standard
26999 External Material\SpecialChar \menuseparator
27005 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27008 \begin_layout Standard
27011 Insert\SpecialChar \menuseparator
27017 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27020 \begin_layout Standard
27031 <row topline="true">
27032 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27035 \begin_layout Standard
27041 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27044 \begin_layout Standard
27050 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27053 \begin_layout Standard
27059 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27062 \begin_layout Standard
27069 <row topline="true">
27070 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27073 \begin_layout Standard
27079 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27082 \begin_layout Standard
27088 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27091 \begin_layout Standard
27097 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27100 \begin_layout Standard
27107 <row topline="true" bottomline="true">
27108 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27111 \begin_layout Standard
27117 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27120 \begin_layout Standard
27126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27129 \begin_layout Standard
27135 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27138 \begin_layout Standard
27157 \begin_layout Standard
27158 When you use the option
27170 dialog, only the path to the inserted file is shown in the output.
27173 material is displayed in LyX either as box like this:
27174 \begin_inset Graphics
27175 filename clipart/ExternalMaterialQt4.png
27180 or as image, depending on the setting in the
27192 \begin_layout Standard
27199 manual explains how you can define your own templates.
27202 \begin_layout Section
27204 \begin_inset LatexCommand index
27205 name "External Stuff ! Child Documents"
27210 \begin_inset LatexCommand index
27211 name "Files ! Include"
27218 \begin_layout Standard
27219 Child documents are used when you have a long document consisting of several
27220 larger parts or sections.
27221 For maintenance it is often useful and sometimes even required to split
27222 the document in several files that can be revised separately.
27223 The different documents are then the so called child documents and a master
27224 document connects them to print the full document or parts of it.
27227 \begin_layout Standard
27228 Included documents are displayed in LyX as a box like this:
27229 \begin_inset Graphics
27230 filename clipart/ChildDocumentQt4.png
27235 To include child documents to a master document use the menu
27237 Insert\SpecialChar \menuseparator
27238 File\SpecialChar \menuseparator
27243 A dialog pops up where you can choose between three include methods:
27246 \begin_layout Description
27247 Include You can include LyX and LaTeX-documents.
27256 dialog, the included documents will be opened in LyX in a new file tab
27257 so that you can modify it.
27262 \begin_layout Standard
27263 Here is a child document inserted using
27268 \begin_inset Include \include{DummyDocument1.lyx}
27276 \begin_layout Standard
27277 The section numbering includes the sections of the included files in the
27278 order they are inserted in the master document.
27279 The included example document has for example a subsection that is numbered
27280 as subsection of this section.
27281 Labels of included documents can be referenced: Subsection\InsetSpace ~
27283 \begin_inset LatexCommand ref
27284 reference "sub:External-Subsection-1"
27291 \begin_layout Standard
27292 The preamble of the child document is ignored, only the preamble of the
27293 master document is used.
27294 Included documents are inserted starting on a new page and end with a pagebreak.
27297 \begin_layout Standard
27298 With the LaTeX-command
27304 you can specify which included child documents are processed when the output
27306 This is useful when you are perhaps only working on a certain chapter of
27307 your large document as this saves compiling time.
27314 is inserted to the master document preamble.
27315 It takes a comma-separated list of the filenames as argument, e.g.
27318 \begin_layout Standard
27323 includeonly{chapter1,chapter5}
27326 \begin_layout Standard
27327 will only process the included files named
27328 \begin_inset Quotes eld
27332 \begin_inset Quotes erd
27336 \begin_inset Quotes eld
27340 \begin_inset Quotes erd
27344 \begin_inset Quotes eld
27348 \begin_inset Quotes erd
27354 \begin_layout Standard
27355 \begin_inset Note Greyedout
27358 \begin_layout Standard
27363 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
27364 w the document in case that the child document uses another document class
27365 than the master document as this will lead to unexpected outputs.
27373 \begin_layout Description
27374 Input This method is very similar to the Include method.
27375 The differences are:
27379 \begin_layout Itemize
27380 Input files don't start with a new page and don't end with a pagebreak.
27383 \begin_layout Itemize
27384 Input files can be previewed in LyX when
27386 Instant\InsetSpace ~
27389 is enabled in LyX's preferences under
27393 feel\SpecialChar \menuseparator
27399 \begin_layout Itemize
27410 \begin_layout Standard
27411 Here is a child document inserted using
27416 \begin_inset Include \input{DummyDocument2.lyx}
27424 \begin_layout Description
27425 Verbatim With this method every text file can be included.
27426 The file is shown in the output with its source code, no command used in
27427 the text is invoked.
27428 You can use the option
27430 Mark spaces in output
27432 that displays the character
27433 \begin_inset Quotes eld
27440 \begin_layout Standard
27450 \begin_inset Quotes erd
27453 for every space character in the source code.
27454 The difference to the method via the menu
27456 Insert\SpecialChar \menuseparator
27457 File\SpecialChar \menuseparator
27461 is that the document content is not shown in LyX.
27464 \begin_layout Standard
27465 Here is a child document inserted as Verbatim:
27466 \begin_inset Include \verbatiminput{DummyTextDocument.txt}
27472 \begin_inset VSpace bigskip
27475 Here is a child document inserted as Verbatim using the
27477 Mark spaces in output
27480 \begin_inset Include \verbatiminput*{DummyTextDocument.txt}
27488 \begin_layout Standard
27489 \begin_inset VSpace bigskip
27495 \begin_layout Standard
27496 \begin_inset Note Greyedout
27499 \begin_layout Standard
27504 As you can see in the examples above, the text of the documents included
27505 as verbatim is not broken at the end of the document lines.
27513 \begin_layout Standard
27514 \begin_inset Note Greyedout
27517 \begin_layout Standard
27522 Including the same document twice in a document using different methods
27523 could cause LaTeX-problems.
27531 \begin_layout Standard
27537 \begin_layout Chapter
27543 \begin_layout Standard
27556 \begin_layout Standard
27564 \begin_inset LatexCommand index
27570 \begin_inset LatexCommand label
27571 name "cha:Units-available-in"
27576 \begin_inset Note Note
27579 \begin_layout Standard
27582 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
27583 are displayed wrongly in PDF-bookmarks.
27584 For more information about this, have a look at
27585 \begin_inset LatexCommand cite
27598 \begin_layout Standard
27599 To understand the units described in this documentation, Table\InsetSpace ~
27601 \begin_inset LatexCommand ref
27602 reference "tab:Units"
27606 explains all units available in LyX.
27609 \begin_layout Standard
27610 \begin_inset Float table
27616 \begin_layout Standard
27617 \begin_inset Caption
27619 \begin_layout Standard
27620 \begin_inset LatexCommand label
27633 \begin_layout Standard
27634 \begin_inset VSpace medskip
27640 \begin_layout Standard
27642 \begin_inset Tabular
27643 <lyxtabular version="3" rows="20" columns="2">
27645 <column alignment="center" valignment="top" leftline="true" width="0">
27646 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27647 <row topline="true" bottomline="true">
27648 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27651 \begin_layout Standard
27657 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27660 \begin_layout Standard
27667 <row topline="true">
27668 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27671 \begin_layout Standard
27677 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27680 \begin_layout Standard
27687 <row topline="true">
27688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27691 \begin_layout Standard
27697 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27700 \begin_layout Standard
27707 <row topline="true">
27708 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27711 \begin_layout Standard
27717 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27720 \begin_layout Standard
27727 <row topline="true">
27728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27731 \begin_layout Standard
27737 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27740 \begin_layout Standard
27741 point (72.27\InsetSpace \thinspace{}
27742 pt = 1\InsetSpace \thinspace{}
27749 <row topline="true">
27750 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27753 \begin_layout Standard
27759 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27762 \begin_layout Standard
27763 pica (1\InsetSpace \thinspace{}
27764 pc = 12\InsetSpace \thinspace{}
27771 <row topline="true">
27772 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27775 \begin_layout Standard
27781 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27784 \begin_layout Standard
27785 scaled point (65536\InsetSpace \thinspace{}
27786 sp = 1\InsetSpace \thinspace{}
27793 <row topline="true">
27794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27797 \begin_layout Standard
27803 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27806 \begin_layout Standard
27807 big point (72\InsetSpace \thinspace{}
27808 bp = 1\InsetSpace \thinspace{}
27815 <row topline="true">
27816 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27819 \begin_layout Standard
27825 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27828 \begin_layout Standard
27829 didot (72\InsetSpace \thinspace{}
27831 \begin_inset Formula $\approx$
27834 37.6\InsetSpace \thinspace{}
27841 <row topline="true">
27842 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27845 \begin_layout Standard
27851 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27854 \begin_layout Standard
27855 cicero (1\InsetSpace \thinspace{}
27856 cc = 12\InsetSpace \thinspace{}
27863 <row topline="true">
27864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27867 \begin_layout Standard
27873 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27876 \begin_layout Standard
27877 % of original image width
27883 <row topline="true">
27884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27887 \begin_layout Standard
27893 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27896 \begin_layout Standard
27903 <row topline="true">
27904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27907 \begin_layout Standard
27913 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27916 \begin_layout Standard
27923 <row topline="true">
27924 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27927 \begin_layout Standard
27933 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27936 \begin_layout Standard
27943 <row topline="true">
27944 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27947 \begin_layout Standard
27953 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27956 \begin_layout Standard
27963 <row topline="true">
27964 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27967 \begin_layout Standard
27973 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27976 \begin_layout Standard
27983 <row topline="true">
27984 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27987 \begin_layout Standard
27993 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27996 \begin_layout Standard
28003 <row topline="true">
28004 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28007 \begin_layout Standard
28013 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28016 \begin_layout Standard
28027 <row topline="true">
28028 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28031 \begin_layout Standard
28037 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28040 \begin_layout Standard
28051 <row topline="true" bottomline="true">
28052 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28055 \begin_layout Standard
28061 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28064 \begin_layout Standard
28065 math unit (1\InsetSpace \thinspace{}
28066 mu = 1/18\InsetSpace \thinspace{}
28085 \begin_layout Chapter
28086 Output File Formats with Graphics
28087 \begin_inset LatexCommand label
28088 name "cha:Output-File-Formats"
28095 \begin_layout Section
28097 \begin_inset LatexCommand index
28098 name "File Formats ! DVI"
28103 \begin_inset LatexCommand index
28104 name "DVI|see{File Formats}"
28111 \begin_layout Standard
28112 This file type has the extension
28113 \begin_inset Quotes eld
28121 \begin_inset Quotes erd
28126 \begin_inset Quotes eld
28130 \begin_inset Quotes erd
28133 (DVI), because it is completely portable; you can move them from one machine
28134 to another without needing to do any sort of conversion.
28135 At the time when this file-format was developed, this was no matter of
28137 DVIs are used for quick previews and as pre-stage for other output formats,
28141 \begin_layout Standard
28142 \begin_inset Note Greyedout
28145 \begin_layout Standard
28150 DVI-files doesn't contain images, they will only be a linked.
28155 So don't forget this, if you move your
28159 file to another computer.
28160 This property can also slow down your computer when you view the DVI.
28161 Because the DVI-viewer has to convert the image in the background to make
28162 it visible when you scroll in the DVI.
28163 So we recommend to use PDF for files with many images.
28166 \begin_layout Standard
28167 You can export your document to DVI by using the menu
28169 File\SpecialChar \menuseparator
28170 Export\SpecialChar \menuseparator
28174 You can view your document as DVI via the
28178 menu or by using the toolbar button
28179 \begin_inset Graphics
28180 filename ../images/buffer-view_dvi.xpm
28188 \begin_layout Section
28190 \begin_inset LatexCommand label
28191 name "sec:PostScript"
28196 \begin_inset LatexCommand index
28197 name "File Formats ! PostScript"
28202 \begin_inset LatexCommand index
28203 name "PostScript|see{File Formats}"
28210 \begin_layout Standard
28211 This file type has the extension
28212 \begin_inset Quotes eld
28220 \begin_inset Quotes erd
28224 PostScript was developed by the company
28228 as printer language.
28229 The file contains therefore commands that the printer uses to print the
28231 PostScript can be seen as
28232 \begin_inset Quotes eld
28235 programming language
28236 \begin_inset Quotes erd
28239 ; you can calculate with it and draw diagrams and images
28243 \begin_layout Standard
28244 If you are interested to learn more about this, have a look at the LaTeX-package
28250 \begin_inset LatexCommand cite
28261 Due to this ability, the files are often bigger than PDFs.
28264 \begin_layout Standard
28265 PostScript can only contain images in the format
28266 \begin_inset Quotes eld
28269 Encapsulated PostScript
28270 \begin_inset Quotes erd
28273 (EPS, file extension
28274 \begin_inset Quotes eld
28282 \begin_inset Quotes erd
28286 As LyX allows you to use any known image format in your document, it has
28287 to convert images in the background to EPS.
28288 If you have e.g 50 images in your document, LyX has to do 50 conversions
28289 whenever you view or export your document.
28290 This will slow down your work flow with LyX drastically.
28291 So if you plan to use PostScript, you can insert your images directly as
28292 EPS to avoid this problem.
28295 \begin_layout Standard
28296 You can export your document to PostScript using the menu
28298 File\SpecialChar \menuseparator
28299 Export\SpecialChar \menuseparator
28303 You can view your document as PostScript via the
28307 menu or by using the toolbar button
28308 \begin_inset Graphics
28309 filename ../images/buffer-view_ps.xpm
28317 \begin_layout Section
28319 \begin_inset LatexCommand label
28325 \begin_inset LatexCommand index
28326 name "File Formats ! PDF"
28331 \begin_inset LatexCommand index
28339 \begin_layout Standard
28340 This file type has the extension
28341 \begin_inset Quotes eld
28349 \begin_inset Quotes erd
28354 \begin_inset Quotes eld
28357 Portable Document Format
28358 \begin_inset Quotes erd
28361 (PDF) is developed by
28365 as derivative from PostScript.
28366 It is more compressed and it uses much less commands than PostScript.
28368 \begin_inset Quotes eld
28372 \begin_inset Quotes erd
28375 implies, it can be processed at any computer system and the printed output
28376 looks exactly the same.
28379 \begin_layout Standard
28380 PDF can contain images in its own PDF format, in the format
28381 \begin_inset Quotes eld
28384 Joint Photographic Experts Group
28385 \begin_inset Quotes erd
28388 (JPG, file extension
28389 \begin_inset Quotes eld
28397 \begin_inset Quotes erd
28401 \begin_inset Quotes eld
28409 \begin_inset Quotes erd
28412 ), and in the format
28413 \begin_inset Quotes eld
28416 Portable Network Graphics
28417 \begin_inset Quotes erd
28420 (PNG, file extension
28421 \begin_inset Quotes eld
28429 \begin_inset Quotes erd
28433 You can although use any other image format, because LyX converts them
28434 in the background to one of these formats.
28435 But as described in the section about PostScript, the image conversion
28436 will slow down your work flow.
28437 So it is recommended to use images in one of the three mentioned formats.
28440 \begin_layout Standard
28441 You can export your document to PDF via the menu
28443 File\SpecialChar \menuseparator
28446 in three different ways:
28449 \begin_layout Description
28450 PDF This uses the program
28454 that creates a PDF from a PostScript-version of your file.
28455 The PostScript-version is produced by the program
28459 which uses a DVI-version as intermediate step.
28460 So this export variant consist of three conversions.
28463 \begin_layout Description
28465 (dvipdfm) This uses the program
28469 that converts your file in the background to DVI and in a second step to
28473 \begin_layout Description
28475 (pdflatex) This uses the program
28479 that converts your file directly to PDF.
28482 \begin_layout Standard
28483 It is recommended to use
28492 supports all features of actual PDF-versions, is quick and works stable
28498 is not under development and therefore a bit outdated.
28501 \begin_layout Standard
28502 You can view your document as PDF via the
28506 menu or by using the toolbar button
28507 \begin_inset Graphics
28508 filename ../images/buffer-view_pdf2.xpm
28525 \begin_layout Chapter
28526 Explanation of Equation\InsetSpace ~
28528 \begin_inset LatexCommand eqref
28534 \begin_inset LatexCommand label
28535 name "cha:Explanation-of-Equation"
28542 \begin_layout Standard
28548 \begin_inset Formula $W_{\mathrm{tot\, n}}$
28551 can be calculated to
28554 \begin_layout Standard
28555 \begin_inset Formula \begin{equation}
28556 W_{\mathrm{tot}\, n}=n·(W_{g\, n}+2·\backslash\mbox{tabcolsep})+(n+1)·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}\end{equation}
28563 \begin_layout Standard
28565 \begin_inset Formula $W_{g\, n}$
28568 is the given width of all cells.
28575 is the LaTeX-length between the cell text and the cell border, its default
28576 value is 6\InsetSpace \thinspace{}
28584 is the thickness of the cell border line, the default is 0.4\InsetSpace \thinspace{}
28588 \begin_layout Standard
28589 Following equation\InsetSpace ~
28591 \begin_inset LatexCommand eqref
28592 reference "eq:Wtot_n"
28596 , the total width of a multicolumn
28597 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
28603 \begin_layout Standard
28604 \begin_inset Formula \begin{equation}
28605 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2·\backslash\mbox{tabcolsep}+2·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
28612 \begin_layout Standard
28613 By setting equation\InsetSpace ~
28615 \begin_inset LatexCommand eqref
28616 reference "eq:Wtot_n"
28621 \begin_inset LatexCommand eqref
28622 reference "eq:Wtot_mult"
28626 equal we can calculate the needed given width
28627 \begin_inset Formula $W_{g\, n}$
28634 columns are spanned, so that each column has a total width of
28635 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
28641 \begin_layout Standard
28642 \begin_inset Formula \begin{equation}
28643 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)·(2·\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
28650 \begin_layout Bibliography
28651 \begin_inset LatexCommand bibitem
28652 key "latexcompanion"
28656 Frank Mittelbach and Michel Goossens:
28658 The LaTeX Companion Second Edition.
28661 Addison-Wesley, 2004
28664 \begin_layout Bibliography
28665 \begin_inset LatexCommand bibitem
28670 Helmut Kopka and Patrick W.
28673 A Guide to LaTeX Fourth Edition.
28676 Addison-Wesley, 2003
28679 \begin_layout Bibliography
28680 \begin_inset LatexCommand bibitem
28687 LaTeX: A Document Preparation System.
28690 Addison-Wesley, second edition, 1994
28693 \begin_layout Bibliography
28694 \begin_inset LatexCommand bibitem
28703 \begin_layout Standard
28707 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf}
28717 \begin_layout Standard
28724 of the LaTeX-package
28729 \begin_inset LatexCommand index
28730 name "LaTeX-packages ! booktabs"
28737 \begin_layout Bibliography
28738 \begin_inset LatexCommand bibitem
28747 \begin_layout Standard
28751 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf}{
28760 \begin_layout Standard
28767 of the LaTeX-package
28772 \begin_inset LatexCommand index
28773 name "LaTeX-packages ! caption"
28780 \begin_layout Bibliography
28781 \begin_inset LatexCommand bibitem
28790 \begin_layout Standard
28794 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/anleitung.pdf}
28804 \begin_layout Standard
28811 of the LaTeX-package
28816 \begin_layout Bibliography
28817 \begin_inset LatexCommand bibitem
28826 \begin_layout Standard
28830 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf}
28840 \begin_layout Standard
28847 of the LaTeX-package
28849 endf\SpecialChar \textcompwordmark{}
28853 \begin_inset LatexCommand index
28854 name "LaTeX-packages ! endfloat"
28861 \begin_layout Bibliography
28862 \begin_inset LatexCommand bibitem
28871 \begin_layout Standard
28875 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/floatflt/floatflt.pdf}
28885 \begin_layout Standard
28892 of the LaTeX-package
28894 floatf\SpecialChar \textcompwordmark{}
28898 \begin_inset LatexCommand index
28899 name "LaTeX-packages ! floatflt"
28906 \begin_layout Bibliography
28907 \begin_inset LatexCommand bibitem
28916 \begin_layout Standard
28920 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf}
28930 \begin_layout Standard
28937 of the LaTeX-package
28942 \begin_inset LatexCommand index
28943 name "LaTeX-packages ! footmisc"
28950 \begin_layout Bibliography
28951 \begin_inset LatexCommand bibitem
28960 \begin_layout Standard
28964 href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf}{
28973 \begin_layout Standard
28980 of the LaTeX-package
28985 \begin_inset LatexCommand index
28986 name "LaTeX-packages ! hyperref"
28993 \begin_layout Bibliography
28994 \begin_inset LatexCommand bibitem
29003 \begin_layout Standard
29007 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf}
29017 \begin_layout Standard
29024 of the LaTeX-package
29029 \begin_inset LatexCommand index
29030 name "LaTeX-packages ! hyperref"
29037 \begin_layout Bibliography
29038 \begin_inset LatexCommand bibitem
29047 \begin_layout Standard
29051 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.p
29061 \begin_layout Standard
29068 of the LaTeX-package
29073 \begin_inset LatexCommand index
29074 name "LaTeX-packages ! koma-script"
29081 \begin_layout Bibliography
29082 \begin_inset LatexCommand bibitem
29083 key "koma-script-de"
29091 \begin_layout Standard
29095 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguide.p
29105 \begin_layout Standard
29112 of the LaTeX-package
29117 \begin_inset LatexCommand index
29118 name "LaTeX-packages ! koma-script"
29125 \begin_layout Bibliography
29126 \begin_inset LatexCommand bibitem
29135 \begin_layout Standard
29139 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.
29149 \begin_layout Standard
29156 of the LaTeX-package
29161 \begin_inset LatexCommand index
29162 name "LaTeX-packages ! marginnote"
29169 \begin_layout Bibliography
29170 \begin_inset LatexCommand bibitem
29179 \begin_layout Standard
29183 href{http://tug.org/PSTricks/main.cgi/}{
29192 \begin_layout Standard
29199 of the LaTeX-package
29204 \begin_inset LatexCommand index
29205 name "LaTeX-packages ! PSTricks"
29212 \begin_layout Bibliography
29213 \begin_inset LatexCommand bibitem
29222 \begin_layout Standard
29226 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf}{
29235 \begin_layout Standard
29242 of the LaTeX-package
29247 \begin_inset LatexCommand index
29248 name "LaTeX-packages ! sidecap"
29255 \begin_layout Bibliography
29256 \begin_inset LatexCommand bibitem
29265 \begin_layout Standard
29269 href{http://wiki.lyx.org/LyX/NewInLyX15}{
29278 \begin_layout Standard
29285 about new LyX-features planned for the release
29292 \begin_layout Standard
29293 \begin_inset LatexCommand printindex
29300 \begin_layout Standard
29301 \begin_inset FloatList figure
29308 \begin_layout Standard
29309 \begin_inset FloatList table