1 #LyX 1.5.0svn created this file. For more info see http://www.lyx.org/
11 % set fonts for nicer pdf view
12 \IfFileExists{lmodern.sty}
13 {\usepackage{lmodern}} % if it exists
15 \usepackage[scaled=0.92]{helvet}
18 } % end if it exists not
20 % link all cross references and URLs
22 \usepackage[colorlinks=true, bookmarks, bookmarksnumbered, bookmarksopen, bookmarksopenlevel=1,
23 linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,
24 pdfpagelayout=OneColumn, pdfnewwindow=true,
25 pdfstartview=XYZ, plainpages=false, pdfpagelabels,
26 pdfauthor={LyX Team}, pdftex,
27 pdftitle={LyX's Figure, Table, Floats, Notes, and Boxes manual},
28 pdfsubject={LyX-documentation about figures, tables, floats, notes, and boxes},
29 pdfkeywords={LyX, Tables, Figures, Floats, Boxes, Notes}]{hyperref}
31 \else % if dvi or ps is produced
33 % link all cross references and URLs in DVI output
34 \usepackage[ps2pdf, colorlinks=true,
35 linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue]{hyperref}
37 \fi % end if pdflatex is used
39 % that links to image floats jumps
40 % to the beginning of the float and
42 \usepackage[figure]{hypcap}
44 % the pages of the TOC are numbered roman
45 % and a PDF-bookmark for the TOC is added
47 \let\myTOC\tableofcontents
48 \renewcommand{\tableofcontents}{%
49 \pdfbookmark[1]{Contents}{}
52 \pagenumbering{arabic}}
54 % provides caption formatting
55 \usepackage[labelfont={bf,sf}, tableposition=top]{caption}[2004/07/16]
57 % provides commands to set caption
58 % beside tables/images
61 \newcommand{\TabBesBeg}{%
63 \let\MyEndtable\endtable
64 \renewenvironment{table}{\begin{SCtable}}{\end{SCtable}}}
66 \newcommand{\TabBesEnd}{%
68 \let\endtable\MyEndtable}
70 \newcommand{\FigBesBeg}{%
72 \let\MyEndfigure\endfigure
73 \renewenvironment{figure}{\begin{SCfigure}}{\end{SCfigure}}}
75 \newcommand{\FigBesEnd}{%
77 \let\endfigure\MyEndfigure}
79 % enables calculation of values,
82 % provides special table cell alignments
85 % increase the bottom float placement fraction
86 \renewcommand{\bottomfraction}{0.5}
88 % avoids that floats are placed before their
89 % corresponding section starts
90 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
92 % speed up the longtable calculation
93 \setcounter{LTchunksize}{100}
95 % used for colored tables
96 \@ifundefined{textcolor}
97 {\usepackage{color}}{}
99 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
100 \definecolor{lightgrey}{gray}{0.8}
103 \usepackage{multirow}
104 %\renewcommand{\multirowsetup}{\centering}
106 % used for book-style tables
107 \usepackage{booktabs}
109 % used to have extra space in table cells,
110 \setlength{\extrarowheight}{2pt}
112 % used for customized tables
115 {>{\centering\hspace{0pt}}m{#1}}
118 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
121 {>{\columncolor{#1}\hspace{0pt}}c}
123 \newcolumntype{V}{!{\vrule width 1.5pt}}
125 \newcolumntype{W}{!{\color{green}\vline}}
128 % To be able to enter the characters ° and · directly in LyX
129 \DeclareInputText{176}{\ifmmode^\circ\else\textdegree\fi}
130 \DeclareInputText{183}{\ifmmode\cdot\else\textperiodcentered\fi}
132 % insert additional vertical space of
133 % 1.5 mm between footnotes
135 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
137 % enable algorithm floats to be referenced
138 \newfloat{Xalgorithm}{tbp}{loa}
139 \floatname{Xalgorithm}{Algorithm}
140 \newcommand{\theHalgorithm}{\theHXalgorithm}
141 \renewenvironment{algorithm}[1][tbp]
142 {\begin{Xalgorithm}[#1]}{\end{Xalgorithm}}
144 % number algorithm floats within chapters
145 \numberwithin{Xalgorithm}{chapter}
147 % redefine the greyed out note
148 \renewenvironment{lyxgreyedout}
149 {\textcolor{blue}\bgroup}{\egroup}
151 % ------------------------------------
152 % used to check for needed LaTeX packages
155 % check for package arydshln
156 % used for tables with dashed lines
157 \newboolean{arydshln}
158 \IfFileExists{arydshln.sty}
159 {\usepackage{arydshln}
160 \setboolean{arydshln}{true}}
161 {\setboolean{arydshln}{false}}
163 % check for package marginnote
164 % used for margin notes
165 \newboolean{marginnote}
166 \IfFileExists{marginnote.sty}
167 {\usepackage{marginnote}
168 \let\marginpar\marginnote
169 \setboolean{marginnote}{true}}
170 {\setboolean{marginnote}{false}}
172 \options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
177 \font_typewriter default
178 \font_default_family default
192 \paperorientation portrait
195 \paragraph_separation skip
197 \quotes_language english
200 \paperpagestyle default
204 \tracking_changes false
205 \output_changes false
213 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
222 \begin_layout Standard
224 If you have comments or error corrections, please send them to the LyX Documenta
231 \begin_layout Standard
235 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's ExtendedInsets manual}{
240 lyx-docs@lists.lyx.org
244 \begin_layout Standard
257 \begin_inset Note Note
260 \begin_layout Standard
261 original author: Uwe Stöhr
277 \begin_layout Standard
278 \begin_inset LatexCommand tableofcontents
285 \begin_layout Standard
286 \begin_inset Note Note
289 \begin_layout Standard
290 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
300 If they are not installed you can export the document anyway but the sections
301 where the packages are required won't appear in the output.
304 \begin_layout Standard
305 The latest PDF-version of this document can be found here:
309 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
317 \begin_layout Chapter
319 \begin_inset LatexCommand label
325 \begin_inset LatexCommand index
331 \begin_inset LatexCommand index
332 name "Graphics|see{Figures}"
339 \begin_layout Section
341 \begin_inset LatexCommand index
342 name "Figures ! Graphics Dialog"
347 \begin_inset LatexCommand label
348 name "sec:Graphics-Dialog"
355 \begin_layout Standard
356 To insert an image into your document, place the cursor at the text position
357 you want and click on the toolbar icon
358 \begin_inset Graphics
359 filename ../images/dialog-show-new-inset_graphics.xpm
366 Insert\SpecialChar \menuseparator
370 Then a dialog will appear to choose the file to load.
371 The image will appear in the output exactly at the position where it is
375 \begin_layout Standard
376 The graphics dialog can be called at any time by right-clicking on an image.
377 This dialog has three tabs:
380 \begin_layout Description
385 Here you can choose an image file and adjust its appearance in the output.
386 The available units for the image size are explained in appendix\InsetSpace ~
388 \begin_inset LatexCommand ref
389 reference "cha:Units-available-in"
395 You can rotate images counter-clockwise by setting a rotation angle and
397 The image will also be rotated inside LyX.
399 Images can be scaled by using
400 a percentage value or by setting the width and height explicitly.
401 If you set only the width or only the height, the other size will be determined
403 If you set both, then the image will be transformed to the given size,
404 possibly distorting it.
405 To prevent the image from distortion, use the option
407 Maintain aspect ratio
410 The image will then be scaled so that its width and height don't exceed
411 the specified dimensions.
413 Images can be opened in a program of your choice
419 The program can be set for every image format in the file format settings
420 in LyX's preferences.
423 \begin_layout Description
428 Alternatively to the usage of scaling units it is possible to set image
429 coordinates to adjust the height and width of the image in the output.
430 The coordinates can also be calculated automatically by pressing the button
442 bounding\InsetSpace ~
445 will only print the image region within the given coordinates.
446 Normally you don't need to take care about image coordinates and can ignore
450 \begin_layout Description
456 In this tab you can modify the appearance of the image within LyX and set
457 the image to be a subfigure of a figure float with an own caption.
458 Subfigures are explained in section\InsetSpace ~
460 \begin_inset LatexCommand ref
461 reference "sec:Figure-Floats"
467 LaTeX experts can also specify on this tab additional LaTeX options.
475 makes the image appear in the output only as a frame with the size of the
485 option only affects zipped EPS-graphics, e.\InsetSpace \thinspace{}
492 When the option is used the images will not be unzipped on export, since
493 LaTeX can handle them as they are.
495 Zipped EPS-graphics are useful to save
496 disk space when you choose PostScript as output format, see appendix\InsetSpace ~
498 \begin_inset LatexCommand ref
499 reference "sec:PostScript"
504 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
515 zgrep %%Bounding x.eps.gz > x.eps.bb
519 The second command creates the bounding box file
520 \begin_inset Quotes eld
524 \begin_inset Quotes erd
527 that is needed by LaTeX for zipped graphics.
530 \begin_layout Standard
531 \begin_inset VSpace bigskip
537 \begin_layout Standard
538 This is an example image in EPS format
542 \begin_layout Standard
543 Image formats are explained in section\InsetSpace ~
545 \begin_inset LatexCommand ref
546 reference "sec:Image-Formats"
555 within a separate, horizontally centered paragraph:
558 \begin_layout Standard
560 \begin_inset Graphics
561 filename clipart/mobius.eps
571 \begin_layout Standard
572 This is the same image like the one above but in draft mode:
575 \begin_layout Standard
577 \begin_inset Graphics
578 filename clipart/mobius.eps
589 \begin_layout Section
591 \begin_inset LatexCommand label
592 name "sec:Figure-Floats"
597 \begin_inset LatexCommand index
598 name "Floats ! Figure Floats"
603 \begin_inset LatexCommand index
604 name "Figures ! Floats"
611 \begin_layout Standard
612 For general explanations about floats, have a look at section\InsetSpace ~
614 \begin_inset LatexCommand ref
615 reference "sec:FloatIntroduction"
622 \begin_layout Standard
624 \begin_inset Graphics
625 filename ../images/float-insert_figure.xpm
632 Insert\SpecialChar \menuseparator
633 Float\SpecialChar \menuseparator
636 inserts a float with a caption that has the label
637 \begin_inset Quotes eld
642 \begin_inset Quotes erd
645 (# is the actual number).
646 You can insert the image above the caption, like in Figure\InsetSpace ~
648 \begin_inset LatexCommand ref
649 reference "fig:kill-plat"
653 or below the caption, like in Figure\InsetSpace ~
655 \begin_inset LatexCommand ref
656 reference "fig:escher"
661 More about the caption placement is described in section\InsetSpace ~
663 \begin_inset LatexCommand ref
664 reference "sec:Caption-Placement"
671 \begin_layout Standard
672 \begin_inset Float figure
677 \begin_layout Standard
679 \begin_inset Graphics
680 filename clipart/platypus.eps
690 \begin_layout Standard
693 \begin_layout Standard
694 \begin_inset LatexCommand label
699 A severely distorted platypus in a float.
712 \begin_layout Standard
713 \begin_inset Float figure
718 \begin_layout Standard
721 \begin_layout Standard
722 \begin_inset LatexCommand label
736 \begin_layout Standard
738 \begin_inset Graphics
739 filename clipart/escher-lsd.eps
754 \begin_layout Standard
755 \begin_inset LatexCommand index
756 name "References ! to Figures"
762 \begin_inset LatexCommand ref
763 reference "fig:kill-plat"
768 \begin_inset LatexCommand ref
769 reference "fig:escher"
773 are examples of referenced figures.
774 Figures can be referenced in the text by referencing their label.
775 To do this insert a label in the caption using the menu
777 Insert\SpecialChar \menuseparator
780 or the toolbar button
781 \begin_inset Graphics
782 filename ../images/label-insert.xpm
788 You can now refer to the label using the menu
790 Insert\SpecialChar \menuseparator
794 or the toolbar button
795 \begin_inset Graphics
796 filename ../images/dialog-show-new-inset_ref.xpm
802 It is important to use references to floats, rather than using vague references
804 \begin_inset Quotes eld
808 \begin_inset Quotes erd
811 , because as LaTeX will reposition the floats in the final document, it
813 \begin_inset Quotes eld
817 \begin_inset Quotes erd
822 Referencing is explained in detail in section\InsetSpace ~
824 \begin_inset LatexCommand ref
825 reference "sec:Referencing-Floats"
832 \begin_layout Standard
833 Normally only one image is inserted to a figure float, but sometimes you
834 might want to use two images with separate subcaptions.
835 This can be set in the tab
840 of the graphics dialog.
841 Choose there the option
845 and enter the subcaption for the image in the caption field.
846 Note that only the main caption of the float is added to the List of Figures.
849 erencing subfigures is explained in section\InsetSpace ~
851 \begin_inset LatexCommand ref
852 reference "sub:Referencing-Subfigures"
859 \begin_layout Standard
862 \begin_inset LatexCommand ref
863 reference "fig:Two-distorted-images"
867 is an example of a figure float with two images set side by side.
868 You can also set the images one below the other.
871 \begin_layout Standard
872 \begin_inset Float figure
877 \begin_layout Standard
881 \begin_inset Graphics
882 filename clipart/escher-lsd.eps
885 subcaptionText "Undefinable structure"
892 \begin_inset Graphics
893 filename clipart/platypus.eps
897 subcaptionText "\label{fig:Platypus} Platypus"
906 \begin_layout Standard
909 \begin_layout Standard
910 \begin_inset LatexCommand label
911 name "fig:Two-distorted-images"
915 Two distorted images.
928 \begin_layout Section
930 \begin_inset LatexCommand label
931 name "sec:Image-Formats"
936 \begin_inset LatexCommand index
942 \begin_inset LatexCommand index
943 name "Figures ! Image Formats"
950 \begin_layout Standard
951 You can insert images in any known file format.
952 But as explained in appendix\InsetSpace ~
954 \begin_inset LatexCommand ref
955 reference "cha:Output-File-Formats"
959 , every output document format allows only a few image formats.
960 LyX uses therefore the program
964 in the background to convert the images to the right format.
965 To increase your work flow by avoiding these conversions in the background,
966 you can use only the image formats that can directly be embedded in the
968 The output file formats are explained in appendix\InsetSpace ~
970 \begin_inset LatexCommand ref
971 reference "cha:Output-File-Formats"
978 \begin_layout Standard
979 Similar to fonts there are two types of image formats:
982 \begin_layout Description
984 images consist of pixel values, often in a compressed form.
985 They are therefore not fully scalable and look pixeled in large zooms.
986 Well-known bitmap image formats are
987 \begin_inset Quotes eld
990 Graphics Interchange Format
991 \begin_inset Quotes erd
995 \begin_inset Quotes eld
1003 \begin_inset Quotes erd
1007 \begin_inset LatexCommand index
1008 name "GIF|see{Image formats}"
1013 \begin_inset Quotes eld
1016 Portable Network Graphics
1017 \begin_inset Quotes erd
1020 (PNG, file extension
1021 \begin_inset Quotes eld
1029 \begin_inset Quotes erd
1033 \begin_inset LatexCommand index
1034 name "PNG|see{Image formats}"
1039 \begin_inset Quotes eld
1042 Joint Photographic Experts Group
1043 \begin_inset Quotes erd
1046 (JPG, file extension
1047 \begin_inset Quotes eld
1055 \begin_inset Quotes erd
1059 \begin_inset Quotes eld
1067 \begin_inset Quotes erd
1071 \begin_inset LatexCommand index
1072 name "JPG|see{Image formats}"
1079 \begin_layout Description
1081 images consist of vectors and can therefore be scaled to any size
1083 The scaling ability is necessary if you want to create presentations, because
1084 presentations are always scaled by the video projector.
1085 Scaling is also useful for online documents to let the user zoom into diagrams.
1088 ell-known scalable image formats are
1089 \begin_inset Quotes eld
1092 Scalable Vector Graphics
1093 \begin_inset Quotes erd
1096 (SVG, file extension
1097 \begin_inset Quotes eld
1105 \begin_inset Quotes erd
1109 \begin_inset LatexCommand index
1110 name "SVG|see{Image formats}"
1115 \begin_inset Quotes eld
1118 Encapsulated PostScript
1119 \begin_inset Quotes erd
1122 (EPS, file extension
1123 \begin_inset Quotes eld
1131 \begin_inset Quotes erd
1135 \begin_inset LatexCommand index
1136 name "EPS|see{Image formats}"
1141 \begin_inset Quotes eld
1144 Portable Document Format
1145 \begin_inset Quotes erd
1148 (PDF, file extension
1149 \begin_inset Quotes eld
1157 \begin_inset Quotes erd
1161 \begin_inset LatexCommand index
1167 \begin_inset Quotes eld
1171 \begin_inset Quotes erd
1174 (WMF, file extension
1175 \begin_inset Quotes eld
1183 \begin_inset Quotes erd
1187 \begin_inset LatexCommand index
1188 name "SVG|see{Image formats}"
1194 \begin_inset Quotes eld
1198 \begin_inset Quotes erd
1201 , because you can convert any bitmap image to a PDF or EPS-image and the
1202 result will still be a bitmap image.
1203 In this cases only a header with the image properties is added to the original
1208 \begin_layout Standard
1209 In the case of PDF, the original image is additionally compressed.
1215 The PDF-files generated by
1219 are for example bitmap images.
1222 \begin_layout Standard
1223 Normally it is not possible to convert a bitmap image into a scalable one,
1225 Only the image formats PDF and EPS can directly be embedded to PDF and
1226 PostScript output files, respectively.
1227 SVG and WMF-images are currently recalculated to bitmaps when the output
1228 file is generated because there is currently no adequate WMF/SVG
1229 \begin_inset Formula $\to$
1232 PDF/EPS converter available.
1235 \begin_layout Chapter
1237 \begin_inset LatexCommand label
1243 \begin_inset LatexCommand index
1251 \begin_layout Section
1253 \begin_inset LatexCommand index
1254 name "Table ! Introduction"
1261 \begin_layout Standard
1262 You can insert a table using either the toolbar button
1263 \begin_inset Graphics
1264 filename ../images/tabular-insert.xpm
1271 Insert\SpecialChar \menuseparator
1275 The toolbar button offers you a graphical selection: Move the mouse to
1276 set the column/row number of the table that should be created and then
1277 press a mouse button.
1278 When you use the menu to create a table, a dialog will appear, asking you
1279 for the number of rows and columns.
1281 The default table has lines around any
1282 cell and the first row appears separated from the rest of the table.
1283 This separation occurs due to a double line: The cells of the first row
1284 have a line below them and the cells of the second row have a line above
1286 Here is an example table:
1289 \begin_layout Standard
1291 \begin_inset Tabular
1292 <lyxtabular version="3" rows="4" columns="4">
1294 <column alignment="center" valignment="top" leftline="true" width="0">
1295 <column alignment="center" valignment="top" leftline="true" width="0">
1296 <column alignment="center" valignment="top" leftline="true" width="0">
1297 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
1298 <row topline="true" bottomline="true">
1299 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1302 \begin_layout Standard
1308 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1311 \begin_layout Standard
1326 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1329 \begin_layout Standard
1335 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1338 \begin_layout Standard
1345 <row topline="true">
1346 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1349 \begin_layout Standard
1364 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1367 \begin_layout Standard
1373 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1376 \begin_layout Standard
1382 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1385 \begin_layout Standard
1392 <row topline="true">
1393 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1396 \begin_layout Standard
1411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1414 \begin_layout Standard
1420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1423 \begin_layout Standard
1429 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1432 \begin_layout Standard
1439 <row topline="true" bottomline="true">
1440 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1443 \begin_layout Standard
1458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1461 \begin_layout Standard
1467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1470 \begin_layout Standard
1476 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1479 \begin_layout Standard
1493 \begin_layout Section
1495 \begin_inset LatexCommand index
1496 name "Table ! Dialog"
1503 \begin_layout Standard
1504 You can alter a table by clicking on it with the right mouse button, which
1505 brings up the table dialog.
1506 Here you can adjust the settings of that cell and row/column respectively
1507 where the cursor is currently placed.
1508 Most of the dialog options also work on selections.
1509 This means if you select more cells, columns or rows, the action is done
1510 for the whole selection.
1511 Note that there is a difference between selecting the
1515 of the cell, and the cell itself.
1516 You can alter tables with the following tabs of the table dialog:
1519 \begin_layout Description
1525 Here you can set the horizontal alignment and the width of the current
1527 When you have set a width you can also adjust the vertical alignment of
1529 A given width will allow the cell to have line breaks and multiple paragraphs
1530 of text, see section\InsetSpace ~
1532 \begin_inset LatexCommand ref
1533 reference "sub:Multiple-Lines-in"
1538 If you set no width, the column is as wide as their widest cell content
1541 Furthermore, you can mark one or multiple cells of one row as a multicolumn
1542 cell, see section\InsetSpace ~
1544 \begin_inset LatexCommand ref
1545 reference "sub:Multicolumns"
1551 The rotate check boxes rotates the current cell, a selection, or the whole
1552 table counter-clockwise by 90°.
1553 The rotation is not shown within LyX, only in the output.
1556 \begin_inset Note Greyedout
1559 \begin_layout Standard
1564 Not all DVI-viewers are able to display rotations.
1571 It is also possible to enter a LaTeX-argument which is needed for special
1572 table formattings, see section\InsetSpace ~
1574 \begin_inset LatexCommand ref
1575 reference "sub:Multicolumn-Calculations"
1580 \begin_inset LatexCommand ref
1581 reference "sec:Colored-Tables"
1588 \begin_layout Description
1593 In this tab you can add and delete border lines for the current row/column.
1600 will convert the table to a formal table as described in section\InsetSpace ~
1602 \begin_inset LatexCommand ref
1603 reference "sec:Formal-Tables"
1609 You can also add here space to table rows as decribed in section\InsetSpace ~
1611 \begin_inset LatexCommand ref
1612 reference "sub:Row-Spacing"
1619 \begin_layout Description
1624 This tab is to make a table a so called
1625 \begin_inset Quotes eld
1633 \begin_inset Quotes erd
1636 that can run over several pages.
1637 Section\InsetSpace ~
1639 \begin_inset LatexCommand ref
1640 reference "sec:Longtables"
1645 \begin_inset LatexCommand ref
1646 reference "sec:Special-Longtable-Issues"
1650 describe the longtable features in detail.
1653 \begin_layout Standard
1654 When the table toolbar is opened, you can move the cursor with the arrow
1655 keys from cell to cell and the property of the current cell will immediately
1656 be displayed in the dialog.
1659 \begin_layout Section
1661 \begin_inset LatexCommand index
1662 name "Table ! Toolbar"
1669 \begin_layout Standard
1670 The table toolbar is an alternative to the table dialog to be able to alter
1672 It should normally appear at the bottom of LyX's main window when the cursor
1674 You can alternatively switch it on to appear always, by right-clicking
1675 in LyX's main menu bar.
1678 \begin_layout Standard
1679 The toolbar has the following icons:
1682 \begin_layout Labeling
1683 \labelwidthstring 00.00.0000
1684 \begin_inset Graphics
1685 filename ../images/tabular-feature_append-row.xpm
1689 adds a row below the current cell or selection
1692 \begin_layout Labeling
1693 \labelwidthstring 00.00.0000
1694 \begin_inset Graphics
1695 filename ../images/tabular-feature_append-column.xpm
1699 adds a column right beside the current cell or selection
1702 \begin_layout Labeling
1703 \labelwidthstring 00.00.0000
1704 \begin_inset Graphics
1705 filename ../images/tabular-feature_delete-row.xpm
1709 deletes the current row or selection
1712 \begin_layout Labeling
1713 \labelwidthstring 00.00.0000
1714 \begin_inset Graphics
1715 filename ../images/tabular-feature_delete-column.xpm
1719 deletes the current column or selection
1722 \begin_layout Labeling
1723 \labelwidthstring 00.00.0000
1724 \begin_inset Graphics
1725 filename ../images/tabular-feature_toggle-line-top.xpm
1729 adds a line at the top of the current cell / row or of a selection
1732 \begin_layout Labeling
1733 \labelwidthstring 00.00.0000
1734 \begin_inset Graphics
1735 filename ../images/tabular-feature_toggle-line-bottom.xpm
1739 adds a line at the bottom of the current cell / row or of a selection
1742 \begin_layout Labeling
1743 \labelwidthstring 00.00.0000
1744 \begin_inset Graphics
1745 filename ../images/tabular-feature_toggle-line-left.xpm
1749 adds a line at the left side of the current cell / row or of a selection
1752 \begin_layout Labeling
1753 \labelwidthstring 00.00.0000
1754 \begin_inset Graphics
1755 filename ../images/tabular-feature_toggle-line-right.xpm
1759 adds a line at the right side of the current cell / row or of a selection
1762 \begin_layout Labeling
1763 \labelwidthstring 00.00.0000
1764 \begin_inset Graphics
1765 filename ../images/tabular-feature_set-all-lines.xpm
1769 adds lines around the current or selected cells - if the current cell no
1770 multicolumn this also affects the current row and column
1773 \begin_layout Labeling
1774 \labelwidthstring 00.00.0000
1775 \begin_inset Graphics
1776 filename ../images/tabular-feature_unset-all-lines.xpm
1780 deletes all lines of the current or selected cells - if the current cell
1781 no multicolumn this also affects the current row and column
1784 \begin_layout Labeling
1785 \labelwidthstring 00.00.0000
1786 \begin_inset Graphics
1787 filename ../images/tabular-feature_align-left.xpm
1791 left-aligns the content of the current cell / column
1794 \begin_layout Labeling
1795 \labelwidthstring 00.00.0000
1796 \begin_inset Graphics
1797 filename ../images/tabular-feature_align-center.xpm
1801 centers the content of the current cell / column horizontally
1804 \begin_layout Labeling
1805 \labelwidthstring 00.00.0000
1806 \begin_inset Graphics
1807 filename ../images/tabular-feature_align-right.xpm
1811 right-aligns the content of the current cell / column
1814 \begin_layout Labeling
1815 \labelwidthstring 00.00.0000
1816 \begin_inset Graphics
1817 filename ../images/tabular-feature_valign-top.xpm
1821 aligns the content of the current cell vertically to the top
1824 \begin_layout Labeling
1825 \labelwidthstring 00.00.0000
1826 \begin_inset Graphics
1827 filename ../images/tabular-feature_valign-middle.xpm
1831 centers the content of the current cell vertically
1834 \begin_layout Labeling
1835 \labelwidthstring 00.00.0000
1836 \begin_inset Graphics
1837 filename ../images/tabular-feature_valign-bottom.xpm
1841 aligns the content of the current cell vertically to the bottom
1844 \begin_layout Labeling
1845 \labelwidthstring 00.00.0000
1846 \begin_inset Graphics
1847 filename ../images/tabular-feature_set-rotate-cell.xpm
1851 rotates the current cell or selection counter-clockwise by 90°
1854 \begin_layout Labeling
1855 \labelwidthstring 00.00.0000
1856 \begin_inset Graphics
1857 filename ../images/tabular-feature_set-rotate-tabular.xpm
1861 rotates the whole table counter-clockwise by 90°
1864 \begin_layout Labeling
1865 \labelwidthstring 00.00.0000
1866 \begin_inset Graphics
1867 filename ../images/tabular-feature_multicolumn.xpm
1871 sets the current cell or selection as a multicolumn
1874 \begin_layout Section
1876 \begin_inset LatexCommand index
1877 name "Table ! Edit Menu"
1884 \begin_layout Standard
1885 Additionally to the table dialog and toolbar, the menu
1887 Edit\SpecialChar \menuseparator
1890 allows you to add and delete border lines for the current row/column and
1891 to set the current selection as multicolumn.
1892 The menu is only available when the cursor is inside a table.
1895 \begin_layout Section
1897 \begin_inset LatexCommand label
1898 name "sec:Table-Floats"
1903 \begin_inset LatexCommand index
1904 name "Floats ! Tables"
1909 \begin_inset LatexCommand index
1910 name "Table ! Floats"
1917 \begin_layout Standard
1918 For general explanations about floats, have a look at section\InsetSpace ~
1920 \begin_inset LatexCommand ref
1921 reference "sec:FloatIntroduction"
1928 \begin_layout Standard
1929 \begin_inset Float table
1935 \begin_layout Standard
1936 \begin_inset Caption
1938 \begin_layout Standard
1939 \begin_inset LatexCommand label
1940 name "tab:a table float"
1952 \begin_layout Standard
1954 \begin_inset Tabular
1955 <lyxtabular version="3" rows="3" columns="3">
1957 <column alignment="center" valignment="top" leftline="true" width="0pt">
1958 <column alignment="center" valignment="top" leftline="true" width="0pt">
1959 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
1960 <row topline="true" bottomline="true">
1961 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1964 \begin_layout Standard
1979 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1982 \begin_layout Standard
1997 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2000 \begin_layout Standard
2016 <row topline="true">
2017 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2020 \begin_layout Standard
2035 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2038 \begin_layout Standard
2053 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2056 \begin_layout Standard
2072 <row topline="true" bottomline="true">
2073 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2076 \begin_layout Standard
2086 \begin_inset Formula $\int x^{2}dx$
2094 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2097 \begin_layout Standard
2107 \begin_inset Formula $\left[\begin{array}{cc}
2109 c & d\end{array}\right]$
2117 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2120 \begin_layout Standard
2130 \begin_inset Formula $1+1=2$
2151 \begin_layout Standard
2152 Table floats can be inserted using the menu
2154 Insert\SpecialChar \menuseparator
2155 Float\SpecialChar \menuseparator
2158 or the toolbar button
2159 \begin_inset Graphics
2160 filename ../images/float-insert_table.xpm
2168 \begin_layout Standard
2169 The float appears as a collapsible box with a caption that has the label
2171 \begin_inset Quotes eld
2176 \begin_inset Quotes erd
2179 (# is the actual table number).
2180 You can insert tables to the float above or below the caption.
2183 \begin_layout Standard
2186 \begin_inset LatexCommand ref
2187 reference "tab:a table float"
2191 is an example table within a table float.
2194 \begin_layout Standard
2195 Having the caption above the table is the common rule that is unfortunately
2196 not supported in LaTeX's standard classes.
2197 That means if you are using the document classes
2213 there will be no space between the caption and the table.
2214 To insert the needed space, add the following option to the load command
2215 of the LaTeX-package
2220 \begin_inset LatexCommand index
2221 name "LaTeX-packages ! caption"
2225 in your document preamble
2229 \begin_layout Standard
2230 For more information have a look at section\InsetSpace ~
2232 \begin_inset LatexCommand ref
2233 reference "sec:Caption-Placement"
2245 \begin_layout Standard
2251 \begin_layout Standard
2256 , which is described in section\InsetSpace ~
2258 \begin_inset LatexCommand ref
2259 reference "sec:Caption-Formatting"
2263 , is used to adjust the caption format.
2266 \begin_layout Standard
2267 \begin_inset LatexCommand index
2268 name "References ! to Tables"
2272 Tables can be cross-referenced in the text by referencing their label.
2273 To do this insert a label in the caption using the menu
2275 Insert\SpecialChar \menuseparator
2278 or the toolbar button
2279 \begin_inset Graphics
2280 filename ../images/label-insert.xpm
2286 You can now refer to the label using the menu
2288 Insert\SpecialChar \menuseparator
2292 or the toolbar button
2293 \begin_inset Graphics
2294 filename ../images/dialog-show-new-inset_ref.xpm
2301 Referencing is explained in detail in section\InsetSpace ~
2303 \begin_inset LatexCommand ref
2304 reference "sec:Referencing-Floats"
2311 \begin_layout Section
2313 \begin_inset LatexCommand label
2314 name "sec:Longtables"
2319 \begin_inset LatexCommand index
2325 \begin_inset LatexCommand index
2326 name "Table ! Longtables"
2333 \begin_layout Standard
2334 If the table is too long to fit on one page, you can use the option
2344 of the table dialog to split the table automatically over more pages.
2345 Doing this enables some check boxes and you can now define:
2348 \begin_layout Description
2353 : The current row and all rows above, that don't have any special options
2354 defined, are defined to be the header rows of all pages of the longtable;
2355 except for the first page, if
2361 This therefore called the main header.
2364 \begin_layout Description
2370 : The current row and all rows above, that don't have any special options
2371 defined, are defined to be the header rows of the first page of the longtable.
2374 \begin_layout Description
2379 : The current row and all rows below, that don't have any special options
2380 defined, are defined to be the footer rows of all pages of the longtable;
2381 except for the last page, if
2389 \begin_layout Description
2395 : The current row and all rows below, that don't have any special options
2396 defined, are defined to be the footer rows of the last page of the longtable.
2399 \begin_layout Standard
2400 You can also specify a row where the table is splitted.
2401 If you set more than one option in the same table row, you should be aware
2402 of the fact that only the first one is used in the given table row.
2403 The others will then be defined as
2408 In this context, first means first in this order:
2410 Footer, Last\InsetSpace ~
2423 See the following longtable to see how it works:
2426 \begin_layout Standard
2428 \begin_inset Tabular
2429 <lyxtabular version="3" rows="69" columns="3">
2430 <features islongtable="true">
2431 <column alignment="left" valignment="top" leftline="true" width="0cm">
2432 <column alignment="left" valignment="top" width="0pt">
2433 <column alignment="right" valignment="top" leftline="true" rightline="true" width="0pt">
2434 <row topline="true" bottomline="true" endfirsthead="true">
2435 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2438 \begin_layout Standard
2441 Example Phone List (ignore the names)
2446 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2449 \begin_layout Standard
2455 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2458 \begin_layout Standard
2465 <row topline="true" bottomline="true" endfirsthead="true">
2466 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2469 \begin_layout Standard
2477 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2480 \begin_layout Standard
2486 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2489 \begin_layout Standard
2498 <row topline="true" bottomline="true" endhead="true">
2499 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2502 \begin_layout Standard
2510 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2513 \begin_layout Standard
2519 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2522 \begin_layout Standard
2529 <row topline="true" bottomline="true" endhead="true">
2530 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2533 \begin_layout Standard
2541 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2544 \begin_layout Standard
2550 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2553 \begin_layout Standard
2562 <row topline="true" bottomline="true" endfoot="true">
2563 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
2566 \begin_layout Standard
2567 continued on next page
2572 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2575 \begin_layout Standard
2581 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2584 \begin_layout Standard
2592 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2595 \begin_layout Standard
2603 <cell alignment="center" valignment="top" topline="true" usebox="none">
2606 \begin_layout Standard
2612 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2615 \begin_layout Standard
2623 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2626 \begin_layout Standard
2634 <cell alignment="center" valignment="top" topline="true" usebox="none">
2637 \begin_layout Standard
2643 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2646 \begin_layout Standard
2654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2657 \begin_layout Standard
2665 <cell alignment="center" valignment="top" topline="true" usebox="none">
2668 \begin_layout Standard
2674 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2677 \begin_layout Standard
2685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2688 \begin_layout Standard
2696 <cell alignment="center" valignment="top" topline="true" usebox="none">
2699 \begin_layout Standard
2705 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2708 \begin_layout Standard
2716 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2719 \begin_layout Standard
2727 <cell alignment="center" valignment="top" topline="true" usebox="none">
2730 \begin_layout Standard
2736 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2739 \begin_layout Standard
2747 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2750 \begin_layout Standard
2758 <cell alignment="center" valignment="top" topline="true" usebox="none">
2761 \begin_layout Standard
2767 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2770 \begin_layout Standard
2778 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2781 \begin_layout Standard
2789 <cell alignment="center" valignment="top" topline="true" usebox="none">
2792 \begin_layout Standard
2798 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2801 \begin_layout Standard
2809 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2812 \begin_layout Standard
2820 <cell alignment="center" valignment="top" topline="true" usebox="none">
2823 \begin_layout Standard
2829 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2832 \begin_layout Standard
2840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2843 \begin_layout Standard
2851 <cell alignment="center" valignment="top" topline="true" usebox="none">
2854 \begin_layout Standard
2860 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2863 \begin_layout Standard
2871 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2874 \begin_layout Standard
2882 <cell alignment="center" valignment="top" topline="true" usebox="none">
2885 \begin_layout Standard
2891 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2894 \begin_layout Standard
2902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2905 \begin_layout Standard
2913 <cell alignment="center" valignment="top" topline="true" usebox="none">
2916 \begin_layout Standard
2922 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2925 \begin_layout Standard
2933 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2936 \begin_layout Standard
2944 <cell alignment="center" valignment="top" topline="true" usebox="none">
2947 \begin_layout Standard
2953 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2956 \begin_layout Standard
2964 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2967 \begin_layout Standard
2975 <cell alignment="center" valignment="top" topline="true" usebox="none">
2978 \begin_layout Standard
2984 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2987 \begin_layout Standard
2995 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2998 \begin_layout Standard
3006 <cell alignment="center" valignment="top" topline="true" usebox="none">
3009 \begin_layout Standard
3015 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3018 \begin_layout Standard
3026 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3029 \begin_layout Standard
3037 <cell alignment="center" valignment="top" topline="true" usebox="none">
3040 \begin_layout Standard
3046 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3049 \begin_layout Standard
3057 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3060 \begin_layout Standard
3068 <cell alignment="center" valignment="top" topline="true" usebox="none">
3071 \begin_layout Standard
3077 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3080 \begin_layout Standard
3088 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3091 \begin_layout Standard
3099 <cell alignment="center" valignment="top" topline="true" usebox="none">
3102 \begin_layout Standard
3108 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3111 \begin_layout Standard
3119 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3122 \begin_layout Standard
3130 <cell alignment="center" valignment="top" topline="true" usebox="none">
3133 \begin_layout Standard
3139 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3142 \begin_layout Standard
3150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3153 \begin_layout Standard
3161 <cell alignment="center" valignment="top" topline="true" usebox="none">
3164 \begin_layout Standard
3170 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3173 \begin_layout Standard
3181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3184 \begin_layout Standard
3192 <cell alignment="center" valignment="top" topline="true" usebox="none">
3195 \begin_layout Standard
3201 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3204 \begin_layout Standard
3212 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3215 \begin_layout Standard
3223 <cell alignment="center" valignment="top" topline="true" usebox="none">
3226 \begin_layout Standard
3232 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3235 \begin_layout Standard
3243 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3246 \begin_layout Standard
3254 <cell alignment="center" valignment="top" topline="true" usebox="none">
3257 \begin_layout Standard
3263 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3266 \begin_layout Standard
3274 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3277 \begin_layout Standard
3285 <cell alignment="center" valignment="top" topline="true" usebox="none">
3288 \begin_layout Standard
3294 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3297 \begin_layout Standard
3305 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3308 \begin_layout Standard
3316 <cell alignment="center" valignment="top" topline="true" usebox="none">
3319 \begin_layout Standard
3325 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3328 \begin_layout Standard
3336 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3339 \begin_layout Standard
3347 <cell alignment="center" valignment="top" topline="true" usebox="none">
3350 \begin_layout Standard
3356 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3359 \begin_layout Standard
3367 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3370 \begin_layout Standard
3378 <cell alignment="center" valignment="top" topline="true" usebox="none">
3381 \begin_layout Standard
3387 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3390 \begin_layout Standard
3398 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3401 \begin_layout Standard
3409 <cell alignment="center" valignment="top" topline="true" usebox="none">
3412 \begin_layout Standard
3418 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3421 \begin_layout Standard
3429 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3432 \begin_layout Standard
3440 <cell alignment="center" valignment="top" topline="true" usebox="none">
3443 \begin_layout Standard
3449 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3452 \begin_layout Standard
3460 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3463 \begin_layout Standard
3471 <cell alignment="center" valignment="top" topline="true" usebox="none">
3474 \begin_layout Standard
3480 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3483 \begin_layout Standard
3491 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3494 \begin_layout Standard
3502 <cell alignment="center" valignment="top" topline="true" usebox="none">
3505 \begin_layout Standard
3511 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3514 \begin_layout Standard
3521 <row bottomline="true">
3522 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3525 \begin_layout Standard
3533 <cell alignment="center" valignment="top" topline="true" usebox="none">
3536 \begin_layout Standard
3542 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3545 \begin_layout Standard
3552 <row bottomline="true">
3553 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3556 \begin_layout Standard
3562 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
3565 \begin_layout Standard
3571 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3574 \begin_layout Standard
3582 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3585 \begin_layout Standard
3593 <cell alignment="center" valignment="top" topline="true" usebox="none">
3596 \begin_layout Standard
3602 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3605 \begin_layout Standard
3613 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3616 \begin_layout Standard
3624 <cell alignment="center" valignment="top" topline="true" usebox="none">
3627 \begin_layout Standard
3633 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3636 \begin_layout Standard
3644 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3647 \begin_layout Standard
3655 <cell alignment="center" valignment="top" topline="true" usebox="none">
3658 \begin_layout Standard
3664 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3667 \begin_layout Standard
3675 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3678 \begin_layout Standard
3686 <cell alignment="center" valignment="top" topline="true" usebox="none">
3689 \begin_layout Standard
3695 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3698 \begin_layout Standard
3706 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3709 \begin_layout Standard
3717 <cell alignment="center" valignment="top" topline="true" usebox="none">
3720 \begin_layout Standard
3726 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3729 \begin_layout Standard
3737 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3740 \begin_layout Standard
3748 <cell alignment="center" valignment="top" topline="true" usebox="none">
3751 \begin_layout Standard
3757 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3760 \begin_layout Standard
3768 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3771 \begin_layout Standard
3779 <cell alignment="center" valignment="top" topline="true" usebox="none">
3782 \begin_layout Standard
3788 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3791 \begin_layout Standard
3799 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3802 \begin_layout Standard
3810 <cell alignment="center" valignment="top" topline="true" usebox="none">
3813 \begin_layout Standard
3819 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3822 \begin_layout Standard
3830 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3833 \begin_layout Standard
3841 <cell alignment="center" valignment="top" topline="true" usebox="none">
3844 \begin_layout Standard
3850 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3853 \begin_layout Standard
3861 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3864 \begin_layout Standard
3872 <cell alignment="center" valignment="top" topline="true" usebox="none">
3875 \begin_layout Standard
3881 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3884 \begin_layout Standard
3892 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3895 \begin_layout Standard
3903 <cell alignment="center" valignment="top" topline="true" usebox="none">
3906 \begin_layout Standard
3912 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3915 \begin_layout Standard
3923 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3926 \begin_layout Standard
3934 <cell alignment="center" valignment="top" topline="true" usebox="none">
3937 \begin_layout Standard
3943 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3946 \begin_layout Standard
3954 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3957 \begin_layout Standard
3965 <cell alignment="center" valignment="top" topline="true" usebox="none">
3968 \begin_layout Standard
3974 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3977 \begin_layout Standard
3985 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3988 \begin_layout Standard
3996 <cell alignment="center" valignment="top" topline="true" usebox="none">
3999 \begin_layout Standard
4005 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4008 \begin_layout Standard
4016 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4019 \begin_layout Standard
4027 <cell alignment="center" valignment="top" topline="true" usebox="none">
4030 \begin_layout Standard
4036 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4039 \begin_layout Standard
4047 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4050 \begin_layout Standard
4058 <cell alignment="center" valignment="top" topline="true" usebox="none">
4061 \begin_layout Standard
4067 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4070 \begin_layout Standard
4078 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4081 \begin_layout Standard
4089 <cell alignment="center" valignment="top" topline="true" usebox="none">
4092 \begin_layout Standard
4098 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4101 \begin_layout Standard
4109 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4112 \begin_layout Standard
4120 <cell alignment="center" valignment="top" topline="true" usebox="none">
4123 \begin_layout Standard
4129 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4132 \begin_layout Standard
4140 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4143 \begin_layout Standard
4151 <cell alignment="center" valignment="top" topline="true" usebox="none">
4154 \begin_layout Standard
4160 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4163 \begin_layout Standard
4171 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4174 \begin_layout Standard
4182 <cell alignment="center" valignment="top" topline="true" usebox="none">
4185 \begin_layout Standard
4191 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4194 \begin_layout Standard
4202 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4205 \begin_layout Standard
4213 <cell alignment="center" valignment="top" topline="true" usebox="none">
4216 \begin_layout Standard
4222 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4225 \begin_layout Standard
4233 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4236 \begin_layout Standard
4244 <cell alignment="center" valignment="top" topline="true" usebox="none">
4247 \begin_layout Standard
4253 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4256 \begin_layout Standard
4264 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4267 \begin_layout Standard
4275 <cell alignment="center" valignment="top" topline="true" usebox="none">
4278 \begin_layout Standard
4284 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4287 \begin_layout Standard
4295 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4298 \begin_layout Standard
4306 <cell alignment="center" valignment="top" topline="true" usebox="none">
4309 \begin_layout Standard
4315 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4318 \begin_layout Standard
4326 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4329 \begin_layout Standard
4337 <cell alignment="center" valignment="top" topline="true" usebox="none">
4340 \begin_layout Standard
4346 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4349 \begin_layout Standard
4357 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4360 \begin_layout Standard
4368 <cell alignment="center" valignment="top" topline="true" usebox="none">
4371 \begin_layout Standard
4377 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4380 \begin_layout Standard
4388 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4391 \begin_layout Standard
4399 <cell alignment="center" valignment="top" topline="true" usebox="none">
4402 \begin_layout Standard
4408 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4411 \begin_layout Standard
4419 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4422 \begin_layout Standard
4430 <cell alignment="center" valignment="top" topline="true" usebox="none">
4433 \begin_layout Standard
4439 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4442 \begin_layout Standard
4450 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4453 \begin_layout Standard
4461 <cell alignment="center" valignment="top" topline="true" usebox="none">
4464 \begin_layout Standard
4470 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4473 \begin_layout Standard
4481 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4484 \begin_layout Standard
4492 <cell alignment="center" valignment="top" topline="true" usebox="none">
4495 \begin_layout Standard
4501 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4504 \begin_layout Standard
4511 <row bottomline="true">
4512 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4515 \begin_layout Standard
4523 <cell alignment="center" valignment="top" topline="true" usebox="none">
4526 \begin_layout Standard
4532 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4535 \begin_layout Standard
4542 <row bottomline="true" endlastfoot="true">
4543 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
4546 \begin_layout Standard
4552 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4555 \begin_layout Standard
4561 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4564 \begin_layout Standard
4579 \begin_layout Standard
4583 addtocounter{table}{-1}
4589 \begin_inset Note Note
4592 \begin_layout Standard
4593 See greyed-out note in section 2.6.2 for an explanation of this command.
4601 \begin_layout Subsection
4602 Footnotes in Longtables
4603 \begin_inset LatexCommand label
4604 name "sub:Footnotes-in-Longtables"
4609 \begin_inset LatexCommand index
4610 name "Longtables ! Footnotes"
4617 \begin_layout Standard
4618 Footnotes can be inserted to every longtable cell.
4619 They appear at the bottom of the page where the table cell with the footnote
4623 \begin_inset LatexCommand ref
4624 reference "tab:DiffCaptions"
4628 has for example a footnote.
4631 \begin_layout Subsection
4633 \begin_inset LatexCommand index
4634 name "Longtables ! Captions"
4641 \begin_layout Standard
4642 A longtable cannot be put into a table float because floats can only be
4643 on one page but the caption environment of floats can also be used for
4647 \begin_layout Standard
4648 As LyX does not yet fully support captions in longtables, a hack is needed
4652 \begin_layout Enumerate
4658 \begin_layout Enumerate
4659 Mark the first row and disable its upper line.
4662 \begin_layout Enumerate
4663 Insert a caption via the menu
4665 Insert\SpecialChar \menuseparator
4668 into the first table cell.
4670 You can also add a short title for the caption.
4673 \begin_layout Enumerate
4675 \begin_inset Quotes eld
4687 \begin_inset Quotes erd
4690 as ERT behind the caption.
4693 \begin_layout Standard
4694 A short title that will appear in the LOT instead of the full title.
4703 behind the caption omits the vertical lines between the following cells
4705 The first table row is now only a dummy row for the caption, the actual
4706 table starts with the second row.
4709 \begin_layout Standard
4710 Here is a short longtable to see how it works:
4713 \begin_layout Standard
4714 \begin_inset Tabular
4715 <lyxtabular version="3" rows="6" columns="5">
4716 <features islongtable="true">
4717 <column alignment="center" valignment="top" leftline="true" width="0">
4718 <column alignment="center" valignment="top" leftline="true" width="0">
4719 <column alignment="center" valignment="top" leftline="true" width="0">
4720 <column alignment="center" valignment="top" leftline="true" width="0">
4721 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
4723 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4726 \begin_layout Standard
4727 \begin_inset Caption
4729 \begin_layout Standard
4730 Longtable with caption
4734 \begin_layout Standard
4749 \begin_layout Standard
4765 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4768 \begin_layout Standard
4774 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4777 \begin_layout Standard
4783 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4786 \begin_layout Standard
4792 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4795 \begin_layout Standard
4802 <row topline="true">
4803 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4806 \begin_layout Standard
4812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4815 \begin_layout Standard
4821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4824 \begin_layout Standard
4830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4833 \begin_layout Standard
4839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4842 \begin_layout Standard
4849 <row topline="true">
4850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4853 \begin_layout Standard
4859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4862 \begin_layout Standard
4868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4871 \begin_layout Standard
4877 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4880 \begin_layout Standard
4886 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4889 \begin_layout Standard
4896 <row topline="true">
4897 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4900 \begin_layout Standard
4906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4909 \begin_layout Standard
4915 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4918 \begin_layout Standard
4924 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4927 \begin_layout Standard
4933 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4936 \begin_layout Standard
4943 <row topline="true">
4944 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4947 \begin_layout Standard
4953 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4956 \begin_layout Standard
4962 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4965 \begin_layout Standard
4971 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4974 \begin_layout Standard
4980 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4983 \begin_layout Standard
4990 <row topline="true" bottomline="true">
4991 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4994 \begin_layout Standard
5000 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5003 \begin_layout Standard
5009 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5012 \begin_layout Standard
5018 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5021 \begin_layout Standard
5027 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5030 \begin_layout Standard
5044 \begin_layout Standard
5045 \begin_inset VSpace medskip
5049 \begin_inset Note Greyedout
5052 \begin_layout Standard
5057 The table number is increased for every longtable, also if you didn't set
5059 For this reason you could have the case that e.g.
5061 2.4 follows on Table\InsetSpace ~
5062 2.1 in the list of tables if there are two longtables
5064 To avoid this you can add the following command in ERT behind every longtable
5068 \begin_layout Standard
5073 addtocounter{table}{-1}
5081 \begin_layout Standard
5082 \begin_inset Note Greyedout
5085 \begin_layout Standard
5090 If you are using the LaTeX-package
5095 \begin_inset LatexCommand index
5096 name "LaTeX-packages ! hyperref"
5100 to link cross-references, the link to a longtable caption will always point
5101 to the beginning of the document.
5109 \begin_layout Subsubsection
5110 References to Longtables
5111 \begin_inset LatexCommand index
5112 name "Longtables ! References"
5119 \begin_layout Standard
5120 \begin_inset Tabular
5121 <lyxtabular version="3" rows="6" columns="5">
5122 <features islongtable="true">
5123 <column alignment="center" valignment="top" leftline="true" width="0">
5124 <column alignment="center" valignment="top" leftline="true" width="0">
5125 <column alignment="center" valignment="top" leftline="true" width="0">
5126 <column alignment="center" valignment="top" leftline="true" width="0">
5127 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5132 \begin_layout Standard
5133 \begin_inset Caption
5135 \begin_layout Standard
5136 Referenced longtable
5137 \begin_inset LatexCommand label
5138 name "tab:RefExample"
5151 \begin_layout Standard
5167 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5170 \begin_layout Standard
5176 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5179 \begin_layout Standard
5185 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5188 \begin_layout Standard
5194 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5197 \begin_layout Standard
5204 <row topline="true">
5205 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5208 \begin_layout Standard
5214 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5217 \begin_layout Standard
5223 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5226 \begin_layout Standard
5232 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5235 \begin_layout Standard
5241 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5244 \begin_layout Standard
5251 <row topline="true">
5252 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5255 \begin_layout Standard
5261 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5264 \begin_layout Standard
5270 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5273 \begin_layout Standard
5279 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5282 \begin_layout Standard
5288 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5291 \begin_layout Standard
5298 <row topline="true">
5299 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5302 \begin_layout Standard
5308 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5311 \begin_layout Standard
5317 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5320 \begin_layout Standard
5326 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5329 \begin_layout Standard
5335 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5338 \begin_layout Standard
5345 <row topline="true">
5346 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5349 \begin_layout Standard
5355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5358 \begin_layout Standard
5364 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5367 \begin_layout Standard
5373 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5376 \begin_layout Standard
5382 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5385 \begin_layout Standard
5392 <row topline="true" bottomline="true">
5393 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5396 \begin_layout Standard
5402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5405 \begin_layout Standard
5411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5414 \begin_layout Standard
5420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5423 \begin_layout Standard
5429 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5432 \begin_layout Standard
5446 \begin_layout Standard
5447 To reference a longtable, insert a label into the caption.
5448 Note that you have to add the label prefix
5449 \begin_inset Quotes eld
5457 \begin_inset Quotes eld
5460 manually in the label field.
5463 \begin_layout Standard
5464 This is a reference to Table\InsetSpace ~
5466 \begin_inset LatexCommand ref
5467 reference "tab:RefExample"
5474 \begin_layout Standard
5475 The caption layout can be set together with all other caption of your document
5476 using the LaTeX-package
5481 \begin_inset LatexCommand index
5482 name "LaTeX-packages ! caption"
5486 , see section\InsetSpace ~
5488 \begin_inset LatexCommand ref
5489 reference "sec:Caption-Formatting"
5496 \begin_layout Subsubsection
5498 \begin_inset LatexCommand index
5499 name "Longtables ! Caption Width"
5506 \begin_layout Standard
5507 The maximal width of of caption lines is defined by the length
5514 Its default value is 4\InsetSpace \thinspace{}
5516 To change it add the following command to your document preamble or as
5517 ERT into your document before the longtable that should be affected
5520 \begin_layout Standard
5530 \begin_layout Standard
5531 where the width could have one of the units listed in appendix\InsetSpace ~
5533 \begin_inset LatexCommand ref
5534 reference "cha:Units-available-in"
5541 \begin_layout Standard
5542 The following tables show the difference:
5545 \begin_layout Standard
5546 \begin_inset Tabular
5547 <lyxtabular version="3" rows="6" columns="5">
5548 <features islongtable="true">
5549 <column alignment="center" valignment="top" leftline="true" width="0">
5550 <column alignment="center" valignment="top" leftline="true" width="0">
5551 <column alignment="center" valignment="top" leftline="true" width="0">
5552 <column alignment="center" valignment="top" leftline="true" width="0">
5553 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5555 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5558 \begin_layout Standard
5559 \begin_inset Caption
5561 \begin_layout Standard
5562 long full title with default width long full title with default width long
5563 full title with default width
5567 \begin_layout Standard
5568 caption with default width
5582 \begin_layout Standard
5598 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5601 \begin_layout Standard
5607 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5610 \begin_layout Standard
5616 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5619 \begin_layout Standard
5625 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5628 \begin_layout Standard
5635 <row topline="true">
5636 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5639 \begin_layout Standard
5645 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5648 \begin_layout Standard
5654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5657 \begin_layout Standard
5663 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5666 \begin_layout Standard
5672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5675 \begin_layout Standard
5682 <row topline="true">
5683 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5686 \begin_layout Standard
5692 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5695 \begin_layout Standard
5701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5704 \begin_layout Standard
5710 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5713 \begin_layout Standard
5719 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5722 \begin_layout Standard
5729 <row topline="true">
5730 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5733 \begin_layout Standard
5739 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5742 \begin_layout Standard
5748 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5751 \begin_layout Standard
5757 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5760 \begin_layout Standard
5766 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5769 \begin_layout Standard
5776 <row topline="true">
5777 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5780 \begin_layout Standard
5786 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5789 \begin_layout Standard
5795 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5798 \begin_layout Standard
5804 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5807 \begin_layout Standard
5813 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5816 \begin_layout Standard
5823 <row topline="true" bottomline="true">
5824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5827 \begin_layout Standard
5833 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5836 \begin_layout Standard
5842 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5845 \begin_layout Standard
5851 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5854 \begin_layout Standard
5860 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5863 \begin_layout Standard
5877 \begin_layout Standard
5881 \begin_layout Standard
5893 \begin_inset Tabular
5894 <lyxtabular version="3" rows="6" columns="5">
5895 <features islongtable="true">
5896 <column alignment="center" valignment="top" leftline="true" width="0">
5897 <column alignment="center" valignment="top" leftline="true" width="0">
5898 <column alignment="center" valignment="top" leftline="true" width="0">
5899 <column alignment="center" valignment="top" leftline="true" width="0">
5900 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5905 \begin_layout Standard
5906 \begin_inset Caption
5908 \begin_layout Standard
5909 long full title with width set to 5\InsetSpace \thinspace{}
5910 cm long full title with width set to
5911 5\InsetSpace \thinspace{}
5912 cm long full title with width set to 5\InsetSpace \thinspace{}
5917 \begin_layout Standard
5918 caption with width\InsetSpace \thinspace{}
5919 =\InsetSpace \thinspace{}
5920 5\InsetSpace \thinspace{}
5935 \begin_layout Standard
5951 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5954 \begin_layout Standard
5960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5963 \begin_layout Standard
5969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5972 \begin_layout Standard
5978 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5981 \begin_layout Standard
5988 <row topline="true">
5989 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5992 \begin_layout Standard
5998 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6001 \begin_layout Standard
6007 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6010 \begin_layout Standard
6016 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6019 \begin_layout Standard
6025 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6028 \begin_layout Standard
6035 <row topline="true">
6036 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6039 \begin_layout Standard
6045 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6048 \begin_layout Standard
6054 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6057 \begin_layout Standard
6063 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6066 \begin_layout Standard
6072 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6075 \begin_layout Standard
6082 <row topline="true">
6083 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6086 \begin_layout Standard
6092 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6095 \begin_layout Standard
6101 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6104 \begin_layout Standard
6110 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6113 \begin_layout Standard
6119 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6122 \begin_layout Standard
6129 <row topline="true">
6130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6133 \begin_layout Standard
6139 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6142 \begin_layout Standard
6148 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6151 \begin_layout Standard
6157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6160 \begin_layout Standard
6166 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6169 \begin_layout Standard
6176 <row topline="true" bottomline="true">
6177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6180 \begin_layout Standard
6186 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6189 \begin_layout Standard
6195 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6198 \begin_layout Standard
6204 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6207 \begin_layout Standard
6213 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6216 \begin_layout Standard
6230 \begin_layout Standard
6234 \begin_layout Standard
6248 \begin_layout Standard
6249 \begin_inset Note Greyedout
6252 \begin_layout Standard
6257 When the LaTeX-package
6262 \begin_inset LatexCommand index
6263 name "LaTeX-packages ! caption"
6267 is used, as in this document, the full page width is used for the caption
6268 when you use the default value of 4\InsetSpace \thinspace{}
6276 To get in this case exactly a 4\InsetSpace \thinspace{}
6277 in wide caption, you can either use a value
6278 slightly different from 4.0\InsetSpace \thinspace{}
6280 3.99\InsetSpace \thinspace{}
6281 in, or the LaTeX-command
6285 captionsetup{width=value}
6287 that is provided by the
6299 \begin_layout Subsubsection
6300 Different Captions for Table Pages
6301 \begin_inset LatexCommand index
6302 name "Longtables ! Different Captions for Pages"
6309 \begin_layout Standard
6310 When the other captions should differ from the one of the first table page,
6311 insert a caption with a non-empty short title in a dummy caption row marked
6313 The caption used for the other table pages is inserted as caption without
6314 a short title in a dummy caption row that is marked as main header.
6315 When this caption shouldn't include the table number, use the command
6318 \begin_layout Standard
6323 caption*{caption text}
6326 \begin_layout Standard
6327 instead of LyX's caption box.
6328 The label to reference the table is inserted into the caption of the first
6332 \begin_inset LatexCommand ref
6333 reference "tab:DiffCaptions"
6337 is an example for a longtable with different heading where the second caption
6338 doesn't include the table number.
6341 \begin_layout Standard
6343 \begin_inset Tabular
6344 <lyxtabular version="3" rows="60" columns="3">
6345 <features islongtable="true">
6346 <column alignment="left" valignment="top" leftline="true" width="0cm">
6347 <column alignment="left" valignment="top" rightline="true" width="0pt">
6348 <column alignment="right" valignment="top" rightline="true" width="0pt">
6349 <row endfirsthead="true">
6350 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6353 \begin_layout Standard
6354 \begin_inset Caption
6356 \begin_layout Standard
6358 \begin_inset LatexCommand label
6359 name "tab:DiffCaptions"
6367 \begin_layout Standard
6382 \begin_layout Standard
6398 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6401 \begin_layout Standard
6407 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6410 \begin_layout Standard
6417 <row topline="true" bottomline="true" endfirsthead="true">
6418 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6421 \begin_layout Standard
6424 Example Phone List (ignore the names)
6429 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6432 \begin_layout Standard
6438 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6441 \begin_layout Standard
6448 <row topline="true" bottomline="true" endfirsthead="true">
6449 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6452 \begin_layout Standard
6460 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6463 \begin_layout Standard
6469 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6472 \begin_layout Standard
6481 <row bottomline="true" endhead="true">
6482 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6485 \begin_layout Standard
6489 \begin_layout Standard
6493 caption*{Continued Example Phone List}
6507 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6510 \begin_layout Standard
6516 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6519 \begin_layout Standard
6526 <row topline="true" bottomline="true" endhead="true">
6527 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6530 \begin_layout Standard
6538 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6541 \begin_layout Standard
6547 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6550 \begin_layout Standard
6557 <row topline="true" bottomline="true" endhead="true">
6558 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6561 \begin_layout Standard
6569 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6572 \begin_layout Standard
6578 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6581 \begin_layout Standard
6590 <row topline="true" bottomline="true" endfoot="true">
6591 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
6594 \begin_layout Standard
6595 continued on next page
6600 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6603 \begin_layout Standard
6609 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6612 \begin_layout Standard
6620 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6623 \begin_layout Standard
6631 <cell alignment="center" valignment="top" topline="true" usebox="none">
6634 \begin_layout Standard
6640 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6643 \begin_layout Standard
6651 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6654 \begin_layout Standard
6662 <cell alignment="center" valignment="top" topline="true" usebox="none">
6665 \begin_layout Standard
6671 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6674 \begin_layout Standard
6682 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6685 \begin_layout Standard
6693 <cell alignment="center" valignment="top" topline="true" usebox="none">
6696 \begin_layout Standard
6702 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6705 \begin_layout Standard
6713 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6716 \begin_layout Standard
6724 <cell alignment="center" valignment="top" topline="true" usebox="none">
6727 \begin_layout Standard
6733 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6736 \begin_layout Standard
6744 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6747 \begin_layout Standard
6755 <cell alignment="center" valignment="top" topline="true" usebox="none">
6758 \begin_layout Standard
6764 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6767 \begin_layout Standard
6775 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6778 \begin_layout Standard
6786 <cell alignment="center" valignment="top" topline="true" usebox="none">
6789 \begin_layout Standard
6795 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6798 \begin_layout Standard
6806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6809 \begin_layout Standard
6817 <cell alignment="center" valignment="top" topline="true" usebox="none">
6820 \begin_layout Standard
6826 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6829 \begin_layout Standard
6837 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6840 \begin_layout Standard
6848 <cell alignment="center" valignment="top" topline="true" usebox="none">
6851 \begin_layout Standard
6857 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6860 \begin_layout Standard
6868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6871 \begin_layout Standard
6879 <cell alignment="center" valignment="top" topline="true" usebox="none">
6882 \begin_layout Standard
6888 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6891 \begin_layout Standard
6899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6902 \begin_layout Standard
6910 <cell alignment="center" valignment="top" topline="true" usebox="none">
6913 \begin_layout Standard
6919 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6922 \begin_layout Standard
6930 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6933 \begin_layout Standard
6941 <cell alignment="center" valignment="top" topline="true" usebox="none">
6944 \begin_layout Standard
6950 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6953 \begin_layout Standard
6961 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6964 \begin_layout Standard
6972 <cell alignment="center" valignment="top" topline="true" usebox="none">
6975 \begin_layout Standard
6981 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6984 \begin_layout Standard
6992 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6995 \begin_layout Standard
7003 <cell alignment="center" valignment="top" topline="true" usebox="none">
7006 \begin_layout Standard
7012 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7015 \begin_layout Standard
7023 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7026 \begin_layout Standard
7034 <cell alignment="center" valignment="top" topline="true" usebox="none">
7037 \begin_layout Standard
7043 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7046 \begin_layout Standard
7054 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7057 \begin_layout Standard
7066 \begin_layout Standard
7077 <cell alignment="center" valignment="top" topline="true" usebox="none">
7080 \begin_layout Standard
7086 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7089 \begin_layout Standard
7097 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7100 \begin_layout Standard
7108 <cell alignment="center" valignment="top" topline="true" usebox="none">
7111 \begin_layout Standard
7117 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7120 \begin_layout Standard
7128 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7131 \begin_layout Standard
7139 <cell alignment="center" valignment="top" topline="true" usebox="none">
7142 \begin_layout Standard
7148 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7151 \begin_layout Standard
7159 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7162 \begin_layout Standard
7170 <cell alignment="center" valignment="top" topline="true" usebox="none">
7173 \begin_layout Standard
7179 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7182 \begin_layout Standard
7190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7193 \begin_layout Standard
7201 <cell alignment="center" valignment="top" topline="true" usebox="none">
7204 \begin_layout Standard
7210 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7213 \begin_layout Standard
7221 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7224 \begin_layout Standard
7232 <cell alignment="center" valignment="top" topline="true" usebox="none">
7235 \begin_layout Standard
7241 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7244 \begin_layout Standard
7252 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7255 \begin_layout Standard
7263 <cell alignment="center" valignment="top" topline="true" usebox="none">
7266 \begin_layout Standard
7272 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7275 \begin_layout Standard
7283 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7286 \begin_layout Standard
7294 <cell alignment="center" valignment="top" topline="true" usebox="none">
7297 \begin_layout Standard
7303 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7306 \begin_layout Standard
7314 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7317 \begin_layout Standard
7325 <cell alignment="center" valignment="top" topline="true" usebox="none">
7328 \begin_layout Standard
7334 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7337 \begin_layout Standard
7345 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7348 \begin_layout Standard
7356 <cell alignment="center" valignment="top" topline="true" usebox="none">
7359 \begin_layout Standard
7365 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7368 \begin_layout Standard
7376 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7379 \begin_layout Standard
7387 <cell alignment="center" valignment="top" topline="true" usebox="none">
7390 \begin_layout Standard
7396 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7399 \begin_layout Standard
7407 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7410 \begin_layout Standard
7418 <cell alignment="center" valignment="top" topline="true" usebox="none">
7421 \begin_layout Standard
7427 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7430 \begin_layout Standard
7438 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7441 \begin_layout Standard
7449 <cell alignment="center" valignment="top" topline="true" usebox="none">
7452 \begin_layout Standard
7458 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7461 \begin_layout Standard
7469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7472 \begin_layout Standard
7480 <cell alignment="center" valignment="top" topline="true" usebox="none">
7483 \begin_layout Standard
7489 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7492 \begin_layout Standard
7500 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7503 \begin_layout Standard
7511 <cell alignment="center" valignment="top" topline="true" usebox="none">
7514 \begin_layout Standard
7520 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7523 \begin_layout Standard
7531 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7534 \begin_layout Standard
7542 <cell alignment="center" valignment="top" topline="true" usebox="none">
7545 \begin_layout Standard
7551 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7554 \begin_layout Standard
7561 <row bottomline="true">
7562 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7565 \begin_layout Standard
7573 <cell alignment="center" valignment="top" topline="true" usebox="none">
7576 \begin_layout Standard
7582 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7585 \begin_layout Standard
7592 <row bottomline="true">
7593 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7596 \begin_layout Standard
7602 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
7605 \begin_layout Standard
7611 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7614 \begin_layout Standard
7622 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7625 \begin_layout Standard
7633 <cell alignment="center" valignment="top" topline="true" usebox="none">
7636 \begin_layout Standard
7642 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7645 \begin_layout Standard
7653 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7656 \begin_layout Standard
7664 <cell alignment="center" valignment="top" topline="true" usebox="none">
7667 \begin_layout Standard
7673 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7676 \begin_layout Standard
7684 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7687 \begin_layout Standard
7695 <cell alignment="center" valignment="top" topline="true" usebox="none">
7698 \begin_layout Standard
7704 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7707 \begin_layout Standard
7715 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7718 \begin_layout Standard
7726 <cell alignment="center" valignment="top" topline="true" usebox="none">
7729 \begin_layout Standard
7735 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7738 \begin_layout Standard
7746 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7749 \begin_layout Standard
7757 <cell alignment="center" valignment="top" topline="true" usebox="none">
7760 \begin_layout Standard
7766 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7769 \begin_layout Standard
7777 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7780 \begin_layout Standard
7788 <cell alignment="center" valignment="top" topline="true" usebox="none">
7791 \begin_layout Standard
7797 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7800 \begin_layout Standard
7808 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7811 \begin_layout Standard
7819 <cell alignment="center" valignment="top" topline="true" usebox="none">
7822 \begin_layout Standard
7828 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7831 \begin_layout Standard
7839 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7842 \begin_layout Standard
7850 <cell alignment="center" valignment="top" topline="true" usebox="none">
7853 \begin_layout Standard
7859 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7862 \begin_layout Standard
7870 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7873 \begin_layout Standard
7881 <cell alignment="center" valignment="top" topline="true" usebox="none">
7884 \begin_layout Standard
7890 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7893 \begin_layout Standard
7901 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7904 \begin_layout Standard
7912 <cell alignment="center" valignment="top" topline="true" usebox="none">
7915 \begin_layout Standard
7921 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7924 \begin_layout Standard
7932 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7935 \begin_layout Standard
7943 <cell alignment="center" valignment="top" topline="true" usebox="none">
7946 \begin_layout Standard
7952 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7955 \begin_layout Standard
7963 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7966 \begin_layout Standard
7974 <cell alignment="center" valignment="top" topline="true" usebox="none">
7977 \begin_layout Standard
7983 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7986 \begin_layout Standard
7994 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7997 \begin_layout Standard
8005 <cell alignment="center" valignment="top" topline="true" usebox="none">
8008 \begin_layout Standard
8014 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8017 \begin_layout Standard
8025 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8028 \begin_layout Standard
8036 <cell alignment="center" valignment="top" topline="true" usebox="none">
8039 \begin_layout Standard
8045 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8048 \begin_layout Standard
8056 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8059 \begin_layout Standard
8067 <cell alignment="center" valignment="top" topline="true" usebox="none">
8070 \begin_layout Standard
8076 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8079 \begin_layout Standard
8087 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8090 \begin_layout Standard
8098 <cell alignment="center" valignment="top" topline="true" usebox="none">
8101 \begin_layout Standard
8107 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8110 \begin_layout Standard
8118 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8121 \begin_layout Standard
8129 <cell alignment="center" valignment="top" topline="true" usebox="none">
8132 \begin_layout Standard
8138 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8141 \begin_layout Standard
8149 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8152 \begin_layout Standard
8160 <cell alignment="center" valignment="top" topline="true" usebox="none">
8163 \begin_layout Standard
8169 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8172 \begin_layout Standard
8180 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8183 \begin_layout Standard
8191 <cell alignment="center" valignment="top" topline="true" usebox="none">
8194 \begin_layout Standard
8200 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8203 \begin_layout Standard
8210 <row bottomline="true">
8211 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8214 \begin_layout Standard
8222 <cell alignment="center" valignment="top" topline="true" usebox="none">
8225 \begin_layout Standard
8231 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8234 \begin_layout Standard
8241 <row bottomline="true" endlastfoot="true">
8242 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
8245 \begin_layout Standard
8251 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8254 \begin_layout Standard
8260 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8263 \begin_layout Standard
8277 \begin_layout Section
8278 Special Longtable Issues
8279 \begin_inset LatexCommand label
8280 name "sec:Special-Longtable-Issues"
8287 \begin_layout Subsection
8288 Longtable Calculation
8289 \begin_inset LatexCommand index
8290 name "Longtables ! Calculation"
8297 \begin_layout Standard
8298 LaTeX calculates the height of table pages and their page breaks using so
8300 Chunks are pieces of the tables that are at once in LaTeX's memory.
8301 The default value is historically set to only 20 table rows.
8302 If you are using longtables with many pages this may slow down the creation
8304 You can safely increase the chunk size to values of 100-1000 by adding
8305 this command line to your document preamble:
8308 \begin_layout Standard
8313 setcounter{LTchunksize}{100}
8316 \begin_layout Subsection
8317 Floats and Longtables
8318 \begin_inset LatexCommand index
8319 name "Longtables ! Floats"
8326 \begin_layout Standard
8327 There might be problems when a float appears on the same page where a longtable
8329 To avoid such situation, add the command
8335 as ERT before your longtable.
8338 \begin_layout Subsection
8340 \begin_inset LatexCommand index
8341 name "Longtables ! Forced Page Breaks"
8348 \begin_layout Standard
8349 By default tables are only broken between rows.
8350 If you have a cell with multiples lines and want to have a page break within
8351 the cell, insert the new line command
8352 \begin_inset Quotes eld
8364 \begin_inset Quotes erd
8367 as ERT at this point of the cell where it should be broken.
8376 command you have to insert in ERT so many
8377 \begin_inset Quotes eld
8385 \begin_inset Quotes erd
8388 characters like the number of the following table columns.
8393 is the character to separate table cells.
8394 Write in ERT after each
8398 the content of the corresponding following cell and delete the content
8409 command, insert so many
8413 characters like the number of table columns before the current column.
8414 In Table\InsetSpace ~
8416 \begin_inset LatexCommand ref
8417 reference "tab:ForcedPagebreak"
8421 the cell that should be broken is in the second column followed by another
8423 Therefore the following command was inserted in the cell as ERT behind
8425 \begin_inset Quotes eld
8433 \begin_inset Quotes erd
8439 \begin_layout Standard
8451 \begin_layout Standard
8453 \begin_inset Quotes eld
8457 \begin_inset Quotes erd
8460 in the third columns of the row was deleted.
8461 If your footer row of the longtable has for a certain reason no upper line
8462 but you would have a horizontal line where the cell is broken, use this
8466 \begin_layout Standard
8480 \begin_layout Standard
8481 When the cell to be broken is in the last column, the command
8484 \begin_layout Standard
8491 parf\SpecialChar \textcompwordmark{}
8495 \begin_layout Standard
8496 must be inserted as ERT at the beginning of the cell.
8497 This assures that the part of the cell that will be displayed on the new
8498 page appears with the full width.
8502 \begin_layout Standard
8504 \begin_inset Tabular
8505 <lyxtabular version="3" rows="39" columns="3">
8506 <features islongtable="true">
8507 <column alignment="left" valignment="top" leftline="true" width="0cm">
8508 <column alignment="left" valignment="top" rightline="true" width="3cm">
8509 <column alignment="right" valignment="top" rightline="true" width="0pt">
8510 <row endfirsthead="true">
8511 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8514 \begin_layout Standard
8515 \begin_inset Caption
8517 \begin_layout Standard
8518 Table with forced page break in table cell
8519 \begin_inset LatexCommand label
8520 name "tab:ForcedPagebreak"
8528 \begin_layout Standard
8529 Table with forced page break in table cell
8543 \begin_layout Standard
8559 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8562 \begin_layout Standard
8568 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8571 \begin_layout Standard
8578 <row topline="true" bottomline="true" endfirsthead="true">
8579 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8582 \begin_layout Standard
8585 Example Phone List (ignore the names)
8590 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8593 \begin_layout Standard
8599 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8602 \begin_layout Standard
8609 <row topline="true" bottomline="true" endfirsthead="true">
8610 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8613 \begin_layout Standard
8621 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8624 \begin_layout Standard
8630 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8633 \begin_layout Standard
8642 <row bottomline="true" endhead="true">
8643 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8646 \begin_layout Standard
8650 \begin_layout Standard
8654 caption*{Continued table with forced page break in table cell}
8668 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8671 \begin_layout Standard
8677 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8680 \begin_layout Standard
8687 <row topline="true" bottomline="true" endhead="true">
8688 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8691 \begin_layout Standard
8699 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8702 \begin_layout Standard
8708 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8711 \begin_layout Standard
8718 <row topline="true" bottomline="true" endhead="true">
8719 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8722 \begin_layout Standard
8730 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8733 \begin_layout Standard
8739 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8742 \begin_layout Standard
8751 <row topline="true" bottomline="true" endfoot="true">
8752 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
8755 \begin_layout Standard
8756 continued on next page
8761 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8764 \begin_layout Standard
8770 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8773 \begin_layout Standard
8781 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8784 \begin_layout Standard
8792 <cell alignment="center" valignment="top" topline="true" usebox="none">
8795 \begin_layout Standard
8801 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8804 \begin_layout Standard
8812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8815 \begin_layout Standard
8823 <cell alignment="center" valignment="top" topline="true" usebox="none">
8826 \begin_layout Standard
8832 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8835 \begin_layout Standard
8843 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8846 \begin_layout Standard
8854 <cell alignment="center" valignment="top" topline="true" usebox="none">
8857 \begin_layout Standard
8863 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8866 \begin_layout Standard
8874 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8877 \begin_layout Standard
8885 <cell alignment="center" valignment="top" topline="true" usebox="none">
8888 \begin_layout Standard
8894 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8897 \begin_layout Standard
8905 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8908 \begin_layout Standard
8916 <cell alignment="center" valignment="top" topline="true" usebox="none">
8919 \begin_layout Standard
8925 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8928 \begin_layout Standard
8936 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8939 \begin_layout Standard
8947 <cell alignment="center" valignment="top" topline="true" usebox="none">
8950 \begin_layout Standard
8956 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8959 \begin_layout Standard
8967 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8970 \begin_layout Standard
8978 <cell alignment="center" valignment="top" topline="true" usebox="none">
8981 \begin_layout Standard
8987 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8990 \begin_layout Standard
8998 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9001 \begin_layout Standard
9009 <cell alignment="center" valignment="top" topline="true" usebox="none">
9012 \begin_layout Standard
9018 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9021 \begin_layout Standard
9029 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9032 \begin_layout Standard
9040 <cell alignment="center" valignment="top" topline="true" usebox="none">
9043 \begin_layout Standard
9049 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9052 \begin_layout Standard
9060 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9063 \begin_layout Standard
9071 <cell alignment="center" valignment="top" topline="true" usebox="none">
9074 \begin_layout Standard
9080 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9083 \begin_layout Standard
9091 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9094 \begin_layout Standard
9102 <cell alignment="center" valignment="top" topline="true" usebox="none">
9105 \begin_layout Standard
9111 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9114 \begin_layout Standard
9122 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9125 \begin_layout Standard
9133 <cell alignment="center" valignment="top" topline="true" usebox="none">
9136 \begin_layout Standard
9142 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9145 \begin_layout Standard
9153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9156 \begin_layout Standard
9164 <cell alignment="center" valignment="top" topline="true" usebox="none">
9167 \begin_layout Standard
9173 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9176 \begin_layout Standard
9184 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9187 \begin_layout Standard
9195 <cell alignment="center" valignment="top" topline="true" usebox="none">
9198 \begin_layout Standard
9204 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9207 \begin_layout Standard
9215 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9218 \begin_layout Standard
9226 <cell alignment="center" valignment="top" topline="true" usebox="none">
9229 \begin_layout Standard
9235 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9238 \begin_layout Standard
9246 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9249 \begin_layout Standard
9257 <cell alignment="center" valignment="top" topline="true" usebox="none">
9260 \begin_layout Standard
9266 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9269 \begin_layout Standard
9277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9280 \begin_layout Standard
9288 <cell alignment="center" valignment="top" topline="true" usebox="none">
9291 \begin_layout Standard
9297 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9300 \begin_layout Standard
9308 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9311 \begin_layout Standard
9319 <cell alignment="center" valignment="top" topline="true" usebox="none">
9322 \begin_layout Standard
9328 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9331 \begin_layout Standard
9339 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9342 \begin_layout Standard
9350 <cell alignment="center" valignment="top" topline="true" usebox="none">
9353 \begin_layout Standard
9359 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9362 \begin_layout Standard
9370 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9373 \begin_layout Standard
9381 <cell alignment="center" valignment="top" topline="true" usebox="none">
9384 \begin_layout Standard
9390 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9393 \begin_layout Standard
9401 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9404 \begin_layout Standard
9412 <cell alignment="center" valignment="top" topline="true" usebox="none">
9415 \begin_layout Standard
9421 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9424 \begin_layout Standard
9432 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9435 \begin_layout Standard
9443 <cell alignment="center" valignment="top" topline="true" usebox="none">
9446 \begin_layout Standard
9452 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9455 \begin_layout Standard
9463 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9466 \begin_layout Standard
9474 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9477 \begin_layout Standard
9479 Fürst von Montecompatri, 11.
9480 Fürst von Sulmona und Vivaro, 10.
9481 Fürst von Rossano, 5.
9482 Herzog von Canemorte, 11.
9483 Herzog von Palombara, 5.
9484 Herzog von Castelchiodato,
9488 \begin_layout Standard
9497 \begin_layout Standard
9505 Herzog von Poggionativo, 11.
9506 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
9507 Graf von Valinfreda, 11.
9508 Baron von Cropalati, 11.
9509 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
9514 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9517 \begin_layout Standard
9525 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9528 \begin_layout Standard
9536 <cell alignment="center" valignment="top" topline="true" usebox="none">
9539 \begin_layout Standard
9545 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9548 \begin_layout Standard
9556 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9559 \begin_layout Standard
9567 <cell alignment="center" valignment="top" topline="true" usebox="none">
9570 \begin_layout Standard
9576 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9579 \begin_layout Standard
9587 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9590 \begin_layout Standard
9598 <cell alignment="center" valignment="top" topline="true" usebox="none">
9601 \begin_layout Standard
9607 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9610 \begin_layout Standard
9618 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9621 \begin_layout Standard
9629 <cell alignment="center" valignment="top" topline="true" usebox="none">
9632 \begin_layout Standard
9638 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9641 \begin_layout Standard
9649 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9652 \begin_layout Standard
9660 <cell alignment="center" valignment="top" topline="true" usebox="none">
9663 \begin_layout Standard
9669 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9672 \begin_layout Standard
9680 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9683 \begin_layout Standard
9691 <cell alignment="center" valignment="top" topline="true" usebox="none">
9694 \begin_layout Standard
9700 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9703 \begin_layout Standard
9711 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9714 \begin_layout Standard
9722 <cell alignment="center" valignment="top" topline="true" usebox="none">
9725 \begin_layout Standard
9731 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9734 \begin_layout Standard
9741 <row bottomline="true">
9742 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9745 \begin_layout Standard
9753 <cell alignment="center" valignment="top" topline="true" usebox="none">
9756 \begin_layout Standard
9762 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9765 \begin_layout Standard
9772 <row endlastfoot="true">
9773 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9776 \begin_layout Standard
9782 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9785 \begin_layout Standard
9791 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9794 \begin_layout Standard
9808 \begin_layout Section
9809 Multiple Lines Columns and Rows
9812 \begin_layout Subsection
9813 Multiple Lines in Table Cells
9814 \begin_inset LatexCommand label
9815 name "sub:Multiple-Lines-in"
9820 \begin_inset LatexCommand index
9821 name "Multiple Lines in Table Cells"
9826 \begin_inset LatexCommand index
9827 name "Table ! Linebreaks"
9834 \begin_layout Standard
9836 \begin_inset Float table
9842 \begin_layout Standard
9843 \begin_inset Caption
9845 \begin_layout Standard
9846 \begin_inset LatexCommand label
9847 name "tab:Table-with-multiple"
9851 Table with multiple lines in cells
9859 \begin_layout Standard
9861 \begin_inset Tabular
9862 <lyxtabular version="3" rows="3" columns="3">
9864 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
9865 <column alignment="center" valignment="middle" leftline="true" width="0.5cm">
9866 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0.5cm">
9867 <row topline="true">
9868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9871 \begin_layout Standard
9876 \begin_layout Standard
9890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9893 \begin_layout Standard
9899 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9902 \begin_layout Standard
9909 <row topline="true">
9910 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9913 \begin_layout Standard
9919 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9922 \begin_layout Standard
9928 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9931 \begin_layout Standard
9938 <row topline="true" bottomline="true">
9939 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9942 \begin_layout Standard
9948 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9951 \begin_layout Standard
9957 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9960 \begin_layout Standard
9979 \begin_layout Standard
9980 Adjusting a fixed width for a column, enables to enter text as a paragraph
9981 with multiple lines and hyphenations.
9984 \begin_layout Standard
9985 To produce Table\InsetSpace ~
9987 \begin_inset LatexCommand ref
9988 reference "tab:Table-with-multiple"
9992 , create a 3×3 table, mark the first cell and right-click on it.
9993 In the appearing table dialog we set a cell width of 2.5\InsetSpace \thinspace{}
9994 cm and choose centered
9995 for the vertical and horizontal alignment.
9996 As our text is smaller than than 2.5\InsetSpace \thinspace{}
9997 cm, only one line will appear.
9998 To get two lines, we add a line break with the command
10001 \begin_layout Standard
10009 \begin_layout Standard
10011 If the text is wider than the set cell width it will automatically be broken
10015 \begin_layout Standard
10016 To center the text inside the two other cells of the first row vertically,
10017 right-click in the second cell, adjust a fixed width of 0.5\InsetSpace \thinspace{}
10019 centered alignments.
10020 Then do the same for the third cell of the row.
10023 \begin_layout Standard
10024 If you have a long word in a cell with a fixed width, it cannot be hyphenated
10025 by LaTeX if it is the first entry.
10026 Therefore you need to insert something, to make the word not being the
10027 first entry: Add the command
10030 \begin_layout Standard
10038 \begin_layout Standard
10039 in ERT before the word.
10040 As the space is zero, it doesn't change the output.
10043 \begin_inset LatexCommand ref
10044 reference "tab:Table-with-and"
10051 \begin_layout Standard
10052 \begin_inset Float table
10058 \begin_layout Standard
10059 \begin_inset Caption
10061 \begin_layout Standard
10062 \begin_inset LatexCommand label
10063 name "tab:Table-with-and"
10067 Table with and without hyphenation
10075 \begin_layout Standard
10079 \begin_inset Tabular
10080 <lyxtabular version="3" rows="3" columns="3">
10082 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10083 <column alignment="center" valignment="middle" leftline="true" width="0.5cm">
10084 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0.5cm">
10085 <row topline="true">
10086 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10089 \begin_layout Standard
10090 verylongtablecellword
10095 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10098 \begin_layout Standard
10104 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10107 \begin_layout Standard
10114 <row topline="true">
10115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10118 \begin_layout Standard
10124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10127 \begin_layout Standard
10133 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10136 \begin_layout Standard
10143 <row topline="true" bottomline="true">
10144 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10147 \begin_layout Standard
10153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10156 \begin_layout Standard
10162 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10165 \begin_layout Standard
10179 \begin_inset Tabular
10180 <lyxtabular version="3" rows="3" columns="3">
10182 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10183 <column alignment="center" valignment="middle" leftline="true" width="0.5cm">
10184 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0.5cm">
10185 <row topline="true">
10186 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10189 \begin_layout Standard
10193 \begin_layout Standard
10202 verylongtablecellword
10207 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10210 \begin_layout Standard
10216 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10219 \begin_layout Standard
10226 <row topline="true">
10227 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10230 \begin_layout Standard
10236 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10239 \begin_layout Standard
10245 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10248 \begin_layout Standard
10255 <row topline="true" bottomline="true">
10256 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10259 \begin_layout Standard
10265 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10268 \begin_layout Standard
10274 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10277 \begin_layout Standard
10298 \begin_layout Standard
10304 \begin_layout Subsection
10306 \begin_inset LatexCommand label
10307 name "sub:Multicolumns"
10312 \begin_inset LatexCommand index
10313 name "Multicolumns"
10318 \begin_inset LatexCommand index
10319 name "Table ! Multicolumns"
10326 \begin_layout Subsubsection
10330 \begin_layout Standard
10331 To span a cell over multiple columns, mark as much cells within a line that
10332 should be one spanned cell and use either the table-toolbar button
10333 \begin_inset Graphics
10334 filename ../images/tabular-feature_multicolumn.xpm
10341 Edit\SpecialChar \menuseparator
10342 Table\SpecialChar \menuseparator
10345 , or right click on the marked cells and choose multicolumn in the appearing
10346 table dialog under the tab
10353 \begin_layout Standard
10354 Multicolumns have there own cell settings.
10355 That means changing cell borders, cell alignment, and the width only affects
10357 Here is an example table with a multicolumn cell in the first row and one
10358 in the last row without the upper border:
10361 \begin_layout Standard
10363 \begin_inset Tabular
10364 <lyxtabular version="3" rows="3" columns="4">
10365 <features firstHeadTopDL="true" firstHeadBottomDL="true">
10366 <column alignment="center" valignment="top" leftline="true" width="0pt">
10367 <column alignment="center" valignment="middle" leftline="true" width="0">
10368 <column alignment="center" valignment="top" leftline="true" width="0in">
10369 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
10370 <row topline="true" bottomline="true">
10371 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10374 \begin_layout Standard
10380 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
10383 \begin_layout Standard
10393 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10396 \begin_layout Standard
10402 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10405 \begin_layout Standard
10412 <row topline="true">
10413 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10416 \begin_layout Standard
10431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10434 \begin_layout Standard
10440 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10443 \begin_layout Standard
10449 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10452 \begin_layout Standard
10459 <row topline="true" bottomline="true">
10460 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10463 \begin_layout Standard
10469 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10472 \begin_layout Standard
10478 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10481 \begin_layout Standard
10487 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10490 \begin_layout Standard
10504 \begin_layout Subsubsection
10505 Multicolumn Calculations
10506 \begin_inset LatexCommand label
10507 name "sub:Multicolumn-Calculations"
10512 \begin_inset LatexCommand index
10513 name "Multicolumns ! Calculations"
10520 \begin_layout Standard
10521 LyX supports multicolumns directly, but we have to take notice of the cell
10522 width of the columns spanned by the multicolumn cell.
10525 \begin_layout Standard
10526 \begin_inset Float table
10531 \begin_layout Standard
10532 \begin_inset Caption
10534 \begin_layout Standard
10535 \begin_inset LatexCommand label
10536 name "tab:Table-with-centered"
10540 Table with centered multicolumn text above two columns that have exactly
10541 half the width of the multicolumn cell
10542 \begin_inset OptArg
10545 \begin_layout Standard
10546 Perfect multicolumn table
10559 \begin_layout Standard
10561 \begin_inset Tabular
10562 <lyxtabular version="3" rows="3" columns="3">
10564 <column alignment="center" valignment="middle" leftline="true" width="0" special=">{\centering}m{1.25cm-6.2pt}">
10565 <column alignment="center" valignment="middle" leftline="true" width="0">
10566 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10567 <row topline="true">
10568 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
10571 \begin_layout Standard
10572 multiple lines multicolumn
10577 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10580 \begin_layout Standard
10586 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10589 \begin_layout Standard
10596 <row topline="true">
10597 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10600 \begin_layout Standard
10606 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10609 \begin_layout Standard
10615 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10618 \begin_layout Standard
10625 <row topline="true" bottomline="true">
10626 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10629 \begin_layout Standard
10635 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10638 \begin_layout Standard
10644 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10647 \begin_layout Standard
10666 \begin_layout Standard
10667 To create for example Table\InsetSpace ~
10669 \begin_inset LatexCommand ref
10670 reference "tab:Table-with-centered"
10674 , mark the first two cells in the first row a 3×3 table and right-click
10676 Now choose for this cell
10684 and a width of 2.5\InsetSpace \thinspace{}
10685 cm in the table dialog.
10686 The spanned columns should have exactly half the width of the multicolumn
10687 cell, so that you would adjust a width of 1.25\InsetSpace \thinspace{}
10688 cm for the first column.
10689 The second column has then automatically a width of 1.25\InsetSpace \thinspace{}
10691 width - width of first column).
10692 This was done for Table\InsetSpace ~
10694 \begin_inset LatexCommand ref
10695 reference "tab:Table-without-half"
10702 \begin_layout Standard
10703 \begin_inset Float table
10708 \begin_layout Standard
10709 \begin_inset Caption
10711 \begin_layout Standard
10712 \begin_inset LatexCommand label
10713 name "tab:Table-without-half"
10717 Table where the spanned table columns have not exactly half the width of
10718 the multicolumn cell
10719 \begin_inset OptArg
10722 \begin_layout Standard
10723 Imperfect multicolumn table
10736 \begin_layout Standard
10738 \begin_inset Tabular
10739 <lyxtabular version="3" rows="3" columns="3">
10741 <column alignment="center" valignment="top" leftline="true" width="1.25cm">
10742 <column alignment="center" valignment="top" leftline="true" width="0">
10743 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10744 <row topline="true" bottomline="true">
10745 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
10748 \begin_layout Standard
10749 multiple lines multicolumn
10754 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10757 \begin_layout Standard
10763 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10766 \begin_layout Standard
10773 <row topline="true">
10774 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10777 \begin_layout Standard
10783 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10786 \begin_layout Standard
10792 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10795 \begin_layout Standard
10802 <row topline="true" bottomline="true">
10803 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10806 \begin_layout Standard
10812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10815 \begin_layout Standard
10821 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10824 \begin_layout Standard
10843 \begin_layout Standard
10844 You can see that the first column has not the half width of the multicolumn
10845 cell, it is a bit bigger.
10846 The reason is that the given width of a cell
10847 \begin_inset Formula $W_{g}$
10850 is not its total width
10851 \begin_inset Formula $W_{\mathrm{tot}}$
10854 because a cell is always a bit larger than its given width.
10855 Appendix\InsetSpace ~
10857 \begin_inset LatexCommand eqref
10858 reference "cha:Explanation-of-Equation"
10862 explains it in detail.
10865 \begin_layout Standard
10866 The needed given width
10867 \begin_inset Formula $W_{g\, n}$
10874 columns are spanned columns can be calculated, so that each column has
10876 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
10880 \begin_inset Formula \begin{equation}
10881 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)·(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
10888 \begin_layout Standard
10889 In our case we have
10890 \begin_inset Formula $n=2$
10894 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
10897 cm and the default values for the lengths, so that equation
10898 \begin_inset LatexCommand ref
10904 \begin_inset Formula \begin{equation}
10905 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
10912 \begin_layout Standard
10913 To enable calculations in LaTeX, the LaTeX-package
10917 must be loaded with the document preamble line
10918 \begin_inset LatexCommand index
10919 name "LaTeX-packages ! calc"
10926 \begin_layout Standard
10934 \begin_layout Standard
10935 LyX does not allow to calculate lengths in the width-field of the table
10937 Therefore you have to format the column by inserting a LaTeX-argument in
10939 Here is an overview about the arguments:
10942 \begin_layout Itemize
10947 creates cell with a fixed width, its text is vertically top-aligned
10950 \begin_layout Itemize
10955 creates cell with a fixed width, its text is vertically centered
10958 \begin_layout Itemize
10963 creates cell with a fixed width, its text is vertically bottom-aligned
10966 \begin_layout Standard
10967 By entering a LaTeX-argument, all cell properties set in the table dialog
10970 \begin_inset Note Greyedout
10973 \begin_layout Standard
10978 Due to a bug, LyX shows the overwritten properties anyway.
10983 As the text should be horizontally centered, the command
10990 You can now enter the following LaTeX-argument for the first spanned column:
10993 \begin_layout Standard
10998 centering}m{1.25cm-6.2pt}
11001 \begin_layout Standard
11006 means, that the commands inside the braces are applied before the cell
11010 \begin_layout Standard
11011 Although we have chosen centered alignment for the text of the multicolumn
11012 cell, it is still left aligned.
11013 This is because LyX only applies the alignment to single columns.
11014 So we have to use for the multicolumn the LaTeX-argument
11017 \begin_layout Standard
11025 \begin_layout Subsection
11027 \begin_inset LatexCommand index
11033 \begin_inset LatexCommand index
11034 name "Table ! Multirows"
11039 \begin_inset LatexCommand index
11040 name "LaTeX-packages ! multirow"
11047 \begin_layout Standard
11048 In contrary to multicolumns multirows are not yet supported by LyX so a
11049 bit of ERT needs to be used.
11050 To use multirows load the LaTeX-package
11054 in your document preamble with the command
11057 \begin_layout Standard
11062 usepackage{multirow}
11065 \begin_layout Standard
11066 Multirows are created with the command
11069 \begin_layout Standard
11074 multirow{number of rows}{cell width}{cell entry}
11077 \begin_layout Standard
11078 To create the following table:
11081 \begin_layout Standard
11086 \begin_layout Standard
11100 \begin_inset Tabular
11101 <lyxtabular version="3" rows="3" columns="3">
11103 <column alignment="center" valignment="top" leftline="true" width="0">
11104 <column alignment="center" valignment="top" leftline="true" width="0">
11105 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
11106 <row topline="true">
11107 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11110 \begin_layout Standard
11116 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11119 \begin_layout Standard
11125 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11128 \begin_layout Standard
11135 <row topline="true">
11136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11139 \begin_layout Standard
11143 \begin_layout Standard
11147 multirow{2}{2.5cm}{
11156 \begin_layout Standard
11168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11171 \begin_layout Standard
11177 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11180 \begin_layout Standard
11187 <row topline="true" bottomline="true">
11188 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11191 \begin_layout Standard
11197 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11200 \begin_layout Standard
11206 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11209 \begin_layout Standard
11224 \begin_layout Standard
11240 \begin_layout Standard
11241 create a 3×3 table.
11242 To get rid of the line above the last cell in the first column, the cell
11243 is marked as multicolumn and the upper border is unset.
11244 The multirow is now created in the second row of the first column by inserting
11248 \begin_layout Standard
11253 multirow{2}{2.5cm}{
11256 \begin_layout Standard
11258 According to the command parameters the multirow spans now two rows and
11259 has a width of 2.5\InsetSpace \thinspace{}
11261 The content of the multirow cell follows outside the ERT box and the command
11262 is finished with a right brace
11266 in another ERT-box behind the text.
11269 \begin_layout Standard
11276 left-aligns its content by default.
11277 To override the default, renew the command
11286 \begin_layout Standard
11298 \begin_layout Standard
11299 in ERT in the document preamble.
11300 Then all entries of multirow cells in the document are centered.
11301 If centering is only needed for several tables, you can renew the command
11302 in an ERT box just before the table instead of the preamble.
11303 If the text should be right-aligned, replace
11316 To return to left-alignment
11325 \begin_layout Section
11327 \begin_inset LatexCommand label
11328 name "sec:Formal-Tables"
11333 \begin_inset LatexCommand index
11334 name "Table ! Formal"
11341 \begin_layout Standard
11342 Tables are often typeset in books similar to Table\InsetSpace ~
11344 \begin_inset LatexCommand ref
11345 reference "tab:Example-booktabs-table"
11350 This kind of tables is called
11351 \begin_inset Quotes eld
11359 \begin_inset Quotes erd
11363 To make a table a formal table use the option
11371 tab of the table dialog.
11374 \begin_layout Standard
11375 \begin_inset Float table
11381 \begin_layout Standard
11382 \begin_inset Caption
11384 \begin_layout Standard
11385 \begin_inset LatexCommand label
11386 name "tab:Example-booktabs-table"
11390 Example booktabs-table
11398 \begin_layout Standard
11400 \begin_inset Tabular
11401 <lyxtabular version="3" rows="8" columns="4">
11402 <features booktabs="true">
11403 <column alignment="center" valignment="top" rightline="true" width="0">
11404 <column alignment="center" valignment="top" width="0">
11405 <column alignment="center" valignment="top" width="0">
11406 <column alignment="center" valignment="top" width="0">
11407 <row topline="true">
11408 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11411 \begin_layout Standard
11417 <cell alignment="center" valignment="top" topline="true" usebox="none">
11420 \begin_layout Standard
11422 \begin_inset Formula $\,$
11430 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
11433 \begin_layout Standard
11435 \begin_inset Formula $\,$
11443 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11446 \begin_layout Standard
11454 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11457 \begin_layout Standard
11461 \begin_layout Standard
11474 \begin_layout Standard
11483 Detector thickness [µm]
11488 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11491 \begin_layout Standard
11497 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11500 \begin_layout Standard
11506 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11509 \begin_layout Standard
11516 <row topline="true">
11517 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11520 \begin_layout Standard
11526 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11529 \begin_layout Standard
11535 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11538 \begin_layout Standard
11544 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11547 \begin_layout Standard
11554 <row topspace="default">
11555 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11558 \begin_layout Standard
11559 Spatial resolution [µm]
11564 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11567 \begin_layout Standard
11573 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11576 \begin_layout Standard
11582 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11585 \begin_layout Standard
11592 <row topspace="default">
11593 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11596 \begin_layout Standard
11598 \begin_inset Formula $f_{\mathrm{max}}$
11606 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11609 \begin_layout Standard
11615 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11618 \begin_layout Standard
11624 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11627 \begin_layout Standard
11634 <row topspace="default">
11635 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11638 \begin_layout Standard
11642 \begin_layout Standard
11646 cmidrule(l{10pt}){1-1}
11651 LSF-spatial resolution
11656 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11659 \begin_layout Standard
11665 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11668 \begin_layout Standard
11674 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11677 \begin_layout Standard
11685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11688 \begin_layout Standard
11694 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11697 \begin_layout Standard
11703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11706 \begin_layout Standard
11712 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11715 \begin_layout Standard
11722 <row bottomline="true">
11723 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11726 \begin_layout Standard
11732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11735 \begin_layout Standard
11741 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11744 \begin_layout Standard
11750 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11753 \begin_layout Standard
11772 \begin_layout Standard
11773 Spaces to table rows can be added using the
11777 tab of the table dialog as described in section\InsetSpace ~
11779 \begin_inset LatexCommand ref
11780 reference "sub:Row-Spacing"
11787 \begin_layout Standard
11788 In contrary to normal tables, formal tables have no vertical table lines.
11789 The horizontal table lines can be set like for normal tables but they appear
11790 with different width in the output:
11792 The first and the last table line have
11793 a default width of 0.08\InsetSpace \thinspace{}
11794 em while the other lines have a default width of
11795 0.05\InsetSpace \thinspace{}
11799 \begin_layout Standard
11800 The default widths can be changed with the following preamble lines
11803 \begin_layout Standard
11823 \begin_layout Standard
11824 This example is for the first line, the so called toprule.
11825 If you want to change the width for the last line, replace
11834 To change the width for the other lines replace
11843 You can use all units listed in appendix\InsetSpace ~
11845 \begin_inset LatexCommand ref
11846 reference "cha:Units-available-in"
11853 \begin_layout Standard
11854 Lines that don't span over all table columns can be created by setting a
11855 table line for multicolumn cells.
11856 LyX will then internally use the command
11862 to create this line.
11866 \begin_layout Standard
11871 cmidrule[width](trim){startcol-endcol}
11874 \begin_layout Standard
11881 are are currently not supported by LyX so you have to use ERT to be able
11889 s can manually be created by inserting the command as ERT as first cell
11890 entry of the first cell of a row.
11891 The line is then drawn in the output above the current row.
11894 \begin_layout Standard
11895 The default for the width is 0.03\InsetSpace \thinspace{}
11897 Startcol is the number of the column where the line starts and endcol the
11898 column number where the line ends.
11899 The endcol always needs to be specified, also when the line should span
11901 The optional parameter trim could be either
11909 where the trimwidth is also optional.
11910 Using for example the parameter
11914 means that the line is trimmed from its left end by 2\InsetSpace \thinspace{}
11916 If you don't specify the trimwidth the lines are trimmed by the default
11917 of 0.5\InsetSpace \thinspace{}
11921 \begin_layout Standard
11922 \begin_inset VSpace bigskip
11927 \begin_inset LatexCommand ref
11928 reference "tab:Example-booktabs-table"
11932 was created using the commands
11935 \begin_layout Standard
11945 \begin_layout Standard
11946 at the beginning of the in the second row and
11949 \begin_layout Standard
11954 cmidrule(l{10pt}){1-1}
11957 \begin_layout Standard
11961 \begin_layout Standard
11965 \begin_layout Standard
11966 \begin_inset VSpace bigskip
11972 \begin_layout Standard
11973 You might want to have overlapping
11979 s like in Table\InsetSpace ~
11981 \begin_inset LatexCommand ref
11982 reference "tab:Special-booktabs-table"
11987 This can be achieved with the ERT command
11990 \begin_layout Standard
11998 \begin_layout Standard
11999 The command that was used for the second row of Table\InsetSpace ~
12001 \begin_inset LatexCommand ref
12002 reference "tab:Special-booktabs-table"
12009 \begin_layout Standard
12023 \begin_layout Standard
12024 The command for the sixth row is
12027 \begin_layout Standard
12039 \begin_layout Standard
12040 \begin_inset VSpace bigskip
12046 \begin_layout Standard
12047 If you are anyway not satisfied with the border line spacing, you can use
12048 the following command to produce lines that span over all table columns
12053 \begin_layout Standard
12058 specialrule{width}{space above}{space below}
12061 \begin_layout Standard
12062 For more informations about these specialties, we refer to the manual of
12068 \begin_inset LatexCommand cite
12074 \begin_inset LatexCommand index
12075 name "LaTeX-packages ! booktabs"
12082 \begin_layout Standard
12083 \begin_inset Float table
12089 \begin_layout Standard
12090 \begin_inset Caption
12092 \begin_layout Standard
12093 \begin_inset LatexCommand label
12094 name "tab:Special-booktabs-table"
12098 Special booktabs-table
12106 \begin_layout Standard
12108 \begin_inset Tabular
12109 <lyxtabular version="3" rows="8" columns="4">
12110 <features booktabs="true">
12111 <column alignment="center" valignment="top" width="0">
12112 <column alignment="center" valignment="top" width="0">
12113 <column alignment="center" valignment="top" width="0">
12114 <column alignment="center" valignment="top" width="0">
12115 <row topline="true">
12116 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12119 \begin_layout Standard
12125 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12128 \begin_layout Standard
12129 Medipix\InsetSpace \thinspace{}
12135 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
12138 \begin_layout Standard
12139 Medipix\InsetSpace \thinspace{}
12145 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12148 \begin_layout Standard
12156 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12159 \begin_layout Standard
12163 \begin_layout Standard
12176 \begin_layout Standard
12189 \begin_layout Standard
12202 \begin_layout Standard
12211 Detector thickness [µm]
12216 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12219 \begin_layout Standard
12225 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12228 \begin_layout Standard
12234 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12237 \begin_layout Standard
12244 <row topline="true">
12245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12248 \begin_layout Standard
12254 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12257 \begin_layout Standard
12263 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12266 \begin_layout Standard
12272 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12275 \begin_layout Standard
12282 <row topspace="default">
12283 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12286 \begin_layout Standard
12287 Spatial resolution [µm]
12292 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12295 \begin_layout Standard
12301 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12304 \begin_layout Standard
12310 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12313 \begin_layout Standard
12320 <row topspace="default">
12321 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12324 \begin_layout Standard
12326 \begin_inset Formula $f_{\mathrm{max}}$
12334 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12337 \begin_layout Standard
12343 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12346 \begin_layout Standard
12352 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12355 \begin_layout Standard
12362 <row topline="true">
12363 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12366 \begin_layout Standard
12370 \begin_layout Standard
12383 \begin_layout Standard
12392 LSF-spatial resolution
12397 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12400 \begin_layout Standard
12406 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12409 \begin_layout Standard
12415 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12418 \begin_layout Standard
12426 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12429 \begin_layout Standard
12435 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12438 \begin_layout Standard
12444 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12447 \begin_layout Standard
12453 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12456 \begin_layout Standard
12463 <row bottomline="true">
12464 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12467 \begin_layout Standard
12473 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12476 \begin_layout Standard
12482 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12485 \begin_layout Standard
12491 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12494 \begin_layout Standard
12513 \begin_layout Section
12514 Vertical Table Alignment
12515 \begin_inset LatexCommand index
12516 name "Table ! Alignment"
12523 \begin_layout Standard
12524 To align tables vertically in a text line the table must be inside a box.
12525 The box can then be vertically aligned as described in section\InsetSpace ~
12527 \begin_inset LatexCommand ref
12528 reference "sec:Box-Dialog"
12535 \begin_layout Standard
12536 In the following example the tables are inside a minipage
12540 \begin_layout Standard
12541 Minipages are described in section\InsetSpace ~
12543 \begin_inset LatexCommand ref
12544 reference "sec:Minipages"
12553 box that has a width of 15\InsetSpace \thinspace{}
12557 \begin_layout Itemize
12559 \begin_inset Box Frameless
12568 height_special "totalheight"
12571 \begin_layout Standard
12572 \begin_inset Tabular
12573 <lyxtabular version="3" rows="3" columns="3">
12575 <column alignment="center" valignment="top" leftline="true" width="0">
12576 <column alignment="center" valignment="top" leftline="true" width="0">
12577 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12578 <row topline="true">
12579 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12582 \begin_layout Standard
12588 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12591 \begin_layout Standard
12597 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12600 \begin_layout Standard
12607 <row topline="true">
12608 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12611 \begin_layout Standard
12617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12620 \begin_layout Standard
12626 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12629 \begin_layout Standard
12636 <row topline="true" bottomline="true">
12637 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12640 \begin_layout Standard
12646 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12649 \begin_layout Standard
12655 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12658 \begin_layout Standard
12678 \begin_layout Standard
12690 \begin_inset Box Frameless
12699 height_special "totalheight"
12702 \begin_layout Standard
12703 \begin_inset Tabular
12704 <lyxtabular version="3" rows="3" columns="3">
12706 <column alignment="center" valignment="top" leftline="true" width="0">
12707 <column alignment="center" valignment="top" leftline="true" width="0">
12708 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12709 <row topline="true">
12710 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12713 \begin_layout Standard
12719 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12722 \begin_layout Standard
12728 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12731 \begin_layout Standard
12738 <row topline="true">
12739 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12742 \begin_layout Standard
12748 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12751 \begin_layout Standard
12757 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12760 \begin_layout Standard
12767 <row topline="true" bottomline="true">
12768 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12771 \begin_layout Standard
12777 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12780 \begin_layout Standard
12786 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12789 \begin_layout Standard
12809 \begin_layout Standard
12819 \begin_layout Itemize
12821 \begin_inset Box Frameless
12830 height_special "totalheight"
12833 \begin_layout Standard
12834 \begin_inset Tabular
12835 <lyxtabular version="3" rows="3" columns="3">
12837 <column alignment="center" valignment="top" leftline="true" width="0">
12838 <column alignment="center" valignment="top" leftline="true" width="0">
12839 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12840 <row topline="true">
12841 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12844 \begin_layout Standard
12850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12853 \begin_layout Standard
12859 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12862 \begin_layout Standard
12869 <row topline="true">
12870 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12873 \begin_layout Standard
12879 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12882 \begin_layout Standard
12888 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12891 \begin_layout Standard
12898 <row topline="true" bottomline="true">
12899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12902 \begin_layout Standard
12908 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12911 \begin_layout Standard
12917 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12920 \begin_layout Standard
12939 \begin_layout Itemize
12941 \begin_inset Box Frameless
12950 height_special "totalheight"
12953 \begin_layout Standard
12954 \begin_inset Tabular
12955 <lyxtabular version="3" rows="3" columns="3">
12957 <column alignment="center" valignment="top" leftline="true" width="0">
12958 <column alignment="center" valignment="top" leftline="true" width="0">
12959 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12960 <row topline="true">
12961 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12964 \begin_layout Standard
12970 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12973 \begin_layout Standard
12979 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12982 \begin_layout Standard
12989 <row topline="true">
12990 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12993 \begin_layout Standard
12999 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13002 \begin_layout Standard
13008 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13011 \begin_layout Standard
13018 <row topline="true" bottomline="true">
13019 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13022 \begin_layout Standard
13028 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13031 \begin_layout Standard
13037 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13040 \begin_layout Standard
13060 \begin_layout Standard
13072 \begin_inset Box Frameless
13081 height_special "totalheight"
13084 \begin_layout Standard
13085 \begin_inset Tabular
13086 <lyxtabular version="3" rows="3" columns="3">
13088 <column alignment="center" valignment="top" leftline="true" width="0">
13089 <column alignment="center" valignment="top" leftline="true" width="0">
13090 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13091 <row topline="true">
13092 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13095 \begin_layout Standard
13101 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13104 \begin_layout Standard
13110 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13113 \begin_layout Standard
13120 <row topline="true">
13121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13124 \begin_layout Standard
13130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13133 \begin_layout Standard
13139 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13142 \begin_layout Standard
13149 <row topline="true" bottomline="true">
13150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13153 \begin_layout Standard
13159 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13162 \begin_layout Standard
13168 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13171 \begin_layout Standard
13191 \begin_layout Standard
13201 \begin_layout Standard
13202 As you can see, the content of the first and last table row is not correctly
13203 aligned with the text line where the table is in.
13204 To get this alignment, the minipage box must be set into a raisebox
13208 \begin_layout Standard
13209 Raiseboxes are described in section\InsetSpace ~
13211 \begin_inset LatexCommand ref
13212 reference "sub:Vertical-Alignment"
13222 In the example above the second table in the first item is aligned using
13226 \begin_layout Standard
13236 \begin_layout Standard
13238 Behind the box the closing brace
13242 is inserted as ERT.
13243 For the second table in the last item the command
13246 \begin_layout Standard
13256 \begin_layout Standard
13260 \begin_layout Standard
13261 \begin_inset Note Greyedout
13264 \begin_layout Standard
13269 The alignment of the table row content to the surrounding text line is
13271 The needed factor of the
13277 command for this alignment depends on the document font, the font size,
13278 and the table line thickness.
13286 \begin_layout Section
13288 \begin_inset LatexCommand label
13289 name "sec:Colored-Tables"
13294 \begin_inset LatexCommand index
13295 name "Table ! Color"
13302 \begin_layout Subsection
13304 \begin_inset LatexCommand index
13305 name "Table Color ! for Cells"
13310 \begin_inset LatexCommand index
13311 name "Color ! for Table Cells"
13318 \begin_layout Standard
13319 \begin_inset Float table
13325 \begin_layout Standard
13326 \begin_inset Caption
13328 \begin_layout Standard
13329 \begin_inset LatexCommand label
13330 name "tab:Table-colored-without"
13334 Table colored without using the package
13339 \begin_inset OptArg
13342 \begin_layout Standard
13343 Table without colortbl
13356 \begin_layout Standard
13358 \begin_inset Tabular
13359 <lyxtabular version="3" rows="3" columns="3">
13361 <column alignment="center" valignment="top" leftline="true" width="0">
13362 <column alignment="center" valignment="top" leftline="true" width="0">
13363 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13364 <row topline="true">
13365 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13368 \begin_layout Standard
13376 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13379 \begin_layout Standard
13387 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13390 \begin_layout Standard
13399 <row topline="true">
13400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13403 \begin_layout Standard
13411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13414 \begin_layout Standard
13422 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13425 \begin_layout Standard
13434 <row topline="true" bottomline="true">
13435 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13438 \begin_layout Standard
13446 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13449 \begin_layout Standard
13457 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13460 \begin_layout Standard
13481 \begin_layout Standard
13482 If you only need colored text, mark the cells and choose a color in the
13485 Edit\SpecialChar \menuseparator
13490 This was used to create Table\InsetSpace ~
13492 \begin_inset LatexCommand ref
13493 reference "tab:Table-colored-without"
13498 In any other case you have to use the LaTeX-package
13503 \begin_inset LatexCommand index
13504 name "LaTeX-packages ! colortbl"
13511 \begin_layout Standard
13512 To create colored tables,
13516 must be loaded in the preamble with the line
13519 \begin_layout Standard
13524 usepackage{colortbl}
13527 \begin_layout Standard
13528 The color of a column is adjusted with the command
13531 \begin_layout Standard
13536 columncolor{name of color}
13539 \begin_layout Standard
13545 More about the command
13549 is described in section\InsetSpace ~
13551 \begin_inset LatexCommand ref
13552 reference "sub:Multicolumn-Calculations"
13559 \begin_layout Standard
13560 The following color names are predefined:
13563 \begin_layout Standard
13597 \begin_layout Standard
13598 \begin_inset VSpace medskip
13604 \begin_layout Standard
13605 You can also define your own color with the command
13608 \begin_layout Standard
13613 def\SpecialChar \textcompwordmark{}
13614 inecolor{color name}{color model}{color values}
13617 \begin_layout Standard
13618 The color model can be
13621 \begin_layout Labeling
13622 \labelwidthstring 00.00.0000
13623 cmyk: cyan, magenta, yellow, black
13626 \begin_layout Labeling
13627 \labelwidthstring 00.00.0000
13628 rgb: red, green blue
13631 \begin_layout Labeling
13632 \labelwidthstring 00.00.0000
13636 \begin_layout Standard
13637 and the color values are comma separated numbers between 0 and 1 describing
13638 the factor for the corresponding color of the color model.
13641 \begin_layout Standard
13642 You can e.\InsetSpace \thinspace{}
13648 " in the preamble with
13651 \begin_layout Standard
13656 def\SpecialChar \textcompwordmark{}
13657 inecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
13660 \begin_layout Standard
13668 \begin_layout Standard
13673 def\SpecialChar \textcompwordmark{}
13674 inecolor{lightgray}{gray}{0.8}
13677 \begin_layout Standard
13678 \begin_inset VSpace medskip
13684 \begin_layout Standard
13685 Lines are colored with the command
13688 \begin_layout Standard
13693 rowcolor{name of color}
13696 \begin_layout Standard
13697 and cells are colored with the command
13700 \begin_layout Standard
13705 cellcolor{name of color}
13708 \begin_layout Standard
13709 Both commands are inserted at the beginning of a cell as ERT.
13712 \begin_layout Standard
13713 To color characters in the table, mark the cells and use the LyX menu
13715 Edit\SpecialChar \menuseparator
13720 If a cell contains ERT mark only the characters, otherwise the colored
13721 ERT will cause LaTeX-errors.
13724 \begin_layout Standard
13725 \begin_inset VSpace bigskip
13731 \begin_layout Standard
13732 To create Table\InsetSpace ~
13734 \begin_inset LatexCommand ref
13735 reference "tab:Table-colored-using"
13739 do the following: The color of the first column should be
13747 \begin_layout Standard
13752 columncolor{darkgreen}
13757 \begin_layout Standard
13758 as LaTeX-argument for this column.
13759 The first row should be blue, therefore the ERT command
13762 \begin_layout Standard
13770 \begin_layout Standard
13771 is inserted to the first cell of this row.
13772 Note that this overwrites the column color for the first cell.
13773 The last cell of the last row is colored magenta by inserting the ERT command
13776 \begin_layout Standard
13784 \begin_layout Standard
13785 The characters could now be colored using the menu
13787 Edit\SpecialChar \menuseparator
13794 \begin_layout Standard
13795 \begin_inset Float table
13801 \begin_layout Standard
13802 \begin_inset Caption
13804 \begin_layout Standard
13805 \begin_inset LatexCommand label
13806 name "tab:Table-colored-using"
13810 Table colored using the package
13815 \begin_inset OptArg
13818 \begin_layout Standard
13819 Table with colortbl
13832 \begin_layout Standard
13834 \begin_inset Tabular
13835 <lyxtabular version="3" rows="3" columns="3">
13837 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
13838 <column alignment="center" valignment="top" width="0">
13839 <column alignment="center" valignment="top" width="0">
13841 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13844 \begin_layout Standard
13848 \begin_layout Standard
13864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13867 \begin_layout Standard
13875 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13878 \begin_layout Standard
13888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13891 \begin_layout Standard
13899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13902 \begin_layout Standard
13910 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13913 \begin_layout Standard
13923 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13926 \begin_layout Standard
13934 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13937 \begin_layout Standard
13945 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13948 \begin_layout Standard
13952 \begin_layout Standard
13981 \begin_layout Subsection
13983 \begin_inset LatexCommand index
13984 name "Table Color ! for Lines"
13989 \begin_inset LatexCommand index
13990 name "Color ! for Table Lines"
13997 \begin_layout Standard
13998 As described in section\InsetSpace ~
14000 \begin_inset LatexCommand ref
14001 reference "sub:Line-Thickness"
14005 , the line thickness for all lines in a table can be adjusted with the length
14013 It is set to 1.5\InsetSpace \thinspace{}
14014 pt for all tables of this section.
14018 \begin_layout Standard
14024 arrayrulewidth}{1.5pt}
14032 \begin_layout Standard
14033 To color vertical lines for example with green, create the following column
14034 format in the document preamble, according to the description in section\InsetSpace ~
14036 \begin_inset LatexCommand ref
14037 reference "sub:Customized-Format"
14044 \begin_layout Standard
14049 newcolumntype{W}{!{
14056 \begin_layout Standard
14057 For Table\InsetSpace ~
14059 \begin_inset LatexCommand ref
14060 reference "tab:Table-with-vertical-colored"
14067 \begin_layout Standard
14073 \begin_layout Standard
14074 was used for the last column and
14077 \begin_layout Standard
14083 \begin_layout Standard
14084 for the other columns.
14087 \begin_layout Standard
14088 If you want to have several colors, define more column formats.
14091 \begin_layout Standard
14092 \begin_inset Float table
14097 \begin_layout Standard
14098 \begin_inset Caption
14100 \begin_layout Standard
14101 \begin_inset LatexCommand label
14102 name "tab:Table-with-vertical-colored"
14106 Table with colored vertical lines
14114 \begin_layout Standard
14116 \begin_inset Tabular
14117 <lyxtabular version="3" rows="3" columns="3">
14119 <column alignment="center" valignment="top" width="0" special="Wc">
14120 <column alignment="center" valignment="top" width="0" special="Wc">
14121 <column alignment="center" valignment="top" width="0" special="WcW">
14122 <row topline="true">
14123 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14126 \begin_layout Standard
14132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14135 \begin_layout Standard
14141 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14144 \begin_layout Standard
14151 <row topline="true">
14152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14155 \begin_layout Standard
14161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14164 \begin_layout Standard
14170 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14173 \begin_layout Standard
14180 <row topline="true" bottomline="true">
14181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14184 \begin_layout Standard
14190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14193 \begin_layout Standard
14199 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14202 \begin_layout Standard
14221 \begin_layout Standard
14222 \begin_inset VSpace bigskip
14225 To color horizontal lines for example with red, like in Table\InsetSpace ~
14227 \begin_inset LatexCommand ref
14228 reference "tab:Table-with-horizontal-colored"
14232 , insert these commands in ERT before the table or table float:
14235 \begin_layout Standard
14252 arrayrulecolor{red}
14256 arrayrulecolor{black}}
14259 \begin_layout Standard
14263 \begin_layout Standard
14274 \begin_layout Standard
14282 arrayrulecolor{red}
14286 arrayrulecolor{black}}
14292 \begin_inset Float table
14297 \begin_layout Standard
14298 \begin_inset Caption
14300 \begin_layout Standard
14301 \begin_inset LatexCommand label
14302 name "tab:Table-with-horizontal-colored"
14306 Table with colored horizontal lines
14314 \begin_layout Standard
14316 \begin_inset Tabular
14317 <lyxtabular version="3" rows="3" columns="3">
14319 <column alignment="center" valignment="top" leftline="true" width="0">
14320 <column alignment="center" valignment="top" leftline="true" width="0">
14321 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14322 <row topline="true">
14323 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14326 \begin_layout Standard
14332 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14335 \begin_layout Standard
14341 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14344 \begin_layout Standard
14351 <row topline="true">
14352 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14355 \begin_layout Standard
14361 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14364 \begin_layout Standard
14370 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14373 \begin_layout Standard
14380 <row topline="true" bottomline="true">
14381 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14384 \begin_layout Standard
14390 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14393 \begin_layout Standard
14399 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14402 \begin_layout Standard
14421 \begin_layout Standard
14425 \begin_layout Standard
14437 \begin_layout Standard
14438 To return to the default line color black, insert this command in ERT behind
14439 the table or table float:
14442 \begin_layout Standard
14454 \begin_layout Standard
14457 \begin_inset LatexCommand ref
14458 reference "tab:Table-with-colored"
14462 is an example with colored vertical and horizontal lines.
14465 \begin_layout Standard
14466 \begin_inset Float table
14471 \begin_layout Standard
14472 \begin_inset Caption
14474 \begin_layout Standard
14475 \begin_inset LatexCommand label
14476 name "tab:Table-with-colored"
14480 Table with colored lines
14488 \begin_layout Standard
14490 \begin_inset Tabular
14491 <lyxtabular version="3" rows="3" columns="3">
14493 <column alignment="center" valignment="top" width="0" special="Wc">
14494 <column alignment="center" valignment="top" width="0" special="Wc">
14495 <column alignment="center" valignment="top" width="0" special="WcW">
14496 <row topline="true">
14497 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14500 \begin_layout Standard
14506 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14509 \begin_layout Standard
14515 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14518 \begin_layout Standard
14525 <row topline="true">
14526 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14529 \begin_layout Standard
14535 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14538 \begin_layout Standard
14544 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14547 \begin_layout Standard
14554 <row topline="true" bottomline="true" topspace="default">
14555 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14558 \begin_layout Standard
14564 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14567 \begin_layout Standard
14573 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14576 \begin_layout Standard
14595 \begin_layout Standard
14599 \begin_layout Standard
14615 \begin_layout Standard
14619 \begin_layout Standard
14625 arrayrulewidth}{0.4pt}
14633 \begin_layout Section
14634 Table Customization
14635 \begin_inset LatexCommand index
14636 name "Table Customization"
14641 \begin_inset LatexCommand index
14642 name "Table ! Customization"
14649 \begin_layout Subsection
14651 \begin_inset LatexCommand label
14652 name "sub:Row-Spacing"
14657 \begin_inset LatexCommand index
14658 name "Table Customization ! Row Spacing"
14665 \begin_layout Standard
14666 You can add vertical space to table rows in the
14670 tab of the table dialog.
14671 You find there three possibilities:
14674 \begin_layout Description
14677 row will add space above the characters of the table row.
14678 If the table is a formal table
14682 \begin_layout Standard
14683 Formal tables are explained in section\InsetSpace ~
14685 \begin_inset LatexCommand ref
14686 reference "sec:Formal-Tables"
14695 LyX will insert as default 0.5\InsetSpace \thinspace{}
14697 For normal tables the inserted space will unfortunately destroy the vertical
14698 table lines as in the following table:
14699 \begin_inset VSpace defskip
14708 \begin_layout Standard
14720 \begin_inset Tabular
14721 <lyxtabular version="3" rows="3" columns="1">
14723 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14724 <row topline="true">
14725 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14728 \begin_layout Standard
14735 <row topline="true" topspace="3mm">
14736 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14739 \begin_layout Standard
14740 3\InsetSpace \thinspace{}
14741 mm space top of row
14747 <row topline="true" bottomline="true">
14748 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14751 \begin_layout Standard
14768 \begin_layout Standard
14778 \begin_inset VSpace defskip
14783 So inserting space to the top of row for normal tables is only useful when
14784 you don't have vertical lines.
14787 \begin_layout Description
14788 Bottom\InsetSpace ~
14790 row will add space below the characters of the table row.
14791 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
14793 normal tables the default size is 2\InsetSpace \thinspace{}
14797 \begin_layout Description
14798 Between\InsetSpace ~
14799 rows adds space between the current and the following row.
14800 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
14802 For normal tables the inserted space will unfortunately destroy the vertical
14803 table lines as in the following table:
14804 \begin_inset VSpace defskip
14813 \begin_layout Standard
14825 \begin_inset Tabular
14826 <lyxtabular version="3" rows="3" columns="1">
14828 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14829 <row topline="true">
14830 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14833 \begin_layout Standard
14840 <row topline="true" interlinespace="3mm">
14841 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14844 \begin_layout Standard
14845 \begin_inset Formula $\downarrow$
14848 3\InsetSpace \thinspace{}
14849 mm space between row
14850 \begin_inset Formula $\downarrow$
14859 <row topline="true" bottomline="true">
14860 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14863 \begin_layout Standard
14864 \begin_inset Formula $\uparrow$
14867 3\InsetSpace \thinspace{}
14868 mm space between row
14869 \begin_inset Formula $\uparrow$
14888 \begin_layout Standard
14898 \begin_inset VSpace defskip
14903 So inserting space between rows for normal tables is only useful when you
14904 don't have vertical lines.
14907 \begin_layout Standard
14908 When you want to add extra height to all cells of all tables, you can do
14909 this with the following preamble line:
14912 \begin_layout Standard
14919 extrarowheight}{height}
14922 \begin_layout Standard
14923 But this has the disadvantage that the cell texts are no longer exactly
14924 vertically centered.
14927 \begin_layout Subsection
14928 Special Cell Alignment
14929 \begin_inset LatexCommand index
14930 name "Table Customization ! Special Cell Alignment"
14937 \begin_layout Standard
14938 Sometimes it looks better when the cell entries of a column are aligned
14939 with a special character, e.\InsetSpace \thinspace{}
14941 with the decimal separator as in Table\InsetSpace ~
14943 \begin_inset LatexCommand ref
14944 reference "tab:Table-cells-of"
14951 \begin_layout Standard
14952 \begin_inset Float table
14958 \begin_layout Standard
14959 \begin_inset Caption
14961 \begin_layout Standard
14962 \begin_inset LatexCommand label
14963 name "tab:Table-cells-of"
14967 Table cells of a column aligned with the decimal separator.
14975 \begin_layout Standard
14977 \begin_inset Tabular
14978 <lyxtabular version="3" rows="4" columns="2">
14980 <column alignment="right" valignment="top" width="0">
14981 <column alignment="left" valignment="top" width="0" special="@{}l">
14982 <row bottomline="true">
14983 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
14986 \begin_layout Standard
14992 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14995 \begin_layout Standard
15003 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15006 \begin_layout Standard
15012 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15015 \begin_layout Standard
15023 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15026 \begin_layout Standard
15032 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15035 \begin_layout Standard
15043 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15046 \begin_layout Standard
15052 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15055 \begin_layout Standard
15074 \begin_layout Standard
15075 This table was created with a 4×2 table.
15076 The heading is a centered multicolumn.
15077 The first column is right-aligned and contains the digits before the decimal
15078 point and the decimal point.
15079 The second column is left aligned and contains the digits after the decimal
15081 To omit the space that is normally between two table columns, use the following
15082 LaTeX-argument for the second column:
15085 \begin_layout Standard
15091 \begin_layout Standard
15094 \begin_inset LatexCommand ref
15095 reference "tab:Several-table-cell"
15099 shows some example alignments.
15100 For the alignment with the relation sign, you must add the second smallest
15101 math-space at the beginning of the last column to get the correct space
15102 surrounding the relation sign.
15105 \begin_layout Standard
15106 \begin_inset Float table
15111 \begin_layout Standard
15112 \begin_inset Caption
15114 \begin_layout Standard
15115 \begin_inset LatexCommand label
15116 name "tab:Several-table-cell"
15120 Several table cell alignments.
15128 \begin_layout Standard
15130 \begin_inset Tabular
15131 <lyxtabular version="3" rows="4" columns="6">
15133 <column alignment="right" valignment="top" width="0">
15134 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15135 <column alignment="right" valignment="top" width="0">
15136 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15137 <column alignment="right" valignment="top" width="0">
15138 <column alignment="left" valignment="top" width="0" special="@{}l">
15139 <row bottomline="true">
15140 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15143 \begin_layout Standard
15149 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15152 \begin_layout Standard
15158 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15161 \begin_layout Standard
15167 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15170 \begin_layout Standard
15176 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15179 \begin_layout Standard
15185 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15188 \begin_layout Standard
15196 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15199 \begin_layout Standard
15205 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15208 \begin_layout Standard
15209 24\InsetSpace \thinspace{}
15215 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15218 \begin_layout Standard
15219 \begin_inset Formula $10\cdot$
15227 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15230 \begin_layout Standard
15231 \begin_inset Formula $10^{\mbox{-}17}$
15239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15242 \begin_layout Standard
15243 \begin_inset Formula $\Gamma(t)\propto$
15251 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15254 \begin_layout Standard
15255 \begin_inset Formula $\:\Upsilon(t)$
15265 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15268 \begin_layout Standard
15274 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15277 \begin_layout Standard
15278 768\InsetSpace \thinspace{}
15284 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15287 \begin_layout Standard
15288 \begin_inset Formula $5.78\cdot$
15296 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15299 \begin_layout Standard
15300 \begin_inset Formula $10^{7}$
15308 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15311 \begin_layout Standard
15312 \begin_inset Formula $A\ne$
15320 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15323 \begin_layout Standard
15324 \begin_inset Formula $\: B_{\mathrm{red}}$
15334 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15337 \begin_layout Standard
15343 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15346 \begin_layout Standard
15347 6\InsetSpace \thinspace{}
15353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15356 \begin_layout Standard
15358 \begin_inset Formula $33.5\cdot$
15366 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15369 \begin_layout Standard
15370 \begin_inset Formula $10^{4}$
15378 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15381 \begin_layout Standard
15382 \begin_inset Formula $\sin(\alpha)\ge$
15390 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15393 \begin_layout Standard
15394 \begin_inset Formula $\:\sin(\beta)$
15415 \begin_layout Standard
15416 \begin_inset VSpace bigskip
15419 There is also the LaTeX-package
15424 \begin_inset LatexCommand index
15425 name "LaTeX-packages ! dcolumn"
15429 that provides table cell alignments.
15430 But this unfortunately treats the cell entries as math and doesn't allow
15431 formulas in table cells: The first column of Table\InsetSpace ~
15433 \begin_inset LatexCommand ref
15434 reference "tab:Several-table-cell"
15442 like the first column in Table\InsetSpace ~
15444 \begin_inset LatexCommand ref
15445 reference "tab:Alignments-when"
15449 and only with some tricks like the expected.
15450 The alignment of the second and third column of Table\InsetSpace ~
15452 \begin_inset LatexCommand ref
15453 reference "tab:Several-table-cell"
15457 is not possible with
15464 \begin_layout Standard
15465 \begin_inset Float table
15471 \begin_layout Standard
15472 \begin_inset Caption
15474 \begin_layout Standard
15475 \begin_inset LatexCommand label
15476 name "tab:Alignments-when"
15480 Alignments when LaTeX-package dcolumn is used.
15481 For all column alignments tricks have to be used to get the output.
15489 \begin_layout Standard
15491 \begin_inset Tabular
15492 <lyxtabular version="3" rows="4" columns="3">
15494 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{-1}">
15495 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{4.9}">
15496 <column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
15497 <row bottomline="true">
15498 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15501 \begin_layout Standard
15507 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15510 \begin_layout Standard
15516 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15519 \begin_layout Standard
15527 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15530 \begin_layout Standard
15531 12x24\InsetSpace \thinspace{}
15537 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15540 \begin_layout Standard
15541 12x24\InsetSpace \thinspace{}
15543 \begin_inset Formula $\mbox{bottles}$
15551 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15554 \begin_layout Standard
15559 \begin_layout Standard
15569 \begin_inset Formula $\mbox{bottles}$
15579 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15582 \begin_layout Standard
15583 1024x768\InsetSpace \thinspace{}
15589 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15592 \begin_layout Standard
15593 1024x768\InsetSpace \thinspace{}
15595 \begin_inset Formula $\mbox{Pixels}$
15603 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15606 \begin_layout Standard
15611 \begin_layout Standard
15621 \begin_inset Formula $\mbox{Pixels}$
15631 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15634 \begin_layout Standard
15635 32x6\InsetSpace \thinspace{}
15641 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15644 \begin_layout Standard
15645 32x6\InsetSpace \thinspace{}
15647 \begin_inset Formula $\mbox{cm}$
15655 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15658 \begin_layout Standard
15663 \begin_layout Standard
15673 \begin_inset Formula $\mbox{cm}$
15694 \begin_layout Subsection
15695 Customized Cell/Column Format
15696 \begin_inset LatexCommand label
15697 name "sub:Customized-Format"
15702 \begin_inset LatexCommand index
15703 name "Table Customization ! Cell/Column Format"
15710 \begin_layout Standard
15711 Calculating the needed width for spanned columns like in section\InsetSpace ~
15713 \begin_inset LatexCommand ref
15714 reference "sub:Multicolumn-Calculations"
15718 is very annoying if you have several tables with multicolumn cells.
15719 To make life easier, you can define a cell/column format in the preamble,
15720 so that it can be used in all tables of the document.
15721 The format is defined with the command
15724 \begin_layout Standard
15729 newcolumntype{name of format}[number of arguments]{commands}
15732 \begin_layout Standard
15733 The format name may only consist of one letter.
15758 are predefined and cannot be used.
15759 But all letters are allowed as capitals.
15762 \begin_layout Standard
15763 \begin_inset VSpace medskip
15769 \begin_layout Standard
15770 For vertically and horizontally centered multicolumn cells with a fixed
15771 width you can define the cell format
15774 \begin_layout Standard
15779 newcolumntype{M}[1]{>{
15786 \begin_layout Standard
15793 avoids the problem of hyphenating the first word, as described in section\InsetSpace ~
15795 \begin_inset LatexCommand ref
15796 reference "sub:Multiple-Lines-in"
15801 Now you can simply enter
15804 \begin_layout Standard
15810 \begin_layout Standard
15811 as LaTeX-argument in the table dialog to create a multicolumn.
15814 \begin_layout Standard
15815 \begin_inset VSpace bigskip
15821 \begin_layout Standard
15822 For cells spanned by a multicolumn cell, you can define the format
15825 \begin_layout Standard
15830 newcolumntype{S}[2]{>{
15840 \begin_layout Standard
15851 newcolumntype{S}[2]
15855 \begin_layout Standard
15866 arrayrulewidth)*(1-#2))/#2}}
15869 \begin_layout Standard
15870 This format uses equation
15871 \begin_inset LatexCommand eqref
15876 to calculate the needed width so that each spanned cell has the same width.
15879 \begin_layout Standard
15883 \begin_layout Standard
15886 S{width of multicolumn cell}{number of spanned columns}
15889 \begin_layout Standard
15890 as LaTeX-argument of the column.
15893 \begin_layout Standard
15894 \begin_inset VSpace bigskip
15900 \begin_layout Standard
15901 For colored columns, you can define
15904 \begin_layout Standard
15909 newcolumntype{K}[1]{>{
15916 \begin_layout Standard
15918 \begin_inset Quotes eld
15922 \begin_inset Quotes erd
15925 at the end creates a column with a flexible width whose text is horizontally
15930 \begin_layout Standard
15936 \begin_layout Standard
15940 \begin_layout Standard
15941 \begin_inset VSpace bigskip
15947 \begin_layout Standard
15948 To create Table\InsetSpace ~
15950 \begin_inset LatexCommand ref
15951 reference "tab:Table-using-user-defined"
15955 use the LaTeX-arguments
15958 \begin_layout Standard
15964 \begin_layout Standard
15965 for the first column and the multicolumn,
15968 \begin_layout Standard
15974 \begin_layout Standard
15975 for the the last column, and
15978 \begin_layout Standard
15984 \begin_layout Standard
15985 for the cells in the second column.
15988 \begin_layout Standard
15989 \begin_inset Float table
15995 \begin_layout Standard
15996 \begin_inset Caption
15998 \begin_layout Standard
15999 \begin_inset LatexCommand label
16000 name "tab:Table-using-user-defined"
16004 Table using user-defined table formats
16012 \begin_layout Standard
16014 \begin_inset Tabular
16015 <lyxtabular version="3" rows="3" columns="4">
16017 <column alignment="center" valignment="middle" leftline="true" width="2.5cm" special="M{2.5cm}">
16018 <column alignment="center" valignment="middle" leftline="true" width="0" special="S{2.5cm}{2}">
16019 <column alignment="center" valignment="middle" leftline="true" width="0">
16020 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0" special="K{red}">
16021 <row topline="true">
16022 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16025 \begin_layout Standard
16026 verylongtablecellword
16031 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none" special="M{2.5cm}">
16034 \begin_layout Standard
16035 multiple lines multicolumn
16040 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16043 \begin_layout Standard
16049 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16052 \begin_layout Standard
16059 <row topline="true">
16060 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16063 \begin_layout Standard
16069 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16072 \begin_layout Standard
16078 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16081 \begin_layout Standard
16087 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16090 \begin_layout Standard
16097 <row topline="true" bottomline="true">
16098 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16101 \begin_layout Standard
16107 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16110 \begin_layout Standard
16116 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16119 \begin_layout Standard
16125 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16128 \begin_layout Standard
16147 \begin_layout Subsection
16149 \begin_inset LatexCommand label
16150 name "sub:Line-Thickness"
16155 \begin_inset LatexCommand index
16156 name "Table Customization ! Line Thickness"
16163 \begin_layout Standard
16164 The line thickness for all lines in a table can be adjusted with the length
16172 To set for example a line thickness of 1.5\InsetSpace \thinspace{}
16173 pt, like in Table\InsetSpace ~
16175 \begin_inset LatexCommand ref
16176 reference "tab:Table-with-1.5"
16180 , insert the command
16183 \begin_layout Standard
16190 arrayrulewidth}{1.5pt}
16193 \begin_layout Standard
16194 in ERT before the table or table float.
16195 The changed thickness is valid for all following tables.
16196 To use the default value again, set
16202 to 0.4\InsetSpace \thinspace{}
16203 pt in ERT behind the table or table float.
16206 \begin_layout Standard
16210 \begin_layout Standard
16216 arrayrulewidth}{1.5pt}
16222 \begin_inset Float table
16227 \begin_layout Standard
16228 \begin_inset Caption
16230 \begin_layout Standard
16231 \begin_inset LatexCommand label
16232 name "tab:Table-with-1.5"
16236 Table with 1.5\InsetSpace \thinspace{}
16245 \begin_layout Standard
16247 \begin_inset Tabular
16248 <lyxtabular version="3" rows="3" columns="3">
16250 <column alignment="center" valignment="top" leftline="true" width="0">
16251 <column alignment="center" valignment="top" leftline="true" width="0">
16252 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16253 <row topline="true">
16254 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16257 \begin_layout Standard
16263 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16266 \begin_layout Standard
16272 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16275 \begin_layout Standard
16282 <row topline="true">
16283 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16286 \begin_layout Standard
16292 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16295 \begin_layout Standard
16301 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16304 \begin_layout Standard
16311 <row topline="true" bottomline="true">
16312 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16315 \begin_layout Standard
16321 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16324 \begin_layout Standard
16330 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16333 \begin_layout Standard
16353 \begin_layout Standard
16359 arrayrulewidth}{0.4pt}
16367 \begin_layout Standard
16368 \begin_inset VSpace bigskip
16371 To set the line thickness to 1.5\InsetSpace \thinspace{}
16372 pt only for horizontal lines, like in Table\InsetSpace ~
16374 \begin_inset LatexCommand ref
16375 reference "tab:Table-with-horizontal"
16379 , insert these commands in ERT before the table or table float:
16382 \begin_layout Standard
16405 arrayrulewidth 1.5pt}
16415 arrayrulewidth 0.4pt}}
16418 \begin_layout Standard
16419 To return to the default line thickness, insert this command in ERT behind
16420 the table or table float:
16423 \begin_layout Standard
16435 \begin_layout Standard
16439 \begin_layout Standard
16450 \begin_layout Standard
16459 \begin_layout Standard
16467 arrayrulewidth 1.5pt}
16470 \begin_layout Standard
16480 arrayrulewidth 0.4pt}}
16486 \begin_inset Float table
16491 \begin_layout Standard
16492 \begin_inset Caption
16494 \begin_layout Standard
16495 \begin_inset LatexCommand label
16496 name "tab:Table-with-horizontal"
16500 Table with 1.5\InsetSpace \thinspace{}
16501 pt thick horizontal lines
16509 \begin_layout Standard
16511 \begin_inset Tabular
16512 <lyxtabular version="3" rows="3" columns="3">
16514 <column alignment="center" valignment="top" leftline="true" width="0">
16515 <column alignment="center" valignment="top" leftline="true" width="0">
16516 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16517 <row topline="true">
16518 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16521 \begin_layout Standard
16527 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16530 \begin_layout Standard
16536 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16539 \begin_layout Standard
16546 <row topline="true">
16547 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16550 \begin_layout Standard
16556 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16559 \begin_layout Standard
16565 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16568 \begin_layout Standard
16575 <row topline="true" bottomline="true">
16576 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16579 \begin_layout Standard
16585 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16588 \begin_layout Standard
16594 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16597 \begin_layout Standard
16617 \begin_layout Standard
16633 \begin_layout Standard
16634 \begin_inset VSpace bigskip
16637 To set the line thickness to 1.5\InsetSpace \thinspace{}
16638 pt only for vertical lines, create the following
16639 column format in the document preamble, according to the description in
16640 section\InsetSpace ~
16642 \begin_inset LatexCommand ref
16643 reference "sub:Customized-Format"
16650 \begin_layout Standard
16655 newcolumntype{V}{!{
16657 vrule width 1.5pt}}
16660 \begin_layout Standard
16661 For Table\InsetSpace ~
16663 \begin_inset LatexCommand ref
16664 reference "tab:Table-with-vertical"
16671 \begin_layout Standard
16677 \begin_layout Standard
16678 was used for the last column and
16681 \begin_layout Standard
16687 \begin_layout Standard
16688 for the other columns.
16691 \begin_layout Standard
16692 \begin_inset Float table
16697 \begin_layout Standard
16698 \begin_inset Caption
16700 \begin_layout Standard
16701 \begin_inset LatexCommand label
16702 name "tab:Table-with-vertical"
16706 Table with 1.5\InsetSpace \thinspace{}
16707 pt thick vertical lines
16715 \begin_layout Standard
16717 \begin_inset Tabular
16718 <lyxtabular version="3" rows="3" columns="3">
16720 <column alignment="center" valignment="top" width="0" special="Vc">
16721 <column alignment="center" valignment="top" width="0" special="Vc">
16722 <column alignment="center" valignment="top" width="0" special="VcV">
16723 <row topline="true">
16724 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16727 \begin_layout Standard
16733 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16736 \begin_layout Standard
16742 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16745 \begin_layout Standard
16752 <row topline="true">
16753 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16756 \begin_layout Standard
16762 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16765 \begin_layout Standard
16771 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16774 \begin_layout Standard
16781 <row topline="true" bottomline="true">
16782 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16785 \begin_layout Standard
16791 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16794 \begin_layout Standard
16800 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16803 \begin_layout Standard
16822 \begin_layout Subsection
16824 \begin_inset LatexCommand index
16825 name "Table Customization ! Dashed Lines"
16832 \begin_layout Standard
16836 \begin_layout Standard
16846 \begin_inset Note Note
16849 \begin_layout Standard
16850 The following section will only be displayed when you have the LaTeX-package
16863 \begin_layout Standard
16864 \begin_inset Float table
16870 \begin_layout Standard
16871 \begin_inset Caption
16873 \begin_layout Standard
16874 \begin_inset LatexCommand label
16875 name "tab:Table-with-dashed"
16879 Table with dashed lines
16887 \begin_layout Standard
16889 \begin_inset Tabular
16890 <lyxtabular version="3" rows="5" columns="5">
16892 <column alignment="center" valignment="top" leftline="true" width="0">
16893 <column alignment="center" valignment="top" leftline="true" width="0">
16894 <column alignment="center" valignment="top" width="0" special=":c">
16895 <column alignment="center" valignment="top" leftline="true" width="0">
16896 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16897 <row topline="true" bottomline="true">
16898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16901 \begin_layout Standard
16907 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16910 \begin_layout Standard
16916 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16919 \begin_layout Standard
16925 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16928 \begin_layout Standard
16934 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16937 \begin_layout Standard
16944 <row topline="true">
16945 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16948 \begin_layout Standard
16954 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16957 \begin_layout Standard
16963 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16966 \begin_layout Standard
16972 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16975 \begin_layout Standard
16981 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16984 \begin_layout Standard
16992 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16995 \begin_layout Standard
16999 \begin_layout Standard
17013 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17016 \begin_layout Standard
17022 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17025 \begin_layout Standard
17031 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17034 \begin_layout Standard
17040 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17043 \begin_layout Standard
17050 <row topline="true">
17051 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17054 \begin_layout Standard
17058 \begin_layout Standard
17072 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17075 \begin_layout Standard
17081 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="c:">
17084 \begin_layout Standard
17090 <cell multicolumn="1" alignment="center" valignment="top" rightline="true" usebox="none" special="c:">
17093 \begin_layout Standard
17099 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17102 \begin_layout Standard
17109 <row topline="true" bottomline="true">
17110 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17113 \begin_layout Standard
17119 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17122 \begin_layout Standard
17128 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17131 \begin_layout Standard
17137 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17140 \begin_layout Standard
17146 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17149 \begin_layout Standard
17168 \begin_layout Standard
17169 LyX doesn't natively support dashed lines, so you have to use ERT.
17170 As prerequisite the LaTeX-package
17175 \begin_inset LatexCommand index
17176 name "LaTeX-packages ! arydshln"
17180 must be loaded in the document preamble with the command
17183 \begin_layout Standard
17188 usepackage{arydshln}
17191 \begin_layout Standard
17192 To make a vertical line dashed, enter the colon
17193 \begin_inset Quotes eld
17197 \begin_inset Quotes erd
17200 together with the character for the horizontal alignment as LaTeX-argument
17201 in the table cell dialog.
17204 \begin_layout Standard
17205 For a horizontal dashed line add the command
17208 \begin_layout Standard
17216 \begin_layout Standard
17217 in ERT as first element of the first cell in the table row.
17220 \begin_layout Standard
17221 For dashed multicolumn lines use the command
17224 \begin_layout Standard
17229 cdashline{line number
17234 \begin_layout Standard
17235 in ERT as first element of the first cell in the table row.
17236 If you have for example a multicolumn spanning over columns 2 to 4 and
17237 you want to have a dashed line above, add the command
17240 \begin_layout Standard
17248 \begin_layout Standard
17249 as first element of the first cell in the row of the multicolumn.
17252 \begin_layout Standard
17253 \begin_inset VSpace bigskip
17259 \begin_layout Standard
17262 \begin_inset LatexCommand ref
17263 reference "tab:Table-with-dashed"
17268 \begin_inset Quotes eld
17276 \begin_inset Quotes erd
17279 as LaTeX-argument of the third column.
17286 was inserted to the first cell of the third row and the the ERT command
17295 was inserted to the first cell of the fourth row.
17298 \begin_layout Standard
17299 \begin_inset Note Greyedout
17302 \begin_layout Standard
17307 The used LaTeX-package
17311 is apparently not compatible with the LaTeX-package
17316 \begin_inset LatexCommand index
17317 name "LaTeX-packages ! colortbl"
17321 that is used for colored tables in section\InsetSpace ~
17323 \begin_inset LatexCommand ref
17324 reference "sec:Colored-Tables"
17329 That means colored tables cannot have dashed lines.
17337 \begin_layout Standard
17341 \begin_layout Standard
17351 \begin_inset Note Note
17354 \begin_layout Standard
17355 The following will be displayed when the LaTeX-package
17367 \begin_layout Standard
17368 You need to install the package
17372 to see the contents of this section in the output.
17375 \begin_layout Standard
17379 \begin_layout Standard
17391 \begin_layout Chapter
17393 \begin_inset LatexCommand index
17399 \begin_inset LatexCommand label
17407 \begin_layout Section
17409 \begin_inset LatexCommand label
17410 name "sec:FloatIntroduction"
17415 \begin_inset LatexCommand index
17416 name "Floats ! Introduction"
17423 \begin_layout Standard
17424 A float is a block of text associated with some sort of label, which doesn't
17425 have a fixed location.
17427 \begin_inset Quotes eld
17431 \begin_inset Quotes erd
17434 forward or backward a page or two, to wherever it fits best.
17441 Margin\InsetSpace ~
17444 are also floats, because they can float to the next page when there are
17445 too many notes at the page.
17448 \begin_layout Standard
17449 Floats allow a high quality layout.
17450 Images and tables can evenly be spread to the pages to avoid white space
17451 and pages without text.
17452 As the floating often destroys the context between the text and the image/table
17453 , every float can be referenced in the text.
17454 Floats are therefore numbered.
17455 Referencing is described in section\InsetSpace ~
17457 \begin_inset LatexCommand ref
17458 reference "sec:Referencing-Floats"
17465 \begin_layout Standard
17466 To insert a float, use the menu
17468 Insert\SpecialChar \menuseparator
17472 This inserts a box with a label in the
17480 \begin_layout Standard
17485 environment is described in LyX's
17494 into your document.
17495 Every label ends with the character
17496 \begin_inset Quotes eld
17500 \begin_inset Quotes erd
17503 as placeholder for the float number in the output.
17504 The label will automatically be translated to the document language in
17506 Behind the label you can insert the caption text.
17507 The image or table is inserted above or below the caption in a separate
17508 paragraph within the float.
17509 More about the caption placement is described in section\InsetSpace ~
17511 \begin_inset LatexCommand ref
17512 reference "sec:Caption-Placement"
17517 To keep your LyX-document readable, you can open and close the float box
17518 by left-clicking on the box label.
17519 A closed float box looks like this:
17520 \begin_inset Graphics
17521 filename clipart/floatQt4.png
17526 -- a gray button with a red label.
17529 \begin_layout Standard
17530 It is recommended to insert floats as a separate paragraph to avoid possible
17531 LaTeX-errors that can occur when the surrounding text is specially formatted.
17534 \begin_layout Standard
17535 Existing figures or tables can be put into a float by marking them and then
17536 pressing the corresponding toolbar button for a new float.
17539 \begin_layout Section
17543 \begin_layout Standard
17544 Besides figure and table floats that are described in section\InsetSpace ~
17546 \begin_inset LatexCommand ref
17547 reference "sec:Figure-Floats"
17552 \begin_inset LatexCommand ref
17553 reference "sec:Table-Floats"
17557 , respectively, LyX offers the float types
17570 \begin_layout Subsection
17572 \begin_inset LatexCommand index
17573 name "Floats ! Algorithm Floats"
17580 \begin_layout Standard
17581 \begin_inset Float algorithm
17587 \begin_layout Standard
17588 \begin_inset Caption
17590 \begin_layout Standard
17591 \begin_inset LatexCommand label
17592 name "alg:Example-Algorithm-float"
17596 Example Algorithm float
17604 \begin_layout LyX-Code
17607 Sum:= Sum + A(I); /*senseless comment*/
17610 \begin_inset VSpace -4mm
17621 \begin_layout Standard
17622 This float type is inserted with the menu
17624 Insert\SpecialChar \menuseparator
17625 Floats\SpecialChar \menuseparator
17629 It is used for program codes and descriptions of algorithms.
17630 A possible environment for algorithms is the
17634 , described in LyX's
17639 Algorithm\InsetSpace ~
17641 \begin_inset LatexCommand ref
17642 reference "alg:Example-Algorithm-float"
17646 is an example of an algorithm float where -4\InsetSpace \thinspace{}
17647 mm vertical space was added
17648 at the end of the float to have the bottom rule exactly below the last
17652 \begin_layout Standard
17653 The float label is not automatically translated into the document language.
17654 If your document is not in English, you have to do this manually by adding
17655 the following line to the document preamble
17660 \begin_layout Standard
17665 floatname{algorithm}{your\InsetSpace ~
17669 \begin_layout Standard
17676 \begin_inset Quotes eld
17684 \begin_inset Quotes erd
17690 \begin_layout Description
17695 When the LaTeX-package
17700 \begin_inset LatexCommand index
17701 name "LaTeX-packages ! hyperref"
17705 is used to link cross-references to floats in the PDF-output, it must be
17706 loaded in the document preamble before the definition of floats to be able
17707 to reference floats.
17708 As LyX sets the float definition for algorithm floats automatically before
17709 the user editable part of the document preamble, you need to insert the
17710 following preamble lines
17714 the loading command of
17721 \begin_inset VSpace defskip
17728 newfloat{Xalgorithm}{tbp}{loa}
17732 floatname{Xalgorithm}{your\InsetSpace ~
17745 renewenvironment{algorithm}[1][tbp]
17751 \begin_layout Standard
17762 begin{Xalgorithm}[#1]}{
17765 \begin_inset VSpace defskip
17778 \begin_inset Quotes eld
17786 \begin_inset Quotes erd
17792 \begin_layout Standard
17793 Algorithm floats are not by default numbered in the scheme
17794 \begin_inset Quotes eld
17798 \begin_inset Quotes erd
17801 like it is the case for table and figure floats in many document-classes.
17802 To number algorithm floats in the same scheme, add this command to your
17806 \begin_layout Standard
17811 numberwithin{algorithm}{chapter}
17814 \begin_layout Standard
17815 If you use the LaTeX-package
17819 , add this line instead
17827 (the commands from above) to the preamble:
17830 \begin_layout Standard
17835 numberwithin{Xalgorithm}{chapter}
17838 \begin_layout Standard
17839 To be able to use the command
17850 in the document settings the option
17860 \begin_layout Subsection
17862 \begin_inset LatexCommand index
17863 name "Floats ! Text Wrap Floats"
17868 \begin_inset LatexCommand label
17869 name "sub:floatflt-wrap-float"
17876 \begin_layout Standard
17877 This float type is used if you want to
17878 \begin_inset Quotes eld
17882 \begin_inset Quotes erd
17885 text around a figure so that it only occupies some fraction of the column
17887 It can be inserted using the menu
17888 \begin_inset Wrap figure
17893 \begin_layout Standard
17894 \begin_inset Graphics
17895 filename clipart/mobius.eps
17898 rotateOrigin center
17905 \begin_layout Standard
17906 \begin_inset Caption
17908 \begin_layout Standard
17909 \begin_inset LatexCommand label
17910 name "fig:This-is-a"
17914 This is a wrapped figure, and this is the brilliant caption that describes
17916 \begin_inset VSpace medskip
17931 Insert\SpecialChar \menuseparator
17932 Floats\SpecialChar \menuseparator
17937 if the LaTeX-package
17942 \begin_inset LatexCommand index
17943 name "LaTeX-packages ! floatflt"
17951 \begin_layout Standard
17952 Installing a LaTeX-package is explained it in the
17962 The width and placement of the float is adjusted by right-clicking on the
17964 Figure\InsetSpace ~
17966 \begin_inset LatexCommand ref
17967 reference "fig:This-is-a"
17971 is an example text wrap float with a width of 40
17972 \begin_inset Formula $\,$
17979 \begin_layout Standard
17980 Available units are explained in
17981 \begin_inset LatexCommand ref
17982 reference "cha:Units-available-in"
17991 Some space was added under the caption to separate it better from the surroundi
17995 \begin_layout Standard
18000 also supports table wrap floats, but they are not yet supported by LyX.
18001 If you need this, read the documentation of
18006 \begin_inset LatexCommand cite
18014 \begin_layout Standard
18015 \begin_inset Note Greyedout
18018 \begin_layout Standard
18024 wrap float floats are fragile! E.\InsetSpace \thinspace{}
18026 having a figure too close to the bottom
18027 of the page can mess things up in the way that the float doesn't appear
18028 in the output or that it is placed over some other text.
18032 \begin_layout Standard
18033 The better solution is to use the LaTeX-package
18035 wrapf\SpecialChar \textcompwordmark{}
18039 \begin_inset LatexCommand index
18040 name "LaTeX-packages ! wrapfig\\vspace{4mm}"
18046 floatf\SpecialChar \textcompwordmark{}
18049 , but it is currently not supported by LyX.
18062 \begin_layout Standard
18066 \begin_layout Itemize
18067 Wrap floats should not be placed in paragraphs that run over a page break.
18068 That means that wrap floats should better be inserted to the exact place
18069 when the document is nearly ready and you are able to estimate where page
18070 breaks will appear.
18073 \begin_layout Itemize
18074 Wrap floats should either be placed in an own paragraph before the paragraph
18075 where they should wrap into or within a paragraph.
18078 \begin_layout Itemize
18079 Wrap floats in consecutive paragraphs may cause troubles, so assure that
18080 there is a text paragraph between them as separator.
18083 \begin_layout Itemize
18084 Wrap floats are not allowed in section headings or tables.
18087 \begin_layout Section
18089 \begin_inset LatexCommand label
18090 name "sec:Referencing-Floats"
18095 \begin_inset LatexCommand index
18096 name "Floats ! References"
18101 \begin_inset LatexCommand index
18109 \begin_layout Standard
18110 To reference a float, insert a label into its caption using the menu
18112 Insert\SpecialChar \menuseparator
18115 or the toolbar button
18116 \begin_inset Graphics
18117 filename ../images/label-insert.xpm
18123 A grey label box like this one:
18124 \begin_inset Graphics
18125 filename clipart/labelQt4.png
18130 will be inserted and the label window pops up asking for the label text.
18131 LyX offers as text the first words of the caption with a prefix.
18132 The prefix depends on the float type, e.\InsetSpace \thinspace{}
18134 for figure floats the prefix will
18142 \begin_layout Standard
18143 The label is used as anchor and name for the reference.
18144 You can refer to the label using the menu
18146 Insert\SpecialChar \menuseparator
18149 or the toolbar button
18150 \begin_inset Graphics
18151 filename ../images/dialog-show-new-inset_ref.xpm
18157 A grey cross-reference box like this one:
18158 \begin_inset Graphics
18159 filename clipart/referenceQt4.png
18164 will be inserted and the cross-reference window appear showing all labels
18166 If you have multiple LyX-documents opened, choose the one you are working
18167 on from the drop-list at the top of the dialog.
18168 You can now sort the labels alphabetically and then choose one.
18169 At the position of the cross-reference box the float number will appear
18173 \begin_layout Standard
18174 It is recommended to use a protected space between the cross-reference name
18175 and its number to avoid line breaks between them.
18176 If a cross-reference refers to a non-existing label, you will see two question
18177 marks in the output instead of the reference.
18180 \begin_layout Standard
18181 You can change labels at any time by clicking on the label box.
18182 References to the changed label will automatically change its link to the
18183 new label text, so that you don't need to take care about this.
18186 \begin_layout Standard
18193 in the cross-reference window sets the cursor before the referred label.
18194 The button text changes then to Go\InsetSpace ~
18195 Back and you can use it to set the cursor
18196 back to the cross-reference.
18197 Right-clicking on a cross-reference box also sets the cursor before the
18198 referenced label but without a possibility to go back.
18201 \begin_layout Subsection
18202 Cross-Reference Formats
18203 \begin_inset LatexCommand label
18204 name "sub:Cross-Reference-Formats"
18209 \begin_inset LatexCommand index
18210 name "References ! Formats"
18217 \begin_layout Standard
18218 There are six varieties of cross-references:
18221 \begin_layout Description
18222 <reference>: prints the float number, this is the default:
18223 \begin_inset LatexCommand ref
18224 reference "fig:Two-distorted-images"
18231 \begin_layout Description
18232 (<reference>): prints the float number within two parentheses, this is the
18233 style normally used to reference formulas, especially when the reference
18235 \begin_inset Quotes eld
18239 \begin_inset Quotes erd
18243 \begin_inset LatexCommand eqref
18251 \begin_layout Description
18252 <page>: prints the page number: Page\InsetSpace ~
18254 \begin_inset LatexCommand pageref
18255 reference "fig:Two-distorted-images"
18262 \begin_layout Description
18265 <page>: prints the text "on page" and the page number:
18266 \begin_inset LatexCommand vpageref
18267 reference "fig:Two-distorted-images"
18274 \begin_layout Description
18275 <reference>\InsetSpace ~
18278 <page>: prints the float number, the text "on page", and
18280 \begin_inset LatexCommand vref
18281 reference "fig:Two-distorted-images"
18288 \begin_layout Description
18289 Formatted\InsetSpace ~
18290 reference: prints a self defined cross-reference format.
18292 \begin_inset Note Greyedout
18295 \begin_layout Standard
18300 This feature is only available when you have the LaTeX-package
18312 \begin_layout Standard
18313 Note that the style <page> won't print the page number if the label is on
18314 the previous, the same, or the next page.
18315 You will e.\InsetSpace \thinspace{}
18318 \begin_inset Quotes eld
18326 \begin_inset Quotes erd
18332 \begin_layout Standard
18333 The number and current page of the referred document part in the output,
18334 is automatically calculated by LaTeX.
18335 The varieties are adjusted in the field
18339 of the cross-reference window, that appear when you click on the cross-referenc
18343 \begin_layout Subsection
18344 Referencing Subfigures
18345 \begin_inset LatexCommand label
18346 name "sub:Referencing-Subfigures"
18351 \begin_inset LatexCommand index
18352 name "References ! to Subfigures"
18359 \begin_layout Standard
18360 Currently referencing subfigures is not supported by LyX, so you have to
18361 use LaTeX-commands.
18362 The label is the created with the command
18365 \begin_layout Standard
18370 label{fig:YourLabelName}
18373 \begin_layout Standard
18374 that is directly inserted into the subfigure caption field.
18375 To reference the label add this command in ERT
18378 \begin_layout Standard
18383 ref{fig:YourLabelName}
18386 \begin_layout Standard
18387 to the position in your document where the reference should be placed.
18388 Here is a reference to a subfigure: Subfigure\InsetSpace ~
18393 \begin_layout Standard
18405 \begin_layout Subsection
18406 Automatic Reference Naming
18407 \begin_inset LatexCommand index
18408 name "References ! Automatic Reference Naming"
18415 \begin_layout Standard
18420 provides a very useful feature that cross-references automatically include
18421 the name of the referenced floats (or text parts like sections).
18422 You save to write e.\InsetSpace \thinspace{}
18425 \begin_inset Quotes eld
18429 \begin_inset Quotes erd
18432 before every reference box.
18433 To get this automatic reference naming, you have to load the LaTeX-package
18439 \begin_inset LatexCommand index
18440 name "LaTeX-packages ! hyperref"
18444 in the document preamble with
18447 \begin_layout Standard
18452 usepackage[pdfborder={0 0 0}]{hyperref}
18467 \begin_layout Standard
18472 is used to link cross-references in the DVI- and PDF-output, this means
18473 that the reader of your document will be able to click on a table of content
18474 (TOC) entry or on a reference and he will be shown the referenced document
18480 also creates PDF-bookmarks for every section of your document to make it
18481 easier for readers to navigate through the document.
18482 This is also used in this document but when you have a look in the document
18483 preamble you will find various options in the load command of
18488 To learn more about the
18492 package, we refer to its documentation
18493 \begin_inset LatexCommand cite
18501 \begin_layout Standard
18502 \begin_inset Note Greyedout
18505 \begin_layout Standard
18510 Automatic reference naming cannot be used when you use cross-references
18513 Formatted\InsetSpace ~
18516 style, described in section\InsetSpace ~
18518 \begin_inset LatexCommand ref
18519 reference "sub:Cross-Reference-Formats"
18531 \begin_layout Subsection
18533 \begin_inset LatexCommand label
18534 name "sub:Reference-Position"
18539 \begin_inset LatexCommand index
18540 name "References ! Reference Position"
18547 \begin_layout Standard
18553 \begin_inset LatexCommand index
18554 name "LaTeX-packages ! hyperref"
18558 to link cross-references in the output, you will see that clicking on an
18559 image float reference jumps to the image label.
18560 The caption will be the first text part on the screen, so that you cannot
18561 see the image without scrolling.
18562 This is because the reference link anchor is placed at the position of
18564 With the use of the package
18569 \begin_inset LatexCommand index
18570 name "LaTeX-packages ! hypcap"
18574 , which is part of the LaTeX-package
18579 \begin_inset LatexCommand index
18580 name "LaTeX-packages ! oberdiek"
18584 , the link anchor is placed at the beginning of a float.
18585 To use this feature for figure floats, load
18589 in the document preamble with the line
18592 \begin_layout Standard
18597 usepackage[f\SpecialChar \textcompwordmark{}
18601 \begin_layout Standard
18606 for all floats but this isn't recommended for stability reasons.
18607 For more informations, have a look at
18612 \begin_inset LatexCommand cite
18620 \begin_layout Standard
18621 \begin_inset Note Greyedout
18624 \begin_layout Standard
18633 must be loaded after
18637 in the document preamble.
18645 \begin_layout Standard
18646 \begin_inset Note Greyedout
18649 \begin_layout Standard
18654 The set reference position has no effect for references to subfigures.
18662 \begin_layout Section
18664 \begin_inset LatexCommand label
18665 name "sec:Float-Placement"
18670 \begin_inset LatexCommand index
18671 name "Floats ! Placement"
18678 \begin_layout Standard
18679 Right-clicking on a float-box opens a dialog where you can alter the placement
18680 options that LaTeX uses for positioning the float.
18687 is only useful for two-column documents: If you select it, the float will
18688 span across both columns on the page instead of being confined to just
18693 Rotate\InsetSpace ~
18696 is used to rotate floats, see section
18697 \begin_inset LatexCommand ref
18698 reference "sec:Rotated-Floats"
18705 \begin_layout Standard
18706 You can use one ore more of the following options in the float dialog to
18707 set the placement for a particular float when you uncheck the option
18710 default\InsetSpace ~
18716 \begin_layout Description
18719 possible: try to place the float on the position where it is inserted
18722 \begin_layout Description
18725 page: try to place the float on the top of the current page
18728 \begin_layout Description
18729 Bottom\InsetSpace ~
18731 page: try to place the float on the bottom of the current page
18734 \begin_layout Description
18737 floats: try to place the float on an own page
18740 \begin_layout Standard
18741 The order of the above option is
18746 That means, if you use the default placement, LaTeX will first try out
18759 , and then the others.
18760 If you don't use the default, LaTeX will try only the checked options but
18762 If none of the 4 placements are possible the procedure is internally repeated
18763 but it is tried to put the float on the following page.
18766 \begin_layout Standard
18767 By default, each options has its own rules:
18770 \begin_layout Labeling
18771 \labelwidthstring 00.00.0000
18778 only floats occupying less than 70\InsetSpace \thinspace{}
18779 % of the page can be placed at the top
18789 \begin_layout Labeling
18790 \labelwidthstring 00.00.0000
18793 Bottom\InsetSpace ~
18797 : only floats occupying less than 30\InsetSpace \thinspace{}
18798 % of the page can be placed at the bottom
18809 \begin_layout Labeling
18810 \labelwidthstring 00.00.0000
18817 : only if more than 50\InsetSpace \thinspace{}
18818 % of the page are occupied by floats, several floats
18819 can be set together on a page.
18829 \begin_layout Standard
18830 If you don't like these rules, you can ignore them by using the additional
18833 Ignore\InsetSpace ~
18839 You can also redefine the rules with LaTeX-commands that are given in parenthese
18840 s behind the rules description above.
18841 To increase for example the often too small default of the bottom-rule
18842 to 50\InsetSpace \thinspace{}
18843 % of the page, add this line to your document preamble:
18846 \begin_layout Standard
18853 bottomfraction}{0.5}
18856 \begin_layout Standard
18857 Sometimes you might need, under all circumstances, a float to be placed
18858 exactly at the position where it is inserted.
18859 For this case you can use the option
18865 Use this option very rarely and only if the document is nearly ready to
18867 Because the float is then no longer able to
18868 \begin_inset Quotes eld
18872 \begin_inset Quotes erd
18875 when you change your document and this will often destroy the page layout.
18878 \begin_layout Standard
18879 There are no placement options for text wrap floats, because they are always
18880 surrounded by the text of a certain paragraph.
18881 \begin_inset VSpace bigskip
18887 \begin_layout Standard
18888 Sometimes you have the problem that a float is placed at the top of a page
18889 while its corresponding section starts at the middle of the page, so that
18890 the reader could think the float is part of the previous section.
18891 To avoid this the LaTeX-command
18895 suppressf\SpecialChar \textcompwordmark{}
18899 It suppresses a given float placement for the page where it is inserted
18900 and can therefore be used to avoid that floats could be set before a section
18902 To get this, add these commands to your document preamble:
18905 \begin_layout Standard
18922 suppressf\SpecialChar \textcompwordmark{}
18928 \begin_layout Standard
18929 You can define the same for all section headings, like chapters and subsections.
18930 This definition is not recommended to be used for small text parts like
18931 subsubsections because LaTeX may then have problems to find a suitable
18935 \begin_layout Standard
18936 \begin_inset VSpace bigskip
18939 In some cases it is required to have all figures/tables at the end of the
18941 For this purpose the LaTeX-package
18943 endf\SpecialChar \textcompwordmark{}
18947 \begin_inset LatexCommand index
18948 name "LaTeX-packages ! endfloat"
18953 It puts all figure and table floats at the end of the document into own
18955 At the original float position a text hint like
18956 \begin_inset Quotes eld
18961 [Figure\InsetSpace ~
18965 \begin_inset Quotes erd
18969 The endfloat-package is loaded in the preamble with the line
18972 \begin_layout Standard
18977 usepackage[options]{endf\SpecialChar \textcompwordmark{}
18981 \begin_layout Standard
18982 There are various package options to format the created figure/table sections.
18983 For more information we refer to the
18985 endf\SpecialChar \textcompwordmark{}
18989 \begin_inset LatexCommand cite
18997 \begin_inset Note Greyedout
19000 \begin_layout Standard
19003 Note: endf\SpecialChar \textcompwordmark{}
19006 doesn't provide an automatic translation for the text hint, you have to
19007 do this manually, see section\InsetSpace ~
19009 \begin_inset LatexCommand cite
19022 \begin_inset Note Greyedout
19025 \begin_layout Standard
19030 There is currently a bug in
19032 endf\SpecialChar \textcompwordmark{}
19035 when the caption contains a German
19036 \begin_inset Quotes eld
19040 \begin_inset Quotes erd
19044 Use in this case the command
19045 \begin_inset Quotes eld
19055 \begin_inset Quotes erd
19059 \begin_inset Quotes eld
19063 \begin_inset Quotes erd
19074 \begin_layout Standard
19075 \begin_inset VSpace bigskip
19078 For more details about float placements, have a look at LaTeX books,
19079 \begin_inset LatexCommand cite
19080 key "latexcompanion,latexguide,latexbook"
19087 \begin_layout Section
19089 \begin_inset LatexCommand label
19090 name "sec:Rotated-Floats"
19095 \begin_inset LatexCommand index
19096 name "Floats ! Rotating"
19103 \begin_layout Standard
19104 Especially for wide tables you might have floats rotated.
19105 To rotate a whole float including the caption, right-click on the float-box
19108 Rotate\InsetSpace ~
19114 \begin_layout Standard
19115 Rotated floats are always placed on its own page (or column, when you have
19116 a two-column document).
19117 They are normally rotated so that you can read them from the outside margin
19118 -- to the left on even pages, to the right on odd pages.
19121 \begin_layout Standard
19122 Referencing rotated floats is the same like for normal floats, the caption
19123 format is also the same: Table\InsetSpace ~
19125 \begin_inset LatexCommand ref
19126 reference "tab:Rotated-table"
19130 is an example of a rotated table float.
19133 \begin_layout Standard
19134 \begin_inset Note Greyedout
19137 \begin_layout Standard
19142 Not all DVI-viewers are able to display rotated floats.
19150 \begin_layout Standard
19151 \begin_inset Float table
19156 \begin_layout Standard
19157 \begin_inset Caption
19159 \begin_layout Standard
19160 \begin_inset LatexCommand label
19161 name "tab:Rotated-table"
19173 \begin_layout Standard
19175 \begin_inset Tabular
19176 <lyxtabular version="3" rows="1" columns="5">
19178 <column alignment="center" valignment="top" leftline="true" width="0">
19179 <column alignment="center" valignment="top" leftline="true" width="0">
19180 <column alignment="center" valignment="top" leftline="true" width="0">
19181 <column alignment="center" valignment="top" leftline="true" width="0">
19182 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19183 <row topline="true" bottomline="true">
19184 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19187 \begin_layout Standard
19193 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19196 \begin_layout Standard
19202 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19205 \begin_layout Standard
19211 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19214 \begin_layout Standard
19220 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19223 \begin_layout Standard
19242 \begin_layout Section
19244 \begin_inset LatexCommand index
19245 name "Caption ! Formatting"
19250 \begin_inset LatexCommand index
19251 name "Floats ! Caption Formatting"
19256 \begin_inset LatexCommand index
19257 name "LaTeX-packages ! caption"
19262 \begin_inset LatexCommand label
19263 name "sec:Caption-Formatting"
19270 \begin_layout Standard
19275 environment is the default paragraph environment for
19280 On the LyX screen captions appear as label, e.\InsetSpace \thinspace{}
19283 \begin_inset Quotes eld
19291 \begin_inset Quotes erd
19294 followed by the caption text.
19296 \begin_inset Quotes eld
19300 \begin_inset Quotes erd
19303 is substituted in the printed output by the actual reference number.
19304 By default the label and the number are in the same font as the caption
19305 text and a colon follows the number to divide then label from the text.
19306 This caption format is not suitable for all document formats.
19310 \begin_layout Standard
19311 To change the default caption format, load the LaTeX-package
19316 \begin_inset LatexCommand index
19317 name "LaTeX-packages ! caption"
19321 in the document preamble with this line:
19324 \begin_layout Standard
19329 usepackage[format definition]{caption}
19332 \begin_layout Standard
19333 To have for example the label and the number in sans-serif bold font and
19334 the table captions always above the table like in this document, use the
19338 \begin_layout Standard
19343 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
19346 \begin_layout Standard
19347 You can also define different caption formats for the different float types.
19348 In this case load the
19352 package without format specific options and define the different formats
19353 with the help of the command
19356 \begin_layout Standard
19361 captionsetup[float type]{format definition}
19364 \begin_layout Standard
19365 in the document preamble.
19366 For example the caption formats of Figure\InsetSpace ~
19368 \begin_inset LatexCommand ref
19369 reference "fig:This-is-an-fig"
19373 and Table\InsetSpace ~
19375 \begin_inset LatexCommand ref
19376 reference "tab:This-is-an-tab"
19380 can be created using these commands in the document preamble:
19383 \begin_layout Standard
19388 usepackage[tableposition=top]{caption}
19396 captionsetup[f\SpecialChar \textcompwordmark{}
19397 igure]{labelfont={tt}, textfont=it, indention=1cm,%
19403 \begin_layout Standard
19411 captionsetup[figure]
19422 captionsetup[table]{labelfont={bf,sf}}
19425 \begin_layout Standard
19426 \begin_inset Note Greyedout
19429 \begin_layout Standard
19438 has no effect when a
19443 \begin_inset LatexCommand index
19444 name "LaTeX-packages ! koma-script"
19448 document class is used.
19449 In this case the document class option
19461 \begin_layout Standard
19462 For more information about the package
19466 we refer to its documentation
19467 \begin_inset LatexCommand cite
19468 key "caption,caption-de"
19475 \begin_layout Standard
19476 To change the label name from e.g.
19478 \begin_inset Quotes eld
19482 \begin_inset Quotes erd
19486 \begin_inset Quotes eld
19490 \begin_inset Quotes erd
19493 use this preamble command:
19496 \begin_layout Standard
19503 fnum@figure}{Image~
19508 \begin_layout Standard
19515 inserts the figure number and
19518 \begin_inset Quotes eld
19524 \begin_inset Quotes erd
19527 creates a protected space.
19530 \begin_layout Standard
19531 \begin_inset VSpace bigskip
19539 \begin_inset LatexCommand index
19540 name "LaTeX-packages ! koma-script"
19546 article (koma-script)
19554 letter (koma-script)
19558 report (koma-script)
19560 \InsetSpace \thinspace{}
19561 ), you can alternatively to the
19569 's built-in command
19576 For example, to have the caption label in bold, add this command to your
19580 \begin_layout Standard
19585 setkomafont{captionlabel}{
19590 \begin_layout Standard
19591 For more information about
19602 \begin_inset LatexCommand cite
19603 key "koma-script,koma-script-de"
19610 \begin_layout Standard
19614 \begin_layout Standard
19618 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
19625 \begin_inset Note Note
19628 \begin_layout Standard
19629 The caption format is changed only for this example.
19637 \begin_layout Standard
19638 \begin_inset Float figure
19644 \begin_layout Standard
19646 \begin_inset Graphics
19647 filename clipart/mobius.eps
19656 \begin_layout Standard
19657 \begin_inset Caption
19659 \begin_layout Standard
19660 \begin_inset LatexCommand label
19661 name "fig:This-is-an-fig"
19665 This is an example figure caption that is longer than one line to show the
19666 different caption format.
19667 Here a self-defined caption format is used.
19680 \begin_layout Standard
19684 \begin_layout Standard
19688 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
19697 \begin_layout Standard
19698 \begin_inset Float table
19704 \begin_layout Standard
19705 \begin_inset Caption
19707 \begin_layout Standard
19708 \begin_inset LatexCommand label
19709 name "tab:This-is-an-tab"
19713 This is an example table caption that is longer than one line to show the
19714 different caption format.
19715 Here the standard caption format for tables in this document is used.
19723 \begin_layout Standard
19725 \begin_inset Tabular
19726 <lyxtabular version="3" rows="1" columns="5">
19728 <column alignment="center" valignment="top" leftline="true" width="0">
19729 <column alignment="center" valignment="top" leftline="true" width="0">
19730 <column alignment="center" valignment="top" leftline="true" width="0">
19731 <column alignment="center" valignment="top" leftline="true" width="0">
19732 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19733 <row topline="true" bottomline="true">
19734 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19737 \begin_layout Standard
19743 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19746 \begin_layout Standard
19752 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19755 \begin_layout Standard
19761 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19764 \begin_layout Standard
19770 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19773 \begin_layout Standard
19792 \begin_layout Section
19794 \begin_inset LatexCommand index
19795 name "Caption ! Placement"
19800 \begin_inset LatexCommand index
19801 name "Floats ! Caption Placement"
19806 \begin_inset LatexCommand label
19807 name "sec:Caption-Placement"
19814 \begin_layout Standard
19815 The common caption placement rule is:
19818 \begin_layout Description
19819 Figure: Caption is set below the figure
19822 \begin_layout Description
19823 Table: Caption is set above the table
19826 \begin_layout Standard
19827 Having the caption above the table is unfortunately not supported in LaTeX's
19829 That means if you are using the document classes
19845 there will be no space between the caption and the table.
19846 To insert the needed space, add the following option to the load command
19847 of the LaTeX-package
19851 in your document preamble
19855 \begin_layout Standard
19856 See section\InsetSpace ~
19858 \begin_inset LatexCommand ref
19859 reference "sec:Caption-Formatting"
19863 for more information of the package
19875 \begin_layout Standard
19881 \begin_layout Standard
19887 \begin_inset LatexCommand index
19888 name "LaTeX-packages ! koma-script"
19894 article (koma-script)
19902 letter (koma-script)
19906 report (koma-script)
19908 \InsetSpace \thinspace{}
19909 ), you can alternatively to the
19913 package set the document class option
19917 , or you can use the environment
19919 caption\InsetSpace ~
19929 \begin_layout Standard
19930 \begin_inset VSpace bigskip
19933 It is also possible to set the caption beside a figure or table.
19934 To get this the LaTeX-package
19939 \begin_inset LatexCommand index
19940 name "LaTeX-packages ! sidecap"
19944 has to be loaded in the document preamble with the line
19947 \begin_layout Standard
19952 usepackage[option]{sidecap}
19955 \begin_layout Standard
19956 If you set no option, the caption is placed on the side of the outer page
19957 margin -- to the right on odd pages, to the left on even pages.
19958 You can change the placement to inner margin with the option
19963 To force the placement always to the right or left, use the option
19974 \begin_layout Standard
19975 To place in LyX the caption of a float on the side, it is necessary to add
19976 these commands to the document preamble:
19979 \begin_layout Standard
19985 \begin_layout Standard
19998 \begin_layout Standard
20019 \begin_layout Standard
20040 \begin_layout Standard
20051 renewenvironment{table}{
20058 \begin_layout Standard
20071 \begin_layout Standard
20092 \begin_layout Standard
20110 \begin_layout Standard
20123 \begin_layout Standard
20138 f\SpecialChar \textcompwordmark{}
20145 \begin_layout Standard
20158 MyEndf\SpecialChar \textcompwordmark{}
20161 endf\SpecialChar \textcompwordmark{}
20168 \begin_layout Standard
20179 renewenvironment{f\SpecialChar \textcompwordmark{}
20182 begin{SCf\SpecialChar \textcompwordmark{}
20185 end{SCf\SpecialChar \textcompwordmark{}
20189 \begin_layout Standard
20202 \begin_layout Standard
20215 f\SpecialChar \textcompwordmark{}
20224 \begin_layout Standard
20237 endf\SpecialChar \textcompwordmark{}
20240 MyEndf\SpecialChar \textcompwordmark{}
20244 \begin_layout Standard
20250 \begin_layout Standard
20251 The commands allow you to redefine the floats so that the caption is set
20253 For figure floats use the command
20256 \begin_layout Standard
20264 \begin_layout Standard
20265 in ERT before the float.
20266 Behind the float insert the command
20269 \begin_layout Standard
20277 \begin_layout Standard
20278 in ERT to get back to the original float definition.
20281 \begin_layout Standard
20282 For table floats use the corresponding commands
20285 \begin_layout Standard
20299 \begin_layout Standard
20300 Figure\InsetSpace ~
20302 \begin_inset LatexCommand ref
20303 reference "fig:cap-beside-fig"
20307 and Table\InsetSpace ~
20309 \begin_inset LatexCommand ref
20310 reference "tab:cap-beside-tab"
20314 are examples where the caption is set beside.
20317 \begin_layout Standard
20318 You can see in the examples that the caption text appears at the top of
20319 the floats for table floats and at the bottom for figure floats.
20320 To change this, you can use the command
20323 \begin_layout Standard
20328 sidecaptionvpos{float type}{placement}
20331 \begin_layout Standard
20332 in the document preamble or in ERT before the float.
20333 The float type is either
20341 , the placement can be
20342 \begin_inset Quotes eld
20350 \begin_inset Quotes erd
20354 \begin_inset Quotes eld
20362 \begin_inset Quotes erd
20366 \begin_inset Quotes eld
20374 \begin_inset Quotes erd
20378 To have for example the caption of figure floats vertically centered, use
20382 \begin_layout Standard
20387 sidecaptionvpos{f\SpecialChar \textcompwordmark{}
20391 \begin_layout Standard
20392 This was used for Figure\InsetSpace ~
20394 \begin_inset LatexCommand ref
20395 reference "fig:cap-beside-fig-2"
20402 \begin_layout Standard
20403 \begin_inset VSpace defskip
20406 For more information about the package
20410 we refer to its documentation
20411 \begin_inset LatexCommand cite
20419 \begin_layout Standard
20420 \begin_inset Note Greyedout
20423 \begin_layout Standard
20433 \begin_inset LatexCommand index
20434 name "LaTeX-packages ! hypcap"
20438 , described in section\InsetSpace ~
20440 \begin_inset LatexCommand ref
20441 reference "sub:Reference-Position"
20445 , has no effect on floats with the caption set beside.
20453 \begin_layout Standard
20457 \begin_layout Standard
20469 \begin_layout Standard
20470 \begin_inset Float figure
20475 \begin_layout Standard
20476 \begin_inset Graphics
20477 filename clipart/escher-lsd.eps
20485 \begin_layout Standard
20486 \begin_inset Caption
20488 \begin_layout Standard
20489 \begin_inset LatexCommand label
20490 name "fig:cap-beside-fig"
20494 This is a caption beside a figure.
20507 \begin_layout Standard
20511 \begin_layout Standard
20523 \begin_layout Standard
20524 \begin_inset Float table
20529 \begin_layout Standard
20530 \begin_inset Caption
20532 \begin_layout Standard
20533 \begin_inset LatexCommand label
20534 name "tab:cap-beside-tab"
20538 This is a caption beside a table.
20546 \begin_layout Standard
20547 \begin_inset Tabular
20548 <lyxtabular version="3" rows="4" columns="5">
20550 <column alignment="center" valignment="top" leftline="true" width="0">
20551 <column alignment="center" valignment="top" leftline="true" width="0">
20552 <column alignment="center" valignment="top" leftline="true" width="0">
20553 <column alignment="center" valignment="top" leftline="true" width="0">
20554 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
20555 <row topline="true">
20556 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20559 \begin_layout Standard
20565 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20568 \begin_layout Standard
20574 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20577 \begin_layout Standard
20583 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20586 \begin_layout Standard
20592 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20595 \begin_layout Standard
20602 <row topline="true">
20603 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20606 \begin_layout Standard
20612 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20615 \begin_layout Standard
20621 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20624 \begin_layout Standard
20630 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20633 \begin_layout Standard
20639 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20642 \begin_layout Standard
20649 <row topline="true">
20650 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20653 \begin_layout Standard
20659 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20662 \begin_layout Standard
20668 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20671 \begin_layout Standard
20677 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20680 \begin_layout Standard
20686 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20689 \begin_layout Standard
20696 <row topline="true" bottomline="true">
20697 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20700 \begin_layout Standard
20706 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20709 \begin_layout Standard
20715 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20718 \begin_layout Standard
20724 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20727 \begin_layout Standard
20733 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20736 \begin_layout Standard
20755 \begin_layout Standard
20759 \begin_layout Standard
20771 \begin_layout Standard
20775 \begin_layout Standard
20779 sidecaptionvpos{figure}{c}
20785 \begin_inset Float figure
20790 \begin_layout Standard
20791 \begin_inset Graphics
20792 filename clipart/escher-lsd.eps
20800 \begin_layout Standard
20801 \begin_inset Caption
20803 \begin_layout Standard
20804 \begin_inset LatexCommand label
20805 name "fig:cap-beside-fig-2"
20809 This is a vertically centered caption beside a figure.
20822 \begin_layout Standard
20826 \begin_layout Standard
20838 \begin_layout Section
20840 \begin_inset LatexCommand label
20841 name "sec:Listings-of-Floats"
20846 \begin_inset LatexCommand index
20847 name "Floats ! Listings"
20854 \begin_layout Standard
20855 Similar to the the table of contents where the sections of the document
20856 are listed, there are listings for all float types, like the figures of
20858 You can insert them via the
20860 Insert\SpecialChar \menuseparator
20868 \begin_layout Standard
20869 The list entries are the float captions or its short title, the float number,
20870 and the page number where they appear in the document.
20873 \begin_layout Standard
20874 You can find the list of figures and tables at the end of this document.
20877 \begin_layout Chapter
20881 \begin_layout Section
20885 \begin_layout Standard
20898 \begin_layout Standard
20906 \begin_inset LatexCommand label
20907 name "sec:LyX-Notes"
20912 \begin_inset LatexCommand index
20913 name "Notes ! LyX Notes"
20918 \begin_inset Note Note
20921 \begin_layout Standard
20924 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
20925 are displayed wrongly in PDF-bookmarks.
20926 For more information about this, have a look at
20927 \begin_inset LatexCommand cite
20940 \begin_layout Standard
20941 Notes are inserted with the toolbar button
20942 \begin_inset Graphics
20943 filename ../images/note-insert.xpm
20950 Insert\SpecialChar \menuseparator
20954 There are three types of notes:
20957 \begin_layout Description
20959 Note This note type is for internal notes that won't appear in the output.
20960 Its note-box looks like this:
20965 \begin_inset Graphics
20966 filename clipart/LyXNoteImageQt4.png
20973 \begin_inset Note Note
20976 \begin_layout Standard
20977 This is text in a note box that doesn't appear in the output.
20985 \begin_layout Description
20986 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
20987 ent, when you export the document to LaTeX via the menu
20989 File\SpecialChar \menuseparator
20990 Export\SpecialChar \menuseparator
20991 LaTeX (pdflatex) / LaTeX (plain)
20994 Its note-box looks like this:
20999 \begin_inset Graphics
21000 filename clipart/CommentNoteImageQt4.png
21007 \begin_inset Note Comment
21010 \begin_layout Standard
21011 This is text in a note box that only appears as comment in LaTeX-files.
21019 \begin_layout Description
21020 Greyed\InsetSpace ~
21021 Out This note will appear in the output as grey text.
21022 Its note-box looks like this:
21027 \begin_inset Graphics
21028 filename clipart/GreyedOutNoteImageQt4.png
21040 \begin_layout Standard
21044 renewenvironment{lyxgreyedout}
21047 \begin_layout Standard
21051 textcolor[gray]{0.8}
21061 \begin_inset Note Greyedout
21064 \begin_layout Standard
21069 \begin_layout Standard
21070 This is an example footnote within a greyed out note.
21075 of a comment that appears in the output as grey text.
21084 \begin_layout Standard
21088 renewenvironment{lyxgreyedout}
21091 \begin_layout Standard
21105 \begin_inset Note Note
21108 \begin_layout Standard
21109 The greyed out note is here redefined to show it with the original LyX definitio
21110 n because greyed out notes are redefined in the preamble of this document,
21111 as described below, to have blue text.
21120 As you can see in the example, the first line of greyed out notes is a bit
21121 indented and greyed out notes can have footnotes.
21124 \begin_layout Description
21125 Framed This note will appear in the output as framed text.
21126 Its note-box looks like this:
21131 \begin_inset Graphics
21132 filename clipart/FramedNoteImageQt4.png
21139 \begin_inset Note Framed
21142 \begin_layout Standard
21143 This is text in a note box that appears framed in the output.
21148 In contrary to framed boxes
21152 \begin_layout Standard
21153 Framed boxes are described in section\InsetSpace ~
21155 \begin_inset LatexCommand ref
21156 reference "sec:Framed-Boxes"
21165 the frame uses always the whole text width and the note is set into its
21169 \begin_layout Description
21170 Shaded This note will appear in the output with red background color.
21171 Its note box looks like this:
21176 \begin_inset Graphics
21177 filename clipart/ShadedNoteImageQt4.png
21184 \begin_inset Note Shaded
21187 \begin_layout Standard
21188 This text in a note box appears in the output with red background.
21193 In contrary to colored boxes
21197 \begin_layout Standard
21198 Colored boxes are described in section\InsetSpace ~
21200 \begin_inset LatexCommand ref
21201 reference "sec:Colored-Boxes"
21210 the note uses always the whole text width and the note is set into its
21214 \begin_layout Standard
21215 \begin_inset VSpace bigskip
21218 When you use the toolbar button to insert notes, a
21224 You can switch between the three note types by right-clicking on the note-box.
21229 If you want to turn existing text into a note, mark it and click on the
21245 \begin_layout Standard
21246 \begin_inset VSpace bigskip
21249 You can change the text color of the greyed out notes in the preamble with
21250 the following command:
21253 \begin_layout Standard
21258 renewenvironment{lyxgreyedout}
21264 \begin_layout Standard
21282 \begin_layout Standard
21283 The available colors and the method to define own colors is explained in
21284 section\InsetSpace ~
21286 \begin_inset LatexCommand ref
21287 reference "sec:Colored-Tables"
21294 \begin_layout Standard
21295 Notes that appear in blue in this document are set using greyed out notes
21299 \begin_layout Standard
21300 \begin_inset VSpace bigskip
21306 \begin_layout Standard
21315 notes can be set in the
21322 \begin_layout Standard
21323 The default frame width for
21327 notes is 0.4\InsetSpace \thinspace{}
21328 pt; it can be changed by changing the size
21335 The default space between the note content and the frame is 9\InsetSpace \thinspace{}
21337 be changed by changing the size
21344 For example the frame appearance of the following
21348 note is set with the ERT commands
21351 \begin_layout Standard
21361 \begin_layout Standard
21365 \begin_layout Standard
21377 \begin_inset Note Framed
21380 \begin_layout Standard
21394 \begin_layout Standard
21408 \begin_layout Standard
21409 \begin_inset VSpace bigskip
21415 \begin_layout Standard
21420 notes the default space between the note content and the note border is
21421 3\InsetSpace \thinspace{}
21422 pt; it can be changed by changing the size
21430 The default background color red can be changed with the command
21434 def\SpecialChar \textcompwordmark{}
21442 def\SpecialChar \textcompwordmark{}
21445 command is explained in section\InsetSpace ~
21447 \begin_inset LatexCommand ref
21448 reference "sec:Colored-Tables"
21456 \begin_layout Standard
21463 \SpecialChar \textcompwordmark{}
21468 requires the LaTeX-package
21472 in the preamble, see section\InsetSpace ~
21474 \begin_inset LatexCommand ref
21475 reference "sec:Colored-Boxes"
21487 \begin_layout Standard
21488 For example the appearance of the following
21492 note is set with the ERT commands
21495 \begin_layout Standard
21508 def\SpecialChar \textcompwordmark{}
21509 inecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21512 \begin_layout Standard
21516 \begin_layout Standard
21529 \begin_layout Standard
21533 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21539 \begin_inset Note Shaded
21542 \begin_layout Standard
21545 This is yellow text in a
21555 note with darkgreen background.
21564 \begin_layout Standard
21577 \begin_layout Standard
21581 definecolor{shadecolor}{rgb}{1,0,0}
21589 \begin_layout Section
21591 \begin_inset LatexCommand label
21592 name "sec:Footnotes"
21597 \begin_inset LatexCommand index
21598 name "Notes ! Footnotes"
21603 \begin_inset LatexCommand index
21611 \begin_layout Standard
21612 Footnotes can be inserted using the toolbar button
21613 \begin_inset Graphics
21614 filename ../images/footnote-insert.xpm
21621 Insert\SpecialChar \menuseparator
21633 then the following footnote-box:
21634 \begin_inset Graphics
21635 filename clipart/footnoteQt4.png
21644 where you can enter the footnote text.
21645 If you want to turn existing text into a footnote, mark it and click on
21661 \begin_layout Standard
21662 Here is an example footnote:
21670 \begin_layout Standard
21671 \begin_inset LatexCommand label
21672 name "foot:This-is-an"
21676 This is an example footnote.
21689 \begin_layout Standard
21693 newcounter{MyRepeatFoot}
21696 \begin_layout Standard
21700 setcounter{MyRepeatFoot}{
21710 \begin_layout Standard
21711 The footnote will appear in the output as a superscript number at the text
21712 position where the footnote box is placed.
21713 The footnote text is placed at the bottom of the current page.
21714 The footnote number is calculated by LaTeX, the numbers are consecutive.
21715 It depends on your document-class, if the footnote number is reset for
21719 \begin_layout Standard
21720 Footnotes can be referenced like floats: Insert a label into the footnote
21721 and cross-reference this label in the text as described in section\InsetSpace ~
21723 \begin_inset LatexCommand ref
21724 reference "sec:Referencing-Floats"
21730 This is a cross-reference of Footnote\InsetSpace ~
21732 \begin_inset LatexCommand ref
21733 reference "foot:This-is-an"
21740 \begin_inset Note Greyedout
21743 \begin_layout Standard
21748 LyX doesn't provide a prefix for labels in footnotes, so you have to insert
21749 e.\InsetSpace \thinspace{}
21754 \begin_inset Quotes eld
21760 \begin_inset Quotes erd
21763 manually when you want to use the reference style
21765 Formatted\InsetSpace ~
21776 \begin_layout Standard
21777 \begin_inset VSpace defskip
21780 To use footnotes within tables, you have to use minipages, see section\InsetSpace ~
21782 \begin_inset LatexCommand ref
21783 reference "sec:Minipages"
21788 Footnotes within longtables are described in section\InsetSpace ~
21790 \begin_inset LatexCommand ref
21791 reference "sub:Footnotes-in-Longtables"
21798 \begin_layout Standard
21799 \begin_inset VSpace defskip
21802 To create only a mark for a footnote, use the command
21806 footnotemark[number]
21809 This is used when you have the same annotation several times in a text
21810 but doesn't want to print the footnote text every time.
21813 the number of the repeating footnote while you are writing the text, you
21814 have to store its number.
21815 For the following footnote mark example, these commands were inserted in
21816 ERT behind Footnote\InsetSpace ~
21818 \begin_inset LatexCommand ref
21819 reference "foot:This-is-an"
21823 to store the footnote number:
21826 \begin_layout Standard
21831 newcounter{MyRepeatFoot}
21835 setcounter{MyRepeatFoot}{
21840 \begin_layout Standard
21841 The footnote mark was then created with this command:
21844 \begin_layout Standard
21854 \begin_layout Standard
21855 Here is an example footnote mark:
21863 \begin_layout Standard
21877 \begin_layout Subsection
21879 \begin_inset LatexCommand label
21880 name "sub:Footnote-Numbering"
21885 \begin_inset LatexCommand index
21886 name "Footnotes ! Numbering"
21893 \begin_layout Standard
21894 If you want to have footnotes numbered in the scheme
21895 \begin_inset Quotes eld
21899 \begin_inset Quotes erd
21902 , add the following command to your document preamble:
21905 \begin_layout Standard
21910 numberwithin{footnote}{chapter}
21913 \begin_layout Standard
21914 To be able to use the command
21925 in the document settings the option
21935 \begin_layout Standard
21939 \begin_layout Standard
21943 numberwithin{footnote}{chapter}
21948 This is another example footnote:
21954 \begin_layout Standard
21955 This is a footnote numbered in the scheme
21956 \begin_inset Quotes eld
21960 \begin_inset Quotes erd
21974 \begin_layout Standard
21978 numberwithin{footnote}{part}
21986 \begin_layout Standard
21987 \begin_inset VSpace bigskip
21993 \begin_layout Standard
21994 To reset the footnote number back to 1 after each section
21996 , add this command to your document preamble:
21999 \begin_layout Standard
22004 @addtoreset{footnote}{section}
22007 \begin_layout Standard
22008 \begin_inset VSpace bigskip
22011 The following preamble command changes the footnote numbering style to small
22015 \begin_layout Standard
22027 \begin_layout Standard
22031 \begin_layout Standard
22044 This is a footnote with roman numbering:
22048 \begin_layout Standard
22049 This is an example footnote with roman numbering.
22058 \begin_layout Standard
22074 \begin_layout Standard
22075 To change the numbering style to capital roman numerals replace in the command
22090 \begin_inset Quotes eld
22094 \begin_inset Quotes erd
22097 footnotes with capital or small Latin letters use
22111 \begin_inset Quotes eld
22115 \begin_inset Quotes erd
22118 footnotes with symbols use
22127 \begin_layout Standard
22128 \begin_inset Note Greyedout
22131 \begin_layout Standard
22136 You can only number 26 footnotes with Latin letters, because this numbering
22137 is limited to single letters.
22145 \begin_inset Note Greyedout
22148 \begin_layout Standard
22153 You can only number 9 footnotes with symbols.
22161 \begin_layout Standard
22162 To return to the default numbering style when you changed to another one,
22175 in the command above.
22178 \begin_layout Subsection
22180 \begin_inset LatexCommand index
22181 name "Footnotes ! Placement"
22188 \begin_layout Standard
22189 If you have several footnotes in one page, they appear without vertical
22190 space between them at the bottom of the page.
22191 To make them better readable you can e.\InsetSpace \thinspace{}
22193 add 1.5\InsetSpace \thinspace{}
22194 mm space with the following
22198 \begin_layout Standard
22220 \begin_layout Standard
22221 \begin_inset VSpace bigskip
22224 In a two-column document the footnotes appear at the bottom of every column,
22225 see Figure\InsetSpace ~
22227 \begin_inset LatexCommand ref
22228 reference "fig:Standard-footnote-placement"
22233 If the footnotes should only appear at the bottom of the right column,
22234 as in Figure\InsetSpace ~
22236 \begin_inset LatexCommand ref
22237 reference "fig:Footnote-placement-in"
22241 , use the LaTeX-package
22246 \begin_inset LatexCommand index
22247 name "LaTeX-packages ! ftnright"
22251 with this command in the document preamble:
22254 \begin_layout Standard
22259 usepackage{ftnright}
22262 \begin_layout Standard
22263 \begin_inset Float figure
22269 \begin_layout Standard
22273 \begin_layout Standard
22283 \begin_inset Graphics
22284 filename clipart/without_fntright.pdf
22293 \begin_layout Standard
22303 \begin_layout Standard
22304 \begin_inset Caption
22306 \begin_layout Standard
22307 \begin_inset LatexCommand label
22308 name "fig:Standard-footnote-placement"
22312 Standard footnote placement in two-column documents.
22325 \begin_layout Standard
22326 \begin_inset Float figure
22332 \begin_layout Standard
22336 \begin_layout Standard
22346 \begin_inset Graphics
22347 filename clipart/with_fntright.pdf
22356 \begin_layout Standard
22366 \begin_layout Standard
22367 \begin_inset Caption
22369 \begin_layout Standard
22370 \begin_inset LatexCommand label
22371 name "fig:Footnote-placement-in"
22375 Footnote placement in two-column documents when the LaTeX-package
22392 \begin_layout Standard
22393 \begin_inset VSpace bigskip
22396 In some scientific literature it is usual to collect the footnotes and print
22397 them in a separate paragraph at the the end of a section, like in Figure\InsetSpace ~
22399 \begin_inset LatexCommand ref
22400 reference "fig:Endnotes----footnotes"
22405 They are then so called
22406 \begin_inset Quotes eld
22410 \begin_inset Quotes erd
22414 To use endnotes instead of footnotes in your document, load the LaTeX-package
22420 \begin_inset LatexCommand index
22421 name "LaTeX-packages ! endnotes"
22425 with the document preamble lines
22428 \begin_layout Standard
22433 usepackage{endnotes}
22444 \begin_layout Standard
22445 To insert the collected footnotes, insert the command
22448 \begin_layout Standard
22456 \begin_layout Standard
22457 in ERT at the the end of a section or chapter.
22460 \begin_layout Standard
22461 \begin_inset Float figure
22466 \begin_layout Standard
22471 \begin_layout Standard
22481 \begin_inset Graphics
22482 filename clipart/endnotes.pdf
22490 \begin_layout Standard
22500 \begin_layout Standard
22501 \begin_inset Caption
22503 \begin_layout Standard
22504 \begin_inset LatexCommand label
22505 name "fig:Endnotes----footnotes"
22509 Endnotes -- footnotes are printed in a separate paragraph at the end of
22510 sections or chapters.
22523 \begin_layout Standard
22524 \begin_inset VSpace defskip
22527 The paragraph heading for the endnotes isn't automatically translated into
22528 the document language, this must be done manually.
22529 The following preamble command translate the default English name
22530 \begin_inset Quotes eld
22534 \begin_inset Quotes erd
22537 to the German translation
22538 \begin_inset Quotes eld
22542 \begin_inset Quotes erd
22548 \begin_layout Standard
22555 notesname}{Anmerkungen}
22558 \begin_layout Standard
22559 \begin_inset VSpace defskip
22562 The numbering of endnotes can be changed like the footnote numbering as
22563 described in section\InsetSpace ~
22565 \begin_inset LatexCommand ref
22566 reference "sub:Footnote-Numbering"
22570 ; just replace the command
22583 To reset the endnote number use the command
22589 as described in section\InsetSpace ~
22591 \begin_inset LatexCommand ref
22592 reference "sub:Footnote-Numbering"
22596 and replace the command parameter
22607 \begin_layout Standard
22608 To create only a mark for an endnote, use the command
22612 endnotemark[number]
22614 similar to the command
22620 , described in section\InsetSpace ~
22622 \begin_inset LatexCommand ref
22623 reference "sec:Footnotes"
22630 \begin_layout Standard
22631 \begin_inset VSpace bigskip
22634 Footnotes can also be placed in the page margin and the footnote text alignment
22635 can be changed, see the LaTeX-package
22640 \begin_inset LatexCommand index
22641 name "LaTeX-packages ! footmisc"
22646 \begin_inset LatexCommand cite
22651 for more information about this.
22654 \begin_layout Standard
22655 For various further footnote formatting issues have a look at LaTeX-books,
22657 \begin_inset LatexCommand cite
22658 key "latexcompanion,latexguide,latexbook"
22665 \begin_layout Section
22667 \begin_inset LatexCommand index
22668 name "Notes ! Margin Notes"
22675 \begin_layout Standard
22676 Margin notes look and behave in LyX like footnotes.
22677 They are inserted via the menu
22679 Insert\SpecialChar \menuseparator
22680 Marginal\InsetSpace ~
22683 or the toolbar button
22684 \begin_inset Graphics
22685 filename ../images/marginalnote-insert.xpm
22701 \begin_inset Quotes eld
22705 \begin_inset Quotes erd
22708 appears where you can enter the text of the margin note.
22711 \begin_layout Standard
22712 At the side is an example margin note.
22716 \begin_inset Marginal
22719 \begin_layout Standard
22720 This is a margin note.
22728 \begin_layout Standard
22729 Margin notes appear at the right side in single-sided documents.
22730 In double-sided documents they appear in the outer margin -- left on even
22731 pages, right on odd pages.
22732 The text of margin notes is aligned opposite to the outer margin -- right-align
22733 ed when the note appears in the left margin.
22734 The first line of the margin note is placed at the position of the text
22735 line where it is inserted in the document.
22738 \begin_layout Standard
22739 \begin_inset VSpace bigskip
22742 To place the margin note in the inner margin, add the command
22745 \begin_layout Standard
22753 \begin_layout Standard
22754 in ERT before a margin note.
22755 The new placement is valid for all following margin notes.
22759 \begin_layout Standard
22769 \begin_inset Marginal
22772 \begin_layout Standard
22773 This is a margin note in the inner margin.
22785 \begin_inset Note Greyedout
22788 \begin_layout Standard
22793 There is often not enough space in the inner margin so that the notes are
22794 not correctly displayed in the output.
22802 \begin_layout Standard
22806 \begin_layout Standard
22815 To return to the default placement insert the command
22818 \begin_layout Standard
22826 \begin_layout Standard
22829 \begin_inset Note Greyedout
22832 \begin_layout Standard
22837 The command is ignored when it is within a paragraph where also the command
22852 \begin_layout Standard
22853 \begin_inset VSpace bigskip
22860 \begin_inset Marginal
22863 \begin_layout Standard
22864 AVeryLongMarginParWord that isn't hyphenated.
22872 Similar to the case described in section\InsetSpace ~
22874 \begin_inset LatexCommand ref
22875 reference "sub:Multiple-Lines-in"
22879 , long words cannot be hyphenated when they are the first word in a margin
22881 To avoid this, insert the command
22884 \begin_layout Standard
22892 \begin_layout Standard
22893 in ERT before the word
22897 \begin_inset Marginal
22900 \begin_layout Standard
22904 \begin_layout Standard
22913 AVeryLongMarginParWord that is hyphenated.
22921 \begin_layout Standard
22922 \begin_inset VSpace bigskip
22928 \begin_layout Standard
22929 \begin_inset Note Greyedout
22932 \begin_layout Standard
22937 Margin notes can normally not be used inside tables, floats, and footnotes.
22945 \begin_layout Standard
22946 \begin_inset VSpace bigskip
22952 \begin_layout Standard
22956 \begin_layout Standard
22966 \begin_inset Note Note
22969 \begin_layout Standard
22970 The following section will only be displayed when you have the LaTeX-package
22983 \begin_layout Standard
22984 This restriction can be evaded by using the LaTeX-package
22989 \begin_inset LatexCommand index
22990 name "LaTeX-packages ! marginnote"
22995 By adding these two lines to your document preamble, the command used by
22996 LyX for margin notes is redefined to use the command provided by the
23003 \begin_layout Standard
23008 usepackage{marginnote}
23019 \begin_layout Standard
23020 This is also used in this document because
23024 has another useful feature: You can set a vertical offset for the note.
23025 This is often needed when too many margin notes are too close together
23026 or for a better page layout.
23027 The offset is set in LyX as ERT directly behind the margin note in the
23031 \begin_layout Standard
23037 \begin_layout Standard
23038 where the offset is a length with one of the units listed in Table\InsetSpace ~
23040 \begin_inset LatexCommand ref
23041 reference "tab:Units"
23046 A negative value shifts the note up, a positive value shifts it down.
23050 For example the margin note beside this text line is shifted up 1.5\InsetSpace \thinspace{}
23053 \begin_inset Quotes eld
23063 \begin_inset Quotes erd
23067 \begin_inset Marginal
23070 \begin_layout Standard
23071 This margin note is shifted up 1.5\InsetSpace \thinspace{}
23072 cm from its original position.
23084 \begin_layout Standard
23094 \begin_layout Standard
23095 \begin_inset VSpace defskip
23102 you can also change the alignment of the text in the margin note.
23103 For example the commands
23106 \begin_layout Standard
23113 raggedleftmarginnote}{
23121 raggedrightmarginnote}{
23126 \begin_layout Standard
23127 set the alignment to centered.
23132 raggedleftmarginnote
23134 denotes margin notes that appear at the left side.
23141 \begin_layout Standard
23147 raggedleftmarginnote}{
23152 \begin_layout Standard
23158 raggedrightmarginnote}{
23166 \begin_inset Marginal
23169 \begin_layout Standard
23170 The text of this margin note is centered.
23181 \begin_layout Standard
23188 raggedleftmarginnote}{
23196 raggedrightmarginnote}{
23205 \begin_layout Standard
23211 raggedleftmarginnote}{
23216 \begin_layout Standard
23222 raggedrightmarginnote}{
23232 \begin_layout Standard
23233 \begin_inset VSpace defskip
23236 For the other features of
23240 we refer to its documentation
23241 \begin_inset LatexCommand cite
23249 \begin_layout Standard
23250 \begin_inset VSpace bigskip
23253 You can change the layout of margin notes by redefining its definition.
23254 To create for example a header for all margin notes with the underlined,
23255 sans-serif, and bold header text
23256 \begin_inset Quotes eld
23268 \begin_inset Quotes erd
23271 , add this to your document preamble:
23274 \begin_layout Standard
23297 \begin_layout Standard
23314 underbar{Attention!}}}%
23320 \begin_layout Standard
23338 \begin_layout Standard
23345 \begin_layout Standard
23356 \begin_layout Standard
23367 \begin_layout Standard
23375 underbar{Attention!}}}%
23378 \begin_layout Standard
23392 \begin_inset Marginal
23395 \begin_layout Standard
23396 This is a margin note with a defined heading.
23408 \begin_layout Standard
23422 \begin_layout Standard
23439 \begin_inset Note Note
23442 \begin_layout Standard
23443 The margin note format is changed only for this example.
23451 \begin_layout Standard
23455 \begin_layout Standard
23465 \begin_inset Note Note
23468 \begin_layout Standard
23469 The following will be displayed when the LaTeX-package
23481 \begin_layout Standard
23482 You need to install the LaTeX-package
23486 to see the following part of this section in the output.
23489 \begin_layout Standard
23493 \begin_layout Standard
23505 \begin_layout Chapter
23509 \begin_layout Section
23511 \begin_inset LatexCommand index
23512 name "Boxes ! Introduction"
23519 \begin_layout Standard
23520 Boxes are used to format a block of text.
23521 Boxes can be used to write documents with multiple languages, see section\InsetSpace ~
23523 \begin_inset LatexCommand ref
23524 reference "sec:Minipages"
23528 , to frame texts, see section\InsetSpace ~
23530 \begin_inset LatexCommand ref
23531 reference "sec:Framed-Boxes"
23535 , to prevent words to be hyphenated, see section\InsetSpace ~
23537 \begin_inset LatexCommand ref
23538 reference "sec:Prevent-Hyphenation"
23542 , to align text, see section\InsetSpace ~
23544 \begin_inset LatexCommand ref
23545 reference "sub:Vertical-Alignment"
23549 , or to set the background color of texts, see section\InsetSpace ~
23551 \begin_inset LatexCommand ref
23552 reference "sec:Colored-Boxes"
23559 \begin_layout Standard
23560 Boxes can be inserted with the menu
23562 Insert\SpecialChar \menuseparator
23566 A grey box with the label
23571 \begin_inset Graphics
23572 filename clipart/BoxInsetDefaultQt4.png
23577 , will be inserted.
23578 The box type can be specified by right-clicking on the box.
23579 The appearing box dialog offers the
23597 is the default for new boxes and is explained in section\InsetSpace ~
23599 \begin_inset LatexCommand ref
23600 reference "sec:Minipages"
23608 is described in section\InsetSpace ~
23610 \begin_inset LatexCommand ref
23611 reference "sec:Parboxes"
23618 \begin_layout Standard
23619 Boxes aren't numbered and can therefore not be referenced like floats or
23623 \begin_layout Standard
23624 \begin_inset Note Greyedout
23627 \begin_layout Standard
23632 Due to a bug in LyX you have to insert a protected space behind a box when
23633 you want to separate in a line the box from the following text with a space.
23641 \begin_layout Standard
23642 \begin_inset Note Greyedout
23645 \begin_layout Standard
23650 Boxes must not be the item in an
23666 \begin_layout Standard
23667 \begin_inset Note Greyedout
23670 \begin_layout Standard
23675 For an unknown reason you can only set the
23684 when you use a framed box.
23690 type and without frames are explained in section\InsetSpace ~
23692 \begin_inset LatexCommand ref
23693 reference "sec:Prevent-Hyphenation"
23705 \begin_layout Section
23707 \begin_inset LatexCommand label
23708 name "sec:Box-Dialog"
23713 \begin_inset LatexCommand index
23714 name "Boxes ! Box Dialog"
23719 \begin_inset LatexCommand index
23720 name "Boxes ! Alignment"
23727 \begin_layout Standard
23728 In the box dialog you can adjust the box geometry in the fields
23737 The available units for the geometry are explained in Table\InsetSpace ~
23739 \begin_inset LatexCommand ref
23740 reference "tab:Units"
23749 offers the following additional sizes:
23752 \begin_layout Description
23753 Depth This is the plain text
23754 \begin_inset Quotes eld
23758 \begin_inset Quotes erd
23762 It ignores the total depth when there are multiple text lines in the box:
23769 \begin_inset Box Boxed
23778 height_special "depth"
23781 \begin_layout Standard
23783 Box height set to 1\InsetSpace \thinspace{}
23796 \begin_layout Description
23797 Height This is the heigth of the text that is inside the box.
23798 A value of e.\InsetSpace \thinspace{}
23800 2 for this size will set the box heigth to 2 times the text
23802 \begin_inset Box Boxed
23811 height_special "height"
23814 \begin_layout Standard
23816 Box height set to 2\InsetSpace \thinspace{}
23825 \begin_layout Description
23827 Height This is the Height\InsetSpace \thinspace{}
23828 +\InsetSpace \thinspace{}
23830 \begin_inset Box Boxed
23839 height_special "totalheight"
23842 \begin_layout Standard
23844 Box height set to 1\InsetSpace \thinspace{}
23854 \begin_layout Description
23855 Width This set the width of the box as heigth:
23856 \begin_inset Box Boxed
23865 height_special "width"
23868 \begin_layout Standard
23870 Box height set to 1\InsetSpace \thinspace{}
23879 \begin_layout Standard
23880 \begin_inset VSpace bigskip
23883 When you have chosen an
23888 , the vertical box alignment can be:
23891 \begin_layout Description
23892 Top This is an example text line.
23894 \begin_inset Box Boxed
23903 height_special "totalheight"
23906 \begin_layout Standard
23908 This box is top-aligned.
23914 This is an example text line.
23917 \begin_layout Description
23918 Middle This is an example text line.
23920 \begin_inset Box Boxed
23929 height_special "totalheight"
23932 \begin_layout Standard
23934 This box is middle-aligned.
23940 This is an example text line.
23943 \begin_layout Description
23944 Bottom This is an example text line.
23946 \begin_inset Box Boxed
23955 height_special "totalheight"
23958 \begin_layout Standard
23960 This box is bottom-aligned.
23966 This is an example text line.
23969 \begin_layout Standard
23970 The horizontal box alignment can be set via LyX's paragraph dialog when
23971 you set the box into its own paragraph.
23974 \begin_layout Standard
23975 \begin_inset VSpace bigskip
23978 When you have chosen an
23983 , the box content can be vertical aligned to:
23986 \begin_layout Description
23987 top This is an example text line.
23989 \begin_inset Box Boxed
23998 height_special "totalheight"
24001 \begin_layout Standard
24003 This box text is top-aligned.
24009 This is an example text line.
24012 \begin_layout Description
24013 middle This is an example text line.
24015 \begin_inset Box Boxed
24024 height_special "totalheight"
24027 \begin_layout Standard
24029 This box text is middle-aligned.
24035 This is an example text line.
24038 \begin_layout Description
24039 bottom This is an example text line.
24041 \begin_inset Box Boxed
24050 height_special "totalheight"
24053 \begin_layout Standard
24055 This box text is bottom-aligned.
24061 This is an example text line.
24064 \begin_layout Description
24065 stretch This is an example text line.
24067 \begin_inset Box Boxed
24076 height_special "totalheight"
24079 \begin_layout Standard
24084 \begin_layout Standard
24089 \begin_layout Standard
24097 This is an example text line.
24100 \begin_layout Standard
24101 To stretch the box content, it must consist of more than one paragraph.
24102 In the example above every text line is in an own paragraph.
24105 \begin_layout Standard
24106 \begin_inset VSpace bigskip
24109 To align the box content horizontally you can use LyX's paragraph dialog
24110 when you have chosen an
24118 \begin_layout Standard
24120 \begin_inset Box Boxed
24129 height_special "totalheight"
24132 \begin_layout Standard
24137 \begin_layout Standard
24142 \begin_layout Standard
24152 \begin_layout Standard
24153 If you haven't set an
24158 , you can align the box content horizontally in the box dialog.
24161 \begin_layout Standard
24163 \begin_inset Box Boxed
24172 height_special "totalheight"
24175 \begin_layout Standard
24177 This box text is horizontally stretched.
24185 \begin_layout Section
24187 \begin_inset LatexCommand label
24188 name "sec:Framed-Boxes"
24193 \begin_inset LatexCommand index
24194 name "Boxes ! Frames"
24201 \begin_layout Standard
24202 The frame style of the box can be specified in the box-dialog in the drop-down
24208 The following frame types are possible:
24211 \begin_layout Description
24212 Rectangular\InsetSpace ~
24213 box This draws a rectangle frame around the box.
24214 The frame line thickness has the size of
24222 \begin_inset Box Boxed
24231 height_special "totalheight"
24234 \begin_layout Standard
24244 \begin_layout Description
24247 thin This draws an oval frame around the box.
24248 The frame line thickness has the size 0.4\InsetSpace \thinspace{}
24251 \begin_inset Box ovalbox
24260 height_special "totalheight"
24263 \begin_layout Standard
24273 \begin_layout Description
24276 thick This draws an oval frame around the box.
24277 The frame line thickness has the size 0.8\InsetSpace \thinspace{}
24280 \begin_inset Box Ovalbox
24289 height_special "totalheight"
24292 \begin_layout Standard
24302 \begin_layout Description
24303 Shadow\InsetSpace ~
24304 box This draws a rectangle frame with a shadow around the box.
24305 The frame line thickness has the size of
24311 , the shadow has a width of 4\InsetSpace \thinspace{}
24314 \begin_inset Box Shadowbox
24323 height_special "totalheight"
24326 \begin_layout Standard
24336 \begin_layout Description
24337 Double\InsetSpace ~
24338 box This draws a double-line rectangle frame around the box.
24339 The line thickness of the inner frame is 0.75\InsetSpace \thinspace{}
24346 , the thickness of the outer frame is 1.5\InsetSpace \thinspace{}
24354 The distance between the lines is 1.5\InsetSpace \thinspace{}
24361 \InsetSpace \thinspace{}
24362 +\InsetSpace \thinspace{}
24363 0.5\InsetSpace \thinspace{}
24366 \begin_inset Box Doublebox
24375 height_special "totalheight"
24378 \begin_layout Standard
24388 \begin_layout Standard
24389 \begin_inset VSpace bigskip
24392 LyX's box label will change to the used frame style when you set a frame.
24393 To be able to use the different frame styles, the LaTeX-package
24398 \begin_inset LatexCommand index
24399 name "LaTeX-packages ! fancybox"
24406 \begin_layout Standard
24407 \begin_inset VSpace bigskip
24410 The default value for the size
24416 is 0.4\InsetSpace \thinspace{}
24418 It can be changed with the following command in ERT to e.\InsetSpace \thinspace{}
24420 2\InsetSpace \thinspace{}
24424 \begin_layout Standard
24434 \begin_layout Standard
24438 \begin_layout Standard
24450 \begin_inset Box Boxed
24459 height_special "totalheight"
24462 \begin_layout Standard
24464 Rectangular box with
24470 \InsetSpace \thinspace{}
24471 =\InsetSpace \thinspace{}
24472 2\InsetSpace \thinspace{}
24482 \begin_layout Standard
24496 \begin_layout Standard
24497 \begin_inset VSpace bigskip
24500 The space between the frame and the box content is for all frame styles
24501 by default 3\InsetSpace \thinspace{}
24503 You can change it by setting the length
24510 For example the command
24513 \begin_layout Standard
24523 \begin_layout Standard
24524 sets the value to 10\InsetSpace \thinspace{}
24525 pt, like for the following box:
24528 \begin_layout Standard
24532 \begin_layout Standard
24544 \begin_inset Box Boxed
24553 height_special "totalheight"
24556 \begin_layout Standard
24558 Rectangular box with
24564 \InsetSpace \thinspace{}
24565 =\InsetSpace \thinspace{}
24566 10\InsetSpace \thinspace{}
24576 \begin_layout Standard
24590 \begin_layout Standard
24591 \begin_inset VSpace bigskip
24594 The diameter of the round corners of the oval boxes can be set with the
24605 \begin_layout Standard
24613 \begin_layout Standard
24614 sets the diameter to 1\InsetSpace \thinspace{}
24619 \begin_layout Standard
24627 \begin_layout Standard
24628 sets the diameter to
24630 num\InsetSpace \thinspace{}
24631 ×\InsetSpace \thinspace{}
24632 minimum(width and heigth of box)
24644 \begin_layout Standard
24648 \begin_layout Standard
24658 \begin_inset Box Ovalbox
24667 height_special "totalheight"
24670 \begin_layout Standard
24678 \InsetSpace \thinspace{}
24679 =\InsetSpace \thinspace{}
24680 1.5\InsetSpace \thinspace{}
24690 \begin_layout Standard
24702 \begin_layout Standard
24703 \begin_inset VSpace bigskip
24706 The size of the shadow can be adjusted by changing the length
24713 It it set to 2\InsetSpace \thinspace{}
24714 pt for the following box by this command:
24717 \begin_layout Standard
24727 \begin_layout Standard
24731 \begin_layout Standard
24743 \begin_inset Box Shadowbox
24752 height_special "totalheight"
24755 \begin_layout Standard
24763 \InsetSpace \thinspace{}
24764 =\InsetSpace \thinspace{}
24765 2\InsetSpace \thinspace{}
24775 \begin_layout Standard
24789 \begin_layout Standard
24790 \begin_inset VSpace bigskip
24793 Changed lengths and widths are valid for all boxes following the commands
24797 \begin_layout Section
24799 \begin_inset LatexCommand label
24800 name "sec:Minipages"
24805 \begin_inset LatexCommand index
24806 name "Boxes ! Minipages"
24813 \begin_layout Standard
24814 Minipages are treated by LaTeX as pages within pages and can therefore for
24815 example have their own footnotes.
24818 \begin_layout Standard
24819 Minipages are useful when you write documents with different languages.
24822 \begin_layout Standard
24823 Below are two example minipages side by side.
24824 Their width is set to 45\InsetSpace \thinspace{}
24825 col% and they are separated by a horizontal fill,
24826 that was inserted via the menu
24828 Insert\SpecialChar \menuseparator
24829 Special\InsetSpace ~
24830 Formatting\SpecialChar \menuseparator
24831 Horizontal\InsetSpace ~
24837 \begin_layout Standard
24838 \begin_inset Box Frameless
24847 height_special "totalheight"
24850 \begin_layout Standard
24853 Dies ist ein deutscher Text.
24854 Dies ist ein deutscher Text.
24855 Dies ist ein deutscher Text.
24856 Dies ist ein deutscher Text.
24857 Dies ist ein deutscher Text.
24858 Dies ist ein deutscher Text.
24859 Dies ist ein deutscher Text.
24860 Dies ist ein deutscher Text.
24861 Dies ist ein deutscher Text.
24862 Dies ist ein deutscher Text.
24863 Dies ist ein deutscher Text.
24864 Dies ist ein deutscher Text.
24865 Dies ist ein deutscher Text
24869 \begin_layout Standard
24872 Dies ist eine deutsche Fußnote.
24878 Dies ist ein deutscher Text.
24879 Dies ist ein deutscher Text.
24887 \begin_inset Box Frameless
24896 height_special "totalheight"
24899 \begin_layout Standard
24900 This is an English Text.
24901 This is an English Text.
24902 This is an English Text.
24903 This is an English Text.
24904 This is an English Text.
24905 This is an English Text.
24906 This is an English Text.
24907 This is an English Text.
24908 This is an English Text.
24909 This is an English Text.
24910 This is an English Text.
24911 This is an English Text.
24912 This is an English Text.
24913 This is an English Text.
24914 This is an English Text.
24915 This is an English Text.
24919 \begin_layout Standard
24920 This is an English footnote.
24925 This is an English Text.
24934 \begin_layout Standard
24935 \begin_inset VSpace bigskip
24938 Another application for minipages are footnotes within tables.
24939 Due to a LaTeX restriction footnotes within tables doesn't appear at the
24940 bottom of the current page.
24941 But when you put the table with the footnote to a minipage, the footnote
24942 will appear at its bottom, numbered with Latin letters.
24943 The footnote number is reset to 1 in every minipage but not outside the
24947 \begin_layout Standard
24948 The footnote of this table doesn't appear:
24949 \begin_inset Tabular
24950 <lyxtabular version="3" rows="3" columns="4">
24952 <column alignment="center" valignment="top" leftline="true" width="0pt">
24953 <column alignment="center" valignment="top" leftline="true" width="0pt">
24954 <column alignment="center" valignment="top" leftline="true" width="0pt">
24955 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
24956 <row topline="true">
24957 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24960 \begin_layout Standard
24966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24969 \begin_layout Standard
24975 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24978 \begin_layout Standard
24983 \begin_layout Standard
24984 This is a footnote within a table.
24994 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24997 \begin_layout Standard
25004 <row topline="true">
25005 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25008 \begin_layout Standard
25014 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25017 \begin_layout Standard
25023 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25026 \begin_layout Standard
25032 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25035 \begin_layout Standard
25042 <row topline="true" bottomline="true">
25043 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25046 \begin_layout Standard
25052 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25055 \begin_layout Standard
25061 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25064 \begin_layout Standard
25070 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25073 \begin_layout Standard
25087 \begin_layout Standard
25089 \begin_inset Box Frameless
25098 height_special "totalheight"
25101 \begin_layout Standard
25103 \begin_inset Tabular
25104 <lyxtabular version="3" rows="3" columns="4">
25106 <column alignment="center" valignment="top" leftline="true" width="0pt">
25107 <column alignment="center" valignment="top" leftline="true" width="0pt">
25108 <column alignment="center" valignment="top" leftline="true" width="0pt">
25109 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25110 <row topline="true">
25111 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25114 \begin_layout Standard
25120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25123 \begin_layout Standard
25129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25132 \begin_layout Standard
25137 \begin_layout Standard
25138 This is a footnote within a table.
25148 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25151 \begin_layout Standard
25158 <row topline="true">
25159 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25162 \begin_layout Standard
25168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25171 \begin_layout Standard
25177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25180 \begin_layout Standard
25186 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25189 \begin_layout Standard
25196 <row topline="true" bottomline="true">
25197 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25200 \begin_layout Standard
25206 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25209 \begin_layout Standard
25215 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25218 \begin_layout Standard
25224 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25227 \begin_layout Standard
25246 \begin_layout Standard
25247 \begin_inset VSpace bigskip
25250 The document-wide paragraph settings are ignored within minipages.
25251 That means that there will be no space between paragraphs in minipages
25252 although you set it to e.\InsetSpace \thinspace{}
25258 in the document settings.
25261 \begin_layout Standard
25262 Minipages can also be used to set a background color for text parts, see
25263 section\InsetSpace ~
25265 \begin_inset LatexCommand ref
25266 reference "sub:Color-for-Paragraphs"
25273 \begin_layout Standard
25274 \begin_inset Note Greyedout
25277 \begin_layout Standard
25282 You cannot have floats or margin notes inside minipages but minipages can
25283 be used inside tables, floats, and other boxes.
25291 \begin_layout Section
25293 \begin_inset LatexCommand label
25294 name "sec:Parboxes"
25299 \begin_inset LatexCommand index
25300 name "Boxes ! Parboxes"
25307 \begin_layout Standard
25308 Parboxes are very similar to minipages with the difference that they cannot
25310 The main difference to minipages is that minipages are in contrary to parboxes
25311 no real boxes but LaTeX-environments.
25314 \begin_layout Standard
25316 \begin_inset Box Frameless
25325 height_special "totalheight"
25328 \begin_layout Standard
25329 This a text within a parbox.
25330 This a text within a parbox.
25333 \begin_layout Standard
25334 This footnote won't appear:
25338 \begin_layout Standard
25339 This footnote is inside a parbox and will therefore not appear.
25352 \begin_layout Section
25353 Boxes for Words and Characters
25354 \begin_inset LatexCommand index
25355 name "Boxes ! for Characters"
25362 \begin_layout Subsection
25363 Prevent Hyphenation
25364 \begin_inset LatexCommand label
25365 name "sec:Prevent-Hyphenation"
25370 \begin_inset LatexCommand index
25371 name "Boxes ! to Prevent Hyphenation"
25378 \begin_layout Standard
25379 You can use a special kind of boxes to prevent words or text to be hyphenated.
25382 e is an example text:
25385 \begin_layout Standard
25386 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25392 \begin_layout Standard
25393 To prevent the hyphenation of the word
25394 \begin_inset Quotes eld
25398 \begin_inset Quotes erd
25404 \begin_layout Standard
25412 \begin_layout Standard
25413 in ERT before the word.
25414 Behind the word insert a closing brace
25415 \begin_inset Quotes eld
25423 \begin_inset Quotes erd
25430 \begin_layout Standard
25442 \begin_layout Standard
25443 This is the result:
25446 \begin_layout Standard
25447 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25453 \begin_layout Standard
25466 \begin_layout Standard
25476 \begin_layout Standard
25477 Of course the word now protrudes over the side margin.
25478 To avoid this, add via the menu
25480 Insert\SpecialChar \menuseparator
25481 Special\InsetSpace ~
25482 Formatting\SpecialChar \menuseparator
25490 ) a line break before the word:
25493 \begin_layout Standard
25494 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25502 \begin_layout Standard
25515 \begin_layout Standard
25525 \begin_layout Subsection
25527 \begin_inset LatexCommand label
25528 name "sub:Vertical-Alignment"
25533 \begin_inset LatexCommand index
25534 name "Boxes ! for Vertical Alignment"
25539 \begin_inset LatexCommand index
25540 name "Boxes ! Raiseboxes"
25547 \begin_layout Standard
25548 With the help of the command
25554 you can align words, characters or other boxes vertically to the surrounding
25562 is used with the following scheme:
25565 \begin_layout Standard
25570 raisebox{lift}[height][depth]{box content}
25573 \begin_layout Standard
25574 The lift can be a positive value to raise the box or a negative value to
25578 \begin_layout Standard
25579 To align for example the word
25580 \begin_inset Quotes eld
25584 \begin_inset Quotes erd
25587 so that the bottom of the
25588 \begin_inset Quotes eld
25592 \begin_inset Quotes erd
25596 \begin_inset Quotes eld
25600 \begin_inset Quotes erd
25603 is at the baseline, insert the command
25606 \begin_layout Standard
25616 \begin_layout Standard
25617 in ERT before the word.
25618 Behind the word insert a closing brace
25619 \begin_inset Quotes eld
25627 \begin_inset Quotes erd
25632 This is the result:
25635 \begin_layout Standard
25636 This is a text line with the word
25640 \begin_layout Standard
25652 \begin_inset Quotes eld
25656 \begin_inset Quotes erd
25663 \begin_layout Standard
25673 \begin_layout Standard
25674 \begin_inset VSpace bigskip
25677 When you raise or lower characters in a line, the line distance will be
25681 \begin_layout Standard
25682 This is a text line with the word
25686 \begin_layout Standard
25698 \begin_inset Quotes eld
25702 \begin_inset Quotes erd
25709 \begin_layout Standard
25718 This is a text line with the word
25722 \begin_layout Standard
25732 \begin_inset Quotes eld
25736 \begin_inset Quotes erd
25743 \begin_layout Standard
25753 \begin_layout Standard
25754 If you want to prevent this for a certain reason, set the box height to
25759 \begin_layout Standard
25769 \begin_layout Standard
25770 This is a text line with the word
25774 \begin_layout Standard
25786 \begin_inset Quotes eld
25790 \begin_inset Quotes erd
25797 \begin_layout Standard
25806 This is a text line with the word
25810 \begin_layout Standard
25814 raisebox{0.5cm}[0pt]{
25820 \begin_inset Quotes eld
25824 \begin_inset Quotes erd
25831 \begin_layout Standard
25841 \begin_layout Section
25843 \begin_inset LatexCommand label
25844 name "sec:Colored-Boxes"
25849 \begin_inset LatexCommand index
25850 name "Boxes ! Color"
25857 \begin_layout Subsection
25859 \begin_inset LatexCommand index
25860 name "Color ! for Text"
25867 \begin_layout Standard
25868 To color the background of text the text must be put into a so called colorbox.
25869 This requires that the LaTeX-package
25874 \begin_inset LatexCommand index
25875 name "LaTeX-packages ! color"
25879 is loaded in the document preamble with the command
25882 \begin_layout Standard
25887 @ifundef\SpecialChar \textcompwordmark{}
25894 \begin_layout Standard
25905 usepackage{color}}{}
25908 \begin_layout Standard
25913 will be loaded automatically by LyX when you color text
25917 \begin_layout Standard
25918 To avoid that it is loaded twice the command
25922 @ifundef\SpecialChar \textcompwordmark{}
25933 \begin_layout Standard
25934 \begin_inset VSpace medskip
25937 Colorboxes are created with the command
25944 This will be used with the following scheme:
25947 \begin_layout Standard
25952 colorbox{color}{box content}
25955 \begin_layout Standard
25956 The box content can also be a box and colorboxes can also be within other
25960 \begin_layout Standard
25961 The following colors are predefined:
26000 You can also define your own color as described in section\InsetSpace ~
26002 \begin_inset LatexCommand ref
26003 reference "sec:Colored-Tables"
26010 \begin_layout Standard
26011 To have e.\InsetSpace \thinspace{}
26013 a red background for a word, insert the command
26016 \begin_layout Standard
26024 \begin_layout Standard
26025 before the word in ERT.
26026 Behind the word insert a closing brace
26027 \begin_inset Quotes eld
26035 \begin_inset Quotes erd
26040 This is the result:
26043 \begin_layout Standard
26044 This is a line where the word
26048 \begin_layout Standard
26058 \begin_inset Quotes eld
26062 \begin_inset Quotes erd
26069 \begin_layout Standard
26076 has a red background.
26079 \begin_layout Standard
26080 \begin_inset VSpace bigskip
26083 If you would have the box frame in a different color, you can use the command
26090 with the following scheme:
26093 \begin_layout Standard
26098 fcolorbox{frame color}{box color}{box content}
26101 \begin_layout Standard
26115 The frame thickness and the space between the frame and the box content
26116 can be adjusted with the lengths
26128 , respectively, as described in section\InsetSpace ~
26130 \begin_inset LatexCommand ref
26131 reference "sec:Framed-Boxes"
26138 \begin_layout Standard
26139 For the following example the command
26142 \begin_layout Standard
26147 fcolorbox{cyan}{magenta}{
26150 \begin_layout Standard
26154 \begin_layout Standard
26155 Here is an example where the frame line thickness was set to 1\InsetSpace \thinspace{}
26162 \begin_layout Standard
26177 \begin_layout Standard
26181 fcolorbox{cyan}{magenta}{
26186 This is text within a colored, framed box.
26190 \begin_layout Standard
26200 \begin_layout Standard
26201 \begin_inset VSpace bigskip
26204 Of course you can also have colored text inside a colorbox:
26210 \begin_layout Standard
26214 fcolorbox{cyan}{magenta}{
26221 This is colored text within a colored, framed box.
26227 \begin_layout Standard
26238 \begin_layout Standard
26252 \begin_layout Standard
26255 \begin_inset VSpace medskip
26261 \begin_layout Standard
26262 \begin_inset Note Greyedout
26265 \begin_layout Standard
26270 Text in colorboxes cannot have line breaks.
26271 To color multiple text lines or paragraphs, use a box inside a colorbox
26272 as described in the following.
26280 \begin_layout Subsection
26281 Color for Paragraphs
26282 \begin_inset LatexCommand label
26283 name "sub:Color-for-Paragraphs"
26288 \begin_inset LatexCommand index
26289 name "Color ! for Paragraphs"
26296 \begin_layout Standard
26297 To set the background color for more than one text line, put the text into
26299 Before the minipage insert the
26308 \begin_layout Standard
26316 \begin_layout Standard
26318 Behind the minipage insert a closing brace
26319 \begin_inset Quotes eld
26327 \begin_inset Quotes erd
26333 \begin_layout Standard
26337 \begin_layout Standard
26341 colorbox{lightgrey}{
26347 \begin_inset Box Frameless
26356 height_special "totalheight"
26359 \begin_layout Standard
26360 This is text with background color.
26361 This is text with background color.
26364 \begin_layout Standard
26365 \begin_inset VSpace defskip
26368 The text can have footnotes
26372 \begin_layout Standard
26373 Another example footnote
26378 and can include tables and figures.
26381 \begin_layout Standard
26383 \begin_inset Tabular
26384 <lyxtabular version="3" rows="3" columns="3">
26386 <column alignment="center" valignment="top" leftline="true" width="0">
26387 <column alignment="center" valignment="top" leftline="true" width="0">
26388 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
26389 <row topline="true">
26390 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26393 \begin_layout Standard
26399 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26402 \begin_layout Standard
26408 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26411 \begin_layout Standard
26418 <row topline="true">
26419 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26422 \begin_layout Standard
26428 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26431 \begin_layout Standard
26433 \begin_inset Quotes erd
26441 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26444 \begin_layout Standard
26451 <row topline="true" bottomline="true">
26452 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26455 \begin_layout Standard
26461 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26464 \begin_layout Standard
26470 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26473 \begin_layout Standard
26493 \begin_layout Standard
26503 \begin_layout Section
26504 URLs (Uniform Resource Locators)
26505 \begin_inset LatexCommand index
26513 \begin_layout Standard
26514 Links to web pages or email addresses can be inserted via the menu
26516 Insert\SpecialChar \menuseparator
26520 The appearing URL dialog has two fields; the
26528 field for the URL description, which will be typeset as plain text immediately
26532 \begin_layout Standard
26533 Here is an example URL:
26534 \begin_inset LatexCommand url
26535 name "LyX's homepage"
26536 target "http://www.lyx.org"
26543 \begin_layout Standard
26546 Generate\InsetSpace ~
26549 in the URL dialog has only an affect when you export your document to the
26551 \begin_inset Quotes eld
26559 \begin_inset Quotes erd
26565 \begin_layout Standard
26566 You cannot change the style of the link text.
26571 field will have the default text style of the document while the text of
26576 field will have the style
26577 \begin_inset Quotes eld
26585 \begin_inset Quotes erd
26591 \begin_layout Standard
26592 When you use the LaTeX-package
26597 \begin_inset LatexCommand index
26598 name "LaTeX-packages ! hyperref"
26602 to link cross-references in the output, URLs will automatically become
26603 clickable hyperlinks in DVI and PDF-output.
26606 \begin_layout Standard
26607 \begin_inset Note Greyedout
26610 \begin_layout Standard
26615 When you use the following characters: "%", "#", "^", you have to write
26616 them with a preceding backslash, e.\InsetSpace \thinspace{}
26619 \begin_inset Quotes eld
26625 \begin_inset Quotes erd
26629 URLs must not end with a backslash.
26637 \begin_layout Standard
26638 \begin_inset VSpace bigskip
26641 To create real hyperlinks without the force to write the link location to
26642 the text, you can use the command
26645 \begin_layout Standard
26650 href{link location}{link text}
26653 \begin_layout Standard
26655 To get for example a link to LyX's web page, write the command
26658 \begin_layout Standard
26663 href{http://www.lyx.org}{
26666 \begin_layout Standard
26668 Insert after the command the link text
26669 \begin_inset Quotes eld
26673 \begin_inset Quotes erd
26676 as normal text followed by a closing brace
26677 \begin_inset Quotes eld
26685 \begin_inset Quotes erd
26689 This is the result:
26693 \begin_layout Standard
26697 href{http://www.lyx.org}{
26706 \begin_layout Standard
26716 \begin_layout Standard
26717 To link to email addresses, add the prefix
26718 \begin_inset Quotes eld
26726 \begin_inset Quotes erd
26729 to the link location:
26735 \begin_layout Standard
26739 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's documentation}{
26744 lyx-docs mailing list
26748 \begin_layout Standard
26758 \begin_layout Standard
26765 instead of LyX's URL box has the advantage that you can specify the text
26766 style of the link text like for all other text parts.
26767 You can therefore set hyphenation points and forced linebreaks to have
26768 long link text broken at the page margin.
26769 You are furthermore able to change the text style for all URLs in your
26770 document with an option in
26774 's load command and the restrictions mentioned above doesn't apply for
26783 \begin_layout Chapter
26785 \begin_inset LatexCommand index
26786 name "External Stuff"
26793 \begin_layout Standard
26796 Insert\SpecialChar \menuseparator
26799 you can insert external material to your document.
26803 \begin_layout Description
26805 Document Another LyX document; its content is directly inserted to your
26809 \begin_layout Description
26811 Text A text document; every of its text lines is inserted to your document
26815 \begin_layout Description
26819 Lines A text document; its text lines are inserted as they
26821 Empty text lines creates a new paragraph in your document.
26824 \begin_layout Description
26825 External\InsetSpace ~
26826 Material Files in various formats.
26829 \begin_layout Description
26831 Document LyX or LaTeX-documents.
26834 \begin_layout Section
26836 \begin_inset LatexCommand index
26837 name "External Stuff ! External Material"
26844 \begin_layout Standard
26845 The external material feature allows you to insert files to your document
26846 without converting them previously to a format that can be read by the
26847 document output format because LyX takes care of needed conversions.
26848 This is similar to images that can be inserted in various image formats
26852 \begin_layout Standard
26853 External material can be inserted via the
26857 dialog that is accessible with the menu
26859 Insert\SpecialChar \menuseparator
26860 File\SpecialChar \menuseparator
26861 External\InsetSpace ~
26865 Currently the following file types (
26872 \begin_layout Description
26873 ChessDiagram This template supports chess position diagrams made with the
26878 \begin_layout Standard
26882 href{http://en.wikipedia.org/wiki/XBoard}{
26895 \begin_layout Standard
26905 \begin_layout Description
26906 Date This inserts the date in the form
26911 This is a date inserted as external material:
26912 \begin_inset External
26920 The date is not shown within LyX, only in the output.
26921 There are two other methods of inserting a date, via menu
26923 Insert\SpecialChar \menuseparator
26926 and with the LaTeX command
26933 The different methods are compared in Table\InsetSpace ~
26935 \begin_inset LatexCommand ref
26936 reference "tab:Comparison-of-the"
26943 \begin_layout Description
26944 LilyPond This template is used for music notation typeset with the program
26948 \begin_layout Standard
26961 \begin_layout Standard
26965 href{http://en.wikipedia.org/wiki/LilyPond}{
26978 \begin_layout Standard
26986 \begin_inset Note Note
26989 \begin_layout Standard
26996 breaks the line while the remaining text in the line is stretched to the
27005 \begin_layout Description
27006 RasterImage This can be used for bitmap images.
27007 Nearly all popular image formats are supported.
27008 The image can be treated in the
27012 dialog like the images that are usually included via the
27016 dialog as described in section\InsetSpace ~
27018 \begin_inset LatexCommand ref
27019 reference "sec:Graphics-Dialog"
27024 The difference is that only raster images are allowed, that means that
27025 PDF and EPS-images are not supported.
27028 \begin_layout Description
27029 XFig This template supports images created with the program
27033 \begin_layout Standard
27037 href{http://en.wikipedia.org/wiki/Xfig}{
27050 \begin_layout Standard
27060 \begin_layout Standard
27061 \begin_inset Float table
27067 \begin_layout Standard
27068 \begin_inset Caption
27070 \begin_layout Standard
27071 \begin_inset LatexCommand label
27072 name "tab:Comparison-of-the"
27076 Comparison of the date input methods.
27084 \begin_layout Standard
27086 \begin_inset Tabular
27087 <lyxtabular version="3" rows="4" columns="4">
27089 <column alignment="center" valignment="top" leftline="true" width="0">
27090 <column alignment="center" valignment="top" leftline="true" width="0">
27091 <column alignment="center" valignment="top" leftline="true" width="0">
27092 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27093 <row topline="true">
27094 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27097 \begin_layout Standard
27103 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27106 \begin_layout Standard
27109 External Material\SpecialChar \menuseparator
27115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27118 \begin_layout Standard
27121 Insert\SpecialChar \menuseparator
27127 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27130 \begin_layout Standard
27141 <row topline="true">
27142 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27145 \begin_layout Standard
27151 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27154 \begin_layout Standard
27160 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27163 \begin_layout Standard
27169 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27172 \begin_layout Standard
27179 <row topline="true">
27180 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27183 \begin_layout Standard
27189 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27192 \begin_layout Standard
27198 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27201 \begin_layout Standard
27207 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27210 \begin_layout Standard
27217 <row topline="true" bottomline="true">
27218 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27221 \begin_layout Standard
27227 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27230 \begin_layout Standard
27236 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27239 \begin_layout Standard
27245 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27248 \begin_layout Standard
27267 \begin_layout Standard
27268 When you use the option
27280 dialog, only the path to the inserted file is shown in the output.
27283 material is displayed in LyX either as box like this:
27284 \begin_inset Graphics
27285 filename clipart/ExternalMaterialQt4.png
27290 or as image, depending on the setting in the
27302 \begin_layout Standard
27309 manual explains how you can define your own templates.
27312 \begin_layout Section
27314 \begin_inset LatexCommand index
27315 name "External Stuff ! Child Documents"
27320 \begin_inset LatexCommand index
27321 name "Files ! Include"
27328 \begin_layout Standard
27329 Child documents are used when you have a long document consisting of several
27330 larger parts or sections.
27331 For maintenance it is often useful and sometimes even required to split
27332 the document in several files that can be revised separately.
27333 The different documents are then the so called child documents and a master
27334 document connects them to print the full document or parts of it.
27337 \begin_layout Standard
27338 Included documents are displayed in LyX as a box like this:
27339 \begin_inset Graphics
27340 filename clipart/ChildDocumentQt4.png
27345 To include child documents to a master document use the menu
27347 Insert\SpecialChar \menuseparator
27348 File\SpecialChar \menuseparator
27353 A dialog pops up where you can choose between three include methods:
27356 \begin_layout Description
27357 Include You can include LyX and LaTeX-documents.
27366 dialog, the included documents will be opened in LyX in a new file tab
27367 so that you can modify it.
27372 \begin_layout Standard
27373 Here is a child document inserted using
27378 \begin_inset Include \include{DummyDocument1.lyx}
27386 \begin_layout Standard
27387 The section numbering includes the sections of the included files in the
27388 order they are inserted in the master document.
27389 The included example document has for example a subsection that is numbered
27390 as subsection of this section.
27391 Labels of included documents can be referenced: Subsection\InsetSpace ~
27393 \begin_inset LatexCommand ref
27394 reference "sub:External-Subsection-1"
27401 \begin_layout Standard
27402 The preamble of the child document is ignored, only the preamble of the
27403 master document is used.
27404 Included documents are inserted starting on a new page and end with a pagebreak.
27407 \begin_layout Standard
27408 With the LaTeX-command
27414 you can specify which included child documents are processed when the output
27416 This is useful when you are perhaps only working on a certain chapter of
27417 your large document as this saves compiling time.
27424 is inserted to the master document preamble.
27425 It takes a comma-separated list of the filenames as argument, e.g.
27428 \begin_layout Standard
27433 includeonly{chapter1,chapter5}
27436 \begin_layout Standard
27437 will only process the included files named
27438 \begin_inset Quotes eld
27442 \begin_inset Quotes erd
27446 \begin_inset Quotes eld
27450 \begin_inset Quotes erd
27454 \begin_inset Quotes eld
27458 \begin_inset Quotes erd
27464 \begin_layout Standard
27465 \begin_inset Note Greyedout
27468 \begin_layout Standard
27473 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
27474 w the document in case that the child document uses another document class
27475 than the master document as this will lead to unexpected outputs.
27483 \begin_layout Description
27484 Input This method is very similar to the Include method.
27485 The differences are:
27489 \begin_layout Itemize
27490 Input files don't start with a new page and don't end with a pagebreak.
27493 \begin_layout Itemize
27494 Input files can be previewed in LyX when
27496 Instant\InsetSpace ~
27499 is enabled in LyX's preferences under
27503 feel\SpecialChar \menuseparator
27509 \begin_layout Itemize
27520 \begin_layout Standard
27521 Here is a child document inserted using
27526 \begin_inset Include \input{DummyDocument2.lyx}
27534 \begin_layout Description
27535 Verbatim With this method every text file can be included.
27536 The file is shown in the output with its source code, no command used in
27537 the text is invoked.
27538 You can use the option
27540 Mark spaces in output
27542 that displays the character
27543 \begin_inset Quotes eld
27550 \begin_layout Standard
27560 \begin_inset Quotes erd
27563 for every space character in the source code.
27564 The difference to the method via the menu
27566 Insert\SpecialChar \menuseparator
27567 File\SpecialChar \menuseparator
27571 is that the document content is not shown in LyX.
27574 \begin_layout Standard
27575 Here is a child document inserted as Verbatim:
27576 \begin_inset Include \verbatiminput{DummyTextDocument.txt}
27582 \begin_inset VSpace bigskip
27585 Here is a child document inserted as Verbatim using the
27587 Mark spaces in output
27590 \begin_inset Include \verbatiminput*{DummyTextDocument.txt}
27598 \begin_layout Standard
27599 \begin_inset VSpace bigskip
27605 \begin_layout Standard
27606 \begin_inset Note Greyedout
27609 \begin_layout Standard
27614 As you can see in the examples above, the text of the documents included
27615 as verbatim is not broken at the end of the document lines.
27623 \begin_layout Standard
27624 \begin_inset Note Greyedout
27627 \begin_layout Standard
27632 Including the same document twice in a document using different methods
27633 could cause LaTeX-problems.
27641 \begin_layout Standard
27647 \begin_layout Chapter
27653 \begin_layout Standard
27666 \begin_layout Standard
27674 \begin_inset LatexCommand index
27680 \begin_inset LatexCommand label
27681 name "cha:Units-available-in"
27686 \begin_inset Note Note
27689 \begin_layout Standard
27692 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
27693 are displayed wrongly in PDF-bookmarks.
27694 For more information about this, have a look at
27695 \begin_inset LatexCommand cite
27708 \begin_layout Standard
27709 To understand the units described in this documentation, Table\InsetSpace ~
27711 \begin_inset LatexCommand ref
27712 reference "tab:Units"
27716 explains all units available in LyX.
27719 \begin_layout Standard
27720 \begin_inset Float table
27726 \begin_layout Standard
27727 \begin_inset Caption
27729 \begin_layout Standard
27730 \begin_inset LatexCommand label
27743 \begin_layout Standard
27744 \begin_inset VSpace medskip
27750 \begin_layout Standard
27752 \begin_inset Tabular
27753 <lyxtabular version="3" rows="20" columns="2">
27755 <column alignment="center" valignment="top" leftline="true" width="0">
27756 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27757 <row topline="true" bottomline="true">
27758 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27761 \begin_layout Standard
27767 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27770 \begin_layout Standard
27777 <row topline="true">
27778 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27781 \begin_layout Standard
27787 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27790 \begin_layout Standard
27797 <row topline="true">
27798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27801 \begin_layout Standard
27807 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27810 \begin_layout Standard
27817 <row topline="true">
27818 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27821 \begin_layout Standard
27827 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27830 \begin_layout Standard
27837 <row topline="true">
27838 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27841 \begin_layout Standard
27847 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27850 \begin_layout Standard
27851 point (72.27\InsetSpace \thinspace{}
27852 pt = 1\InsetSpace \thinspace{}
27859 <row topline="true">
27860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27863 \begin_layout Standard
27869 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27872 \begin_layout Standard
27873 pica (1\InsetSpace \thinspace{}
27874 pc = 12\InsetSpace \thinspace{}
27881 <row topline="true">
27882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27885 \begin_layout Standard
27891 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27894 \begin_layout Standard
27895 scaled point (65536\InsetSpace \thinspace{}
27896 sp = 1\InsetSpace \thinspace{}
27903 <row topline="true">
27904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27907 \begin_layout Standard
27913 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27916 \begin_layout Standard
27917 big point (72\InsetSpace \thinspace{}
27918 bp = 1\InsetSpace \thinspace{}
27925 <row topline="true">
27926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27929 \begin_layout Standard
27935 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27938 \begin_layout Standard
27939 didot (72\InsetSpace \thinspace{}
27941 \begin_inset Formula $\approx$
27944 37.6\InsetSpace \thinspace{}
27951 <row topline="true">
27952 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27955 \begin_layout Standard
27961 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27964 \begin_layout Standard
27965 cicero (1\InsetSpace \thinspace{}
27966 cc = 12\InsetSpace \thinspace{}
27973 <row topline="true">
27974 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27977 \begin_layout Standard
27983 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27986 \begin_layout Standard
27987 % of original image width
27993 <row topline="true">
27994 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27997 \begin_layout Standard
28003 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28006 \begin_layout Standard
28013 <row topline="true">
28014 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28017 \begin_layout Standard
28023 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28026 \begin_layout Standard
28033 <row topline="true">
28034 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28037 \begin_layout Standard
28043 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28046 \begin_layout Standard
28053 <row topline="true">
28054 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28057 \begin_layout Standard
28063 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28066 \begin_layout Standard
28073 <row topline="true">
28074 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28077 \begin_layout Standard
28083 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28086 \begin_layout Standard
28093 <row topline="true">
28094 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28097 \begin_layout Standard
28103 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28106 \begin_layout Standard
28113 <row topline="true">
28114 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28117 \begin_layout Standard
28123 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28126 \begin_layout Standard
28137 <row topline="true">
28138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28141 \begin_layout Standard
28147 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28150 \begin_layout Standard
28161 <row topline="true" bottomline="true">
28162 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28165 \begin_layout Standard
28171 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28174 \begin_layout Standard
28175 math unit (1\InsetSpace \thinspace{}
28176 mu = 1/18\InsetSpace \thinspace{}
28195 \begin_layout Chapter
28196 Output File Formats with Graphics
28197 \begin_inset LatexCommand label
28198 name "cha:Output-File-Formats"
28205 \begin_layout Section
28207 \begin_inset LatexCommand index
28208 name "File Formats ! DVI"
28213 \begin_inset LatexCommand index
28214 name "DVI|see{File Formats}"
28221 \begin_layout Standard
28222 This file type has the extension
28223 \begin_inset Quotes eld
28231 \begin_inset Quotes erd
28236 \begin_inset Quotes eld
28240 \begin_inset Quotes erd
28243 (DVI), because it is completely portable; you can move them from one machine
28244 to another without needing to do any sort of conversion.
28245 At the time when this file-format was developed, this was no matter of
28247 DVIs are used for quick previews and as pre-stage for other output formats,
28251 \begin_layout Standard
28252 \begin_inset Note Greyedout
28255 \begin_layout Standard
28260 DVI-files doesn't contain images, they will only be a linked.
28265 So don't forget this, if you move your
28269 file to another computer.
28270 This property can also slow down your computer when you view the DVI.
28271 Because the DVI-viewer has to convert the image in the background to make
28272 it visible when you scroll in the DVI.
28273 So we recommend to use PDF for files with many images.
28276 \begin_layout Standard
28277 You can export your document to DVI by using the menu
28279 File\SpecialChar \menuseparator
28280 Export\SpecialChar \menuseparator
28284 You can view your document as DVI via the
28288 menu or by using the toolbar button
28289 \begin_inset Graphics
28290 filename ../images/buffer-view_dvi.xpm
28298 \begin_layout Section
28300 \begin_inset LatexCommand label
28301 name "sec:PostScript"
28306 \begin_inset LatexCommand index
28307 name "File Formats ! PostScript"
28312 \begin_inset LatexCommand index
28313 name "PostScript|see{File Formats}"
28320 \begin_layout Standard
28321 This file type has the extension
28322 \begin_inset Quotes eld
28330 \begin_inset Quotes erd
28334 PostScript was developed by the company
28338 as printer language.
28339 The file contains therefore commands that the printer uses to print the
28341 PostScript can be seen as
28342 \begin_inset Quotes eld
28345 programming language
28346 \begin_inset Quotes erd
28349 ; you can calculate with it and draw diagrams and images
28353 \begin_layout Standard
28354 If you are interested to learn more about this, have a look at the LaTeX-package
28360 \begin_inset LatexCommand cite
28371 Due to this ability, the files are often bigger than PDFs.
28374 \begin_layout Standard
28375 PostScript can only contain images in the format
28376 \begin_inset Quotes eld
28379 Encapsulated PostScript
28380 \begin_inset Quotes erd
28383 (EPS, file extension
28384 \begin_inset Quotes eld
28392 \begin_inset Quotes erd
28396 As LyX allows you to use any known image format in your document, it has
28397 to convert images in the background to EPS.
28398 If you have e.g 50 images in your document, LyX has to do 50 conversions
28399 whenever you view or export your document.
28400 This will slow down your work flow with LyX drastically.
28401 So if you plan to use PostScript, you can insert your images directly as
28402 EPS to avoid this problem.
28405 \begin_layout Standard
28406 You can export your document to PostScript using the menu
28408 File\SpecialChar \menuseparator
28409 Export\SpecialChar \menuseparator
28413 You can view your document as PostScript via the
28417 menu or by using the toolbar button
28418 \begin_inset Graphics
28419 filename ../images/buffer-view_ps.xpm
28427 \begin_layout Section
28429 \begin_inset LatexCommand label
28435 \begin_inset LatexCommand index
28436 name "File Formats ! PDF"
28441 \begin_inset LatexCommand index
28449 \begin_layout Standard
28450 This file type has the extension
28451 \begin_inset Quotes eld
28459 \begin_inset Quotes erd
28464 \begin_inset Quotes eld
28467 Portable Document Format
28468 \begin_inset Quotes erd
28471 (PDF) is developed by
28475 as derivative from PostScript.
28476 It is more compressed and it uses much less commands than PostScript.
28478 \begin_inset Quotes eld
28482 \begin_inset Quotes erd
28485 implies, it can be processed at any computer system and the printed output
28486 looks exactly the same.
28489 \begin_layout Standard
28490 PDF can contain images in its own PDF format, in the format
28491 \begin_inset Quotes eld
28494 Joint Photographic Experts Group
28495 \begin_inset Quotes erd
28498 (JPG, file extension
28499 \begin_inset Quotes eld
28507 \begin_inset Quotes erd
28511 \begin_inset Quotes eld
28519 \begin_inset Quotes erd
28522 ), and in the format
28523 \begin_inset Quotes eld
28526 Portable Network Graphics
28527 \begin_inset Quotes erd
28530 (PNG, file extension
28531 \begin_inset Quotes eld
28539 \begin_inset Quotes erd
28543 You can although use any other image format, because LyX converts them
28544 in the background to one of these formats.
28545 But as described in the section about PostScript, the image conversion
28546 will slow down your work flow.
28547 So it is recommended to use images in one of the three mentioned formats.
28550 \begin_layout Standard
28551 You can export your document to PDF via the menu
28553 File\SpecialChar \menuseparator
28556 in three different ways:
28559 \begin_layout Description
28560 PDF This uses the program
28564 that creates a PDF from a PostScript-version of your file.
28565 The PostScript-version is produced by the program
28569 which uses a DVI-version as intermediate step.
28570 So this export variant consist of three conversions.
28573 \begin_layout Description
28575 (dvipdfm) This uses the program
28579 that converts your file in the background to DVI and in a second step to
28583 \begin_layout Description
28585 (pdflatex) This uses the program
28589 that converts your file directly to PDF.
28592 \begin_layout Standard
28593 It is recommended to use
28602 supports all features of actual PDF-versions, is quick and works stable
28608 is not under development and therefore a bit outdated.
28611 \begin_layout Standard
28612 You can view your document as PDF via the
28616 menu or by using the toolbar button
28617 \begin_inset Graphics
28618 filename ../images/buffer-view_pdf2.xpm
28635 \begin_layout Chapter
28636 Explanation of Equation\InsetSpace ~
28638 \begin_inset LatexCommand eqref
28644 \begin_inset LatexCommand label
28645 name "cha:Explanation-of-Equation"
28652 \begin_layout Standard
28658 \begin_inset Formula $W_{\mathrm{tot\, n}}$
28661 can be calculated to
28664 \begin_layout Standard
28665 \begin_inset Formula \begin{equation}
28666 W_{\mathrm{tot}\, n}=n·(W_{g\, n}+2·\backslash\mbox{tabcolsep})+(n+1)·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}\end{equation}
28673 \begin_layout Standard
28675 \begin_inset Formula $W_{g\, n}$
28678 is the given width of all cells.
28685 is the LaTeX-length between the cell text and the cell border, its default
28686 value is 6\InsetSpace \thinspace{}
28694 is the thickness of the cell border line, the default is 0.4\InsetSpace \thinspace{}
28698 \begin_layout Standard
28699 Following equation\InsetSpace ~
28701 \begin_inset LatexCommand eqref
28702 reference "eq:Wtot_n"
28706 , the total width of a multicolumn
28707 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
28713 \begin_layout Standard
28714 \begin_inset Formula \begin{equation}
28715 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2·\backslash\mbox{tabcolsep}+2·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
28722 \begin_layout Standard
28723 By setting equation\InsetSpace ~
28725 \begin_inset LatexCommand eqref
28726 reference "eq:Wtot_n"
28731 \begin_inset LatexCommand eqref
28732 reference "eq:Wtot_mult"
28736 equal we can calculate the needed given width
28737 \begin_inset Formula $W_{g\, n}$
28744 columns are spanned, so that each column has a total width of
28745 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
28751 \begin_layout Standard
28752 \begin_inset Formula \begin{equation}
28753 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)·(2·\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
28760 \begin_layout Bibliography
28761 \begin_inset LatexCommand bibitem
28762 key "latexcompanion"
28766 Frank Mittelbach and Michel Goossens:
28768 The LaTeX Companion Second Edition.
28771 Addison-Wesley, 2004
28774 \begin_layout Bibliography
28775 \begin_inset LatexCommand bibitem
28780 Helmut Kopka and Patrick W.
28783 A Guide to LaTeX Fourth Edition.
28786 Addison-Wesley, 2003
28789 \begin_layout Bibliography
28790 \begin_inset LatexCommand bibitem
28797 LaTeX: A Document Preparation System.
28800 Addison-Wesley, second edition, 1994
28803 \begin_layout Bibliography
28804 \begin_inset LatexCommand bibitem
28813 \begin_layout Standard
28817 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf}
28827 \begin_layout Standard
28834 of the LaTeX-package
28839 \begin_inset LatexCommand index
28840 name "LaTeX-packages ! booktabs"
28847 \begin_layout Bibliography
28848 \begin_inset LatexCommand bibitem
28857 \begin_layout Standard
28861 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf}{
28870 \begin_layout Standard
28877 of the LaTeX-package
28882 \begin_inset LatexCommand index
28883 name "LaTeX-packages ! caption"
28890 \begin_layout Bibliography
28891 \begin_inset LatexCommand bibitem
28900 \begin_layout Standard
28904 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/anleitung.pdf}
28914 \begin_layout Standard
28921 of the LaTeX-package
28926 \begin_layout Bibliography
28927 \begin_inset LatexCommand bibitem
28936 \begin_layout Standard
28940 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf}
28950 \begin_layout Standard
28957 of the LaTeX-package
28959 endf\SpecialChar \textcompwordmark{}
28963 \begin_inset LatexCommand index
28964 name "LaTeX-packages ! endfloat"
28971 \begin_layout Bibliography
28972 \begin_inset LatexCommand bibitem
28981 \begin_layout Standard
28985 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/floatflt/floatflt.pdf}
28995 \begin_layout Standard
29002 of the LaTeX-package
29004 floatf\SpecialChar \textcompwordmark{}
29008 \begin_inset LatexCommand index
29009 name "LaTeX-packages ! floatflt"
29016 \begin_layout Bibliography
29017 \begin_inset LatexCommand bibitem
29026 \begin_layout Standard
29030 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf}
29040 \begin_layout Standard
29047 of the LaTeX-package
29052 \begin_inset LatexCommand index
29053 name "LaTeX-packages ! footmisc"
29060 \begin_layout Bibliography
29061 \begin_inset LatexCommand bibitem
29070 \begin_layout Standard
29074 href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf}{
29083 \begin_layout Standard
29090 of the LaTeX-package
29095 \begin_inset LatexCommand index
29096 name "LaTeX-packages ! hyperref"
29103 \begin_layout Bibliography
29104 \begin_inset LatexCommand bibitem
29113 \begin_layout Standard
29117 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf}
29127 \begin_layout Standard
29134 of the LaTeX-package
29139 \begin_inset LatexCommand index
29140 name "LaTeX-packages ! hyperref"
29147 \begin_layout Bibliography
29148 \begin_inset LatexCommand bibitem
29157 \begin_layout Standard
29161 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.p
29171 \begin_layout Standard
29178 of the LaTeX-package
29183 \begin_inset LatexCommand index
29184 name "LaTeX-packages ! koma-script"
29191 \begin_layout Bibliography
29192 \begin_inset LatexCommand bibitem
29193 key "koma-script-de"
29201 \begin_layout Standard
29205 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguide.p
29215 \begin_layout Standard
29222 of the LaTeX-package
29227 \begin_inset LatexCommand index
29228 name "LaTeX-packages ! koma-script"
29235 \begin_layout Bibliography
29236 \begin_inset LatexCommand bibitem
29245 \begin_layout Standard
29249 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.
29259 \begin_layout Standard
29266 of the LaTeX-package
29271 \begin_inset LatexCommand index
29272 name "LaTeX-packages ! marginnote"
29279 \begin_layout Bibliography
29280 \begin_inset LatexCommand bibitem
29289 \begin_layout Standard
29293 href{http://tug.org/PSTricks/main.cgi/}{
29302 \begin_layout Standard
29309 of the LaTeX-package
29314 \begin_inset LatexCommand index
29315 name "LaTeX-packages ! PSTricks"
29322 \begin_layout Bibliography
29323 \begin_inset LatexCommand bibitem
29332 \begin_layout Standard
29336 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf}{
29345 \begin_layout Standard
29352 of the LaTeX-package
29357 \begin_inset LatexCommand index
29358 name "LaTeX-packages ! sidecap"
29365 \begin_layout Bibliography
29366 \begin_inset LatexCommand bibitem
29375 \begin_layout Standard
29379 href{http://wiki.lyx.org/LyX/NewInLyX15}{
29388 \begin_layout Standard
29395 about new LyX-features planned for the release
29402 \begin_layout Standard
29403 \begin_inset LatexCommand printindex
29410 \begin_layout Standard
29411 \begin_inset FloatList figure
29418 \begin_layout Standard
29419 \begin_inset FloatList table