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 an disable its upper line.
4662 \begin_layout Enumerate
4663 Insert a caption via the menu
4665 Insert\SpecialChar \menuseparator
4668 into the first table cell.
4670 You can also add a short title for the caption.
4673 \begin_layout Enumerate
4675 \begin_inset Quotes eld
4687 \begin_inset Quotes erd
4690 as ERT behind the caption.
4693 \begin_layout Standard
4694 A short title that will appear in the LOT instead of the full title.
4703 behind the caption omits the vertical lines between the following cells
4705 The first table row is now only a dummy row for the caption, the actual
4706 table starts with the second row.
4709 \begin_layout Standard
4710 Here is a short longtable to see how it works:
4713 \begin_layout Standard
4714 \begin_inset Tabular
4715 <lyxtabular version="3" rows="6" columns="5">
4716 <features islongtable="true">
4717 <column alignment="center" valignment="top" leftline="true" width="0">
4718 <column alignment="center" valignment="top" leftline="true" width="0">
4719 <column alignment="center" valignment="top" leftline="true" width="0">
4720 <column alignment="center" valignment="top" leftline="true" width="0">
4721 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
4723 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4726 \begin_layout Standard
4727 \begin_inset Caption
4729 \begin_layout Standard
4730 Longtable with caption
4734 \begin_layout Standard
4749 \begin_layout Standard
4765 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4768 \begin_layout Standard
4774 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4777 \begin_layout Standard
4783 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4786 \begin_layout Standard
4792 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4795 \begin_layout Standard
4802 <row topline="true">
4803 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4806 \begin_layout Standard
4812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4815 \begin_layout Standard
4821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4824 \begin_layout Standard
4830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4833 \begin_layout Standard
4839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4842 \begin_layout Standard
4849 <row topline="true">
4850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4853 \begin_layout Standard
4859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4862 \begin_layout Standard
4868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4871 \begin_layout Standard
4877 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4880 \begin_layout Standard
4886 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4889 \begin_layout Standard
4896 <row topline="true">
4897 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4900 \begin_layout Standard
4906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4909 \begin_layout Standard
4915 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4918 \begin_layout Standard
4924 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4927 \begin_layout Standard
4933 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4936 \begin_layout Standard
4943 <row topline="true">
4944 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4947 \begin_layout Standard
4953 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4956 \begin_layout Standard
4962 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4965 \begin_layout Standard
4971 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4974 \begin_layout Standard
4980 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4983 \begin_layout Standard
4990 <row topline="true" bottomline="true">
4991 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4994 \begin_layout Standard
5000 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5003 \begin_layout Standard
5009 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5012 \begin_layout Standard
5018 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5021 \begin_layout Standard
5027 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5030 \begin_layout Standard
5044 \begin_layout Standard
5045 \begin_inset VSpace medskip
5049 \begin_inset Note Greyedout
5052 \begin_layout Standard
5057 The table number is increased for every longtable, also if you didn't set
5059 For this reason you could have the case that e.g.
5061 2.4 follows on Table\InsetSpace ~
5062 2.1 in the list of tables if there are two longtables
5064 To avoid this you can add the following command in ERT behind every longtable
5068 \begin_layout Standard
5073 addtocounter{table}{-1}
5081 \begin_layout Standard
5082 \begin_inset Note Greyedout
5085 \begin_layout Standard
5090 If you are using the LaTeX-package
5095 \begin_inset LatexCommand index
5096 name "LaTeX-packages ! hyperref"
5100 to link cross-references, the link to a longtable caption will always point
5101 to the beginning of the document.
5109 \begin_layout Subsubsection
5110 References to Longtables
5111 \begin_inset LatexCommand index
5112 name "Longtables ! References"
5119 \begin_layout Standard
5120 \begin_inset Tabular
5121 <lyxtabular version="3" rows="6" columns="5">
5122 <features islongtable="true">
5123 <column alignment="center" valignment="top" leftline="true" width="0">
5124 <column alignment="center" valignment="top" leftline="true" width="0">
5125 <column alignment="center" valignment="top" leftline="true" width="0">
5126 <column alignment="center" valignment="top" leftline="true" width="0">
5127 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5132 \begin_layout Standard
5133 \begin_inset Caption
5135 \begin_layout Standard
5136 Referenced longtable
5137 \begin_inset LatexCommand label
5138 name "tab:RefExample"
5151 \begin_layout Standard
5167 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5170 \begin_layout Standard
5176 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5179 \begin_layout Standard
5185 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5188 \begin_layout Standard
5194 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5197 \begin_layout Standard
5204 <row topline="true">
5205 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5208 \begin_layout Standard
5214 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5217 \begin_layout Standard
5223 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5226 \begin_layout Standard
5232 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5235 \begin_layout Standard
5241 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5244 \begin_layout Standard
5251 <row topline="true">
5252 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5255 \begin_layout Standard
5261 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5264 \begin_layout Standard
5270 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5273 \begin_layout Standard
5279 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5282 \begin_layout Standard
5288 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5291 \begin_layout Standard
5298 <row topline="true">
5299 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5302 \begin_layout Standard
5308 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5311 \begin_layout Standard
5317 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5320 \begin_layout Standard
5326 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5329 \begin_layout Standard
5335 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5338 \begin_layout Standard
5345 <row topline="true">
5346 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5349 \begin_layout Standard
5355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5358 \begin_layout Standard
5364 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5367 \begin_layout Standard
5373 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5376 \begin_layout Standard
5382 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5385 \begin_layout Standard
5392 <row topline="true" bottomline="true">
5393 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5396 \begin_layout Standard
5402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5405 \begin_layout Standard
5411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5414 \begin_layout Standard
5420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5423 \begin_layout Standard
5429 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5432 \begin_layout Standard
5446 \begin_layout Standard
5447 To reference a longtable, insert a label into the caption.
5448 Note that you have to add the label prefix
5449 \begin_inset Quotes eld
5457 \begin_inset Quotes eld
5460 manually in the label field.
5463 \begin_layout Standard
5464 This is a reference to Table\InsetSpace ~
5466 \begin_inset LatexCommand ref
5467 reference "tab:RefExample"
5474 \begin_layout Standard
5475 The caption layout can be set together with all other caption of your document
5476 using the LaTeX-package
5481 \begin_inset LatexCommand index
5482 name "LaTeX-packages ! caption"
5486 , see section\InsetSpace ~
5488 \begin_inset LatexCommand ref
5489 reference "sec:Caption-Formatting"
5496 \begin_layout Subsubsection
5498 \begin_inset LatexCommand index
5499 name "Longtables ! Caption Width"
5506 \begin_layout Standard
5507 The maximal width of of caption lines is defined by the length
5514 Its default value is 4\InsetSpace \thinspace{}
5516 To change it add the following command to your document preamble or as
5517 ERT into your document before the longtable that should be affected
5520 \begin_layout Standard
5530 \begin_layout Standard
5531 where the width could have one of the units listed in appendix\InsetSpace ~
5533 \begin_inset LatexCommand ref
5534 reference "cha:Units-available-in"
5541 \begin_layout Standard
5542 The following tables show the difference:
5545 \begin_layout Standard
5546 \begin_inset Tabular
5547 <lyxtabular version="3" rows="6" columns="5">
5548 <features islongtable="true">
5549 <column alignment="center" valignment="top" leftline="true" width="0">
5550 <column alignment="center" valignment="top" leftline="true" width="0">
5551 <column alignment="center" valignment="top" leftline="true" width="0">
5552 <column alignment="center" valignment="top" leftline="true" width="0">
5553 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5555 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5558 \begin_layout Standard
5559 \begin_inset Caption
5561 \begin_layout Standard
5562 long full title with default width long full title with default width long
5563 full title with default width
5567 \begin_layout Standard
5568 caption with default width
5582 \begin_layout Standard
5598 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5601 \begin_layout Standard
5607 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5610 \begin_layout Standard
5616 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5619 \begin_layout Standard
5625 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5628 \begin_layout Standard
5635 <row topline="true">
5636 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5639 \begin_layout Standard
5645 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5648 \begin_layout Standard
5654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5657 \begin_layout Standard
5663 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5666 \begin_layout Standard
5672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5675 \begin_layout Standard
5682 <row topline="true">
5683 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5686 \begin_layout Standard
5692 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5695 \begin_layout Standard
5701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5704 \begin_layout Standard
5710 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5713 \begin_layout Standard
5719 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5722 \begin_layout Standard
5729 <row topline="true">
5730 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5733 \begin_layout Standard
5739 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5742 \begin_layout Standard
5748 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5751 \begin_layout Standard
5757 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5760 \begin_layout Standard
5766 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5769 \begin_layout Standard
5776 <row topline="true">
5777 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5780 \begin_layout Standard
5786 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5789 \begin_layout Standard
5795 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5798 \begin_layout Standard
5804 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5807 \begin_layout Standard
5813 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5816 \begin_layout Standard
5823 <row topline="true" bottomline="true">
5824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5827 \begin_layout Standard
5833 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5836 \begin_layout Standard
5842 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5845 \begin_layout Standard
5851 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5854 \begin_layout Standard
5860 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5863 \begin_layout Standard
5877 \begin_layout Standard
5881 \begin_layout Standard
5893 \begin_inset Tabular
5894 <lyxtabular version="3" rows="6" columns="5">
5895 <features islongtable="true">
5896 <column alignment="center" valignment="top" leftline="true" width="0">
5897 <column alignment="center" valignment="top" leftline="true" width="0">
5898 <column alignment="center" valignment="top" leftline="true" width="0">
5899 <column alignment="center" valignment="top" leftline="true" width="0">
5900 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5905 \begin_layout Standard
5906 \begin_inset Caption
5908 \begin_layout Standard
5909 long full title with width set to 5\InsetSpace \thinspace{}
5910 cm long full title with width set to
5911 5\InsetSpace \thinspace{}
5912 cm long full title with width set to 5\InsetSpace \thinspace{}
5917 \begin_layout Standard
5918 caption with width\InsetSpace \thinspace{}
5919 =\InsetSpace \thinspace{}
5920 5\InsetSpace \thinspace{}
5935 \begin_layout Standard
5951 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5954 \begin_layout Standard
5960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5963 \begin_layout Standard
5969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5972 \begin_layout Standard
5978 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5981 \begin_layout Standard
5988 <row topline="true">
5989 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5992 \begin_layout Standard
5998 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6001 \begin_layout Standard
6007 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6010 \begin_layout Standard
6016 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6019 \begin_layout Standard
6025 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6028 \begin_layout Standard
6035 <row topline="true">
6036 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6039 \begin_layout Standard
6045 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6048 \begin_layout Standard
6054 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6057 \begin_layout Standard
6063 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6066 \begin_layout Standard
6072 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6075 \begin_layout Standard
6082 <row topline="true">
6083 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6086 \begin_layout Standard
6092 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6095 \begin_layout Standard
6101 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6104 \begin_layout Standard
6110 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6113 \begin_layout Standard
6119 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6122 \begin_layout Standard
6129 <row topline="true">
6130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6133 \begin_layout Standard
6139 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6142 \begin_layout Standard
6148 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6151 \begin_layout Standard
6157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6160 \begin_layout Standard
6166 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6169 \begin_layout Standard
6176 <row topline="true" bottomline="true">
6177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6180 \begin_layout Standard
6186 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6189 \begin_layout Standard
6195 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6198 \begin_layout Standard
6204 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6207 \begin_layout Standard
6213 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6216 \begin_layout Standard
6231 \begin_layout Standard
6245 \begin_layout Standard
6249 \begin_layout Subsubsection
6250 Different Captions for Table Pages
6251 \begin_inset LatexCommand index
6252 name "Longtables ! Different Captions for Pages"
6259 \begin_layout Standard
6260 When the other captions should differ from the one of the first table page,
6261 insert a caption with a non-empty short title in a dummy caption row marked
6263 The caption used for the other table pages is inserted as caption without
6264 a short title in a dummy caption row that is marked as main header.
6265 When this caption shouldn't include the table number, use the command
6268 \begin_layout Standard
6273 caption*{caption text}
6276 \begin_layout Standard
6277 instead of LyX's caption box.
6278 The label to reference the table is inserted into the caption of the first
6282 \begin_inset LatexCommand ref
6283 reference "tab:DiffCaptions"
6287 is an example for a longtable with different heading where the second caption
6288 doesn't include the table number.
6291 \begin_layout Standard
6293 \begin_inset Tabular
6294 <lyxtabular version="3" rows="60" columns="3">
6295 <features islongtable="true">
6296 <column alignment="left" valignment="top" leftline="true" width="0cm">
6297 <column alignment="left" valignment="top" rightline="true" width="0pt">
6298 <column alignment="right" valignment="top" rightline="true" width="0pt">
6299 <row endfirsthead="true">
6300 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6303 \begin_layout Standard
6304 \begin_inset Caption
6306 \begin_layout Standard
6308 \begin_inset LatexCommand label
6309 name "tab:DiffCaptions"
6317 \begin_layout Standard
6332 \begin_layout Standard
6348 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6351 \begin_layout Standard
6357 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6360 \begin_layout Standard
6367 <row topline="true" bottomline="true" endfirsthead="true">
6368 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6371 \begin_layout Standard
6374 Example Phone List (ignore the names)
6379 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6382 \begin_layout Standard
6388 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6391 \begin_layout Standard
6398 <row topline="true" bottomline="true" endfirsthead="true">
6399 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6402 \begin_layout Standard
6410 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6413 \begin_layout Standard
6419 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6422 \begin_layout Standard
6431 <row bottomline="true" endhead="true">
6432 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6435 \begin_layout Standard
6439 \begin_layout Standard
6443 caption*{Continued Example Phone List}
6457 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6460 \begin_layout Standard
6466 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6469 \begin_layout Standard
6476 <row topline="true" bottomline="true" endhead="true">
6477 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6480 \begin_layout Standard
6488 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6491 \begin_layout Standard
6497 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6500 \begin_layout Standard
6507 <row topline="true" bottomline="true" endhead="true">
6508 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6511 \begin_layout Standard
6519 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6522 \begin_layout Standard
6528 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6531 \begin_layout Standard
6540 <row topline="true" bottomline="true" endfoot="true">
6541 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
6544 \begin_layout Standard
6545 continued on next page
6550 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6553 \begin_layout Standard
6559 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6562 \begin_layout Standard
6570 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6573 \begin_layout Standard
6581 <cell alignment="center" valignment="top" topline="true" usebox="none">
6584 \begin_layout Standard
6590 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6593 \begin_layout Standard
6601 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6604 \begin_layout Standard
6612 <cell alignment="center" valignment="top" topline="true" usebox="none">
6615 \begin_layout Standard
6621 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6624 \begin_layout Standard
6632 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6635 \begin_layout Standard
6643 <cell alignment="center" valignment="top" topline="true" usebox="none">
6646 \begin_layout Standard
6652 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6655 \begin_layout Standard
6663 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6666 \begin_layout Standard
6674 <cell alignment="center" valignment="top" topline="true" usebox="none">
6677 \begin_layout Standard
6683 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6686 \begin_layout Standard
6694 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6697 \begin_layout Standard
6705 <cell alignment="center" valignment="top" topline="true" usebox="none">
6708 \begin_layout Standard
6714 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6717 \begin_layout Standard
6725 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6728 \begin_layout Standard
6736 <cell alignment="center" valignment="top" topline="true" usebox="none">
6739 \begin_layout Standard
6745 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6748 \begin_layout Standard
6756 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6759 \begin_layout Standard
6767 <cell alignment="center" valignment="top" topline="true" usebox="none">
6770 \begin_layout Standard
6776 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6779 \begin_layout Standard
6787 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6790 \begin_layout Standard
6798 <cell alignment="center" valignment="top" topline="true" usebox="none">
6801 \begin_layout Standard
6807 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6810 \begin_layout Standard
6818 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6821 \begin_layout Standard
6829 <cell alignment="center" valignment="top" topline="true" usebox="none">
6832 \begin_layout Standard
6838 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6841 \begin_layout Standard
6849 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6852 \begin_layout Standard
6860 <cell alignment="center" valignment="top" topline="true" usebox="none">
6863 \begin_layout Standard
6869 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6872 \begin_layout Standard
6880 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6883 \begin_layout Standard
6891 <cell alignment="center" valignment="top" topline="true" usebox="none">
6894 \begin_layout Standard
6900 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6903 \begin_layout Standard
6911 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6914 \begin_layout Standard
6922 <cell alignment="center" valignment="top" topline="true" usebox="none">
6925 \begin_layout Standard
6931 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6934 \begin_layout Standard
6942 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6945 \begin_layout Standard
6953 <cell alignment="center" valignment="top" topline="true" usebox="none">
6956 \begin_layout Standard
6962 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6965 \begin_layout Standard
6973 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6976 \begin_layout Standard
6984 <cell alignment="center" valignment="top" topline="true" usebox="none">
6987 \begin_layout Standard
6993 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6996 \begin_layout Standard
7004 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7007 \begin_layout Standard
7016 \begin_layout Standard
7027 <cell alignment="center" valignment="top" topline="true" usebox="none">
7030 \begin_layout Standard
7036 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7039 \begin_layout Standard
7047 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7050 \begin_layout Standard
7058 <cell alignment="center" valignment="top" topline="true" usebox="none">
7061 \begin_layout Standard
7067 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7070 \begin_layout Standard
7078 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7081 \begin_layout Standard
7089 <cell alignment="center" valignment="top" topline="true" usebox="none">
7092 \begin_layout Standard
7098 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7101 \begin_layout Standard
7109 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7112 \begin_layout Standard
7120 <cell alignment="center" valignment="top" topline="true" usebox="none">
7123 \begin_layout Standard
7129 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7132 \begin_layout Standard
7140 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7143 \begin_layout Standard
7151 <cell alignment="center" valignment="top" topline="true" usebox="none">
7154 \begin_layout Standard
7160 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7163 \begin_layout Standard
7171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7174 \begin_layout Standard
7182 <cell alignment="center" valignment="top" topline="true" usebox="none">
7185 \begin_layout Standard
7191 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7194 \begin_layout Standard
7202 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7205 \begin_layout Standard
7213 <cell alignment="center" valignment="top" topline="true" usebox="none">
7216 \begin_layout Standard
7222 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7225 \begin_layout Standard
7233 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7236 \begin_layout Standard
7244 <cell alignment="center" valignment="top" topline="true" usebox="none">
7247 \begin_layout Standard
7253 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7256 \begin_layout Standard
7264 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7267 \begin_layout Standard
7275 <cell alignment="center" valignment="top" topline="true" usebox="none">
7278 \begin_layout Standard
7284 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7287 \begin_layout Standard
7295 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7298 \begin_layout Standard
7306 <cell alignment="center" valignment="top" topline="true" usebox="none">
7309 \begin_layout Standard
7315 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7318 \begin_layout Standard
7326 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7329 \begin_layout Standard
7337 <cell alignment="center" valignment="top" topline="true" usebox="none">
7340 \begin_layout Standard
7346 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7349 \begin_layout Standard
7357 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7360 \begin_layout Standard
7368 <cell alignment="center" valignment="top" topline="true" usebox="none">
7371 \begin_layout Standard
7377 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7380 \begin_layout Standard
7388 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7391 \begin_layout Standard
7399 <cell alignment="center" valignment="top" topline="true" usebox="none">
7402 \begin_layout Standard
7408 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7411 \begin_layout Standard
7419 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7422 \begin_layout Standard
7430 <cell alignment="center" valignment="top" topline="true" usebox="none">
7433 \begin_layout Standard
7439 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7442 \begin_layout Standard
7450 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7453 \begin_layout Standard
7461 <cell alignment="center" valignment="top" topline="true" usebox="none">
7464 \begin_layout Standard
7470 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7473 \begin_layout Standard
7481 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7484 \begin_layout Standard
7492 <cell alignment="center" valignment="top" topline="true" usebox="none">
7495 \begin_layout Standard
7501 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7504 \begin_layout Standard
7511 <row bottomline="true">
7512 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7515 \begin_layout Standard
7523 <cell alignment="center" valignment="top" topline="true" usebox="none">
7526 \begin_layout Standard
7532 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7535 \begin_layout Standard
7542 <row bottomline="true">
7543 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7546 \begin_layout Standard
7552 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
7555 \begin_layout Standard
7561 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7564 \begin_layout Standard
7572 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7575 \begin_layout Standard
7583 <cell alignment="center" valignment="top" topline="true" usebox="none">
7586 \begin_layout Standard
7592 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7595 \begin_layout Standard
7603 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7606 \begin_layout Standard
7614 <cell alignment="center" valignment="top" topline="true" usebox="none">
7617 \begin_layout Standard
7623 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7626 \begin_layout Standard
7634 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7637 \begin_layout Standard
7645 <cell alignment="center" valignment="top" topline="true" usebox="none">
7648 \begin_layout Standard
7654 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7657 \begin_layout Standard
7665 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7668 \begin_layout Standard
7676 <cell alignment="center" valignment="top" topline="true" usebox="none">
7679 \begin_layout Standard
7685 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7688 \begin_layout Standard
7696 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7699 \begin_layout Standard
7707 <cell alignment="center" valignment="top" topline="true" usebox="none">
7710 \begin_layout Standard
7716 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7719 \begin_layout Standard
7727 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7730 \begin_layout Standard
7738 <cell alignment="center" valignment="top" topline="true" usebox="none">
7741 \begin_layout Standard
7747 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7750 \begin_layout Standard
7758 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7761 \begin_layout Standard
7769 <cell alignment="center" valignment="top" topline="true" usebox="none">
7772 \begin_layout Standard
7778 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7781 \begin_layout Standard
7789 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7792 \begin_layout Standard
7800 <cell alignment="center" valignment="top" topline="true" usebox="none">
7803 \begin_layout Standard
7809 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7812 \begin_layout Standard
7820 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7823 \begin_layout Standard
7831 <cell alignment="center" valignment="top" topline="true" usebox="none">
7834 \begin_layout Standard
7840 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7843 \begin_layout Standard
7851 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7854 \begin_layout Standard
7862 <cell alignment="center" valignment="top" topline="true" usebox="none">
7865 \begin_layout Standard
7871 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7874 \begin_layout Standard
7882 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7885 \begin_layout Standard
7893 <cell alignment="center" valignment="top" topline="true" usebox="none">
7896 \begin_layout Standard
7902 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7905 \begin_layout Standard
7913 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7916 \begin_layout Standard
7924 <cell alignment="center" valignment="top" topline="true" usebox="none">
7927 \begin_layout Standard
7933 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7936 \begin_layout Standard
7944 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7947 \begin_layout Standard
7955 <cell alignment="center" valignment="top" topline="true" usebox="none">
7958 \begin_layout Standard
7964 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7967 \begin_layout Standard
7975 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7978 \begin_layout Standard
7986 <cell alignment="center" valignment="top" topline="true" usebox="none">
7989 \begin_layout Standard
7995 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7998 \begin_layout Standard
8006 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8009 \begin_layout Standard
8017 <cell alignment="center" valignment="top" topline="true" usebox="none">
8020 \begin_layout Standard
8026 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8029 \begin_layout Standard
8037 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8040 \begin_layout Standard
8048 <cell alignment="center" valignment="top" topline="true" usebox="none">
8051 \begin_layout Standard
8057 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8060 \begin_layout Standard
8068 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8071 \begin_layout Standard
8079 <cell alignment="center" valignment="top" topline="true" usebox="none">
8082 \begin_layout Standard
8088 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8091 \begin_layout Standard
8099 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8102 \begin_layout Standard
8110 <cell alignment="center" valignment="top" topline="true" usebox="none">
8113 \begin_layout Standard
8119 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8122 \begin_layout Standard
8130 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8133 \begin_layout Standard
8141 <cell alignment="center" valignment="top" topline="true" usebox="none">
8144 \begin_layout Standard
8150 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8153 \begin_layout Standard
8160 <row bottomline="true">
8161 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8164 \begin_layout Standard
8172 <cell alignment="center" valignment="top" topline="true" usebox="none">
8175 \begin_layout Standard
8181 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8184 \begin_layout Standard
8191 <row bottomline="true" endlastfoot="true">
8192 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
8195 \begin_layout Standard
8201 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8204 \begin_layout Standard
8210 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8213 \begin_layout Standard
8227 \begin_layout Section
8228 Special Longtable Issues
8229 \begin_inset LatexCommand label
8230 name "sec:Special-Longtable-Issues"
8237 \begin_layout Subsection
8238 Longtable Calculation
8239 \begin_inset LatexCommand index
8240 name "Longtables ! Calculation"
8247 \begin_layout Standard
8248 LaTeX calculates the height of table pages and their page breaks using so
8250 Chunks are pieces of the tables that are at once in LaTeX's memory.
8251 The default value is historically set to only 20 table rows.
8252 If you are using longtables with many pages this may slow down the creation
8254 You can safely increase the chunk size to values of 100-1000 by adding
8255 this command line to your document preamble:
8258 \begin_layout Standard
8263 setcounter{LTchunksize}{100}
8266 \begin_layout Subsection
8267 Floats and Longtables
8268 \begin_inset LatexCommand index
8269 name "Longtables ! Floats"
8276 \begin_layout Standard
8277 There might be problems when a float appears on the same page where a longtable
8279 To avoid such situation, add the command
8285 as ERT before your longtable.
8288 \begin_layout Subsection
8290 \begin_inset LatexCommand index
8291 name "Longtables ! Forced Page Breaks"
8298 \begin_layout Standard
8299 By default tables are only broken between rows.
8300 If you have a cell with multiples lines and want to have a page break within
8301 the cell, insert the new line command
8302 \begin_inset Quotes eld
8314 \begin_inset Quotes erd
8317 as ERT at this point of the cell where it should be broken.
8326 command you have to insert in ERT so many
8327 \begin_inset Quotes eld
8335 \begin_inset Quotes erd
8338 characters like the number of the following table columns.
8343 is the character to separate table cells.
8344 Write in ERT after each
8348 the content of the corresponding following cell and delete the content
8359 command, insert so many
8363 characters like the number of table columns before the current column.
8364 In Table\InsetSpace ~
8366 \begin_inset LatexCommand ref
8367 reference "tab:ForcedPagebreak"
8371 the cell that should be broken is in the second column followed by another
8373 Therefore the following command was inserted in the cell as ERT behind
8375 \begin_inset Quotes eld
8383 \begin_inset Quotes erd
8389 \begin_layout Standard
8401 \begin_layout Standard
8403 \begin_inset Quotes eld
8407 \begin_inset Quotes erd
8410 in the third columns of the row was deleted.
8411 If your footer row of the longtable has for a certain reason no upper line
8412 but you would have a horizontal line where the cell is broken, use this
8416 \begin_layout Standard
8430 \begin_layout Standard
8431 When the cell to be broken is in the last column, the command
8434 \begin_layout Standard
8441 parf\SpecialChar \textcompwordmark{}
8445 \begin_layout Standard
8446 must be inserted as ERT at the beginning of the cell.
8447 This assures that the part of the cell that will be displayed on the new
8448 page appears with the full width.
8452 \begin_layout Standard
8454 \begin_inset Tabular
8455 <lyxtabular version="3" rows="39" columns="3">
8456 <features islongtable="true">
8457 <column alignment="left" valignment="top" leftline="true" width="0cm">
8458 <column alignment="left" valignment="top" rightline="true" width="3cm">
8459 <column alignment="right" valignment="top" rightline="true" width="0pt">
8460 <row endfirsthead="true">
8461 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8464 \begin_layout Standard
8465 \begin_inset Caption
8467 \begin_layout Standard
8468 Table with forced page break in table cell
8469 \begin_inset LatexCommand label
8470 name "tab:ForcedPagebreak"
8478 \begin_layout Standard
8479 Table with forced page break in table cell
8493 \begin_layout Standard
8509 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8512 \begin_layout Standard
8518 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8521 \begin_layout Standard
8528 <row topline="true" bottomline="true" endfirsthead="true">
8529 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8532 \begin_layout Standard
8535 Example Phone List (ignore the names)
8540 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8543 \begin_layout Standard
8549 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8552 \begin_layout Standard
8559 <row topline="true" bottomline="true" endfirsthead="true">
8560 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8563 \begin_layout Standard
8571 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8574 \begin_layout Standard
8580 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8583 \begin_layout Standard
8592 <row bottomline="true" endhead="true">
8593 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8596 \begin_layout Standard
8600 \begin_layout Standard
8604 caption*{Continued table with forced page break in table cell}
8618 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8621 \begin_layout Standard
8627 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8630 \begin_layout Standard
8637 <row topline="true" bottomline="true" endhead="true">
8638 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8641 \begin_layout Standard
8649 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8652 \begin_layout Standard
8658 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8661 \begin_layout Standard
8668 <row topline="true" bottomline="true" endhead="true">
8669 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8672 \begin_layout Standard
8680 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8683 \begin_layout Standard
8689 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8692 \begin_layout Standard
8701 <row topline="true" bottomline="true" endfoot="true">
8702 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
8705 \begin_layout Standard
8706 continued on next page
8711 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8714 \begin_layout Standard
8720 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8723 \begin_layout Standard
8731 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8734 \begin_layout Standard
8742 <cell alignment="center" valignment="top" topline="true" usebox="none">
8745 \begin_layout Standard
8751 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8754 \begin_layout Standard
8762 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8765 \begin_layout Standard
8773 <cell alignment="center" valignment="top" topline="true" usebox="none">
8776 \begin_layout Standard
8782 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8785 \begin_layout Standard
8793 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8796 \begin_layout Standard
8804 <cell alignment="center" valignment="top" topline="true" usebox="none">
8807 \begin_layout Standard
8813 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8816 \begin_layout Standard
8824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8827 \begin_layout Standard
8835 <cell alignment="center" valignment="top" topline="true" usebox="none">
8838 \begin_layout Standard
8844 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8847 \begin_layout Standard
8855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8858 \begin_layout Standard
8866 <cell alignment="center" valignment="top" topline="true" usebox="none">
8869 \begin_layout Standard
8875 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8878 \begin_layout Standard
8886 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8889 \begin_layout Standard
8897 <cell alignment="center" valignment="top" topline="true" usebox="none">
8900 \begin_layout Standard
8906 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8909 \begin_layout Standard
8917 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8920 \begin_layout Standard
8928 <cell alignment="center" valignment="top" topline="true" usebox="none">
8931 \begin_layout Standard
8937 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8940 \begin_layout Standard
8948 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8951 \begin_layout Standard
8959 <cell alignment="center" valignment="top" topline="true" usebox="none">
8962 \begin_layout Standard
8968 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8971 \begin_layout Standard
8979 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8982 \begin_layout Standard
8990 <cell alignment="center" valignment="top" topline="true" usebox="none">
8993 \begin_layout Standard
8999 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9002 \begin_layout Standard
9010 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9013 \begin_layout Standard
9021 <cell alignment="center" valignment="top" topline="true" usebox="none">
9024 \begin_layout Standard
9030 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9033 \begin_layout Standard
9041 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9044 \begin_layout Standard
9052 <cell alignment="center" valignment="top" topline="true" usebox="none">
9055 \begin_layout Standard
9061 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9064 \begin_layout Standard
9072 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9075 \begin_layout Standard
9083 <cell alignment="center" valignment="top" topline="true" usebox="none">
9086 \begin_layout Standard
9092 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9095 \begin_layout Standard
9103 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9106 \begin_layout Standard
9114 <cell alignment="center" valignment="top" topline="true" usebox="none">
9117 \begin_layout Standard
9123 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9126 \begin_layout Standard
9134 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9137 \begin_layout Standard
9145 <cell alignment="center" valignment="top" topline="true" usebox="none">
9148 \begin_layout Standard
9154 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9157 \begin_layout Standard
9165 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9168 \begin_layout Standard
9176 <cell alignment="center" valignment="top" topline="true" usebox="none">
9179 \begin_layout Standard
9185 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9188 \begin_layout Standard
9196 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9199 \begin_layout Standard
9207 <cell alignment="center" valignment="top" topline="true" usebox="none">
9210 \begin_layout Standard
9216 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9219 \begin_layout Standard
9227 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9230 \begin_layout Standard
9238 <cell alignment="center" valignment="top" topline="true" usebox="none">
9241 \begin_layout Standard
9247 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9250 \begin_layout Standard
9258 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9261 \begin_layout Standard
9269 <cell alignment="center" valignment="top" topline="true" usebox="none">
9272 \begin_layout Standard
9278 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9281 \begin_layout Standard
9289 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9292 \begin_layout Standard
9300 <cell alignment="center" valignment="top" topline="true" usebox="none">
9303 \begin_layout Standard
9309 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9312 \begin_layout Standard
9320 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9323 \begin_layout Standard
9331 <cell alignment="center" valignment="top" topline="true" usebox="none">
9334 \begin_layout Standard
9340 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9343 \begin_layout Standard
9351 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9354 \begin_layout Standard
9362 <cell alignment="center" valignment="top" topline="true" usebox="none">
9365 \begin_layout Standard
9371 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9374 \begin_layout Standard
9382 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9385 \begin_layout Standard
9393 <cell alignment="center" valignment="top" topline="true" usebox="none">
9396 \begin_layout Standard
9402 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9405 \begin_layout Standard
9413 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9416 \begin_layout Standard
9424 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9427 \begin_layout Standard
9429 Fürst von Montecompatri, 11.
9430 Fürst von Sulmona und Vivaro, 10.
9431 Fürst von Rossano, 5.
9432 Herzog von Canemorte, 11.
9433 Herzog von Palombara, 5.
9434 Herzog von Castelchiodato,
9438 \begin_layout Standard
9447 \begin_layout Standard
9455 Herzog von Poggionativo, 11.
9456 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
9457 Graf von Valinfreda, 11.
9458 Baron von Cropalati, 11.
9459 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
9464 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9467 \begin_layout Standard
9475 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9478 \begin_layout Standard
9486 <cell alignment="center" valignment="top" topline="true" usebox="none">
9489 \begin_layout Standard
9495 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9498 \begin_layout Standard
9506 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9509 \begin_layout Standard
9517 <cell alignment="center" valignment="top" topline="true" usebox="none">
9520 \begin_layout Standard
9526 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9529 \begin_layout Standard
9537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9540 \begin_layout Standard
9548 <cell alignment="center" valignment="top" topline="true" usebox="none">
9551 \begin_layout Standard
9557 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9560 \begin_layout Standard
9568 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9571 \begin_layout Standard
9579 <cell alignment="center" valignment="top" topline="true" usebox="none">
9582 \begin_layout Standard
9588 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9591 \begin_layout Standard
9599 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9602 \begin_layout Standard
9610 <cell alignment="center" valignment="top" topline="true" usebox="none">
9613 \begin_layout Standard
9619 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9622 \begin_layout Standard
9630 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9633 \begin_layout Standard
9641 <cell alignment="center" valignment="top" topline="true" usebox="none">
9644 \begin_layout Standard
9650 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9653 \begin_layout Standard
9661 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9664 \begin_layout Standard
9672 <cell alignment="center" valignment="top" topline="true" usebox="none">
9675 \begin_layout Standard
9681 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9684 \begin_layout Standard
9691 <row bottomline="true">
9692 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9695 \begin_layout Standard
9703 <cell alignment="center" valignment="top" topline="true" usebox="none">
9706 \begin_layout Standard
9712 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9715 \begin_layout Standard
9722 <row endlastfoot="true">
9723 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9726 \begin_layout Standard
9732 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9735 \begin_layout Standard
9741 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9744 \begin_layout Standard
9758 \begin_layout Section
9759 Multiple Lines Columns and Rows
9762 \begin_layout Subsection
9763 Multiple Lines in Table Cells
9764 \begin_inset LatexCommand label
9765 name "sub:Multiple-Lines-in"
9770 \begin_inset LatexCommand index
9771 name "Multiple Lines in Table Cells"
9776 \begin_inset LatexCommand index
9777 name "Table ! Linebreaks"
9784 \begin_layout Standard
9786 \begin_inset Float table
9792 \begin_layout Standard
9793 \begin_inset Caption
9795 \begin_layout Standard
9796 \begin_inset LatexCommand label
9797 name "tab:Table-with-multiple"
9801 Table with multiple lines in cells
9809 \begin_layout Standard
9811 \begin_inset Tabular
9812 <lyxtabular version="3" rows="3" columns="3">
9814 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
9815 <column alignment="center" valignment="middle" leftline="true" width="0.5cm">
9816 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0.5cm">
9817 <row topline="true">
9818 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9821 \begin_layout Standard
9826 \begin_layout Standard
9840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9843 \begin_layout Standard
9849 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9852 \begin_layout Standard
9859 <row topline="true">
9860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9863 \begin_layout Standard
9869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9872 \begin_layout Standard
9878 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9881 \begin_layout Standard
9888 <row topline="true" bottomline="true">
9889 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9892 \begin_layout Standard
9898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9901 \begin_layout Standard
9907 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9910 \begin_layout Standard
9929 \begin_layout Standard
9930 Adjusting a fixed width for a column, enables to enter text as a paragraph
9931 with multiple lines and hyphenations.
9934 \begin_layout Standard
9935 To produce Table\InsetSpace ~
9937 \begin_inset LatexCommand ref
9938 reference "tab:Table-with-multiple"
9942 , create a 3×3 table, mark the first cell and right-click on it.
9943 In the appearing table dialog we set a cell width of 2.5\InsetSpace \thinspace{}
9944 cm and choose centered
9945 for the vertical and horizontal alignment.
9946 As our text is smaller than than 2.5\InsetSpace \thinspace{}
9947 cm, only one line will appear.
9948 To get two lines, we add a line break with the command
9951 \begin_layout Standard
9959 \begin_layout Standard
9961 If the text is wider than the set cell width it will automatically be broken
9965 \begin_layout Standard
9966 To center the text inside the two other cells of the first row vertically,
9967 right-click in the second cell, adjust a fixed width of 0.5\InsetSpace \thinspace{}
9969 centered alignments.
9970 Then do the same for the third cell of the row.
9973 \begin_layout Standard
9974 If you have a long word in a cell with a fixed width, it cannot be hyphenated
9975 by LaTeX if it is the first entry.
9976 Therefore you need to insert something, to make the word not being the
9977 first entry: Add the command
9980 \begin_layout Standard
9988 \begin_layout Standard
9989 in ERT before the word.
9990 As the space is zero, it doesn't change the output.
9993 \begin_inset LatexCommand ref
9994 reference "tab:Table-with-and"
10001 \begin_layout Standard
10002 \begin_inset Float table
10007 \begin_layout Standard
10008 \begin_inset Caption
10010 \begin_layout Standard
10011 \begin_inset LatexCommand label
10012 name "tab:Table-with-and"
10016 Table with and without hyphenation
10024 \begin_layout Standard
10028 \begin_inset Tabular
10029 <lyxtabular version="3" rows="3" columns="3">
10031 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10032 <column alignment="center" valignment="middle" leftline="true" width="0.5cm">
10033 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0.5cm">
10034 <row topline="true">
10035 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10038 \begin_layout Standard
10039 verylongtablecellword
10044 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10047 \begin_layout Standard
10053 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10056 \begin_layout Standard
10063 <row topline="true">
10064 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10067 \begin_layout Standard
10073 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10076 \begin_layout Standard
10082 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10085 \begin_layout Standard
10092 <row topline="true" bottomline="true">
10093 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10096 \begin_layout Standard
10102 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10105 \begin_layout Standard
10111 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10114 \begin_layout Standard
10128 \begin_inset Tabular
10129 <lyxtabular version="3" rows="3" columns="3">
10131 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10132 <column alignment="center" valignment="middle" leftline="true" width="0.5cm">
10133 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0.5cm">
10134 <row topline="true">
10135 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10138 \begin_layout Standard
10142 \begin_layout Standard
10151 verylongtablecellword
10156 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10159 \begin_layout Standard
10165 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10168 \begin_layout Standard
10175 <row topline="true">
10176 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10179 \begin_layout Standard
10185 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10188 \begin_layout Standard
10194 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10197 \begin_layout Standard
10204 <row topline="true" bottomline="true">
10205 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10208 \begin_layout Standard
10214 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10217 \begin_layout Standard
10223 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10226 \begin_layout Standard
10247 \begin_layout Standard
10253 \begin_layout Subsection
10255 \begin_inset LatexCommand label
10256 name "sub:Multicolumns"
10261 \begin_inset LatexCommand index
10262 name "Multicolumns"
10267 \begin_inset LatexCommand index
10268 name "Table ! Multicolumns"
10275 \begin_layout Subsubsection
10279 \begin_layout Standard
10280 To span a cell over multiple columns, mark as much cells within a line that
10281 should be one spanned cell and use either the table-toolbar button
10282 \begin_inset Graphics
10283 filename ../images/tabular-feature_multicolumn.xpm
10290 Edit\SpecialChar \menuseparator
10291 Table\SpecialChar \menuseparator
10294 , or right click on the marked cells and choose multicolumn in the appearing
10295 table dialog under the tab
10302 \begin_layout Standard
10303 Multicolumns have there own cell settings.
10304 That means changing cell borders, cell alignment, and the width only affects
10306 Here is an example table with a multicolumn cell in the first row and one
10307 in the last row without the upper border:
10310 \begin_layout Standard
10312 \begin_inset Tabular
10313 <lyxtabular version="3" rows="3" columns="4">
10314 <features firstHeadTopDL="true" firstHeadBottomDL="true">
10315 <column alignment="center" valignment="top" leftline="true" width="0pt">
10316 <column alignment="center" valignment="middle" leftline="true" width="0">
10317 <column alignment="center" valignment="top" leftline="true" width="0in">
10318 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
10319 <row topline="true" bottomline="true">
10320 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10323 \begin_layout Standard
10329 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
10332 \begin_layout Standard
10342 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10345 \begin_layout Standard
10351 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10354 \begin_layout Standard
10361 <row topline="true">
10362 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10365 \begin_layout Standard
10380 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10383 \begin_layout Standard
10389 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10392 \begin_layout Standard
10398 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10401 \begin_layout Standard
10408 <row topline="true" bottomline="true">
10409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10412 \begin_layout Standard
10418 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10421 \begin_layout Standard
10427 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10430 \begin_layout Standard
10436 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10439 \begin_layout Standard
10453 \begin_layout Subsubsection
10454 Multicolumn Calculations
10455 \begin_inset LatexCommand label
10456 name "sub:Multicolumn-Calculations"
10461 \begin_inset LatexCommand index
10462 name "Multicolumns ! Calculations"
10469 \begin_layout Standard
10470 LyX supports multicolumns directly, but we have to take notice of the cell
10471 width of the columns spanned by the multicolumn cell.
10474 \begin_layout Standard
10475 \begin_inset Float table
10480 \begin_layout Standard
10481 \begin_inset Caption
10483 \begin_layout Standard
10484 \begin_inset LatexCommand label
10485 name "tab:Table-with-centered"
10489 Table with centered multicolumn text above two columns that have exactly
10490 half the width of the multicolumn cell
10491 \begin_inset OptArg
10494 \begin_layout Standard
10495 Perfect multicolumn table
10508 \begin_layout Standard
10510 \begin_inset Tabular
10511 <lyxtabular version="3" rows="3" columns="3">
10513 <column alignment="center" valignment="middle" leftline="true" width="0" special=">{\centering}m{1.25cm-6.2pt}">
10514 <column alignment="center" valignment="middle" leftline="true" width="0">
10515 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10516 <row topline="true">
10517 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
10520 \begin_layout Standard
10521 multiple lines multicolumn
10526 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10529 \begin_layout Standard
10535 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10538 \begin_layout Standard
10545 <row topline="true">
10546 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10549 \begin_layout Standard
10555 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10558 \begin_layout Standard
10564 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10567 \begin_layout Standard
10574 <row topline="true" bottomline="true">
10575 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10578 \begin_layout Standard
10584 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10587 \begin_layout Standard
10593 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10596 \begin_layout Standard
10615 \begin_layout Standard
10616 To create for example Table\InsetSpace ~
10618 \begin_inset LatexCommand ref
10619 reference "tab:Table-with-centered"
10623 , mark the first two cells in the first row a 3×3 table and right-click
10625 Now choose for this cell
10633 and a width of 2.5\InsetSpace \thinspace{}
10634 cm in the table dialog.
10635 The spanned columns should have exactly half the width of the multicolumn
10636 cell, so that you would adjust a width of 1.25\InsetSpace \thinspace{}
10637 cm for the first column.
10638 The second column has then automatically a width of 1.25\InsetSpace \thinspace{}
10640 width - width of first column).
10641 This was done for Table\InsetSpace ~
10643 \begin_inset LatexCommand ref
10644 reference "tab:Table-without-half"
10651 \begin_layout Standard
10652 \begin_inset Float table
10657 \begin_layout Standard
10658 \begin_inset Caption
10660 \begin_layout Standard
10661 \begin_inset LatexCommand label
10662 name "tab:Table-without-half"
10666 Table where the spanned table columns have not exactly half the width of
10667 the multicolumn cell
10668 \begin_inset OptArg
10671 \begin_layout Standard
10672 Imperfect multicolumn table
10685 \begin_layout Standard
10687 \begin_inset Tabular
10688 <lyxtabular version="3" rows="3" columns="3">
10690 <column alignment="center" valignment="top" leftline="true" width="1.25cm">
10691 <column alignment="center" valignment="top" leftline="true" width="0">
10692 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10693 <row topline="true" bottomline="true">
10694 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
10697 \begin_layout Standard
10698 multiple lines multicolumn
10703 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10706 \begin_layout Standard
10712 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10715 \begin_layout Standard
10722 <row topline="true">
10723 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10726 \begin_layout Standard
10732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10735 \begin_layout Standard
10741 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10744 \begin_layout Standard
10751 <row topline="true" bottomline="true">
10752 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10755 \begin_layout Standard
10761 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10764 \begin_layout Standard
10770 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10773 \begin_layout Standard
10792 \begin_layout Standard
10793 You can see that the first column has not the half width of the multicolumn
10794 cell, it is a bit bigger.
10795 The reason is that the given width of a cell
10796 \begin_inset Formula $W_{g}$
10799 is not its total width
10800 \begin_inset Formula $W_{\mathrm{tot}}$
10803 because a cell is always a bit larger than its given width.
10804 Appendix\InsetSpace ~
10806 \begin_inset LatexCommand eqref
10807 reference "cha:Explanation-of-Equation"
10811 explains it in detail.
10814 \begin_layout Standard
10815 The needed given width
10816 \begin_inset Formula $W_{g\, n}$
10823 columns are spanned columns can be calculated, so that each column has
10825 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
10829 \begin_inset Formula \begin{equation}
10830 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)·(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
10837 \begin_layout Standard
10838 In our case we have
10839 \begin_inset Formula $n=2$
10843 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
10846 cm and the default values for the lengths, so that equation
10847 \begin_inset LatexCommand ref
10853 \begin_inset Formula \begin{equation}
10854 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
10861 \begin_layout Standard
10862 To enable calculations in LaTeX, the LaTeX-package
10866 must be loaded with the document preamble line
10867 \begin_inset LatexCommand index
10868 name "LaTeX-packages ! calc"
10875 \begin_layout Standard
10883 \begin_layout Standard
10884 LyX does not allow to calculate lengths in the width-field of the table
10886 Therefore you have to format the column by inserting a LaTeX-argument in
10888 Here is an overview about the arguments:
10891 \begin_layout Itemize
10896 creates cell with a fixed width, its text is vertically top-aligned
10899 \begin_layout Itemize
10904 creates cell with a fixed width, its text is vertically centered
10907 \begin_layout Itemize
10912 creates cell with a fixed width, its text is vertically bottom-aligned
10915 \begin_layout Standard
10916 By entering a LaTeX-argument, all cell properties set in the table dialog
10919 \begin_inset Note Greyedout
10922 \begin_layout Standard
10927 Due to a bug, LyX shows the overwritten properties anyway.
10932 As the text should be horizontally centered, the command
10939 You can now enter the following LaTeX-argument for the first spanned column:
10942 \begin_layout Standard
10947 centering}m{1.25cm-6.2pt}
10950 \begin_layout Standard
10955 means, that the commands inside the braces are applied before the cell
10959 \begin_layout Standard
10960 Although we have chosen centered alignment for the text of the multicolumn
10961 cell, it is still left aligned.
10962 This is because LyX only applies the alignment to single columns.
10963 So we have to use for the multicolumn the LaTeX-argument
10966 \begin_layout Standard
10974 \begin_layout Subsection
10976 \begin_inset LatexCommand index
10982 \begin_inset LatexCommand index
10983 name "Table ! Multirows"
10988 \begin_inset LatexCommand index
10989 name "LaTeX-packages ! multirow"
10996 \begin_layout Standard
10997 In contrary to multicolumns multirows are not yet supported by LyX so a
10998 bit of ERT needs to be used.
10999 To use multirows load the LaTeX-package
11003 in your document preamble with the command
11006 \begin_layout Standard
11011 usepackage{multirow}
11014 \begin_layout Standard
11015 Multirows are created with the command
11018 \begin_layout Standard
11023 multirow{number of rows}{cell width}{cell entry}
11026 \begin_layout Standard
11027 To create the following table:
11030 \begin_layout Standard
11035 \begin_layout Standard
11049 \begin_inset Tabular
11050 <lyxtabular version="3" rows="3" columns="3">
11052 <column alignment="center" valignment="top" leftline="true" width="0">
11053 <column alignment="center" valignment="top" leftline="true" width="0">
11054 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
11055 <row topline="true">
11056 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11059 \begin_layout Standard
11065 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11068 \begin_layout Standard
11074 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11077 \begin_layout Standard
11084 <row topline="true">
11085 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11088 \begin_layout Standard
11092 \begin_layout Standard
11096 multirow{2}{2.5cm}{
11105 \begin_layout Standard
11117 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11120 \begin_layout Standard
11126 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11129 \begin_layout Standard
11136 <row topline="true" bottomline="true">
11137 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11140 \begin_layout Standard
11146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11149 \begin_layout Standard
11155 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11158 \begin_layout Standard
11173 \begin_layout Standard
11189 \begin_layout Standard
11190 create a 3×3 table.
11191 To get rid of the line above the last cell in the first column, the cell
11192 is marked as multicolumn and the upper border is unset.
11193 The multirow is now created in the second row of the first column by inserting
11197 \begin_layout Standard
11202 multirow{2}{2.5cm}{
11205 \begin_layout Standard
11207 According to the command parameters the multirow spans now two rows and
11208 has a width of 2.5\InsetSpace \thinspace{}
11210 The content of the multirow cell follows outside the ERT box and the command
11211 is finished with a right brace
11215 in another ERT-box behind the text.
11218 \begin_layout Standard
11225 left-aligns its content by default.
11226 To override the default, renew the command
11235 \begin_layout Standard
11247 \begin_layout Standard
11248 in ERT in the document preamble.
11249 Then all entries of multirow cells in the document are centered.
11250 If centering is only needed for several tables, you can renew the command
11251 in an ERT box just before the table instead of the preamble.
11252 If the text should be right-aligned, replace
11265 To return to left-alignment
11274 \begin_layout Section
11276 \begin_inset LatexCommand label
11277 name "sec:Formal-Tables"
11282 \begin_inset LatexCommand index
11283 name "Table ! Formal"
11290 \begin_layout Standard
11291 Tables are often typeset in books similar to Table\InsetSpace ~
11293 \begin_inset LatexCommand ref
11294 reference "tab:Example-booktabs-table"
11299 This kind of tables is called
11300 \begin_inset Quotes eld
11308 \begin_inset Quotes erd
11312 To make a table a formal table use the option
11320 tab of the table dialog.
11323 \begin_layout Standard
11324 \begin_inset Float table
11330 \begin_layout Standard
11331 \begin_inset Caption
11333 \begin_layout Standard
11334 \begin_inset LatexCommand label
11335 name "tab:Example-booktabs-table"
11339 Example booktabs-table
11347 \begin_layout Standard
11349 \begin_inset Tabular
11350 <lyxtabular version="3" rows="8" columns="4">
11351 <features booktabs="true">
11352 <column alignment="center" valignment="top" rightline="true" width="0">
11353 <column alignment="center" valignment="top" width="0">
11354 <column alignment="center" valignment="top" width="0">
11355 <column alignment="center" valignment="top" width="0">
11356 <row topline="true">
11357 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11360 \begin_layout Standard
11366 <cell alignment="center" valignment="top" topline="true" usebox="none">
11369 \begin_layout Standard
11371 \begin_inset Formula $\,$
11379 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
11382 \begin_layout Standard
11384 \begin_inset Formula $\,$
11392 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11395 \begin_layout Standard
11403 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11406 \begin_layout Standard
11410 \begin_layout Standard
11423 \begin_layout Standard
11432 Detector thickness [µm]
11437 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11440 \begin_layout Standard
11446 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11449 \begin_layout Standard
11455 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11458 \begin_layout Standard
11465 <row topline="true">
11466 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11469 \begin_layout Standard
11475 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11478 \begin_layout Standard
11484 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11487 \begin_layout Standard
11493 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11496 \begin_layout Standard
11503 <row topspace="default">
11504 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11507 \begin_layout Standard
11508 Spatial resolution [µm]
11513 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11516 \begin_layout Standard
11522 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11525 \begin_layout Standard
11531 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11534 \begin_layout Standard
11541 <row topspace="default">
11542 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11545 \begin_layout Standard
11547 \begin_inset Formula $f_{\mathrm{max}}$
11555 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11558 \begin_layout Standard
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" rightline="true" usebox="none">
11576 \begin_layout Standard
11583 <row topspace="default">
11584 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11587 \begin_layout Standard
11591 \begin_layout Standard
11595 cmidrule(l{10pt}){1-1}
11600 LSF-spatial resolution
11605 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11608 \begin_layout Standard
11614 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11617 \begin_layout Standard
11623 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11626 \begin_layout Standard
11634 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11637 \begin_layout Standard
11643 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11646 \begin_layout Standard
11652 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11655 \begin_layout Standard
11661 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11664 \begin_layout Standard
11671 <row bottomline="true">
11672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11675 \begin_layout Standard
11681 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11684 \begin_layout Standard
11690 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11693 \begin_layout Standard
11699 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11702 \begin_layout Standard
11721 \begin_layout Standard
11722 Spaces to table rows can be added using the
11726 tab of the table dialog as described in section\InsetSpace ~
11728 \begin_inset LatexCommand ref
11729 reference "sub:Row-Spacing"
11736 \begin_layout Standard
11737 In contrary to normal tables, formal tables have no vertical table lines.
11738 The horizontal table lines can be set like for normal tables but they appear
11739 with different width in the output:
11741 The first and the last table line have
11742 a default width of 0.08\InsetSpace \thinspace{}
11743 em while the other lines have a default width of
11744 0.05\InsetSpace \thinspace{}
11748 \begin_layout Standard
11749 The default widths can be changed with the following preamble lines
11752 \begin_layout Standard
11772 \begin_layout Standard
11773 This example is for the first line, the so called toprule.
11774 If you want to change the width for the last line, replace
11783 To change the width for the other lines replace
11792 You can use all units listed in appendix\InsetSpace ~
11794 \begin_inset LatexCommand ref
11795 reference "cha:Units-available-in"
11802 \begin_layout Standard
11803 Lines that don't span over all table columns can be created by setting a
11804 table line for multicolumn cells.
11805 LyX will then internally use the command
11811 to create this line.
11815 \begin_layout Standard
11820 cmidrule[width](trim){startcol-endcol}
11823 \begin_layout Standard
11830 are are currently not supported by LyX so you have to use ERT to be able
11838 s can manually be created by inserting the command as ERT as first cell
11839 entry of the first cell of a row.
11840 The line is then drawn in the output above the current row.
11843 \begin_layout Standard
11844 The default for the width is 0.03\InsetSpace \thinspace{}
11846 Startcol is the number of the column where the line starts and endcol the
11847 column number where the line ends.
11848 The endcol always needs to be specified, also when the line should span
11850 The optional parameter trim could be either
11858 where the trimwidth is also optional.
11859 Using for example the parameter
11863 means that the line is trimmed from its left end by 2\InsetSpace \thinspace{}
11865 If you don't specify the trimwidth the lines are trimmed by the default
11866 of 0.5\InsetSpace \thinspace{}
11870 \begin_layout Standard
11871 \begin_inset VSpace bigskip
11876 \begin_inset LatexCommand ref
11877 reference "tab:Example-booktabs-table"
11881 was created using the commands
11884 \begin_layout Standard
11894 \begin_layout Standard
11895 at the beginning of the in the second row and
11898 \begin_layout Standard
11903 cmidrule(l{10pt}){1-1}
11906 \begin_layout Standard
11910 \begin_layout Standard
11914 \begin_layout Standard
11915 \begin_inset VSpace bigskip
11921 \begin_layout Standard
11922 You might want to have overlapping
11928 s like in Table\InsetSpace ~
11930 \begin_inset LatexCommand ref
11931 reference "tab:Special-booktabs-table"
11936 This can be achieved with the ERT command
11939 \begin_layout Standard
11947 \begin_layout Standard
11948 The command that was used for the second row of Table\InsetSpace ~
11950 \begin_inset LatexCommand ref
11951 reference "tab:Special-booktabs-table"
11958 \begin_layout Standard
11972 \begin_layout Standard
11973 The command for the sixth row is
11976 \begin_layout Standard
11988 \begin_layout Standard
11989 \begin_inset VSpace bigskip
11995 \begin_layout Standard
11996 If you are anyway not satisfied with the border line spacing, you can use
11997 the following command to produce lines that span over all table columns
12002 \begin_layout Standard
12007 specialrule{width}{space above}{space below}
12010 \begin_layout Standard
12011 For more informations about these specialties, we refer to the manual of
12017 \begin_inset LatexCommand cite
12023 \begin_inset LatexCommand index
12024 name "LaTeX-packages ! booktabs"
12031 \begin_layout Standard
12032 \begin_inset Float table
12038 \begin_layout Standard
12039 \begin_inset Caption
12041 \begin_layout Standard
12042 \begin_inset LatexCommand label
12043 name "tab:Special-booktabs-table"
12047 Special booktabs-table
12055 \begin_layout Standard
12057 \begin_inset Tabular
12058 <lyxtabular version="3" rows="8" columns="4">
12059 <features booktabs="true">
12060 <column alignment="center" valignment="top" width="0">
12061 <column alignment="center" valignment="top" width="0">
12062 <column alignment="center" valignment="top" width="0">
12063 <column alignment="center" valignment="top" width="0">
12064 <row topline="true">
12065 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12068 \begin_layout Standard
12074 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12077 \begin_layout Standard
12078 Medipix\InsetSpace \thinspace{}
12084 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
12087 \begin_layout Standard
12088 Medipix\InsetSpace \thinspace{}
12094 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12097 \begin_layout Standard
12105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12108 \begin_layout Standard
12112 \begin_layout Standard
12125 \begin_layout Standard
12138 \begin_layout Standard
12151 \begin_layout Standard
12160 Detector thickness [µm]
12165 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12168 \begin_layout Standard
12174 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12177 \begin_layout Standard
12183 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12186 \begin_layout Standard
12193 <row topline="true">
12194 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12197 \begin_layout Standard
12203 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12206 \begin_layout Standard
12212 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12215 \begin_layout Standard
12221 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12224 \begin_layout Standard
12231 <row topspace="default">
12232 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12235 \begin_layout Standard
12236 Spatial resolution [µm]
12241 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12244 \begin_layout Standard
12250 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12253 \begin_layout Standard
12259 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12262 \begin_layout Standard
12269 <row topspace="default">
12270 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12273 \begin_layout Standard
12275 \begin_inset Formula $f_{\mathrm{max}}$
12283 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12286 \begin_layout Standard
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" rightline="true" usebox="none">
12304 \begin_layout Standard
12311 <row topline="true">
12312 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12315 \begin_layout Standard
12319 \begin_layout Standard
12332 \begin_layout Standard
12341 LSF-spatial resolution
12346 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12349 \begin_layout Standard
12355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12358 \begin_layout Standard
12364 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12367 \begin_layout Standard
12375 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12378 \begin_layout Standard
12384 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12387 \begin_layout Standard
12393 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12396 \begin_layout Standard
12402 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12405 \begin_layout Standard
12412 <row bottomline="true">
12413 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12416 \begin_layout Standard
12422 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12425 \begin_layout Standard
12431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12434 \begin_layout Standard
12440 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12443 \begin_layout Standard
12462 \begin_layout Section
12463 Vertical Table Alignment
12464 \begin_inset LatexCommand index
12465 name "Table ! Alignment"
12472 \begin_layout Standard
12473 To align tables vertically in a text line the table must be inside a box.
12474 The box can then be vertically aligned as described in section\InsetSpace ~
12476 \begin_inset LatexCommand ref
12477 reference "sec:Box-Dialog"
12484 \begin_layout Standard
12485 In the following example the tables are inside a minipage
12489 \begin_layout Standard
12490 Minipages are described in section\InsetSpace ~
12492 \begin_inset LatexCommand ref
12493 reference "sec:Minipages"
12502 box that has a width of 15\InsetSpace \thinspace{}
12506 \begin_layout Itemize
12508 \begin_inset Box Frameless
12517 height_special "totalheight"
12520 \begin_layout Standard
12521 \begin_inset Tabular
12522 <lyxtabular version="3" rows="3" columns="3">
12524 <column alignment="center" valignment="top" leftline="true" width="0">
12525 <column alignment="center" valignment="top" leftline="true" width="0">
12526 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12527 <row topline="true">
12528 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12531 \begin_layout Standard
12537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12540 \begin_layout Standard
12546 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12549 \begin_layout Standard
12556 <row topline="true">
12557 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12560 \begin_layout Standard
12566 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12569 \begin_layout Standard
12575 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12578 \begin_layout Standard
12585 <row topline="true" bottomline="true">
12586 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12589 \begin_layout Standard
12595 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12598 \begin_layout Standard
12604 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12607 \begin_layout Standard
12627 \begin_layout Standard
12639 \begin_inset Box Frameless
12648 height_special "totalheight"
12651 \begin_layout Standard
12652 \begin_inset Tabular
12653 <lyxtabular version="3" rows="3" columns="3">
12655 <column alignment="center" valignment="top" leftline="true" width="0">
12656 <column alignment="center" valignment="top" leftline="true" width="0">
12657 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12658 <row topline="true">
12659 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12662 \begin_layout Standard
12668 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12671 \begin_layout Standard
12677 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12680 \begin_layout Standard
12687 <row topline="true">
12688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12691 \begin_layout Standard
12697 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12700 \begin_layout Standard
12706 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12709 \begin_layout Standard
12716 <row topline="true" bottomline="true">
12717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12720 \begin_layout Standard
12726 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12729 \begin_layout Standard
12735 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12738 \begin_layout Standard
12758 \begin_layout Standard
12768 \begin_layout Itemize
12770 \begin_inset Box Frameless
12779 height_special "totalheight"
12782 \begin_layout Standard
12783 \begin_inset Tabular
12784 <lyxtabular version="3" rows="3" columns="3">
12786 <column alignment="center" valignment="top" leftline="true" width="0">
12787 <column alignment="center" valignment="top" leftline="true" width="0">
12788 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12789 <row topline="true">
12790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12793 \begin_layout Standard
12799 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12802 \begin_layout Standard
12808 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12811 \begin_layout Standard
12818 <row topline="true">
12819 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12822 \begin_layout Standard
12828 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12831 \begin_layout Standard
12837 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12840 \begin_layout Standard
12847 <row topline="true" bottomline="true">
12848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12851 \begin_layout Standard
12857 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12860 \begin_layout Standard
12866 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12869 \begin_layout Standard
12888 \begin_layout Itemize
12890 \begin_inset Box Frameless
12899 height_special "totalheight"
12902 \begin_layout Standard
12903 \begin_inset Tabular
12904 <lyxtabular version="3" rows="3" columns="3">
12906 <column alignment="center" valignment="top" leftline="true" width="0">
12907 <column alignment="center" valignment="top" leftline="true" width="0">
12908 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12909 <row topline="true">
12910 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12913 \begin_layout Standard
12919 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12922 \begin_layout Standard
12928 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12931 \begin_layout Standard
12938 <row topline="true">
12939 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12942 \begin_layout Standard
12948 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12951 \begin_layout Standard
12957 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12960 \begin_layout Standard
12967 <row topline="true" bottomline="true">
12968 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12971 \begin_layout Standard
12977 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12980 \begin_layout Standard
12986 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12989 \begin_layout Standard
13009 \begin_layout Standard
13021 \begin_inset Box Frameless
13030 height_special "totalheight"
13033 \begin_layout Standard
13034 \begin_inset Tabular
13035 <lyxtabular version="3" rows="3" columns="3">
13037 <column alignment="center" valignment="top" leftline="true" width="0">
13038 <column alignment="center" valignment="top" leftline="true" width="0">
13039 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13040 <row topline="true">
13041 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13044 \begin_layout Standard
13050 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13053 \begin_layout Standard
13059 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13062 \begin_layout Standard
13069 <row topline="true">
13070 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13073 \begin_layout Standard
13079 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13082 \begin_layout Standard
13088 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13091 \begin_layout Standard
13098 <row topline="true" bottomline="true">
13099 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13102 \begin_layout Standard
13108 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13111 \begin_layout Standard
13117 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13120 \begin_layout Standard
13140 \begin_layout Standard
13150 \begin_layout Standard
13151 As you can see, the content of the first and last table row is not correctly
13152 aligned with the text line where the table is in.
13153 To get this alignment, the minipage box must be set into a raisebox
13157 \begin_layout Standard
13158 Raiseboxes are described in section\InsetSpace ~
13160 \begin_inset LatexCommand ref
13161 reference "sub:Vertical-Alignment"
13171 In the example above the second table in the first item is aligned using
13175 \begin_layout Standard
13185 \begin_layout Standard
13187 Behind the box the closing brace
13191 is inserted as ERT.
13192 For the second table in the last item the command
13195 \begin_layout Standard
13205 \begin_layout Standard
13209 \begin_layout Standard
13210 \begin_inset Note Greyedout
13213 \begin_layout Standard
13218 The alignment of the table row content to the surrounding text line is
13220 The needed factor of the
13226 command for this alignment depends on the document font, the font size,
13227 and the table line thickness.
13235 \begin_layout Section
13237 \begin_inset LatexCommand label
13238 name "sec:Colored-Tables"
13243 \begin_inset LatexCommand index
13244 name "Table ! Color"
13251 \begin_layout Subsection
13253 \begin_inset LatexCommand index
13254 name "Table Color ! for Cells"
13259 \begin_inset LatexCommand index
13260 name "Color ! for Table Cells"
13267 \begin_layout Standard
13268 \begin_inset Float table
13274 \begin_layout Standard
13275 \begin_inset Caption
13277 \begin_layout Standard
13278 \begin_inset LatexCommand label
13279 name "tab:Table-colored-without"
13283 Table colored without using the package
13288 \begin_inset OptArg
13291 \begin_layout Standard
13292 Table without colortbl
13305 \begin_layout Standard
13307 \begin_inset Tabular
13308 <lyxtabular version="3" rows="3" columns="3">
13310 <column alignment="center" valignment="top" leftline="true" width="0">
13311 <column alignment="center" valignment="top" leftline="true" width="0">
13312 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13313 <row topline="true">
13314 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13317 \begin_layout Standard
13325 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13328 \begin_layout Standard
13336 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13339 \begin_layout Standard
13348 <row topline="true">
13349 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13352 \begin_layout Standard
13360 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13363 \begin_layout Standard
13371 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13374 \begin_layout Standard
13383 <row topline="true" bottomline="true">
13384 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13387 \begin_layout Standard
13395 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13398 \begin_layout Standard
13406 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13409 \begin_layout Standard
13430 \begin_layout Standard
13431 If you only need colored text, mark the cells and choose a color in the
13434 Edit\SpecialChar \menuseparator
13439 This was used to create Table\InsetSpace ~
13441 \begin_inset LatexCommand ref
13442 reference "tab:Table-colored-without"
13447 In any other case you have to use the LaTeX-package
13452 \begin_inset LatexCommand index
13453 name "LaTeX-packages ! colortbl"
13460 \begin_layout Standard
13461 To create colored tables,
13465 must be loaded in the preamble with the line
13468 \begin_layout Standard
13473 usepackage{colortbl}
13476 \begin_layout Standard
13477 The color of a column is adjusted with the command
13480 \begin_layout Standard
13485 columncolor{name of color}
13488 \begin_layout Standard
13494 More about the command
13498 is described in section\InsetSpace ~
13500 \begin_inset LatexCommand ref
13501 reference "sub:Multicolumn-Calculations"
13508 \begin_layout Standard
13509 The following color names are predefined:
13512 \begin_layout Standard
13546 \begin_layout Standard
13547 \begin_inset VSpace medskip
13553 \begin_layout Standard
13554 You can also define your own color with the command
13557 \begin_layout Standard
13562 def\SpecialChar \textcompwordmark{}
13563 inecolor{color name}{color model}{color values}
13566 \begin_layout Standard
13567 The color model can be
13570 \begin_layout Labeling
13571 \labelwidthstring 00.00.0000
13572 cmyk: cyan, magenta, yellow, black
13575 \begin_layout Labeling
13576 \labelwidthstring 00.00.0000
13577 rgb: red, green blue
13580 \begin_layout Labeling
13581 \labelwidthstring 00.00.0000
13585 \begin_layout Standard
13586 and the color values are comma separated numbers between 0 and 1 describing
13587 the factor for the corresponding color of the color model.
13590 \begin_layout Standard
13591 You can e.\InsetSpace \thinspace{}
13597 " in the preamble with
13600 \begin_layout Standard
13605 def\SpecialChar \textcompwordmark{}
13606 inecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
13609 \begin_layout Standard
13617 \begin_layout Standard
13622 def\SpecialChar \textcompwordmark{}
13623 inecolor{lightgray}{gray}{0.8}
13626 \begin_layout Standard
13627 \begin_inset VSpace medskip
13633 \begin_layout Standard
13634 Lines are colored with the command
13637 \begin_layout Standard
13642 rowcolor{name of color}
13645 \begin_layout Standard
13646 and cells are colored with the command
13649 \begin_layout Standard
13654 cellcolor{name of color}
13657 \begin_layout Standard
13658 Both commands are inserted at the beginning of a cell as ERT.
13661 \begin_layout Standard
13662 To color characters in the table, mark the cells and use the LyX menu
13664 Edit\SpecialChar \menuseparator
13669 If a cell contains ERT mark only the characters, otherwise the colored
13670 ERT will cause LaTeX-errors.
13673 \begin_layout Standard
13674 \begin_inset VSpace bigskip
13680 \begin_layout Standard
13681 To create Table\InsetSpace ~
13683 \begin_inset LatexCommand ref
13684 reference "tab:Table-colored-using"
13688 do the following: The color of the first column should be
13696 \begin_layout Standard
13701 columncolor{darkgreen}
13706 \begin_layout Standard
13707 as LaTeX-argument for this column.
13708 The first row should be blue, therefore the ERT command
13711 \begin_layout Standard
13719 \begin_layout Standard
13720 is inserted to the first cell of this row.
13721 Note that this overwrites the column color for the first cell.
13722 The last cell of the last row is colored magenta by inserting the ERT command
13725 \begin_layout Standard
13733 \begin_layout Standard
13734 The characters could now be colored using the menu
13736 Edit\SpecialChar \menuseparator
13743 \begin_layout Standard
13744 \begin_inset Float table
13750 \begin_layout Standard
13751 \begin_inset Caption
13753 \begin_layout Standard
13754 \begin_inset LatexCommand label
13755 name "tab:Table-colored-using"
13759 Table colored using the package
13764 \begin_inset OptArg
13767 \begin_layout Standard
13768 Table with colortbl
13781 \begin_layout Standard
13783 \begin_inset Tabular
13784 <lyxtabular version="3" rows="3" columns="3">
13786 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
13787 <column alignment="center" valignment="top" width="0">
13788 <column alignment="center" valignment="top" width="0">
13790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13793 \begin_layout Standard
13797 \begin_layout Standard
13813 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13816 \begin_layout Standard
13824 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13827 \begin_layout Standard
13837 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13840 \begin_layout Standard
13848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13851 \begin_layout Standard
13859 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13862 \begin_layout Standard
13872 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13875 \begin_layout Standard
13883 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13886 \begin_layout Standard
13894 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13897 \begin_layout Standard
13901 \begin_layout Standard
13930 \begin_layout Subsection
13932 \begin_inset LatexCommand index
13933 name "Table Color ! for Lines"
13938 \begin_inset LatexCommand index
13939 name "Color ! for Table Lines"
13946 \begin_layout Standard
13947 As described in section\InsetSpace ~
13949 \begin_inset LatexCommand ref
13950 reference "sub:Line-Thickness"
13954 , the line thickness for all lines in a table can be adjusted with the length
13962 It is set to 1.5\InsetSpace \thinspace{}
13963 pt for all tables of this section.
13967 \begin_layout Standard
13973 arrayrulewidth}{1.5pt}
13981 \begin_layout Standard
13982 To color vertical lines for example with green, create the following column
13983 format in the document preamble, according to the description in section\InsetSpace ~
13985 \begin_inset LatexCommand ref
13986 reference "sub:Customized-Format"
13993 \begin_layout Standard
13998 newcolumntype{W}{!{
14005 \begin_layout Standard
14006 For Table\InsetSpace ~
14008 \begin_inset LatexCommand ref
14009 reference "tab:Table-with-vertical-colored"
14016 \begin_layout Standard
14022 \begin_layout Standard
14023 was used for the last column and
14026 \begin_layout Standard
14032 \begin_layout Standard
14033 for the other columns.
14036 \begin_layout Standard
14037 If you want to have several colors, define more column formats.
14040 \begin_layout Standard
14041 \begin_inset Float table
14046 \begin_layout Standard
14047 \begin_inset Caption
14049 \begin_layout Standard
14050 \begin_inset LatexCommand label
14051 name "tab:Table-with-vertical-colored"
14055 Table with colored vertical lines
14063 \begin_layout Standard
14065 \begin_inset Tabular
14066 <lyxtabular version="3" rows="3" columns="3">
14068 <column alignment="center" valignment="top" width="0" special="Wc">
14069 <column alignment="center" valignment="top" width="0" special="Wc">
14070 <column alignment="center" valignment="top" width="0" special="WcW">
14071 <row topline="true">
14072 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14075 \begin_layout Standard
14081 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14084 \begin_layout Standard
14090 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14093 \begin_layout Standard
14100 <row topline="true">
14101 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14104 \begin_layout Standard
14110 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14113 \begin_layout Standard
14119 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14122 \begin_layout Standard
14129 <row topline="true" bottomline="true">
14130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14133 \begin_layout Standard
14139 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14142 \begin_layout Standard
14148 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14151 \begin_layout Standard
14170 \begin_layout Standard
14171 \begin_inset VSpace bigskip
14174 To color horizontal lines for example with red, like in Table\InsetSpace ~
14176 \begin_inset LatexCommand ref
14177 reference "tab:Table-with-horizontal-colored"
14181 , insert these commands in ERT before the table or table float:
14184 \begin_layout Standard
14201 arrayrulecolor{red}
14205 arrayrulecolor{black}}
14208 \begin_layout Standard
14212 \begin_layout Standard
14223 \begin_layout Standard
14231 arrayrulecolor{red}
14235 arrayrulecolor{black}}
14241 \begin_inset Float table
14246 \begin_layout Standard
14247 \begin_inset Caption
14249 \begin_layout Standard
14250 \begin_inset LatexCommand label
14251 name "tab:Table-with-horizontal-colored"
14255 Table with colored horizontal lines
14263 \begin_layout Standard
14265 \begin_inset Tabular
14266 <lyxtabular version="3" rows="3" columns="3">
14268 <column alignment="center" valignment="top" leftline="true" width="0">
14269 <column alignment="center" valignment="top" leftline="true" width="0">
14270 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14271 <row topline="true">
14272 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14275 \begin_layout Standard
14281 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14284 \begin_layout Standard
14290 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14293 \begin_layout Standard
14300 <row topline="true">
14301 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14304 \begin_layout Standard
14310 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14313 \begin_layout Standard
14319 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14322 \begin_layout Standard
14329 <row topline="true" bottomline="true">
14330 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14333 \begin_layout Standard
14339 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14342 \begin_layout Standard
14348 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14351 \begin_layout Standard
14370 \begin_layout Standard
14374 \begin_layout Standard
14386 \begin_layout Standard
14387 To return to the default line color black, insert this command in ERT behind
14388 the table or table float:
14391 \begin_layout Standard
14403 \begin_layout Standard
14406 \begin_inset LatexCommand ref
14407 reference "tab:Table-with-colored"
14411 is an example with colored vertical and horizontal lines.
14414 \begin_layout Standard
14415 \begin_inset Float table
14420 \begin_layout Standard
14421 \begin_inset Caption
14423 \begin_layout Standard
14424 \begin_inset LatexCommand label
14425 name "tab:Table-with-colored"
14429 Table with colored lines
14437 \begin_layout Standard
14439 \begin_inset Tabular
14440 <lyxtabular version="3" rows="3" columns="3">
14442 <column alignment="center" valignment="top" width="0" special="Wc">
14443 <column alignment="center" valignment="top" width="0" special="Wc">
14444 <column alignment="center" valignment="top" width="0" special="WcW">
14445 <row topline="true">
14446 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14449 \begin_layout Standard
14455 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14458 \begin_layout Standard
14464 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14467 \begin_layout Standard
14474 <row topline="true">
14475 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14478 \begin_layout Standard
14484 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14487 \begin_layout Standard
14493 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14496 \begin_layout Standard
14503 <row topline="true" bottomline="true" topspace="default">
14504 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14507 \begin_layout Standard
14513 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14516 \begin_layout Standard
14522 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14525 \begin_layout Standard
14544 \begin_layout Standard
14548 \begin_layout Standard
14564 \begin_layout Standard
14568 \begin_layout Standard
14574 arrayrulewidth}{0.4pt}
14582 \begin_layout Section
14583 Table Customization
14584 \begin_inset LatexCommand index
14585 name "Table Customization"
14590 \begin_inset LatexCommand index
14591 name "Table ! Customization"
14598 \begin_layout Subsection
14600 \begin_inset LatexCommand label
14601 name "sub:Row-Spacing"
14606 \begin_inset LatexCommand index
14607 name "Table Customization ! Row Spacing"
14614 \begin_layout Standard
14615 You can add vertical space to table rows in the
14619 tab of the table dialog.
14620 You find there three possibilities:
14623 \begin_layout Description
14626 row will add space above the characters of the table row.
14627 If the table is a formal table
14631 \begin_layout Standard
14632 Formal tables are explained in section\InsetSpace ~
14634 \begin_inset LatexCommand ref
14635 reference "sec:Formal-Tables"
14644 LyX will insert as default 0.5\InsetSpace \thinspace{}
14646 For normal tables the inserted space will unfortunately destroy the vertical
14647 table lines as in the following table:
14648 \begin_inset VSpace defskip
14657 \begin_layout Standard
14669 \begin_inset Tabular
14670 <lyxtabular version="3" rows="3" columns="1">
14672 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14673 <row topline="true">
14674 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14677 \begin_layout Standard
14684 <row topline="true" topspace="3mm">
14685 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14688 \begin_layout Standard
14689 3\InsetSpace \thinspace{}
14690 mm space top of row
14696 <row topline="true" bottomline="true">
14697 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14700 \begin_layout Standard
14717 \begin_layout Standard
14727 \begin_inset VSpace defskip
14732 So inserting space to the top of row for normal tables is only useful when
14733 you don't have vertical lines.
14736 \begin_layout Description
14737 Bottom\InsetSpace ~
14739 row will add space below the characters of the table row.
14740 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
14742 normal tables the default size is 2\InsetSpace \thinspace{}
14746 \begin_layout Description
14747 Between\InsetSpace ~
14748 rows adds space between the current and the following row.
14749 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
14751 For normal tables the inserted space will unfortunately destroy the vertical
14752 table lines as in the following table:
14753 \begin_inset VSpace defskip
14762 \begin_layout Standard
14774 \begin_inset Tabular
14775 <lyxtabular version="3" rows="3" columns="1">
14777 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14778 <row topline="true">
14779 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14782 \begin_layout Standard
14789 <row topline="true" interlinespace="3mm">
14790 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14793 \begin_layout Standard
14794 \begin_inset Formula $\downarrow$
14797 3\InsetSpace \thinspace{}
14798 mm space between row
14799 \begin_inset Formula $\downarrow$
14808 <row topline="true" bottomline="true">
14809 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14812 \begin_layout Standard
14813 \begin_inset Formula $\uparrow$
14816 3\InsetSpace \thinspace{}
14817 mm space between row
14818 \begin_inset Formula $\uparrow$
14837 \begin_layout Standard
14847 \begin_inset VSpace defskip
14852 So inserting space between rows for normal tables is only useful when you
14853 don't have vertical lines.
14856 \begin_layout Standard
14857 When you want to add extra height to all cells of all tables, you can do
14858 this with the following preamble line:
14861 \begin_layout Standard
14868 extrarowheight}{height}
14871 \begin_layout Standard
14872 But this has the disadvantage that the cell texts are no longer exactly
14873 vertically centered.
14876 \begin_layout Subsection
14877 Special Cell Alignment
14878 \begin_inset LatexCommand index
14879 name "Table Customization ! Special Cell Alignment"
14886 \begin_layout Standard
14887 Sometimes it looks better when the cell entries of a column are aligned
14888 with a special character, e.\InsetSpace \thinspace{}
14890 with the decimal separator as in Table\InsetSpace ~
14892 \begin_inset LatexCommand ref
14893 reference "tab:Table-cells-of"
14900 \begin_layout Standard
14901 \begin_inset Float table
14907 \begin_layout Standard
14908 \begin_inset Caption
14910 \begin_layout Standard
14911 \begin_inset LatexCommand label
14912 name "tab:Table-cells-of"
14916 Table cells of a column aligned with the decimal separator.
14924 \begin_layout Standard
14926 \begin_inset Tabular
14927 <lyxtabular version="3" rows="4" columns="2">
14929 <column alignment="right" valignment="top" width="0">
14930 <column alignment="left" valignment="top" width="0" special="@{}l">
14931 <row bottomline="true">
14932 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
14935 \begin_layout Standard
14941 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14944 \begin_layout Standard
14952 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14955 \begin_layout Standard
14961 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14964 \begin_layout Standard
14972 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14975 \begin_layout Standard
14981 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14984 \begin_layout Standard
14992 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14995 \begin_layout Standard
15001 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15004 \begin_layout Standard
15023 \begin_layout Standard
15024 This table was created with a 4×2 table.
15025 The heading is a centered multicolumn.
15026 The first column is right-aligned and contains the digits before the decimal
15027 point and the decimal point.
15028 The second column is left aligned and contains the digits after the decimal
15030 To omit the space that is normally between two table columns, use the following
15031 LaTeX-argument for the second column:
15034 \begin_layout Standard
15040 \begin_layout Standard
15043 \begin_inset LatexCommand ref
15044 reference "tab:Several-table-cell"
15048 shows some example alignments.
15049 For the alignment with the relation sign, you must add the second smallest
15050 math-space at the beginning of the last column to get the correct space
15051 surrounding the relation sign.
15054 \begin_layout Standard
15055 \begin_inset Float table
15060 \begin_layout Standard
15061 \begin_inset Caption
15063 \begin_layout Standard
15064 \begin_inset LatexCommand label
15065 name "tab:Several-table-cell"
15069 Several table cell alignments.
15077 \begin_layout Standard
15079 \begin_inset Tabular
15080 <lyxtabular version="3" rows="4" columns="6">
15082 <column alignment="right" valignment="top" width="0">
15083 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15084 <column alignment="right" valignment="top" width="0">
15085 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15086 <column alignment="right" valignment="top" width="0">
15087 <column alignment="left" valignment="top" width="0" special="@{}l">
15088 <row bottomline="true">
15089 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15092 \begin_layout Standard
15098 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15101 \begin_layout Standard
15107 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15110 \begin_layout Standard
15116 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15119 \begin_layout Standard
15125 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15128 \begin_layout Standard
15134 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15137 \begin_layout Standard
15145 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15148 \begin_layout Standard
15154 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15157 \begin_layout Standard
15158 24\InsetSpace \thinspace{}
15164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15167 \begin_layout Standard
15168 \begin_inset Formula $10\cdot$
15176 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15179 \begin_layout Standard
15180 \begin_inset Formula $10^{\mbox{-}17}$
15188 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15191 \begin_layout Standard
15192 \begin_inset Formula $\Gamma(t)\propto$
15200 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15203 \begin_layout Standard
15204 \begin_inset Formula $\:\Upsilon(t)$
15214 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15217 \begin_layout Standard
15223 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15226 \begin_layout Standard
15227 768\InsetSpace \thinspace{}
15233 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15236 \begin_layout Standard
15237 \begin_inset Formula $5.78\cdot$
15245 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15248 \begin_layout Standard
15249 \begin_inset Formula $10^{7}$
15257 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15260 \begin_layout Standard
15261 \begin_inset Formula $A\ne$
15269 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15272 \begin_layout Standard
15273 \begin_inset Formula $\: B_{\mathrm{red}}$
15283 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15286 \begin_layout Standard
15292 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15295 \begin_layout Standard
15296 6\InsetSpace \thinspace{}
15302 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15305 \begin_layout Standard
15307 \begin_inset Formula $33.5\cdot$
15315 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15318 \begin_layout Standard
15319 \begin_inset Formula $10^{4}$
15327 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15330 \begin_layout Standard
15331 \begin_inset Formula $\sin(\alpha)\ge$
15339 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15342 \begin_layout Standard
15343 \begin_inset Formula $\:\sin(\beta)$
15364 \begin_layout Standard
15365 \begin_inset VSpace bigskip
15368 There is also the LaTeX-package
15373 \begin_inset LatexCommand index
15374 name "LaTeX-packages ! dcolumn"
15378 that provides table cell alignments.
15379 But this unfortunately treats the cell entries as math and doesn't allow
15380 formulas in table cells: The first column of Table\InsetSpace ~
15382 \begin_inset LatexCommand ref
15383 reference "tab:Several-table-cell"
15391 like the first column in Table\InsetSpace ~
15393 \begin_inset LatexCommand ref
15394 reference "tab:Alignments-when"
15398 and only with some tricks like the expected.
15399 The alignment of the second and third column of Table\InsetSpace ~
15401 \begin_inset LatexCommand ref
15402 reference "tab:Several-table-cell"
15406 is not possible with
15413 \begin_layout Standard
15414 \begin_inset Float table
15420 \begin_layout Standard
15421 \begin_inset Caption
15423 \begin_layout Standard
15424 \begin_inset LatexCommand label
15425 name "tab:Alignments-when"
15429 Alignments when LaTeX-package dcolumn is used.
15430 For all column alignments tricks have to be used to get the output.
15438 \begin_layout Standard
15440 \begin_inset Tabular
15441 <lyxtabular version="3" rows="4" columns="3">
15443 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{-1}">
15444 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{4.9}">
15445 <column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
15446 <row bottomline="true">
15447 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15450 \begin_layout Standard
15456 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15459 \begin_layout Standard
15465 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15468 \begin_layout Standard
15476 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15479 \begin_layout Standard
15480 12x24\InsetSpace \thinspace{}
15486 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15489 \begin_layout Standard
15490 12x24\InsetSpace \thinspace{}
15492 \begin_inset Formula $\mbox{bottles}$
15500 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15503 \begin_layout Standard
15508 \begin_layout Standard
15518 \begin_inset Formula $\mbox{bottles}$
15528 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15531 \begin_layout Standard
15532 1024x768\InsetSpace \thinspace{}
15538 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15541 \begin_layout Standard
15542 1024x768\InsetSpace \thinspace{}
15544 \begin_inset Formula $\mbox{Pixels}$
15552 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15555 \begin_layout Standard
15560 \begin_layout Standard
15570 \begin_inset Formula $\mbox{Pixels}$
15580 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15583 \begin_layout Standard
15584 32x6\InsetSpace \thinspace{}
15590 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15593 \begin_layout Standard
15594 32x6\InsetSpace \thinspace{}
15596 \begin_inset Formula $\mbox{cm}$
15604 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15607 \begin_layout Standard
15612 \begin_layout Standard
15622 \begin_inset Formula $\mbox{cm}$
15643 \begin_layout Subsection
15644 Customized Cell/Column Format
15645 \begin_inset LatexCommand label
15646 name "sub:Customized-Format"
15651 \begin_inset LatexCommand index
15652 name "Table Customization ! Cell/Column Format"
15659 \begin_layout Standard
15660 Calculating the needed width for spanned columns like in section\InsetSpace ~
15662 \begin_inset LatexCommand ref
15663 reference "sub:Multicolumn-Calculations"
15667 is very annoying if you have several tables with multicolumn cells.
15668 To make life easier, you can define a cell/column format in the preamble,
15669 so that it can be used in all tables of the document.
15670 The format is defined with the command
15673 \begin_layout Standard
15678 newcolumntype{name of format}[number of arguments]{commands}
15681 \begin_layout Standard
15682 The format name may only consist of one letter.
15707 are predefined and cannot be used.
15708 But all letters are allowed as capitals.
15711 \begin_layout Standard
15712 \begin_inset VSpace medskip
15718 \begin_layout Standard
15719 For vertically and horizontally centered multicolumn cells with a fixed
15720 width you can define the cell format
15723 \begin_layout Standard
15728 newcolumntype{M}[1]{>{
15735 \begin_layout Standard
15742 avoids the problem of hyphenating the first word, as described in section\InsetSpace ~
15744 \begin_inset LatexCommand ref
15745 reference "sub:Multiple-Lines-in"
15750 Now you can simply enter
15753 \begin_layout Standard
15759 \begin_layout Standard
15760 as LaTeX-argument in the table dialog to create a multicolumn.
15763 \begin_layout Standard
15764 \begin_inset VSpace bigskip
15770 \begin_layout Standard
15771 For cells spanned by a multicolumn cell, you can define the format
15774 \begin_layout Standard
15779 newcolumntype{S}[2]{>{
15789 \begin_layout Standard
15800 newcolumntype{S}[2]
15804 \begin_layout Standard
15815 arrayrulewidth)*(1-#2))/#2}}
15818 \begin_layout Standard
15819 This format uses equation
15820 \begin_inset LatexCommand eqref
15825 to calculate the needed width so that each spanned cell has the same width.
15828 \begin_layout Standard
15832 \begin_layout Standard
15835 S{width of multicolumn cell}{number of spanned columns}
15838 \begin_layout Standard
15839 as LaTeX-argument of the column.
15842 \begin_layout Standard
15843 \begin_inset VSpace bigskip
15849 \begin_layout Standard
15850 For colored columns, you can define
15853 \begin_layout Standard
15858 newcolumntype{K}[1]{>{
15865 \begin_layout Standard
15867 \begin_inset Quotes eld
15871 \begin_inset Quotes erd
15874 at the end creates a column with a flexible width whose text is horizontally
15879 \begin_layout Standard
15885 \begin_layout Standard
15889 \begin_layout Standard
15890 \begin_inset VSpace bigskip
15896 \begin_layout Standard
15897 To create Table\InsetSpace ~
15899 \begin_inset LatexCommand ref
15900 reference "tab:Table-using-user-defined"
15904 use the LaTeX-arguments
15907 \begin_layout Standard
15913 \begin_layout Standard
15914 for the first column and the multicolumn,
15917 \begin_layout Standard
15923 \begin_layout Standard
15924 for the the last column, and
15927 \begin_layout Standard
15933 \begin_layout Standard
15934 for the cells in the second column.
15937 \begin_layout Standard
15938 \begin_inset Float table
15944 \begin_layout Standard
15945 \begin_inset Caption
15947 \begin_layout Standard
15948 \begin_inset LatexCommand label
15949 name "tab:Table-using-user-defined"
15953 Table using user-defined table formats
15961 \begin_layout Standard
15963 \begin_inset Tabular
15964 <lyxtabular version="3" rows="3" columns="4">
15966 <column alignment="center" valignment="middle" leftline="true" width="2.5cm" special="M{2.5cm}">
15967 <column alignment="center" valignment="middle" leftline="true" width="0" special="S{2.5cm}{2}">
15968 <column alignment="center" valignment="middle" leftline="true" width="0">
15969 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0" special="K{red}">
15970 <row topline="true">
15971 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15974 \begin_layout Standard
15975 verylongtablecellword
15980 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none" special="M{2.5cm}">
15983 \begin_layout Standard
15984 multiple lines multicolumn
15989 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15992 \begin_layout Standard
15998 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16001 \begin_layout Standard
16008 <row topline="true">
16009 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16012 \begin_layout Standard
16018 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16021 \begin_layout Standard
16027 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16030 \begin_layout Standard
16036 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16039 \begin_layout Standard
16046 <row topline="true" bottomline="true">
16047 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16050 \begin_layout Standard
16056 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16059 \begin_layout Standard
16065 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16068 \begin_layout Standard
16074 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16077 \begin_layout Standard
16096 \begin_layout Subsection
16098 \begin_inset LatexCommand label
16099 name "sub:Line-Thickness"
16104 \begin_inset LatexCommand index
16105 name "Table Customization ! Line Thickness"
16112 \begin_layout Standard
16113 The line thickness for all lines in a table can be adjusted with the length
16121 To set for example a line thickness of 1.5\InsetSpace \thinspace{}
16122 pt, like in Table\InsetSpace ~
16124 \begin_inset LatexCommand ref
16125 reference "tab:Table-with-1.5"
16129 , insert the command
16132 \begin_layout Standard
16139 arrayrulewidth}{1.5pt}
16142 \begin_layout Standard
16143 in ERT before the table or table float.
16144 The changed thickness is valid for all following tables.
16145 To use the default value again, set
16151 to 0.4\InsetSpace \thinspace{}
16152 pt in ERT behind the table or table float.
16155 \begin_layout Standard
16159 \begin_layout Standard
16165 arrayrulewidth}{1.5pt}
16171 \begin_inset Float table
16176 \begin_layout Standard
16177 \begin_inset Caption
16179 \begin_layout Standard
16180 \begin_inset LatexCommand label
16181 name "tab:Table-with-1.5"
16185 Table with 1.5\InsetSpace \thinspace{}
16194 \begin_layout Standard
16196 \begin_inset Tabular
16197 <lyxtabular version="3" rows="3" columns="3">
16199 <column alignment="center" valignment="top" leftline="true" width="0">
16200 <column alignment="center" valignment="top" leftline="true" width="0">
16201 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16202 <row topline="true">
16203 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16206 \begin_layout Standard
16212 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16215 \begin_layout Standard
16221 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16224 \begin_layout Standard
16231 <row topline="true">
16232 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16235 \begin_layout Standard
16241 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16244 \begin_layout Standard
16250 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16253 \begin_layout Standard
16260 <row topline="true" bottomline="true">
16261 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16264 \begin_layout Standard
16270 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16273 \begin_layout Standard
16279 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16282 \begin_layout Standard
16302 \begin_layout Standard
16308 arrayrulewidth}{0.4pt}
16316 \begin_layout Standard
16317 \begin_inset VSpace bigskip
16320 To set the line thickness to 1.5\InsetSpace \thinspace{}
16321 pt only for horizontal lines, like in Table\InsetSpace ~
16323 \begin_inset LatexCommand ref
16324 reference "tab:Table-with-horizontal"
16328 , insert these commands in ERT before the table or table float:
16331 \begin_layout Standard
16354 arrayrulewidth 1.5pt}
16364 arrayrulewidth 0.4pt}}
16367 \begin_layout Standard
16368 To return to the default line thickness, insert this command in ERT behind
16369 the table or table float:
16372 \begin_layout Standard
16384 \begin_layout Standard
16388 \begin_layout Standard
16399 \begin_layout Standard
16408 \begin_layout Standard
16416 arrayrulewidth 1.5pt}
16419 \begin_layout Standard
16429 arrayrulewidth 0.4pt}}
16435 \begin_inset Float table
16440 \begin_layout Standard
16441 \begin_inset Caption
16443 \begin_layout Standard
16444 \begin_inset LatexCommand label
16445 name "tab:Table-with-horizontal"
16449 Table with 1.5\InsetSpace \thinspace{}
16450 pt thick horizontal lines
16458 \begin_layout Standard
16460 \begin_inset Tabular
16461 <lyxtabular version="3" rows="3" columns="3">
16463 <column alignment="center" valignment="top" leftline="true" width="0">
16464 <column alignment="center" valignment="top" leftline="true" width="0">
16465 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16466 <row topline="true">
16467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16470 \begin_layout Standard
16476 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16479 \begin_layout Standard
16485 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16488 \begin_layout Standard
16495 <row topline="true">
16496 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16499 \begin_layout Standard
16505 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16508 \begin_layout Standard
16514 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16517 \begin_layout Standard
16524 <row topline="true" bottomline="true">
16525 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16528 \begin_layout Standard
16534 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16537 \begin_layout Standard
16543 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16546 \begin_layout Standard
16566 \begin_layout Standard
16582 \begin_layout Standard
16583 \begin_inset VSpace bigskip
16586 To set the line thickness to 1.5\InsetSpace \thinspace{}
16587 pt only for vertical lines, create the following
16588 column format in the document preamble, according to the description in
16589 section\InsetSpace ~
16591 \begin_inset LatexCommand ref
16592 reference "sub:Customized-Format"
16599 \begin_layout Standard
16604 newcolumntype{V}{!{
16606 vrule width 1.5pt}}
16609 \begin_layout Standard
16610 For Table\InsetSpace ~
16612 \begin_inset LatexCommand ref
16613 reference "tab:Table-with-vertical"
16620 \begin_layout Standard
16626 \begin_layout Standard
16627 was used for the last column and
16630 \begin_layout Standard
16636 \begin_layout Standard
16637 for the other columns.
16640 \begin_layout Standard
16641 \begin_inset Float table
16646 \begin_layout Standard
16647 \begin_inset Caption
16649 \begin_layout Standard
16650 \begin_inset LatexCommand label
16651 name "tab:Table-with-vertical"
16655 Table with 1.5\InsetSpace \thinspace{}
16656 pt thick vertical lines
16664 \begin_layout Standard
16666 \begin_inset Tabular
16667 <lyxtabular version="3" rows="3" columns="3">
16669 <column alignment="center" valignment="top" width="0" special="Vc">
16670 <column alignment="center" valignment="top" width="0" special="Vc">
16671 <column alignment="center" valignment="top" width="0" special="VcV">
16672 <row topline="true">
16673 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16676 \begin_layout Standard
16682 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16685 \begin_layout Standard
16691 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16694 \begin_layout Standard
16701 <row topline="true">
16702 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16705 \begin_layout Standard
16711 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16714 \begin_layout Standard
16720 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16723 \begin_layout Standard
16730 <row topline="true" bottomline="true">
16731 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16734 \begin_layout Standard
16740 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16743 \begin_layout Standard
16749 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16752 \begin_layout Standard
16771 \begin_layout Subsection
16773 \begin_inset LatexCommand index
16774 name "Table Customization ! Dashed Lines"
16781 \begin_layout Standard
16785 \begin_layout Standard
16795 \begin_inset Note Note
16798 \begin_layout Standard
16799 The following section will only be displayed when you have the LaTeX-package
16812 \begin_layout Standard
16813 \begin_inset Float table
16819 \begin_layout Standard
16820 \begin_inset Caption
16822 \begin_layout Standard
16823 \begin_inset LatexCommand label
16824 name "tab:Table-with-dashed"
16828 Table with dashed lines
16836 \begin_layout Standard
16838 \begin_inset Tabular
16839 <lyxtabular version="3" rows="5" columns="5">
16841 <column alignment="center" valignment="top" leftline="true" width="0">
16842 <column alignment="center" valignment="top" leftline="true" width="0">
16843 <column alignment="center" valignment="top" width="0" special=":c">
16844 <column alignment="center" valignment="top" leftline="true" width="0">
16845 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16846 <row topline="true" bottomline="true">
16847 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16850 \begin_layout Standard
16856 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16859 \begin_layout Standard
16865 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16868 \begin_layout Standard
16874 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16877 \begin_layout Standard
16883 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16886 \begin_layout Standard
16893 <row topline="true">
16894 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16897 \begin_layout Standard
16903 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16906 \begin_layout Standard
16912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16915 \begin_layout Standard
16921 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16924 \begin_layout Standard
16930 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16933 \begin_layout Standard
16941 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16944 \begin_layout Standard
16948 \begin_layout Standard
16962 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16965 \begin_layout Standard
16971 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16974 \begin_layout Standard
16980 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16983 \begin_layout Standard
16989 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16992 \begin_layout Standard
16999 <row topline="true">
17000 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17003 \begin_layout Standard
17007 \begin_layout Standard
17021 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17024 \begin_layout Standard
17030 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="c:">
17033 \begin_layout Standard
17039 <cell multicolumn="1" alignment="center" valignment="top" rightline="true" usebox="none" special="c:">
17042 \begin_layout Standard
17048 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17051 \begin_layout Standard
17058 <row topline="true" bottomline="true">
17059 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17062 \begin_layout Standard
17068 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17071 \begin_layout Standard
17077 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17080 \begin_layout Standard
17086 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17089 \begin_layout Standard
17095 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17098 \begin_layout Standard
17117 \begin_layout Standard
17118 LyX doesn't natively support dashed lines, so you have to use ERT.
17119 As prerequisite the LaTeX-package
17124 \begin_inset LatexCommand index
17125 name "LaTeX-packages ! arydshln"
17129 must be loaded in the document preamble with the command
17132 \begin_layout Standard
17137 usepackage{arydshln}
17140 \begin_layout Standard
17141 To make a vertical line dashed, enter the colon
17142 \begin_inset Quotes eld
17146 \begin_inset Quotes erd
17149 together with the character for the horizontal alignment as LaTeX-argument
17150 in the table cell dialog.
17153 \begin_layout Standard
17154 For a horizontal dashed line add the command
17157 \begin_layout Standard
17165 \begin_layout Standard
17166 in ERT as first element of the first cell in the table row.
17169 \begin_layout Standard
17170 For dashed multicolumn lines use the command
17173 \begin_layout Standard
17178 cdashline{line number
17183 \begin_layout Standard
17184 in ERT as first element of the first cell in the table row.
17185 If you have for example a multicolumn spanning over columns 2 to 4 and
17186 you want to have a dashed line above, add the command
17189 \begin_layout Standard
17197 \begin_layout Standard
17198 as first element of the first cell in the row of the multicolumn.
17201 \begin_layout Standard
17202 \begin_inset VSpace bigskip
17208 \begin_layout Standard
17211 \begin_inset LatexCommand ref
17212 reference "tab:Table-with-dashed"
17217 \begin_inset Quotes eld
17225 \begin_inset Quotes erd
17228 as LaTeX-argument of the third column.
17235 was inserted to the first cell of the third row and the the ERT command
17244 was inserted to the first cell of the fourth row.
17247 \begin_layout Standard
17248 \begin_inset Note Greyedout
17251 \begin_layout Standard
17256 The used LaTeX-package
17260 is apparently not compatible with the LaTeX-package
17265 \begin_inset LatexCommand index
17266 name "LaTeX-packages ! colortbl"
17270 that is used for colored tables in section\InsetSpace ~
17272 \begin_inset LatexCommand ref
17273 reference "sec:Colored-Tables"
17278 That means colored tables cannot have dashed lines.
17286 \begin_layout Standard
17290 \begin_layout Standard
17300 \begin_inset Note Note
17303 \begin_layout Standard
17304 The following will be displayed when the LaTeX-package
17316 \begin_layout Standard
17317 You need to install the package
17321 to see the contents of this section in the output.
17324 \begin_layout Standard
17328 \begin_layout Standard
17340 \begin_layout Chapter
17342 \begin_inset LatexCommand index
17348 \begin_inset LatexCommand label
17356 \begin_layout Section
17358 \begin_inset LatexCommand label
17359 name "sec:FloatIntroduction"
17364 \begin_inset LatexCommand index
17365 name "Floats ! Introduction"
17372 \begin_layout Standard
17373 A float is a block of text associated with some sort of label, which doesn't
17374 have a fixed location.
17376 \begin_inset Quotes eld
17380 \begin_inset Quotes erd
17383 forward or backward a page or two, to wherever it fits best.
17390 Margin\InsetSpace ~
17393 are also floats, because they can float to the next page when there are
17394 too many notes at the page.
17397 \begin_layout Standard
17398 Floats allow a high quality layout.
17399 Images and tables can evenly be spread to the pages to avoid white space
17400 and pages without text.
17401 As the floating often destroys the context between the text and the image/table
17402 , every float can be referenced in the text.
17403 Floats are therefore numbered.
17404 Referencing is described in section\InsetSpace ~
17406 \begin_inset LatexCommand ref
17407 reference "sec:Referencing-Floats"
17414 \begin_layout Standard
17415 To insert a float, use the menu
17417 Insert\SpecialChar \menuseparator
17421 This inserts a box with a label in the
17429 \begin_layout Standard
17434 environment is described in LyX's
17443 into your document.
17444 Every label ends with the character
17445 \begin_inset Quotes eld
17449 \begin_inset Quotes erd
17452 as placeholder for the float number in the output.
17453 The label will automatically be translated to the document language in
17455 Behind the label you can insert the caption text.
17456 The image or table is inserted above or below the caption in a separate
17457 paragraph within the float.
17458 More about the caption placement is described in section\InsetSpace ~
17460 \begin_inset LatexCommand ref
17461 reference "sec:Caption-Placement"
17466 To keep your LyX-document readable, you can open and close the float box
17467 by left-clicking on the box label.
17468 A closed float box looks like this:
17469 \begin_inset Graphics
17470 filename clipart/floatQt4.png
17475 -- a gray button with a red label.
17478 \begin_layout Standard
17479 It is recommended to insert floats as a separate paragraph to avoid possible
17480 LaTeX-errors that can occur when the surrounding text is specially formatted.
17483 \begin_layout Standard
17484 Existing figures or tables can be put into a float by marking them and then
17485 pressing the corresponding toolbar button for a new float.
17488 \begin_layout Section
17492 \begin_layout Standard
17493 Besides figure and table floats that are described in section\InsetSpace ~
17495 \begin_inset LatexCommand ref
17496 reference "sec:Figure-Floats"
17501 \begin_inset LatexCommand ref
17502 reference "sec:Table-Floats"
17506 , respectively, LyX offers the float types
17519 \begin_layout Subsection
17521 \begin_inset LatexCommand index
17522 name "Floats ! Algorithm Floats"
17529 \begin_layout Standard
17530 \begin_inset Float algorithm
17536 \begin_layout Standard
17537 \begin_inset Caption
17539 \begin_layout Standard
17540 \begin_inset LatexCommand label
17541 name "alg:Example-Algorithm-float"
17545 Example Algorithm float
17553 \begin_layout LyX-Code
17556 Sum:= Sum + A(I); /*senseless comment*/
17559 \begin_inset VSpace -4mm
17570 \begin_layout Standard
17571 This float type is inserted with the menu
17573 Insert\SpecialChar \menuseparator
17574 Floats\SpecialChar \menuseparator
17578 It is used for program codes and descriptions of algorithms.
17579 A possible environment for algorithms is the
17583 , described in LyX's
17588 Algorithm\InsetSpace ~
17590 \begin_inset LatexCommand ref
17591 reference "alg:Example-Algorithm-float"
17595 is an example of an algorithm float where -4\InsetSpace \thinspace{}
17596 mm vertical space was added
17597 at the end of the float to have the bottom rule exactly below the last
17601 \begin_layout Standard
17602 The float label is not automatically translated into the document language.
17603 If your document is not in English, you have to do this manually by adding
17604 the following line to the document preamble
17609 \begin_layout Standard
17614 floatname{algorithm}{your\InsetSpace ~
17618 \begin_layout Standard
17625 \begin_inset Quotes eld
17633 \begin_inset Quotes erd
17639 \begin_layout Description
17644 When the LaTeX-package
17649 \begin_inset LatexCommand index
17650 name "LaTeX-packages ! hyperref"
17654 is used to link cross-references to floats in the PDF-output, it must be
17655 loaded in the document preamble before the definition of floats to be able
17656 to reference floats.
17657 As LyX sets the float definition for algorithm floats automatically before
17658 the user editable part of the document preamble, you need to insert the
17659 following preamble lines
17663 the loading command of
17670 \begin_inset VSpace defskip
17677 newfloat{Xalgorithm}{tbp}{loa}
17681 floatname{Xalgorithm}{your\InsetSpace ~
17694 renewenvironment{algorithm}[1][tbp]
17700 \begin_layout Standard
17711 begin{Xalgorithm}[#1]}{
17714 \begin_inset VSpace defskip
17727 \begin_inset Quotes eld
17735 \begin_inset Quotes erd
17741 \begin_layout Standard
17742 Algorithm floats are not by default numbered in the scheme
17743 \begin_inset Quotes eld
17747 \begin_inset Quotes erd
17750 like it is the case for table and figure floats in many document-classes.
17751 To number algorithm floats in the same scheme, add this command to your
17755 \begin_layout Standard
17760 numberwithin{algorithm}{chapter}
17763 \begin_layout Standard
17764 If you use the LaTeX-package
17768 , add this line instead
17776 (the commands from above) to the preamble:
17779 \begin_layout Standard
17784 numberwithin{Xalgorithm}{chapter}
17787 \begin_layout Standard
17788 To be able to use the command
17799 in the document settings the option
17809 \begin_layout Subsection
17811 \begin_inset LatexCommand index
17812 name "Floats ! Text Wrap Floats"
17817 \begin_inset LatexCommand label
17818 name "sub:floatflt-wrap-float"
17825 \begin_layout Standard
17826 This float type is used if you want to
17827 \begin_inset Quotes eld
17831 \begin_inset Quotes erd
17834 text around a figure so that it only occupies some fraction of the column
17836 It can be inserted using the menu
17837 \begin_inset Wrap figure
17842 \begin_layout Standard
17843 \begin_inset Graphics
17844 filename clipart/mobius.eps
17847 rotateOrigin center
17854 \begin_layout Standard
17855 \begin_inset Caption
17857 \begin_layout Standard
17858 \begin_inset LatexCommand label
17859 name "fig:This-is-a"
17863 This is a wrapped figure, and this is the brilliant caption that describes
17865 \begin_inset VSpace medskip
17880 Insert\SpecialChar \menuseparator
17881 Floats\SpecialChar \menuseparator
17886 if the LaTeX-package
17891 \begin_inset LatexCommand index
17892 name "LaTeX-packages ! floatflt"
17900 \begin_layout Standard
17901 Installing a LaTeX-package is explained it in the
17911 The width and placement of the float is adjusted by right-clicking on the
17913 Figure\InsetSpace ~
17915 \begin_inset LatexCommand ref
17916 reference "fig:This-is-a"
17920 is an example text wrap float with a width of 40
17921 \begin_inset Formula $\,$
17928 \begin_layout Standard
17929 Available units are explained in
17930 \begin_inset LatexCommand ref
17931 reference "cha:Units-available-in"
17940 Some space was added under the caption to separate it better from the surroundi
17944 \begin_layout Standard
17949 also supports table wrap floats, but they are not yet supported by LyX.
17950 If you need this, read the documentation of
17955 \begin_inset LatexCommand cite
17963 \begin_layout Standard
17964 \begin_inset Note Greyedout
17967 \begin_layout Standard
17973 wrap float floats are fragile! E.\InsetSpace \thinspace{}
17975 having a figure too close to the bottom
17976 of the page can mess things up in the way that the float doesn't appear
17977 in the output or that it is placed over some other text.
17981 \begin_layout Standard
17982 The better solution is to use the LaTeX-package
17984 wrapf\SpecialChar \textcompwordmark{}
17988 \begin_inset LatexCommand index
17989 name "LaTeX-packages ! wrapfig\\vspace{4mm}"
17995 floatf\SpecialChar \textcompwordmark{}
17998 , but it is currently not supported by LyX.
18011 \begin_layout Standard
18015 \begin_layout Itemize
18016 Wrap floats should not be placed in paragraphs that run over a page break.
18017 That means that wrap floats should better be inserted to the exact place
18018 when the document is nearly ready and you are able to estimate where page
18019 breaks will appear.
18022 \begin_layout Itemize
18023 Wrap floats should either be placed in an own paragraph before the paragraph
18024 where they should wrap into or within a paragraph.
18027 \begin_layout Itemize
18028 Wrap floats in consecutive paragraphs may cause troubles, so assure that
18029 there is a text paragraph between them as separator.
18032 \begin_layout Itemize
18033 Wrap floats are not allowed in section headings or tables.
18036 \begin_layout Section
18038 \begin_inset LatexCommand label
18039 name "sec:Referencing-Floats"
18044 \begin_inset LatexCommand index
18045 name "Floats ! References"
18050 \begin_inset LatexCommand index
18058 \begin_layout Standard
18059 To reference a float, insert a label into its caption using the menu
18061 Insert\SpecialChar \menuseparator
18064 or the toolbar button
18065 \begin_inset Graphics
18066 filename ../images/label-insert.xpm
18072 A grey label box like this one:
18073 \begin_inset Graphics
18074 filename clipart/labelQt4.png
18079 will be inserted and the label window pops up asking for the label text.
18080 LyX offers as text the first words of the caption with a prefix.
18081 The prefix depends on the float type, e.\InsetSpace \thinspace{}
18083 for figure floats the prefix will
18091 \begin_layout Standard
18092 The label is used as anchor and name for the reference.
18093 You can refer to the label using the menu
18095 Insert\SpecialChar \menuseparator
18098 or the toolbar button
18099 \begin_inset Graphics
18100 filename ../images/dialog-show-new-inset_ref.xpm
18106 A grey cross-reference box like this one:
18107 \begin_inset Graphics
18108 filename clipart/referenceQt4.png
18113 will be inserted and the cross-reference window appear showing all labels
18115 If you have multiple LyX-documents opened, choose the one you are working
18116 on from the drop-list at the top of the dialog.
18117 You can now sort the labels alphabetically and then choose one.
18118 At the position of the cross-reference box the float number will appear
18122 \begin_layout Standard
18123 It is recommended to use a protected space between the cross-reference name
18124 and its number to avoid line breaks between them.
18125 If a cross-reference refers to a non-existing label, you will see two question
18126 marks in the output instead of the reference.
18129 \begin_layout Standard
18130 You can change labels at any time by clicking on the label box.
18131 References to the changed label will automatically change its link to the
18132 new label text, so that you don't need to take care about this.
18135 \begin_layout Standard
18142 in the cross-reference window sets the cursor before the referred label.
18143 The button text changes then to Go\InsetSpace ~
18144 Back and you can use it to set the cursor
18145 back to the cross-reference.
18146 Right-clicking on a cross-reference box also sets the cursor before the
18147 referenced label but without a possibility to go back.
18150 \begin_layout Subsection
18151 Cross-Reference Formats
18152 \begin_inset LatexCommand label
18153 name "sub:Cross-Reference-Formats"
18158 \begin_inset LatexCommand index
18159 name "References ! Formats"
18166 \begin_layout Standard
18167 There are six varieties of cross-references:
18170 \begin_layout Description
18171 <reference>: prints the float number, this is the default:
18172 \begin_inset LatexCommand ref
18173 reference "fig:Two-distorted-images"
18180 \begin_layout Description
18181 (<reference>): prints the float number within two parentheses, this is the
18182 style normally used to reference formulas, especially when the reference
18184 \begin_inset Quotes eld
18188 \begin_inset Quotes erd
18192 \begin_inset LatexCommand eqref
18200 \begin_layout Description
18201 <page>: prints the page number: Page\InsetSpace ~
18203 \begin_inset LatexCommand pageref
18204 reference "fig:Two-distorted-images"
18211 \begin_layout Description
18214 <page>: prints the text "on page" and the page number:
18215 \begin_inset LatexCommand vpageref
18216 reference "fig:Two-distorted-images"
18223 \begin_layout Description
18224 <reference>\InsetSpace ~
18227 <page>: prints the float number, the text "on page", and
18229 \begin_inset LatexCommand vref
18230 reference "fig:Two-distorted-images"
18237 \begin_layout Description
18238 Formatted\InsetSpace ~
18239 reference: prints a self defined cross-reference format.
18241 \begin_inset Note Greyedout
18244 \begin_layout Standard
18249 This feature is only available when you have the LaTeX-package
18261 \begin_layout Standard
18262 Note that the style <page> won't print the page number if the label is on
18263 the previous, the same, or the next page.
18264 You will e.\InsetSpace \thinspace{}
18267 \begin_inset Quotes eld
18275 \begin_inset Quotes erd
18281 \begin_layout Standard
18282 The number and current page of the referred document part in the output,
18283 is automatically calculated by LaTeX.
18284 The varieties are adjusted in the field
18288 of the cross-reference window, that appear when you click on the cross-referenc
18292 \begin_layout Subsection
18293 Referencing Subfigures
18294 \begin_inset LatexCommand label
18295 name "sub:Referencing-Subfigures"
18300 \begin_inset LatexCommand index
18301 name "References ! to Subfigures"
18308 \begin_layout Standard
18309 Currently referencing subfigures is not supported by LyX, so you have to
18310 use LaTeX-commands.
18311 The label is the created with the command
18314 \begin_layout Standard
18319 label{fig:YourLabelName}
18322 \begin_layout Standard
18323 that is directly inserted into the subfigure caption field.
18324 To reference the label add this command in ERT
18327 \begin_layout Standard
18332 ref{fig:YourLabelName}
18335 \begin_layout Standard
18336 to the position in your document where the reference should be placed.
18337 Here is a reference to a subfigure: Subfigure\InsetSpace ~
18342 \begin_layout Standard
18354 \begin_layout Subsection
18355 Automatic Reference Naming
18356 \begin_inset LatexCommand index
18357 name "References ! Automatic Reference Naming"
18364 \begin_layout Standard
18369 provides a very useful feature that cross-references automatically include
18370 the name of the referenced floats (or text parts like sections).
18371 You save to write e.\InsetSpace \thinspace{}
18374 \begin_inset Quotes eld
18378 \begin_inset Quotes erd
18381 before every reference box.
18382 To get this automatic reference naming, you have to load the LaTeX-package
18388 \begin_inset LatexCommand index
18389 name "LaTeX-packages ! hyperref"
18393 in the document preamble with
18396 \begin_layout Standard
18401 usepackage[pdfborder={0 0 0}]{hyperref}
18416 \begin_layout Standard
18421 is used to link cross-references in the DVI- and PDF-output, this means
18422 that the reader of your document will be able to click on a table of content
18423 (TOC) entry or on a reference and he will be shown the referenced document
18429 also creates PDF-bookmarks for every section of your document to make it
18430 easier for readers to navigate through the document.
18431 This is also used in this document but when you have a look in the document
18432 preamble you will find various options in the load command of
18437 To learn more about the
18441 package, we refer to its documentation
18442 \begin_inset LatexCommand cite
18450 \begin_layout Standard
18451 \begin_inset Note Greyedout
18454 \begin_layout Standard
18459 Automatic reference naming cannot be used when you use cross-references
18462 Formatted\InsetSpace ~
18465 style, described in section\InsetSpace ~
18467 \begin_inset LatexCommand ref
18468 reference "sub:Cross-Reference-Formats"
18480 \begin_layout Subsection
18482 \begin_inset LatexCommand label
18483 name "sub:Reference-Position"
18488 \begin_inset LatexCommand index
18489 name "References ! Reference Position"
18496 \begin_layout Standard
18502 \begin_inset LatexCommand index
18503 name "LaTeX-packages ! hyperref"
18507 to link cross-references in the output, you will see that clicking on an
18508 image float reference jumps to the image label.
18509 The caption will be the first text part on the screen, so that you cannot
18510 see the image without scrolling.
18511 This is because the reference link anchor is placed at the position of
18513 With the use of the package
18518 \begin_inset LatexCommand index
18519 name "LaTeX-packages ! hypcap"
18523 , which is part of the LaTeX-package
18528 \begin_inset LatexCommand index
18529 name "LaTeX-packages ! oberdiek"
18533 , the link anchor is placed at the beginning of a float.
18534 To use this feature for figure floats, load
18538 in the document preamble with the line
18541 \begin_layout Standard
18546 usepackage[f\SpecialChar \textcompwordmark{}
18550 \begin_layout Standard
18555 for all floats but this isn't recommended for stability reasons.
18556 For more informations, have a look at
18561 \begin_inset LatexCommand cite
18569 \begin_layout Standard
18570 \begin_inset Note Greyedout
18573 \begin_layout Standard
18582 must be loaded after
18586 in the document preamble.
18594 \begin_layout Standard
18595 \begin_inset Note Greyedout
18598 \begin_layout Standard
18603 The set reference position has no effect for references to subfigures.
18611 \begin_layout Section
18613 \begin_inset LatexCommand label
18614 name "sec:Float-Placement"
18619 \begin_inset LatexCommand index
18620 name "Floats ! Placement"
18627 \begin_layout Standard
18628 Right-clicking on a float-box opens a dialog where you can alter the placement
18629 options that LaTeX uses for positioning the float.
18636 is only useful for two-column documents: If you select it, the float will
18637 span across both columns on the page instead of being confined to just
18642 Rotate\InsetSpace ~
18645 is used to rotate floats, see section
18646 \begin_inset LatexCommand ref
18647 reference "sec:Rotated-Floats"
18654 \begin_layout Standard
18655 You can use one ore more of the following options in the float dialog to
18656 set the placement for a particular float when you uncheck the option
18659 default\InsetSpace ~
18665 \begin_layout Description
18668 possible: try to place the float on the position where it is inserted
18671 \begin_layout Description
18674 page: try to place the float on the top of the current page
18677 \begin_layout Description
18678 Bottom\InsetSpace ~
18680 page: try to place the float on the bottom of the current page
18683 \begin_layout Description
18686 floats: try to place the float on an own page
18689 \begin_layout Standard
18690 The order of the above option is
18695 That means, if you use the default placement, LaTeX will first try out
18708 , and then the others.
18709 If you don't use the default, LaTeX will try only the checked options but
18711 If none of the 4 placements are possible the procedure is internally repeated
18712 but it is tried to put the float on the following page.
18715 \begin_layout Standard
18716 By default, each options has its own rules:
18719 \begin_layout Labeling
18720 \labelwidthstring 00.00.0000
18727 only floats occupying less than 70\InsetSpace \thinspace{}
18728 % of the page can be placed at the top
18738 \begin_layout Labeling
18739 \labelwidthstring 00.00.0000
18742 Bottom\InsetSpace ~
18746 : only floats occupying less than 30\InsetSpace \thinspace{}
18747 % of the page can be placed at the bottom
18758 \begin_layout Labeling
18759 \labelwidthstring 00.00.0000
18766 : only if more than 50\InsetSpace \thinspace{}
18767 % of the page are occupied by floats, several floats
18768 can be set together on a page.
18778 \begin_layout Standard
18779 If you don't like these rules, you can ignore them by using the additional
18782 Ignore\InsetSpace ~
18788 You can also redefine the rules with LaTeX-commands that are given in parenthese
18789 s behind the rules description above.
18790 To increase for example the often too small default of the bottom-rule
18791 to 50\InsetSpace \thinspace{}
18792 % of the page, add this line to your document preamble:
18795 \begin_layout Standard
18802 bottomfraction}{0.5}
18805 \begin_layout Standard
18806 Sometimes you might need, under all circumstances, a float to be placed
18807 exactly at the position where it is inserted.
18808 For this case you can use the option
18814 Use this option very rarely and only if the document is nearly ready to
18816 Because the float is then no longer able to
18817 \begin_inset Quotes eld
18821 \begin_inset Quotes erd
18824 when you change your document and this will often destroy the page layout.
18827 \begin_layout Standard
18828 There are no placement options for text wrap floats, because they are always
18829 surrounded by the text of a certain paragraph.
18830 \begin_inset VSpace bigskip
18836 \begin_layout Standard
18837 Sometimes you have the problem that a float is placed at the top of a page
18838 while its corresponding section starts at the middle of the page, so that
18839 the reader could think the float is part of the previous section.
18840 To avoid this the LaTeX-command
18844 suppressf\SpecialChar \textcompwordmark{}
18848 It suppresses a given float placement for the page where it is inserted
18849 and can therefore be used to avoid that floats could be set before a section
18851 To get this, add these commands to your document preamble:
18854 \begin_layout Standard
18871 suppressf\SpecialChar \textcompwordmark{}
18877 \begin_layout Standard
18878 You can define the same for all section headings, like chapters and subsections.
18879 This definition is not recommended to be used for small text parts like
18880 subsubsections because LaTeX may then have problems to find a suitable
18884 \begin_layout Standard
18885 \begin_inset VSpace bigskip
18888 In some cases it is required to have all figures/tables at the end of the
18890 For this purpose the LaTeX-package
18892 endf\SpecialChar \textcompwordmark{}
18896 \begin_inset LatexCommand index
18897 name "LaTeX-packages ! endfloat"
18902 It puts all figure and table floats at the end of the document into own
18904 At the original float position a text hint like
18905 \begin_inset Quotes eld
18910 [Figure\InsetSpace ~
18914 \begin_inset Quotes erd
18918 The endfloat-package is loaded in the preamble with the line
18921 \begin_layout Standard
18926 usepackage[options]{endf\SpecialChar \textcompwordmark{}
18930 \begin_layout Standard
18931 There are various package options to format the created figure/table sections.
18932 For more information we refer to the
18934 endf\SpecialChar \textcompwordmark{}
18938 \begin_inset LatexCommand cite
18946 \begin_inset Note Greyedout
18949 \begin_layout Standard
18952 Note: endf\SpecialChar \textcompwordmark{}
18955 doesn't provide an automatic translation for the text hint, you have to
18956 do this manually, see section\InsetSpace ~
18958 \begin_inset LatexCommand cite
18971 \begin_inset Note Greyedout
18974 \begin_layout Standard
18979 There is currently a bug in
18981 endf\SpecialChar \textcompwordmark{}
18984 when the caption contains a German
18985 \begin_inset Quotes eld
18989 \begin_inset Quotes erd
18993 Use in this case the command
18994 \begin_inset Quotes eld
19004 \begin_inset Quotes erd
19008 \begin_inset Quotes eld
19012 \begin_inset Quotes erd
19023 \begin_layout Standard
19024 \begin_inset VSpace bigskip
19027 For more details about float placements, have a look at LaTeX books,
19028 \begin_inset LatexCommand cite
19029 key "latexcompanion,latexguide,latexbook"
19036 \begin_layout Section
19038 \begin_inset LatexCommand label
19039 name "sec:Rotated-Floats"
19044 \begin_inset LatexCommand index
19045 name "Floats ! Rotating"
19052 \begin_layout Standard
19053 Especially for wide tables you might have floats rotated.
19054 To rotate a whole float including the caption, right-click on the float-box
19057 Rotate\InsetSpace ~
19063 \begin_layout Standard
19064 Rotated floats are always placed on its own page (or column, when you have
19065 a two-column document).
19066 They are normally rotated so that you can read them from the outside margin
19067 -- to the left on even pages, to the right on odd pages.
19070 \begin_layout Standard
19071 Referencing rotated floats is the same like for normal floats, the caption
19072 format is also the same: Table\InsetSpace ~
19074 \begin_inset LatexCommand ref
19075 reference "tab:Rotated-table"
19079 is an example of a rotated table float.
19082 \begin_layout Standard
19083 \begin_inset Note Greyedout
19086 \begin_layout Standard
19091 Not all DVI-viewers are able to display rotated floats.
19099 \begin_layout Standard
19100 \begin_inset Float table
19105 \begin_layout Standard
19106 \begin_inset Caption
19108 \begin_layout Standard
19109 \begin_inset LatexCommand label
19110 name "tab:Rotated-table"
19122 \begin_layout Standard
19124 \begin_inset Tabular
19125 <lyxtabular version="3" rows="1" columns="5">
19127 <column alignment="center" valignment="top" leftline="true" width="0">
19128 <column alignment="center" valignment="top" leftline="true" width="0">
19129 <column alignment="center" valignment="top" leftline="true" width="0">
19130 <column alignment="center" valignment="top" leftline="true" width="0">
19131 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19132 <row topline="true" bottomline="true">
19133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19136 \begin_layout Standard
19142 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19145 \begin_layout Standard
19151 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19154 \begin_layout Standard
19160 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19163 \begin_layout Standard
19169 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19172 \begin_layout Standard
19191 \begin_layout Section
19193 \begin_inset LatexCommand index
19194 name "Caption ! Formatting"
19199 \begin_inset LatexCommand index
19200 name "Floats ! Caption Formatting"
19205 \begin_inset LatexCommand index
19206 name "LaTeX-packages ! caption"
19211 \begin_inset LatexCommand label
19212 name "sec:Caption-Formatting"
19219 \begin_layout Standard
19224 environment is the default paragraph environment for
19229 On the LyX screen captions appear as label, e.\InsetSpace \thinspace{}
19232 \begin_inset Quotes eld
19240 \begin_inset Quotes erd
19243 followed by the caption text.
19245 \begin_inset Quotes eld
19249 \begin_inset Quotes erd
19252 is substituted in the printed output by the actual reference number.
19253 By default the label and the number are in the same font as the caption
19254 text and a colon follows the number to divide then label from the text.
19255 This caption format is not suitable for all document formats.
19259 \begin_layout Standard
19260 To change the default caption format, load the LaTeX-package
19265 \begin_inset LatexCommand index
19266 name "LaTeX-packages ! caption"
19270 in the document preamble with this line:
19273 \begin_layout Standard
19278 usepackage[format definition]{caption}
19281 \begin_layout Standard
19282 To have for example the label and the number in sans-serif bold font and
19283 the table captions always above the table like in this document, use the
19287 \begin_layout Standard
19292 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
19295 \begin_layout Standard
19296 You can also define different caption formats for the different float types.
19297 In this case load the
19301 package without format specific options and define the different formats
19302 with the help of the command
19305 \begin_layout Standard
19310 captionsetup[float type]{format definition}
19313 \begin_layout Standard
19314 in the document preamble.
19315 For example the caption formats of Figure\InsetSpace ~
19317 \begin_inset LatexCommand ref
19318 reference "fig:This-is-an-fig"
19322 and Table\InsetSpace ~
19324 \begin_inset LatexCommand ref
19325 reference "tab:This-is-an-tab"
19329 can be created using these commands in the document preamble:
19332 \begin_layout Standard
19337 usepackage[tableposition=top]{caption}
19345 captionsetup[f\SpecialChar \textcompwordmark{}
19346 igure]{labelfont={tt}, textfont=it, indention=1cm,%
19352 \begin_layout Standard
19360 captionsetup[figure]
19371 captionsetup[table]{labelfont={bf,sf}}
19374 \begin_layout Standard
19375 \begin_inset Note Greyedout
19378 \begin_layout Standard
19387 has no effect when a
19392 \begin_inset LatexCommand index
19393 name "LaTeX-packages ! koma-script"
19397 document class is used.
19398 In this case the document class option
19410 \begin_layout Standard
19411 For more information about the package
19415 we refer to its documentation
19416 \begin_inset LatexCommand cite
19417 key "caption,caption-de"
19424 \begin_layout Standard
19425 To change the label name from e.g.
19427 \begin_inset Quotes eld
19431 \begin_inset Quotes erd
19435 \begin_inset Quotes eld
19439 \begin_inset Quotes erd
19442 use this preamble command:
19445 \begin_layout Standard
19452 fnum@figure}{Image~
19457 \begin_layout Standard
19464 inserts the figure number and
19467 \begin_inset Quotes eld
19473 \begin_inset Quotes erd
19476 creates a protected space.
19479 \begin_layout Standard
19480 \begin_inset VSpace bigskip
19488 \begin_inset LatexCommand index
19489 name "LaTeX-packages ! koma-script"
19495 article (koma-script)
19503 letter (koma-script)
19507 report (koma-script)
19509 \InsetSpace \thinspace{}
19510 ), you can alternatively to the
19518 's built-in command
19525 For example, to have the caption label in bold, add this command to your
19529 \begin_layout Standard
19534 setkomafont{captionlabel}{
19539 \begin_layout Standard
19540 For more information about
19551 \begin_inset LatexCommand cite
19552 key "koma-script,koma-script-de"
19559 \begin_layout Standard
19563 \begin_layout Standard
19567 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
19574 \begin_inset Note Note
19577 \begin_layout Standard
19578 The caption format is changed only for this example.
19586 \begin_layout Standard
19587 \begin_inset Float figure
19593 \begin_layout Standard
19595 \begin_inset Graphics
19596 filename clipart/mobius.eps
19605 \begin_layout Standard
19606 \begin_inset Caption
19608 \begin_layout Standard
19609 \begin_inset LatexCommand label
19610 name "fig:This-is-an-fig"
19614 This is an example figure caption that is longer than one line to show the
19615 different caption format.
19616 Here a self-defined caption format is used.
19629 \begin_layout Standard
19633 \begin_layout Standard
19637 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
19646 \begin_layout Standard
19647 \begin_inset Float table
19653 \begin_layout Standard
19654 \begin_inset Caption
19656 \begin_layout Standard
19657 \begin_inset LatexCommand label
19658 name "tab:This-is-an-tab"
19662 This is an example table caption that is longer than one line to show the
19663 different caption format.
19664 Here the standard caption format for tables in this document is used.
19672 \begin_layout Standard
19674 \begin_inset Tabular
19675 <lyxtabular version="3" rows="1" columns="5">
19677 <column alignment="center" valignment="top" leftline="true" width="0">
19678 <column alignment="center" valignment="top" leftline="true" width="0">
19679 <column alignment="center" valignment="top" leftline="true" width="0">
19680 <column alignment="center" valignment="top" leftline="true" width="0">
19681 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19682 <row topline="true" bottomline="true">
19683 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19686 \begin_layout Standard
19692 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19695 \begin_layout Standard
19701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19704 \begin_layout Standard
19710 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19713 \begin_layout Standard
19719 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19722 \begin_layout Standard
19741 \begin_layout Section
19743 \begin_inset LatexCommand index
19744 name "Caption ! Placement"
19749 \begin_inset LatexCommand index
19750 name "Floats ! Caption Placement"
19755 \begin_inset LatexCommand label
19756 name "sec:Caption-Placement"
19763 \begin_layout Standard
19764 The common caption placement rule is:
19767 \begin_layout Description
19768 Figure: Caption is set below the figure
19771 \begin_layout Description
19772 Table: Caption is set above the table
19775 \begin_layout Standard
19776 Having the caption above the table is unfortunately not supported in LaTeX's
19778 That means if you are using the document classes
19794 there will be no space between the caption and the table.
19795 To insert the needed space, add the following option to the load command
19796 of the LaTeX-package
19800 in your document preamble
19804 \begin_layout Standard
19805 See section\InsetSpace ~
19807 \begin_inset LatexCommand ref
19808 reference "sec:Caption-Formatting"
19812 for more information of the package
19824 \begin_layout Standard
19830 \begin_layout Standard
19836 \begin_inset LatexCommand index
19837 name "LaTeX-packages ! koma-script"
19843 article (koma-script)
19851 letter (koma-script)
19855 report (koma-script)
19857 \InsetSpace \thinspace{}
19858 ), you can alternatively to the
19862 package set the document class option
19866 , or you can use the environment
19868 caption\InsetSpace ~
19878 \begin_layout Standard
19879 \begin_inset VSpace bigskip
19882 It is also possible to set the caption beside a figure or table.
19883 To get this the LaTeX-package
19888 \begin_inset LatexCommand index
19889 name "LaTeX-packages ! sidecap"
19893 has to be loaded in the document preamble with the line
19896 \begin_layout Standard
19901 usepackage[option]{sidecap}
19904 \begin_layout Standard
19905 If you set no option, the caption is placed on the side of the outer page
19906 margin -- to the right on odd pages, to the left on even pages.
19907 You can change the placement to inner margin with the option
19912 To force the placement always to the right or left, use the option
19923 \begin_layout Standard
19924 To place in LyX the caption of a float on the side, it is necessary to add
19925 these commands to the document preamble:
19928 \begin_layout Standard
19934 \begin_layout Standard
19947 \begin_layout Standard
19968 \begin_layout Standard
19989 \begin_layout Standard
20000 renewenvironment{table}{
20007 \begin_layout Standard
20020 \begin_layout Standard
20041 \begin_layout Standard
20059 \begin_layout Standard
20072 \begin_layout Standard
20087 f\SpecialChar \textcompwordmark{}
20094 \begin_layout Standard
20107 MyEndf\SpecialChar \textcompwordmark{}
20110 endf\SpecialChar \textcompwordmark{}
20117 \begin_layout Standard
20128 renewenvironment{f\SpecialChar \textcompwordmark{}
20131 begin{SCf\SpecialChar \textcompwordmark{}
20134 end{SCf\SpecialChar \textcompwordmark{}
20138 \begin_layout Standard
20151 \begin_layout Standard
20164 f\SpecialChar \textcompwordmark{}
20173 \begin_layout Standard
20186 endf\SpecialChar \textcompwordmark{}
20189 MyEndf\SpecialChar \textcompwordmark{}
20193 \begin_layout Standard
20199 \begin_layout Standard
20200 The commands allow you to redefine the floats so that the caption is set
20202 For figure floats use the command
20205 \begin_layout Standard
20213 \begin_layout Standard
20214 in ERT before the float.
20215 Behind the float insert the command
20218 \begin_layout Standard
20226 \begin_layout Standard
20227 in ERT to get back to the original float definition.
20230 \begin_layout Standard
20231 For table floats use the corresponding commands
20234 \begin_layout Standard
20248 \begin_layout Standard
20249 Figure\InsetSpace ~
20251 \begin_inset LatexCommand ref
20252 reference "fig:cap-beside-fig"
20256 and Table\InsetSpace ~
20258 \begin_inset LatexCommand ref
20259 reference "tab:cap-beside-tab"
20263 are examples where the caption is set beside.
20266 \begin_layout Standard
20267 You can see in the examples that the caption text appears at the top of
20268 the floats for table floats and at the bottom for figure floats.
20269 To change this, you can use the command
20272 \begin_layout Standard
20277 sidecaptionvpos{float type}{placement}
20280 \begin_layout Standard
20281 in the document preamble or in ERT before the float.
20282 The float type is either
20290 , the placement can be
20291 \begin_inset Quotes eld
20299 \begin_inset Quotes erd
20303 \begin_inset Quotes eld
20311 \begin_inset Quotes erd
20315 \begin_inset Quotes eld
20323 \begin_inset Quotes erd
20327 To have for example the caption of figure floats vertically centered, use
20331 \begin_layout Standard
20336 sidecaptionvpos{f\SpecialChar \textcompwordmark{}
20340 \begin_layout Standard
20341 This was used for Figure\InsetSpace ~
20343 \begin_inset LatexCommand ref
20344 reference "fig:cap-beside-fig-2"
20351 \begin_layout Standard
20352 \begin_inset VSpace defskip
20355 For more information about the package
20359 we refer to its documentation
20360 \begin_inset LatexCommand cite
20368 \begin_layout Standard
20369 \begin_inset Note Greyedout
20372 \begin_layout Standard
20382 \begin_inset LatexCommand index
20383 name "LaTeX-packages ! hypcap"
20387 , described in section\InsetSpace ~
20389 \begin_inset LatexCommand ref
20390 reference "sub:Reference-Position"
20394 , has no effect on floats with the caption set beside.
20402 \begin_layout Standard
20406 \begin_layout Standard
20418 \begin_layout Standard
20419 \begin_inset Float figure
20424 \begin_layout Standard
20425 \begin_inset Graphics
20426 filename clipart/escher-lsd.eps
20434 \begin_layout Standard
20435 \begin_inset Caption
20437 \begin_layout Standard
20438 \begin_inset LatexCommand label
20439 name "fig:cap-beside-fig"
20443 This is a caption beside a figure.
20456 \begin_layout Standard
20460 \begin_layout Standard
20472 \begin_layout Standard
20473 \begin_inset Float table
20478 \begin_layout Standard
20479 \begin_inset Caption
20481 \begin_layout Standard
20482 \begin_inset LatexCommand label
20483 name "tab:cap-beside-tab"
20487 This is a caption beside a table.
20495 \begin_layout Standard
20496 \begin_inset Tabular
20497 <lyxtabular version="3" rows="4" columns="5">
20499 <column alignment="center" valignment="top" leftline="true" width="0">
20500 <column alignment="center" valignment="top" leftline="true" width="0">
20501 <column alignment="center" valignment="top" leftline="true" width="0">
20502 <column alignment="center" valignment="top" leftline="true" width="0">
20503 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
20504 <row topline="true">
20505 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20508 \begin_layout Standard
20514 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20517 \begin_layout Standard
20523 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20526 \begin_layout Standard
20532 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20535 \begin_layout Standard
20541 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20544 \begin_layout Standard
20551 <row topline="true">
20552 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20555 \begin_layout Standard
20561 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20564 \begin_layout Standard
20570 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20573 \begin_layout Standard
20579 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20582 \begin_layout Standard
20588 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20591 \begin_layout Standard
20598 <row topline="true">
20599 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20602 \begin_layout Standard
20608 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20611 \begin_layout Standard
20617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20620 \begin_layout Standard
20626 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20629 \begin_layout Standard
20635 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20638 \begin_layout Standard
20645 <row topline="true" bottomline="true">
20646 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20649 \begin_layout Standard
20655 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20658 \begin_layout Standard
20664 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20667 \begin_layout Standard
20673 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20676 \begin_layout Standard
20682 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20685 \begin_layout Standard
20704 \begin_layout Standard
20708 \begin_layout Standard
20720 \begin_layout Standard
20724 \begin_layout Standard
20728 sidecaptionvpos{figure}{c}
20734 \begin_inset Float figure
20739 \begin_layout Standard
20740 \begin_inset Graphics
20741 filename clipart/escher-lsd.eps
20749 \begin_layout Standard
20750 \begin_inset Caption
20752 \begin_layout Standard
20753 \begin_inset LatexCommand label
20754 name "fig:cap-beside-fig-2"
20758 This is a vertically centered caption beside a figure.
20771 \begin_layout Standard
20775 \begin_layout Standard
20787 \begin_layout Section
20789 \begin_inset LatexCommand label
20790 name "sec:Listings-of-Floats"
20795 \begin_inset LatexCommand index
20796 name "Floats ! Listings"
20803 \begin_layout Standard
20804 Similar to the the table of contents where the sections of the document
20805 are listed, there are listings for all float types, like the figures of
20807 You can insert them via the
20809 Insert\SpecialChar \menuseparator
20817 \begin_layout Standard
20818 The list entries are the float captions or its short title, the float number,
20819 and the page number where they appear in the document.
20822 \begin_layout Standard
20823 You can find the list of figures and tables at the end of this document.
20826 \begin_layout Chapter
20830 \begin_layout Section
20834 \begin_layout Standard
20847 \begin_layout Standard
20855 \begin_inset LatexCommand label
20856 name "sec:LyX-Notes"
20861 \begin_inset LatexCommand index
20862 name "Notes ! LyX Notes"
20867 \begin_inset Note Note
20870 \begin_layout Standard
20873 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
20874 are displayed wrongly in PDF-bookmarks.
20875 For more information about this, have a look at
20876 \begin_inset LatexCommand cite
20889 \begin_layout Standard
20890 Notes are inserted with the toolbar button
20891 \begin_inset Graphics
20892 filename ../images/note-insert.xpm
20899 Insert\SpecialChar \menuseparator
20903 There are three types of notes:
20906 \begin_layout Description
20908 Note This note type is for internal notes that won't appear in the output.
20909 Its note-box looks like this:
20914 \begin_inset Graphics
20915 filename clipart/LyXNoteImageQt4.png
20922 \begin_inset Note Note
20925 \begin_layout Standard
20926 This is text in a note box that doesn't appear in the output.
20934 \begin_layout Description
20935 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
20936 ent, when you export the document to LaTeX via the menu
20938 File\SpecialChar \menuseparator
20939 Export\SpecialChar \menuseparator
20940 LaTeX (pdflatex) / LaTeX (plain)
20943 Its note-box looks like this:
20948 \begin_inset Graphics
20949 filename clipart/CommentNoteImageQt4.png
20956 \begin_inset Note Comment
20959 \begin_layout Standard
20960 This is text in a note box that only appears as comment in LaTeX-files.
20968 \begin_layout Description
20969 Greyed\InsetSpace ~
20970 Out This note will appear in the output as grey text.
20971 Its note-box looks like this:
20976 \begin_inset Graphics
20977 filename clipart/GreyedOutNoteImageQt4.png
20989 \begin_layout Standard
20993 renewenvironment{lyxgreyedout}
20996 \begin_layout Standard
21000 textcolor[gray]{0.8}
21010 \begin_inset Note Greyedout
21013 \begin_layout Standard
21018 \begin_layout Standard
21019 This is an example footnote within a greyed out note.
21024 of a comment that appears in the output as grey text.
21033 \begin_layout Standard
21037 renewenvironment{lyxgreyedout}
21040 \begin_layout Standard
21054 \begin_inset Note Note
21057 \begin_layout Standard
21058 The greyed out note is here redefined to show it with the original LyX definitio
21059 n because greyed out notes are redefined in the preamble of this document,
21060 as described below, to have blue text.
21069 As you can see in the example, the first line of greyed out notes is a bit
21070 indented and greyed out notes can have footnotes.
21073 \begin_layout Description
21074 Framed This note will appear in the output as framed text.
21075 Its note-box looks like this:
21080 \begin_inset Graphics
21081 filename clipart/FramedNoteImageQt4.png
21088 \begin_inset Note Framed
21091 \begin_layout Standard
21092 This is text in a note box that appears framed in the output.
21097 In contrary to framed boxes
21101 \begin_layout Standard
21102 Framed boxes are described in section\InsetSpace ~
21104 \begin_inset LatexCommand ref
21105 reference "sec:Framed-Boxes"
21114 the frame uses always the whole text width and the note is set into its
21118 \begin_layout Description
21119 Shaded This note will appear in the output with red background color.
21120 Its note box looks like this:
21125 \begin_inset Graphics
21126 filename clipart/ShadedNoteImageQt4.png
21133 \begin_inset Note Shaded
21136 \begin_layout Standard
21137 This text in a note box appears in the output with red background.
21142 In contrary to colored boxes
21146 \begin_layout Standard
21147 Colored boxes are described in section\InsetSpace ~
21149 \begin_inset LatexCommand ref
21150 reference "sec:Colored-Boxes"
21159 the note uses always the whole text width and the note is set into its
21163 \begin_layout Standard
21164 \begin_inset VSpace bigskip
21167 When you use the toolbar button to insert notes, a
21173 You can switch between the three note types by right-clicking on the note-box.
21178 If you want to turn existing text into a note, mark it and click on the
21194 \begin_layout Standard
21195 \begin_inset VSpace bigskip
21198 You can change the text color of the greyed out notes in the preamble with
21199 the following command:
21202 \begin_layout Standard
21207 renewenvironment{lyxgreyedout}
21213 \begin_layout Standard
21231 \begin_layout Standard
21232 The available colors and the method to define own colors is explained in
21233 section\InsetSpace ~
21235 \begin_inset LatexCommand ref
21236 reference "sec:Colored-Tables"
21243 \begin_layout Standard
21244 Notes that appear in blue in this document are set using greyed out notes
21248 \begin_layout Standard
21249 \begin_inset VSpace bigskip
21255 \begin_layout Standard
21264 notes can be set in the
21271 \begin_layout Standard
21272 The default frame width for
21276 notes is 0.4\InsetSpace \thinspace{}
21277 pt; it can be changed by changing the size
21284 The default space between the note content and the frame is 9\InsetSpace \thinspace{}
21286 be changed by changing the size
21293 For example the frame appearance of the following
21297 note is set with the ERT commands
21300 \begin_layout Standard
21310 \begin_layout Standard
21314 \begin_layout Standard
21326 \begin_inset Note Framed
21329 \begin_layout Standard
21343 \begin_layout Standard
21357 \begin_layout Standard
21358 \begin_inset VSpace bigskip
21364 \begin_layout Standard
21369 notes the default space between the note content and the note border is
21370 3\InsetSpace \thinspace{}
21371 pt; it can be changed by changing the size
21379 The default background color red can be changed with the command
21383 def\SpecialChar \textcompwordmark{}
21391 def\SpecialChar \textcompwordmark{}
21394 command is explained in section\InsetSpace ~
21396 \begin_inset LatexCommand ref
21397 reference "sec:Colored-Tables"
21405 \begin_layout Standard
21412 \SpecialChar \textcompwordmark{}
21417 requires the LaTeX-package
21421 in the preamble, see section\InsetSpace ~
21423 \begin_inset LatexCommand ref
21424 reference "sec:Colored-Boxes"
21436 \begin_layout Standard
21437 For example the appearance of the following
21441 note is set with the ERT commands
21444 \begin_layout Standard
21457 def\SpecialChar \textcompwordmark{}
21458 inecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21461 \begin_layout Standard
21465 \begin_layout Standard
21478 \begin_layout Standard
21482 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21488 \begin_inset Note Shaded
21491 \begin_layout Standard
21494 This is yellow text in a
21504 note with darkgreen background.
21513 \begin_layout Standard
21526 \begin_layout Standard
21530 definecolor{shadecolor}{rgb}{1,0,0}
21538 \begin_layout Section
21540 \begin_inset LatexCommand label
21541 name "sec:Footnotes"
21546 \begin_inset LatexCommand index
21547 name "Notes ! Footnotes"
21552 \begin_inset LatexCommand index
21560 \begin_layout Standard
21561 Footnotes can be inserted using the toolbar button
21562 \begin_inset Graphics
21563 filename ../images/footnote-insert.xpm
21570 Insert\SpecialChar \menuseparator
21582 then the following footnote-box:
21583 \begin_inset Graphics
21584 filename clipart/footnoteQt4.png
21593 where you can enter the footnote text.
21594 If you want to turn existing text into a footnote, mark it and click on
21610 \begin_layout Standard
21611 Here is an example footnote:
21619 \begin_layout Standard
21620 \begin_inset LatexCommand label
21621 name "foot:This-is-an"
21625 This is an example footnote.
21638 \begin_layout Standard
21642 newcounter{MyRepeatFoot}
21645 \begin_layout Standard
21649 setcounter{MyRepeatFoot}{
21659 \begin_layout Standard
21660 The footnote will appear in the output as a superscript number at the text
21661 position where the footnote box is placed.
21662 The footnote text is placed at the bottom of the current page.
21663 The footnote number is calculated by LaTeX, the numbers are consecutive.
21664 It depends on your document-class, if the footnote number is reset for
21668 \begin_layout Standard
21669 Footnotes can be referenced like floats: Insert a label into the footnote
21670 and cross-reference this label in the text as described in section\InsetSpace ~
21672 \begin_inset LatexCommand ref
21673 reference "sec:Referencing-Floats"
21679 This is a cross-reference of Footnote\InsetSpace ~
21681 \begin_inset LatexCommand ref
21682 reference "foot:This-is-an"
21689 \begin_inset Note Greyedout
21692 \begin_layout Standard
21697 LyX doesn't provide a prefix for labels in footnotes, so you have to insert
21698 e.\InsetSpace \thinspace{}
21703 \begin_inset Quotes eld
21709 \begin_inset Quotes erd
21712 manually when you want to use the reference style
21714 Formatted\InsetSpace ~
21725 \begin_layout Standard
21726 \begin_inset VSpace defskip
21729 To use footnotes within tables, you have to use minipages, see section\InsetSpace ~
21731 \begin_inset LatexCommand ref
21732 reference "sec:Minipages"
21737 Footnotes within longtables are described in section\InsetSpace ~
21739 \begin_inset LatexCommand ref
21740 reference "sub:Footnotes-in-Longtables"
21747 \begin_layout Standard
21748 \begin_inset VSpace defskip
21751 To create only a mark for a footnote, use the command
21755 footnotemark[number]
21758 This is used when you have the same annotation several times in a text
21759 but doesn't want to print the footnote text every time.
21762 the number of the repeating footnote while you are writing the text, you
21763 have to store its number.
21764 For the following footnote mark example, these commands were inserted in
21765 ERT behind Footnote\InsetSpace ~
21767 \begin_inset LatexCommand ref
21768 reference "foot:This-is-an"
21772 to store the footnote number:
21775 \begin_layout Standard
21780 newcounter{MyRepeatFoot}
21784 setcounter{MyRepeatFoot}{
21789 \begin_layout Standard
21790 The footnote mark was then created with this command:
21793 \begin_layout Standard
21803 \begin_layout Standard
21804 Here is an example footnote mark:
21812 \begin_layout Standard
21826 \begin_layout Subsection
21828 \begin_inset LatexCommand label
21829 name "sub:Footnote-Numbering"
21834 \begin_inset LatexCommand index
21835 name "Footnotes ! Numbering"
21842 \begin_layout Standard
21843 If you want to have footnotes numbered in the scheme
21844 \begin_inset Quotes eld
21848 \begin_inset Quotes erd
21851 , add the following command to your document preamble:
21854 \begin_layout Standard
21859 numberwithin{footnote}{chapter}
21862 \begin_layout Standard
21863 To be able to use the command
21874 in the document settings the option
21884 \begin_layout Standard
21888 \begin_layout Standard
21892 numberwithin{footnote}{chapter}
21897 This is another example footnote:
21903 \begin_layout Standard
21904 This is a footnote numbered in the scheme
21905 \begin_inset Quotes eld
21909 \begin_inset Quotes erd
21923 \begin_layout Standard
21927 numberwithin{footnote}{part}
21935 \begin_layout Standard
21936 \begin_inset VSpace bigskip
21942 \begin_layout Standard
21943 To reset the footnote number back to 1 after each section
21945 , add this command to your document preamble:
21948 \begin_layout Standard
21953 @addtoreset{footnote}{section}
21956 \begin_layout Standard
21957 \begin_inset VSpace bigskip
21960 The following preamble command changes the footnote numbering style to small
21964 \begin_layout Standard
21976 \begin_layout Standard
21980 \begin_layout Standard
21993 This is a footnote with roman numbering:
21997 \begin_layout Standard
21998 This is an example footnote with roman numbering.
22007 \begin_layout Standard
22023 \begin_layout Standard
22024 To change the numbering style to capital roman numerals replace in the command
22039 \begin_inset Quotes eld
22043 \begin_inset Quotes erd
22046 footnotes with capital or small Latin letters use
22060 \begin_inset Quotes eld
22064 \begin_inset Quotes erd
22067 footnotes with symbols use
22076 \begin_layout Standard
22077 \begin_inset Note Greyedout
22080 \begin_layout Standard
22085 You can only number 26 footnotes with Latin letters, because this numbering
22086 is limited to single letters.
22094 \begin_inset Note Greyedout
22097 \begin_layout Standard
22102 You can only number 9 footnotes with symbols.
22110 \begin_layout Standard
22111 To return to the default numbering style when you changed to another one,
22124 in the command above.
22127 \begin_layout Subsection
22129 \begin_inset LatexCommand index
22130 name "Footnotes ! Placement"
22137 \begin_layout Standard
22138 If you have several footnotes in one page, they appear without vertical
22139 space between them at the bottom of the page.
22140 To make them better readable you can e.\InsetSpace \thinspace{}
22142 add 1.5\InsetSpace \thinspace{}
22143 mm space with the following
22147 \begin_layout Standard
22169 \begin_layout Standard
22170 \begin_inset VSpace bigskip
22173 In a two-column document the footnotes appear at the bottom of every column,
22174 see Figure\InsetSpace ~
22176 \begin_inset LatexCommand ref
22177 reference "fig:Standard-footnote-placement"
22182 If the footnotes should only appear at the bottom of the right column,
22183 as in Figure\InsetSpace ~
22185 \begin_inset LatexCommand ref
22186 reference "fig:Footnote-placement-in"
22190 , use the LaTeX-package
22195 \begin_inset LatexCommand index
22196 name "LaTeX-packages ! ftnright"
22200 with this command in the document preamble:
22203 \begin_layout Standard
22208 usepackage{ftnright}
22211 \begin_layout Standard
22212 \begin_inset Float figure
22218 \begin_layout Standard
22222 \begin_layout Standard
22232 \begin_inset Graphics
22233 filename clipart/without_fntright.pdf
22242 \begin_layout Standard
22252 \begin_layout Standard
22253 \begin_inset Caption
22255 \begin_layout Standard
22256 \begin_inset LatexCommand label
22257 name "fig:Standard-footnote-placement"
22261 Standard footnote placement in two-column documents.
22274 \begin_layout Standard
22275 \begin_inset Float figure
22281 \begin_layout Standard
22285 \begin_layout Standard
22295 \begin_inset Graphics
22296 filename clipart/with_fntright.pdf
22305 \begin_layout Standard
22315 \begin_layout Standard
22316 \begin_inset Caption
22318 \begin_layout Standard
22319 \begin_inset LatexCommand label
22320 name "fig:Footnote-placement-in"
22324 Footnote placement in two-column documents when the LaTeX-package
22341 \begin_layout Standard
22342 \begin_inset VSpace bigskip
22345 In some scientific literature it is usual to collect the footnotes and print
22346 them in a separate paragraph at the the end of a section, like in Figure\InsetSpace ~
22348 \begin_inset LatexCommand ref
22349 reference "fig:Endnotes----footnotes"
22354 They are then so called
22355 \begin_inset Quotes eld
22359 \begin_inset Quotes erd
22363 To use endnotes instead of footnotes in your document, load the LaTeX-package
22369 \begin_inset LatexCommand index
22370 name "LaTeX-packages ! endnotes"
22374 with the document preamble lines
22377 \begin_layout Standard
22382 usepackage{endnotes}
22393 \begin_layout Standard
22394 To insert the collected footnotes, insert the command
22397 \begin_layout Standard
22405 \begin_layout Standard
22406 in ERT at the the end of a section or chapter.
22409 \begin_layout Standard
22410 \begin_inset Float figure
22415 \begin_layout Standard
22420 \begin_layout Standard
22430 \begin_inset Graphics
22431 filename clipart/endnotes.pdf
22439 \begin_layout Standard
22449 \begin_layout Standard
22450 \begin_inset Caption
22452 \begin_layout Standard
22453 \begin_inset LatexCommand label
22454 name "fig:Endnotes----footnotes"
22458 Endnotes -- footnotes are printed in a separate paragraph at the end of
22459 sections or chapters.
22472 \begin_layout Standard
22473 \begin_inset VSpace defskip
22476 The paragraph heading for the endnotes isn't automatically translated into
22477 the document language, this must be done manually.
22478 The following preamble command translate the default English name
22479 \begin_inset Quotes eld
22483 \begin_inset Quotes erd
22486 to the German translation
22487 \begin_inset Quotes eld
22491 \begin_inset Quotes erd
22497 \begin_layout Standard
22504 notesname}{Anmerkungen}
22507 \begin_layout Standard
22508 \begin_inset VSpace defskip
22511 The numbering of endnotes can be changed like the footnote numbering as
22512 described in section\InsetSpace ~
22514 \begin_inset LatexCommand ref
22515 reference "sub:Footnote-Numbering"
22519 ; just replace the command
22532 To reset the endnote number use the command
22538 as described in section\InsetSpace ~
22540 \begin_inset LatexCommand ref
22541 reference "sub:Footnote-Numbering"
22545 and replace the command parameter
22556 \begin_layout Standard
22557 To create only a mark for an endnote, use the command
22561 endnotemark[number]
22563 similar to the command
22569 , described in section\InsetSpace ~
22571 \begin_inset LatexCommand ref
22572 reference "sec:Footnotes"
22579 \begin_layout Standard
22580 \begin_inset VSpace bigskip
22583 Footnotes can also be placed in the page margin and the footnote text alignment
22584 can be changed, see the LaTeX-package
22589 \begin_inset LatexCommand index
22590 name "LaTeX-packages ! footmisc"
22595 \begin_inset LatexCommand cite
22600 for more information about this.
22603 \begin_layout Standard
22604 For various further footnote formatting issues have a look at LaTeX-books,
22606 \begin_inset LatexCommand cite
22607 key "latexcompanion,latexguide,latexbook"
22614 \begin_layout Section
22616 \begin_inset LatexCommand index
22617 name "Notes ! Margin Notes"
22624 \begin_layout Standard
22625 Margin notes look and behave in LyX like footnotes.
22626 They are inserted via the menu
22628 Insert\SpecialChar \menuseparator
22629 Marginal\InsetSpace ~
22632 or the toolbar button
22633 \begin_inset Graphics
22634 filename ../images/marginalnote-insert.xpm
22650 \begin_inset Quotes eld
22654 \begin_inset Quotes erd
22657 appears where you can enter the text of the margin note.
22660 \begin_layout Standard
22661 At the side is an example margin note.
22665 \begin_inset Marginal
22668 \begin_layout Standard
22669 This is a margin note.
22677 \begin_layout Standard
22678 Margin notes appear at the right side in single-sided documents.
22679 In double-sided documents they appear in the outer margin -- left on even
22680 pages, right on odd pages.
22681 The text of margin notes is aligned opposite to the outer margin -- right-align
22682 ed when the note appears in the left margin.
22683 The first line of the margin note is placed at the position of the text
22684 line where it is inserted in the document.
22687 \begin_layout Standard
22688 \begin_inset VSpace bigskip
22691 To place the margin note in the inner margin, add the command
22694 \begin_layout Standard
22702 \begin_layout Standard
22703 in ERT before a margin note.
22704 The new placement is valid for all following margin notes.
22708 \begin_layout Standard
22718 \begin_inset Marginal
22721 \begin_layout Standard
22722 This is a margin note in the inner margin.
22734 \begin_inset Note Greyedout
22737 \begin_layout Standard
22742 There is often not enough space in the inner margin so that the notes are
22743 not correctly displayed in the output.
22751 \begin_layout Standard
22755 \begin_layout Standard
22764 To return to the default placement insert the command
22767 \begin_layout Standard
22775 \begin_layout Standard
22778 \begin_inset Note Greyedout
22781 \begin_layout Standard
22786 The command is ignored when it is within a paragraph where also the command
22801 \begin_layout Standard
22802 \begin_inset VSpace bigskip
22809 \begin_inset Marginal
22812 \begin_layout Standard
22813 AVeryLongMarginParWord that isn't hyphenated.
22821 Similar to the case described in section\InsetSpace ~
22823 \begin_inset LatexCommand ref
22824 reference "sub:Multiple-Lines-in"
22828 , long words cannot be hyphenated when they are the first word in a margin
22830 To avoid this, insert the command
22833 \begin_layout Standard
22841 \begin_layout Standard
22842 in ERT before the word
22846 \begin_inset Marginal
22849 \begin_layout Standard
22853 \begin_layout Standard
22862 AVeryLongMarginParWord that is hyphenated.
22870 \begin_layout Standard
22871 \begin_inset VSpace bigskip
22877 \begin_layout Standard
22878 \begin_inset Note Greyedout
22881 \begin_layout Standard
22886 Margin notes can normally not be used inside tables, floats, and footnotes.
22894 \begin_layout Standard
22895 \begin_inset VSpace bigskip
22901 \begin_layout Standard
22905 \begin_layout Standard
22915 \begin_inset Note Note
22918 \begin_layout Standard
22919 The following section will only be displayed when you have the LaTeX-package
22932 \begin_layout Standard
22933 This restriction can be evaded by using the LaTeX-package
22938 \begin_inset LatexCommand index
22939 name "LaTeX-packages ! marginnote"
22944 By adding these two lines to your document preamble, the command used by
22945 LyX for margin notes is redefined to use the command provided by the
22952 \begin_layout Standard
22957 usepackage{marginnote}
22968 \begin_layout Standard
22969 This is also used in this document because
22973 has another useful feature: You can set a vertical offset for the note.
22974 This is often needed when too many margin notes are too close together
22975 or for a better page layout.
22976 The offset is set in LyX as ERT directly behind the margin note in the
22980 \begin_layout Standard
22986 \begin_layout Standard
22987 where the offset is a length with one of the units listed in Table\InsetSpace ~
22989 \begin_inset LatexCommand ref
22990 reference "tab:Units"
22995 A negative value shifts the note up, a positive value shifts it down.
22999 For example the margin note beside this text line is shifted up 1.5\InsetSpace \thinspace{}
23002 \begin_inset Quotes eld
23012 \begin_inset Quotes erd
23016 \begin_inset Marginal
23019 \begin_layout Standard
23020 This margin note is shifted up 1.5\InsetSpace \thinspace{}
23021 cm from its original position.
23033 \begin_layout Standard
23043 \begin_layout Standard
23044 \begin_inset VSpace defskip
23051 you can also change the alignment of the text in the margin note.
23052 For example the commands
23055 \begin_layout Standard
23062 raggedleftmarginnote}{
23070 raggedrightmarginnote}{
23075 \begin_layout Standard
23076 set the alignment to centered.
23081 raggedleftmarginnote
23083 denotes margin notes that appear at the left side.
23090 \begin_layout Standard
23096 raggedleftmarginnote}{
23101 \begin_layout Standard
23107 raggedrightmarginnote}{
23115 \begin_inset Marginal
23118 \begin_layout Standard
23119 The text of this margin note is centered.
23130 \begin_layout Standard
23137 raggedleftmarginnote}{
23145 raggedrightmarginnote}{
23154 \begin_layout Standard
23160 raggedleftmarginnote}{
23165 \begin_layout Standard
23171 raggedrightmarginnote}{
23181 \begin_layout Standard
23182 \begin_inset VSpace defskip
23185 For the other features of
23189 we refer to its documentation
23190 \begin_inset LatexCommand cite
23198 \begin_layout Standard
23199 \begin_inset VSpace bigskip
23202 You can change the layout of margin notes by redefining its definition.
23203 To create for example a header for all margin notes with the underlined,
23204 sans-serif, and bold header text
23205 \begin_inset Quotes eld
23217 \begin_inset Quotes erd
23220 , add this to your document preamble:
23223 \begin_layout Standard
23246 \begin_layout Standard
23263 underbar{Attention!}}}%
23269 \begin_layout Standard
23287 \begin_layout Standard
23294 \begin_layout Standard
23305 \begin_layout Standard
23316 \begin_layout Standard
23324 underbar{Attention!}}}%
23327 \begin_layout Standard
23341 \begin_inset Marginal
23344 \begin_layout Standard
23345 This is a margin note with a defined heading.
23357 \begin_layout Standard
23371 \begin_layout Standard
23388 \begin_inset Note Note
23391 \begin_layout Standard
23392 The margin note format is changed only for this example.
23400 \begin_layout Standard
23404 \begin_layout Standard
23414 \begin_inset Note Note
23417 \begin_layout Standard
23418 The following will be displayed when the LaTeX-package
23430 \begin_layout Standard
23431 You need to install the LaTeX-package
23435 to see the following part of this section in the output.
23438 \begin_layout Standard
23442 \begin_layout Standard
23454 \begin_layout Chapter
23458 \begin_layout Section
23460 \begin_inset LatexCommand index
23461 name "Boxes ! Introduction"
23468 \begin_layout Standard
23469 Boxes are used to format a block of text.
23470 Boxes can be used to write documents with multiple languages, see section\InsetSpace ~
23472 \begin_inset LatexCommand ref
23473 reference "sec:Minipages"
23477 , to frame texts, see section\InsetSpace ~
23479 \begin_inset LatexCommand ref
23480 reference "sec:Framed-Boxes"
23484 , to prevent words to be hyphenated, see section\InsetSpace ~
23486 \begin_inset LatexCommand ref
23487 reference "sec:Prevent-Hyphenation"
23491 , to align text, see section\InsetSpace ~
23493 \begin_inset LatexCommand ref
23494 reference "sub:Vertical-Alignment"
23498 , or to set the background color of texts, see section\InsetSpace ~
23500 \begin_inset LatexCommand ref
23501 reference "sec:Colored-Boxes"
23508 \begin_layout Standard
23509 Boxes can be inserted with the menu
23511 Insert\SpecialChar \menuseparator
23515 A grey box with the label
23520 \begin_inset Graphics
23521 filename clipart/BoxInsetDefaultQt4.png
23526 , will be inserted.
23527 The box type can be specified by right-clicking on the box.
23528 The appearing box dialog offers the
23546 is the default for new boxes and is explained in section\InsetSpace ~
23548 \begin_inset LatexCommand ref
23549 reference "sec:Minipages"
23557 is described in section\InsetSpace ~
23559 \begin_inset LatexCommand ref
23560 reference "sec:Parboxes"
23567 \begin_layout Standard
23568 Boxes aren't numbered and can therefore not be referenced like floats or
23572 \begin_layout Standard
23573 \begin_inset Note Greyedout
23576 \begin_layout Standard
23581 Due to a bug in LyX you have to insert a protected space behind a box when
23582 you want to separate in a line the box from the following text with a space.
23590 \begin_layout Standard
23591 \begin_inset Note Greyedout
23594 \begin_layout Standard
23599 Boxes must not be the item in an
23615 \begin_layout Standard
23616 \begin_inset Note Greyedout
23619 \begin_layout Standard
23624 For an unknown reason you can only set the
23633 when you use a framed box.
23639 type and without frames are explained in section\InsetSpace ~
23641 \begin_inset LatexCommand ref
23642 reference "sec:Prevent-Hyphenation"
23654 \begin_layout Section
23656 \begin_inset LatexCommand label
23657 name "sec:Box-Dialog"
23662 \begin_inset LatexCommand index
23663 name "Boxes ! Box Dialog"
23668 \begin_inset LatexCommand index
23669 name "Boxes ! Alignment"
23676 \begin_layout Standard
23677 In the box dialog you can adjust the box geometry in the fields
23686 The available units for the geometry are explained in Table\InsetSpace ~
23688 \begin_inset LatexCommand ref
23689 reference "tab:Units"
23698 offers the following additional sizes:
23701 \begin_layout Description
23702 Depth This is the plain text
23703 \begin_inset Quotes eld
23707 \begin_inset Quotes erd
23711 It ignores the total depth when there are multiple text lines in the box:
23718 \begin_inset Box Boxed
23727 height_special "depth"
23730 \begin_layout Standard
23732 Box height set to 1\InsetSpace \thinspace{}
23745 \begin_layout Description
23746 Height This is the heigth of the text that is inside the box.
23747 A value of e.\InsetSpace \thinspace{}
23749 2 for this size will set the box heigth to 2 times the text
23751 \begin_inset Box Boxed
23760 height_special "height"
23763 \begin_layout Standard
23765 Box height set to 2\InsetSpace \thinspace{}
23774 \begin_layout Description
23776 Height This is the Height\InsetSpace \thinspace{}
23777 +\InsetSpace \thinspace{}
23779 \begin_inset Box Boxed
23788 height_special "totalheight"
23791 \begin_layout Standard
23793 Box height set to 1\InsetSpace \thinspace{}
23803 \begin_layout Description
23804 Width This set the width of the box as heigth:
23805 \begin_inset Box Boxed
23814 height_special "width"
23817 \begin_layout Standard
23819 Box height set to 1\InsetSpace \thinspace{}
23828 \begin_layout Standard
23829 \begin_inset VSpace bigskip
23832 When you have chosen an
23837 , the vertical box alignment can be:
23840 \begin_layout Description
23841 Top This is an example text line.
23843 \begin_inset Box Boxed
23852 height_special "totalheight"
23855 \begin_layout Standard
23857 This box is top-aligned.
23863 This is an example text line.
23866 \begin_layout Description
23867 Middle This is an example text line.
23869 \begin_inset Box Boxed
23878 height_special "totalheight"
23881 \begin_layout Standard
23883 This box is middle-aligned.
23889 This is an example text line.
23892 \begin_layout Description
23893 Bottom This is an example text line.
23895 \begin_inset Box Boxed
23904 height_special "totalheight"
23907 \begin_layout Standard
23909 This box is bottom-aligned.
23915 This is an example text line.
23918 \begin_layout Standard
23919 The horizontal box alignment can be set via LyX's paragraph dialog when
23920 you set the box into its own paragraph.
23923 \begin_layout Standard
23924 \begin_inset VSpace bigskip
23927 When you have chosen an
23932 , the box content can be vertical aligned to:
23935 \begin_layout Description
23936 top This is an example text line.
23938 \begin_inset Box Boxed
23947 height_special "totalheight"
23950 \begin_layout Standard
23952 This box text is top-aligned.
23958 This is an example text line.
23961 \begin_layout Description
23962 middle This is an example text line.
23964 \begin_inset Box Boxed
23973 height_special "totalheight"
23976 \begin_layout Standard
23978 This box text is middle-aligned.
23984 This is an example text line.
23987 \begin_layout Description
23988 bottom This is an example text line.
23990 \begin_inset Box Boxed
23999 height_special "totalheight"
24002 \begin_layout Standard
24004 This box text is bottom-aligned.
24010 This is an example text line.
24013 \begin_layout Description
24014 stretch This is an example text line.
24016 \begin_inset Box Boxed
24025 height_special "totalheight"
24028 \begin_layout Standard
24033 \begin_layout Standard
24038 \begin_layout Standard
24046 This is an example text line.
24049 \begin_layout Standard
24050 To stretch the box content, it must consist of more than one paragraph.
24051 In the example above every text line is in an own paragraph.
24054 \begin_layout Standard
24055 \begin_inset VSpace bigskip
24058 To align the box content horizontally you can use LyX's paragraph dialog
24059 when you have chosen an
24067 \begin_layout Standard
24069 \begin_inset Box Boxed
24078 height_special "totalheight"
24081 \begin_layout Standard
24086 \begin_layout Standard
24091 \begin_layout Standard
24101 \begin_layout Standard
24102 If you haven't set an
24107 , you can align the box content horizontally in the box dialog.
24110 \begin_layout Standard
24112 \begin_inset Box Boxed
24121 height_special "totalheight"
24124 \begin_layout Standard
24126 This box text is horizontally stretched.
24134 \begin_layout Section
24136 \begin_inset LatexCommand label
24137 name "sec:Framed-Boxes"
24142 \begin_inset LatexCommand index
24143 name "Boxes ! Frames"
24150 \begin_layout Standard
24151 The frame style of the box can be specified in the box-dialog in the drop-down
24157 The following frame types are possible:
24160 \begin_layout Description
24161 Rectangular\InsetSpace ~
24162 box This draws a rectangle frame around the box.
24163 The frame line thickness has the size of
24171 \begin_inset Box Boxed
24180 height_special "totalheight"
24183 \begin_layout Standard
24193 \begin_layout Description
24196 thin This draws an oval frame around the box.
24197 The frame line thickness has the size 0.4\InsetSpace \thinspace{}
24200 \begin_inset Box ovalbox
24209 height_special "totalheight"
24212 \begin_layout Standard
24222 \begin_layout Description
24225 thick This draws an oval frame around the box.
24226 The frame line thickness has the size 0.8\InsetSpace \thinspace{}
24229 \begin_inset Box Ovalbox
24238 height_special "totalheight"
24241 \begin_layout Standard
24251 \begin_layout Description
24252 Shadow\InsetSpace ~
24253 box This draws a rectangle frame with a shadow around the box.
24254 The frame line thickness has the size of
24260 , the shadow has a width of 4\InsetSpace \thinspace{}
24263 \begin_inset Box Shadowbox
24272 height_special "totalheight"
24275 \begin_layout Standard
24285 \begin_layout Description
24286 Double\InsetSpace ~
24287 box This draws a double-line rectangle frame around the box.
24288 The line thickness of the inner frame is 0.75\InsetSpace \thinspace{}
24295 , the thickness of the outer frame is 1.5\InsetSpace \thinspace{}
24303 The distance between the lines is 1.5\InsetSpace \thinspace{}
24310 \InsetSpace \thinspace{}
24311 +\InsetSpace \thinspace{}
24312 0.5\InsetSpace \thinspace{}
24315 \begin_inset Box Doublebox
24324 height_special "totalheight"
24327 \begin_layout Standard
24337 \begin_layout Standard
24338 \begin_inset VSpace bigskip
24341 LyX's box label will change to the used frame style when you set a frame.
24342 To be able to use the different frame styles, the LaTeX-package
24347 \begin_inset LatexCommand index
24348 name "LaTeX-packages ! fancybox"
24355 \begin_layout Standard
24356 \begin_inset VSpace bigskip
24359 The default value for the size
24365 is 0.4\InsetSpace \thinspace{}
24367 It can be changed with the following command in ERT to e.\InsetSpace \thinspace{}
24369 2\InsetSpace \thinspace{}
24373 \begin_layout Standard
24383 \begin_layout Standard
24387 \begin_layout Standard
24399 \begin_inset Box Boxed
24408 height_special "totalheight"
24411 \begin_layout Standard
24413 Rectangular box with
24419 \InsetSpace \thinspace{}
24420 =\InsetSpace \thinspace{}
24421 2\InsetSpace \thinspace{}
24431 \begin_layout Standard
24445 \begin_layout Standard
24446 \begin_inset VSpace bigskip
24449 The space between the frame and the box content is for all frame styles
24450 by default 3\InsetSpace \thinspace{}
24452 You can change it by setting the length
24459 For example the command
24462 \begin_layout Standard
24472 \begin_layout Standard
24473 sets the value to 10\InsetSpace \thinspace{}
24474 pt, like for the following box:
24477 \begin_layout Standard
24481 \begin_layout Standard
24493 \begin_inset Box Boxed
24502 height_special "totalheight"
24505 \begin_layout Standard
24507 Rectangular box with
24513 \InsetSpace \thinspace{}
24514 =\InsetSpace \thinspace{}
24515 10\InsetSpace \thinspace{}
24525 \begin_layout Standard
24539 \begin_layout Standard
24540 \begin_inset VSpace bigskip
24543 The diameter of the round corners of the oval boxes can be set with the
24554 \begin_layout Standard
24562 \begin_layout Standard
24563 sets the diameter to 1\InsetSpace \thinspace{}
24568 \begin_layout Standard
24576 \begin_layout Standard
24577 sets the diameter to
24579 num\InsetSpace \thinspace{}
24580 ×\InsetSpace \thinspace{}
24581 minimum(width and heigth of box)
24593 \begin_layout Standard
24597 \begin_layout Standard
24607 \begin_inset Box Ovalbox
24616 height_special "totalheight"
24619 \begin_layout Standard
24627 \InsetSpace \thinspace{}
24628 =\InsetSpace \thinspace{}
24629 1.5\InsetSpace \thinspace{}
24639 \begin_layout Standard
24651 \begin_layout Standard
24652 \begin_inset VSpace bigskip
24655 The size of the shadow can be adjusted by changing the length
24662 It it set to 2\InsetSpace \thinspace{}
24663 pt for the following box by this command:
24666 \begin_layout Standard
24676 \begin_layout Standard
24680 \begin_layout Standard
24692 \begin_inset Box Shadowbox
24701 height_special "totalheight"
24704 \begin_layout Standard
24712 \InsetSpace \thinspace{}
24713 =\InsetSpace \thinspace{}
24714 2\InsetSpace \thinspace{}
24724 \begin_layout Standard
24738 \begin_layout Standard
24739 \begin_inset VSpace bigskip
24742 Changed lengths and widths are valid for all boxes following the commands
24746 \begin_layout Section
24748 \begin_inset LatexCommand label
24749 name "sec:Minipages"
24754 \begin_inset LatexCommand index
24755 name "Boxes ! Minipages"
24762 \begin_layout Standard
24763 Minipages are treated by LaTeX as pages within pages and can therefore for
24764 example have their own footnotes.
24767 \begin_layout Standard
24768 Minipages are useful when you write documents with different languages.
24771 \begin_layout Standard
24772 Below are two example minipages side by side.
24773 Their width is set to 45\InsetSpace \thinspace{}
24774 col% and they are separated by a horizontal fill,
24775 that was inserted via the menu
24777 Insert\SpecialChar \menuseparator
24778 Special\InsetSpace ~
24779 Formatting\SpecialChar \menuseparator
24780 Horizontal\InsetSpace ~
24786 \begin_layout Standard
24787 \begin_inset Box Frameless
24796 height_special "totalheight"
24799 \begin_layout Standard
24802 Dies ist ein deutscher Text.
24803 Dies ist ein deutscher Text.
24804 Dies ist ein deutscher Text.
24805 Dies ist ein deutscher Text.
24806 Dies ist ein deutscher Text.
24807 Dies ist ein deutscher Text.
24808 Dies ist ein deutscher Text.
24809 Dies ist ein deutscher Text.
24810 Dies ist ein deutscher Text.
24811 Dies ist ein deutscher Text.
24812 Dies ist ein deutscher Text.
24813 Dies ist ein deutscher Text.
24814 Dies ist ein deutscher Text
24818 \begin_layout Standard
24821 Dies ist eine deutsche Fußnote.
24827 Dies ist ein deutscher Text.
24828 Dies ist ein deutscher Text.
24836 \begin_inset Box Frameless
24845 height_special "totalheight"
24848 \begin_layout Standard
24849 This is an English Text.
24850 This is an English Text.
24851 This is an English Text.
24852 This is an English Text.
24853 This is an English Text.
24854 This is an English Text.
24855 This is an English Text.
24856 This is an English Text.
24857 This is an English Text.
24858 This is an English Text.
24859 This is an English Text.
24860 This is an English Text.
24861 This is an English Text.
24862 This is an English Text.
24863 This is an English Text.
24864 This is an English Text.
24868 \begin_layout Standard
24869 This is an English footnote.
24874 This is an English Text.
24883 \begin_layout Standard
24884 \begin_inset VSpace bigskip
24887 Another application for minipages are footnotes within tables.
24888 Due to a LaTeX restriction footnotes within tables doesn't appear at the
24889 bottom of the current page.
24890 But when you put the table with the footnote to a minipage, the footnote
24891 will appear at its bottom, numbered with Latin letters.
24892 The footnote number is reset to 1 in every minipage but not outside the
24896 \begin_layout Standard
24897 The footnote of this table doesn't appear:
24898 \begin_inset Tabular
24899 <lyxtabular version="3" rows="3" columns="4">
24901 <column alignment="center" valignment="top" leftline="true" width="0pt">
24902 <column alignment="center" valignment="top" leftline="true" width="0pt">
24903 <column alignment="center" valignment="top" leftline="true" width="0pt">
24904 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
24905 <row topline="true">
24906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24909 \begin_layout Standard
24915 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24918 \begin_layout Standard
24924 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24927 \begin_layout Standard
24932 \begin_layout Standard
24933 This is a footnote within a table.
24943 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24946 \begin_layout Standard
24953 <row topline="true">
24954 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24957 \begin_layout Standard
24963 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24966 \begin_layout Standard
24972 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24975 \begin_layout Standard
24981 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24984 \begin_layout Standard
24991 <row topline="true" bottomline="true">
24992 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24995 \begin_layout Standard
25001 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25004 \begin_layout Standard
25010 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25013 \begin_layout Standard
25019 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25022 \begin_layout Standard
25036 \begin_layout Standard
25038 \begin_inset Box Frameless
25047 height_special "totalheight"
25050 \begin_layout Standard
25052 \begin_inset Tabular
25053 <lyxtabular version="3" rows="3" columns="4">
25055 <column alignment="center" valignment="top" leftline="true" width="0pt">
25056 <column alignment="center" valignment="top" leftline="true" width="0pt">
25057 <column alignment="center" valignment="top" leftline="true" width="0pt">
25058 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25059 <row topline="true">
25060 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25063 \begin_layout Standard
25069 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25072 \begin_layout Standard
25078 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25081 \begin_layout Standard
25086 \begin_layout Standard
25087 This is a footnote within a table.
25097 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25100 \begin_layout Standard
25107 <row topline="true">
25108 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25111 \begin_layout Standard
25117 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25120 \begin_layout Standard
25126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25129 \begin_layout Standard
25135 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25138 \begin_layout Standard
25145 <row topline="true" bottomline="true">
25146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25149 \begin_layout Standard
25155 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25158 \begin_layout Standard
25164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25167 \begin_layout Standard
25173 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25176 \begin_layout Standard
25195 \begin_layout Standard
25196 \begin_inset VSpace bigskip
25199 The document-wide paragraph settings are ignored within minipages.
25200 That means that there will be no space between paragraphs in minipages
25201 although you set it to e.\InsetSpace \thinspace{}
25207 in the document settings.
25210 \begin_layout Standard
25211 Minipages can also be used to set a background color for text parts, see
25212 section\InsetSpace ~
25214 \begin_inset LatexCommand ref
25215 reference "sub:Color-for-Paragraphs"
25222 \begin_layout Standard
25223 \begin_inset Note Greyedout
25226 \begin_layout Standard
25231 You cannot have floats or margin notes inside minipages but minipages can
25232 be used inside tables, floats, and other boxes.
25240 \begin_layout Section
25242 \begin_inset LatexCommand label
25243 name "sec:Parboxes"
25248 \begin_inset LatexCommand index
25249 name "Boxes ! Parboxes"
25256 \begin_layout Standard
25257 Parboxes are very similar to minipages with the difference that they cannot
25259 The main difference to minipages is that minipages are in contrary to parboxes
25260 no real boxes but LaTeX-environments.
25263 \begin_layout Standard
25265 \begin_inset Box Frameless
25274 height_special "totalheight"
25277 \begin_layout Standard
25278 This a text within a parbox.
25279 This a text within a parbox.
25282 \begin_layout Standard
25283 This footnote won't appear:
25287 \begin_layout Standard
25288 This footnote is inside a parbox and will therefore not appear.
25301 \begin_layout Section
25302 Boxes for Words and Characters
25303 \begin_inset LatexCommand index
25304 name "Boxes ! for Characters"
25311 \begin_layout Subsection
25312 Prevent Hyphenation
25313 \begin_inset LatexCommand label
25314 name "sec:Prevent-Hyphenation"
25319 \begin_inset LatexCommand index
25320 name "Boxes ! to Prevent Hyphenation"
25327 \begin_layout Standard
25328 You can use a special kind of boxes to prevent words or text to be hyphenated.
25331 e is an example text:
25334 \begin_layout Standard
25335 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25341 \begin_layout Standard
25342 To prevent the hyphenation of the word
25343 \begin_inset Quotes eld
25347 \begin_inset Quotes erd
25353 \begin_layout Standard
25361 \begin_layout Standard
25362 in ERT before the word.
25363 Behind the word insert a closing brace
25364 \begin_inset Quotes eld
25372 \begin_inset Quotes erd
25379 \begin_layout Standard
25391 \begin_layout Standard
25392 This is the result:
25395 \begin_layout Standard
25396 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25402 \begin_layout Standard
25415 \begin_layout Standard
25425 \begin_layout Standard
25426 Of course the word now protrudes over the side margin.
25427 To avoid this, add via the menu
25429 Insert\SpecialChar \menuseparator
25430 Special\InsetSpace ~
25431 Formatting\SpecialChar \menuseparator
25439 ) a line break before the word:
25442 \begin_layout Standard
25443 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25451 \begin_layout Standard
25464 \begin_layout Standard
25474 \begin_layout Subsection
25476 \begin_inset LatexCommand label
25477 name "sub:Vertical-Alignment"
25482 \begin_inset LatexCommand index
25483 name "Boxes ! for Vertical Alignment"
25488 \begin_inset LatexCommand index
25489 name "Boxes ! Raiseboxes"
25496 \begin_layout Standard
25497 With the help of the command
25503 you can align words, characters or other boxes vertically to the surrounding
25511 is used with the following scheme:
25514 \begin_layout Standard
25519 raisebox{lift}[height][depth]{box content}
25522 \begin_layout Standard
25523 The lift can be a positive value to raise the box or a negative value to
25527 \begin_layout Standard
25528 To align for example the word
25529 \begin_inset Quotes eld
25533 \begin_inset Quotes erd
25536 so that the bottom of the
25537 \begin_inset Quotes eld
25541 \begin_inset Quotes erd
25545 \begin_inset Quotes eld
25549 \begin_inset Quotes erd
25552 is at the baseline, insert the command
25555 \begin_layout Standard
25565 \begin_layout Standard
25566 in ERT before the word.
25567 Behind the word insert a closing brace
25568 \begin_inset Quotes eld
25576 \begin_inset Quotes erd
25581 This is the result:
25584 \begin_layout Standard
25585 This is a text line with the word
25589 \begin_layout Standard
25601 \begin_inset Quotes eld
25605 \begin_inset Quotes erd
25612 \begin_layout Standard
25622 \begin_layout Standard
25623 \begin_inset VSpace bigskip
25626 When you raise or lower characters in a line, the line distance will be
25630 \begin_layout Standard
25631 This is a text line with the word
25635 \begin_layout Standard
25647 \begin_inset Quotes eld
25651 \begin_inset Quotes erd
25658 \begin_layout Standard
25667 This is a text line with the word
25671 \begin_layout Standard
25681 \begin_inset Quotes eld
25685 \begin_inset Quotes erd
25692 \begin_layout Standard
25702 \begin_layout Standard
25703 If you want to prevent this for a certain reason, set the box height to
25708 \begin_layout Standard
25718 \begin_layout Standard
25719 This is a text line with the word
25723 \begin_layout Standard
25735 \begin_inset Quotes eld
25739 \begin_inset Quotes erd
25746 \begin_layout Standard
25755 This is a text line with the word
25759 \begin_layout Standard
25763 raisebox{0.5cm}[0pt]{
25769 \begin_inset Quotes eld
25773 \begin_inset Quotes erd
25780 \begin_layout Standard
25790 \begin_layout Section
25792 \begin_inset LatexCommand label
25793 name "sec:Colored-Boxes"
25798 \begin_inset LatexCommand index
25799 name "Boxes ! Color"
25806 \begin_layout Subsection
25808 \begin_inset LatexCommand index
25809 name "Color ! for Text"
25816 \begin_layout Standard
25817 To color the background of text the text must be put into a so called colorbox.
25818 This requires that the LaTeX-package
25823 \begin_inset LatexCommand index
25824 name "LaTeX-packages ! color"
25828 is loaded in the document preamble with the command
25831 \begin_layout Standard
25836 @ifundef\SpecialChar \textcompwordmark{}
25843 \begin_layout Standard
25854 usepackage{color}}{}
25857 \begin_layout Standard
25862 will be loaded automatically by LyX when you color text
25866 \begin_layout Standard
25867 To avoid that it is loaded twice the command
25871 @ifundef\SpecialChar \textcompwordmark{}
25882 \begin_layout Standard
25883 \begin_inset VSpace medskip
25886 Colorboxes are created with the command
25893 This will be used with the following scheme:
25896 \begin_layout Standard
25901 colorbox{color}{box content}
25904 \begin_layout Standard
25905 The box content can also be a box and colorboxes can also be within other
25909 \begin_layout Standard
25910 The following colors are predefined:
25949 You can also define your own color as described in section\InsetSpace ~
25951 \begin_inset LatexCommand ref
25952 reference "sec:Colored-Tables"
25959 \begin_layout Standard
25960 To have e.\InsetSpace \thinspace{}
25962 a red background for a word, insert the command
25965 \begin_layout Standard
25973 \begin_layout Standard
25974 before the word in ERT.
25975 Behind the word insert a closing brace
25976 \begin_inset Quotes eld
25984 \begin_inset Quotes erd
25989 This is the result:
25992 \begin_layout Standard
25993 This is a line where the word
25997 \begin_layout Standard
26007 \begin_inset Quotes eld
26011 \begin_inset Quotes erd
26018 \begin_layout Standard
26025 has a red background.
26028 \begin_layout Standard
26029 \begin_inset VSpace bigskip
26032 If you would have the box frame in a different color, you can use the command
26039 with the following scheme:
26042 \begin_layout Standard
26047 fcolorbox{frame color}{box color}{box content}
26050 \begin_layout Standard
26064 The frame thickness and the space between the frame and the box content
26065 can be adjusted with the lengths
26077 , respectively, as described in section\InsetSpace ~
26079 \begin_inset LatexCommand ref
26080 reference "sec:Framed-Boxes"
26087 \begin_layout Standard
26088 For the following example the command
26091 \begin_layout Standard
26096 fcolorbox{cyan}{magenta}{
26099 \begin_layout Standard
26103 \begin_layout Standard
26104 Here is an example where the frame line thickness was set to 1\InsetSpace \thinspace{}
26111 \begin_layout Standard
26126 \begin_layout Standard
26130 fcolorbox{cyan}{magenta}{
26135 This is text within a colored, framed box.
26139 \begin_layout Standard
26149 \begin_layout Standard
26150 \begin_inset VSpace bigskip
26153 Of course you can also have colored text inside a colorbox:
26159 \begin_layout Standard
26163 fcolorbox{cyan}{magenta}{
26170 This is colored text within a colored, framed box.
26176 \begin_layout Standard
26187 \begin_layout Standard
26201 \begin_layout Standard
26204 \begin_inset VSpace medskip
26210 \begin_layout Standard
26211 \begin_inset Note Greyedout
26214 \begin_layout Standard
26219 Text in colorboxes cannot have line breaks.
26220 To color multiple text lines or paragraphs, use a box inside a colorbox
26221 as described in the following.
26229 \begin_layout Subsection
26230 Color for Paragraphs
26231 \begin_inset LatexCommand label
26232 name "sub:Color-for-Paragraphs"
26237 \begin_inset LatexCommand index
26238 name "Color ! for Paragraphs"
26245 \begin_layout Standard
26246 To set the background color for more than one text line, put the text into
26248 Before the minipage insert the
26257 \begin_layout Standard
26265 \begin_layout Standard
26267 Behind the minipage insert a closing brace
26268 \begin_inset Quotes eld
26276 \begin_inset Quotes erd
26282 \begin_layout Standard
26286 \begin_layout Standard
26290 colorbox{lightgrey}{
26296 \begin_inset Box Frameless
26305 height_special "totalheight"
26308 \begin_layout Standard
26309 This is text with background color.
26310 This is text with background color.
26313 \begin_layout Standard
26314 \begin_inset VSpace defskip
26317 The text can have footnotes
26321 \begin_layout Standard
26322 Another example footnote
26327 and can include tables and figures.
26330 \begin_layout Standard
26332 \begin_inset Tabular
26333 <lyxtabular version="3" rows="3" columns="3">
26335 <column alignment="center" valignment="top" leftline="true" width="0">
26336 <column alignment="center" valignment="top" leftline="true" width="0">
26337 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
26338 <row topline="true">
26339 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26342 \begin_layout Standard
26348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26351 \begin_layout Standard
26357 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26360 \begin_layout Standard
26367 <row topline="true">
26368 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26371 \begin_layout Standard
26377 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26380 \begin_layout Standard
26382 \begin_inset Quotes erd
26390 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26393 \begin_layout Standard
26400 <row topline="true" bottomline="true">
26401 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26404 \begin_layout Standard
26410 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26413 \begin_layout Standard
26419 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26422 \begin_layout Standard
26442 \begin_layout Standard
26452 \begin_layout Section
26453 URLs (Uniform Resource Locators)
26454 \begin_inset LatexCommand index
26462 \begin_layout Standard
26463 Links to web pages or email addresses can be inserted via the menu
26465 Insert\SpecialChar \menuseparator
26469 The appearing URL dialog has two fields; the
26477 field for the URL description, which will be typeset as plain text immediately
26481 \begin_layout Standard
26482 Here is an example URL:
26483 \begin_inset LatexCommand url
26484 name "LyX's homepage"
26485 target "http://www.lyx.org"
26492 \begin_layout Standard
26495 Generate\InsetSpace ~
26498 in the URL dialog has only an affect when you export your document to the
26500 \begin_inset Quotes eld
26508 \begin_inset Quotes erd
26514 \begin_layout Standard
26515 You cannot change the style of the link text.
26520 field will have the default text style of the document while the text of
26525 field will have the style
26526 \begin_inset Quotes eld
26534 \begin_inset Quotes erd
26540 \begin_layout Standard
26541 When you use the LaTeX-package
26546 \begin_inset LatexCommand index
26547 name "LaTeX-packages ! hyperref"
26551 to link cross-references in the output, URLs will automatically become
26552 clickable hyperlinks in DVI and PDF-output.
26555 \begin_layout Standard
26556 \begin_inset Note Greyedout
26559 \begin_layout Standard
26564 When you use the following characters: "%", "#", "^", you have to write
26565 them with a preceding backslash, e.\InsetSpace \thinspace{}
26568 \begin_inset Quotes eld
26574 \begin_inset Quotes erd
26578 URLs must not end with a backslash.
26586 \begin_layout Standard
26587 \begin_inset VSpace bigskip
26590 To create real hyperlinks without the force to write the link location to
26591 the text, you can use the command
26594 \begin_layout Standard
26599 href{link location}{link text}
26602 \begin_layout Standard
26604 To get for example a link to LyX's web page, write the command
26607 \begin_layout Standard
26612 href{http://www.lyx.org}{
26615 \begin_layout Standard
26617 Insert after the command the link text
26618 \begin_inset Quotes eld
26622 \begin_inset Quotes erd
26625 as normal text followed by a closing brace
26626 \begin_inset Quotes eld
26634 \begin_inset Quotes erd
26638 This is the result:
26642 \begin_layout Standard
26646 href{http://www.lyx.org}{
26655 \begin_layout Standard
26665 \begin_layout Standard
26666 To link to email addresses, add the prefix
26667 \begin_inset Quotes eld
26675 \begin_inset Quotes erd
26678 to the link location:
26684 \begin_layout Standard
26688 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's documentation}{
26693 lyx-docs mailing list
26697 \begin_layout Standard
26707 \begin_layout Standard
26714 instead of LyX's URL box has the advantage that you can specify the text
26715 style of the link text like for all other text parts.
26716 You can therefore set hyphenation points and forced linebreaks to have
26717 long link text broken at the page margin.
26718 You are furthermore able to change the text style for all URLs in your
26719 document with an option in
26723 's load command and the restrictions mentioned above doesn't apply for
26732 \begin_layout Chapter
26734 \begin_inset LatexCommand index
26735 name "External Stuff"
26742 \begin_layout Standard
26745 Insert\SpecialChar \menuseparator
26748 you can insert external material to your document.
26752 \begin_layout Description
26754 Document Another LyX document; its content is directly inserted to your
26758 \begin_layout Description
26760 Text A text document; every of its text lines is inserted to your document
26764 \begin_layout Description
26768 Lines A text document; its text lines are inserted as they
26770 Empty text lines creates a new paragraph in your document.
26773 \begin_layout Description
26774 External\InsetSpace ~
26775 Material Files in various formats.
26778 \begin_layout Description
26780 Document LyX or LaTeX-documents.
26783 \begin_layout Section
26785 \begin_inset LatexCommand index
26786 name "External Stuff ! External Material"
26793 \begin_layout Standard
26794 The external material feature allows you to insert files to your document
26795 without converting them previously to a format that can be read by the
26796 document output format because LyX takes care of needed conversions.
26797 This is similar to images that can be inserted in various image formats
26801 \begin_layout Standard
26802 External material can be inserted via the
26806 dialog that is accessible with the menu
26808 Insert\SpecialChar \menuseparator
26809 File\SpecialChar \menuseparator
26810 External\InsetSpace ~
26814 Currently the following file types (
26821 \begin_layout Description
26822 ChessDiagram This template supports chess position diagrams made with the
26827 \begin_layout Standard
26831 href{http://en.wikipedia.org/wiki/XBoard}{
26844 \begin_layout Standard
26854 \begin_layout Description
26855 Date This inserts the date in the form
26860 This is a date inserted as external material:
26861 \begin_inset External
26869 The date is not shown within LyX, only in the output.
26870 There are two other methods of inserting a date, via menu
26872 Insert\SpecialChar \menuseparator
26875 and with the LaTeX command
26882 The different methods are compared in Table\InsetSpace ~
26884 \begin_inset LatexCommand ref
26885 reference "tab:Comparison-of-the"
26892 \begin_layout Description
26893 LilyPond This template is used for music notation typeset with the program
26897 \begin_layout Standard
26910 \begin_layout Standard
26914 href{http://en.wikipedia.org/wiki/LilyPond}{
26927 \begin_layout Standard
26935 \begin_inset Note Note
26938 \begin_layout Standard
26945 breaks the line while the remaining text in the line is stretched to the
26954 \begin_layout Description
26955 RasterImage This can be used for bitmap images.
26956 Nearly all popular image formats are supported.
26957 The image can be treated in the
26961 dialog like the images that are usually included via the
26965 dialog as described in section\InsetSpace ~
26967 \begin_inset LatexCommand ref
26968 reference "sec:Graphics-Dialog"
26973 The difference is that only raster images are allowed, that means that
26974 PDF and EPS-images are not supported.
26977 \begin_layout Description
26978 XFig This template supports images created with the program
26982 \begin_layout Standard
26986 href{http://en.wikipedia.org/wiki/Xfig}{
26999 \begin_layout Standard
27009 \begin_layout Standard
27010 \begin_inset Float table
27016 \begin_layout Standard
27017 \begin_inset Caption
27019 \begin_layout Standard
27020 \begin_inset LatexCommand label
27021 name "tab:Comparison-of-the"
27025 Comparison of the date input methods.
27033 \begin_layout Standard
27035 \begin_inset Tabular
27036 <lyxtabular version="3" rows="4" columns="4">
27038 <column alignment="center" valignment="top" leftline="true" width="0">
27039 <column alignment="center" valignment="top" leftline="true" width="0">
27040 <column alignment="center" valignment="top" leftline="true" width="0">
27041 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27042 <row topline="true">
27043 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27046 \begin_layout Standard
27052 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27055 \begin_layout Standard
27058 External Material\SpecialChar \menuseparator
27064 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27067 \begin_layout Standard
27070 Insert\SpecialChar \menuseparator
27076 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27079 \begin_layout Standard
27090 <row topline="true">
27091 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27094 \begin_layout Standard
27100 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27103 \begin_layout Standard
27109 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27112 \begin_layout Standard
27118 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27121 \begin_layout Standard
27128 <row topline="true">
27129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27132 \begin_layout Standard
27138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27141 \begin_layout Standard
27147 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27150 \begin_layout Standard
27156 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27159 \begin_layout Standard
27166 <row topline="true" bottomline="true">
27167 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27170 \begin_layout Standard
27176 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27179 \begin_layout Standard
27185 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27188 \begin_layout Standard
27194 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27197 \begin_layout Standard
27216 \begin_layout Standard
27217 When you use the option
27229 dialog, only the path to the inserted file is shown in the output.
27232 material is displayed in LyX either as box like this:
27233 \begin_inset Graphics
27234 filename clipart/ExternalMaterialQt4.png
27239 or as image, depending on the setting in the
27251 \begin_layout Standard
27258 manual explains how you can define your own templates.
27261 \begin_layout Section
27263 \begin_inset LatexCommand index
27264 name "External Stuff ! Child Documents"
27269 \begin_inset LatexCommand index
27270 name "Files ! Include"
27277 \begin_layout Standard
27278 Child documents are used when you have a long document consisting of several
27279 larger parts or sections.
27280 For maintenance it is often useful and sometimes even required to split
27281 the document in several files that can be revised separately.
27282 The different documents are then the so called child documents and a master
27283 document connects them to print the full document or parts of it.
27286 \begin_layout Standard
27287 Included documents are displayed in LyX as a box like this:
27288 \begin_inset Graphics
27289 filename clipart/ChildDocumentQt4.png
27294 To include child documents to a master document use the menu
27296 Insert\SpecialChar \menuseparator
27297 File\SpecialChar \menuseparator
27302 A dialog pops up where you can choose between three include methods:
27305 \begin_layout Description
27306 Include You can include LyX and LaTeX-documents.
27315 dialog, the included documents will be opened in LyX in a new file tab
27316 so that you can modify it.
27321 \begin_layout Standard
27322 Here is a child document inserted using
27327 \begin_inset Include \include{DummyDocument1.lyx}
27335 \begin_layout Standard
27336 The section numbering includes the sections of the included files in the
27337 order they are inserted in the master document.
27338 The included example document has for example a subsection that is numbered
27339 as subsection of this section.
27340 Labels of included documents can be referenced: Subsection\InsetSpace ~
27342 \begin_inset LatexCommand ref
27343 reference "sub:External-Subsection-1"
27350 \begin_layout Standard
27351 The preamble of the child document is ignored, only the preamble of the
27352 master document is used.
27353 Included documents are inserted starting on a new page and end with a pagebreak.
27356 \begin_layout Standard
27357 With the LaTeX-command
27363 you can specify which included child documents are processed when the output
27365 This is useful when you are perhaps only working on a certain chapter of
27366 your large document as this saves compiling time.
27373 is inserted to the master document preamble.
27374 It takes a comma-separated list of the filenames as argument, e.g.
27377 \begin_layout Standard
27382 includeonly{chapter1,chapter5}
27385 \begin_layout Standard
27386 will only process the included files named
27387 \begin_inset Quotes eld
27391 \begin_inset Quotes erd
27395 \begin_inset Quotes eld
27399 \begin_inset Quotes erd
27403 \begin_inset Quotes eld
27407 \begin_inset Quotes erd
27413 \begin_layout Standard
27414 \begin_inset Note Greyedout
27417 \begin_layout Standard
27422 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
27423 w the document in case that the child document uses another document class
27424 than the master document as this will lead to unexpected outputs.
27432 \begin_layout Description
27433 Input This method is very similar to the Include method.
27434 The differences are:
27438 \begin_layout Itemize
27439 Input files don't start with a new page and don't end with a pagebreak.
27442 \begin_layout Itemize
27443 Input files can be previewed in LyX when
27445 Instant\InsetSpace ~
27448 is enabled in LyX's preferences under
27452 feel\SpecialChar \menuseparator
27458 \begin_layout Itemize
27469 \begin_layout Standard
27470 Here is a child document inserted using
27475 \begin_inset Include \input{DummyDocument2.lyx}
27483 \begin_layout Description
27484 Verbatim With this method every text file can be included.
27485 The file is shown in the output with its source code, no command used in
27486 the text is invoked.
27487 You can use the option
27489 Mark spaces in output
27491 that displays the character
27492 \begin_inset Quotes eld
27499 \begin_layout Standard
27509 \begin_inset Quotes erd
27512 for every space character in the source code.
27513 The difference to the method via the menu
27515 Insert\SpecialChar \menuseparator
27516 File\SpecialChar \menuseparator
27520 is that the document content is not shown in LyX.
27523 \begin_layout Standard
27524 Here is a child document inserted as Verbatim:
27525 \begin_inset Include \verbatiminput{DummyTextDocument.txt}
27531 \begin_inset VSpace bigskip
27534 Here is a child document inserted as Verbatim using the
27536 Mark spaces in output
27539 \begin_inset Include \verbatiminput*{DummyTextDocument.txt}
27547 \begin_layout Standard
27548 \begin_inset VSpace bigskip
27554 \begin_layout Standard
27555 \begin_inset Note Greyedout
27558 \begin_layout Standard
27563 As you can see in the examples above, the text of the documents included
27564 as verbatim is not broken at the end of the document lines.
27572 \begin_layout Standard
27573 \begin_inset Note Greyedout
27576 \begin_layout Standard
27581 Including the same document twice in a document using different methods
27582 could cause LaTeX-problems.
27590 \begin_layout Standard
27596 \begin_layout Chapter
27602 \begin_layout Standard
27615 \begin_layout Standard
27623 \begin_inset LatexCommand index
27629 \begin_inset LatexCommand label
27630 name "cha:Units-available-in"
27635 \begin_inset Note Note
27638 \begin_layout Standard
27641 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
27642 are displayed wrongly in PDF-bookmarks.
27643 For more information about this, have a look at
27644 \begin_inset LatexCommand cite
27657 \begin_layout Standard
27658 To understand the units described in this documentation, Table\InsetSpace ~
27660 \begin_inset LatexCommand ref
27661 reference "tab:Units"
27665 explains all units available in LyX.
27668 \begin_layout Standard
27669 \begin_inset Float table
27675 \begin_layout Standard
27676 \begin_inset Caption
27678 \begin_layout Standard
27679 \begin_inset LatexCommand label
27692 \begin_layout Standard
27693 \begin_inset VSpace medskip
27699 \begin_layout Standard
27701 \begin_inset Tabular
27702 <lyxtabular version="3" rows="20" columns="2">
27704 <column alignment="center" valignment="top" leftline="true" width="0">
27705 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27706 <row topline="true" bottomline="true">
27707 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27710 \begin_layout Standard
27716 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27719 \begin_layout Standard
27726 <row topline="true">
27727 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27730 \begin_layout Standard
27736 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27739 \begin_layout Standard
27746 <row topline="true">
27747 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27750 \begin_layout Standard
27756 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27759 \begin_layout Standard
27766 <row topline="true">
27767 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27770 \begin_layout Standard
27776 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27779 \begin_layout Standard
27786 <row topline="true">
27787 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27790 \begin_layout Standard
27796 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27799 \begin_layout Standard
27800 point (72.27\InsetSpace \thinspace{}
27801 pt = 1\InsetSpace \thinspace{}
27808 <row topline="true">
27809 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27812 \begin_layout Standard
27818 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27821 \begin_layout Standard
27822 pica (1\InsetSpace \thinspace{}
27823 pc = 12\InsetSpace \thinspace{}
27830 <row topline="true">
27831 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27834 \begin_layout Standard
27840 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27843 \begin_layout Standard
27844 scaled point (65536\InsetSpace \thinspace{}
27845 sp = 1\InsetSpace \thinspace{}
27852 <row topline="true">
27853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27856 \begin_layout Standard
27862 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27865 \begin_layout Standard
27866 big point (72\InsetSpace \thinspace{}
27867 bp = 1\InsetSpace \thinspace{}
27874 <row topline="true">
27875 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27878 \begin_layout Standard
27884 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27887 \begin_layout Standard
27888 didot (72\InsetSpace \thinspace{}
27890 \begin_inset Formula $\approx$
27893 37.6\InsetSpace \thinspace{}
27900 <row topline="true">
27901 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27904 \begin_layout Standard
27910 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27913 \begin_layout Standard
27914 cicero (1\InsetSpace \thinspace{}
27915 cc = 12\InsetSpace \thinspace{}
27922 <row topline="true">
27923 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27926 \begin_layout Standard
27932 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27935 \begin_layout Standard
27936 % of original image width
27942 <row topline="true">
27943 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27946 \begin_layout Standard
27952 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27955 \begin_layout Standard
27962 <row topline="true">
27963 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27966 \begin_layout Standard
27972 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27975 \begin_layout Standard
27982 <row topline="true">
27983 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27986 \begin_layout Standard
27992 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27995 \begin_layout Standard
28002 <row topline="true">
28003 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28006 \begin_layout Standard
28012 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28015 \begin_layout Standard
28022 <row topline="true">
28023 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28026 \begin_layout Standard
28032 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28035 \begin_layout Standard
28042 <row topline="true">
28043 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28046 \begin_layout Standard
28052 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28055 \begin_layout Standard
28062 <row topline="true">
28063 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28066 \begin_layout Standard
28072 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28075 \begin_layout Standard
28086 <row topline="true">
28087 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28090 \begin_layout Standard
28096 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28099 \begin_layout Standard
28110 <row topline="true" bottomline="true">
28111 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28114 \begin_layout Standard
28120 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28123 \begin_layout Standard
28124 math unit (1\InsetSpace \thinspace{}
28125 mu = 1/18\InsetSpace \thinspace{}
28144 \begin_layout Chapter
28145 Output File Formats with Graphics
28146 \begin_inset LatexCommand label
28147 name "cha:Output-File-Formats"
28154 \begin_layout Section
28156 \begin_inset LatexCommand index
28157 name "File Formats ! DVI"
28162 \begin_inset LatexCommand index
28163 name "DVI|see{File Formats}"
28170 \begin_layout Standard
28171 This file type has the extension
28172 \begin_inset Quotes eld
28180 \begin_inset Quotes erd
28185 \begin_inset Quotes eld
28189 \begin_inset Quotes erd
28192 (DVI), because it is completely portable; you can move them from one machine
28193 to another without needing to do any sort of conversion.
28194 At the time when this file-format was developed, this was no matter of
28196 DVIs are used for quick previews and as pre-stage for other output formats,
28200 \begin_layout Standard
28201 \begin_inset Note Greyedout
28204 \begin_layout Standard
28209 DVI-files doesn't contain images, they will only be a linked.
28214 So don't forget this, if you move your
28218 file to another computer.
28219 This property can also slow down your computer when you view the DVI.
28220 Because the DVI-viewer has to convert the image in the background to make
28221 it visible when you scroll in the DVI.
28222 So we recommend to use PDF for files with many images.
28225 \begin_layout Standard
28226 You can export your document to DVI by using the menu
28228 File\SpecialChar \menuseparator
28229 Export\SpecialChar \menuseparator
28233 You can view your document as DVI via the
28237 menu or by using the toolbar button
28238 \begin_inset Graphics
28239 filename ../images/buffer-view_dvi.xpm
28247 \begin_layout Section
28249 \begin_inset LatexCommand label
28250 name "sec:PostScript"
28255 \begin_inset LatexCommand index
28256 name "File Formats ! PostScript"
28261 \begin_inset LatexCommand index
28262 name "PostScript|see{File Formats}"
28269 \begin_layout Standard
28270 This file type has the extension
28271 \begin_inset Quotes eld
28279 \begin_inset Quotes erd
28283 PostScript was developed by the company
28287 as printer language.
28288 The file contains therefore commands that the printer uses to print the
28290 PostScript can be seen as
28291 \begin_inset Quotes eld
28294 programming language
28295 \begin_inset Quotes erd
28298 ; you can calculate with it and draw diagrams and images
28302 \begin_layout Standard
28303 If you are interested to learn more about this, have a look at the LaTeX-package
28309 \begin_inset LatexCommand cite
28320 Due to this ability, the files are often bigger than PDFs.
28323 \begin_layout Standard
28324 PostScript can only contain images in the format
28325 \begin_inset Quotes eld
28328 Encapsulated PostScript
28329 \begin_inset Quotes erd
28332 (EPS, file extension
28333 \begin_inset Quotes eld
28341 \begin_inset Quotes erd
28345 As LyX allows you to use any known image format in your document, it has
28346 to convert images in the background to EPS.
28347 If you have e.g 50 images in your document, LyX has to do 50 conversions
28348 whenever you view or export your document.
28349 This will slow down your work flow with LyX drastically.
28350 So if you plan to use PostScript, you can insert your images directly as
28351 EPS to avoid this problem.
28354 \begin_layout Standard
28355 You can export your document to PostScript using the menu
28357 File\SpecialChar \menuseparator
28358 Export\SpecialChar \menuseparator
28362 You can view your document as PostScript via the
28366 menu or by using the toolbar button
28367 \begin_inset Graphics
28368 filename ../images/buffer-view_ps.xpm
28376 \begin_layout Section
28378 \begin_inset LatexCommand label
28384 \begin_inset LatexCommand index
28385 name "File Formats ! PDF"
28390 \begin_inset LatexCommand index
28398 \begin_layout Standard
28399 This file type has the extension
28400 \begin_inset Quotes eld
28408 \begin_inset Quotes erd
28413 \begin_inset Quotes eld
28416 Portable Document Format
28417 \begin_inset Quotes erd
28420 (PDF) is developed by
28424 as derivative from PostScript.
28425 It is more compressed and it uses much less commands than PostScript.
28427 \begin_inset Quotes eld
28431 \begin_inset Quotes erd
28434 implies, it can be processed at any computer system and the printed output
28435 looks exactly the same.
28438 \begin_layout Standard
28439 PDF can contain images in its own PDF format, in the format
28440 \begin_inset Quotes eld
28443 Joint Photographic Experts Group
28444 \begin_inset Quotes erd
28447 (JPG, file extension
28448 \begin_inset Quotes eld
28456 \begin_inset Quotes erd
28460 \begin_inset Quotes eld
28468 \begin_inset Quotes erd
28471 ), and in the format
28472 \begin_inset Quotes eld
28475 Portable Network Graphics
28476 \begin_inset Quotes erd
28479 (PNG, file extension
28480 \begin_inset Quotes eld
28488 \begin_inset Quotes erd
28492 You can although use any other image format, because LyX converts them
28493 in the background to one of these formats.
28494 But as described in the section about PostScript, the image conversion
28495 will slow down your work flow.
28496 So it is recommended to use images in one of the three mentioned formats.
28499 \begin_layout Standard
28500 You can export your document to PDF via the menu
28502 File\SpecialChar \menuseparator
28505 in three different ways:
28508 \begin_layout Description
28509 PDF This uses the program
28513 that creates a PDF from a PostScript-version of your file.
28514 The PostScript-version is produced by the program
28518 which uses a DVI-version as intermediate step.
28519 So this export variant consist of three conversions.
28522 \begin_layout Description
28524 (dvipdfm) This uses the program
28528 that converts your file in the background to DVI and in a second step to
28532 \begin_layout Description
28534 (pdflatex) This uses the program
28538 that converts your file directly to PDF.
28541 \begin_layout Standard
28542 It is recommended to use
28551 supports all features of actual PDF-versions, is quick and works stable
28557 is not under development and therefore a bit outdated.
28560 \begin_layout Standard
28561 You can view your document as PDF via the
28565 menu or by using the toolbar button
28566 \begin_inset Graphics
28567 filename ../images/buffer-view_pdf2.xpm
28584 \begin_layout Chapter
28585 Explanation of Equation\InsetSpace ~
28587 \begin_inset LatexCommand eqref
28593 \begin_inset LatexCommand label
28594 name "cha:Explanation-of-Equation"
28601 \begin_layout Standard
28607 \begin_inset Formula $W_{\mathrm{tot\, n}}$
28610 can be calculated to
28613 \begin_layout Standard
28614 \begin_inset Formula \begin{equation}
28615 W_{\mathrm{tot}\, n}=n·(W_{g\, n}+2·\backslash\mbox{tabcolsep})+(n+1)·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}\end{equation}
28622 \begin_layout Standard
28624 \begin_inset Formula $W_{g\, n}$
28627 is the given width of all cells.
28634 is the LaTeX-length between the cell text and the cell border, its default
28635 value is 6\InsetSpace \thinspace{}
28643 is the thickness of the cell border line, the default is 0.4\InsetSpace \thinspace{}
28647 \begin_layout Standard
28648 Following equation\InsetSpace ~
28650 \begin_inset LatexCommand eqref
28651 reference "eq:Wtot_n"
28655 , the total width of a multicolumn
28656 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
28662 \begin_layout Standard
28663 \begin_inset Formula \begin{equation}
28664 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2·\backslash\mbox{tabcolsep}+2·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
28671 \begin_layout Standard
28672 By setting equation\InsetSpace ~
28674 \begin_inset LatexCommand eqref
28675 reference "eq:Wtot_n"
28680 \begin_inset LatexCommand eqref
28681 reference "eq:Wtot_mult"
28685 equal we can calculate the needed given width
28686 \begin_inset Formula $W_{g\, n}$
28693 columns are spanned, so that each column has a total width of
28694 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
28700 \begin_layout Standard
28701 \begin_inset Formula \begin{equation}
28702 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)·(2·\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
28709 \begin_layout Bibliography
28710 \begin_inset LatexCommand bibitem
28711 key "latexcompanion"
28715 Frank Mittelbach and Michel Goossens:
28717 The LaTeX Companion Second Edition.
28720 Addison-Wesley, 2004
28723 \begin_layout Bibliography
28724 \begin_inset LatexCommand bibitem
28729 Helmut Kopka and Patrick W.
28732 A Guide to LaTeX Fourth Edition.
28735 Addison-Wesley, 2003
28738 \begin_layout Bibliography
28739 \begin_inset LatexCommand bibitem
28746 LaTeX: A Document Preparation System.
28749 Addison-Wesley, second edition, 1994
28752 \begin_layout Bibliography
28753 \begin_inset LatexCommand bibitem
28762 \begin_layout Standard
28766 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf}
28776 \begin_layout Standard
28783 of the LaTeX-package
28788 \begin_inset LatexCommand index
28789 name "LaTeX-packages ! booktabs"
28796 \begin_layout Bibliography
28797 \begin_inset LatexCommand bibitem
28806 \begin_layout Standard
28810 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf}{
28819 \begin_layout Standard
28826 of the LaTeX-package
28831 \begin_inset LatexCommand index
28832 name "LaTeX-packages ! caption"
28839 \begin_layout Bibliography
28840 \begin_inset LatexCommand bibitem
28849 \begin_layout Standard
28853 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/anleitung.pdf}
28863 \begin_layout Standard
28870 of the LaTeX-package
28875 \begin_layout Bibliography
28876 \begin_inset LatexCommand bibitem
28885 \begin_layout Standard
28889 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf}
28899 \begin_layout Standard
28906 of the LaTeX-package
28908 endf\SpecialChar \textcompwordmark{}
28912 \begin_inset LatexCommand index
28913 name "LaTeX-packages ! endfloat"
28920 \begin_layout Bibliography
28921 \begin_inset LatexCommand bibitem
28930 \begin_layout Standard
28934 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/floatflt/floatflt.pdf}
28944 \begin_layout Standard
28951 of the LaTeX-package
28953 floatf\SpecialChar \textcompwordmark{}
28957 \begin_inset LatexCommand index
28958 name "LaTeX-packages ! floatflt"
28965 \begin_layout Bibliography
28966 \begin_inset LatexCommand bibitem
28975 \begin_layout Standard
28979 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf}
28989 \begin_layout Standard
28996 of the LaTeX-package
29001 \begin_inset LatexCommand index
29002 name "LaTeX-packages ! footmisc"
29009 \begin_layout Bibliography
29010 \begin_inset LatexCommand bibitem
29019 \begin_layout Standard
29023 href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf}{
29032 \begin_layout Standard
29039 of the LaTeX-package
29044 \begin_inset LatexCommand index
29045 name "LaTeX-packages ! hyperref"
29052 \begin_layout Bibliography
29053 \begin_inset LatexCommand bibitem
29062 \begin_layout Standard
29066 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf}
29076 \begin_layout Standard
29083 of the LaTeX-package
29088 \begin_inset LatexCommand index
29089 name "LaTeX-packages ! hyperref"
29096 \begin_layout Bibliography
29097 \begin_inset LatexCommand bibitem
29106 \begin_layout Standard
29110 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.p
29120 \begin_layout Standard
29127 of the LaTeX-package
29132 \begin_inset LatexCommand index
29133 name "LaTeX-packages ! koma-script"
29140 \begin_layout Bibliography
29141 \begin_inset LatexCommand bibitem
29142 key "koma-script-de"
29150 \begin_layout Standard
29154 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguide.p
29164 \begin_layout Standard
29171 of the LaTeX-package
29176 \begin_inset LatexCommand index
29177 name "LaTeX-packages ! koma-script"
29184 \begin_layout Bibliography
29185 \begin_inset LatexCommand bibitem
29194 \begin_layout Standard
29198 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.
29208 \begin_layout Standard
29215 of the LaTeX-package
29220 \begin_inset LatexCommand index
29221 name "LaTeX-packages ! marginnote"
29228 \begin_layout Bibliography
29229 \begin_inset LatexCommand bibitem
29238 \begin_layout Standard
29242 href{http://tug.org/PSTricks/main.cgi/}{
29251 \begin_layout Standard
29258 of the LaTeX-package
29263 \begin_inset LatexCommand index
29264 name "LaTeX-packages ! PSTricks"
29271 \begin_layout Bibliography
29272 \begin_inset LatexCommand bibitem
29281 \begin_layout Standard
29285 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf}{
29294 \begin_layout Standard
29301 of the LaTeX-package
29306 \begin_inset LatexCommand index
29307 name "LaTeX-packages ! sidecap"
29314 \begin_layout Bibliography
29315 \begin_inset LatexCommand bibitem
29324 \begin_layout Standard
29328 href{http://wiki.lyx.org/LyX/NewInLyX15}{
29337 \begin_layout Standard
29344 about new LyX-features planned for the release
29351 \begin_layout Standard
29352 \begin_inset LatexCommand printindex
29359 \begin_layout Standard
29360 \begin_inset FloatList figure
29367 \begin_layout Standard
29368 \begin_inset FloatList table