1 #LyX 1.5.0svn created this file. For more info see http://www.lyx.org/
11 % set fonts for nicer pdf view
12 \IfFileExists{lmodern.sty}
13 {\usepackage{lmodern}} % if it exists
15 \usepackage[scaled=0.92]{helvet}
18 } % end if it exists not
20 % link all cross references and URLs
22 \usepackage[colorlinks=true, bookmarks, bookmarksnumbered, bookmarksopen, bookmarksopenlevel=1,
23 linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,
24 pdfpagelayout=OneColumn, pdfnewwindow=true,
25 pdfstartview=XYZ, plainpages=false, pdfpagelabels,
26 pdfauthor={LyX Team}, pdftex,
27 pdftitle={LyX's Figure, Table, Floats, Notes, and Boxes manual},
28 pdfsubject={LyX-documentation about figures, tables, floats, notes, and boxes},
29 pdfkeywords={LyX, Tables, Figures, Floats, Boxes, Notes}]{hyperref}
31 \else % if dvi or ps is produced
33 % link all cross references and URLs in DVI output
34 \usepackage[ps2pdf, colorlinks=true,
35 linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue]{hyperref}
37 \fi % end if pdflatex is used
39 % that links to image floats jumps
40 % to the beginning of the float and
42 \usepackage[figure]{hypcap}
44 % the pages of the TOC are numbered roman
45 % and a PDF-bookmark for the TOC is added
47 \let\myTOC\tableofcontents
48 \renewcommand{\tableofcontents}{%
49 \pdfbookmark[1]{Contents}{}
52 \pagenumbering{arabic}}
54 % provides caption formatting
55 \usepackage[labelfont={bf,sf}, tableposition=top]{caption}[2004/07/16]
57 % provides commands to set caption
58 % beside tables/images
61 \newcommand{\TabBesBeg}{%
63 \let\MyEndtable\endtable
64 \renewenvironment{table}{\begin{SCtable}}{\end{SCtable}}}
66 \newcommand{\TabBesEnd}{%
68 \let\endtable\MyEndtable}
70 \newcommand{\FigBesBeg}{%
72 \let\MyEndfigure\endfigure
73 \renewenvironment{figure}{\begin{SCfigure}}{\end{SCfigure}}}
75 \newcommand{\FigBesEnd}{%
77 \let\endfigure\MyEndfigure}
79 % enables calculation of values,
82 % provides special table cell alignments
85 % increase the bottom float placement fraction
86 \renewcommand{\bottomfraction}{0.5}
88 % avoids that floats are placed before their
89 % corresponding section starts
90 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
92 % speed up the longtable calculation
93 \setcounter{LTchunksize}{100}
95 % used for colored tables
96 \@ifundefined{textcolor}
97 {\usepackage{color}}{}
99 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
100 \definecolor{lightgrey}{gray}{0.8}
103 \usepackage{multirow}
104 %\renewcommand{\multirowsetup}{\centering}
106 % used for book-style tables
107 \usepackage{booktabs}
109 % used to have extra space in table cells,
110 \setlength{\extrarowheight}{2pt}
112 % used for customized tables
115 {>{\centering\hspace{0pt}}m{#1}}
118 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
121 {>{\columncolor{#1}\hspace{0pt}}c}
123 \newcolumntype{V}{!{\vrule width 1.5pt}}
125 \newcolumntype{W}{!{\color{green}\vline}}
128 % To be able to enter the characters ° and · directly in LyX
129 \DeclareInputText{176}{\ifmmode^\circ\else\textdegree\fi}
130 \DeclareInputText{183}{\ifmmode\cdot\else\textperiodcentered\fi}
132 % insert additional vertical space of
133 % 1.5 mm between footnotes
135 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
137 % enable algorithm floats to be referenced
138 \newfloat{Xalgorithm}{tbp}{loa}
139 \floatname{Xalgorithm}{Algorithm}
140 \newcommand{\theHalgorithm}{\theHXalgorithm}
141 \renewenvironment{algorithm}[1][tbp]
142 {\begin{Xalgorithm}[#1]}{\end{Xalgorithm}}
144 % number algorithm floats within chapters
145 \numberwithin{Xalgorithm}{chapter}
147 % redefine the greyed out note
148 \renewenvironment{lyxgreyedout}
149 {\textcolor{blue}\bgroup}{\egroup}
151 % ------------------------------------
152 % used to check for needed LaTeX packages
155 % check for package arydshln
156 % used for tables with dashed lines
157 \newboolean{arydshln}
158 \IfFileExists{arydshln.sty}
159 {\usepackage{arydshln}
160 \setboolean{arydshln}{true}}
161 {\setboolean{arydshln}{false}}
163 % check for package marginnote
164 % used for margin notes
165 \newboolean{marginnote}
166 \IfFileExists{marginnote.sty}
167 {\usepackage{marginnote}
168 \let\marginpar\marginnote
169 \setboolean{marginnote}{true}}
170 {\setboolean{marginnote}{false}}
172 \options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
177 \font_typewriter default
178 \font_default_family default
192 \paperorientation portrait
195 \paragraph_separation skip
197 \quotes_language english
200 \paperpagestyle default
204 \tracking_changes false
205 \output_changes false
213 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
222 \begin_layout Standard
224 If you have comments or error corrections, please send them to the LyX Documenta
231 \begin_layout Standard
235 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's ExtendedInsets manual}{
240 lyx-docs@lists.lyx.org
244 \begin_layout Standard
257 \begin_inset Note Note
260 \begin_layout Standard
261 original author: Uwe Stöhr
277 \begin_layout Standard
278 \begin_inset LatexCommand tableofcontents
285 \begin_layout Standard
286 \begin_inset Note Note
289 \begin_layout Standard
290 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
300 If they are not installed you can export the document anyway but the sections
301 where the packages are required won't appear in the output.
304 \begin_layout Standard
305 The latest PDF-version of this document can be found here:
309 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
317 \begin_layout Chapter
319 \begin_inset LatexCommand label
325 \begin_inset LatexCommand index
331 \begin_inset LatexCommand index
332 name "Graphics|see{Figures}"
339 \begin_layout Section
341 \begin_inset LatexCommand index
342 name "Figures ! Graphics Dialog"
347 \begin_inset LatexCommand label
348 name "sec:Graphics-Dialog"
355 \begin_layout Standard
356 To insert an image into your document, place the cursor at the text position
357 you want and click on the toolbar icon
358 \begin_inset Graphics
359 filename ../images/dialog-show-new-inset_graphics.xpm
366 Insert\SpecialChar \menuseparator
370 Then a dialog will appear to choose the file to load.
371 The image will appear in the output exactly at the position where it is
375 \begin_layout Standard
376 The graphics dialog can be called at any time by right-clicking on an image.
377 This dialog has three tabs:
380 \begin_layout Description
385 Here you can choose an image file and adjust its appearance in the output.
386 The available units for the image size are explained in appendix\InsetSpace ~
388 \begin_inset LatexCommand ref
389 reference "cha:Units-available-in"
395 You can rotate images counter-clockwise by setting a rotation angle and
397 The image will also be rotated inside LyX.
399 Images can be scaled by using
400 a percentage value or by setting the width and height explicitly.
401 If you set only the width or only the height, the other size will be determined
403 If you set both, then the image will be transformed to the given size,
404 possibly distorting it.
405 To prevent the image from distortion, use the option
407 Maintain aspect ratio
410 The image will then be scaled so that its width and height don't exceed
411 the specified dimensions.
413 Images can be opened in a program of your choice
419 The program can be set for every image format in the file format settings
420 in LyX's preferences.
423 \begin_layout Description
428 Alternatively to the usage of scaling units it is possible to set image
429 coordinates to adjust the height and width of the image in the output.
430 The coordinates can also be calculated automatically by pressing the button
442 bounding\InsetSpace ~
445 will only print the image region within the given coordinates.
446 Normally you don't need to take care about image coordinates and can ignore
450 \begin_layout Description
456 In this tab you can modify the appearance of the image within LyX and set
457 the image to be a subfigure of a figure float with an own caption.
458 Subfigures are explained in section\InsetSpace ~
460 \begin_inset LatexCommand ref
461 reference "sec:Figure-Floats"
467 LaTeX experts can also specify on this tab additional LaTeX options.
475 makes the image appear in the output only as a frame with the size of the
485 option only affects zipped EPS-graphics, e.\InsetSpace \thinspace{}
492 When the option is used the images will not be unzipped on export, since
493 LaTeX can handle them as they are.
495 Zipped EPS-graphics are useful to save
496 disk space when you choose PostScript as output format, see appendix\InsetSpace ~
498 \begin_inset LatexCommand ref
499 reference "sec:PostScript"
504 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
515 zgrep %%Bounding x.eps.gz > x.eps.bb
519 The second command creates the bounding box file
520 \begin_inset Quotes eld
524 \begin_inset Quotes erd
527 that is needed by LaTeX for zipped graphics.
530 \begin_layout Standard
531 \begin_inset VSpace bigskip
537 \begin_layout Standard
538 This is an example image in EPS format
542 \begin_layout Standard
543 Image formats are explained in section\InsetSpace ~
545 \begin_inset LatexCommand ref
546 reference "sec:Image-Formats"
555 within a separate, horizontally centered paragraph:
558 \begin_layout Standard
560 \begin_inset Graphics
561 filename clipart/mobius.eps
571 \begin_layout Standard
572 This is the same image like the one above but in draft mode:
575 \begin_layout Standard
577 \begin_inset Graphics
578 filename clipart/mobius.eps
589 \begin_layout Section
591 \begin_inset LatexCommand label
592 name "sec:Figure-Floats"
597 \begin_inset LatexCommand index
598 name "Floats ! Figure Floats"
603 \begin_inset LatexCommand index
604 name "Figures ! Floats"
611 \begin_layout Standard
612 For general explanations about floats, have a look at section\InsetSpace ~
614 \begin_inset LatexCommand ref
615 reference "sec:FloatIntroduction"
622 \begin_layout Standard
624 \begin_inset Graphics
625 filename ../images/float-insert_figure.xpm
632 Insert\SpecialChar \menuseparator
633 Float\SpecialChar \menuseparator
636 inserts a float with a caption that has the label
637 \begin_inset Quotes eld
642 \begin_inset Quotes erd
645 (# is the actual number).
646 You can insert the image above the caption, like in Figure\InsetSpace ~
648 \begin_inset LatexCommand ref
649 reference "fig:kill-plat"
653 or below the caption, like in Figure\InsetSpace ~
655 \begin_inset LatexCommand ref
656 reference "fig:escher"
661 More about the caption placement is described in section\InsetSpace ~
663 \begin_inset LatexCommand ref
664 reference "sec:Caption-Placement"
671 \begin_layout Standard
672 \begin_inset Float figure
677 \begin_layout Standard
679 \begin_inset Graphics
680 filename clipart/platypus.eps
690 \begin_layout Standard
693 \begin_layout Standard
694 \begin_inset LatexCommand label
699 A severely distorted platypus in a float.
712 \begin_layout Standard
713 \begin_inset Float figure
718 \begin_layout Standard
721 \begin_layout Standard
722 \begin_inset LatexCommand label
736 \begin_layout Standard
738 \begin_inset Graphics
739 filename clipart/escher-lsd.eps
754 \begin_layout Standard
755 \begin_inset LatexCommand index
756 name "References ! to Figures"
762 \begin_inset LatexCommand ref
763 reference "fig:kill-plat"
768 \begin_inset LatexCommand ref
769 reference "fig:escher"
773 are examples of referenced figures.
774 Figures can be referenced in the text by referencing their label.
775 To do this insert a label in the caption using the menu
777 Insert\SpecialChar \menuseparator
780 or the toolbar button
781 \begin_inset Graphics
782 filename ../images/label-insert.xpm
788 You can now refer to the label using the menu
790 Insert\SpecialChar \menuseparator
794 or the toolbar button
795 \begin_inset Graphics
796 filename ../images/dialog-show-new-inset_ref.xpm
802 It is important to use references to floats, rather than using vague references
804 \begin_inset Quotes eld
808 \begin_inset Quotes erd
811 , because as LaTeX will reposition the floats in the final document, it
813 \begin_inset Quotes eld
817 \begin_inset Quotes erd
822 Referencing is explained in detail in section\InsetSpace ~
824 \begin_inset LatexCommand ref
825 reference "sec:Referencing-Floats"
832 \begin_layout Standard
833 Normally only one image is inserted to a figure float, but sometimes you
834 might want to use two images with separate subcaptions.
835 This can be set in the tab
840 of the graphics dialog.
841 Choose there the option
845 and enter the subcaption for the image in the caption field.
846 Note that only the main caption of the float is added to the List of Figures.
849 erencing subfigures is explained in section\InsetSpace ~
851 \begin_inset LatexCommand ref
852 reference "sub:Referencing-Subfigures"
859 \begin_layout Standard
862 \begin_inset LatexCommand ref
863 reference "fig:Two-distorted-images"
867 is an example of a figure float with two images set side by side.
868 You can also set the images one below the other.
871 \begin_layout Standard
872 \begin_inset Float figure
877 \begin_layout Standard
881 \begin_inset Graphics
882 filename clipart/escher-lsd.eps
885 subcaptionText "Undefinable structure"
892 \begin_inset Graphics
893 filename clipart/platypus.eps
897 subcaptionText "\label{fig:Platypus} Platypus"
906 \begin_layout Standard
909 \begin_layout Standard
910 \begin_inset LatexCommand label
911 name "fig:Two-distorted-images"
915 Two distorted images.
928 \begin_layout Section
930 \begin_inset LatexCommand label
931 name "sec:Image-Formats"
936 \begin_inset LatexCommand index
942 \begin_inset LatexCommand index
943 name "Figures ! Image Formats"
950 \begin_layout Standard
951 You can insert images in any known file format.
952 But as explained in appendix\InsetSpace ~
954 \begin_inset LatexCommand ref
955 reference "cha:Output-File-Formats"
959 , every output document format allows only a few image formats.
960 LyX uses therefore the program
964 in the background to convert the images to the right format.
965 To increase your work flow by avoiding these conversions in the background,
966 you can use only the image formats that can directly be embedded in the
968 The output file formats are explained in appendix\InsetSpace ~
970 \begin_inset LatexCommand ref
971 reference "cha:Output-File-Formats"
978 \begin_layout Standard
979 Similar to fonts there are two types of image formats:
982 \begin_layout Description
984 images consist of pixel values, often in a compressed form.
985 They are therefore not fully scalable and look pixeled in large zooms.
986 Well-known bitmap image formats are
987 \begin_inset Quotes eld
990 Graphics Interchange Format
991 \begin_inset Quotes erd
995 \begin_inset Quotes eld
1003 \begin_inset Quotes erd
1007 \begin_inset LatexCommand index
1008 name "GIF|see{Image formats}"
1013 \begin_inset Quotes eld
1016 Portable Network Graphics
1017 \begin_inset Quotes erd
1020 (PNG, file extension
1021 \begin_inset Quotes eld
1029 \begin_inset Quotes erd
1033 \begin_inset LatexCommand index
1034 name "PNG|see{Image formats}"
1039 \begin_inset Quotes eld
1042 Joint Photographic Experts Group
1043 \begin_inset Quotes erd
1046 (JPG, file extension
1047 \begin_inset Quotes eld
1055 \begin_inset Quotes erd
1059 \begin_inset Quotes eld
1067 \begin_inset Quotes erd
1071 \begin_inset LatexCommand index
1072 name "JPG|see{Image formats}"
1079 \begin_layout Description
1081 images consist of vectors and can therefore be scaled to any size
1083 The scaling ability is necessary if you want to create presentations, because
1084 presentations are always scaled by the video projector.
1085 Scaling is also useful for online documents to let the user zoom into diagrams.
1088 ell-known scalable image formats are
1089 \begin_inset Quotes eld
1092 Scalable Vector Graphics
1093 \begin_inset Quotes erd
1096 (SVG, file extension
1097 \begin_inset Quotes eld
1105 \begin_inset Quotes erd
1109 \begin_inset LatexCommand index
1110 name "SVG|see{Image formats}"
1115 \begin_inset Quotes eld
1118 Encapsulated PostScript
1119 \begin_inset Quotes erd
1122 (EPS, file extension
1123 \begin_inset Quotes eld
1131 \begin_inset Quotes erd
1135 \begin_inset LatexCommand index
1136 name "EPS|see{Image formats}"
1141 \begin_inset Quotes eld
1144 Portable Document Format
1145 \begin_inset Quotes erd
1148 (PDF, file extension
1149 \begin_inset Quotes eld
1157 \begin_inset Quotes erd
1161 \begin_inset LatexCommand index
1167 \begin_inset Quotes eld
1171 \begin_inset Quotes erd
1174 (WMF, file extension
1175 \begin_inset Quotes eld
1183 \begin_inset Quotes erd
1187 \begin_inset LatexCommand index
1188 name "SVG|see{Image formats}"
1194 \begin_inset Quotes eld
1198 \begin_inset Quotes erd
1201 , because you can convert any bitmap image to a PDF or EPS-image and the
1202 result will still be a bitmap image.
1203 In this cases only a header with the image properties is added to the original
1208 \begin_layout Standard
1209 In the case of PDF, the original image is additionally compressed.
1215 The PDF-files generated by
1219 are for example bitmap images.
1222 \begin_layout Standard
1223 Normally it is not possible to convert a bitmap image into a scalable one,
1225 Only the image formats PDF and EPS can directly be embedded to PDF and
1226 PostScript output files, respectively.
1227 SVG and WMF-images are currently recalculated to bitmaps when the output
1228 file is generated because there is currently no adequate WMF/SVG
1229 \begin_inset Formula $\to$
1232 PDF/EPS converter available.
1235 \begin_layout Chapter
1237 \begin_inset LatexCommand label
1243 \begin_inset LatexCommand index
1251 \begin_layout Section
1253 \begin_inset LatexCommand index
1254 name "Table ! Introduction"
1261 \begin_layout Standard
1262 You can insert a table using either the toolbar button
1263 \begin_inset Graphics
1264 filename ../images/tabular-insert.xpm
1271 Insert\SpecialChar \menuseparator
1275 The toolbar button offers you a graphical selection: Move the mouse to
1276 set the column/row number of the table that should be created and then
1277 press a mouse button.
1278 When you use the menu to create a table, a dialog will appear, asking you
1279 for the number of rows and columns.
1281 The default table has lines around any
1282 cell and the first row appears separated from the rest of the table.
1283 This separation occurs due to a double line: The cells of the first row
1284 have a line below them and the cells of the second row have a line above
1286 Here is an example table:
1289 \begin_layout Standard
1291 \begin_inset Tabular
1292 <lyxtabular version="3" rows="4" columns="4">
1294 <column alignment="center" valignment="top" leftline="true" width="0">
1295 <column alignment="center" valignment="top" leftline="true" width="0">
1296 <column alignment="center" valignment="top" leftline="true" width="0">
1297 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
1298 <row topline="true" bottomline="true">
1299 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1302 \begin_layout Standard
1308 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1311 \begin_layout Standard
1326 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1329 \begin_layout Standard
1335 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1338 \begin_layout Standard
1345 <row topline="true">
1346 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1349 \begin_layout Standard
1364 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1367 \begin_layout Standard
1373 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1376 \begin_layout Standard
1382 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1385 \begin_layout Standard
1392 <row topline="true">
1393 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1396 \begin_layout Standard
1411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1414 \begin_layout Standard
1420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1423 \begin_layout Standard
1429 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1432 \begin_layout Standard
1439 <row topline="true" bottomline="true">
1440 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1443 \begin_layout Standard
1458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1461 \begin_layout Standard
1467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1470 \begin_layout Standard
1476 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1479 \begin_layout Standard
1493 \begin_layout Section
1495 \begin_inset LatexCommand index
1496 name "Table ! Dialog"
1503 \begin_layout Standard
1504 You can alter a table by clicking on it with the right mouse button, which
1505 brings up the table dialog.
1506 Here you can adjust the settings of that cell and row/column respectively
1507 where the cursor is currently placed.
1508 Most of the dialog options also work on selections.
1509 This means if you select more cells, columns or rows, the action is done
1510 for the whole selection.
1511 Note that there is a difference between selecting the
1515 of the cell, and the cell itself.
1516 You can alter tables with the following tabs of the table dialog:
1519 \begin_layout Description
1525 Here you can set the horizontal alignment and the width of the current
1527 When you have set a width you can also adjust the vertical alignment of
1529 A given width will allow the cell to have line breaks and multiple paragraphs
1530 of text, see section\InsetSpace ~
1532 \begin_inset LatexCommand ref
1533 reference "sub:Multiple-Lines-in"
1538 If you set no width, the column is as wide as their widest cell content
1541 Furthermore, you can mark one or multiple cells of one row as a multicolumn
1542 cell, see section\InsetSpace ~
1544 \begin_inset LatexCommand ref
1545 reference "sub:Multicolumns"
1551 The rotate check boxes rotates the current cell, a selection, or the whole
1552 table counter-clockwise by 90°.
1553 The rotation is not shown within LyX, only in the output.
1556 \begin_inset Note Greyedout
1559 \begin_layout Standard
1564 Not all DVI-viewers are able to display rotations.
1571 It is also possible to enter a LaTeX-argument which is needed for special
1572 table formattings, see section\InsetSpace ~
1574 \begin_inset LatexCommand ref
1575 reference "sub:Multicolumn-Calculations"
1580 \begin_inset LatexCommand ref
1581 reference "sec:Colored-Tables"
1588 \begin_layout Description
1593 In this tab you can add and delete border lines for the current row/column.
1600 will convert the table to a formal table as described in section\InsetSpace ~
1602 \begin_inset LatexCommand ref
1603 reference "sec:Formal-Tables"
1609 You can also add here space to table rows as decribed in section\InsetSpace ~
1611 \begin_inset LatexCommand ref
1612 reference "sub:Row-Spacing"
1619 \begin_layout Description
1624 This tab is to make a table a so called
1625 \begin_inset Quotes eld
1633 \begin_inset Quotes erd
1636 that can run over several pages.
1637 Section\InsetSpace ~
1639 \begin_inset LatexCommand ref
1640 reference "sec:Longtables"
1645 \begin_inset LatexCommand ref
1646 reference "sec:Special-Longtable-Issues"
1650 describe the longtable features in detail.
1653 \begin_layout Standard
1654 When the table toolbar is opened, you can move the cursor with the arrow
1655 keys from cell to cell and the property of the current cell will immediately
1656 be displayed in the dialog.
1659 \begin_layout Section
1661 \begin_inset LatexCommand index
1662 name "Table ! Toolbar"
1669 \begin_layout Standard
1670 The table toolbar is an alternative to the table dialog to be able to alter
1672 It should normally appear at the bottom of LyX's main window when the cursor
1674 You can alternatively switch it on to appear always, by right-clicking
1675 in LyX's main menu bar.
1678 \begin_layout Standard
1679 The toolbar has the following icons:
1682 \begin_layout Labeling
1683 \labelwidthstring 00.00.0000
1684 \begin_inset Graphics
1685 filename ../images/tabular-feature_append-row.xpm
1689 adds a row below the current cell or selection
1692 \begin_layout Labeling
1693 \labelwidthstring 00.00.0000
1694 \begin_inset Graphics
1695 filename ../images/tabular-feature_append-column.xpm
1699 adds a column right beside the current cell or selection
1702 \begin_layout Labeling
1703 \labelwidthstring 00.00.0000
1704 \begin_inset Graphics
1705 filename ../images/tabular-feature_delete-row.xpm
1709 deletes the current row or selection
1712 \begin_layout Labeling
1713 \labelwidthstring 00.00.0000
1714 \begin_inset Graphics
1715 filename ../images/tabular-feature_delete-column.xpm
1719 deletes the current column or selection
1722 \begin_layout Labeling
1723 \labelwidthstring 00.00.0000
1724 \begin_inset Graphics
1725 filename ../images/tabular-feature_toggle-line-top.xpm
1729 adds a line at the top of the current cell / row or of a selection
1732 \begin_layout Labeling
1733 \labelwidthstring 00.00.0000
1734 \begin_inset Graphics
1735 filename ../images/tabular-feature_toggle-line-bottom.xpm
1739 adds a line at the bottom of the current cell / row or of a selection
1742 \begin_layout Labeling
1743 \labelwidthstring 00.00.0000
1744 \begin_inset Graphics
1745 filename ../images/tabular-feature_toggle-line-left.xpm
1749 adds a line at the left side of the current cell / row or of a selection
1752 \begin_layout Labeling
1753 \labelwidthstring 00.00.0000
1754 \begin_inset Graphics
1755 filename ../images/tabular-feature_toggle-line-right.xpm
1759 adds a line at the right side of the current cell / row or of a selection
1762 \begin_layout Labeling
1763 \labelwidthstring 00.00.0000
1764 \begin_inset Graphics
1765 filename ../images/tabular-feature_set-all-lines.xpm
1769 adds lines around the current or selected cells - if the current cell no
1770 multicolumn this also affects the current row and column
1773 \begin_layout Labeling
1774 \labelwidthstring 00.00.0000
1775 \begin_inset Graphics
1776 filename ../images/tabular-feature_unset-all-lines.xpm
1780 deletes all lines of the current or selected cells - if the current cell
1781 no multicolumn this also affects the current row and column
1784 \begin_layout Labeling
1785 \labelwidthstring 00.00.0000
1786 \begin_inset Graphics
1787 filename ../images/tabular-feature_align-left.xpm
1791 left-aligns the content of the current cell / column
1794 \begin_layout Labeling
1795 \labelwidthstring 00.00.0000
1796 \begin_inset Graphics
1797 filename ../images/tabular-feature_align-center.xpm
1801 centers the content of the current cell / column horizontally
1804 \begin_layout Labeling
1805 \labelwidthstring 00.00.0000
1806 \begin_inset Graphics
1807 filename ../images/tabular-feature_align-right.xpm
1811 right-aligns the content of the current cell / column
1814 \begin_layout Labeling
1815 \labelwidthstring 00.00.0000
1816 \begin_inset Graphics
1817 filename ../images/tabular-feature_valign-top.xpm
1821 aligns the content of the current cell vertically to the top
1824 \begin_layout Labeling
1825 \labelwidthstring 00.00.0000
1826 \begin_inset Graphics
1827 filename ../images/tabular-feature_valign-middle.xpm
1831 centers the content of the current cell vertically
1834 \begin_layout Labeling
1835 \labelwidthstring 00.00.0000
1836 \begin_inset Graphics
1837 filename ../images/tabular-feature_valign-bottom.xpm
1841 aligns the content of the current cell vertically to the bottom
1844 \begin_layout Labeling
1845 \labelwidthstring 00.00.0000
1846 \begin_inset Graphics
1847 filename ../images/tabular-feature_set-rotate-cell.xpm
1851 rotates the current cell or selection counter-clockwise by 90°
1854 \begin_layout Labeling
1855 \labelwidthstring 00.00.0000
1856 \begin_inset Graphics
1857 filename ../images/tabular-feature_set-rotate-tabular.xpm
1861 rotates the whole table counter-clockwise by 90°
1864 \begin_layout Labeling
1865 \labelwidthstring 00.00.0000
1866 \begin_inset Graphics
1867 filename ../images/tabular-feature_multicolumn.xpm
1871 sets the current cell or selection as a multicolumn
1874 \begin_layout Standard
1875 \begin_inset Note Greyedout
1878 \begin_layout Standard
1883 For the output the vertical alignment of the first cell in a row is used
1884 for all following cells in the row.
1892 \begin_layout Section
1894 \begin_inset LatexCommand index
1895 name "Table ! Edit Menu"
1902 \begin_layout Standard
1903 Additionally to the table dialog and toolbar, the menu
1905 Edit\SpecialChar \menuseparator
1908 allows you to add and delete border lines for the current row/column and
1909 to set the current selection as multicolumn.
1910 The menu is only available when the cursor is inside a table.
1913 \begin_layout Section
1915 \begin_inset LatexCommand label
1916 name "sec:Table-Floats"
1921 \begin_inset LatexCommand index
1922 name "Floats ! Tables"
1927 \begin_inset LatexCommand index
1928 name "Table ! Floats"
1935 \begin_layout Standard
1936 For general explanations about floats, have a look at section\InsetSpace ~
1938 \begin_inset LatexCommand ref
1939 reference "sec:FloatIntroduction"
1946 \begin_layout Standard
1947 \begin_inset Float table
1953 \begin_layout Standard
1954 \begin_inset Caption
1956 \begin_layout Standard
1957 \begin_inset LatexCommand label
1958 name "tab:a table float"
1970 \begin_layout Standard
1972 \begin_inset Tabular
1973 <lyxtabular version="3" rows="3" columns="3">
1975 <column alignment="center" valignment="top" leftline="true" width="0pt">
1976 <column alignment="center" valignment="top" leftline="true" width="0pt">
1977 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
1978 <row topline="true" bottomline="true">
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" usebox="none">
2000 \begin_layout Standard
2015 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2018 \begin_layout Standard
2034 <row topline="true">
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" usebox="none">
2056 \begin_layout Standard
2071 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2074 \begin_layout Standard
2090 <row topline="true" bottomline="true">
2091 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2094 \begin_layout Standard
2104 \begin_inset Formula $\int x^{2}dx$
2112 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2115 \begin_layout Standard
2125 \begin_inset Formula $\left[\begin{array}{cc}
2127 c & d\end{array}\right]$
2135 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2138 \begin_layout Standard
2148 \begin_inset Formula $1+1=2$
2169 \begin_layout Standard
2170 Table floats can be inserted using the menu
2172 Insert\SpecialChar \menuseparator
2173 Float\SpecialChar \menuseparator
2176 or the toolbar button
2177 \begin_inset Graphics
2178 filename ../images/float-insert_table.xpm
2186 \begin_layout Standard
2187 The float appears as a collapsible box with a caption that has the label
2189 \begin_inset Quotes eld
2194 \begin_inset Quotes erd
2197 (# is the actual table number).
2198 You can insert tables to the float above or below the caption.
2201 \begin_layout Standard
2204 \begin_inset LatexCommand ref
2205 reference "tab:a table float"
2209 is an example table within a table float.
2212 \begin_layout Standard
2213 Having the caption above the table is the common rule that is unfortunately
2214 not supported in LaTeX's standard classes.
2215 That means if you are using the document classes
2231 there will be no space between the caption and the table.
2232 To insert the needed space, add the following option to the load command
2233 of the LaTeX-package
2238 \begin_inset LatexCommand index
2239 name "LaTeX-packages ! caption"
2243 in your document preamble
2247 \begin_layout Standard
2248 For more information have a look at section\InsetSpace ~
2250 \begin_inset LatexCommand ref
2251 reference "sec:Caption-Placement"
2263 \begin_layout Standard
2269 \begin_layout Standard
2274 , which is described in section\InsetSpace ~
2276 \begin_inset LatexCommand ref
2277 reference "sec:Caption-Formatting"
2281 , is used to adjust the caption format.
2284 \begin_layout Standard
2285 \begin_inset LatexCommand index
2286 name "References ! to Tables"
2290 Tables can be cross-referenced in the text by referencing their label.
2291 To do this insert a label in the caption using the menu
2293 Insert\SpecialChar \menuseparator
2296 or the toolbar button
2297 \begin_inset Graphics
2298 filename ../images/label-insert.xpm
2304 You can now refer to the label using the menu
2306 Insert\SpecialChar \menuseparator
2310 or the toolbar button
2311 \begin_inset Graphics
2312 filename ../images/dialog-show-new-inset_ref.xpm
2319 Referencing is explained in detail in section\InsetSpace ~
2321 \begin_inset LatexCommand ref
2322 reference "sec:Referencing-Floats"
2329 \begin_layout Section
2331 \begin_inset LatexCommand label
2332 name "sec:Longtables"
2337 \begin_inset LatexCommand index
2343 \begin_inset LatexCommand index
2344 name "Table ! Longtables"
2351 \begin_layout Standard
2352 If the table is too long to fit on one page, you can use the option
2362 of the table dialog to split the table automatically over more pages.
2363 Doing this enables some check boxes and you can now define:
2366 \begin_layout Description
2371 : The current row and all rows above, that don't have any special options
2372 defined, are defined to be the header rows of all pages of the longtable;
2373 except for the first page, if
2379 This therefore called the main header.
2382 \begin_layout Description
2388 : The current row and all rows above, that don't have any special options
2389 defined, are defined to be the header rows of the first page of the longtable.
2392 \begin_layout Description
2397 : The current row and all rows below, that don't have any special options
2398 defined, are defined to be the footer rows of all pages of the longtable;
2399 except for the last page, if
2407 \begin_layout Description
2413 : The current row and all rows below, that don't have any special options
2414 defined, are defined to be the footer rows of the last page of the longtable.
2417 \begin_layout Standard
2418 You can also specify a row where the table is splitted.
2419 If you set more than one option in the same table row, you should be aware
2420 of the fact that only the first one is used in the given table row.
2421 The others will then be defined as
2426 In this context, first means first in this order:
2433 header, Footer, Last\InsetSpace ~
2437 See the following longtable to see how it works:
2440 \begin_layout Standard
2442 \begin_inset Tabular
2443 <lyxtabular version="3" rows="69" columns="3">
2444 <features islongtable="true">
2445 <column alignment="left" valignment="top" leftline="true" width="0cm">
2446 <column alignment="left" valignment="top" width="0pt">
2447 <column alignment="right" valignment="top" leftline="true" rightline="true" width="0pt">
2448 <row topline="true" bottomline="true" endfirsthead="true">
2449 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2452 \begin_layout Standard
2455 Example Phone List (ignore the names)
2460 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2463 \begin_layout Standard
2469 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2472 \begin_layout Standard
2479 <row topline="true" bottomline="true" endfirsthead="true">
2480 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2483 \begin_layout Standard
2491 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2494 \begin_layout Standard
2500 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2503 \begin_layout Standard
2512 <row topline="true" bottomline="true" endhead="true">
2513 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2516 \begin_layout Standard
2524 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2527 \begin_layout Standard
2533 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2536 \begin_layout Standard
2543 <row topline="true" bottomline="true" endhead="true">
2544 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2547 \begin_layout Standard
2555 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2558 \begin_layout Standard
2564 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2567 \begin_layout Standard
2576 <row topline="true" bottomline="true" endfoot="true">
2577 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
2580 \begin_layout Standard
2581 continued on next page
2586 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2589 \begin_layout Standard
2595 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2598 \begin_layout Standard
2606 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2609 \begin_layout Standard
2617 <cell alignment="center" valignment="top" topline="true" usebox="none">
2620 \begin_layout Standard
2626 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2629 \begin_layout Standard
2637 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2640 \begin_layout Standard
2648 <cell alignment="center" valignment="top" topline="true" usebox="none">
2651 \begin_layout Standard
2657 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2660 \begin_layout Standard
2668 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2671 \begin_layout Standard
2679 <cell alignment="center" valignment="top" topline="true" usebox="none">
2682 \begin_layout Standard
2688 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2691 \begin_layout Standard
2699 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2702 \begin_layout Standard
2710 <cell alignment="center" valignment="top" topline="true" usebox="none">
2713 \begin_layout Standard
2719 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2722 \begin_layout Standard
2730 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2733 \begin_layout Standard
2741 <cell alignment="center" valignment="top" topline="true" usebox="none">
2744 \begin_layout Standard
2750 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2753 \begin_layout Standard
2761 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2764 \begin_layout Standard
2772 <cell alignment="center" valignment="top" topline="true" usebox="none">
2775 \begin_layout Standard
2781 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2784 \begin_layout Standard
2792 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2795 \begin_layout Standard
2803 <cell alignment="center" valignment="top" topline="true" usebox="none">
2806 \begin_layout Standard
2812 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2815 \begin_layout Standard
2823 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2826 \begin_layout Standard
2834 <cell alignment="center" valignment="top" topline="true" usebox="none">
2837 \begin_layout Standard
2843 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2846 \begin_layout Standard
2854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2857 \begin_layout Standard
2865 <cell alignment="center" valignment="top" topline="true" usebox="none">
2868 \begin_layout Standard
2874 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2877 \begin_layout Standard
2885 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2888 \begin_layout Standard
2896 <cell alignment="center" valignment="top" topline="true" usebox="none">
2899 \begin_layout Standard
2905 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2908 \begin_layout Standard
2916 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2919 \begin_layout Standard
2927 <cell alignment="center" valignment="top" topline="true" usebox="none">
2930 \begin_layout Standard
2936 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2939 \begin_layout Standard
2947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2950 \begin_layout Standard
2958 <cell alignment="center" valignment="top" topline="true" usebox="none">
2961 \begin_layout Standard
2967 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2970 \begin_layout Standard
2978 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2981 \begin_layout Standard
2989 <cell alignment="center" valignment="top" topline="true" usebox="none">
2992 \begin_layout Standard
2998 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3001 \begin_layout Standard
3009 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3012 \begin_layout Standard
3020 <cell alignment="center" valignment="top" topline="true" usebox="none">
3023 \begin_layout Standard
3029 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3032 \begin_layout Standard
3040 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3043 \begin_layout Standard
3051 <cell alignment="center" valignment="top" topline="true" usebox="none">
3054 \begin_layout Standard
3060 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3063 \begin_layout Standard
3071 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3074 \begin_layout Standard
3082 <cell alignment="center" valignment="top" topline="true" usebox="none">
3085 \begin_layout Standard
3091 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3094 \begin_layout Standard
3102 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3105 \begin_layout Standard
3113 <cell alignment="center" valignment="top" topline="true" usebox="none">
3116 \begin_layout Standard
3122 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3125 \begin_layout Standard
3133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3136 \begin_layout Standard
3144 <cell alignment="center" valignment="top" topline="true" usebox="none">
3147 \begin_layout Standard
3153 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3156 \begin_layout Standard
3164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3167 \begin_layout Standard
3175 <cell alignment="center" valignment="top" topline="true" usebox="none">
3178 \begin_layout Standard
3184 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3187 \begin_layout Standard
3195 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3198 \begin_layout Standard
3206 <cell alignment="center" valignment="top" topline="true" usebox="none">
3209 \begin_layout Standard
3215 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3218 \begin_layout Standard
3226 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3229 \begin_layout Standard
3237 <cell alignment="center" valignment="top" topline="true" usebox="none">
3240 \begin_layout Standard
3246 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3249 \begin_layout Standard
3257 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3260 \begin_layout Standard
3268 <cell alignment="center" valignment="top" topline="true" usebox="none">
3271 \begin_layout Standard
3277 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3280 \begin_layout Standard
3288 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3291 \begin_layout Standard
3299 <cell alignment="center" valignment="top" topline="true" usebox="none">
3302 \begin_layout Standard
3308 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3311 \begin_layout Standard
3319 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3322 \begin_layout Standard
3330 <cell alignment="center" valignment="top" topline="true" usebox="none">
3333 \begin_layout Standard
3339 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3342 \begin_layout Standard
3350 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3353 \begin_layout Standard
3361 <cell alignment="center" valignment="top" topline="true" usebox="none">
3364 \begin_layout Standard
3370 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3373 \begin_layout Standard
3381 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3384 \begin_layout Standard
3392 <cell alignment="center" valignment="top" topline="true" usebox="none">
3395 \begin_layout Standard
3401 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3404 \begin_layout Standard
3412 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3415 \begin_layout Standard
3423 <cell alignment="center" valignment="top" topline="true" usebox="none">
3426 \begin_layout Standard
3432 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3435 \begin_layout Standard
3443 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3446 \begin_layout Standard
3454 <cell alignment="center" valignment="top" topline="true" usebox="none">
3457 \begin_layout Standard
3463 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3466 \begin_layout Standard
3474 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3477 \begin_layout Standard
3485 <cell alignment="center" valignment="top" topline="true" usebox="none">
3488 \begin_layout Standard
3494 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3497 \begin_layout Standard
3505 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3508 \begin_layout Standard
3516 <cell alignment="center" valignment="top" topline="true" usebox="none">
3519 \begin_layout Standard
3525 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3528 \begin_layout Standard
3535 <row bottomline="true">
3536 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3539 \begin_layout Standard
3547 <cell alignment="center" valignment="top" topline="true" usebox="none">
3550 \begin_layout Standard
3556 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3559 \begin_layout Standard
3566 <row bottomline="true">
3567 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3570 \begin_layout Standard
3576 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
3579 \begin_layout Standard
3585 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3588 \begin_layout Standard
3596 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3599 \begin_layout Standard
3607 <cell alignment="center" valignment="top" topline="true" usebox="none">
3610 \begin_layout Standard
3616 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3619 \begin_layout Standard
3627 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3630 \begin_layout Standard
3638 <cell alignment="center" valignment="top" topline="true" usebox="none">
3641 \begin_layout Standard
3647 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3650 \begin_layout Standard
3658 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3661 \begin_layout Standard
3669 <cell alignment="center" valignment="top" topline="true" usebox="none">
3672 \begin_layout Standard
3678 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3681 \begin_layout Standard
3689 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3692 \begin_layout Standard
3700 <cell alignment="center" valignment="top" topline="true" usebox="none">
3703 \begin_layout Standard
3709 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3712 \begin_layout Standard
3720 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3723 \begin_layout Standard
3731 <cell alignment="center" valignment="top" topline="true" usebox="none">
3734 \begin_layout Standard
3740 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3743 \begin_layout Standard
3751 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3754 \begin_layout Standard
3762 <cell alignment="center" valignment="top" topline="true" usebox="none">
3765 \begin_layout Standard
3771 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3774 \begin_layout Standard
3782 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3785 \begin_layout Standard
3793 <cell alignment="center" valignment="top" topline="true" usebox="none">
3796 \begin_layout Standard
3802 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3805 \begin_layout Standard
3813 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3816 \begin_layout Standard
3824 <cell alignment="center" valignment="top" topline="true" usebox="none">
3827 \begin_layout Standard
3833 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3836 \begin_layout Standard
3844 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3847 \begin_layout Standard
3855 <cell alignment="center" valignment="top" topline="true" usebox="none">
3858 \begin_layout Standard
3864 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3867 \begin_layout Standard
3875 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3878 \begin_layout Standard
3886 <cell alignment="center" valignment="top" topline="true" usebox="none">
3889 \begin_layout Standard
3895 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3898 \begin_layout Standard
3906 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3909 \begin_layout Standard
3917 <cell alignment="center" valignment="top" topline="true" usebox="none">
3920 \begin_layout Standard
3926 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3929 \begin_layout Standard
3937 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3940 \begin_layout Standard
3948 <cell alignment="center" valignment="top" topline="true" usebox="none">
3951 \begin_layout Standard
3957 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3960 \begin_layout Standard
3968 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3971 \begin_layout Standard
3979 <cell alignment="center" valignment="top" topline="true" usebox="none">
3982 \begin_layout Standard
3988 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3991 \begin_layout Standard
3999 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4002 \begin_layout Standard
4010 <cell alignment="center" valignment="top" topline="true" usebox="none">
4013 \begin_layout Standard
4019 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4022 \begin_layout Standard
4030 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4033 \begin_layout Standard
4041 <cell alignment="center" valignment="top" topline="true" usebox="none">
4044 \begin_layout Standard
4050 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4053 \begin_layout Standard
4061 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4064 \begin_layout Standard
4072 <cell alignment="center" valignment="top" topline="true" usebox="none">
4075 \begin_layout Standard
4081 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4084 \begin_layout Standard
4092 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4095 \begin_layout Standard
4103 <cell alignment="center" valignment="top" topline="true" usebox="none">
4106 \begin_layout Standard
4112 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4115 \begin_layout Standard
4123 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4126 \begin_layout Standard
4134 <cell alignment="center" valignment="top" topline="true" usebox="none">
4137 \begin_layout Standard
4143 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4146 \begin_layout Standard
4154 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4157 \begin_layout Standard
4165 <cell alignment="center" valignment="top" topline="true" usebox="none">
4168 \begin_layout Standard
4174 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4177 \begin_layout Standard
4185 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4188 \begin_layout Standard
4196 <cell alignment="center" valignment="top" topline="true" usebox="none">
4199 \begin_layout Standard
4205 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4208 \begin_layout Standard
4216 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4219 \begin_layout Standard
4227 <cell alignment="center" valignment="top" topline="true" usebox="none">
4230 \begin_layout Standard
4236 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4239 \begin_layout Standard
4247 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4250 \begin_layout Standard
4258 <cell alignment="center" valignment="top" topline="true" usebox="none">
4261 \begin_layout Standard
4267 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4270 \begin_layout Standard
4278 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4281 \begin_layout Standard
4289 <cell alignment="center" valignment="top" topline="true" usebox="none">
4292 \begin_layout Standard
4298 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4301 \begin_layout Standard
4309 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4312 \begin_layout Standard
4320 <cell alignment="center" valignment="top" topline="true" usebox="none">
4323 \begin_layout Standard
4329 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4332 \begin_layout Standard
4340 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4343 \begin_layout Standard
4351 <cell alignment="center" valignment="top" topline="true" usebox="none">
4354 \begin_layout Standard
4360 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4363 \begin_layout Standard
4371 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4374 \begin_layout Standard
4382 <cell alignment="center" valignment="top" topline="true" usebox="none">
4385 \begin_layout Standard
4391 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4394 \begin_layout Standard
4402 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4405 \begin_layout Standard
4413 <cell alignment="center" valignment="top" topline="true" usebox="none">
4416 \begin_layout Standard
4422 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4425 \begin_layout Standard
4433 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4436 \begin_layout Standard
4444 <cell alignment="center" valignment="top" topline="true" usebox="none">
4447 \begin_layout Standard
4453 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4456 \begin_layout Standard
4464 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4467 \begin_layout Standard
4475 <cell alignment="center" valignment="top" topline="true" usebox="none">
4478 \begin_layout Standard
4484 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4487 \begin_layout Standard
4495 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4498 \begin_layout Standard
4506 <cell alignment="center" valignment="top" topline="true" usebox="none">
4509 \begin_layout Standard
4515 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4518 \begin_layout Standard
4525 <row bottomline="true">
4526 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4529 \begin_layout Standard
4537 <cell alignment="center" valignment="top" topline="true" usebox="none">
4540 \begin_layout Standard
4546 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4549 \begin_layout Standard
4556 <row bottomline="true" endlastfoot="true">
4557 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
4560 \begin_layout Standard
4566 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4569 \begin_layout Standard
4575 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4578 \begin_layout Standard
4593 \begin_layout Standard
4597 addtocounter{table}{-1}
4603 \begin_inset Note Note
4606 \begin_layout Standard
4607 See greyed-out note in section 2.6.2 for an explanation of this command.
4615 \begin_layout Subsection
4616 Footnotes in Longtables
4617 \begin_inset LatexCommand label
4618 name "sub:Footnotes-in-Longtables"
4623 \begin_inset LatexCommand index
4624 name "Longtables ! Footnotes"
4631 \begin_layout Standard
4632 Footnotes can be inserted to every longtable cell.
4633 They appear at the bottom of the page where the table cell with the footnote
4637 \begin_inset LatexCommand ref
4638 reference "tab:DiffCaptions"
4642 has for example a footnote.
4645 \begin_layout Subsection
4647 \begin_inset LatexCommand index
4648 name "Longtables ! Captions"
4655 \begin_layout Standard
4656 A longtable cannot be put into a table float because floats can only be
4657 on one page but the caption environment of floats can also be used for
4661 \begin_layout Standard
4662 As LyX does not yet fully support captions in longtables, a hack is needed
4666 \begin_layout Enumerate
4672 \begin_layout Enumerate
4673 Mark the first row and disable its upper line.
4676 \begin_layout Enumerate
4677 Insert a caption via the menu
4679 Insert\SpecialChar \menuseparator
4682 into the first table cell.
4684 You can also add a short title for the caption.
4687 \begin_layout Enumerate
4689 \begin_inset Quotes eld
4701 \begin_inset Quotes erd
4704 as ERT behind the caption.
4707 \begin_layout Standard
4708 A short title that will appear in the LOT instead of the full title.
4717 behind the caption omits the vertical lines between the following cells
4719 The first table row is now only a dummy row for the caption, the actual
4720 table starts with the second row.
4723 \begin_layout Standard
4724 Here is a short longtable to see how it works:
4727 \begin_layout Standard
4728 \begin_inset Tabular
4729 <lyxtabular version="3" rows="6" columns="5">
4730 <features islongtable="true">
4731 <column alignment="center" valignment="top" leftline="true" width="0">
4732 <column alignment="center" valignment="top" leftline="true" width="0">
4733 <column alignment="center" valignment="top" leftline="true" width="0">
4734 <column alignment="center" valignment="top" leftline="true" width="0">
4735 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
4737 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4740 \begin_layout Standard
4741 \begin_inset Caption
4743 \begin_layout Standard
4744 Longtable with caption
4748 \begin_layout Standard
4763 \begin_layout Standard
4779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4782 \begin_layout Standard
4788 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4791 \begin_layout Standard
4797 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4800 \begin_layout Standard
4806 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4809 \begin_layout Standard
4816 <row topline="true">
4817 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4820 \begin_layout Standard
4826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4829 \begin_layout Standard
4835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4838 \begin_layout Standard
4844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4847 \begin_layout Standard
4853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4856 \begin_layout Standard
4863 <row topline="true">
4864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4867 \begin_layout Standard
4873 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4876 \begin_layout Standard
4882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4885 \begin_layout Standard
4891 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4894 \begin_layout Standard
4900 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4903 \begin_layout Standard
4910 <row topline="true">
4911 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4914 \begin_layout Standard
4920 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4923 \begin_layout Standard
4929 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4932 \begin_layout Standard
4938 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4941 \begin_layout Standard
4947 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4950 \begin_layout Standard
4957 <row topline="true">
4958 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4961 \begin_layout Standard
4967 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4970 \begin_layout Standard
4976 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4979 \begin_layout Standard
4985 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4988 \begin_layout Standard
4994 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4997 \begin_layout Standard
5004 <row topline="true" bottomline="true">
5005 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5008 \begin_layout Standard
5014 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5017 \begin_layout Standard
5023 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5026 \begin_layout Standard
5032 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5035 \begin_layout Standard
5041 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5044 \begin_layout Standard
5058 \begin_layout Standard
5059 \begin_inset VSpace medskip
5063 \begin_inset Note Greyedout
5066 \begin_layout Standard
5071 The table number is increased for every longtable, also if you didn't set
5073 For this reason you could have the case that e.g.
5075 2.4 follows on Table\InsetSpace ~
5076 2.1 in the list of tables if there are two longtables
5078 To avoid this you can add the following command in ERT behind every longtable
5082 \begin_layout Standard
5087 addtocounter{table}{-1}
5095 \begin_layout Standard
5096 \begin_inset Note Greyedout
5099 \begin_layout Standard
5104 If you are using the LaTeX-package
5109 \begin_inset LatexCommand index
5110 name "LaTeX-packages ! hyperref"
5114 to link cross-references, the link to a longtable caption will always point
5115 to the beginning of the document.
5123 \begin_layout Subsubsection
5124 References to Longtables
5125 \begin_inset LatexCommand index
5126 name "Longtables ! References"
5133 \begin_layout Standard
5134 \begin_inset Tabular
5135 <lyxtabular version="3" rows="6" columns="5">
5136 <features islongtable="true">
5137 <column alignment="center" valignment="top" leftline="true" width="0">
5138 <column alignment="center" valignment="top" leftline="true" width="0">
5139 <column alignment="center" valignment="top" leftline="true" width="0">
5140 <column alignment="center" valignment="top" leftline="true" width="0">
5141 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5146 \begin_layout Standard
5147 \begin_inset Caption
5149 \begin_layout Standard
5150 Referenced longtable
5151 \begin_inset LatexCommand label
5152 name "tab:RefExample"
5165 \begin_layout Standard
5181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5184 \begin_layout Standard
5190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5193 \begin_layout Standard
5199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5202 \begin_layout Standard
5208 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5211 \begin_layout Standard
5218 <row topline="true">
5219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5222 \begin_layout Standard
5228 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5231 \begin_layout Standard
5237 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5240 \begin_layout Standard
5246 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5249 \begin_layout Standard
5255 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5258 \begin_layout Standard
5265 <row topline="true">
5266 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5269 \begin_layout Standard
5275 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5278 \begin_layout Standard
5284 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5287 \begin_layout Standard
5293 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5296 \begin_layout Standard
5302 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5305 \begin_layout Standard
5312 <row topline="true">
5313 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5316 \begin_layout Standard
5322 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5325 \begin_layout Standard
5331 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5334 \begin_layout Standard
5340 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5343 \begin_layout Standard
5349 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5352 \begin_layout Standard
5359 <row topline="true">
5360 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5363 \begin_layout Standard
5369 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5372 \begin_layout Standard
5378 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5381 \begin_layout Standard
5387 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5390 \begin_layout Standard
5396 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5399 \begin_layout Standard
5406 <row topline="true" bottomline="true">
5407 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5410 \begin_layout Standard
5416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5419 \begin_layout Standard
5425 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5428 \begin_layout Standard
5434 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5437 \begin_layout Standard
5443 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5446 \begin_layout Standard
5460 \begin_layout Standard
5461 To reference a longtable, insert a label into the caption.
5462 Note that you have to add the label prefix
5463 \begin_inset Quotes eld
5471 \begin_inset Quotes eld
5474 manually in the label field.
5477 \begin_layout Standard
5478 This is a reference to Table\InsetSpace ~
5480 \begin_inset LatexCommand ref
5481 reference "tab:RefExample"
5488 \begin_layout Standard
5489 The caption layout can be set together with all other caption of your document
5490 using the LaTeX-package
5495 \begin_inset LatexCommand index
5496 name "LaTeX-packages ! caption"
5500 , see section\InsetSpace ~
5502 \begin_inset LatexCommand ref
5503 reference "sec:Caption-Formatting"
5510 \begin_layout Subsubsection
5512 \begin_inset LatexCommand index
5513 name "Longtables ! Caption Width"
5520 \begin_layout Standard
5521 The maximal width of of caption lines is defined by the length
5528 Its default value is 4\InsetSpace \thinspace{}
5530 To change it add the following command to your document preamble or as
5531 ERT into your document before the longtable that should be affected
5534 \begin_layout Standard
5544 \begin_layout Standard
5545 where the width could have one of the units listed in appendix\InsetSpace ~
5547 \begin_inset LatexCommand ref
5548 reference "cha:Units-available-in"
5555 \begin_layout Standard
5556 The following tables show the difference:
5559 \begin_layout Standard
5560 \begin_inset Tabular
5561 <lyxtabular version="3" rows="6" columns="5">
5562 <features islongtable="true">
5563 <column alignment="center" valignment="top" leftline="true" width="0">
5564 <column alignment="center" valignment="top" leftline="true" width="0">
5565 <column alignment="center" valignment="top" leftline="true" width="0">
5566 <column alignment="center" valignment="top" leftline="true" width="0">
5567 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5569 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5572 \begin_layout Standard
5573 \begin_inset Caption
5575 \begin_layout Standard
5576 long full title with default width long full title with default width long
5577 full title with default width
5581 \begin_layout Standard
5582 caption with default width
5596 \begin_layout Standard
5612 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5615 \begin_layout Standard
5621 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5624 \begin_layout Standard
5630 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5633 \begin_layout Standard
5639 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5642 \begin_layout Standard
5649 <row topline="true">
5650 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5653 \begin_layout Standard
5659 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5662 \begin_layout Standard
5668 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5671 \begin_layout Standard
5677 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5680 \begin_layout Standard
5686 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5689 \begin_layout Standard
5696 <row topline="true">
5697 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5700 \begin_layout Standard
5706 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5709 \begin_layout Standard
5715 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5718 \begin_layout Standard
5724 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5727 \begin_layout Standard
5733 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5736 \begin_layout Standard
5743 <row topline="true">
5744 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5747 \begin_layout Standard
5753 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5756 \begin_layout Standard
5762 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5765 \begin_layout Standard
5771 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5774 \begin_layout Standard
5780 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5783 \begin_layout Standard
5790 <row topline="true">
5791 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5794 \begin_layout Standard
5800 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5803 \begin_layout Standard
5809 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5812 \begin_layout Standard
5818 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5821 \begin_layout Standard
5827 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5830 \begin_layout Standard
5837 <row topline="true" bottomline="true">
5838 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5841 \begin_layout Standard
5847 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5850 \begin_layout Standard
5856 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5859 \begin_layout Standard
5865 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5868 \begin_layout Standard
5874 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5877 \begin_layout Standard
5891 \begin_layout Standard
5895 \begin_layout Standard
5907 \begin_inset Tabular
5908 <lyxtabular version="3" rows="6" columns="5">
5909 <features islongtable="true">
5910 <column alignment="center" valignment="top" leftline="true" width="0">
5911 <column alignment="center" valignment="top" leftline="true" width="0">
5912 <column alignment="center" valignment="top" leftline="true" width="0">
5913 <column alignment="center" valignment="top" leftline="true" width="0">
5914 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5916 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5919 \begin_layout Standard
5920 \begin_inset Caption
5922 \begin_layout Standard
5923 long full title with width set to 5\InsetSpace \thinspace{}
5924 cm long full title with width set to
5925 5\InsetSpace \thinspace{}
5926 cm long full title with width set to 5\InsetSpace \thinspace{}
5931 \begin_layout Standard
5932 caption with width\InsetSpace \thinspace{}
5933 =\InsetSpace \thinspace{}
5934 5\InsetSpace \thinspace{}
5949 \begin_layout Standard
5965 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5968 \begin_layout Standard
5974 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5977 \begin_layout Standard
5983 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5986 \begin_layout Standard
5992 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5995 \begin_layout Standard
6002 <row topline="true">
6003 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6006 \begin_layout Standard
6012 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6015 \begin_layout Standard
6021 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6024 \begin_layout Standard
6030 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6033 \begin_layout Standard
6039 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6042 \begin_layout Standard
6049 <row topline="true">
6050 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6053 \begin_layout Standard
6059 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6062 \begin_layout Standard
6068 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6071 \begin_layout Standard
6077 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6080 \begin_layout Standard
6086 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6089 \begin_layout Standard
6096 <row topline="true">
6097 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6100 \begin_layout Standard
6106 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6109 \begin_layout Standard
6115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6118 \begin_layout Standard
6124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6127 \begin_layout Standard
6133 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6136 \begin_layout Standard
6143 <row topline="true">
6144 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6147 \begin_layout Standard
6153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6156 \begin_layout Standard
6162 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6165 \begin_layout Standard
6171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6174 \begin_layout Standard
6180 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6183 \begin_layout Standard
6190 <row topline="true" bottomline="true">
6191 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6194 \begin_layout Standard
6200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6203 \begin_layout Standard
6209 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6212 \begin_layout Standard
6218 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6221 \begin_layout Standard
6227 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6230 \begin_layout Standard
6244 \begin_layout Standard
6248 \begin_layout Standard
6262 \begin_layout Standard
6263 \begin_inset Note Greyedout
6266 \begin_layout Standard
6271 When the LaTeX-package
6276 \begin_inset LatexCommand index
6277 name "LaTeX-packages ! caption"
6281 is used, as in this document, the full page width is used for the caption
6282 when you use the default value of 4\InsetSpace \thinspace{}
6290 To get in this case exactly a 4\InsetSpace \thinspace{}
6291 in wide caption, you can either use a value
6292 slightly different from 4.0\InsetSpace \thinspace{}
6294 3.99\InsetSpace \thinspace{}
6295 in, or the LaTeX-command
6299 captionsetup{width=value}
6301 that is provided by the
6313 \begin_layout Subsubsection
6314 Different Captions for Table Pages
6315 \begin_inset LatexCommand index
6316 name "Longtables ! Different Captions for Pages"
6323 \begin_layout Standard
6324 When the other captions should differ from the one of the first table page,
6325 insert a caption with a non-empty short title in a dummy caption row marked
6327 The caption used for the other table pages is inserted as caption without
6328 a short title in a dummy caption row that is marked as main header.
6329 When this caption shouldn't include the table number, use the command
6332 \begin_layout Standard
6337 caption*{caption text}
6340 \begin_layout Standard
6341 instead of LyX's caption box.
6342 The label to reference the table is inserted into the caption of the first
6346 \begin_inset LatexCommand ref
6347 reference "tab:DiffCaptions"
6351 is an example for a longtable with different heading where the second caption
6352 doesn't include the table number.
6355 \begin_layout Standard
6357 \begin_inset Tabular
6358 <lyxtabular version="3" rows="60" columns="3">
6359 <features islongtable="true">
6360 <column alignment="left" valignment="top" leftline="true" width="0cm">
6361 <column alignment="left" valignment="top" rightline="true" width="0pt">
6362 <column alignment="right" valignment="top" rightline="true" width="0pt">
6363 <row endfirsthead="true">
6364 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6367 \begin_layout Standard
6368 \begin_inset Caption
6370 \begin_layout Standard
6372 \begin_inset LatexCommand label
6373 name "tab:DiffCaptions"
6381 \begin_layout Standard
6396 \begin_layout Standard
6412 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6415 \begin_layout Standard
6421 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6424 \begin_layout Standard
6431 <row topline="true" bottomline="true" endfirsthead="true">
6432 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6435 \begin_layout Standard
6438 Example Phone List (ignore the names)
6443 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6446 \begin_layout Standard
6452 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6455 \begin_layout Standard
6462 <row topline="true" bottomline="true" endfirsthead="true">
6463 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6466 \begin_layout Standard
6474 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6477 \begin_layout Standard
6483 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6486 \begin_layout Standard
6495 <row bottomline="true" endhead="true">
6496 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6499 \begin_layout Standard
6503 \begin_layout Standard
6507 caption*{Continued Example Phone List}
6521 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6524 \begin_layout Standard
6530 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6533 \begin_layout Standard
6540 <row topline="true" bottomline="true" endhead="true">
6541 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6544 \begin_layout Standard
6552 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6555 \begin_layout Standard
6561 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6564 \begin_layout Standard
6571 <row topline="true" bottomline="true" endhead="true">
6572 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6575 \begin_layout Standard
6583 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6586 \begin_layout Standard
6592 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6595 \begin_layout Standard
6604 <row topline="true" bottomline="true" endfoot="true">
6605 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
6608 \begin_layout Standard
6609 continued on next page
6614 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6617 \begin_layout Standard
6623 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6626 \begin_layout Standard
6634 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6637 \begin_layout Standard
6645 <cell alignment="center" valignment="top" topline="true" usebox="none">
6648 \begin_layout Standard
6654 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6657 \begin_layout Standard
6665 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6668 \begin_layout Standard
6676 <cell alignment="center" valignment="top" topline="true" usebox="none">
6679 \begin_layout Standard
6685 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6688 \begin_layout Standard
6696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6699 \begin_layout Standard
6707 <cell alignment="center" valignment="top" topline="true" usebox="none">
6710 \begin_layout Standard
6716 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6719 \begin_layout Standard
6727 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6730 \begin_layout Standard
6738 <cell alignment="center" valignment="top" topline="true" usebox="none">
6741 \begin_layout Standard
6747 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6750 \begin_layout Standard
6758 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6761 \begin_layout Standard
6769 <cell alignment="center" valignment="top" topline="true" usebox="none">
6772 \begin_layout Standard
6778 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6781 \begin_layout Standard
6789 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6792 \begin_layout Standard
6800 <cell alignment="center" valignment="top" topline="true" usebox="none">
6803 \begin_layout Standard
6809 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6812 \begin_layout Standard
6820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6823 \begin_layout Standard
6831 <cell alignment="center" valignment="top" topline="true" usebox="none">
6834 \begin_layout Standard
6840 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6843 \begin_layout Standard
6851 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6854 \begin_layout Standard
6862 <cell alignment="center" valignment="top" topline="true" usebox="none">
6865 \begin_layout Standard
6871 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6874 \begin_layout Standard
6882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6885 \begin_layout Standard
6893 <cell alignment="center" valignment="top" topline="true" usebox="none">
6896 \begin_layout Standard
6902 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6905 \begin_layout Standard
6913 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6916 \begin_layout Standard
6924 <cell alignment="center" valignment="top" topline="true" usebox="none">
6927 \begin_layout Standard
6933 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6936 \begin_layout Standard
6944 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6947 \begin_layout Standard
6955 <cell alignment="center" valignment="top" topline="true" usebox="none">
6958 \begin_layout Standard
6964 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6967 \begin_layout Standard
6975 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6978 \begin_layout Standard
6986 <cell alignment="center" valignment="top" topline="true" usebox="none">
6989 \begin_layout Standard
6995 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6998 \begin_layout Standard
7006 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7009 \begin_layout Standard
7017 <cell alignment="center" valignment="top" topline="true" usebox="none">
7020 \begin_layout Standard
7026 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7029 \begin_layout Standard
7037 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7040 \begin_layout Standard
7048 <cell alignment="center" valignment="top" topline="true" usebox="none">
7051 \begin_layout Standard
7057 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7060 \begin_layout Standard
7068 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7071 \begin_layout Standard
7080 \begin_layout Standard
7091 <cell alignment="center" valignment="top" topline="true" usebox="none">
7094 \begin_layout Standard
7100 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7103 \begin_layout Standard
7111 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7114 \begin_layout Standard
7122 <cell alignment="center" valignment="top" topline="true" usebox="none">
7125 \begin_layout Standard
7131 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7134 \begin_layout Standard
7142 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7145 \begin_layout Standard
7153 <cell alignment="center" valignment="top" topline="true" usebox="none">
7156 \begin_layout Standard
7162 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7165 \begin_layout Standard
7173 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7176 \begin_layout Standard
7184 <cell alignment="center" valignment="top" topline="true" usebox="none">
7187 \begin_layout Standard
7193 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7196 \begin_layout Standard
7204 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7207 \begin_layout Standard
7215 <cell alignment="center" valignment="top" topline="true" usebox="none">
7218 \begin_layout Standard
7224 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7227 \begin_layout Standard
7235 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7238 \begin_layout Standard
7246 <cell alignment="center" valignment="top" topline="true" usebox="none">
7249 \begin_layout Standard
7255 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7258 \begin_layout Standard
7266 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7269 \begin_layout Standard
7277 <cell alignment="center" valignment="top" topline="true" usebox="none">
7280 \begin_layout Standard
7286 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7289 \begin_layout Standard
7297 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7300 \begin_layout Standard
7308 <cell alignment="center" valignment="top" topline="true" usebox="none">
7311 \begin_layout Standard
7317 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7320 \begin_layout Standard
7328 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7331 \begin_layout Standard
7339 <cell alignment="center" valignment="top" topline="true" usebox="none">
7342 \begin_layout Standard
7348 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7351 \begin_layout Standard
7359 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7362 \begin_layout Standard
7370 <cell alignment="center" valignment="top" topline="true" usebox="none">
7373 \begin_layout Standard
7379 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7382 \begin_layout Standard
7390 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7393 \begin_layout Standard
7401 <cell alignment="center" valignment="top" topline="true" usebox="none">
7404 \begin_layout Standard
7410 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7413 \begin_layout Standard
7421 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7424 \begin_layout Standard
7432 <cell alignment="center" valignment="top" topline="true" usebox="none">
7435 \begin_layout Standard
7441 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7444 \begin_layout Standard
7452 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7455 \begin_layout Standard
7463 <cell alignment="center" valignment="top" topline="true" usebox="none">
7466 \begin_layout Standard
7472 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7475 \begin_layout Standard
7483 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7486 \begin_layout Standard
7494 <cell alignment="center" valignment="top" topline="true" usebox="none">
7497 \begin_layout Standard
7503 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7506 \begin_layout Standard
7514 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7517 \begin_layout Standard
7525 <cell alignment="center" valignment="top" topline="true" usebox="none">
7528 \begin_layout Standard
7534 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7537 \begin_layout Standard
7545 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7548 \begin_layout Standard
7556 <cell alignment="center" valignment="top" topline="true" usebox="none">
7559 \begin_layout Standard
7565 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7568 \begin_layout Standard
7575 <row bottomline="true">
7576 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7579 \begin_layout Standard
7587 <cell alignment="center" valignment="top" topline="true" usebox="none">
7590 \begin_layout Standard
7596 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7599 \begin_layout Standard
7606 <row bottomline="true">
7607 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7610 \begin_layout Standard
7616 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
7619 \begin_layout Standard
7625 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7628 \begin_layout Standard
7636 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7639 \begin_layout Standard
7647 <cell alignment="center" valignment="top" topline="true" usebox="none">
7650 \begin_layout Standard
7656 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7659 \begin_layout Standard
7667 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7670 \begin_layout Standard
7678 <cell alignment="center" valignment="top" topline="true" usebox="none">
7681 \begin_layout Standard
7687 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7690 \begin_layout Standard
7698 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7701 \begin_layout Standard
7709 <cell alignment="center" valignment="top" topline="true" usebox="none">
7712 \begin_layout Standard
7718 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7721 \begin_layout Standard
7729 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7732 \begin_layout Standard
7740 <cell alignment="center" valignment="top" topline="true" usebox="none">
7743 \begin_layout Standard
7749 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7752 \begin_layout Standard
7760 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7763 \begin_layout Standard
7771 <cell alignment="center" valignment="top" topline="true" usebox="none">
7774 \begin_layout Standard
7780 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7783 \begin_layout Standard
7791 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7794 \begin_layout Standard
7802 <cell alignment="center" valignment="top" topline="true" usebox="none">
7805 \begin_layout Standard
7811 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7814 \begin_layout Standard
7822 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7825 \begin_layout Standard
7833 <cell alignment="center" valignment="top" topline="true" usebox="none">
7836 \begin_layout Standard
7842 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7845 \begin_layout Standard
7853 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7856 \begin_layout Standard
7864 <cell alignment="center" valignment="top" topline="true" usebox="none">
7867 \begin_layout Standard
7873 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7876 \begin_layout Standard
7884 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7887 \begin_layout Standard
7895 <cell alignment="center" valignment="top" topline="true" usebox="none">
7898 \begin_layout Standard
7904 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7907 \begin_layout Standard
7915 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7918 \begin_layout Standard
7926 <cell alignment="center" valignment="top" topline="true" usebox="none">
7929 \begin_layout Standard
7935 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7938 \begin_layout Standard
7946 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7949 \begin_layout Standard
7957 <cell alignment="center" valignment="top" topline="true" usebox="none">
7960 \begin_layout Standard
7966 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7969 \begin_layout Standard
7977 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7980 \begin_layout Standard
7988 <cell alignment="center" valignment="top" topline="true" usebox="none">
7991 \begin_layout Standard
7997 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8000 \begin_layout Standard
8008 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8011 \begin_layout Standard
8019 <cell alignment="center" valignment="top" topline="true" usebox="none">
8022 \begin_layout Standard
8028 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8031 \begin_layout Standard
8039 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8042 \begin_layout Standard
8050 <cell alignment="center" valignment="top" topline="true" usebox="none">
8053 \begin_layout Standard
8059 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8062 \begin_layout Standard
8070 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8073 \begin_layout Standard
8081 <cell alignment="center" valignment="top" topline="true" usebox="none">
8084 \begin_layout Standard
8090 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8093 \begin_layout Standard
8101 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8104 \begin_layout Standard
8112 <cell alignment="center" valignment="top" topline="true" usebox="none">
8115 \begin_layout Standard
8121 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8124 \begin_layout Standard
8132 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8135 \begin_layout Standard
8143 <cell alignment="center" valignment="top" topline="true" usebox="none">
8146 \begin_layout Standard
8152 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8155 \begin_layout Standard
8163 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8166 \begin_layout Standard
8174 <cell alignment="center" valignment="top" topline="true" usebox="none">
8177 \begin_layout Standard
8183 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8186 \begin_layout Standard
8194 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8197 \begin_layout Standard
8205 <cell alignment="center" valignment="top" topline="true" usebox="none">
8208 \begin_layout Standard
8214 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8217 \begin_layout Standard
8224 <row bottomline="true">
8225 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8228 \begin_layout Standard
8236 <cell alignment="center" valignment="top" topline="true" usebox="none">
8239 \begin_layout Standard
8245 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8248 \begin_layout Standard
8255 <row bottomline="true" endlastfoot="true">
8256 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
8259 \begin_layout Standard
8265 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8268 \begin_layout Standard
8274 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8277 \begin_layout Standard
8291 \begin_layout Section
8292 Special Longtable Issues
8293 \begin_inset LatexCommand label
8294 name "sec:Special-Longtable-Issues"
8301 \begin_layout Subsection
8302 Longtable Calculation
8303 \begin_inset LatexCommand index
8304 name "Longtables ! Calculation"
8311 \begin_layout Standard
8312 LaTeX calculates the height of table pages and their page breaks using so
8314 Chunks are pieces of the tables that are at once in LaTeX's memory.
8315 The default value is historically set to only 20 table rows.
8316 If you are using longtables with many pages this may slow down the creation
8318 You can safely increase the chunk size to values of 100-1000 by adding
8319 this command line to your document preamble:
8322 \begin_layout Standard
8327 setcounter{LTchunksize}{100}
8330 \begin_layout Subsection
8331 Floats and Longtables
8332 \begin_inset LatexCommand index
8333 name "Longtables ! Floats"
8340 \begin_layout Standard
8341 There might be problems when a float appears on the same page where a longtable
8343 To avoid such situation, add the command
8349 as ERT before your longtable.
8352 \begin_layout Subsection
8354 \begin_inset LatexCommand index
8355 name "Longtables ! Forced Page Breaks"
8362 \begin_layout Standard
8363 By default tables are only broken between rows.
8364 If you have a cell with multiples lines and want to have a page break within
8365 the cell, insert the new line command
8366 \begin_inset Quotes eld
8378 \begin_inset Quotes erd
8381 as ERT at this point of the cell where it should be broken.
8390 command you have to insert in ERT so many
8391 \begin_inset Quotes eld
8399 \begin_inset Quotes erd
8402 characters like the number of the following table columns.
8407 is the character to separate table cells.
8408 Write in ERT after each
8412 the content of the corresponding following cell and delete the content
8423 command, insert so many
8427 characters like the number of table columns before the current column.
8428 In Table\InsetSpace ~
8430 \begin_inset LatexCommand ref
8431 reference "tab:ForcedPagebreak"
8435 the cell that should be broken is in the second column followed by another
8437 Therefore the following command was inserted in the cell as ERT behind
8439 \begin_inset Quotes eld
8447 \begin_inset Quotes erd
8453 \begin_layout Standard
8465 \begin_layout Standard
8467 \begin_inset Quotes eld
8471 \begin_inset Quotes erd
8474 in the third columns of the row was deleted.
8475 If your footer row of the longtable has for a certain reason no upper line
8476 but you would have a horizontal line where the cell is broken, use this
8480 \begin_layout Standard
8494 \begin_layout Standard
8495 When the cell to be broken is in the last column, the command
8498 \begin_layout Standard
8505 parf\SpecialChar \textcompwordmark{}
8509 \begin_layout Standard
8510 must be inserted as ERT at the beginning of the cell.
8511 This assures that the part of the cell that will be displayed on the new
8512 page appears with the full width.
8516 \begin_layout Standard
8518 \begin_inset Tabular
8519 <lyxtabular version="3" rows="39" columns="3">
8520 <features islongtable="true">
8521 <column alignment="left" valignment="top" leftline="true" width="0cm">
8522 <column alignment="left" valignment="top" rightline="true" width="3cm">
8523 <column alignment="right" valignment="top" rightline="true" width="0pt">
8524 <row endfirsthead="true">
8525 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8528 \begin_layout Standard
8529 \begin_inset Caption
8531 \begin_layout Standard
8532 Table with forced page break in table cell
8533 \begin_inset LatexCommand label
8534 name "tab:ForcedPagebreak"
8542 \begin_layout Standard
8543 Table with forced page break in table cell
8557 \begin_layout Standard
8573 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8576 \begin_layout Standard
8582 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8585 \begin_layout Standard
8592 <row topline="true" bottomline="true" endfirsthead="true">
8593 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8596 \begin_layout Standard
8599 Example Phone List (ignore the names)
8604 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8607 \begin_layout Standard
8613 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8616 \begin_layout Standard
8623 <row topline="true" bottomline="true" endfirsthead="true">
8624 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8627 \begin_layout Standard
8635 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8638 \begin_layout Standard
8644 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8647 \begin_layout Standard
8656 <row bottomline="true" endhead="true">
8657 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8660 \begin_layout Standard
8664 \begin_layout Standard
8668 caption*{Continued table with forced page break in table cell}
8682 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8685 \begin_layout Standard
8691 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8694 \begin_layout Standard
8701 <row topline="true" bottomline="true" endhead="true">
8702 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8705 \begin_layout Standard
8713 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8716 \begin_layout Standard
8722 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8725 \begin_layout Standard
8732 <row topline="true" bottomline="true" endhead="true">
8733 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8736 \begin_layout Standard
8744 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8747 \begin_layout Standard
8753 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8756 \begin_layout Standard
8765 <row topline="true" bottomline="true" endfoot="true">
8766 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
8769 \begin_layout Standard
8770 continued on next page
8775 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8778 \begin_layout Standard
8784 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8787 \begin_layout Standard
8795 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8798 \begin_layout Standard
8806 <cell alignment="center" valignment="top" topline="true" usebox="none">
8809 \begin_layout Standard
8815 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8818 \begin_layout Standard
8826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8829 \begin_layout Standard
8837 <cell alignment="center" valignment="top" topline="true" usebox="none">
8840 \begin_layout Standard
8846 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8849 \begin_layout Standard
8857 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8860 \begin_layout Standard
8868 <cell alignment="center" valignment="top" topline="true" usebox="none">
8871 \begin_layout Standard
8877 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8880 \begin_layout Standard
8888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8891 \begin_layout Standard
8899 <cell alignment="center" valignment="top" topline="true" usebox="none">
8902 \begin_layout Standard
8908 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8911 \begin_layout Standard
8919 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8922 \begin_layout Standard
8930 <cell alignment="center" valignment="top" topline="true" usebox="none">
8933 \begin_layout Standard
8939 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8942 \begin_layout Standard
8950 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8953 \begin_layout Standard
8961 <cell alignment="center" valignment="top" topline="true" usebox="none">
8964 \begin_layout Standard
8970 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8973 \begin_layout Standard
8981 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8984 \begin_layout Standard
8992 <cell alignment="center" valignment="top" topline="true" usebox="none">
8995 \begin_layout Standard
9001 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9004 \begin_layout Standard
9012 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9015 \begin_layout Standard
9023 <cell alignment="center" valignment="top" topline="true" usebox="none">
9026 \begin_layout Standard
9032 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9035 \begin_layout Standard
9043 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9046 \begin_layout Standard
9054 <cell alignment="center" valignment="top" topline="true" usebox="none">
9057 \begin_layout Standard
9063 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9066 \begin_layout Standard
9074 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9077 \begin_layout Standard
9085 <cell alignment="center" valignment="top" topline="true" usebox="none">
9088 \begin_layout Standard
9094 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9097 \begin_layout Standard
9105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9108 \begin_layout Standard
9116 <cell alignment="center" valignment="top" topline="true" usebox="none">
9119 \begin_layout Standard
9125 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9128 \begin_layout Standard
9136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9139 \begin_layout Standard
9147 <cell alignment="center" valignment="top" topline="true" usebox="none">
9150 \begin_layout Standard
9156 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9159 \begin_layout Standard
9167 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9170 \begin_layout Standard
9178 <cell alignment="center" valignment="top" topline="true" usebox="none">
9181 \begin_layout Standard
9187 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9190 \begin_layout Standard
9198 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9201 \begin_layout Standard
9209 <cell alignment="center" valignment="top" topline="true" usebox="none">
9212 \begin_layout Standard
9218 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9221 \begin_layout Standard
9229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9232 \begin_layout Standard
9240 <cell alignment="center" valignment="top" topline="true" usebox="none">
9243 \begin_layout Standard
9249 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9252 \begin_layout Standard
9260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9263 \begin_layout Standard
9271 <cell alignment="center" valignment="top" topline="true" usebox="none">
9274 \begin_layout Standard
9280 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9283 \begin_layout Standard
9291 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9294 \begin_layout Standard
9302 <cell alignment="center" valignment="top" topline="true" usebox="none">
9305 \begin_layout Standard
9311 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9314 \begin_layout Standard
9322 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9325 \begin_layout Standard
9333 <cell alignment="center" valignment="top" topline="true" usebox="none">
9336 \begin_layout Standard
9342 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9345 \begin_layout Standard
9353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9356 \begin_layout Standard
9364 <cell alignment="center" valignment="top" topline="true" usebox="none">
9367 \begin_layout Standard
9373 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9376 \begin_layout Standard
9384 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9387 \begin_layout Standard
9395 <cell alignment="center" valignment="top" topline="true" usebox="none">
9398 \begin_layout Standard
9404 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9407 \begin_layout Standard
9415 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9418 \begin_layout Standard
9426 <cell alignment="center" valignment="top" topline="true" usebox="none">
9429 \begin_layout Standard
9435 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9438 \begin_layout Standard
9446 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9449 \begin_layout Standard
9457 <cell alignment="center" valignment="top" topline="true" usebox="none">
9460 \begin_layout Standard
9466 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9469 \begin_layout Standard
9477 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9480 \begin_layout Standard
9488 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9491 \begin_layout Standard
9493 Fürst von Montecompatri, 11.
9494 Fürst von Sulmona und Vivaro, 10.
9495 Fürst von Rossano, 5.
9496 Herzog von Canemorte, 11.
9497 Herzog von Palombara, 5.
9498 Herzog von Castelchiodato,
9502 \begin_layout Standard
9511 \begin_layout Standard
9519 Herzog von Poggionativo, 11.
9520 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
9521 Graf von Valinfreda, 11.
9522 Baron von Cropalati, 11.
9523 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
9528 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9531 \begin_layout Standard
9539 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9542 \begin_layout Standard
9550 <cell alignment="center" valignment="top" topline="true" usebox="none">
9553 \begin_layout Standard
9559 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9562 \begin_layout Standard
9570 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9573 \begin_layout Standard
9581 <cell alignment="center" valignment="top" topline="true" usebox="none">
9584 \begin_layout Standard
9590 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9593 \begin_layout Standard
9601 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9604 \begin_layout Standard
9612 <cell alignment="center" valignment="top" topline="true" usebox="none">
9615 \begin_layout Standard
9621 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9624 \begin_layout Standard
9632 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9635 \begin_layout Standard
9643 <cell alignment="center" valignment="top" topline="true" usebox="none">
9646 \begin_layout Standard
9652 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9655 \begin_layout Standard
9663 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9666 \begin_layout Standard
9674 <cell alignment="center" valignment="top" topline="true" usebox="none">
9677 \begin_layout Standard
9683 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9686 \begin_layout Standard
9694 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9697 \begin_layout Standard
9705 <cell alignment="center" valignment="top" topline="true" usebox="none">
9708 \begin_layout Standard
9714 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9717 \begin_layout Standard
9725 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9728 \begin_layout Standard
9736 <cell alignment="center" valignment="top" topline="true" usebox="none">
9739 \begin_layout Standard
9745 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9748 \begin_layout Standard
9755 <row bottomline="true">
9756 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9759 \begin_layout Standard
9767 <cell alignment="center" valignment="top" topline="true" usebox="none">
9770 \begin_layout Standard
9776 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9779 \begin_layout Standard
9786 <row endlastfoot="true">
9787 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9790 \begin_layout Standard
9796 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9799 \begin_layout Standard
9805 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9808 \begin_layout Standard
9822 \begin_layout Section
9823 Multiple Lines Columns and Rows
9826 \begin_layout Subsection
9827 Multiple Lines in Table Cells
9828 \begin_inset LatexCommand label
9829 name "sub:Multiple-Lines-in"
9834 \begin_inset LatexCommand index
9835 name "Multiple Lines in Table Cells"
9840 \begin_inset LatexCommand index
9841 name "Table ! Linebreaks"
9848 \begin_layout Standard
9850 \begin_inset Float table
9856 \begin_layout Standard
9857 \begin_inset Caption
9859 \begin_layout Standard
9860 \begin_inset LatexCommand label
9861 name "tab:Table-with-multiple"
9865 Table with multiple lines in cells
9873 \begin_layout Standard
9875 \begin_inset Tabular
9876 <lyxtabular version="3" rows="3" columns="3">
9878 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
9879 <column alignment="center" valignment="middle" leftline="true" width="0">
9880 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
9881 <row topline="true">
9882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9885 \begin_layout Standard
9890 \begin_layout Standard
9904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9907 \begin_layout Standard
9913 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9916 \begin_layout Standard
9923 <row topline="true">
9924 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9927 \begin_layout Standard
9933 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9936 \begin_layout Standard
9942 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9945 \begin_layout Standard
9952 <row topline="true" bottomline="true">
9953 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9956 \begin_layout Standard
9962 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9965 \begin_layout Standard
9971 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9974 \begin_layout Standard
9993 \begin_layout Standard
9994 Adjusting a fixed width for a column, enables to enter text as a paragraph
9995 with multiple lines and hyphenations.
9998 \begin_layout Standard
9999 To produce Table\InsetSpace ~
10001 \begin_inset LatexCommand ref
10002 reference "tab:Table-with-multiple"
10006 , create a 3×3 table, mark the first cell and right-click on it.
10007 In the appearing table dialog we set a cell width of 2.5\InsetSpace \thinspace{}
10008 cm and choose centered
10009 for the vertical and horizontal alignment.
10010 The vertical alignment is used for all cells of the row.
10011 As our text is smaller than than 2.5\InsetSpace \thinspace{}
10012 cm, only one line will appear.
10013 To get two lines, we add a line break with the command
10016 \begin_layout Standard
10024 \begin_layout Standard
10026 If the text is wider than the set cell width it will automatically be broken
10030 \begin_layout Standard
10031 If you have a long word in a cell with a fixed width, it cannot be hyphenated
10032 by LaTeX if it is the first entry.
10033 Therefore you need to insert something, to make the word not being the
10034 first entry: Add the command
10037 \begin_layout Standard
10045 \begin_layout Standard
10046 in ERT before the word.
10047 As the space is zero, it doesn't change the output.
10050 \begin_inset LatexCommand ref
10051 reference "tab:Table-with-and"
10058 \begin_layout Standard
10059 \begin_inset Float table
10065 \begin_layout Standard
10066 \begin_inset Caption
10068 \begin_layout Standard
10069 \begin_inset LatexCommand label
10070 name "tab:Table-with-and"
10074 Table with and without hyphenation
10082 \begin_layout Standard
10086 \begin_inset Tabular
10087 <lyxtabular version="3" rows="3" columns="3">
10089 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10090 <column alignment="center" valignment="middle" leftline="true" width="0">
10091 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
10092 <row topline="true">
10093 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10096 \begin_layout Standard
10097 verylongtablecellword
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
10121 <row topline="true">
10122 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10125 \begin_layout Standard
10131 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10134 \begin_layout Standard
10140 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10143 \begin_layout Standard
10150 <row topline="true" bottomline="true">
10151 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10154 \begin_layout Standard
10160 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10163 \begin_layout Standard
10169 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10172 \begin_layout Standard
10186 \begin_inset Tabular
10187 <lyxtabular version="3" rows="3" columns="3">
10189 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10190 <column alignment="center" valignment="middle" leftline="true" width="0">
10191 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
10192 <row topline="true">
10193 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10196 \begin_layout Standard
10200 \begin_layout Standard
10209 verylongtablecellword
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
10233 <row topline="true">
10234 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10237 \begin_layout Standard
10243 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10246 \begin_layout Standard
10252 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10255 \begin_layout Standard
10262 <row topline="true" bottomline="true">
10263 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10266 \begin_layout Standard
10272 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10275 \begin_layout Standard
10281 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10284 \begin_layout Standard
10305 \begin_layout Standard
10311 \begin_layout Subsection
10313 \begin_inset LatexCommand label
10314 name "sub:Multicolumns"
10319 \begin_inset LatexCommand index
10320 name "Multicolumns"
10325 \begin_inset LatexCommand index
10326 name "Table ! Multicolumns"
10333 \begin_layout Subsubsection
10337 \begin_layout Standard
10338 To span a cell over multiple columns, mark as much cells within a line that
10339 should be one spanned cell and use either the table-toolbar button
10340 \begin_inset Graphics
10341 filename ../images/tabular-feature_multicolumn.xpm
10348 Edit\SpecialChar \menuseparator
10349 Table\SpecialChar \menuseparator
10352 , or right click on the marked cells and choose multicolumn in the appearing
10353 table dialog under the tab
10360 \begin_layout Standard
10361 Multicolumns have there own cell settings.
10362 That means changing cell borders, cell alignment, and the width only affects
10364 Here is an example table with a multicolumn cell in the first row and one
10365 in the last row without the upper border:
10368 \begin_layout Standard
10370 \begin_inset Tabular
10371 <lyxtabular version="3" rows="3" columns="4">
10372 <features firstHeadTopDL="true" firstHeadBottomDL="true">
10373 <column alignment="center" valignment="top" leftline="true" width="0pt">
10374 <column alignment="center" valignment="middle" leftline="true" width="0">
10375 <column alignment="center" valignment="top" leftline="true" width="0in">
10376 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
10377 <row topline="true" bottomline="true">
10378 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10381 \begin_layout Standard
10387 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
10390 \begin_layout Standard
10400 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10403 \begin_layout Standard
10409 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10412 \begin_layout Standard
10419 <row topline="true">
10420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10423 \begin_layout Standard
10438 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10441 \begin_layout Standard
10447 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10450 \begin_layout Standard
10456 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10459 \begin_layout Standard
10466 <row topline="true" bottomline="true">
10467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10470 \begin_layout Standard
10476 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10479 \begin_layout Standard
10485 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10488 \begin_layout Standard
10494 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10497 \begin_layout Standard
10511 \begin_layout Subsubsection
10512 Multicolumn Calculations
10513 \begin_inset LatexCommand label
10514 name "sub:Multicolumn-Calculations"
10519 \begin_inset LatexCommand index
10520 name "Multicolumns ! Calculations"
10527 \begin_layout Standard
10528 LyX supports multicolumns directly, but we have to take notice of the cell
10529 width of the columns spanned by the multicolumn cell.
10532 \begin_layout Standard
10533 \begin_inset Float table
10538 \begin_layout Standard
10539 \begin_inset Caption
10541 \begin_layout Standard
10542 \begin_inset LatexCommand label
10543 name "tab:Table-with-centered"
10547 Table with centered multicolumn text above two columns that have exactly
10548 half the width of the multicolumn cell
10549 \begin_inset OptArg
10552 \begin_layout Standard
10553 Perfect multicolumn table
10566 \begin_layout Standard
10568 \begin_inset Tabular
10569 <lyxtabular version="3" rows="3" columns="3">
10571 <column alignment="center" valignment="middle" leftline="true" width="0" special=">{\centering}m{1.25cm-6.2pt}">
10572 <column alignment="center" valignment="middle" leftline="true" width="0">
10573 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10574 <row topline="true">
10575 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
10578 \begin_layout Standard
10579 multiple lines multicolumn
10584 <cell multicolumn="2" 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
10603 <row topline="true">
10604 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10607 \begin_layout Standard
10613 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10616 \begin_layout Standard
10622 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10625 \begin_layout Standard
10632 <row topline="true" bottomline="true">
10633 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10636 \begin_layout Standard
10642 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10645 \begin_layout Standard
10651 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10654 \begin_layout Standard
10673 \begin_layout Standard
10674 To create for example Table\InsetSpace ~
10676 \begin_inset LatexCommand ref
10677 reference "tab:Table-with-centered"
10681 , mark the first two cells in the first row of a 3×3 table and right-click
10683 Now choose for this cell
10691 and a width of 2.5\InsetSpace \thinspace{}
10692 cm in the table dialog.
10693 The spanned columns should have exactly half the width of the multicolumn
10694 cell, so that you would adjust a width of 1.25\InsetSpace \thinspace{}
10695 cm for the first column.
10696 The second column has then automatically a width of 1.25\InsetSpace \thinspace{}
10698 width - width of first column).
10699 This was done for Table\InsetSpace ~
10701 \begin_inset LatexCommand ref
10702 reference "tab:Table-without-half"
10709 \begin_layout Standard
10710 \begin_inset Float table
10715 \begin_layout Standard
10716 \begin_inset Caption
10718 \begin_layout Standard
10719 \begin_inset LatexCommand label
10720 name "tab:Table-without-half"
10724 Table where the spanned table columns have not exactly half the width of
10725 the multicolumn cell
10726 \begin_inset OptArg
10729 \begin_layout Standard
10730 Imperfect multicolumn table
10743 \begin_layout Standard
10745 \begin_inset Tabular
10746 <lyxtabular version="3" rows="3" columns="3">
10748 <column alignment="center" valignment="top" leftline="true" width="1.25cm">
10749 <column alignment="center" valignment="top" leftline="true" width="0">
10750 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10751 <row topline="true" bottomline="true">
10752 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
10755 \begin_layout Standard
10756 multiple lines multicolumn
10761 <cell multicolumn="2" 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
10780 <row topline="true">
10781 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10784 \begin_layout Standard
10790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10793 \begin_layout Standard
10799 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10802 \begin_layout Standard
10809 <row topline="true" bottomline="true">
10810 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10813 \begin_layout Standard
10819 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10822 \begin_layout Standard
10828 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10831 \begin_layout Standard
10850 \begin_layout Standard
10851 You can see that the first column has not the half width of the multicolumn
10852 cell, it is a bit bigger.
10853 The reason is that the given width of a cell
10854 \begin_inset Formula $W_{g}$
10857 is not its total width
10858 \begin_inset Formula $W_{\mathrm{tot}}$
10861 because a cell is always a bit larger than its given width.
10862 Appendix\InsetSpace ~
10864 \begin_inset LatexCommand eqref
10865 reference "cha:Explanation-of-Equation"
10869 explains it in detail.
10872 \begin_layout Standard
10873 The needed given width
10874 \begin_inset Formula $W_{g\, n}$
10881 columns are spanned can be calculated, so that each column has a total
10883 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
10887 \begin_inset Formula \begin{equation}
10888 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)·(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
10895 \begin_layout Standard
10896 In our case we have
10897 \begin_inset Formula $n=2$
10901 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
10904 cm and the default values for the lengths, so that equation
10905 \begin_inset LatexCommand ref
10911 \begin_inset Formula \begin{equation}
10912 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
10919 \begin_layout Standard
10920 To enable calculations in LaTeX, the LaTeX-package
10924 must be loaded with the document preamble line
10925 \begin_inset LatexCommand index
10926 name "LaTeX-packages ! calc"
10933 \begin_layout Standard
10941 \begin_layout Standard
10942 LyX does not allow to calculate lengths in the width-field of the table
10944 Therefore you have to format the column by inserting a LaTeX-argument in
10946 Here is an overview about the arguments:
10949 \begin_layout Itemize
10954 creates cell with a fixed width, its text is vertically top-aligned
10957 \begin_layout Itemize
10962 creates cell with a fixed width, its text is vertically centered
10965 \begin_layout Itemize
10970 creates cell with a fixed width, its text is vertically bottom-aligned
10973 \begin_layout Standard
10974 By entering a LaTeX-argument, all cell properties set in the table dialog
10977 \begin_inset Note Greyedout
10980 \begin_layout Standard
10985 Due to a bug, LyX shows the overwritten properties anyway.
10990 As the text should be horizontally centered, the command
10997 You can now enter the following LaTeX-argument for the first spanned column:
11000 \begin_layout Standard
11005 centering}m{1.25cm-6.2pt}
11008 \begin_layout Standard
11013 means, that the commands inside the braces are applied before the cell
11017 \begin_layout Standard
11018 Although we have chosen centered alignment for the text of the multicolumn
11019 cell, it is still left aligned.
11020 This is because LyX only applies the alignment to single columns.
11021 So we have to use for the multicolumn the LaTeX-argument
11024 \begin_layout Standard
11032 \begin_layout Subsection
11034 \begin_inset LatexCommand index
11040 \begin_inset LatexCommand index
11041 name "Table ! Multirows"
11046 \begin_inset LatexCommand index
11047 name "LaTeX-packages ! multirow"
11054 \begin_layout Standard
11055 In contrary to multicolumns multirows are not yet supported by LyX so a
11056 bit of ERT needs to be used.
11057 To use multirows load the LaTeX-package
11061 in your document preamble with the command
11064 \begin_layout Standard
11069 usepackage{multirow}
11072 \begin_layout Standard
11073 Multirows are created with the command
11076 \begin_layout Standard
11081 multirow{number of rows}{cell width}{cell entry}
11084 \begin_layout Standard
11085 To create the following table:
11088 \begin_layout Standard
11093 \begin_layout Standard
11107 \begin_inset Tabular
11108 <lyxtabular version="3" rows="3" columns="3">
11110 <column alignment="center" valignment="top" leftline="true" width="0">
11111 <column alignment="center" valignment="top" leftline="true" width="0">
11112 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
11113 <row topline="true">
11114 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11117 \begin_layout Standard
11123 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11126 \begin_layout Standard
11132 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11135 \begin_layout Standard
11142 <row topline="true">
11143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11146 \begin_layout Standard
11150 \begin_layout Standard
11154 multirow{2}{2.5cm}{
11163 \begin_layout Standard
11175 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11178 \begin_layout Standard
11184 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11187 \begin_layout Standard
11194 <row topline="true" bottomline="true">
11195 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11198 \begin_layout Standard
11204 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11207 \begin_layout Standard
11213 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11216 \begin_layout Standard
11231 \begin_layout Standard
11247 \begin_layout Standard
11248 create a 3×3 table.
11249 To get rid of the line above the last cell in the first column, the cell
11250 is marked as multicolumn and the upper border is unset.
11251 The multirow is now created in the second row of the first column by inserting
11255 \begin_layout Standard
11260 multirow{2}{2.5cm}{
11263 \begin_layout Standard
11265 According to the command parameters the multirow spans now two rows and
11266 has a width of 2.5\InsetSpace \thinspace{}
11268 The content of the multirow cell follows outside the ERT box and the command
11269 is finished with a right brace
11273 in another ERT-box behind the text.
11276 \begin_layout Standard
11283 left-aligns its content by default.
11284 To override the default, renew the command
11293 \begin_layout Standard
11305 \begin_layout Standard
11306 in ERT in the document preamble.
11307 Then all entries of multirow cells in the document are centered.
11308 If centering is only needed for several tables, you can renew the command
11309 in an ERT box just before the table instead of the preamble.
11310 If the text should be right-aligned, replace
11323 To return to left-alignment
11332 \begin_layout Section
11334 \begin_inset LatexCommand label
11335 name "sec:Formal-Tables"
11340 \begin_inset LatexCommand index
11341 name "Table ! Formal"
11348 \begin_layout Standard
11349 Tables are often typeset in books similar to Table\InsetSpace ~
11351 \begin_inset LatexCommand ref
11352 reference "tab:Example-booktabs-table"
11357 This kind of tables is called
11358 \begin_inset Quotes eld
11366 \begin_inset Quotes erd
11370 To make a table a formal table use the option
11378 tab of the table dialog.
11381 \begin_layout Standard
11382 \begin_inset Float table
11388 \begin_layout Standard
11389 \begin_inset Caption
11391 \begin_layout Standard
11392 \begin_inset LatexCommand label
11393 name "tab:Example-booktabs-table"
11397 Example booktabs-table
11405 \begin_layout Standard
11407 \begin_inset Tabular
11408 <lyxtabular version="3" rows="8" columns="4">
11409 <features booktabs="true">
11410 <column alignment="center" valignment="top" rightline="true" width="0">
11411 <column alignment="center" valignment="top" width="0">
11412 <column alignment="center" valignment="top" width="0">
11413 <column alignment="center" valignment="top" width="0">
11414 <row topline="true">
11415 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11418 \begin_layout Standard
11424 <cell alignment="center" valignment="top" topline="true" usebox="none">
11427 \begin_layout Standard
11429 \begin_inset Formula $\,$
11437 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
11440 \begin_layout Standard
11442 \begin_inset Formula $\,$
11450 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11453 \begin_layout Standard
11461 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11464 \begin_layout Standard
11468 \begin_layout Standard
11481 \begin_layout Standard
11490 Detector thickness [µm]
11495 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11498 \begin_layout Standard
11504 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11507 \begin_layout Standard
11513 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11516 \begin_layout Standard
11523 <row topline="true">
11524 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11527 \begin_layout Standard
11533 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11536 \begin_layout Standard
11542 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11545 \begin_layout Standard
11551 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11554 \begin_layout Standard
11561 <row topspace="default">
11562 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11565 \begin_layout Standard
11566 Spatial resolution [µm]
11571 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11574 \begin_layout Standard
11580 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11583 \begin_layout Standard
11589 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11592 \begin_layout Standard
11599 <row topspace="default">
11600 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11603 \begin_layout Standard
11605 \begin_inset Formula $f_{\mathrm{max}}$
11613 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11616 \begin_layout Standard
11622 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11625 \begin_layout Standard
11631 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11634 \begin_layout Standard
11641 <row topspace="default">
11642 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11645 \begin_layout Standard
11649 \begin_layout Standard
11653 cmidrule(l{10pt}){1-1}
11658 LSF-spatial resolution
11663 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11666 \begin_layout Standard
11672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11675 \begin_layout Standard
11681 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11684 \begin_layout Standard
11692 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11695 \begin_layout Standard
11701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11704 \begin_layout Standard
11710 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11713 \begin_layout Standard
11719 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11722 \begin_layout Standard
11729 <row bottomline="true">
11730 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11733 \begin_layout Standard
11739 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11742 \begin_layout Standard
11748 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11751 \begin_layout Standard
11757 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11760 \begin_layout Standard
11779 \begin_layout Standard
11780 Spaces to table rows can be added using the
11784 tab of the table dialog as described in section\InsetSpace ~
11786 \begin_inset LatexCommand ref
11787 reference "sub:Row-Spacing"
11794 \begin_layout Standard
11795 In contrary to normal tables, formal tables have no vertical table lines.
11796 The horizontal table lines can be set like for normal tables but they appear
11797 with different width in the output:
11799 The first and the last table line have
11800 a default width of 0.08\InsetSpace \thinspace{}
11801 em while the other lines have a default width of
11802 0.05\InsetSpace \thinspace{}
11806 \begin_layout Standard
11807 The default widths can be changed with the following preamble lines
11810 \begin_layout Standard
11830 \begin_layout Standard
11831 This example is for the first line, the so called toprule.
11832 If you want to change the width for the last line, replace
11841 To change the width for the other lines replace
11850 You can use all units listed in appendix\InsetSpace ~
11852 \begin_inset LatexCommand ref
11853 reference "cha:Units-available-in"
11860 \begin_layout Standard
11861 Lines that don't span over all table columns can be created by setting a
11862 table line for multicolumn cells.
11863 LyX will then internally use the command
11869 to create this line.
11873 \begin_layout Standard
11878 cmidrule[width](trim){startcol-endcol}
11881 \begin_layout Standard
11888 are are currently not supported by LyX so you have to use ERT to be able
11896 s can manually be created by inserting the command as ERT as first cell
11897 entry of the first cell of a row.
11898 The line is then drawn in the output above the current row.
11901 \begin_layout Standard
11902 The default for the width is 0.03\InsetSpace \thinspace{}
11904 Startcol is the number of the column where the line starts and endcol the
11905 column number where the line ends.
11906 The endcol always needs to be specified, also when the line should span
11908 The optional parameter trim could be either
11916 where the trimwidth is also optional.
11917 Using for example the parameter
11921 means that the line is trimmed from its left end by 2\InsetSpace \thinspace{}
11923 If you don't specify the trimwidth the lines are trimmed by the default
11924 of 0.5\InsetSpace \thinspace{}
11928 \begin_layout Standard
11929 \begin_inset VSpace bigskip
11934 \begin_inset LatexCommand ref
11935 reference "tab:Example-booktabs-table"
11939 was created using the commands
11942 \begin_layout Standard
11952 \begin_layout Standard
11953 at the beginning of the in the second row and
11956 \begin_layout Standard
11961 cmidrule(l{10pt}){1-1}
11964 \begin_layout Standard
11968 \begin_layout Standard
11972 \begin_layout Standard
11973 \begin_inset VSpace bigskip
11979 \begin_layout Standard
11980 You might want to have overlapping
11986 s like in Table\InsetSpace ~
11988 \begin_inset LatexCommand ref
11989 reference "tab:Special-booktabs-table"
11994 This can be achieved with the ERT command
11997 \begin_layout Standard
12005 \begin_layout Standard
12006 The command that was used for the second row of Table\InsetSpace ~
12008 \begin_inset LatexCommand ref
12009 reference "tab:Special-booktabs-table"
12016 \begin_layout Standard
12030 \begin_layout Standard
12031 The command for the sixth row is
12034 \begin_layout Standard
12046 \begin_layout Standard
12047 \begin_inset VSpace bigskip
12053 \begin_layout Standard
12054 If you are anyway not satisfied with the border line spacing, you can use
12055 the following command to produce lines that span over all table columns
12060 \begin_layout Standard
12065 specialrule{width}{space above}{space below}
12068 \begin_layout Standard
12069 For more informations about these specialties, we refer to the manual of
12075 \begin_inset LatexCommand cite
12081 \begin_inset LatexCommand index
12082 name "LaTeX-packages ! booktabs"
12089 \begin_layout Standard
12090 \begin_inset Float table
12096 \begin_layout Standard
12097 \begin_inset Caption
12099 \begin_layout Standard
12100 \begin_inset LatexCommand label
12101 name "tab:Special-booktabs-table"
12105 Special booktabs-table
12113 \begin_layout Standard
12115 \begin_inset Tabular
12116 <lyxtabular version="3" rows="8" columns="4">
12117 <features booktabs="true">
12118 <column alignment="center" valignment="top" width="0">
12119 <column alignment="center" valignment="top" width="0">
12120 <column alignment="center" valignment="top" width="0">
12121 <column alignment="center" valignment="top" width="0">
12122 <row topline="true">
12123 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12126 \begin_layout Standard
12132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12135 \begin_layout Standard
12136 Medipix\InsetSpace \thinspace{}
12142 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
12145 \begin_layout Standard
12146 Medipix\InsetSpace \thinspace{}
12152 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12155 \begin_layout Standard
12163 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12166 \begin_layout Standard
12170 \begin_layout Standard
12183 \begin_layout Standard
12196 \begin_layout Standard
12209 \begin_layout Standard
12218 Detector thickness [µm]
12223 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12226 \begin_layout Standard
12232 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12235 \begin_layout Standard
12241 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12244 \begin_layout Standard
12251 <row topline="true">
12252 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12255 \begin_layout Standard
12261 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12264 \begin_layout Standard
12270 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12273 \begin_layout Standard
12279 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12282 \begin_layout Standard
12289 <row topspace="default">
12290 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12293 \begin_layout Standard
12294 Spatial resolution [µm]
12299 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12302 \begin_layout Standard
12308 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12311 \begin_layout Standard
12317 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12320 \begin_layout Standard
12327 <row topspace="default">
12328 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12331 \begin_layout Standard
12333 \begin_inset Formula $f_{\mathrm{max}}$
12341 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12344 \begin_layout Standard
12350 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12353 \begin_layout Standard
12359 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12362 \begin_layout Standard
12369 <row topline="true">
12370 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12373 \begin_layout Standard
12377 \begin_layout Standard
12390 \begin_layout Standard
12399 LSF-spatial resolution
12404 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12407 \begin_layout Standard
12413 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12416 \begin_layout Standard
12422 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12425 \begin_layout Standard
12433 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12436 \begin_layout Standard
12442 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12445 \begin_layout Standard
12451 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12454 \begin_layout Standard
12460 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12463 \begin_layout Standard
12470 <row bottomline="true">
12471 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12474 \begin_layout Standard
12480 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12483 \begin_layout Standard
12489 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12492 \begin_layout Standard
12498 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12501 \begin_layout Standard
12520 \begin_layout Section
12521 Vertical Table Alignment
12522 \begin_inset LatexCommand index
12523 name "Table ! Alignment"
12530 \begin_layout Standard
12531 To align tables vertically in a text line the table must be inside a box.
12532 The box can then be vertically aligned as described in section\InsetSpace ~
12534 \begin_inset LatexCommand ref
12535 reference "sec:Box-Dialog"
12542 \begin_layout Standard
12543 In the following example the tables are inside a minipage
12547 \begin_layout Standard
12548 Minipages are described in section\InsetSpace ~
12550 \begin_inset LatexCommand ref
12551 reference "sec:Minipages"
12560 box that has a width of 15\InsetSpace \thinspace{}
12564 \begin_layout Itemize
12566 \begin_inset Box Frameless
12575 height_special "totalheight"
12578 \begin_layout Standard
12579 \begin_inset Tabular
12580 <lyxtabular version="3" rows="3" columns="3">
12582 <column alignment="center" valignment="top" leftline="true" width="0">
12583 <column alignment="center" valignment="top" leftline="true" width="0">
12584 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12585 <row topline="true">
12586 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12589 \begin_layout Standard
12595 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12598 \begin_layout Standard
12604 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12607 \begin_layout Standard
12614 <row topline="true">
12615 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12618 \begin_layout Standard
12624 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12627 \begin_layout Standard
12633 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12636 \begin_layout Standard
12643 <row topline="true" bottomline="true">
12644 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12647 \begin_layout Standard
12653 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12656 \begin_layout Standard
12662 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12665 \begin_layout Standard
12685 \begin_layout Standard
12697 \begin_inset Box Frameless
12706 height_special "totalheight"
12709 \begin_layout Standard
12710 \begin_inset Tabular
12711 <lyxtabular version="3" rows="3" columns="3">
12713 <column alignment="center" valignment="top" leftline="true" width="0">
12714 <column alignment="center" valignment="top" leftline="true" width="0">
12715 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12716 <row topline="true">
12717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12720 \begin_layout Standard
12726 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12729 \begin_layout Standard
12735 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12738 \begin_layout Standard
12745 <row topline="true">
12746 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12749 \begin_layout Standard
12755 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12758 \begin_layout Standard
12764 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12767 \begin_layout Standard
12774 <row topline="true" bottomline="true">
12775 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12778 \begin_layout Standard
12784 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12787 \begin_layout Standard
12793 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12796 \begin_layout Standard
12816 \begin_layout Standard
12826 \begin_layout Itemize
12828 \begin_inset Box Frameless
12837 height_special "totalheight"
12840 \begin_layout Standard
12841 \begin_inset Tabular
12842 <lyxtabular version="3" rows="3" columns="3">
12844 <column alignment="center" valignment="top" leftline="true" width="0">
12845 <column alignment="center" valignment="top" leftline="true" width="0">
12846 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12847 <row topline="true">
12848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12851 \begin_layout Standard
12857 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12860 \begin_layout Standard
12866 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12869 \begin_layout Standard
12876 <row topline="true">
12877 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12880 \begin_layout Standard
12886 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12889 \begin_layout Standard
12895 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12898 \begin_layout Standard
12905 <row topline="true" bottomline="true">
12906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12909 \begin_layout Standard
12915 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12918 \begin_layout Standard
12924 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12927 \begin_layout Standard
12946 \begin_layout Itemize
12948 \begin_inset Box Frameless
12957 height_special "totalheight"
12960 \begin_layout Standard
12961 \begin_inset Tabular
12962 <lyxtabular version="3" rows="3" columns="3">
12964 <column alignment="center" valignment="top" leftline="true" width="0">
12965 <column alignment="center" valignment="top" leftline="true" width="0">
12966 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12967 <row topline="true">
12968 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12971 \begin_layout Standard
12977 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12980 \begin_layout Standard
12986 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12989 \begin_layout Standard
12996 <row topline="true">
12997 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13000 \begin_layout Standard
13006 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13009 \begin_layout Standard
13015 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13018 \begin_layout Standard
13025 <row topline="true" bottomline="true">
13026 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13029 \begin_layout Standard
13035 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13038 \begin_layout Standard
13044 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13047 \begin_layout Standard
13067 \begin_layout Standard
13079 \begin_inset Box Frameless
13088 height_special "totalheight"
13091 \begin_layout Standard
13092 \begin_inset Tabular
13093 <lyxtabular version="3" rows="3" columns="3">
13095 <column alignment="center" valignment="top" leftline="true" width="0">
13096 <column alignment="center" valignment="top" leftline="true" width="0">
13097 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13098 <row topline="true">
13099 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13102 \begin_layout Standard
13108 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13111 \begin_layout Standard
13117 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13120 \begin_layout Standard
13127 <row topline="true">
13128 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13131 \begin_layout Standard
13137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13140 \begin_layout Standard
13146 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13149 \begin_layout Standard
13156 <row topline="true" bottomline="true">
13157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13160 \begin_layout Standard
13166 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13169 \begin_layout Standard
13175 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13178 \begin_layout Standard
13198 \begin_layout Standard
13208 \begin_layout Standard
13209 As you can see, the content of the first and last table row is not correctly
13210 aligned with the text line where the table is in.
13211 To get this alignment, the minipage box must be set into a raisebox
13215 \begin_layout Standard
13216 Raiseboxes are described in section\InsetSpace ~
13218 \begin_inset LatexCommand ref
13219 reference "sub:Vertical-Alignment"
13229 In the example above the second table in the first item is aligned using
13233 \begin_layout Standard
13243 \begin_layout Standard
13245 Behind the box the closing brace
13249 is inserted as ERT.
13250 For the second table in the last item the command
13253 \begin_layout Standard
13263 \begin_layout Standard
13267 \begin_layout Standard
13268 \begin_inset Note Greyedout
13271 \begin_layout Standard
13276 The alignment of the table row content to the surrounding text line is
13278 The needed factor of the
13284 command for this alignment depends on the document font, the font size,
13285 and the table line thickness.
13293 \begin_layout Section
13295 \begin_inset LatexCommand label
13296 name "sec:Colored-Tables"
13301 \begin_inset LatexCommand index
13302 name "Table ! Color"
13309 \begin_layout Subsection
13311 \begin_inset LatexCommand index
13312 name "Table Color ! for Cells"
13317 \begin_inset LatexCommand index
13318 name "Color ! for Table Cells"
13325 \begin_layout Standard
13326 \begin_inset Float table
13332 \begin_layout Standard
13333 \begin_inset Caption
13335 \begin_layout Standard
13336 \begin_inset LatexCommand label
13337 name "tab:Table-colored-without"
13341 Table colored without using the package
13346 \begin_inset OptArg
13349 \begin_layout Standard
13350 Table without colortbl
13363 \begin_layout Standard
13365 \begin_inset Tabular
13366 <lyxtabular version="3" rows="3" columns="3">
13368 <column alignment="center" valignment="top" leftline="true" width="0">
13369 <column alignment="center" valignment="top" leftline="true" width="0">
13370 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13371 <row topline="true">
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" usebox="none">
13386 \begin_layout Standard
13394 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13397 \begin_layout Standard
13406 <row topline="true">
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" usebox="none">
13421 \begin_layout Standard
13429 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13432 \begin_layout Standard
13441 <row topline="true" bottomline="true">
13442 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13445 \begin_layout Standard
13453 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13456 \begin_layout Standard
13464 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13467 \begin_layout Standard
13488 \begin_layout Standard
13489 If you only need colored text, mark the cells and choose a color in the
13492 Edit\SpecialChar \menuseparator
13497 This was used to create Table\InsetSpace ~
13499 \begin_inset LatexCommand ref
13500 reference "tab:Table-colored-without"
13505 In any other case you have to use the LaTeX-package
13510 \begin_inset LatexCommand index
13511 name "LaTeX-packages ! colortbl"
13518 \begin_layout Standard
13519 To create colored tables,
13523 must be loaded in the preamble with the line
13526 \begin_layout Standard
13531 usepackage{colortbl}
13534 \begin_layout Standard
13535 The color of a column is adjusted with the command
13538 \begin_layout Standard
13543 columncolor{name of color}
13546 \begin_layout Standard
13552 More about the command
13556 is described in section\InsetSpace ~
13558 \begin_inset LatexCommand ref
13559 reference "sub:Multicolumn-Calculations"
13566 \begin_layout Standard
13567 The following color names are predefined:
13570 \begin_layout Standard
13604 \begin_layout Standard
13605 \begin_inset VSpace medskip
13611 \begin_layout Standard
13612 You can also define your own color with the command
13615 \begin_layout Standard
13620 def\SpecialChar \textcompwordmark{}
13621 inecolor{color name}{color model}{color values}
13624 \begin_layout Standard
13625 The color model can be
13628 \begin_layout Labeling
13629 \labelwidthstring 00.00.0000
13630 cmyk: cyan, magenta, yellow, black
13633 \begin_layout Labeling
13634 \labelwidthstring 00.00.0000
13635 rgb: red, green blue
13638 \begin_layout Labeling
13639 \labelwidthstring 00.00.0000
13643 \begin_layout Standard
13644 and the color values are comma separated numbers between 0 and 1 describing
13645 the factor for the corresponding color of the color model.
13648 \begin_layout Standard
13649 You can e.\InsetSpace \thinspace{}
13655 " in the preamble with
13658 \begin_layout Standard
13663 def\SpecialChar \textcompwordmark{}
13664 inecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
13667 \begin_layout Standard
13675 \begin_layout Standard
13680 def\SpecialChar \textcompwordmark{}
13681 inecolor{lightgray}{gray}{0.8}
13684 \begin_layout Standard
13685 \begin_inset VSpace medskip
13691 \begin_layout Standard
13692 Lines are colored with the command
13695 \begin_layout Standard
13700 rowcolor{name of color}
13703 \begin_layout Standard
13704 and cells are colored with the command
13707 \begin_layout Standard
13712 cellcolor{name of color}
13715 \begin_layout Standard
13716 Both commands are inserted at the beginning of a cell as ERT.
13719 \begin_layout Standard
13720 To color characters in the table, mark the cells and use the LyX menu
13722 Edit\SpecialChar \menuseparator
13727 If a cell contains ERT mark only the characters, otherwise the colored
13728 ERT will cause LaTeX-errors.
13731 \begin_layout Standard
13732 \begin_inset VSpace bigskip
13738 \begin_layout Standard
13739 To create Table\InsetSpace ~
13741 \begin_inset LatexCommand ref
13742 reference "tab:Table-colored-using"
13746 do the following: The color of the first column should be
13754 \begin_layout Standard
13759 columncolor{darkgreen}
13764 \begin_layout Standard
13765 as LaTeX-argument for this column.
13766 The first row should be blue, therefore the ERT command
13769 \begin_layout Standard
13777 \begin_layout Standard
13778 is inserted to the first cell of this row.
13779 Note that this overwrites the column color for the first cell.
13780 The last cell of the last row is colored magenta by inserting the ERT command
13783 \begin_layout Standard
13791 \begin_layout Standard
13792 The characters could now be colored using the menu
13794 Edit\SpecialChar \menuseparator
13801 \begin_layout Standard
13802 \begin_inset Float table
13808 \begin_layout Standard
13809 \begin_inset Caption
13811 \begin_layout Standard
13812 \begin_inset LatexCommand label
13813 name "tab:Table-colored-using"
13817 Table colored using the package
13822 \begin_inset OptArg
13825 \begin_layout Standard
13826 Table with colortbl
13839 \begin_layout Standard
13841 \begin_inset Tabular
13842 <lyxtabular version="3" rows="3" columns="3">
13844 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
13845 <column alignment="center" valignment="top" width="0">
13846 <column alignment="center" valignment="top" width="0">
13848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13851 \begin_layout Standard
13855 \begin_layout Standard
13871 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13874 \begin_layout Standard
13882 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13885 \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" usebox="none">
13909 \begin_layout Standard
13917 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13920 \begin_layout Standard
13930 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13933 \begin_layout Standard
13941 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13944 \begin_layout Standard
13952 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13955 \begin_layout Standard
13959 \begin_layout Standard
13988 \begin_layout Subsection
13990 \begin_inset LatexCommand index
13991 name "Table Color ! for Lines"
13996 \begin_inset LatexCommand index
13997 name "Color ! for Table Lines"
14004 \begin_layout Standard
14005 As described in section\InsetSpace ~
14007 \begin_inset LatexCommand ref
14008 reference "sub:Line-Thickness"
14012 , the line thickness for all lines in a table can be adjusted with the length
14020 It is set to 1.5\InsetSpace \thinspace{}
14021 pt for all tables of this section.
14025 \begin_layout Standard
14031 arrayrulewidth}{1.5pt}
14039 \begin_layout Standard
14040 To color vertical lines for example with green, create the following column
14041 format in the document preamble, according to the description in section\InsetSpace ~
14043 \begin_inset LatexCommand ref
14044 reference "sub:Customized-Format"
14051 \begin_layout Standard
14056 newcolumntype{W}{!{
14063 \begin_layout Standard
14064 For Table\InsetSpace ~
14066 \begin_inset LatexCommand ref
14067 reference "tab:Table-with-vertical-colored"
14074 \begin_layout Standard
14080 \begin_layout Standard
14081 was used for the last column and
14084 \begin_layout Standard
14090 \begin_layout Standard
14091 for the other columns.
14094 \begin_layout Standard
14095 If you want to have several colors, define more column formats.
14098 \begin_layout Standard
14099 \begin_inset Float table
14104 \begin_layout Standard
14105 \begin_inset Caption
14107 \begin_layout Standard
14108 \begin_inset LatexCommand label
14109 name "tab:Table-with-vertical-colored"
14113 Table with colored vertical lines
14121 \begin_layout Standard
14123 \begin_inset Tabular
14124 <lyxtabular version="3" rows="3" columns="3">
14126 <column alignment="center" valignment="top" width="0" special="Wc">
14127 <column alignment="center" valignment="top" width="0" special="Wc">
14128 <column alignment="center" valignment="top" width="0" special="WcW">
14129 <row topline="true">
14130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14133 \begin_layout Standard
14139 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14142 \begin_layout Standard
14148 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14151 \begin_layout Standard
14158 <row topline="true">
14159 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14162 \begin_layout Standard
14168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14171 \begin_layout Standard
14177 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14180 \begin_layout Standard
14187 <row topline="true" bottomline="true">
14188 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14191 \begin_layout Standard
14197 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14200 \begin_layout Standard
14206 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14209 \begin_layout Standard
14228 \begin_layout Standard
14229 \begin_inset VSpace bigskip
14232 To color horizontal lines for example with red, like in Table\InsetSpace ~
14234 \begin_inset LatexCommand ref
14235 reference "tab:Table-with-horizontal-colored"
14239 , insert these commands in ERT before the table or table float:
14242 \begin_layout Standard
14259 arrayrulecolor{red}
14263 arrayrulecolor{black}}
14266 \begin_layout Standard
14270 \begin_layout Standard
14281 \begin_layout Standard
14289 arrayrulecolor{red}
14293 arrayrulecolor{black}}
14299 \begin_inset Float table
14304 \begin_layout Standard
14305 \begin_inset Caption
14307 \begin_layout Standard
14308 \begin_inset LatexCommand label
14309 name "tab:Table-with-horizontal-colored"
14313 Table with colored horizontal lines
14321 \begin_layout Standard
14323 \begin_inset Tabular
14324 <lyxtabular version="3" rows="3" columns="3">
14326 <column alignment="center" valignment="top" leftline="true" width="0">
14327 <column alignment="center" valignment="top" leftline="true" width="0">
14328 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14329 <row topline="true">
14330 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14333 \begin_layout Standard
14339 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14342 \begin_layout Standard
14348 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14351 \begin_layout Standard
14358 <row topline="true">
14359 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14362 \begin_layout Standard
14368 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14371 \begin_layout Standard
14377 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14380 \begin_layout Standard
14387 <row topline="true" bottomline="true">
14388 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14391 \begin_layout Standard
14397 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14400 \begin_layout Standard
14406 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14409 \begin_layout Standard
14428 \begin_layout Standard
14432 \begin_layout Standard
14444 \begin_layout Standard
14445 To return to the default line color black, insert this command in ERT behind
14446 the table or table float:
14449 \begin_layout Standard
14461 \begin_layout Standard
14464 \begin_inset LatexCommand ref
14465 reference "tab:Table-with-colored"
14469 is an example with colored vertical and horizontal lines.
14472 \begin_layout Standard
14473 \begin_inset Float table
14478 \begin_layout Standard
14479 \begin_inset Caption
14481 \begin_layout Standard
14482 \begin_inset LatexCommand label
14483 name "tab:Table-with-colored"
14487 Table with colored lines
14495 \begin_layout Standard
14497 \begin_inset Tabular
14498 <lyxtabular version="3" rows="3" columns="3">
14500 <column alignment="center" valignment="top" width="0" special="Wc">
14501 <column alignment="center" valignment="top" width="0" special="Wc">
14502 <column alignment="center" valignment="top" width="0" special="WcW">
14503 <row topline="true">
14504 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14507 \begin_layout Standard
14513 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14516 \begin_layout Standard
14522 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14525 \begin_layout Standard
14532 <row topline="true">
14533 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14536 \begin_layout Standard
14542 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14545 \begin_layout Standard
14551 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14554 \begin_layout Standard
14561 <row topline="true" bottomline="true" topspace="default">
14562 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14565 \begin_layout Standard
14571 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14574 \begin_layout Standard
14580 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14583 \begin_layout Standard
14602 \begin_layout Standard
14606 \begin_layout Standard
14622 \begin_layout Standard
14626 \begin_layout Standard
14632 arrayrulewidth}{0.4pt}
14640 \begin_layout Section
14641 Table Customization
14642 \begin_inset LatexCommand index
14643 name "Table Customization"
14648 \begin_inset LatexCommand index
14649 name "Table ! Customization"
14656 \begin_layout Subsection
14658 \begin_inset LatexCommand label
14659 name "sub:Row-Spacing"
14664 \begin_inset LatexCommand index
14665 name "Table Customization ! Row Spacing"
14672 \begin_layout Standard
14673 You can add vertical space to table rows in the
14677 tab of the table dialog.
14678 You find there three possibilities:
14681 \begin_layout Description
14684 row will add space above the characters of the table row.
14685 If the table is a formal table
14689 \begin_layout Standard
14690 Formal tables are explained in section\InsetSpace ~
14692 \begin_inset LatexCommand ref
14693 reference "sec:Formal-Tables"
14702 LyX will insert as default 0.5\InsetSpace \thinspace{}
14704 For normal tables the inserted space will unfortunately destroy the vertical
14705 table lines as in the following table:
14706 \begin_inset VSpace defskip
14715 \begin_layout Standard
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" topspace="3mm">
14743 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14746 \begin_layout Standard
14747 3\InsetSpace \thinspace{}
14748 mm space top of row
14754 <row topline="true" bottomline="true">
14755 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14758 \begin_layout Standard
14775 \begin_layout Standard
14785 \begin_inset VSpace defskip
14790 So inserting space to the top of row for normal tables is only useful when
14791 you don't have vertical lines.
14794 \begin_layout Description
14795 Bottom\InsetSpace ~
14797 row will add space below the characters of the table row.
14798 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
14800 normal tables the default size is 2\InsetSpace \thinspace{}
14804 \begin_layout Description
14805 Between\InsetSpace ~
14806 rows adds space between the current and the following row.
14807 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
14809 For normal tables the inserted space will unfortunately destroy the vertical
14810 table lines as in the following table:
14811 \begin_inset VSpace defskip
14820 \begin_layout Standard
14832 \begin_inset Tabular
14833 <lyxtabular version="3" rows="3" columns="1">
14835 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14836 <row topline="true">
14837 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14840 \begin_layout Standard
14847 <row topline="true" interlinespace="3mm">
14848 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14851 \begin_layout Standard
14852 \begin_inset Formula $\downarrow$
14855 3\InsetSpace \thinspace{}
14856 mm space between row
14857 \begin_inset Formula $\downarrow$
14866 <row topline="true" bottomline="true">
14867 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14870 \begin_layout Standard
14871 \begin_inset Formula $\uparrow$
14874 3\InsetSpace \thinspace{}
14875 mm space between row
14876 \begin_inset Formula $\uparrow$
14895 \begin_layout Standard
14905 \begin_inset VSpace defskip
14910 So inserting space between rows for normal tables is only useful when you
14911 don't have vertical lines.
14914 \begin_layout Standard
14915 When you want to add extra height to all cells of all tables, you can do
14916 this with the following preamble line:
14919 \begin_layout Standard
14926 extrarowheight}{height}
14929 \begin_layout Standard
14930 But this has the disadvantage that the cell texts are no longer exactly
14931 vertically centered.
14934 \begin_layout Subsection
14935 Special Cell Alignment
14936 \begin_inset LatexCommand index
14937 name "Table Customization ! Special Cell Alignment"
14944 \begin_layout Standard
14945 Sometimes it looks better when the cell entries of a column are aligned
14946 with a special character, e.\InsetSpace \thinspace{}
14948 with the decimal separator as in Table\InsetSpace ~
14950 \begin_inset LatexCommand ref
14951 reference "tab:Table-cells-of"
14958 \begin_layout Standard
14959 \begin_inset Float table
14965 \begin_layout Standard
14966 \begin_inset Caption
14968 \begin_layout Standard
14969 \begin_inset LatexCommand label
14970 name "tab:Table-cells-of"
14974 Table cells of a column aligned with the decimal separator.
14982 \begin_layout Standard
14984 \begin_inset Tabular
14985 <lyxtabular version="3" rows="4" columns="2">
14987 <column alignment="right" valignment="top" width="0">
14988 <column alignment="left" valignment="top" width="0" special="@{}l">
14989 <row bottomline="true">
14990 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
14993 \begin_layout Standard
14999 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15002 \begin_layout Standard
15010 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15013 \begin_layout Standard
15019 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15022 \begin_layout Standard
15030 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15033 \begin_layout Standard
15039 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15042 \begin_layout Standard
15050 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15053 \begin_layout Standard
15059 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15062 \begin_layout Standard
15081 \begin_layout Standard
15082 This table was created with a 4×2 table.
15083 The heading is a centered multicolumn.
15084 The first column is right-aligned and contains the digits before the decimal
15085 point and the decimal point.
15086 The second column is left aligned and contains the digits after the decimal
15088 To omit the space that is normally between two table columns, use the following
15089 LaTeX-argument for the second column:
15092 \begin_layout Standard
15098 \begin_layout Standard
15101 \begin_inset LatexCommand ref
15102 reference "tab:Several-table-cell"
15106 shows some example alignments.
15107 For the alignment with the relation sign, you must add the second smallest
15108 math-space at the beginning of the last column to get the correct space
15109 surrounding the relation sign.
15112 \begin_layout Standard
15113 \begin_inset Float table
15118 \begin_layout Standard
15119 \begin_inset Caption
15121 \begin_layout Standard
15122 \begin_inset LatexCommand label
15123 name "tab:Several-table-cell"
15127 Several table cell alignments.
15135 \begin_layout Standard
15137 \begin_inset Tabular
15138 <lyxtabular version="3" rows="4" columns="6">
15140 <column alignment="right" valignment="top" width="0">
15141 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15142 <column alignment="right" valignment="top" width="0">
15143 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15144 <column alignment="right" valignment="top" width="0">
15145 <column alignment="left" valignment="top" width="0" special="@{}l">
15146 <row bottomline="true">
15147 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15150 \begin_layout Standard
15156 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15159 \begin_layout Standard
15165 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15168 \begin_layout Standard
15174 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15177 \begin_layout Standard
15183 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15186 \begin_layout Standard
15192 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15195 \begin_layout Standard
15203 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15206 \begin_layout Standard
15212 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15215 \begin_layout Standard
15216 24\InsetSpace \thinspace{}
15222 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15225 \begin_layout Standard
15226 \begin_inset Formula $10\cdot$
15234 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15237 \begin_layout Standard
15238 \begin_inset Formula $10^{\mbox{-}17}$
15246 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15249 \begin_layout Standard
15250 \begin_inset Formula $\Gamma(t)\propto$
15258 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15261 \begin_layout Standard
15262 \begin_inset Formula $\:\Upsilon(t)$
15272 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15275 \begin_layout Standard
15281 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15284 \begin_layout Standard
15285 768\InsetSpace \thinspace{}
15291 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15294 \begin_layout Standard
15295 \begin_inset Formula $5.78\cdot$
15303 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15306 \begin_layout Standard
15307 \begin_inset Formula $10^{7}$
15315 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15318 \begin_layout Standard
15319 \begin_inset Formula $A\ne$
15327 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15330 \begin_layout Standard
15331 \begin_inset Formula $\: B_{\mathrm{red}}$
15341 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15344 \begin_layout Standard
15350 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15353 \begin_layout Standard
15354 6\InsetSpace \thinspace{}
15360 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15363 \begin_layout Standard
15365 \begin_inset Formula $33.5\cdot$
15373 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15376 \begin_layout Standard
15377 \begin_inset Formula $10^{4}$
15385 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15388 \begin_layout Standard
15389 \begin_inset Formula $\sin(\alpha)\ge$
15397 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15400 \begin_layout Standard
15401 \begin_inset Formula $\:\sin(\beta)$
15422 \begin_layout Standard
15423 \begin_inset VSpace bigskip
15426 There is also the LaTeX-package
15431 \begin_inset LatexCommand index
15432 name "LaTeX-packages ! dcolumn"
15436 that provides table cell alignments.
15437 But this unfortunately treats the cell entries as math and doesn't allow
15438 formulas in table cells: The first column of Table\InsetSpace ~
15440 \begin_inset LatexCommand ref
15441 reference "tab:Several-table-cell"
15449 like the first column in Table\InsetSpace ~
15451 \begin_inset LatexCommand ref
15452 reference "tab:Alignments-when"
15456 and only with some tricks like the expected.
15457 The alignment of the second and third column of Table\InsetSpace ~
15459 \begin_inset LatexCommand ref
15460 reference "tab:Several-table-cell"
15464 is not possible with
15471 \begin_layout Standard
15472 \begin_inset Float table
15478 \begin_layout Standard
15479 \begin_inset Caption
15481 \begin_layout Standard
15482 \begin_inset LatexCommand label
15483 name "tab:Alignments-when"
15487 Alignments when LaTeX-package dcolumn is used.
15488 For all column alignments tricks have to be used to get the output.
15496 \begin_layout Standard
15498 \begin_inset Tabular
15499 <lyxtabular version="3" rows="4" columns="3">
15501 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{-1}">
15502 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{4.9}">
15503 <column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
15504 <row bottomline="true">
15505 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15508 \begin_layout Standard
15514 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15517 \begin_layout Standard
15523 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15526 \begin_layout Standard
15534 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15537 \begin_layout Standard
15538 12x24\InsetSpace \thinspace{}
15544 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15547 \begin_layout Standard
15548 12x24\InsetSpace \thinspace{}
15550 \begin_inset Formula $\mbox{bottles}$
15558 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15561 \begin_layout Standard
15566 \begin_layout Standard
15576 \begin_inset Formula $\mbox{bottles}$
15586 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15589 \begin_layout Standard
15590 1024x768\InsetSpace \thinspace{}
15596 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15599 \begin_layout Standard
15600 1024x768\InsetSpace \thinspace{}
15602 \begin_inset Formula $\mbox{Pixels}$
15610 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15613 \begin_layout Standard
15618 \begin_layout Standard
15628 \begin_inset Formula $\mbox{Pixels}$
15638 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15641 \begin_layout Standard
15642 32x6\InsetSpace \thinspace{}
15648 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15651 \begin_layout Standard
15652 32x6\InsetSpace \thinspace{}
15654 \begin_inset Formula $\mbox{cm}$
15662 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15665 \begin_layout Standard
15670 \begin_layout Standard
15680 \begin_inset Formula $\mbox{cm}$
15701 \begin_layout Subsection
15702 Customized Cell/Column Format
15703 \begin_inset LatexCommand label
15704 name "sub:Customized-Format"
15709 \begin_inset LatexCommand index
15710 name "Table Customization ! Cell/Column Format"
15717 \begin_layout Standard
15718 Calculating the needed width for spanned columns like in section\InsetSpace ~
15720 \begin_inset LatexCommand ref
15721 reference "sub:Multicolumn-Calculations"
15725 is very annoying if you have several tables with multicolumn cells.
15726 To make life easier, you can define a cell/column format in the preamble,
15727 so that it can be used in all tables of the document.
15728 The format is defined with the command
15731 \begin_layout Standard
15736 newcolumntype{name of format}[number of arguments]{commands}
15739 \begin_layout Standard
15740 The format name may only consist of one letter.
15765 are predefined and cannot be used.
15766 But all letters are allowed as capitals.
15769 \begin_layout Standard
15770 \begin_inset VSpace medskip
15776 \begin_layout Standard
15777 For vertically and horizontally centered multicolumn cells with a fixed
15778 width you can define the cell format
15781 \begin_layout Standard
15786 newcolumntype{M}[1]{>{
15793 \begin_layout Standard
15800 avoids the problem of hyphenating the first word, as described in section\InsetSpace ~
15802 \begin_inset LatexCommand ref
15803 reference "sub:Multiple-Lines-in"
15808 Now you can simply enter
15811 \begin_layout Standard
15817 \begin_layout Standard
15818 as LaTeX-argument in the table dialog to create a multicolumn.
15821 \begin_layout Standard
15822 \begin_inset VSpace bigskip
15828 \begin_layout Standard
15829 For cells spanned by a multicolumn cell, you can define the format
15832 \begin_layout Standard
15837 newcolumntype{S}[2]{>{
15847 \begin_layout Standard
15858 newcolumntype{S}[2]
15862 \begin_layout Standard
15873 arrayrulewidth)*(1-#2))/#2}}
15876 \begin_layout Standard
15877 This format uses equation
15878 \begin_inset LatexCommand eqref
15883 to calculate the needed width so that each spanned cell has the same width.
15886 \begin_layout Standard
15890 \begin_layout Standard
15893 S{width of multicolumn cell}{number of spanned columns}
15896 \begin_layout Standard
15897 as LaTeX-argument of the column.
15900 \begin_layout Standard
15901 \begin_inset VSpace bigskip
15907 \begin_layout Standard
15908 For colored columns, you can define
15911 \begin_layout Standard
15916 newcolumntype{K}[1]{>{
15923 \begin_layout Standard
15925 \begin_inset Quotes eld
15929 \begin_inset Quotes erd
15932 at the end creates a column with a flexible width whose text is horizontally
15937 \begin_layout Standard
15943 \begin_layout Standard
15947 \begin_layout Standard
15948 \begin_inset VSpace bigskip
15954 \begin_layout Standard
15955 To create Table\InsetSpace ~
15957 \begin_inset LatexCommand ref
15958 reference "tab:Table-using-user-defined"
15962 use the LaTeX-arguments
15965 \begin_layout Standard
15971 \begin_layout Standard
15972 for the first column and the multicolumn,
15975 \begin_layout Standard
15981 \begin_layout Standard
15982 for the the last column, and
15985 \begin_layout Standard
15991 \begin_layout Standard
15992 for the cells in the second column.
15995 \begin_layout Standard
15996 \begin_inset Float table
16002 \begin_layout Standard
16003 \begin_inset Caption
16005 \begin_layout Standard
16006 \begin_inset LatexCommand label
16007 name "tab:Table-using-user-defined"
16011 Table using user-defined table formats
16019 \begin_layout Standard
16021 \begin_inset Tabular
16022 <lyxtabular version="3" rows="3" columns="4">
16024 <column alignment="center" valignment="middle" leftline="true" width="2.5cm" special="M{2.5cm}">
16025 <column alignment="center" valignment="middle" leftline="true" width="0" special="S{2.5cm}{2}">
16026 <column alignment="center" valignment="middle" leftline="true" width="0">
16027 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0" special="K{red}">
16028 <row topline="true">
16029 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16032 \begin_layout Standard
16033 verylongtablecellword
16038 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none" special="M{2.5cm}">
16041 \begin_layout Standard
16042 multiple lines multicolumn
16047 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16050 \begin_layout Standard
16056 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16059 \begin_layout Standard
16066 <row topline="true">
16067 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16070 \begin_layout Standard
16076 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16079 \begin_layout Standard
16085 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16088 \begin_layout Standard
16094 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16097 \begin_layout Standard
16104 <row topline="true" bottomline="true">
16105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16108 \begin_layout Standard
16114 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16117 \begin_layout Standard
16123 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16126 \begin_layout Standard
16132 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16135 \begin_layout Standard
16154 \begin_layout Subsection
16156 \begin_inset LatexCommand label
16157 name "sub:Line-Thickness"
16162 \begin_inset LatexCommand index
16163 name "Table Customization ! Line Thickness"
16170 \begin_layout Standard
16171 The line thickness for all lines in a table can be adjusted with the length
16179 To set for example a line thickness of 1.5\InsetSpace \thinspace{}
16180 pt, like in Table\InsetSpace ~
16182 \begin_inset LatexCommand ref
16183 reference "tab:Table-with-1.5"
16187 , insert the command
16190 \begin_layout Standard
16197 arrayrulewidth}{1.5pt}
16200 \begin_layout Standard
16201 in ERT before the table or table float.
16202 The changed thickness is valid for all following tables.
16203 To use the default value again, set
16209 to 0.4\InsetSpace \thinspace{}
16210 pt in ERT behind the table or table float.
16213 \begin_layout Standard
16217 \begin_layout Standard
16223 arrayrulewidth}{1.5pt}
16229 \begin_inset Float table
16234 \begin_layout Standard
16235 \begin_inset Caption
16237 \begin_layout Standard
16238 \begin_inset LatexCommand label
16239 name "tab:Table-with-1.5"
16243 Table with 1.5\InsetSpace \thinspace{}
16252 \begin_layout Standard
16254 \begin_inset Tabular
16255 <lyxtabular version="3" rows="3" columns="3">
16257 <column alignment="center" valignment="top" leftline="true" width="0">
16258 <column alignment="center" valignment="top" leftline="true" width="0">
16259 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16260 <row topline="true">
16261 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16264 \begin_layout Standard
16270 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16273 \begin_layout Standard
16279 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16282 \begin_layout Standard
16289 <row topline="true">
16290 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16293 \begin_layout Standard
16299 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16302 \begin_layout Standard
16308 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16311 \begin_layout Standard
16318 <row topline="true" bottomline="true">
16319 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16322 \begin_layout Standard
16328 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16331 \begin_layout Standard
16337 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16340 \begin_layout Standard
16360 \begin_layout Standard
16366 arrayrulewidth}{0.4pt}
16374 \begin_layout Standard
16375 \begin_inset VSpace bigskip
16378 To set the line thickness to 1.5\InsetSpace \thinspace{}
16379 pt only for horizontal lines, like in Table\InsetSpace ~
16381 \begin_inset LatexCommand ref
16382 reference "tab:Table-with-horizontal"
16386 , insert these commands in ERT before the table or table float:
16389 \begin_layout Standard
16412 arrayrulewidth 1.5pt}
16422 arrayrulewidth 0.4pt}}
16425 \begin_layout Standard
16426 To return to the default line thickness, insert this command in ERT behind
16427 the table or table float:
16430 \begin_layout Standard
16442 \begin_layout Standard
16446 \begin_layout Standard
16457 \begin_layout Standard
16466 \begin_layout Standard
16474 arrayrulewidth 1.5pt}
16477 \begin_layout Standard
16487 arrayrulewidth 0.4pt}}
16493 \begin_inset Float table
16498 \begin_layout Standard
16499 \begin_inset Caption
16501 \begin_layout Standard
16502 \begin_inset LatexCommand label
16503 name "tab:Table-with-horizontal"
16507 Table with 1.5\InsetSpace \thinspace{}
16508 pt thick horizontal lines
16516 \begin_layout Standard
16518 \begin_inset Tabular
16519 <lyxtabular version="3" rows="3" columns="3">
16521 <column alignment="center" valignment="top" leftline="true" width="0">
16522 <column alignment="center" valignment="top" leftline="true" width="0">
16523 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16524 <row topline="true">
16525 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16528 \begin_layout Standard
16534 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16537 \begin_layout Standard
16543 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16546 \begin_layout Standard
16553 <row topline="true">
16554 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16557 \begin_layout Standard
16563 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16566 \begin_layout Standard
16572 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16575 \begin_layout Standard
16582 <row topline="true" bottomline="true">
16583 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16586 \begin_layout Standard
16592 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16595 \begin_layout Standard
16601 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16604 \begin_layout Standard
16624 \begin_layout Standard
16640 \begin_layout Standard
16641 \begin_inset VSpace bigskip
16644 To set the line thickness to 1.5\InsetSpace \thinspace{}
16645 pt only for vertical lines, create the following
16646 column format in the document preamble, according to the description in
16647 section\InsetSpace ~
16649 \begin_inset LatexCommand ref
16650 reference "sub:Customized-Format"
16657 \begin_layout Standard
16662 newcolumntype{V}{!{
16664 vrule width 1.5pt}}
16667 \begin_layout Standard
16668 For Table\InsetSpace ~
16670 \begin_inset LatexCommand ref
16671 reference "tab:Table-with-vertical"
16678 \begin_layout Standard
16684 \begin_layout Standard
16685 was used for the last column and
16688 \begin_layout Standard
16694 \begin_layout Standard
16695 for the other columns.
16698 \begin_layout Standard
16699 \begin_inset Float table
16704 \begin_layout Standard
16705 \begin_inset Caption
16707 \begin_layout Standard
16708 \begin_inset LatexCommand label
16709 name "tab:Table-with-vertical"
16713 Table with 1.5\InsetSpace \thinspace{}
16714 pt thick vertical lines
16722 \begin_layout Standard
16724 \begin_inset Tabular
16725 <lyxtabular version="3" rows="3" columns="3">
16727 <column alignment="center" valignment="top" width="0" special="Vc">
16728 <column alignment="center" valignment="top" width="0" special="Vc">
16729 <column alignment="center" valignment="top" width="0" special="VcV">
16730 <row topline="true">
16731 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16734 \begin_layout Standard
16740 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16743 \begin_layout Standard
16749 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16752 \begin_layout Standard
16759 <row topline="true">
16760 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16763 \begin_layout Standard
16769 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16772 \begin_layout Standard
16778 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16781 \begin_layout Standard
16788 <row topline="true" bottomline="true">
16789 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16792 \begin_layout Standard
16798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16801 \begin_layout Standard
16807 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16810 \begin_layout Standard
16829 \begin_layout Subsection
16831 \begin_inset LatexCommand index
16832 name "Table Customization ! Dashed Lines"
16839 \begin_layout Standard
16843 \begin_layout Standard
16853 \begin_inset Note Note
16856 \begin_layout Standard
16857 The following section will only be displayed when you have the LaTeX-package
16870 \begin_layout Standard
16871 \begin_inset Float table
16877 \begin_layout Standard
16878 \begin_inset Caption
16880 \begin_layout Standard
16881 \begin_inset LatexCommand label
16882 name "tab:Table-with-dashed"
16886 Table with dashed lines
16894 \begin_layout Standard
16896 \begin_inset Tabular
16897 <lyxtabular version="3" rows="5" columns="5">
16899 <column alignment="center" valignment="top" leftline="true" width="0">
16900 <column alignment="center" valignment="top" leftline="true" width="0">
16901 <column alignment="center" valignment="top" width="0" special=":c">
16902 <column alignment="center" valignment="top" leftline="true" width="0">
16903 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16904 <row topline="true" bottomline="true">
16905 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16908 \begin_layout Standard
16914 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16917 \begin_layout Standard
16923 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16926 \begin_layout Standard
16932 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16935 \begin_layout Standard
16941 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16944 \begin_layout Standard
16951 <row topline="true">
16952 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16955 \begin_layout Standard
16961 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16964 \begin_layout Standard
16970 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16973 \begin_layout Standard
16979 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16982 \begin_layout Standard
16988 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16991 \begin_layout Standard
16999 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17002 \begin_layout Standard
17006 \begin_layout Standard
17020 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17023 \begin_layout Standard
17029 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17032 \begin_layout Standard
17038 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17041 \begin_layout Standard
17047 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17050 \begin_layout Standard
17057 <row topline="true">
17058 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17061 \begin_layout Standard
17065 \begin_layout Standard
17079 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17082 \begin_layout Standard
17088 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="c:">
17091 \begin_layout Standard
17097 <cell multicolumn="1" alignment="center" valignment="top" rightline="true" usebox="none" special="c:">
17100 \begin_layout Standard
17106 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17109 \begin_layout Standard
17116 <row topline="true" bottomline="true">
17117 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17120 \begin_layout Standard
17126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17129 \begin_layout Standard
17135 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17138 \begin_layout Standard
17144 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17147 \begin_layout Standard
17153 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17156 \begin_layout Standard
17175 \begin_layout Standard
17176 LyX doesn't natively support dashed lines, so you have to use ERT.
17177 As prerequisite the LaTeX-package
17182 \begin_inset LatexCommand index
17183 name "LaTeX-packages ! arydshln"
17187 must be loaded in the document preamble with the command
17190 \begin_layout Standard
17195 usepackage{arydshln}
17198 \begin_layout Standard
17199 To make a vertical line dashed, enter the colon
17200 \begin_inset Quotes eld
17204 \begin_inset Quotes erd
17207 together with the character for the horizontal alignment as LaTeX-argument
17208 in the table cell dialog.
17211 \begin_layout Standard
17212 For a horizontal dashed line add the command
17215 \begin_layout Standard
17223 \begin_layout Standard
17224 in ERT as first element of the first cell in the table row.
17227 \begin_layout Standard
17228 For dashed multicolumn lines use the command
17231 \begin_layout Standard
17236 cdashline{line number
17241 \begin_layout Standard
17242 in ERT as first element of the first cell in the table row.
17243 If you have for example a multicolumn spanning over columns 2 to 4 and
17244 you want to have a dashed line above, add the command
17247 \begin_layout Standard
17255 \begin_layout Standard
17256 as first element of the first cell in the row of the multicolumn.
17259 \begin_layout Standard
17260 \begin_inset VSpace bigskip
17266 \begin_layout Standard
17269 \begin_inset LatexCommand ref
17270 reference "tab:Table-with-dashed"
17275 \begin_inset Quotes eld
17283 \begin_inset Quotes erd
17286 as LaTeX-argument of the third column.
17293 was inserted to the first cell of the third row and the the ERT command
17302 was inserted to the first cell of the fourth row.
17305 \begin_layout Standard
17306 \begin_inset Note Greyedout
17309 \begin_layout Standard
17314 The used LaTeX-package
17318 is apparently not compatible with the LaTeX-package
17323 \begin_inset LatexCommand index
17324 name "LaTeX-packages ! colortbl"
17328 that is used for colored tables in section\InsetSpace ~
17330 \begin_inset LatexCommand ref
17331 reference "sec:Colored-Tables"
17336 That means colored tables cannot have dashed lines.
17344 \begin_layout Standard
17348 \begin_layout Standard
17358 \begin_inset Note Note
17361 \begin_layout Standard
17362 The following will be displayed when the LaTeX-package
17374 \begin_layout Standard
17375 You need to install the package
17379 to see the contents of this section in the output.
17382 \begin_layout Standard
17386 \begin_layout Standard
17398 \begin_layout Chapter
17400 \begin_inset LatexCommand index
17406 \begin_inset LatexCommand label
17414 \begin_layout Section
17416 \begin_inset LatexCommand label
17417 name "sec:FloatIntroduction"
17422 \begin_inset LatexCommand index
17423 name "Floats ! Introduction"
17430 \begin_layout Standard
17431 A float is a block of text associated with some sort of label, which doesn't
17432 have a fixed location.
17434 \begin_inset Quotes eld
17438 \begin_inset Quotes erd
17441 forward or backward a page or two, to wherever it fits best.
17448 Margin\InsetSpace ~
17451 are also floats, because they can float to the next page when there are
17452 too many notes at the page.
17455 \begin_layout Standard
17456 Floats allow a high quality layout.
17457 Images and tables can evenly be spread to the pages to avoid white space
17458 and pages without text.
17459 As the floating often destroys the context between the text and the image/table
17460 , every float can be referenced in the text.
17461 Floats are therefore numbered.
17462 Referencing is described in section\InsetSpace ~
17464 \begin_inset LatexCommand ref
17465 reference "sec:Referencing-Floats"
17472 \begin_layout Standard
17473 To insert a float, use the menu
17475 Insert\SpecialChar \menuseparator
17483 inset, a box with a label.
17484 The label will automatically be translated to the document language in
17486 Behind the label you can insert the caption text.
17487 The image or table is inserted above or below the caption in a separate
17488 paragraph within the float.
17489 More about the caption placement is described in section\InsetSpace ~
17491 \begin_inset LatexCommand ref
17492 reference "sec:Caption-Placement"
17497 To keep your LyX-document readable, you can open and close the float box
17498 by left-clicking on the box label.
17499 A closed float box looks like this:
17500 \begin_inset Graphics
17501 filename clipart/floatQt4.png
17506 -- a gray button with a red label.
17509 \begin_layout Standard
17510 It is recommended to insert floats as a separate paragraph to avoid possible
17511 LaTeX-errors that can occur when the surrounding text is specially formatted.
17514 \begin_layout Standard
17515 Existing figures or tables can be put into a float by marking them and then
17516 pressing the corresponding toolbar button for a new float.
17519 \begin_layout Section
17523 \begin_layout Standard
17524 Besides figure and table floats that are described in section\InsetSpace ~
17526 \begin_inset LatexCommand ref
17527 reference "sec:Figure-Floats"
17532 \begin_inset LatexCommand ref
17533 reference "sec:Table-Floats"
17537 , respectively, LyX offers the float types
17550 \begin_layout Subsection
17552 \begin_inset LatexCommand index
17553 name "Floats ! Algorithm Floats"
17560 \begin_layout Standard
17561 \begin_inset Float algorithm
17567 \begin_layout Standard
17568 \begin_inset Caption
17570 \begin_layout Standard
17571 \begin_inset LatexCommand label
17572 name "alg:Example-Algorithm-float"
17576 Example Algorithm float
17584 \begin_layout LyX-Code
17587 Sum:= Sum + A(I); /*senseless comment*/
17590 \begin_inset VSpace -4mm
17601 \begin_layout Standard
17602 This float type is inserted with the menu
17604 Insert\SpecialChar \menuseparator
17605 Floats\SpecialChar \menuseparator
17609 It is used for program codes and descriptions of algorithms.
17610 A possible environment for algorithms is the
17614 , described in LyX's
17619 Algorithm\InsetSpace ~
17621 \begin_inset LatexCommand ref
17622 reference "alg:Example-Algorithm-float"
17626 is an example of an algorithm float where -4\InsetSpace \thinspace{}
17627 mm vertical space was added
17628 at the end of the float to have the bottom rule exactly below the last
17632 \begin_layout Standard
17633 The float label is not automatically translated into the document language.
17634 If your document is not in English, you have to do this manually by adding
17635 the following line to the document preamble
17640 \begin_layout Standard
17645 floatname{algorithm}{your\InsetSpace ~
17649 \begin_layout Standard
17656 \begin_inset Quotes eld
17664 \begin_inset Quotes erd
17670 \begin_layout Description
17675 When the LaTeX-package
17680 \begin_inset LatexCommand index
17681 name "LaTeX-packages ! hyperref"
17685 is used to link cross-references to floats in the PDF-output, it must be
17686 loaded in the document preamble before the definition of floats to be able
17687 to reference floats.
17688 As LyX sets the float definition for algorithm floats automatically before
17689 the user editable part of the document preamble, you need to insert the
17690 following preamble lines
17694 the loading command of
17701 \begin_inset VSpace defskip
17708 newfloat{Xalgorithm}{tbp}{loa}
17712 floatname{Xalgorithm}{your\InsetSpace ~
17725 renewenvironment{algorithm}[1][tbp]
17731 \begin_layout Standard
17742 begin{Xalgorithm}[#1]}{
17745 \begin_inset VSpace defskip
17758 \begin_inset Quotes eld
17766 \begin_inset Quotes erd
17772 \begin_layout Standard
17773 Algorithm floats are not by default numbered in the scheme
17774 \begin_inset Quotes eld
17778 \begin_inset Quotes erd
17781 like it is the case for table and figure floats in many document-classes.
17782 To number algorithm floats in the same scheme, add this command to your
17786 \begin_layout Standard
17791 numberwithin{algorithm}{chapter}
17794 \begin_layout Standard
17795 If you use the LaTeX-package
17799 , add this line instead
17807 (the commands from above) to the preamble:
17810 \begin_layout Standard
17815 numberwithin{Xalgorithm}{chapter}
17818 \begin_layout Standard
17819 To be able to use the command
17830 in the document settings the option
17840 \begin_layout Subsection
17842 \begin_inset LatexCommand index
17843 name "Floats ! Text Wrap Floats"
17848 \begin_inset LatexCommand label
17849 name "sub:floatflt-wrap-float"
17856 \begin_layout Standard
17857 This float type is used if you want to
17858 \begin_inset Quotes eld
17862 \begin_inset Quotes erd
17865 text around a figure so that it only occupies some fraction of the column
17867 It can be inserted using the menu
17868 \begin_inset Wrap figure
17873 \begin_layout Standard
17874 \begin_inset Graphics
17875 filename clipart/mobius.eps
17878 rotateOrigin center
17885 \begin_layout Standard
17886 \begin_inset Caption
17888 \begin_layout Standard
17889 \begin_inset LatexCommand label
17890 name "fig:This-is-a"
17894 This is a wrapped figure, and this is the brilliant caption that describes
17896 \begin_inset VSpace medskip
17911 Insert\SpecialChar \menuseparator
17912 Floats\SpecialChar \menuseparator
17917 if the LaTeX-package
17922 \begin_inset LatexCommand index
17923 name "LaTeX-packages ! floatflt"
17931 \begin_layout Standard
17932 Installing a LaTeX-package is explained it in the
17942 The width and placement of the float is adjusted by right-clicking on the
17944 Figure\InsetSpace ~
17946 \begin_inset LatexCommand ref
17947 reference "fig:This-is-a"
17951 is an example text wrap float with a width of 40
17952 \begin_inset Formula $\,$
17959 \begin_layout Standard
17960 Available units are explained in
17961 \begin_inset LatexCommand ref
17962 reference "cha:Units-available-in"
17971 Some space was added under the caption to separate it better from the surroundi
17975 \begin_layout Standard
17980 also supports table wrap floats, but they are not yet supported by LyX.
17981 If you need this, read the documentation of
17986 \begin_inset LatexCommand cite
17994 \begin_layout Standard
17995 \begin_inset Note Greyedout
17998 \begin_layout Standard
18004 wrap float floats are fragile! E.\InsetSpace \thinspace{}
18006 having a figure too close to the bottom
18007 of the page can mess things up in the way that the float doesn't appear
18008 in the output or that it is placed over some other text.
18012 \begin_layout Standard
18013 The better solution is to use the LaTeX-package
18015 wrapf\SpecialChar \textcompwordmark{}
18019 \begin_inset LatexCommand index
18020 name "LaTeX-packages ! wrapfig\\vspace{4mm}"
18026 floatf\SpecialChar \textcompwordmark{}
18029 , but it is currently not supported by LyX.
18042 \begin_layout Standard
18046 \begin_layout Itemize
18047 Wrap floats should not be placed in paragraphs that run over a page break.
18048 That means that wrap floats should better be inserted to the exact place
18049 when the document is nearly finished and you are able to estimate where
18050 page breaks will appear.
18053 \begin_layout Itemize
18054 Wrap floats should either be placed in an own paragraph before the paragraph
18055 where they should wrap into or within a paragraph.
18058 \begin_layout Itemize
18059 Wrap floats in consecutive paragraphs may cause troubles, so assure that
18060 there is a text paragraph between them as separator.
18063 \begin_layout Itemize
18064 Wrap floats are not allowed in section headings or tables.
18067 \begin_layout Section
18069 \begin_inset LatexCommand label
18070 name "sec:Float-Numbering"
18075 \begin_inset LatexCommand index
18076 name "Floats ! Numbering"
18083 \begin_layout Standard
18084 Floats are usually numbered either independent from the sections the floats
18085 are in, or in the scheme
18086 \begin_inset Quotes eld
18090 \begin_inset Quotes erd
18094 \begin_inset Quotes eld
18098 \begin_inset Quotes erd
18102 This depends on the used document class.
18105 \begin_layout Standard
18106 To change the section independent numbering, you can use this command in
18107 the document preamble:
18110 \begin_layout Standard
18122 \begin_layout Standard
18129 is the command that prints the table number, for figure floats, the command
18143 prints in the command above the table number as small roman number.
18146 \begin_layout Standard
18147 To change the numbering scheme for example to
18148 \begin_inset Quotes eld
18152 \begin_inset Quotes erd
18155 , use this command in the preamble:
18158 \begin_layout Standard
18163 numberwithin{table}{subsection}
18166 \begin_layout Standard
18167 To be able to use the command
18178 in the document settings the option
18188 \begin_layout Standard
18189 Please also have a look at section\InsetSpace ~
18191 \begin_inset LatexCommand ref
18192 reference "sub:Footnote-Numbering"
18196 for the details and important notes about the numbering commands.
18199 \begin_layout Section
18201 \begin_inset LatexCommand label
18202 name "sec:Referencing-Floats"
18207 \begin_inset LatexCommand index
18208 name "Floats ! References"
18213 \begin_inset LatexCommand index
18221 \begin_layout Standard
18222 To reference a float, insert a label into its caption using the menu
18224 Insert\SpecialChar \menuseparator
18227 or the toolbar button
18228 \begin_inset Graphics
18229 filename ../images/label-insert.xpm
18235 A grey label box like this one:
18236 \begin_inset Graphics
18237 filename clipart/labelQt4.png
18242 will be inserted and the label window pops up asking for the label text.
18243 LyX offers as text the first words of the caption with a prefix.
18244 The prefix depends on the float type, e.\InsetSpace \thinspace{}
18246 for figure floats the prefix will
18254 \begin_layout Standard
18255 The label is used as anchor and name for the reference.
18256 You can refer to the label using the menu
18258 Insert\SpecialChar \menuseparator
18261 or the toolbar button
18262 \begin_inset Graphics
18263 filename ../images/dialog-show-new-inset_ref.xpm
18269 A grey cross-reference box like this one:
18270 \begin_inset Graphics
18271 filename clipart/referenceQt4.png
18276 will be inserted and the cross-reference window appear showing all labels
18278 If you have multiple LyX-documents opened, choose the one you are working
18279 on from the drop-list at the top of the dialog.
18280 You can now sort the labels alphabetically and then choose one.
18281 At the position of the cross-reference box the float number will appear
18285 \begin_layout Standard
18286 It is recommended to use a protected space between the cross-reference name
18287 and its number to avoid line breaks between them.
18288 If a cross-reference refers to a non-existing label, you will see two question
18289 marks in the output instead of the reference.
18292 \begin_layout Standard
18293 You can change labels at any time by clicking on the label box.
18294 References to the changed label will automatically change its link to the
18295 new label text, so that you don't need to take care about this.
18298 \begin_layout Standard
18305 in the cross-reference window sets the cursor before the referred label.
18306 The button text changes then to Go\InsetSpace ~
18307 Back and you can use it to set the cursor
18308 back to the cross-reference.
18309 Right-clicking on a cross-reference box also sets the cursor before the
18310 referenced label but without a possibility to go back.
18313 \begin_layout Subsection
18314 Cross-Reference Formats
18315 \begin_inset LatexCommand label
18316 name "sub:Cross-Reference-Formats"
18321 \begin_inset LatexCommand index
18322 name "References ! Formats"
18329 \begin_layout Standard
18330 There are six varieties of cross-references:
18333 \begin_layout Description
18334 <reference>: prints the float number, this is the default:
18335 \begin_inset LatexCommand ref
18336 reference "fig:Two-distorted-images"
18343 \begin_layout Description
18344 (<reference>): prints the float number within two parentheses, this is the
18345 style normally used to reference formulas, especially when the reference
18347 \begin_inset Quotes eld
18351 \begin_inset Quotes erd
18355 \begin_inset LatexCommand eqref
18363 \begin_layout Description
18364 <page>: prints the page number: Page\InsetSpace ~
18366 \begin_inset LatexCommand pageref
18367 reference "fig:Two-distorted-images"
18374 \begin_layout Description
18377 <page>: prints the text "on page" and the page number:
18378 \begin_inset LatexCommand vpageref
18379 reference "fig:Two-distorted-images"
18386 \begin_layout Description
18387 <reference>\InsetSpace ~
18390 <page>: prints the float number, the text "on page", and
18392 \begin_inset LatexCommand vref
18393 reference "fig:Two-distorted-images"
18400 \begin_layout Description
18401 Formatted\InsetSpace ~
18402 reference: prints a self defined cross-reference format.
18404 \begin_inset Note Greyedout
18407 \begin_layout Standard
18412 This feature is only available when you have the LaTeX-package
18424 \begin_layout Standard
18425 Note that the style <page> won't print the page number if the label is on
18426 the previous, the same, or the next page.
18427 You will e.\InsetSpace \thinspace{}
18430 \begin_inset Quotes eld
18438 \begin_inset Quotes erd
18444 \begin_layout Standard
18445 The number and current page of the referred document part in the output,
18446 is automatically calculated by LaTeX.
18447 The varieties are adjusted in the field
18451 of the cross-reference window, that appear when you click on the cross-referenc
18455 \begin_layout Subsection
18456 Referencing Subfigures
18457 \begin_inset LatexCommand label
18458 name "sub:Referencing-Subfigures"
18463 \begin_inset LatexCommand index
18464 name "References ! to Subfigures"
18471 \begin_layout Standard
18472 Currently referencing subfigures is not supported by LyX, so you have to
18473 use LaTeX-commands.
18474 The label is the created with the command
18477 \begin_layout Standard
18482 label{fig:YourLabelName}
18485 \begin_layout Standard
18486 that is directly inserted into the subfigure caption field.
18487 To reference the label add this command in ERT
18490 \begin_layout Standard
18495 ref{fig:YourLabelName}
18498 \begin_layout Standard
18499 to the position in your document where the reference should be placed.
18500 Here is a reference to a subfigure: Subfigure\InsetSpace ~
18505 \begin_layout Standard
18517 \begin_layout Subsection
18518 Automatic Reference Naming
18519 \begin_inset LatexCommand index
18520 name "References ! Automatic Reference Naming"
18527 \begin_layout Standard
18532 provides a very useful feature that cross-references automatically include
18533 the name of the referenced floats (or text parts like sections).
18534 You save to write e.\InsetSpace \thinspace{}
18537 \begin_inset Quotes eld
18541 \begin_inset Quotes erd
18544 before every reference box.
18545 To get this automatic reference naming, you have to load the LaTeX-package
18551 \begin_inset LatexCommand index
18552 name "LaTeX-packages ! hyperref"
18556 in the document preamble with
18559 \begin_layout Standard
18564 usepackage[pdfborder={0 0 0}]{hyperref}
18579 \begin_layout Standard
18584 is used to link cross-references in the DVI- and PDF-output, this means
18585 that the reader of your document will be able to click on a table of content
18586 (TOC) entry or on a reference and he will be shown the referenced document
18592 also creates PDF-bookmarks for every section of your document to make it
18593 easier for readers to navigate through the document.
18594 This is also used in this document but when you have a look in the document
18595 preamble you will find various options in the load command of
18600 To learn more about the
18604 package, we refer to its documentation
18605 \begin_inset LatexCommand cite
18613 \begin_layout Standard
18614 \begin_inset Note Greyedout
18617 \begin_layout Standard
18622 Automatic reference naming cannot be used when you use cross-references
18625 Formatted\InsetSpace ~
18628 style, described in section\InsetSpace ~
18630 \begin_inset LatexCommand ref
18631 reference "sub:Cross-Reference-Formats"
18643 \begin_layout Subsection
18645 \begin_inset LatexCommand label
18646 name "sub:Reference-Position"
18651 \begin_inset LatexCommand index
18652 name "References ! Reference Position"
18659 \begin_layout Standard
18665 \begin_inset LatexCommand index
18666 name "LaTeX-packages ! hyperref"
18670 to link cross-references in the output, you will see that clicking on an
18671 image float reference jumps to the image label.
18672 The caption will be the first text part on the screen, so that you cannot
18673 see the image without scrolling.
18674 This is because the reference link anchor is placed at the position of
18676 With the use of the package
18681 \begin_inset LatexCommand index
18682 name "LaTeX-packages ! hypcap"
18686 , which is part of the LaTeX-package
18691 \begin_inset LatexCommand index
18692 name "LaTeX-packages ! oberdiek"
18696 , the link anchor is placed at the beginning of a float.
18697 To use this feature for figure floats, load
18701 in the document preamble with the line
18704 \begin_layout Standard
18709 usepackage[f\SpecialChar \textcompwordmark{}
18713 \begin_layout Standard
18718 for all floats but this isn't recommended for stability reasons.
18719 For more informations, have a look at
18724 \begin_inset LatexCommand cite
18732 \begin_layout Standard
18733 \begin_inset Note Greyedout
18736 \begin_layout Standard
18745 must be loaded after
18749 in the document preamble.
18757 \begin_layout Standard
18758 \begin_inset Note Greyedout
18761 \begin_layout Standard
18770 has no effect for references to subfigures.
18778 \begin_layout Section
18780 \begin_inset LatexCommand label
18781 name "sec:Float-Placement"
18786 \begin_inset LatexCommand index
18787 name "Floats ! Placement"
18794 \begin_layout Standard
18795 Right-clicking on a float-box opens a dialog where you can alter the placement
18796 options that LaTeX uses for positioning the float.
18803 is only useful for two-column documents: If you select it, the float will
18804 span across both columns on the page instead of being confined to just
18809 Rotate\InsetSpace ~
18812 is used to rotate floats, see section
18813 \begin_inset LatexCommand ref
18814 reference "sec:Rotated-Floats"
18821 \begin_layout Standard
18822 You can use one ore more of the following options in the float dialog to
18823 set the placement for a particular float when you uncheck the option
18826 default\InsetSpace ~
18832 \begin_layout Description
18835 possible: try to place the float on the position where it is inserted
18838 \begin_layout Description
18841 page: try to place the float on the top of the current page
18844 \begin_layout Description
18845 Bottom\InsetSpace ~
18847 page: try to place the float on the bottom of the current page
18850 \begin_layout Description
18853 floats: try to place the float on an own page
18856 \begin_layout Standard
18857 The order of the above option is
18862 That means, if you use the default placement, LaTeX will first try out
18875 , and then the others.
18876 If you don't use the default, LaTeX will try only the checked options but
18878 If none of the 4 placements are possible the procedure is internally repeated
18879 but it is tried to put the float on the following page.
18882 \begin_layout Standard
18883 By default, each option has its own rules:
18886 \begin_layout Labeling
18887 \labelwidthstring 00.00.0000
18894 only floats occupying less than 70\InsetSpace \thinspace{}
18895 % of the page can be placed at the top
18905 \begin_layout Labeling
18906 \labelwidthstring 00.00.0000
18909 Bottom\InsetSpace ~
18913 : only floats occupying less than 30\InsetSpace \thinspace{}
18914 % of the page can be placed at the bottom
18925 \begin_layout Labeling
18926 \labelwidthstring 00.00.0000
18933 : only if more than 50\InsetSpace \thinspace{}
18934 % of the page are occupied by floats, several floats
18935 can be set together on a page.
18945 \begin_layout Standard
18946 If you don't like these rules, you can ignore them by using the additional
18949 Ignore\InsetSpace ~
18955 You can also redefine the rules with LaTeX-commands that are given in parenthese
18956 s behind the rules description above.
18957 To increase for example the often too small default of the bottom-rule
18958 to 50\InsetSpace \thinspace{}
18959 % of the page, add this line to your document preamble:
18962 \begin_layout Standard
18969 bottomfraction}{0.5}
18972 \begin_layout Standard
18973 Sometimes you might need, under all circumstances, a float to be placed
18974 exactly at the position where it is inserted.
18975 For this case you can use the option
18981 Use this option very rarely and only if the document is nearly ready to
18983 Because the float is then no longer able to
18984 \begin_inset Quotes eld
18988 \begin_inset Quotes erd
18991 when you change your document and this will often destroy the page layout.
18994 \begin_layout Standard
18995 There are no placement options for text wrap floats, because they are always
18996 surrounded by the text of a certain paragraph.
18997 \begin_inset VSpace bigskip
19003 \begin_layout Standard
19004 Sometimes you have the problem that a float is placed at the top of a page
19005 while its corresponding section starts at the middle of the page, so that
19006 the reader could think the float is part of the previous section.
19007 To avoid this the LaTeX-command
19011 suppressf\SpecialChar \textcompwordmark{}
19015 It suppresses a given float placement for the page where it is inserted
19016 and can therefore be used to avoid that floats could be set before a section
19018 To get this, add these commands to your document preamble:
19021 \begin_layout Standard
19038 suppressf\SpecialChar \textcompwordmark{}
19044 \begin_layout Standard
19045 You can define the same for all section headings, like chapters and subsections.
19046 This definition is not recommended to be used for small text parts like
19047 subsubsections because LaTeX may then have problems to find a suitable
19051 \begin_layout Standard
19052 \begin_inset VSpace bigskip
19055 In some cases it is required to have all figures/tables at the end of the
19057 For this purpose the LaTeX-package
19059 endf\SpecialChar \textcompwordmark{}
19063 \begin_inset LatexCommand index
19064 name "LaTeX-packages ! endfloat"
19069 It puts all figure and table floats at the end of the document into own
19071 At the original float position a text hint like
19072 \begin_inset Quotes eld
19077 [Figure\InsetSpace ~
19081 \begin_inset Quotes erd
19085 The endfloat-package is loaded in the preamble with the line
19088 \begin_layout Standard
19093 usepackage[options]{endf\SpecialChar \textcompwordmark{}
19097 \begin_layout Standard
19098 There are various package options to format the created figure/table sections.
19099 For more information we refer to the
19101 endf\SpecialChar \textcompwordmark{}
19105 \begin_inset LatexCommand cite
19113 \begin_inset Note Greyedout
19116 \begin_layout Standard
19119 Note: endf\SpecialChar \textcompwordmark{}
19122 doesn't provide an automatic translation for the text hint, you have to
19123 do this manually, see section\InsetSpace ~
19125 \begin_inset LatexCommand cite
19138 \begin_inset Note Greyedout
19141 \begin_layout Standard
19146 There is currently a bug in
19148 endf\SpecialChar \textcompwordmark{}
19151 when the caption contains a German
19152 \begin_inset Quotes eld
19156 \begin_inset Quotes erd
19160 Use in this case the command
19161 \begin_inset Quotes eld
19171 \begin_inset Quotes erd
19175 \begin_inset Quotes eld
19179 \begin_inset Quotes erd
19190 \begin_layout Standard
19191 \begin_inset VSpace bigskip
19194 For more details about float placements, have a look at LaTeX books,
19195 \begin_inset LatexCommand cite
19196 key "latexcompanion,latexguide,latexbook"
19203 \begin_layout Section
19205 \begin_inset LatexCommand label
19206 name "sec:Rotated-Floats"
19211 \begin_inset LatexCommand index
19212 name "Floats ! Rotating"
19219 \begin_layout Standard
19220 Especially for wide tables you might have floats rotated.
19221 To rotate a whole float including the caption, right-click on the float-box
19224 Rotate\InsetSpace ~
19230 \begin_layout Standard
19231 Rotated floats are always placed on its own page (or column, when you have
19232 a two-column document).
19233 They are normally rotated so that you can read them from the outside margin
19234 -- to the left on even pages, to the right on odd pages.
19237 \begin_layout Standard
19238 Referencing rotated floats is the same like for normal floats, the caption
19239 format is also the same: Table\InsetSpace ~
19241 \begin_inset LatexCommand ref
19242 reference "tab:Rotated-table"
19246 is an example of a rotated table float.
19249 \begin_layout Standard
19250 \begin_inset Note Greyedout
19253 \begin_layout Standard
19258 Not all DVI-viewers are able to display rotated floats.
19266 \begin_layout Standard
19267 \begin_inset Float table
19272 \begin_layout Standard
19273 \begin_inset Caption
19275 \begin_layout Standard
19276 \begin_inset LatexCommand label
19277 name "tab:Rotated-table"
19289 \begin_layout Standard
19291 \begin_inset Tabular
19292 <lyxtabular version="3" rows="1" columns="5">
19294 <column alignment="center" valignment="top" leftline="true" width="0">
19295 <column alignment="center" valignment="top" leftline="true" width="0">
19296 <column alignment="center" valignment="top" leftline="true" width="0">
19297 <column alignment="center" valignment="top" leftline="true" width="0">
19298 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19299 <row topline="true" bottomline="true">
19300 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19303 \begin_layout Standard
19309 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19312 \begin_layout Standard
19318 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19321 \begin_layout Standard
19327 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19330 \begin_layout Standard
19336 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19339 \begin_layout Standard
19358 \begin_layout Section
19360 \begin_inset LatexCommand index
19361 name "Caption ! Formatting"
19366 \begin_inset LatexCommand index
19367 name "Floats ! Caption Formatting"
19372 \begin_inset LatexCommand index
19373 name "LaTeX-packages ! caption"
19378 \begin_inset LatexCommand label
19379 name "sec:Caption-Formatting"
19386 \begin_layout Standard
19391 environment is the default paragraph environment for
19396 On the LyX screen captions appear as label, e.\InsetSpace \thinspace{}
19399 \begin_inset Quotes eld
19407 \begin_inset Quotes erd
19410 followed by the caption text.
19412 \begin_inset Quotes eld
19416 \begin_inset Quotes erd
19419 is the actual reference number.
19420 By default the label and the number are in the same font as the caption
19421 text and a colon follows the number to divide the label from the text.
19422 This caption format is not suitable for all document formats.
19426 \begin_layout Standard
19427 To change the default caption format, load the LaTeX-package
19432 \begin_inset LatexCommand index
19433 name "LaTeX-packages ! caption"
19437 in the document preamble with this line:
19440 \begin_layout Standard
19445 usepackage[format definition]{caption}
19448 \begin_layout Standard
19449 To have for example the label and the number in sans-serif bold font and
19450 the table captions always above the table like in this document, use the
19454 \begin_layout Standard
19459 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
19462 \begin_layout Standard
19463 You can also define different caption formats for the different float types.
19464 In this case load the
19468 package without format specific options and define the different formats
19469 with the help of the command
19472 \begin_layout Standard
19477 captionsetup[float type]{format definition}
19480 \begin_layout Standard
19481 in the document preamble.
19482 For example the caption formats of Figure\InsetSpace ~
19484 \begin_inset LatexCommand ref
19485 reference "fig:This-is-an-fig"
19489 and Table\InsetSpace ~
19491 \begin_inset LatexCommand ref
19492 reference "tab:This-is-an-tab"
19496 can be created using these commands in the document preamble:
19499 \begin_layout Standard
19504 usepackage[tableposition=top]{caption}
19512 captionsetup[f\SpecialChar \textcompwordmark{}
19513 igure]{labelfont={tt}, textfont=it, indention=1cm,%
19519 \begin_layout Standard
19527 captionsetup[figure]
19538 captionsetup[table]{labelfont={bf,sf}}
19541 \begin_layout Standard
19542 \begin_inset Note Greyedout
19545 \begin_layout Standard
19554 has no effect when a
19559 \begin_inset LatexCommand index
19560 name "LaTeX-packages ! koma-script"
19564 document class is used.
19565 In this case the document class option
19577 \begin_layout Standard
19578 For more information about the package
19582 we refer to its documentation
19583 \begin_inset LatexCommand cite
19584 key "caption,caption-de"
19591 \begin_layout Standard
19592 To change the label name from e.g.
19594 \begin_inset Quotes eld
19598 \begin_inset Quotes erd
19602 \begin_inset Quotes eld
19606 \begin_inset Quotes erd
19609 use this preamble command:
19612 \begin_layout Standard
19619 fnum@figure}{Image~
19624 \begin_layout Standard
19631 inserts the figure number and
19634 \begin_inset Quotes eld
19640 \begin_inset Quotes erd
19643 creates a protected space.
19646 \begin_layout Standard
19647 \begin_inset VSpace bigskip
19655 \begin_inset LatexCommand index
19656 name "LaTeX-packages ! koma-script"
19662 article (koma-script)
19670 letter (koma-script)
19674 report (koma-script)
19676 \InsetSpace \thinspace{}
19677 ), you can alternatively to the
19685 's built-in command
19692 For example, to have the caption label in bold, add this command to your
19696 \begin_layout Standard
19701 setkomafont{captionlabel}{
19706 \begin_layout Standard
19707 For more information about
19718 \begin_inset LatexCommand cite
19719 key "koma-script,koma-script-de"
19726 \begin_layout Standard
19730 \begin_layout Standard
19734 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
19741 \begin_inset Note Note
19744 \begin_layout Standard
19745 The caption format is changed only for this example.
19753 \begin_layout Standard
19754 \begin_inset Float figure
19760 \begin_layout Standard
19762 \begin_inset Graphics
19763 filename clipart/mobius.eps
19772 \begin_layout Standard
19773 \begin_inset Caption
19775 \begin_layout Standard
19776 \begin_inset LatexCommand label
19777 name "fig:This-is-an-fig"
19781 This is an example figure caption that is longer than one line to show the
19782 different caption format.
19783 Here a self-defined caption format is used.
19796 \begin_layout Standard
19800 \begin_layout Standard
19804 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
19813 \begin_layout Standard
19814 \begin_inset Float table
19820 \begin_layout Standard
19821 \begin_inset Caption
19823 \begin_layout Standard
19824 \begin_inset LatexCommand label
19825 name "tab:This-is-an-tab"
19829 This is an example table caption that is longer than one line to show the
19830 different caption format.
19831 Here the standard caption format for tables in this document is used.
19839 \begin_layout Standard
19841 \begin_inset Tabular
19842 <lyxtabular version="3" rows="1" columns="5">
19844 <column alignment="center" valignment="top" leftline="true" width="0">
19845 <column alignment="center" valignment="top" leftline="true" width="0">
19846 <column alignment="center" valignment="top" leftline="true" width="0">
19847 <column alignment="center" valignment="top" leftline="true" width="0">
19848 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19849 <row topline="true" bottomline="true">
19850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19853 \begin_layout Standard
19859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19862 \begin_layout Standard
19868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19871 \begin_layout Standard
19877 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19880 \begin_layout Standard
19886 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19889 \begin_layout Standard
19908 \begin_layout Section
19910 \begin_inset LatexCommand index
19911 name "Caption ! Placement"
19916 \begin_inset LatexCommand index
19917 name "Floats ! Caption Placement"
19922 \begin_inset LatexCommand label
19923 name "sec:Caption-Placement"
19930 \begin_layout Standard
19931 The common caption placement rule is:
19934 \begin_layout Description
19935 Figure: Caption is set below the figure
19938 \begin_layout Description
19939 Table: Caption is set above the table
19942 \begin_layout Standard
19943 Having the caption above the table is unfortunately not supported in LaTeX's
19945 That means if you are using the document classes
19961 there will be no space between the caption and the table.
19962 To insert the needed space, add the following option to the load command
19963 of the LaTeX-package
19967 in your document preamble
19971 \begin_layout Standard
19972 See section\InsetSpace ~
19974 \begin_inset LatexCommand ref
19975 reference "sec:Caption-Formatting"
19979 for more information of the package
19991 \begin_layout Standard
19997 \begin_layout Standard
20003 \begin_inset LatexCommand index
20004 name "LaTeX-packages ! koma-script"
20010 article (koma-script)
20018 letter (koma-script)
20022 report (koma-script)
20024 \InsetSpace \thinspace{}
20025 ), you can alternatively to the
20029 package set the document class option
20033 , or you can use the environment
20035 caption\InsetSpace ~
20045 \begin_layout Standard
20046 \begin_inset VSpace bigskip
20049 It is also possible to set the caption beside a figure or table.
20050 To get this the LaTeX-package
20055 \begin_inset LatexCommand index
20056 name "LaTeX-packages ! sidecap"
20060 has to be loaded in the document preamble with the line
20063 \begin_layout Standard
20068 usepackage[option]{sidecap}
20071 \begin_layout Standard
20072 If you set no option, the caption is placed on the side of the outer page
20073 margin -- to the right on odd pages, to the left on even pages.
20074 You can change the placement to inner margin with the option
20079 To force the placement always to the right or left, use the option
20090 \begin_layout Standard
20091 To place in LyX the caption of a float on the side, it is necessary to add
20092 these commands to the document preamble:
20095 \begin_layout Standard
20101 \begin_layout Standard
20114 \begin_layout Standard
20135 \begin_layout Standard
20156 \begin_layout Standard
20167 renewenvironment{table}{
20174 \begin_layout Standard
20187 \begin_layout Standard
20208 \begin_layout Standard
20226 \begin_layout Standard
20239 \begin_layout Standard
20254 f\SpecialChar \textcompwordmark{}
20261 \begin_layout Standard
20274 MyEndf\SpecialChar \textcompwordmark{}
20277 endf\SpecialChar \textcompwordmark{}
20284 \begin_layout Standard
20295 renewenvironment{f\SpecialChar \textcompwordmark{}
20298 begin{SCf\SpecialChar \textcompwordmark{}
20301 end{SCf\SpecialChar \textcompwordmark{}
20305 \begin_layout Standard
20318 \begin_layout Standard
20331 f\SpecialChar \textcompwordmark{}
20340 \begin_layout Standard
20353 endf\SpecialChar \textcompwordmark{}
20356 MyEndf\SpecialChar \textcompwordmark{}
20360 \begin_layout Standard
20366 \begin_layout Standard
20367 The commands allow you to redefine the floats so that the caption is set
20369 For figure floats use the command
20372 \begin_layout Standard
20380 \begin_layout Standard
20381 in ERT before the float.
20382 Behind the float insert the command
20385 \begin_layout Standard
20393 \begin_layout Standard
20394 in ERT to get back to the original float definition.
20397 \begin_layout Standard
20398 For table floats use the corresponding commands
20401 \begin_layout Standard
20415 \begin_layout Standard
20416 Figure\InsetSpace ~
20418 \begin_inset LatexCommand ref
20419 reference "fig:cap-beside-fig"
20423 and Table\InsetSpace ~
20425 \begin_inset LatexCommand ref
20426 reference "tab:cap-beside-tab"
20430 are examples where the caption is set beside.
20433 \begin_layout Standard
20434 You can see in the examples that the caption text appears at the top of
20435 the floats for table floats and at the bottom for figure floats.
20436 To change this, you can use the command
20439 \begin_layout Standard
20444 sidecaptionvpos{float type}{placement}
20447 \begin_layout Standard
20448 in the document preamble or in ERT before the float.
20449 The float type is either
20457 , the placement can be
20458 \begin_inset Quotes eld
20466 \begin_inset Quotes erd
20470 \begin_inset Quotes eld
20478 \begin_inset Quotes erd
20482 \begin_inset Quotes eld
20490 \begin_inset Quotes erd
20494 To have for example the caption of figure floats vertically centered, use
20498 \begin_layout Standard
20503 sidecaptionvpos{f\SpecialChar \textcompwordmark{}
20507 \begin_layout Standard
20508 This was used for Figure\InsetSpace ~
20510 \begin_inset LatexCommand ref
20511 reference "fig:cap-beside-fig-2"
20518 \begin_layout Standard
20519 \begin_inset VSpace defskip
20522 For more information about the package
20526 we refer to its documentation
20527 \begin_inset LatexCommand cite
20535 \begin_layout Standard
20536 \begin_inset Note Greyedout
20539 \begin_layout Standard
20549 \begin_inset LatexCommand index
20550 name "LaTeX-packages ! hypcap"
20554 , described in section\InsetSpace ~
20556 \begin_inset LatexCommand ref
20557 reference "sub:Reference-Position"
20561 , has no effect on floats with the caption set beside.
20569 \begin_layout Standard
20573 \begin_layout Standard
20585 \begin_layout Standard
20586 \begin_inset Float figure
20591 \begin_layout Standard
20592 \begin_inset Graphics
20593 filename clipart/escher-lsd.eps
20601 \begin_layout Standard
20602 \begin_inset Caption
20604 \begin_layout Standard
20605 \begin_inset LatexCommand label
20606 name "fig:cap-beside-fig"
20610 This is a caption beside a figure.
20623 \begin_layout Standard
20627 \begin_layout Standard
20639 \begin_layout Standard
20640 \begin_inset Float table
20645 \begin_layout Standard
20646 \begin_inset Caption
20648 \begin_layout Standard
20649 \begin_inset LatexCommand label
20650 name "tab:cap-beside-tab"
20654 This is a caption beside a table.
20662 \begin_layout Standard
20663 \begin_inset Tabular
20664 <lyxtabular version="3" rows="4" columns="5">
20666 <column alignment="center" valignment="top" leftline="true" width="0">
20667 <column alignment="center" valignment="top" leftline="true" width="0">
20668 <column alignment="center" valignment="top" leftline="true" width="0">
20669 <column alignment="center" valignment="top" leftline="true" width="0">
20670 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
20671 <row topline="true">
20672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20675 \begin_layout Standard
20681 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20684 \begin_layout Standard
20690 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20693 \begin_layout Standard
20699 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20702 \begin_layout Standard
20708 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20711 \begin_layout Standard
20718 <row topline="true">
20719 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20722 \begin_layout Standard
20728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20731 \begin_layout Standard
20737 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20740 \begin_layout Standard
20746 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20749 \begin_layout Standard
20755 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20758 \begin_layout Standard
20765 <row topline="true">
20766 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20769 \begin_layout Standard
20775 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20778 \begin_layout Standard
20784 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20787 \begin_layout Standard
20793 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20796 \begin_layout Standard
20802 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20805 \begin_layout Standard
20812 <row topline="true" bottomline="true">
20813 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20816 \begin_layout Standard
20822 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20825 \begin_layout Standard
20831 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20834 \begin_layout Standard
20840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20843 \begin_layout Standard
20849 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20852 \begin_layout Standard
20871 \begin_layout Standard
20875 \begin_layout Standard
20887 \begin_layout Standard
20891 \begin_layout Standard
20895 sidecaptionvpos{figure}{c}
20901 \begin_inset Float figure
20906 \begin_layout Standard
20907 \begin_inset Graphics
20908 filename clipart/escher-lsd.eps
20916 \begin_layout Standard
20917 \begin_inset Caption
20919 \begin_layout Standard
20920 \begin_inset LatexCommand label
20921 name "fig:cap-beside-fig-2"
20925 This is a vertically centered caption beside a figure.
20938 \begin_layout Standard
20942 \begin_layout Standard
20954 \begin_layout Section
20956 \begin_inset LatexCommand label
20957 name "sec:Listings-of-Floats"
20962 \begin_inset LatexCommand index
20963 name "Floats ! Listings"
20970 \begin_layout Standard
20971 Similar to the the table of contents where the sections of the document
20972 are listed, there are listings for all float types, like the figures of
20974 You can insert them via the
20976 Insert\SpecialChar \menuseparator
20984 \begin_layout Standard
20985 The list entries are the float captions or its short title, the float number,
20986 and the page number where they appear in the document.
20989 \begin_layout Standard
20990 You can find the list of figures and tables at the end of this document.
20993 \begin_layout Chapter
20997 \begin_layout Section
21001 \begin_layout Standard
21014 \begin_layout Standard
21022 \begin_inset LatexCommand label
21023 name "sec:LyX-Notes"
21028 \begin_inset LatexCommand index
21029 name "Notes ! LyX Notes"
21034 \begin_inset Note Note
21037 \begin_layout Standard
21040 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
21041 are displayed wrongly in PDF-bookmarks.
21042 For more information about this, have a look at
21043 \begin_inset LatexCommand cite
21056 \begin_layout Standard
21057 Notes are inserted with the toolbar button
21058 \begin_inset Graphics
21059 filename ../images/note-insert.xpm
21066 Insert\SpecialChar \menuseparator
21070 There are five types of notes:
21073 \begin_layout Description
21075 Note This note type is for internal notes that won't appear in the output.
21076 Its note-box looks like this:
21081 \begin_inset Graphics
21082 filename clipart/LyXNoteImageQt4.png
21089 \begin_inset Note Note
21092 \begin_layout Standard
21093 This is text in a note box that doesn't appear in the output.
21101 \begin_layout Description
21102 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
21103 ent, when you export the document to LaTeX via the menu
21105 File\SpecialChar \menuseparator
21106 Export\SpecialChar \menuseparator
21107 LaTeX (pdflatex) / LaTeX (plain)
21110 Its note-box looks like this:
21115 \begin_inset Graphics
21116 filename clipart/CommentNoteImageQt4.png
21123 \begin_inset Note Comment
21126 \begin_layout Standard
21127 This is text in a note box that only appears as comment in LaTeX-files.
21135 \begin_layout Description
21136 Greyed\InsetSpace ~
21137 Out This note will appear in the output as grey text.
21138 Its note-box looks like this:
21143 \begin_inset Graphics
21144 filename clipart/GreyedOutNoteImageQt4.png
21156 \begin_layout Standard
21160 renewenvironment{lyxgreyedout}
21163 \begin_layout Standard
21167 textcolor[gray]{0.8}
21177 \begin_inset Note Greyedout
21180 \begin_layout Standard
21185 \begin_layout Standard
21186 This is an example footnote within a greyed out note.
21191 of a comment that appears in the output as grey text.
21200 \begin_layout Standard
21204 renewenvironment{lyxgreyedout}
21207 \begin_layout Standard
21221 \begin_inset Note Note
21224 \begin_layout Standard
21225 The greyed out note is here redefined to show it with the original LyX definitio
21226 n because greyed out notes are redefined in the preamble of this document,
21227 as described below, to have blue text.
21236 As you can see in the example, the first line of greyed out notes is a bit
21237 indented and greyed out notes can have footnotes.
21240 \begin_layout Description
21241 Framed This note will appear in the output as framed text.
21242 Its note-box looks like this:
21247 \begin_inset Graphics
21248 filename clipart/FramedNoteImageQt4.png
21255 \begin_inset Note Framed
21258 \begin_layout Standard
21259 This is text in a note box that appears framed in the output.
21264 In contrary to framed boxes
21268 \begin_layout Standard
21269 Framed boxes are described in section\InsetSpace ~
21271 \begin_inset LatexCommand ref
21272 reference "sec:Framed-Boxes"
21281 the frame uses always the whole text width and the note is set into its
21285 \begin_layout Description
21286 Shaded This note will appear in the output with red background color.
21287 Its note box looks like this:
21292 \begin_inset Graphics
21293 filename clipart/ShadedNoteImageQt4.png
21300 \begin_inset Note Shaded
21303 \begin_layout Standard
21304 This text in a note box appears in the output with red background.
21309 In contrary to colored boxes
21313 \begin_layout Standard
21314 Colored boxes are described in section\InsetSpace ~
21316 \begin_inset LatexCommand ref
21317 reference "sec:Colored-Boxes"
21326 the note uses always the whole text width and the note is set into its
21330 \begin_layout Standard
21331 \begin_inset VSpace bigskip
21334 When you use the toolbar button to insert notes, a
21340 You can switch between the five note types by right-clicking on the note-box.
21345 If you want to turn existing text into a note, mark it and click on the
21361 \begin_layout Standard
21362 \begin_inset VSpace bigskip
21365 You can change the text color of the greyed out notes in the preamble with
21366 the following command:
21369 \begin_layout Standard
21374 renewenvironment{lyxgreyedout}
21380 \begin_layout Standard
21398 \begin_layout Standard
21399 The available colors and the method to define own colors is explained in
21400 section\InsetSpace ~
21402 \begin_inset LatexCommand ref
21403 reference "sec:Colored-Tables"
21410 \begin_layout Standard
21411 Notes that appear in blue in this document are set using greyed out notes
21415 \begin_layout Standard
21416 \begin_inset VSpace bigskip
21422 \begin_layout Standard
21431 notes can be set in the
21438 \begin_layout Standard
21439 The default frame width for
21443 notes is 0.4\InsetSpace \thinspace{}
21444 pt; it can be changed by changing the size
21451 The default space between the note content and the frame is 9\InsetSpace \thinspace{}
21453 be changed by changing the size
21460 For example the frame appearance of the following
21464 note is set with the ERT commands
21467 \begin_layout Standard
21477 \begin_layout Standard
21481 \begin_layout Standard
21493 \begin_inset Note Framed
21496 \begin_layout Standard
21510 \begin_layout Standard
21524 \begin_layout Standard
21525 \begin_inset VSpace bigskip
21531 \begin_layout Standard
21536 notes the default space between the note content and the note border is
21537 3\InsetSpace \thinspace{}
21538 pt; it can be changed by changing the size
21546 The default background color red can be changed with the command
21550 def\SpecialChar \textcompwordmark{}
21558 def\SpecialChar \textcompwordmark{}
21561 command is explained in section\InsetSpace ~
21563 \begin_inset LatexCommand ref
21564 reference "sec:Colored-Tables"
21572 \begin_layout Standard
21579 \SpecialChar \textcompwordmark{}
21584 requires the LaTeX-package
21588 in the preamble, see section\InsetSpace ~
21590 \begin_inset LatexCommand ref
21591 reference "sec:Colored-Boxes"
21603 \begin_layout Standard
21604 For example the appearance of the following
21608 note is set with the ERT commands
21611 \begin_layout Standard
21624 def\SpecialChar \textcompwordmark{}
21625 inecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21628 \begin_layout Standard
21632 \begin_layout Standard
21645 \begin_layout Standard
21649 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21655 \begin_inset Note Shaded
21658 \begin_layout Standard
21661 This is yellow text in a
21671 note with darkgreen background.
21680 \begin_layout Standard
21693 \begin_layout Standard
21697 definecolor{shadecolor}{rgb}{1,0,0}
21705 \begin_layout Section
21707 \begin_inset LatexCommand label
21708 name "sec:Footnotes"
21713 \begin_inset LatexCommand index
21714 name "Notes ! Footnotes"
21719 \begin_inset LatexCommand index
21727 \begin_layout Standard
21728 Footnotes can be inserted using the toolbar button
21729 \begin_inset Graphics
21730 filename ../images/footnote-insert.xpm
21737 Insert\SpecialChar \menuseparator
21749 then the following footnote-box:
21750 \begin_inset Graphics
21751 filename clipart/footnoteQt4.png
21760 where you can enter the footnote text.
21761 If you want to turn existing text into a footnote, mark it and click on
21777 \begin_layout Standard
21778 Here is an example footnote:
21786 \begin_layout Standard
21787 \begin_inset LatexCommand label
21788 name "foot:This-is-an"
21792 This is an example footnote.
21805 \begin_layout Standard
21809 newcounter{MyRepeatFoot}
21812 \begin_layout Standard
21816 setcounter{MyRepeatFoot}{
21826 \begin_layout Standard
21827 The footnote will appear in the output as a superscript number at the text
21828 position where the footnote box is placed.
21829 The footnote text is placed at the bottom of the current page.
21830 The footnote number is calculated by LaTeX, the numbers are consecutive.
21831 It depends on your document-class, if the footnote number is reset for
21835 \begin_layout Standard
21836 Footnotes can be referenced like floats: Insert a label into the footnote
21837 and cross-reference this label in the text as described in section\InsetSpace ~
21839 \begin_inset LatexCommand ref
21840 reference "sec:Referencing-Floats"
21846 This is a cross-reference of Footnote\InsetSpace ~
21848 \begin_inset LatexCommand ref
21849 reference "foot:This-is-an"
21856 \begin_layout Standard
21857 \begin_inset VSpace defskip
21860 To use footnotes within tables, you have to use minipages, see section\InsetSpace ~
21862 \begin_inset LatexCommand ref
21863 reference "sec:Minipages"
21868 Footnotes within longtables are described in section\InsetSpace ~
21870 \begin_inset LatexCommand ref
21871 reference "sub:Footnotes-in-Longtables"
21878 \begin_layout Standard
21879 \begin_inset VSpace defskip
21882 To create only a mark for a footnote, use the command
21886 footnotemark[number]
21889 This is used when you have the same annotation several times in a text
21890 but doesn't want to print the footnote text every time.
21893 the number of the repeating footnote while you are writing the text, you
21894 have to store its number.
21895 For the following footnote mark example, these commands were inserted in
21896 ERT behind Footnote\InsetSpace ~
21898 \begin_inset LatexCommand ref
21899 reference "foot:This-is-an"
21903 to store the footnote number:
21906 \begin_layout Standard
21911 newcounter{MyRepeatFoot}
21915 setcounter{MyRepeatFoot}{
21920 \begin_layout Standard
21921 The footnote mark was then created with this command:
21924 \begin_layout Standard
21934 \begin_layout Standard
21935 Here is an example footnote mark:
21943 \begin_layout Standard
21957 \begin_layout Subsection
21959 \begin_inset LatexCommand label
21960 name "sub:Footnote-Numbering"
21965 \begin_inset LatexCommand index
21966 name "Footnotes ! Numbering"
21973 \begin_layout Standard
21974 To reset the footnote number back to 1 after each section
21976 , add this command to your document preamble:
21979 \begin_layout Standard
21984 @addtoreset{footnote}{section}
21987 \begin_layout Standard
21988 \begin_inset VSpace bigskip
21991 The following preamble command changes the footnote numbering style to small
21995 \begin_layout Standard
22007 \begin_layout Standard
22011 \begin_layout Standard
22024 This is a footnote with roman numbering:
22028 \begin_layout Standard
22029 This is an example footnote with roman numbering.
22038 \begin_layout Standard
22054 \begin_layout Standard
22055 To change the numbering style to capital roman numerals replace in the command
22070 \begin_inset Quotes eld
22074 \begin_inset Quotes erd
22077 footnotes with capital or small Latin letters use
22091 \begin_inset Quotes eld
22095 \begin_inset Quotes erd
22098 footnotes with symbols use
22107 \begin_layout Standard
22108 \begin_inset Note Greyedout
22111 \begin_layout Standard
22116 You can only number 26 footnotes with Latin letters, because this numbering
22117 is limited to single letters.
22125 \begin_inset Note Greyedout
22128 \begin_layout Standard
22133 You can only number 9 footnotes with symbols.
22141 \begin_layout Standard
22142 To return to the default numbering style when you changed to another one,
22155 in the command above.
22158 \begin_layout Standard
22159 \begin_inset VSpace bigskip
22165 \begin_layout Standard
22166 If you want to have footnotes numbered in the scheme
22167 \begin_inset Quotes eld
22171 \begin_inset Quotes erd
22174 , add the following command to your document preamble:
22177 \begin_layout Standard
22182 numberwithin{footnote}{chapter}
22185 \begin_layout Standard
22186 To be able to use the command
22197 in the document settings the option
22207 \begin_layout Standard
22211 \begin_layout Standard
22215 numberwithin{footnote}{chapter}
22220 This is another example footnote:
22226 \begin_layout Standard
22227 This is a footnote numbered in the scheme
22228 \begin_inset Quotes eld
22232 \begin_inset Quotes erd
22246 \begin_layout Standard
22250 numberwithin{footnote}{part}
22258 \begin_layout Standard
22259 \begin_inset Note Greyedout
22262 \begin_layout Standard
22273 always prints out the footnote number as arabic number; previous redefinitions
22274 to get non-arabic numbers are overwritten.
22282 \begin_layout Standard
22283 So to get for example the scheme
22284 \begin_inset Quotes eld
22290 \begin_inset Quotes erd
22293 , use this command instead of
22302 \begin_layout Standard
22316 \begin_layout Subsection
22318 \begin_inset LatexCommand index
22319 name "Footnotes ! Placement"
22326 \begin_layout Standard
22327 If you have several footnotes in one page, they appear without vertical
22328 space between them at the bottom of the page.
22329 To make them better readable you can e.\InsetSpace \thinspace{}
22331 add 1.5\InsetSpace \thinspace{}
22332 mm space with the following
22336 \begin_layout Standard
22358 \begin_layout Standard
22359 \begin_inset VSpace bigskip
22362 In a two-column document the footnotes appear at the bottom of every column,
22363 see Figure\InsetSpace ~
22365 \begin_inset LatexCommand ref
22366 reference "fig:Standard-footnote-placement"
22371 If the footnotes should only appear at the bottom of the right column,
22372 as in Figure\InsetSpace ~
22374 \begin_inset LatexCommand ref
22375 reference "fig:Footnote-placement-in"
22379 , use the LaTeX-package
22384 \begin_inset LatexCommand index
22385 name "LaTeX-packages ! ftnright"
22389 with this command in the document preamble:
22392 \begin_layout Standard
22397 usepackage{ftnright}
22400 \begin_layout Standard
22401 \begin_inset Float figure
22407 \begin_layout Standard
22411 \begin_layout Standard
22421 \begin_inset Graphics
22422 filename clipart/without_fntright.pdf
22431 \begin_layout Standard
22441 \begin_layout Standard
22442 \begin_inset Caption
22444 \begin_layout Standard
22445 \begin_inset LatexCommand label
22446 name "fig:Standard-footnote-placement"
22450 Standard footnote placement in two-column documents.
22463 \begin_layout Standard
22464 \begin_inset Float figure
22470 \begin_layout Standard
22474 \begin_layout Standard
22484 \begin_inset Graphics
22485 filename clipart/with_fntright.pdf
22494 \begin_layout Standard
22504 \begin_layout Standard
22505 \begin_inset Caption
22507 \begin_layout Standard
22508 \begin_inset LatexCommand label
22509 name "fig:Footnote-placement-in"
22513 Footnote placement in two-column documents when the LaTeX-package
22530 \begin_layout Standard
22531 \begin_inset VSpace bigskip
22534 In some scientific literature it is usual to collect the footnotes and print
22535 them in a separate paragraph at the the end of a section, like in Figure\InsetSpace ~
22537 \begin_inset LatexCommand ref
22538 reference "fig:Endnotes----footnotes"
22543 They are then so called
22544 \begin_inset Quotes eld
22548 \begin_inset Quotes erd
22552 To use endnotes instead of footnotes in your document, load the LaTeX-package
22558 \begin_inset LatexCommand index
22559 name "LaTeX-packages ! endnotes"
22563 with the document preamble lines
22566 \begin_layout Standard
22571 usepackage{endnotes}
22582 \begin_layout Standard
22583 To insert the collected footnotes, insert the command
22586 \begin_layout Standard
22594 \begin_layout Standard
22595 in ERT at the the end of a section or chapter.
22598 \begin_layout Standard
22599 \begin_inset Float figure
22604 \begin_layout Standard
22609 \begin_layout Standard
22619 \begin_inset Graphics
22620 filename clipart/endnotes.pdf
22628 \begin_layout Standard
22638 \begin_layout Standard
22639 \begin_inset Caption
22641 \begin_layout Standard
22642 \begin_inset LatexCommand label
22643 name "fig:Endnotes----footnotes"
22647 Endnotes -- footnotes are printed in a separate paragraph at the end of
22648 sections or chapters.
22661 \begin_layout Standard
22662 \begin_inset VSpace defskip
22665 The paragraph heading for the endnotes isn't automatically translated into
22666 the document language, this must be done manually.
22667 The following preamble command translate the default English name
22668 \begin_inset Quotes eld
22672 \begin_inset Quotes erd
22675 to the German translation
22676 \begin_inset Quotes eld
22680 \begin_inset Quotes erd
22686 \begin_layout Standard
22693 notesname}{Anmerkungen}
22696 \begin_layout Standard
22697 \begin_inset VSpace defskip
22700 The numbering of endnotes can be changed like the footnote numbering as
22701 described in section\InsetSpace ~
22703 \begin_inset LatexCommand ref
22704 reference "sub:Footnote-Numbering"
22708 ; just replace the command
22721 To reset the endnote number use the command
22727 as described in section\InsetSpace ~
22729 \begin_inset LatexCommand ref
22730 reference "sub:Footnote-Numbering"
22734 and replace the command parameter
22745 \begin_layout Standard
22746 To create only a mark for an endnote, use the command
22750 endnotemark[number]
22752 similar to the command
22758 , described in section\InsetSpace ~
22760 \begin_inset LatexCommand ref
22761 reference "sec:Footnotes"
22768 \begin_layout Standard
22769 \begin_inset VSpace bigskip
22772 Footnotes can also be placed in the page margin and the footnote text alignment
22773 can be changed, see the LaTeX-package
22778 \begin_inset LatexCommand index
22779 name "LaTeX-packages ! footmisc"
22784 \begin_inset LatexCommand cite
22789 for more information about this.
22792 \begin_layout Standard
22793 For various further footnote formatting issues have a look at LaTeX-books,
22795 \begin_inset LatexCommand cite
22796 key "latexcompanion,latexguide,latexbook"
22803 \begin_layout Section
22805 \begin_inset LatexCommand index
22806 name "Notes ! Margin Notes"
22813 \begin_layout Standard
22814 Margin notes look and behave in LyX like footnotes.
22815 They are inserted via the menu
22817 Insert\SpecialChar \menuseparator
22818 Marginal\InsetSpace ~
22821 or the toolbar button
22822 \begin_inset Graphics
22823 filename ../images/marginalnote-insert.xpm
22839 \begin_inset Quotes eld
22843 \begin_inset Quotes erd
22846 appears where you can enter the text of the margin note.
22849 \begin_layout Standard
22850 At the side is an example margin note.
22854 \begin_inset Marginal
22857 \begin_layout Standard
22858 This is a margin note.
22866 \begin_layout Standard
22867 Margin notes appear at the right side in single-sided documents.
22868 In double-sided documents they appear in the outer margin -- left on even
22869 pages, right on odd pages.
22870 The text of margin notes is aligned opposite to the outer margin -- right-align
22871 ed when the note appears in the left margin.
22872 The first line of the margin note is placed at the position of the text
22873 line where it is inserted in the document.
22876 \begin_layout Standard
22877 \begin_inset VSpace bigskip
22880 To place the margin note in the inner margin, add the command
22883 \begin_layout Standard
22891 \begin_layout Standard
22892 in ERT before a margin note.
22893 The new placement is valid for all following margin notes.
22897 \begin_layout Standard
22907 \begin_inset Marginal
22910 \begin_layout Standard
22911 This is a margin note in the inner margin.
22923 \begin_inset Note Greyedout
22926 \begin_layout Standard
22931 There is often not enough space in the inner margin so that the notes are
22932 not correctly displayed in the output.
22940 \begin_layout Standard
22944 \begin_layout Standard
22953 To return to the default placement insert the command
22956 \begin_layout Standard
22964 \begin_layout Standard
22967 \begin_inset Note Greyedout
22970 \begin_layout Standard
22975 The command is ignored when it is within a paragraph where also the command
22990 \begin_layout Standard
22991 \begin_inset VSpace bigskip
22998 \begin_inset Marginal
23001 \begin_layout Standard
23002 AVeryLongMarginParWord that isn't hyphenated.
23010 Similar to the case described in section\InsetSpace ~
23012 \begin_inset LatexCommand ref
23013 reference "sub:Multiple-Lines-in"
23017 , long words cannot be hyphenated when they are the first word in a margin
23019 To avoid this, insert the command
23022 \begin_layout Standard
23030 \begin_layout Standard
23031 in ERT before the word
23035 \begin_inset Marginal
23038 \begin_layout Standard
23042 \begin_layout Standard
23051 AVeryLongMarginParWord that is hyphenated.
23059 \begin_layout Standard
23060 \begin_inset VSpace bigskip
23066 \begin_layout Standard
23067 \begin_inset Note Greyedout
23070 \begin_layout Standard
23075 Margin notes can normally not be used inside tables, floats, and footnotes.
23083 \begin_layout Standard
23084 \begin_inset VSpace bigskip
23090 \begin_layout Standard
23094 \begin_layout Standard
23104 \begin_inset Note Note
23107 \begin_layout Standard
23108 The following section will only be displayed when you have the LaTeX-package
23121 \begin_layout Standard
23122 This restriction can be evaded by using the LaTeX-package
23127 \begin_inset LatexCommand index
23128 name "LaTeX-packages ! marginnote"
23133 By adding these two lines to your document preamble, the command used by
23134 LyX for margin notes is redefined to use the command provided by the
23141 \begin_layout Standard
23146 usepackage{marginnote}
23157 \begin_layout Standard
23158 This is also used in this document because
23162 has another useful feature: You can set a vertical offset for the note.
23163 This is often needed when too many margin notes are too close together
23164 or for a better page layout.
23165 The offset is set in LyX as ERT directly behind the margin note in the
23169 \begin_layout Standard
23175 \begin_layout Standard
23176 where the offset is a length with one of the units listed in Table\InsetSpace ~
23178 \begin_inset LatexCommand ref
23179 reference "tab:Units"
23184 A negative value shifts the note up, a positive value shifts it down.
23188 For example the margin note beside this text line is shifted up 1.5\InsetSpace \thinspace{}
23191 \begin_inset Quotes eld
23201 \begin_inset Quotes erd
23205 \begin_inset Marginal
23208 \begin_layout Standard
23209 This margin note is shifted up 1.5\InsetSpace \thinspace{}
23210 cm from its original position.
23222 \begin_layout Standard
23232 \begin_layout Standard
23233 \begin_inset VSpace defskip
23240 you can also change the alignment of the text in the margin note.
23241 For example the commands
23244 \begin_layout Standard
23251 raggedleftmarginnote}{
23259 raggedrightmarginnote}{
23264 \begin_layout Standard
23265 set the alignment to centered.
23270 raggedleftmarginnote
23272 denotes margin notes that appear at the left side.
23279 \begin_layout Standard
23285 raggedleftmarginnote}{
23290 \begin_layout Standard
23296 raggedrightmarginnote}{
23304 \begin_inset Marginal
23307 \begin_layout Standard
23308 The text of this margin note is centered.
23319 \begin_layout Standard
23326 raggedleftmarginnote}{
23334 raggedrightmarginnote}{
23343 \begin_layout Standard
23349 raggedleftmarginnote}{
23354 \begin_layout Standard
23360 raggedrightmarginnote}{
23370 \begin_layout Standard
23371 \begin_inset VSpace defskip
23374 For the other features of
23378 we refer to its documentation
23379 \begin_inset LatexCommand cite
23387 \begin_layout Standard
23388 \begin_inset VSpace bigskip
23391 You can change the layout of margin notes by redefining its definition.
23392 To create for example a header for all margin notes with the underlined,
23393 sans-serif, and bold header text
23394 \begin_inset Quotes eld
23406 \begin_inset Quotes erd
23409 , add this to your document preamble:
23412 \begin_layout Standard
23435 \begin_layout Standard
23452 underbar{Attention!}}}%
23458 \begin_layout Standard
23476 \begin_layout Standard
23483 \begin_layout Standard
23494 \begin_layout Standard
23505 \begin_layout Standard
23513 underbar{Attention!}}}%
23516 \begin_layout Standard
23530 \begin_inset Marginal
23533 \begin_layout Standard
23534 This is a margin note with a defined heading.
23546 \begin_layout Standard
23560 \begin_layout Standard
23577 \begin_inset Note Note
23580 \begin_layout Standard
23581 The margin note format is changed only for this example.
23589 \begin_layout Standard
23593 \begin_layout Standard
23603 \begin_inset Note Note
23606 \begin_layout Standard
23607 The following will be displayed when the LaTeX-package
23619 \begin_layout Standard
23620 You need to install the LaTeX-package
23624 to see the following part of this section in the output.
23627 \begin_layout Standard
23631 \begin_layout Standard
23643 \begin_layout Chapter
23647 \begin_layout Section
23649 \begin_inset LatexCommand index
23650 name "Boxes ! Introduction"
23657 \begin_layout Standard
23658 Boxes are used to format a block of text.
23659 Boxes can be used to write documents with multiple languages, see section\InsetSpace ~
23661 \begin_inset LatexCommand ref
23662 reference "sec:Minipages"
23666 , to frame texts, see section\InsetSpace ~
23668 \begin_inset LatexCommand ref
23669 reference "sec:Framed-Boxes"
23673 , to prevent words to be hyphenated, see section\InsetSpace ~
23675 \begin_inset LatexCommand ref
23676 reference "sec:Prevent-Hyphenation"
23680 , to align text, see section\InsetSpace ~
23682 \begin_inset LatexCommand ref
23683 reference "sub:Vertical-Alignment"
23687 , or to set the background color of texts, see section\InsetSpace ~
23689 \begin_inset LatexCommand ref
23690 reference "sec:Colored-Boxes"
23697 \begin_layout Standard
23698 Boxes can be inserted with the menu
23700 Insert\SpecialChar \menuseparator
23704 A grey box with the label
23709 \begin_inset Graphics
23710 filename clipart/BoxInsetDefaultQt4.png
23715 , will be inserted.
23716 The box type can be specified by right-clicking on the box.
23717 The appearing box dialog offers the
23735 is the default for new boxes and is explained in section\InsetSpace ~
23737 \begin_inset LatexCommand ref
23738 reference "sec:Minipages"
23746 is described in section\InsetSpace ~
23748 \begin_inset LatexCommand ref
23749 reference "sec:Parboxes"
23756 \begin_layout Standard
23757 Boxes aren't numbered and can therefore not be referenced like floats or
23761 \begin_layout Standard
23762 \begin_inset Note Greyedout
23765 \begin_layout Standard
23770 Due to a bug in LyX you have to insert a protected space behind a box when
23771 you want to separate in a line the box from the following text with a space.
23779 \begin_layout Standard
23780 \begin_inset Note Greyedout
23783 \begin_layout Standard
23788 Boxes must not be the item in an
23804 \begin_layout Standard
23805 \begin_inset Note Greyedout
23808 \begin_layout Standard
23813 For an unknown reason you can only set the
23822 when you use a framed box.
23828 type and without frames are explained in section\InsetSpace ~
23830 \begin_inset LatexCommand ref
23831 reference "sec:Prevent-Hyphenation"
23843 \begin_layout Section
23845 \begin_inset LatexCommand label
23846 name "sec:Box-Dialog"
23851 \begin_inset LatexCommand index
23852 name "Boxes ! Box Dialog"
23857 \begin_inset LatexCommand index
23858 name "Boxes ! Alignment"
23865 \begin_layout Standard
23866 In the box dialog you can adjust the box geometry in the fields
23875 The available units for the geometry are explained in Table\InsetSpace ~
23877 \begin_inset LatexCommand ref
23878 reference "tab:Units"
23887 offers the following additional sizes:
23890 \begin_layout Description
23891 Depth This is the plain text
23892 \begin_inset Quotes eld
23896 \begin_inset Quotes erd
23900 It ignores the total depth when there are multiple text lines in the box:
23907 \begin_inset Box Boxed
23916 height_special "depth"
23919 \begin_layout Standard
23921 Box height set to 1\InsetSpace \thinspace{}
23934 \begin_layout Description
23935 Height This is the heigth of the text that is inside the box.
23936 A value of e.\InsetSpace \thinspace{}
23938 2 for this size will set the box heigth to 2 times the text
23940 \begin_inset Box Boxed
23949 height_special "height"
23952 \begin_layout Standard
23954 Box height set to 2\InsetSpace \thinspace{}
23963 \begin_layout Description
23965 Height This is the Height\InsetSpace \thinspace{}
23966 +\InsetSpace \thinspace{}
23968 \begin_inset Box Boxed
23977 height_special "totalheight"
23980 \begin_layout Standard
23982 Box height set to 1\InsetSpace \thinspace{}
23992 \begin_layout Description
23993 Width This set the width of the box as heigth:
23994 \begin_inset Box Boxed
24003 height_special "width"
24006 \begin_layout Standard
24008 Box height set to 1\InsetSpace \thinspace{}
24017 \begin_layout Standard
24018 \begin_inset VSpace bigskip
24021 When you have chosen an
24026 , the vertical box alignment can be:
24029 \begin_layout Description
24030 Top This is an example text line.
24032 \begin_inset Box Boxed
24041 height_special "totalheight"
24044 \begin_layout Standard
24046 This box is top-aligned.
24052 This is an example text line.
24055 \begin_layout Description
24056 Middle This is an example text line.
24058 \begin_inset Box Boxed
24067 height_special "totalheight"
24070 \begin_layout Standard
24072 This box is middle-aligned.
24078 This is an example text line.
24081 \begin_layout Description
24082 Bottom This is an example text line.
24084 \begin_inset Box Boxed
24093 height_special "totalheight"
24096 \begin_layout Standard
24098 This box is bottom-aligned.
24104 This is an example text line.
24107 \begin_layout Standard
24108 The horizontal box alignment can be set via LyX's paragraph dialog when
24109 you set the box into its own paragraph.
24112 \begin_layout Standard
24113 \begin_inset VSpace bigskip
24116 When you have chosen an
24121 , the box content can be vertical aligned to:
24124 \begin_layout Description
24125 top This is an example text line.
24127 \begin_inset Box Boxed
24136 height_special "totalheight"
24139 \begin_layout Standard
24141 This box text is top-aligned.
24147 This is an example text line.
24150 \begin_layout Description
24151 middle This is an example text line.
24153 \begin_inset Box Boxed
24162 height_special "totalheight"
24165 \begin_layout Standard
24167 This box text is middle-aligned.
24173 This is an example text line.
24176 \begin_layout Description
24177 bottom This is an example text line.
24179 \begin_inset Box Boxed
24188 height_special "totalheight"
24191 \begin_layout Standard
24193 This box text is bottom-aligned.
24199 This is an example text line.
24202 \begin_layout Description
24203 stretch This is an example text line.
24205 \begin_inset Box Boxed
24214 height_special "totalheight"
24217 \begin_layout Standard
24222 \begin_layout Standard
24227 \begin_layout Standard
24235 This is an example text line.
24238 \begin_layout Standard
24239 To stretch the box content, it must consist of more than one paragraph.
24240 In the example above every text line is in an own paragraph.
24243 \begin_layout Standard
24244 \begin_inset VSpace bigskip
24247 To align the box content horizontally you can use LyX's paragraph dialog
24248 when you have chosen an
24256 \begin_layout Standard
24258 \begin_inset Box Boxed
24267 height_special "totalheight"
24270 \begin_layout Standard
24275 \begin_layout Standard
24280 \begin_layout Standard
24290 \begin_layout Standard
24291 If you haven't set an
24296 , you can align the box content horizontally in the box dialog.
24299 \begin_layout Standard
24301 \begin_inset Box Boxed
24310 height_special "totalheight"
24313 \begin_layout Standard
24315 This box text is horizontally stretched.
24323 \begin_layout Section
24325 \begin_inset LatexCommand label
24326 name "sec:Framed-Boxes"
24331 \begin_inset LatexCommand index
24332 name "Boxes ! Frames"
24339 \begin_layout Standard
24340 The frame style of the box can be specified in the box-dialog in the drop-down
24346 The following frame types are possible:
24349 \begin_layout Description
24350 Rectangular\InsetSpace ~
24351 box This draws a rectangle frame around the box.
24352 The frame line thickness has the size of
24360 \begin_inset Box Boxed
24369 height_special "totalheight"
24372 \begin_layout Standard
24382 \begin_layout Description
24385 thin This draws an oval frame around the box.
24386 The frame line thickness has the size 0.4\InsetSpace \thinspace{}
24389 \begin_inset Box ovalbox
24398 height_special "totalheight"
24401 \begin_layout Standard
24411 \begin_layout Description
24414 thick This draws an oval frame around the box.
24415 The frame line thickness has the size 0.8\InsetSpace \thinspace{}
24418 \begin_inset Box Ovalbox
24427 height_special "totalheight"
24430 \begin_layout Standard
24440 \begin_layout Description
24441 Shadow\InsetSpace ~
24442 box This draws a rectangle frame with a shadow around the box.
24443 The frame line thickness has the size of
24449 , the shadow has a width of 4\InsetSpace \thinspace{}
24452 \begin_inset Box Shadowbox
24461 height_special "totalheight"
24464 \begin_layout Standard
24474 \begin_layout Description
24475 Double\InsetSpace ~
24476 box This draws a double-line rectangle frame around the box.
24477 The line thickness of the inner frame is 0.75\InsetSpace \thinspace{}
24484 , the thickness of the outer frame is 1.5\InsetSpace \thinspace{}
24492 The distance between the lines is 1.5\InsetSpace \thinspace{}
24499 \InsetSpace \thinspace{}
24500 +\InsetSpace \thinspace{}
24501 0.5\InsetSpace \thinspace{}
24504 \begin_inset Box Doublebox
24513 height_special "totalheight"
24516 \begin_layout Standard
24526 \begin_layout Standard
24527 \begin_inset VSpace bigskip
24530 LyX's box label will change to the used frame style when you set a frame.
24531 To be able to use the different frame styles, the LaTeX-package
24536 \begin_inset LatexCommand index
24537 name "LaTeX-packages ! fancybox"
24544 \begin_layout Standard
24545 \begin_inset VSpace bigskip
24548 The default value for the size
24554 is 0.4\InsetSpace \thinspace{}
24556 It can be changed with the following command in ERT to e.\InsetSpace \thinspace{}
24558 2\InsetSpace \thinspace{}
24562 \begin_layout Standard
24572 \begin_layout Standard
24576 \begin_layout Standard
24588 \begin_inset Box Boxed
24597 height_special "totalheight"
24600 \begin_layout Standard
24602 Rectangular box with
24608 \InsetSpace \thinspace{}
24609 =\InsetSpace \thinspace{}
24610 2\InsetSpace \thinspace{}
24620 \begin_layout Standard
24634 \begin_layout Standard
24635 \begin_inset VSpace bigskip
24638 The space between the frame and the box content is for all frame styles
24639 by default 3\InsetSpace \thinspace{}
24641 You can change it by setting the length
24648 For example the command
24651 \begin_layout Standard
24661 \begin_layout Standard
24662 sets the value to 10\InsetSpace \thinspace{}
24663 pt, like for the following box:
24666 \begin_layout Standard
24670 \begin_layout Standard
24682 \begin_inset Box Boxed
24691 height_special "totalheight"
24694 \begin_layout Standard
24696 Rectangular box with
24702 \InsetSpace \thinspace{}
24703 =\InsetSpace \thinspace{}
24704 10\InsetSpace \thinspace{}
24714 \begin_layout Standard
24728 \begin_layout Standard
24729 \begin_inset VSpace bigskip
24732 The diameter of the round corners of the oval boxes can be set with the
24743 \begin_layout Standard
24751 \begin_layout Standard
24752 sets the diameter to 1\InsetSpace \thinspace{}
24757 \begin_layout Standard
24765 \begin_layout Standard
24766 sets the diameter to
24768 num\InsetSpace \thinspace{}
24769 ×\InsetSpace \thinspace{}
24770 minimum(width and heigth of box)
24782 \begin_layout Standard
24786 \begin_layout Standard
24796 \begin_inset Box Ovalbox
24805 height_special "totalheight"
24808 \begin_layout Standard
24816 \InsetSpace \thinspace{}
24817 =\InsetSpace \thinspace{}
24818 1.5\InsetSpace \thinspace{}
24828 \begin_layout Standard
24840 \begin_layout Standard
24841 \begin_inset VSpace bigskip
24844 The size of the shadow can be adjusted by changing the length
24851 It it set to 2\InsetSpace \thinspace{}
24852 pt for the following box by this command:
24855 \begin_layout Standard
24865 \begin_layout Standard
24869 \begin_layout Standard
24881 \begin_inset Box Shadowbox
24890 height_special "totalheight"
24893 \begin_layout Standard
24901 \InsetSpace \thinspace{}
24902 =\InsetSpace \thinspace{}
24903 2\InsetSpace \thinspace{}
24913 \begin_layout Standard
24927 \begin_layout Standard
24928 \begin_inset VSpace bigskip
24931 Changed lengths and widths are valid for all boxes following the commands
24935 \begin_layout Section
24937 \begin_inset LatexCommand label
24938 name "sec:Minipages"
24943 \begin_inset LatexCommand index
24944 name "Boxes ! Minipages"
24951 \begin_layout Standard
24952 Minipages are treated by LaTeX as pages within pages and can therefore for
24953 example have their own footnotes.
24956 \begin_layout Standard
24957 Minipages are useful when you write documents with different languages.
24960 \begin_layout Standard
24961 Below are two example minipages side by side.
24962 Their width is set to 45\InsetSpace \thinspace{}
24963 col% and they are separated by a horizontal fill,
24964 that was inserted via the menu
24966 Insert\SpecialChar \menuseparator
24967 Special\InsetSpace ~
24968 Formatting\SpecialChar \menuseparator
24969 Horizontal\InsetSpace ~
24975 \begin_layout Standard
24976 \begin_inset Box Frameless
24985 height_special "totalheight"
24988 \begin_layout Standard
24991 Dies ist ein deutscher Text.
24992 Dies ist ein deutscher Text.
24993 Dies ist ein deutscher Text.
24994 Dies ist ein deutscher Text.
24995 Dies ist ein deutscher Text.
24996 Dies ist ein deutscher Text.
24997 Dies ist ein deutscher Text.
24998 Dies ist ein deutscher Text.
24999 Dies ist ein deutscher Text.
25000 Dies ist ein deutscher Text.
25001 Dies ist ein deutscher Text.
25002 Dies ist ein deutscher Text.
25003 Dies ist ein deutscher Text
25007 \begin_layout Standard
25010 Dies ist eine deutsche Fußnote.
25016 Dies ist ein deutscher Text.
25017 Dies ist ein deutscher Text.
25025 \begin_inset Box Frameless
25034 height_special "totalheight"
25037 \begin_layout Standard
25038 This is an English Text.
25039 This is an English Text.
25040 This is an English Text.
25041 This is an English Text.
25042 This is an English Text.
25043 This is an English Text.
25044 This is an English Text.
25045 This is an English Text.
25046 This is an English Text.
25047 This is an English Text.
25048 This is an English Text.
25049 This is an English Text.
25050 This is an English Text.
25051 This is an English Text.
25052 This is an English Text.
25053 This is an English Text.
25057 \begin_layout Standard
25058 This is an English footnote.
25063 This is an English Text.
25072 \begin_layout Standard
25073 \begin_inset VSpace bigskip
25076 Another application for minipages are footnotes within tables.
25077 Due to a LaTeX restriction footnotes within tables doesn't appear at the
25078 bottom of the current page.
25079 But when you put the table with the footnote to a minipage, the footnote
25080 will appear at its bottom, numbered with Latin letters.
25081 The footnote number is reset to 1 in every minipage but not outside the
25085 \begin_layout Standard
25086 The footnote of this table doesn't appear:
25087 \begin_inset Tabular
25088 <lyxtabular version="3" rows="3" columns="4">
25090 <column alignment="center" valignment="top" leftline="true" width="0pt">
25091 <column alignment="center" valignment="top" leftline="true" width="0pt">
25092 <column alignment="center" valignment="top" leftline="true" width="0pt">
25093 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25094 <row topline="true">
25095 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25098 \begin_layout Standard
25104 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25107 \begin_layout Standard
25113 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25116 \begin_layout Standard
25121 \begin_layout Standard
25122 This is a footnote within a table.
25132 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25135 \begin_layout Standard
25142 <row topline="true">
25143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25146 \begin_layout Standard
25152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25155 \begin_layout Standard
25161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25164 \begin_layout Standard
25170 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25173 \begin_layout Standard
25180 <row topline="true" bottomline="true">
25181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25184 \begin_layout Standard
25190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25193 \begin_layout Standard
25199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25202 \begin_layout Standard
25208 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25211 \begin_layout Standard
25225 \begin_layout Standard
25227 \begin_inset Box Frameless
25236 height_special "totalheight"
25239 \begin_layout Standard
25241 \begin_inset Tabular
25242 <lyxtabular version="3" rows="3" columns="4">
25244 <column alignment="center" valignment="top" leftline="true" width="0pt">
25245 <column alignment="center" valignment="top" leftline="true" width="0pt">
25246 <column alignment="center" valignment="top" leftline="true" width="0pt">
25247 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25248 <row topline="true">
25249 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25252 \begin_layout Standard
25258 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25261 \begin_layout Standard
25267 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25270 \begin_layout Standard
25275 \begin_layout Standard
25276 This is a footnote within a table.
25286 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25289 \begin_layout Standard
25296 <row topline="true">
25297 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25300 \begin_layout Standard
25306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25309 \begin_layout Standard
25315 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25318 \begin_layout Standard
25324 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25327 \begin_layout Standard
25334 <row topline="true" bottomline="true">
25335 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25338 \begin_layout Standard
25344 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25347 \begin_layout Standard
25353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25356 \begin_layout Standard
25362 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25365 \begin_layout Standard
25384 \begin_layout Standard
25385 \begin_inset VSpace bigskip
25388 The document-wide paragraph settings are ignored within minipages.
25389 That means that there will be no space between paragraphs in minipages
25390 although you set it to e.\InsetSpace \thinspace{}
25396 in the document settings.
25399 \begin_layout Standard
25400 Minipages can also be used to set a background color for text parts, see
25401 section\InsetSpace ~
25403 \begin_inset LatexCommand ref
25404 reference "sub:Color-for-Paragraphs"
25411 \begin_layout Standard
25412 \begin_inset Note Greyedout
25415 \begin_layout Standard
25420 You cannot have floats or margin notes inside minipages but minipages can
25421 be used inside tables, floats, and other boxes.
25429 \begin_layout Section
25431 \begin_inset LatexCommand label
25432 name "sec:Parboxes"
25437 \begin_inset LatexCommand index
25438 name "Boxes ! Parboxes"
25445 \begin_layout Standard
25446 Parboxes are very similar to minipages with the difference that they cannot
25448 The main difference to minipages is that minipages are in contrary to parboxes
25449 no real boxes but LaTeX-environments.
25452 \begin_layout Standard
25454 \begin_inset Box Frameless
25463 height_special "totalheight"
25466 \begin_layout Standard
25467 This a text within a parbox.
25468 This a text within a parbox.
25471 \begin_layout Standard
25472 This footnote won't appear:
25476 \begin_layout Standard
25477 This footnote is inside a parbox and will therefore not appear.
25490 \begin_layout Section
25491 Boxes for Words and Characters
25492 \begin_inset LatexCommand index
25493 name "Boxes ! for Characters"
25500 \begin_layout Subsection
25501 Prevent Hyphenation
25502 \begin_inset LatexCommand label
25503 name "sec:Prevent-Hyphenation"
25508 \begin_inset LatexCommand index
25509 name "Boxes ! to Prevent Hyphenation"
25516 \begin_layout Standard
25517 You can use a special kind of boxes to prevent words or text to be hyphenated.
25520 e is an example text:
25523 \begin_layout Standard
25524 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25530 \begin_layout Standard
25531 To prevent the hyphenation of the word
25532 \begin_inset Quotes eld
25536 \begin_inset Quotes erd
25542 \begin_layout Standard
25550 \begin_layout Standard
25551 in ERT before the word.
25552 Behind the word insert a closing brace
25553 \begin_inset Quotes eld
25561 \begin_inset Quotes erd
25568 \begin_layout Standard
25580 \begin_layout Standard
25581 This is the result:
25584 \begin_layout Standard
25585 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25591 \begin_layout Standard
25604 \begin_layout Standard
25614 \begin_layout Standard
25615 Of course the word now protrudes over the side margin.
25616 To avoid this, add via the menu
25618 Insert\SpecialChar \menuseparator
25619 Special\InsetSpace ~
25620 Formatting\SpecialChar \menuseparator
25628 ) a line break before the word:
25631 \begin_layout Standard
25632 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25640 \begin_layout Standard
25653 \begin_layout Standard
25663 \begin_layout Subsection
25665 \begin_inset LatexCommand label
25666 name "sub:Vertical-Alignment"
25671 \begin_inset LatexCommand index
25672 name "Boxes ! for Vertical Alignment"
25677 \begin_inset LatexCommand index
25678 name "Boxes ! Raiseboxes"
25685 \begin_layout Standard
25686 With the help of the command
25692 you can align words, characters or other boxes vertically to the surrounding
25700 is used with the following scheme:
25703 \begin_layout Standard
25708 raisebox{lift}[height][depth]{box content}
25711 \begin_layout Standard
25712 The lift can be a positive value to raise the box or a negative value to
25716 \begin_layout Standard
25717 To align for example the word
25718 \begin_inset Quotes eld
25722 \begin_inset Quotes erd
25725 so that the bottom of the
25726 \begin_inset Quotes eld
25730 \begin_inset Quotes erd
25734 \begin_inset Quotes eld
25738 \begin_inset Quotes erd
25741 is at the baseline, insert the command
25744 \begin_layout Standard
25754 \begin_layout Standard
25755 in ERT before the word.
25756 Behind the word insert a closing brace
25757 \begin_inset Quotes eld
25765 \begin_inset Quotes erd
25770 This is the result:
25773 \begin_layout Standard
25774 This is a text line with the word
25778 \begin_layout Standard
25790 \begin_inset Quotes eld
25794 \begin_inset Quotes erd
25801 \begin_layout Standard
25811 \begin_layout Standard
25812 \begin_inset VSpace bigskip
25815 When you raise or lower characters in a line, the line distance will be
25819 \begin_layout Standard
25820 This is a text line with the word
25824 \begin_layout Standard
25836 \begin_inset Quotes eld
25840 \begin_inset Quotes erd
25847 \begin_layout Standard
25856 This is a text line with the word
25860 \begin_layout Standard
25870 \begin_inset Quotes eld
25874 \begin_inset Quotes erd
25881 \begin_layout Standard
25891 \begin_layout Standard
25892 If you want to prevent this for a certain reason, set the box height to
25897 \begin_layout Standard
25907 \begin_layout Standard
25908 This is a text line with the word
25912 \begin_layout Standard
25924 \begin_inset Quotes eld
25928 \begin_inset Quotes erd
25935 \begin_layout Standard
25944 This is a text line with the word
25948 \begin_layout Standard
25952 raisebox{0.5cm}[0pt]{
25958 \begin_inset Quotes eld
25962 \begin_inset Quotes erd
25969 \begin_layout Standard
25979 \begin_layout Section
25981 \begin_inset LatexCommand label
25982 name "sec:Colored-Boxes"
25987 \begin_inset LatexCommand index
25988 name "Boxes ! Color"
25995 \begin_layout Subsection
25997 \begin_inset LatexCommand index
25998 name "Color ! for Text"
26005 \begin_layout Standard
26006 To color the background of text the text must be put into a so called colorbox.
26007 This requires that the LaTeX-package
26012 \begin_inset LatexCommand index
26013 name "LaTeX-packages ! color"
26017 is loaded in the document preamble with the command
26020 \begin_layout Standard
26025 @ifundef\SpecialChar \textcompwordmark{}
26032 \begin_layout Standard
26043 usepackage{color}}{}
26046 \begin_layout Standard
26051 will be loaded automatically by LyX when you color text
26055 \begin_layout Standard
26056 To avoid that it is loaded twice the command
26060 @ifundef\SpecialChar \textcompwordmark{}
26071 \begin_layout Standard
26072 \begin_inset VSpace medskip
26075 Colorboxes are created with the command
26082 This will be used with the following scheme:
26085 \begin_layout Standard
26090 colorbox{color}{box content}
26093 \begin_layout Standard
26094 The box content can also be a box and colorboxes can also be within other
26098 \begin_layout Standard
26099 The following colors are predefined:
26138 You can also define your own color as described in section\InsetSpace ~
26140 \begin_inset LatexCommand ref
26141 reference "sec:Colored-Tables"
26148 \begin_layout Standard
26149 To have e.\InsetSpace \thinspace{}
26151 a red background for a word, insert the command
26154 \begin_layout Standard
26162 \begin_layout Standard
26163 before the word in ERT.
26164 Behind the word insert a closing brace
26165 \begin_inset Quotes eld
26173 \begin_inset Quotes erd
26178 This is the result:
26181 \begin_layout Standard
26182 This is a line where the word
26186 \begin_layout Standard
26196 \begin_inset Quotes eld
26200 \begin_inset Quotes erd
26207 \begin_layout Standard
26214 has a red background.
26217 \begin_layout Standard
26218 \begin_inset VSpace bigskip
26221 If you would have the box frame in a different color, you can use the command
26228 with the following scheme:
26231 \begin_layout Standard
26236 fcolorbox{frame color}{box color}{box content}
26239 \begin_layout Standard
26253 The frame thickness and the space between the frame and the box content
26254 can be adjusted with the lengths
26266 , respectively, as described in section\InsetSpace ~
26268 \begin_inset LatexCommand ref
26269 reference "sec:Framed-Boxes"
26276 \begin_layout Standard
26277 For the following example the command
26280 \begin_layout Standard
26285 fcolorbox{cyan}{magenta}{
26288 \begin_layout Standard
26292 \begin_layout Standard
26293 Here is an example where the frame line thickness was set to 1\InsetSpace \thinspace{}
26300 \begin_layout Standard
26315 \begin_layout Standard
26319 fcolorbox{cyan}{magenta}{
26324 This is text within a colored, framed box.
26328 \begin_layout Standard
26338 \begin_layout Standard
26339 \begin_inset VSpace bigskip
26342 Of course you can also have colored text inside a colorbox:
26348 \begin_layout Standard
26352 fcolorbox{cyan}{magenta}{
26359 This is colored text within a colored, framed box.
26365 \begin_layout Standard
26376 \begin_layout Standard
26390 \begin_layout Standard
26393 \begin_inset VSpace medskip
26399 \begin_layout Standard
26400 \begin_inset Note Greyedout
26403 \begin_layout Standard
26408 Text in colorboxes cannot have line breaks.
26409 To color multiple text lines or paragraphs, use a box inside a colorbox
26410 as described in the following.
26418 \begin_layout Subsection
26419 Color for Paragraphs
26420 \begin_inset LatexCommand label
26421 name "sub:Color-for-Paragraphs"
26426 \begin_inset LatexCommand index
26427 name "Color ! for Paragraphs"
26434 \begin_layout Standard
26435 To set the background color for more than one text line, put the text into
26437 Before the minipage insert the
26446 \begin_layout Standard
26454 \begin_layout Standard
26456 Behind the minipage insert a closing brace
26457 \begin_inset Quotes eld
26465 \begin_inset Quotes erd
26471 \begin_layout Standard
26475 \begin_layout Standard
26479 colorbox{lightgrey}{
26485 \begin_inset Box Frameless
26494 height_special "totalheight"
26497 \begin_layout Standard
26498 This is text with background color.
26499 This is text with background color.
26502 \begin_layout Standard
26503 \begin_inset VSpace defskip
26506 The text can have footnotes
26510 \begin_layout Standard
26511 Another example footnote
26516 and can include tables and figures.
26519 \begin_layout Standard
26521 \begin_inset Tabular
26522 <lyxtabular version="3" rows="3" columns="3">
26524 <column alignment="center" valignment="top" leftline="true" width="0">
26525 <column alignment="center" valignment="top" leftline="true" width="0">
26526 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
26527 <row topline="true">
26528 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26531 \begin_layout Standard
26537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26540 \begin_layout Standard
26546 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26549 \begin_layout Standard
26556 <row topline="true">
26557 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26560 \begin_layout Standard
26566 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26569 \begin_layout Standard
26571 \begin_inset Quotes erd
26579 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26582 \begin_layout Standard
26589 <row topline="true" bottomline="true">
26590 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26593 \begin_layout Standard
26599 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26602 \begin_layout Standard
26608 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26611 \begin_layout Standard
26631 \begin_layout Standard
26641 \begin_layout Section
26642 URLs (Uniform Resource Locators)
26643 \begin_inset LatexCommand index
26651 \begin_layout Standard
26652 Links to web pages or email addresses can be inserted via the menu
26654 Insert\SpecialChar \menuseparator
26658 The appearing URL dialog has two fields; the
26666 field for the URL description, which will be typeset as plain text immediately
26670 \begin_layout Standard
26671 Here is an example URL:
26672 \begin_inset LatexCommand url
26673 name "LyX's homepage"
26674 target "http://www.lyx.org"
26681 \begin_layout Standard
26684 Generate\InsetSpace ~
26687 in the URL dialog has only an affect when you export your document to the
26689 \begin_inset Quotes eld
26697 \begin_inset Quotes erd
26703 \begin_layout Standard
26704 You cannot change the style of the link text.
26709 field will have the default text style of the document while the text of
26714 field will have the style
26715 \begin_inset Quotes eld
26723 \begin_inset Quotes erd
26729 \begin_layout Standard
26730 When you use the LaTeX-package
26735 \begin_inset LatexCommand index
26736 name "LaTeX-packages ! hyperref"
26740 to link cross-references in the output, URLs will automatically become
26741 clickable hyperlinks in DVI and PDF-output.
26744 \begin_layout Standard
26745 \begin_inset Note Greyedout
26748 \begin_layout Standard
26753 When you use the following characters: "%", "#", "^", you have to write
26754 them with a preceding backslash, e.\InsetSpace \thinspace{}
26757 \begin_inset Quotes eld
26763 \begin_inset Quotes erd
26767 URLs must not end with a backslash.
26775 \begin_layout Standard
26776 \begin_inset VSpace bigskip
26779 To create real hyperlinks without the force to write the link location to
26780 the text, you can use the command
26783 \begin_layout Standard
26788 href{link location}{link text}
26791 \begin_layout Standard
26793 To get for example a link to LyX's web page, write the command
26796 \begin_layout Standard
26801 href{http://www.lyx.org}{
26804 \begin_layout Standard
26806 Insert after the command the link text
26807 \begin_inset Quotes eld
26811 \begin_inset Quotes erd
26814 as normal text followed by a closing brace
26815 \begin_inset Quotes eld
26823 \begin_inset Quotes erd
26827 This is the result:
26831 \begin_layout Standard
26835 href{http://www.lyx.org}{
26844 \begin_layout Standard
26854 \begin_layout Standard
26855 To link to email addresses, add the prefix
26856 \begin_inset Quotes eld
26864 \begin_inset Quotes erd
26867 to the link location:
26873 \begin_layout Standard
26877 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's documentation}{
26882 lyx-docs mailing list
26886 \begin_layout Standard
26896 \begin_layout Standard
26903 instead of LyX's URL box has the advantage that you can specify the text
26904 style of the link text like for all other text parts.
26905 You can therefore set hyphenation points and forced linebreaks to have
26906 long link text broken at the page margin.
26907 You are furthermore able to change the text style for all URLs in your
26908 document with an option in
26912 's load command and the restrictions mentioned above doesn't apply for
26921 \begin_layout Chapter
26923 \begin_inset LatexCommand index
26924 name "External Stuff"
26931 \begin_layout Standard
26934 Insert\SpecialChar \menuseparator
26937 you can insert external material to your document.
26941 \begin_layout Description
26943 Document Another LyX document; its content is directly inserted to your
26947 \begin_layout Description
26949 Text A text document; every of its text lines is inserted to your document
26953 \begin_layout Description
26957 Lines A text document; its text lines are inserted as they
26959 Empty text lines creates a new paragraph in your document.
26962 \begin_layout Description
26963 External\InsetSpace ~
26964 Material Files in various formats.
26967 \begin_layout Description
26969 Document LyX or LaTeX-documents.
26972 \begin_layout Section
26974 \begin_inset LatexCommand index
26975 name "External Stuff ! External Material"
26982 \begin_layout Standard
26983 The external material feature allows you to insert files to your document
26984 without converting them previously to a format that can be read by the
26985 document output format because LyX takes care of needed conversions.
26986 This is similar to images that can be inserted in various image formats
26990 \begin_layout Standard
26991 External material can be inserted via the
26995 dialog that is accessible with the menu
26997 Insert\SpecialChar \menuseparator
26998 File\SpecialChar \menuseparator
26999 External\InsetSpace ~
27003 Currently the following file types (
27010 \begin_layout Description
27011 ChessDiagram This template supports chess position diagrams made with the
27016 \begin_layout Standard
27020 href{http://en.wikipedia.org/wiki/XBoard}{
27033 \begin_layout Standard
27043 \begin_layout Description
27044 Date This inserts the date in the form
27049 This is a date inserted as external material:
27050 \begin_inset External
27058 The date is not shown within LyX, only in the output.
27059 There are two other methods of inserting a date, via menu
27061 Insert\SpecialChar \menuseparator
27064 and with the LaTeX command
27071 The different methods are compared in Table\InsetSpace ~
27073 \begin_inset LatexCommand ref
27074 reference "tab:Comparison-of-the"
27081 \begin_layout Description
27082 LilyPond This template is used for music notation typeset with the program
27086 \begin_layout Standard
27099 \begin_layout Standard
27103 href{http://en.wikipedia.org/wiki/LilyPond}{
27116 \begin_layout Standard
27124 \begin_inset Note Note
27127 \begin_layout Standard
27134 breaks the line while the remaining text in the line is stretched to the
27143 \begin_layout Description
27144 RasterImage This can be used for bitmap images.
27145 Nearly all popular image formats are supported.
27146 The image can be treated in the
27150 dialog like the images that are usually included via the
27154 dialog as described in section\InsetSpace ~
27156 \begin_inset LatexCommand ref
27157 reference "sec:Graphics-Dialog"
27162 The difference is that only raster images are allowed, that means that
27163 PDF and EPS-images are not supported.
27166 \begin_layout Description
27167 XFig This template supports images created with the program
27171 \begin_layout Standard
27175 href{http://en.wikipedia.org/wiki/Xfig}{
27188 \begin_layout Standard
27198 \begin_layout Standard
27199 \begin_inset Float table
27205 \begin_layout Standard
27206 \begin_inset Caption
27208 \begin_layout Standard
27209 \begin_inset LatexCommand label
27210 name "tab:Comparison-of-the"
27214 Comparison of the date input methods.
27222 \begin_layout Standard
27224 \begin_inset Tabular
27225 <lyxtabular version="3" rows="4" columns="4">
27227 <column alignment="center" valignment="top" leftline="true" width="0">
27228 <column alignment="center" valignment="top" leftline="true" width="0">
27229 <column alignment="center" valignment="top" leftline="true" width="0">
27230 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27231 <row topline="true">
27232 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27235 \begin_layout Standard
27241 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27244 \begin_layout Standard
27247 External Material\SpecialChar \menuseparator
27253 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27256 \begin_layout Standard
27259 Insert\SpecialChar \menuseparator
27265 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27268 \begin_layout Standard
27279 <row topline="true">
27280 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27283 \begin_layout Standard
27289 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27292 \begin_layout Standard
27298 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27301 \begin_layout Standard
27307 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27310 \begin_layout Standard
27317 <row topline="true">
27318 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27321 \begin_layout Standard
27327 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27330 \begin_layout Standard
27336 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27339 \begin_layout Standard
27345 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27348 \begin_layout Standard
27355 <row topline="true" bottomline="true">
27356 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27359 \begin_layout Standard
27365 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27368 \begin_layout Standard
27374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27377 \begin_layout Standard
27383 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27386 \begin_layout Standard
27405 \begin_layout Standard
27406 When you use the option
27418 dialog, only the path to the inserted file is shown in the output.
27421 material is displayed in LyX either as box like this:
27422 \begin_inset Graphics
27423 filename clipart/ExternalMaterialQt4.png
27428 or as image, depending on the setting in the
27440 \begin_layout Standard
27447 manual explains how you can define your own templates.
27450 \begin_layout Section
27452 \begin_inset LatexCommand index
27453 name "External Stuff ! Child Documents"
27458 \begin_inset LatexCommand index
27459 name "Files ! Include"
27466 \begin_layout Standard
27467 Child documents are used when you have a long document consisting of several
27468 larger parts or sections.
27469 For maintenance it is often useful and sometimes even required to split
27470 the document in several files that can be revised separately.
27471 The different documents are then the so called child documents and a master
27472 document connects them to print the full document or parts of it.
27475 \begin_layout Standard
27476 Included documents are displayed in LyX as a box like this:
27477 \begin_inset Graphics
27478 filename clipart/ChildDocumentQt4.png
27483 To include child documents to a master document use the menu
27485 Insert\SpecialChar \menuseparator
27486 File\SpecialChar \menuseparator
27491 A dialog pops up where you can choose between three include methods:
27494 \begin_layout Description
27495 Include You can include LyX and LaTeX-documents.
27504 dialog, the included documents will be opened in LyX in a new file tab
27505 so that you can modify it.
27510 \begin_layout Standard
27511 Here is a child document inserted using
27516 \begin_inset Include \include{DummyDocument1.lyx}
27524 \begin_layout Standard
27525 The section numbering includes the sections of the included files in the
27526 order they are inserted in the master document.
27527 The included example document has for example a subsection that is numbered
27528 as subsection of this section.
27529 Labels of included documents can be referenced: Subsection\InsetSpace ~
27531 \begin_inset LatexCommand ref
27532 reference "sub:External-Subsection-1"
27539 \begin_layout Standard
27540 The preamble of the child document is ignored, only the preamble of the
27541 master document is used.
27542 Included documents are inserted starting on a new page and end with a pagebreak.
27545 \begin_layout Standard
27546 With the LaTeX-command
27552 you can specify which included child documents are processed when the output
27554 This is useful when you are perhaps only working on a certain chapter of
27555 your large document as this saves compiling time.
27562 is inserted to the master document preamble.
27563 It takes a comma-separated list of the filenames as argument, e.g.
27566 \begin_layout Standard
27571 includeonly{chapter1,chapter5}
27574 \begin_layout Standard
27575 will only process the included files named
27576 \begin_inset Quotes eld
27580 \begin_inset Quotes erd
27584 \begin_inset Quotes eld
27588 \begin_inset Quotes erd
27592 \begin_inset Quotes eld
27596 \begin_inset Quotes erd
27602 \begin_layout Standard
27603 \begin_inset Note Greyedout
27606 \begin_layout Standard
27611 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
27612 w the document in case that the child document uses another document class
27613 than the master document as this will lead to unexpected outputs.
27621 \begin_layout Description
27622 Input This method is very similar to the Include method.
27623 The differences are:
27627 \begin_layout Itemize
27628 Input files don't start with a new page and don't end with a pagebreak.
27631 \begin_layout Itemize
27632 Input files can be previewed in LyX when
27634 Instant\InsetSpace ~
27637 is enabled in LyX's preferences under
27641 feel\SpecialChar \menuseparator
27647 \begin_layout Itemize
27658 \begin_layout Standard
27659 Here is a child document inserted using
27664 \begin_inset Include \input{DummyDocument2.lyx}
27672 \begin_layout Description
27673 Verbatim With this method every text file can be included.
27674 The file is shown in the output with its source code, no command used in
27675 the text is invoked.
27676 You can use the option
27678 Mark spaces in output
27680 that displays the character
27681 \begin_inset Quotes eld
27688 \begin_layout Standard
27698 \begin_inset Quotes erd
27701 for every space character in the source code.
27702 The difference to the method via the menu
27704 Insert\SpecialChar \menuseparator
27705 File\SpecialChar \menuseparator
27709 is that the document content is not shown in LyX.
27712 \begin_layout Standard
27713 Here is a child document inserted as Verbatim:
27714 \begin_inset Include \verbatiminput{DummyTextDocument.txt}
27720 \begin_inset VSpace bigskip
27723 Here is a child document inserted as Verbatim using the
27725 Mark spaces in output
27728 \begin_inset Include \verbatiminput*{DummyTextDocument.txt}
27736 \begin_layout Standard
27737 \begin_inset VSpace bigskip
27743 \begin_layout Standard
27744 \begin_inset Note Greyedout
27747 \begin_layout Standard
27752 As you can see in the examples above, the text of the documents included
27753 as verbatim is not broken at the end of the document lines.
27761 \begin_layout Standard
27762 \begin_inset Note Greyedout
27765 \begin_layout Standard
27770 Including the same document twice in a document using different methods
27771 could cause LaTeX-problems.
27779 \begin_layout Standard
27785 \begin_layout Chapter
27791 \begin_layout Standard
27804 \begin_layout Standard
27812 \begin_inset LatexCommand index
27818 \begin_inset LatexCommand label
27819 name "cha:Units-available-in"
27824 \begin_inset Note Note
27827 \begin_layout Standard
27830 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
27831 are displayed wrongly in PDF-bookmarks.
27832 For more information about this, have a look at
27833 \begin_inset LatexCommand cite
27846 \begin_layout Standard
27847 To understand the units described in this documentation, Table\InsetSpace ~
27849 \begin_inset LatexCommand ref
27850 reference "tab:Units"
27854 explains all units available in LyX.
27857 \begin_layout Standard
27858 \begin_inset Float table
27864 \begin_layout Standard
27865 \begin_inset Caption
27867 \begin_layout Standard
27868 \begin_inset LatexCommand label
27881 \begin_layout Standard
27882 \begin_inset VSpace medskip
27888 \begin_layout Standard
27890 \begin_inset Tabular
27891 <lyxtabular version="3" rows="20" columns="2">
27893 <column alignment="center" valignment="top" leftline="true" width="0">
27894 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27895 <row topline="true" bottomline="true">
27896 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27899 \begin_layout Standard
27905 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27908 \begin_layout Standard
27915 <row topline="true">
27916 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27919 \begin_layout Standard
27925 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27928 \begin_layout Standard
27935 <row topline="true">
27936 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27939 \begin_layout Standard
27945 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27948 \begin_layout Standard
27955 <row topline="true">
27956 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27959 \begin_layout Standard
27965 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27968 \begin_layout Standard
27975 <row topline="true">
27976 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27979 \begin_layout Standard
27985 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27988 \begin_layout Standard
27989 point (72.27\InsetSpace \thinspace{}
27990 pt = 1\InsetSpace \thinspace{}
27997 <row topline="true">
27998 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28001 \begin_layout Standard
28007 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28010 \begin_layout Standard
28011 pica (1\InsetSpace \thinspace{}
28012 pc = 12\InsetSpace \thinspace{}
28019 <row topline="true">
28020 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28023 \begin_layout Standard
28029 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28032 \begin_layout Standard
28033 scaled point (65536\InsetSpace \thinspace{}
28034 sp = 1\InsetSpace \thinspace{}
28041 <row topline="true">
28042 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28045 \begin_layout Standard
28051 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28054 \begin_layout Standard
28055 big point (72\InsetSpace \thinspace{}
28056 bp = 1\InsetSpace \thinspace{}
28063 <row topline="true">
28064 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28067 \begin_layout Standard
28073 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28076 \begin_layout Standard
28077 didot (72\InsetSpace \thinspace{}
28079 \begin_inset Formula $\approx$
28082 37.6\InsetSpace \thinspace{}
28089 <row topline="true">
28090 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28093 \begin_layout Standard
28099 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28102 \begin_layout Standard
28103 cicero (1\InsetSpace \thinspace{}
28104 cc = 12\InsetSpace \thinspace{}
28111 <row topline="true">
28112 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28115 \begin_layout Standard
28121 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28124 \begin_layout Standard
28125 % of original image width
28131 <row topline="true">
28132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28135 \begin_layout Standard
28141 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28144 \begin_layout Standard
28151 <row topline="true">
28152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28155 \begin_layout Standard
28161 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28164 \begin_layout Standard
28171 <row topline="true">
28172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28175 \begin_layout Standard
28181 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28184 \begin_layout Standard
28191 <row topline="true">
28192 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28195 \begin_layout Standard
28201 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28204 \begin_layout Standard
28211 <row topline="true">
28212 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28215 \begin_layout Standard
28221 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28224 \begin_layout Standard
28231 <row topline="true">
28232 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28235 \begin_layout Standard
28241 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28244 \begin_layout Standard
28251 <row topline="true">
28252 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28255 \begin_layout Standard
28261 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28264 \begin_layout Standard
28275 <row topline="true">
28276 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28279 \begin_layout Standard
28285 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28288 \begin_layout Standard
28299 <row topline="true" bottomline="true">
28300 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28303 \begin_layout Standard
28309 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28312 \begin_layout Standard
28313 math unit (1\InsetSpace \thinspace{}
28314 mu = 1/18\InsetSpace \thinspace{}
28333 \begin_layout Chapter
28334 Output File Formats with Graphics
28335 \begin_inset LatexCommand label
28336 name "cha:Output-File-Formats"
28343 \begin_layout Section
28345 \begin_inset LatexCommand index
28346 name "File Formats ! DVI"
28351 \begin_inset LatexCommand index
28352 name "DVI|see{File Formats}"
28359 \begin_layout Standard
28360 This file type has the extension
28361 \begin_inset Quotes eld
28369 \begin_inset Quotes erd
28374 \begin_inset Quotes eld
28378 \begin_inset Quotes erd
28381 (DVI), because it is completely portable; you can move them from one machine
28382 to another without needing to do any sort of conversion.
28383 At the time when this file-format was developed, this was no matter of
28385 DVIs are used for quick previews and as pre-stage for other output formats,
28389 \begin_layout Standard
28390 \begin_inset Note Greyedout
28393 \begin_layout Standard
28398 DVI-files doesn't contain images, they will only be a linked.
28403 So don't forget this, if you move your
28407 file to another computer.
28408 This property can also slow down your computer when you view the DVI.
28409 Because the DVI-viewer has to convert the image in the background to make
28410 it visible when you scroll in the DVI.
28411 So we recommend to use PDF for files with many images.
28414 \begin_layout Standard
28415 You can export your document to DVI by using the menu
28417 File\SpecialChar \menuseparator
28418 Export\SpecialChar \menuseparator
28422 You can view your document as DVI via the
28426 menu or by using the toolbar button
28427 \begin_inset Graphics
28428 filename ../images/buffer-view_dvi.xpm
28436 \begin_layout Section
28438 \begin_inset LatexCommand label
28439 name "sec:PostScript"
28444 \begin_inset LatexCommand index
28445 name "File Formats ! PostScript"
28450 \begin_inset LatexCommand index
28451 name "PostScript|see{File Formats}"
28458 \begin_layout Standard
28459 This file type has the extension
28460 \begin_inset Quotes eld
28468 \begin_inset Quotes erd
28472 PostScript was developed by the company
28476 as printer language.
28477 The file contains therefore commands that the printer uses to print the
28479 PostScript can be seen as
28480 \begin_inset Quotes eld
28483 programming language
28484 \begin_inset Quotes erd
28487 ; you can calculate with it and draw diagrams and images
28491 \begin_layout Standard
28492 If you are interested to learn more about this, have a look at the LaTeX-package
28498 \begin_inset LatexCommand cite
28509 Due to this ability, the files are often bigger than PDFs.
28512 \begin_layout Standard
28513 PostScript can only contain images in the format
28514 \begin_inset Quotes eld
28517 Encapsulated PostScript
28518 \begin_inset Quotes erd
28521 (EPS, file extension
28522 \begin_inset Quotes eld
28530 \begin_inset Quotes erd
28534 As LyX allows you to use any known image format in your document, it has
28535 to convert images in the background to EPS.
28536 If you have e.g 50 images in your document, LyX has to do 50 conversions
28537 whenever you view or export your document.
28538 This will slow down your work flow with LyX drastically.
28539 So if you plan to use PostScript, you can insert your images directly as
28540 EPS to avoid this problem.
28543 \begin_layout Standard
28544 You can export your document to PostScript using the menu
28546 File\SpecialChar \menuseparator
28547 Export\SpecialChar \menuseparator
28551 You can view your document as PostScript via the
28555 menu or by using the toolbar button
28556 \begin_inset Graphics
28557 filename ../images/buffer-view_ps.xpm
28565 \begin_layout Section
28567 \begin_inset LatexCommand label
28573 \begin_inset LatexCommand index
28574 name "File Formats ! PDF"
28579 \begin_inset LatexCommand index
28587 \begin_layout Standard
28588 This file type has the extension
28589 \begin_inset Quotes eld
28597 \begin_inset Quotes erd
28602 \begin_inset Quotes eld
28605 Portable Document Format
28606 \begin_inset Quotes erd
28609 (PDF) is developed by
28613 as derivative from PostScript.
28614 It is more compressed and it uses much less commands than PostScript.
28616 \begin_inset Quotes eld
28620 \begin_inset Quotes erd
28623 implies, it can be processed at any computer system and the printed output
28624 looks exactly the same.
28627 \begin_layout Standard
28628 PDF can contain images in its own PDF format, in the format
28629 \begin_inset Quotes eld
28632 Joint Photographic Experts Group
28633 \begin_inset Quotes erd
28636 (JPG, file extension
28637 \begin_inset Quotes eld
28645 \begin_inset Quotes erd
28649 \begin_inset Quotes eld
28657 \begin_inset Quotes erd
28660 ), and in the format
28661 \begin_inset Quotes eld
28664 Portable Network Graphics
28665 \begin_inset Quotes erd
28668 (PNG, file extension
28669 \begin_inset Quotes eld
28677 \begin_inset Quotes erd
28681 You can although use any other image format, because LyX converts them
28682 in the background to one of these formats.
28683 But as described in the section about PostScript, the image conversion
28684 will slow down your work flow.
28685 So it is recommended to use images in one of the three mentioned formats.
28688 \begin_layout Standard
28689 You can export your document to PDF via the menu
28691 File\SpecialChar \menuseparator
28694 in three different ways:
28697 \begin_layout Description
28698 PDF This uses the program
28702 that creates a PDF from a PostScript-version of your file.
28703 The PostScript-version is produced by the program
28707 which uses a DVI-version as intermediate step.
28708 So this export variant consist of three conversions.
28711 \begin_layout Description
28713 (dvipdfm) This uses the program
28717 that converts your file in the background to DVI and in a second step to
28721 \begin_layout Description
28723 (pdflatex) This uses the program
28727 that converts your file directly to PDF.
28730 \begin_layout Standard
28731 It is recommended to use
28740 supports all features of actual PDF-versions, is quick and works stable
28746 is not under development and therefore a bit outdated.
28749 \begin_layout Standard
28750 You can view your document as PDF via the
28754 menu or by using the toolbar button
28755 \begin_inset Graphics
28756 filename ../images/buffer-view_pdf2.xpm
28773 \begin_layout Chapter
28774 Explanation of Equation\InsetSpace ~
28776 \begin_inset LatexCommand eqref
28782 \begin_inset LatexCommand label
28783 name "cha:Explanation-of-Equation"
28790 \begin_layout Standard
28796 \begin_inset Formula $W_{\mathrm{tot\, n}}$
28799 can be calculated to
28802 \begin_layout Standard
28803 \begin_inset Formula \begin{equation}
28804 W_{\mathrm{tot}\, n}=n·(W_{g\, n}+2·\backslash\mbox{tabcolsep})+(n+1)·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}\end{equation}
28811 \begin_layout Standard
28813 \begin_inset Formula $W_{g\, n}$
28816 is the given width of all cells.
28823 is the LaTeX-length between the cell text and the cell border, its default
28824 value is 6\InsetSpace \thinspace{}
28832 is the thickness of the cell border line, the default is 0.4\InsetSpace \thinspace{}
28836 \begin_layout Standard
28837 Following equation\InsetSpace ~
28839 \begin_inset LatexCommand eqref
28840 reference "eq:Wtot_n"
28844 , the total width of a multicolumn
28845 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
28851 \begin_layout Standard
28852 \begin_inset Formula \begin{equation}
28853 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2·\backslash\mbox{tabcolsep}+2·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
28860 \begin_layout Standard
28861 By setting equation\InsetSpace ~
28863 \begin_inset LatexCommand eqref
28864 reference "eq:Wtot_n"
28869 \begin_inset LatexCommand eqref
28870 reference "eq:Wtot_mult"
28874 equal we can calculate the needed given width
28875 \begin_inset Formula $W_{g\, n}$
28882 columns are spanned, so that each column has a total width of
28883 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
28889 \begin_layout Standard
28890 \begin_inset Formula \begin{equation}
28891 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)·(2·\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
28898 \begin_layout Bibliography
28899 \begin_inset LatexCommand bibitem
28900 key "latexcompanion"
28904 Frank Mittelbach and Michel Goossens:
28906 The LaTeX Companion Second Edition.
28909 Addison-Wesley, 2004
28912 \begin_layout Bibliography
28913 \begin_inset LatexCommand bibitem
28918 Helmut Kopka and Patrick W.
28921 A Guide to LaTeX Fourth Edition.
28924 Addison-Wesley, 2003
28927 \begin_layout Bibliography
28928 \begin_inset LatexCommand bibitem
28935 LaTeX: A Document Preparation System.
28938 Addison-Wesley, second edition, 1994
28941 \begin_layout Bibliography
28942 \begin_inset LatexCommand bibitem
28951 \begin_layout Standard
28955 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf}
28965 \begin_layout Standard
28972 of the LaTeX-package
28977 \begin_inset LatexCommand index
28978 name "LaTeX-packages ! booktabs"
28985 \begin_layout Bibliography
28986 \begin_inset LatexCommand bibitem
28995 \begin_layout Standard
28999 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf}{
29008 \begin_layout Standard
29015 of the LaTeX-package
29020 \begin_inset LatexCommand index
29021 name "LaTeX-packages ! caption"
29028 \begin_layout Bibliography
29029 \begin_inset LatexCommand bibitem
29038 \begin_layout Standard
29042 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/anleitung.pdf}
29052 \begin_layout Standard
29059 of the LaTeX-package
29064 \begin_layout Bibliography
29065 \begin_inset LatexCommand bibitem
29074 \begin_layout Standard
29078 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf}
29088 \begin_layout Standard
29095 of the LaTeX-package
29097 endf\SpecialChar \textcompwordmark{}
29101 \begin_inset LatexCommand index
29102 name "LaTeX-packages ! endfloat"
29109 \begin_layout Bibliography
29110 \begin_inset LatexCommand bibitem
29119 \begin_layout Standard
29123 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/floatflt/floatflt.pdf}
29133 \begin_layout Standard
29140 of the LaTeX-package
29142 floatf\SpecialChar \textcompwordmark{}
29146 \begin_inset LatexCommand index
29147 name "LaTeX-packages ! floatflt"
29154 \begin_layout Bibliography
29155 \begin_inset LatexCommand bibitem
29164 \begin_layout Standard
29168 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf}
29178 \begin_layout Standard
29185 of the LaTeX-package
29190 \begin_inset LatexCommand index
29191 name "LaTeX-packages ! footmisc"
29198 \begin_layout Bibliography
29199 \begin_inset LatexCommand bibitem
29208 \begin_layout Standard
29212 href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf}{
29221 \begin_layout Standard
29228 of the LaTeX-package
29233 \begin_inset LatexCommand index
29234 name "LaTeX-packages ! hyperref"
29241 \begin_layout Bibliography
29242 \begin_inset LatexCommand bibitem
29251 \begin_layout Standard
29255 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf}
29265 \begin_layout Standard
29272 of the LaTeX-package
29277 \begin_inset LatexCommand index
29278 name "LaTeX-packages ! hyperref"
29285 \begin_layout Bibliography
29286 \begin_inset LatexCommand bibitem
29295 \begin_layout Standard
29299 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.p
29309 \begin_layout Standard
29316 of the LaTeX-package
29321 \begin_inset LatexCommand index
29322 name "LaTeX-packages ! koma-script"
29329 \begin_layout Bibliography
29330 \begin_inset LatexCommand bibitem
29331 key "koma-script-de"
29339 \begin_layout Standard
29343 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguide.p
29353 \begin_layout Standard
29360 of the LaTeX-package
29365 \begin_inset LatexCommand index
29366 name "LaTeX-packages ! koma-script"
29373 \begin_layout Bibliography
29374 \begin_inset LatexCommand bibitem
29383 \begin_layout Standard
29387 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.
29397 \begin_layout Standard
29404 of the LaTeX-package
29409 \begin_inset LatexCommand index
29410 name "LaTeX-packages ! marginnote"
29417 \begin_layout Bibliography
29418 \begin_inset LatexCommand bibitem
29427 \begin_layout Standard
29431 href{http://tug.org/PSTricks/main.cgi/}{
29440 \begin_layout Standard
29447 of the LaTeX-package
29452 \begin_inset LatexCommand index
29453 name "LaTeX-packages ! PSTricks"
29460 \begin_layout Bibliography
29461 \begin_inset LatexCommand bibitem
29470 \begin_layout Standard
29474 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf}{
29483 \begin_layout Standard
29490 of the LaTeX-package
29495 \begin_inset LatexCommand index
29496 name "LaTeX-packages ! sidecap"
29503 \begin_layout Bibliography
29504 \begin_inset LatexCommand bibitem
29513 \begin_layout Standard
29517 href{http://wiki.lyx.org/LyX/NewInLyX15}{
29526 \begin_layout Standard
29533 about new LyX-features planned for the release
29540 \begin_layout Standard
29541 \begin_inset LatexCommand printindex
29548 \begin_layout Standard
29549 \begin_inset FloatList figure
29556 \begin_layout Standard
29557 \begin_inset FloatList table