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
214 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
223 \begin_layout Standard
225 If you have comments or error corrections, please send them to the LyX Documenta
232 \begin_layout Standard
236 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's ExtendedInsets manual}{
241 lyx-docs@lists.lyx.org
245 \begin_layout Standard
258 \begin_inset Note Note
261 \begin_layout Standard
262 original author: Uwe Stöhr
278 \begin_layout Standard
279 \begin_inset LatexCommand tableofcontents
286 \begin_layout Standard
287 \begin_inset Note Note
290 \begin_layout Standard
291 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
301 If they are not installed you can export the document anyway but the sections
302 where the packages are required won't appear in the output.
305 \begin_layout Standard
306 The latest PDF-version of this document can be found here:
310 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
318 \begin_layout Chapter
320 \begin_inset LatexCommand label
326 \begin_inset LatexCommand index
332 \begin_inset LatexCommand index
333 name "Graphics|see{Figures}"
340 \begin_layout Section
342 \begin_inset LatexCommand index
343 name "Figures ! Graphics Dialog"
348 \begin_inset LatexCommand label
349 name "sec:Graphics-Dialog"
356 \begin_layout Standard
357 To insert an image into your document, place the cursor at the text position
358 you want and click on the toolbar icon
359 \begin_inset Graphics
360 filename ../images/dialog-show-new-inset_graphics.xpm
367 Insert\SpecialChar \menuseparator
371 Then a dialog will appear to choose the file to load.
372 The image will appear in the output exactly at the position where it is
376 \begin_layout Standard
377 The graphics dialog can be called at any time by right-clicking on an image.
378 This dialog has three tabs:
381 \begin_layout Description
386 Here you can choose an image file and adjust its appearance in the output.
387 The available units for the image size are explained in appendix\InsetSpace ~
389 \begin_inset LatexCommand ref
390 reference "cha:Units-available-in"
396 You can rotate images counter-clockwise by setting a rotation angle and
398 The image will also be rotated inside LyX.
400 Images can be opened in a program
401 of your choice when pressing the
406 The program can be set for every image format in the file format settings
407 in LyX's preferences.
410 \begin_layout Description
415 Alternatively to the usage of scaling units it is possible to set image
416 coordinates to adjust the height and width of the image in the output.
417 The coordinates can also be calculated automatically by pressing the button
429 bounding\InsetSpace ~
432 will only print the image region within the given coordinates.
433 Normally you don't need to take care about image coordinates and can ignore
437 \begin_layout Description
443 In this tab you can modify the appearance of the image within LyX and set
444 the image to be a subfigure of a figure float with an own caption.
445 Subfigures are explained in section\InsetSpace ~
447 \begin_inset LatexCommand ref
448 reference "sec:Figure-Floats"
454 LaTeX experts can also specify on this tab additional LaTeX options.
462 makes the image appear in the output only as a frame with the size of the
472 option only affects zipped EPS-graphics, e.\InsetSpace \thinspace{}
479 When the option is used the images will not be unzipped on export, since
480 LaTeX can handle them as they are.
482 Zipped EPS-graphics are useful to save
483 disk space when you choose PostScript as output format, see appendix\InsetSpace ~
485 \begin_inset LatexCommand ref
486 reference "sec:PostScript"
491 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
502 zgrep %%Bounding x.eps.gz > x.eps.bb
506 The second command creates the bounding box file
507 \begin_inset Quotes eld
511 \begin_inset Quotes erd
514 that is needed by LaTeX for zipped graphics.
517 \begin_layout Standard
518 \begin_inset VSpace bigskip
524 \begin_layout Standard
525 This is an example image in EPS format
529 \begin_layout Standard
530 Image formats are explained in section\InsetSpace ~
532 \begin_inset LatexCommand ref
533 reference "sec:Image-Formats"
542 within a separate, horizontally centered paragraph:
545 \begin_layout Standard
547 \begin_inset Graphics
548 filename clipart/mobius.eps
558 \begin_layout Standard
559 This is the same image like the one above but in draft mode:
562 \begin_layout Standard
564 \begin_inset Graphics
565 filename clipart/mobius.eps
576 \begin_layout Section
578 \begin_inset LatexCommand label
579 name "sec:Figure-Floats"
584 \begin_inset LatexCommand index
585 name "Floats ! Figure Floats"
590 \begin_inset LatexCommand index
591 name "Figures ! Floats"
598 \begin_layout Standard
599 For general explanations about floats, have a look at section\InsetSpace ~
601 \begin_inset LatexCommand ref
602 reference "sec:FloatIntroduction"
609 \begin_layout Standard
611 \begin_inset Graphics
612 filename ../images/float-insert_figure.xpm
619 Insert\SpecialChar \menuseparator
620 Float\SpecialChar \menuseparator
623 inserts a float with a caption that has the label
624 \begin_inset Quotes eld
629 \begin_inset Quotes erd
632 (# is the actual number).
633 You can insert the image above the caption, like in Figure\InsetSpace ~
635 \begin_inset LatexCommand ref
636 reference "fig:kill-plat"
640 or below the caption, like in Figure\InsetSpace ~
642 \begin_inset LatexCommand ref
643 reference "fig:escher"
648 More about the caption placement is described in section\InsetSpace ~
650 \begin_inset LatexCommand ref
651 reference "sec:Caption-Placement"
658 \begin_layout Standard
659 \begin_inset Float figure
664 \begin_layout Standard
666 \begin_inset Graphics
667 filename clipart/platypus.eps
677 \begin_layout Standard
680 \begin_layout Standard
681 \begin_inset LatexCommand label
686 A severely distorted platypus in a float.
699 \begin_layout Standard
700 \begin_inset Float figure
705 \begin_layout Standard
708 \begin_layout Standard
709 \begin_inset LatexCommand label
723 \begin_layout Standard
725 \begin_inset Graphics
726 filename clipart/escher-lsd.eps
741 \begin_layout Standard
742 \begin_inset LatexCommand index
743 name "References ! to Figures"
749 \begin_inset LatexCommand ref
750 reference "fig:kill-plat"
755 \begin_inset LatexCommand ref
756 reference "fig:escher"
760 are examples of referenced figures.
761 Figures can be referenced in the text by referencing their label.
762 To do this insert a label in the caption using the menu
764 Insert\SpecialChar \menuseparator
767 or the toolbar button
768 \begin_inset Graphics
769 filename ../images/label-insert.xpm
775 You can now refer to the label using the menu
777 Insert\SpecialChar \menuseparator
781 or the toolbar button
782 \begin_inset Graphics
783 filename ../images/dialog-show-new-inset_ref.xpm
789 It is important to use references to floats, rather than using vague references
791 \begin_inset Quotes eld
795 \begin_inset Quotes erd
798 , because as LaTeX will reposition the floats in the final document, it
800 \begin_inset Quotes eld
804 \begin_inset Quotes erd
809 Referencing is explained in detail in section\InsetSpace ~
811 \begin_inset LatexCommand ref
812 reference "sec:Referencing-Floats"
819 \begin_layout Standard
820 Normally only one image is inserted to a figure float, but sometimes you
821 might want to use two images with separate subcaptions.
822 This can be set in the tab
827 of the graphics dialog.
828 Choose there the option
832 and enter the subcaption for the image in the caption field.
833 Note that only the main caption of the float is added to the List of Figures.
836 erencing subfigures is explained in section\InsetSpace ~
838 \begin_inset LatexCommand ref
839 reference "sub:Referencing-Subfigures"
846 \begin_layout Standard
849 \begin_inset LatexCommand ref
850 reference "fig:Two-distorted-images"
854 is an example of a figure float with two images set side by side.
855 You can also set the images one below the other.
858 \begin_layout Standard
859 \begin_inset Float figure
864 \begin_layout Standard
868 \begin_inset Graphics
869 filename clipart/escher-lsd.eps
872 subcaptionText "Undefinable structure"
879 \begin_inset Graphics
880 filename clipart/platypus.eps
884 subcaptionText "\label{fig:Platypus} Platypus"
893 \begin_layout Standard
896 \begin_layout Standard
897 \begin_inset LatexCommand label
898 name "fig:Two-distorted-images"
902 Two distorted images.
915 \begin_layout Section
917 \begin_inset LatexCommand label
918 name "sec:Image-Formats"
923 \begin_inset LatexCommand index
929 \begin_inset LatexCommand index
930 name "Figures ! Image Formats"
937 \begin_layout Standard
938 You can insert images in any known file format.
939 But as explained in appendix\InsetSpace ~
941 \begin_inset LatexCommand ref
942 reference "cha:Output-File-Formats"
946 , every output document format allows only a few image formats.
947 LyX uses therefore the program
951 in the background to convert the images to the right format.
952 To increase your work flow by avoiding these conversions in the background,
953 you can use only the image formats that can directly be embedded in the
955 The output file formats are explained in appendix\InsetSpace ~
957 \begin_inset LatexCommand ref
958 reference "cha:Output-File-Formats"
965 \begin_layout Standard
966 Similar to fonts there are two types of image formats:
969 \begin_layout Description
971 images consist of pixel values, often in a compressed form.
972 They are therefore not fully scalable and look pixeled in large zooms.
973 Well-known bitmap image formats are
974 \begin_inset Quotes eld
977 Graphics Interchange Format
978 \begin_inset Quotes erd
982 \begin_inset Quotes eld
990 \begin_inset Quotes erd
994 \begin_inset LatexCommand index
995 name "GIF|see{Image formats}"
1000 \begin_inset Quotes eld
1003 Portable Network Graphics
1004 \begin_inset Quotes erd
1007 (PNG, file extension
1008 \begin_inset Quotes eld
1016 \begin_inset Quotes erd
1020 \begin_inset LatexCommand index
1021 name "PNG|see{Image formats}"
1026 \begin_inset Quotes eld
1029 Joint Photographic Experts Group
1030 \begin_inset Quotes erd
1033 (JPG, file extension
1034 \begin_inset Quotes eld
1042 \begin_inset Quotes erd
1046 \begin_inset Quotes eld
1054 \begin_inset Quotes erd
1058 \begin_inset LatexCommand index
1059 name "JPG|see{Image formats}"
1066 \begin_layout Description
1068 images consist of vectors and can therefore be scaled to any size
1070 The scaling ability is necessary if you want to create presentations, because
1071 presentations are always scaled by the video projector.
1072 Scaling is also useful for online documents to let the user zoom into diagrams.
1075 ell-known scalable image formats are
1076 \begin_inset Quotes eld
1079 Scalable Vector Graphics
1080 \begin_inset Quotes erd
1083 (SVG, file extension
1084 \begin_inset Quotes eld
1092 \begin_inset Quotes erd
1096 \begin_inset LatexCommand index
1097 name "SVG|see{Image formats}"
1102 \begin_inset Quotes eld
1105 Encapsulated PostScript
1106 \begin_inset Quotes erd
1109 (EPS, file extension
1110 \begin_inset Quotes eld
1118 \begin_inset Quotes erd
1122 \begin_inset LatexCommand index
1123 name "EPS|see{Image formats}"
1128 \begin_inset Quotes eld
1131 Portable Document Format
1132 \begin_inset Quotes erd
1135 (PDF, file extension
1136 \begin_inset Quotes eld
1144 \begin_inset Quotes erd
1148 \begin_inset LatexCommand index
1154 \begin_inset Quotes eld
1158 \begin_inset Quotes erd
1161 (WMF, file extension
1162 \begin_inset Quotes eld
1170 \begin_inset Quotes erd
1174 \begin_inset LatexCommand index
1175 name "SVG|see{Image formats}"
1181 \begin_inset Quotes eld
1185 \begin_inset Quotes erd
1188 , because you can convert any bitmap image to a PDF or EPS-image and the
1189 result will still be a bitmap image.
1190 In this cases only a header with the image properties is added to the original
1195 \begin_layout Standard
1196 In the case of PDF, the original image is additionally compressed.
1202 The PDF-files generated by
1206 are for example bitmap images.
1209 \begin_layout Standard
1210 Normally it is not possible to convert a bitmap image into a scalable one,
1212 Only the image formats PDF and EPS can directly be embedded to PDF and
1213 PostScript output files, respectively.
1214 SVG and WMF-images are currently recalculated to bitmaps when the output
1215 file is generated because there is currently no adequate WMF/SVG
1216 \begin_inset Formula $\to$
1219 PDF/EPS converter available.
1222 \begin_layout Chapter
1224 \begin_inset LatexCommand label
1230 \begin_inset LatexCommand index
1238 \begin_layout Section
1240 \begin_inset LatexCommand index
1241 name "Table ! Introduction"
1248 \begin_layout Standard
1249 You can insert a table using either the toolbar button
1250 \begin_inset Graphics
1251 filename ../images/tabular-insert.xpm
1258 Insert\SpecialChar \menuseparator
1262 The toolbar button offers you a graphical selection: Move the mouse to
1263 set the column/row number of the table that should be created and then
1264 press a mouse button.
1265 When you use the menu to create a table, a dialog will appear, asking you
1266 for the number of rows and columns.
1268 The default table has lines around any
1269 cell and the first row appears separated from the rest of the table.
1270 This separation occurs due to a double line: The cells of the first row
1271 have a line below them and the cells of the second row have a line above
1273 Here is an example table:
1276 \begin_layout Standard
1278 \begin_inset Tabular
1279 <lyxtabular version="3" rows="4" columns="4">
1281 <column alignment="center" valignment="top" leftline="true" width="0">
1282 <column alignment="center" valignment="top" leftline="true" width="0">
1283 <column alignment="center" valignment="top" leftline="true" width="0">
1284 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
1285 <row topline="true" bottomline="true">
1286 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1289 \begin_layout Standard
1295 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1298 \begin_layout Standard
1313 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1316 \begin_layout Standard
1322 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1325 \begin_layout Standard
1332 <row topline="true">
1333 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1336 \begin_layout Standard
1351 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1354 \begin_layout Standard
1360 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1363 \begin_layout Standard
1369 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1372 \begin_layout Standard
1379 <row topline="true">
1380 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1383 \begin_layout Standard
1398 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1401 \begin_layout Standard
1407 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1410 \begin_layout Standard
1416 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1419 \begin_layout Standard
1426 <row topline="true" bottomline="true">
1427 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1430 \begin_layout Standard
1445 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1448 \begin_layout Standard
1454 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1457 \begin_layout Standard
1463 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1466 \begin_layout Standard
1480 \begin_layout Section
1482 \begin_inset LatexCommand index
1483 name "Table ! Dialog"
1490 \begin_layout Standard
1491 You can alter a table by clicking on it with the right mouse button, which
1492 brings up the table dialog.
1493 Here you can adjust the settings of that cell and row/column respectively
1494 where the cursor is currently placed.
1495 Most of the dialog options also work on selections.
1496 This means if you select more cells, columns or rows, the action is done
1497 for the whole selection.
1498 Note that there is a difference between selecting the
1502 of the cell, and the cell itself.
1503 You can alter tables with the following tabs of the table dialog:
1506 \begin_layout Description
1512 Here you can set the horizontal alignment for the current row and the width
1513 of the current column.
1514 When you have set a width you can also adjust the vertical alignment of
1516 A given width will allow the cell to have line breaks and multiple paragraphs
1517 of text, see section\InsetSpace ~
1519 \begin_inset LatexCommand ref
1520 reference "sub:Multiple-Lines-in"
1525 If you set no width, the column is as wide as their widest cell content
1528 Furthermore, you can mark one or multiple cells of one row as a multicolumn
1529 cell, see section\InsetSpace ~
1531 \begin_inset LatexCommand ref
1532 reference "sub:Multicolumns"
1538 The rotate check boxes rotates the current cell, a selection, or the whole
1539 table counter-clockwise by 90°.
1540 The rotation is not shown within LyX, only in the output.
1543 \begin_inset Note Greyedout
1546 \begin_layout Standard
1551 Not all DVI-viewers are able to display rotations.
1558 It is also possible to enter a LaTeX-argument which is needed for special
1559 table formattings, see section\InsetSpace ~
1561 \begin_inset LatexCommand ref
1562 reference "sub:Multicolumn-Calculations"
1567 \begin_inset LatexCommand ref
1568 reference "sec:Colored-Tables"
1575 \begin_layout Description
1580 In this tab you can add and delete border lines for the current row/column.
1587 will convert the table to a formal table as described in section\InsetSpace ~
1589 \begin_inset LatexCommand ref
1590 reference "sec:Formal-Tables"
1596 You can also add here space to table rows as decribed in section\InsetSpace ~
1598 \begin_inset LatexCommand ref
1599 reference "sub:Row-Spacing"
1606 \begin_layout Description
1611 This tab is to make a table a so called
1612 \begin_inset Quotes eld
1620 \begin_inset Quotes erd
1623 that can run over several pages.
1624 Section\InsetSpace ~
1626 \begin_inset LatexCommand ref
1627 reference "sec:Longtables"
1632 \begin_inset LatexCommand ref
1633 reference "sec:Special-Longtable-Issues"
1637 describe the longtable features in detail.
1640 \begin_layout Standard
1641 When the table toolbar is opened, you can move the cursor with the arrow
1642 keys from cell to cell and the property of the current cell will immediately
1643 be displayed in the dialog.
1646 \begin_layout Section
1648 \begin_inset LatexCommand index
1649 name "Table ! Toolbar"
1656 \begin_layout Standard
1657 The table toolbar is an alternative to the table dialog to be able to alter
1659 It should normally appear at the bottom of LyX's main window when the cursor
1661 You can alternatively switch it on to appear always, by right-clicking
1662 in LyX's main menu bar.
1665 \begin_layout Standard
1666 The toolbar has the following icons:
1669 \begin_layout Labeling
1670 \labelwidthstring 00.00.0000
1671 \begin_inset Graphics
1672 filename ../images/tabular-feature_append-row.xpm
1676 adds a row below the current cell or selection
1679 \begin_layout Labeling
1680 \labelwidthstring 00.00.0000
1681 \begin_inset Graphics
1682 filename ../images/tabular-feature_append-column.xpm
1686 adds a column right beside the current cell or selection
1689 \begin_layout Labeling
1690 \labelwidthstring 00.00.0000
1691 \begin_inset Graphics
1692 filename ../images/tabular-feature_delete-row.xpm
1696 deletes the current row or selection
1699 \begin_layout Labeling
1700 \labelwidthstring 00.00.0000
1701 \begin_inset Graphics
1702 filename ../images/tabular-feature_delete-column.xpm
1706 deletes the current column or selection
1709 \begin_layout Labeling
1710 \labelwidthstring 00.00.0000
1711 \begin_inset Graphics
1712 filename ../images/tabular-feature_toggle-line-top.xpm
1716 adds a line at the top of the current cell / row or of a selection
1719 \begin_layout Labeling
1720 \labelwidthstring 00.00.0000
1721 \begin_inset Graphics
1722 filename ../images/tabular-feature_toggle-line-bottom.xpm
1726 adds a line at the bottom of the current cell / row or of a selection
1729 \begin_layout Labeling
1730 \labelwidthstring 00.00.0000
1731 \begin_inset Graphics
1732 filename ../images/tabular-feature_toggle-line-left.xpm
1736 adds a line at the left side of the current cell / row or of a selection
1739 \begin_layout Labeling
1740 \labelwidthstring 00.00.0000
1741 \begin_inset Graphics
1742 filename ../images/tabular-feature_toggle-line-right.xpm
1746 adds a line at the right side of the current cell / row or of a selection
1749 \begin_layout Labeling
1750 \labelwidthstring 00.00.0000
1751 \begin_inset Graphics
1752 filename ../images/tabular-feature_set-all-lines.xpm
1756 adds lines around the current or selected cells - if the current cell no
1757 multicolumn this also affects the current row and column
1760 \begin_layout Labeling
1761 \labelwidthstring 00.00.0000
1762 \begin_inset Graphics
1763 filename ../images/tabular-feature_unset-all-lines.xpm
1767 deletes all lines of the current or selected cells - if the current cell
1768 no multicolumn this also affects the current row and column
1771 \begin_layout Labeling
1772 \labelwidthstring 00.00.0000
1773 \begin_inset Graphics
1774 filename ../images/tabular-feature_align-left.xpm
1778 left-aligns the content of the current cell / column
1781 \begin_layout Labeling
1782 \labelwidthstring 00.00.0000
1783 \begin_inset Graphics
1784 filename ../images/tabular-feature_align-center.xpm
1788 centers the content of the current cell / column horizontally
1791 \begin_layout Labeling
1792 \labelwidthstring 00.00.0000
1793 \begin_inset Graphics
1794 filename ../images/tabular-feature_align-right.xpm
1798 right-aligns the content of the current cell / column
1801 \begin_layout Labeling
1802 \labelwidthstring 00.00.0000
1803 \begin_inset Graphics
1804 filename ../images/tabular-feature_valign-top.xpm
1808 aligns the content of the current cell vertically to the top
1811 \begin_layout Labeling
1812 \labelwidthstring 00.00.0000
1813 \begin_inset Graphics
1814 filename ../images/tabular-feature_valign-middle.xpm
1818 centers the content of the current cell vertically
1821 \begin_layout Labeling
1822 \labelwidthstring 00.00.0000
1823 \begin_inset Graphics
1824 filename ../images/tabular-feature_valign-bottom.xpm
1828 aligns the content of the current cell vertically to the bottom
1831 \begin_layout Labeling
1832 \labelwidthstring 00.00.0000
1833 \begin_inset Graphics
1834 filename ../images/tabular-feature_set-rotate-cell.xpm
1838 rotates the current cell or selection counter-clockwise by 90°
1841 \begin_layout Labeling
1842 \labelwidthstring 00.00.0000
1843 \begin_inset Graphics
1844 filename ../images/tabular-feature_set-rotate-tabular.xpm
1848 rotates the whole table counter-clockwise by 90°
1851 \begin_layout Labeling
1852 \labelwidthstring 00.00.0000
1853 \begin_inset Graphics
1854 filename ../images/tabular-feature_multicolumn.xpm
1858 sets the current cell or selection as a multicolumn
1861 \begin_layout Section
1863 \begin_inset LatexCommand index
1864 name "Table ! Edit Menu"
1871 \begin_layout Standard
1872 Additionally to the table dialog and toolbar, the menu
1874 Edit\SpecialChar \menuseparator
1877 allows you to add and delete border lines for the current row/column and
1878 to set the current selection as multicolumn.
1879 The menu is only available when the cursor is inside a table.
1882 \begin_layout Section
1884 \begin_inset LatexCommand label
1885 name "sec:Table-Floats"
1890 \begin_inset LatexCommand index
1891 name "Floats ! Tables"
1896 \begin_inset LatexCommand index
1897 name "Table ! Floats"
1904 \begin_layout Standard
1905 For general explanations about floats, have a look at section\InsetSpace ~
1907 \begin_inset LatexCommand ref
1908 reference "sec:FloatIntroduction"
1915 \begin_layout Standard
1916 \begin_inset Float table
1922 \begin_layout Standard
1923 \begin_inset Caption
1925 \begin_layout Standard
1926 \begin_inset LatexCommand label
1927 name "tab:a table float"
1939 \begin_layout Standard
1941 \begin_inset Tabular
1942 <lyxtabular version="3" rows="3" columns="3">
1944 <column alignment="center" valignment="top" leftline="true" width="0pt">
1945 <column alignment="center" valignment="top" leftline="true" width="0pt">
1946 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
1947 <row topline="true" bottomline="true">
1948 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1951 \begin_layout Standard
1966 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1969 \begin_layout Standard
1984 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1987 \begin_layout Standard
2003 <row topline="true">
2004 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2007 \begin_layout Standard
2022 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2025 \begin_layout Standard
2040 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2043 \begin_layout Standard
2059 <row topline="true" bottomline="true">
2060 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2063 \begin_layout Standard
2073 \begin_inset Formula $\int x^{2}dx$
2081 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2084 \begin_layout Standard
2094 \begin_inset Formula $\left[\begin{array}{cc}
2096 c & d\end{array}\right]$
2104 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2107 \begin_layout Standard
2117 \begin_inset Formula $1+1=2$
2138 \begin_layout Standard
2139 Table floats can be inserted using the menu
2141 Insert\SpecialChar \menuseparator
2142 Float\SpecialChar \menuseparator
2145 or the toolbar button
2146 \begin_inset Graphics
2147 filename ../images/float-insert_table.xpm
2155 \begin_layout Standard
2156 The float appears as a collapsible box with a caption that has the label
2158 \begin_inset Quotes eld
2163 \begin_inset Quotes erd
2166 (# is the actual table number).
2167 You can insert tables to the float above or below the caption.
2170 \begin_layout Standard
2173 \begin_inset LatexCommand ref
2174 reference "tab:a table float"
2178 is an example table within a table float.
2181 \begin_layout Standard
2182 Having the caption above the table is the common rule that is unfortunately
2183 not supported in LaTeX's standard classes.
2184 That means if you are using the document classes
2200 there will be no space between the caption and the table.
2201 To insert the needed space, add the following option to the load command
2202 of the LaTeX-package
2207 \begin_inset LatexCommand index
2208 name "LaTeX-packages ! caption"
2212 in your document preamble
2216 \begin_layout Standard
2217 For more information have a look at section\InsetSpace ~
2219 \begin_inset LatexCommand ref
2220 reference "sec:Caption-Placement"
2232 \begin_layout Standard
2238 \begin_layout Standard
2243 , which is described in section\InsetSpace ~
2245 \begin_inset LatexCommand ref
2246 reference "sec:Caption-Formatting"
2250 , is used to adjust the caption format.
2253 \begin_layout Standard
2254 \begin_inset LatexCommand index
2255 name "References ! to Tables"
2259 Tables can be cross-referenced in the text by referencing their label.
2260 To do this insert a label in the caption using the menu
2262 Insert\SpecialChar \menuseparator
2265 or the toolbar button
2266 \begin_inset Graphics
2267 filename ../images/label-insert.xpm
2273 You can now refer to the label using the menu
2275 Insert\SpecialChar \menuseparator
2279 or the toolbar button
2280 \begin_inset Graphics
2281 filename ../images/dialog-show-new-inset_ref.xpm
2288 Referencing is explained in detail in section\InsetSpace ~
2290 \begin_inset LatexCommand ref
2291 reference "sec:Referencing-Floats"
2298 \begin_layout Section
2300 \begin_inset LatexCommand label
2301 name "sec:Longtables"
2306 \begin_inset LatexCommand index
2312 \begin_inset LatexCommand index
2313 name "Table ! Longtables"
2320 \begin_layout Standard
2321 If the table is too long to fit on one page, you can use the option
2331 of the table dialog to split the table automatically over more pages.
2332 Doing this enables some check boxes and you can now define:
2335 \begin_layout Description
2340 : The current row and all rows above, that don't have any special options
2341 defined, are defined to be the header rows of all pages of the longtable;
2342 except for the first page, if
2348 This therefore called the main header.
2351 \begin_layout Description
2357 : The current row and all rows above, that don't have any special options
2358 defined, are defined to be the header rows of the first page of the longtable.
2361 \begin_layout Description
2366 : The current row and all rows below, that don't have any special options
2367 defined, are defined to be the footer rows of all pages of the longtable;
2368 except for the last page, if
2376 \begin_layout Description
2382 : The current row and all rows below, that don't have any special options
2383 defined, are defined to be the footer rows of the last page of the longtable.
2386 \begin_layout Standard
2387 You can also specify a row where the table is splitted.
2388 If you set more than one option in the same table row, you should be aware
2389 of the fact that only the first one is used in the given table row.
2390 The others will then be defined as
2395 In this context, first means first in this order:
2397 Footer, Last\InsetSpace ~
2410 See the following longtable to see how it works:
2413 \begin_layout Standard
2415 \begin_inset Tabular
2416 <lyxtabular version="3" rows="69" columns="3">
2417 <features islongtable="true">
2418 <column alignment="left" valignment="top" leftline="true" width="0cm">
2419 <column alignment="left" valignment="top" width="0pt">
2420 <column alignment="right" valignment="top" leftline="true" rightline="true" width="0pt">
2421 <row topline="true" bottomline="true" endfirsthead="true">
2422 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2425 \begin_layout Standard
2428 Example Phone List (ignore the names)
2433 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2436 \begin_layout Standard
2442 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2445 \begin_layout Standard
2452 <row topline="true" bottomline="true" endfirsthead="true">
2453 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2456 \begin_layout Standard
2464 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2467 \begin_layout Standard
2473 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2476 \begin_layout Standard
2485 <row topline="true" bottomline="true" endhead="true">
2486 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2489 \begin_layout Standard
2497 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2500 \begin_layout Standard
2506 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2509 \begin_layout Standard
2516 <row topline="true" bottomline="true" endhead="true">
2517 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2520 \begin_layout Standard
2528 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2531 \begin_layout Standard
2537 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2540 \begin_layout Standard
2549 <row topline="true" bottomline="true" endfoot="true">
2550 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
2553 \begin_layout Standard
2554 continued on next page
2559 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2562 \begin_layout Standard
2568 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2571 \begin_layout Standard
2579 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2582 \begin_layout Standard
2590 <cell alignment="center" valignment="top" topline="true" usebox="none">
2593 \begin_layout Standard
2599 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2602 \begin_layout Standard
2610 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2613 \begin_layout Standard
2621 <cell alignment="center" valignment="top" topline="true" usebox="none">
2624 \begin_layout Standard
2630 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2633 \begin_layout Standard
2641 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2644 \begin_layout Standard
2652 <cell alignment="center" valignment="top" topline="true" usebox="none">
2655 \begin_layout Standard
2661 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2664 \begin_layout Standard
2672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2675 \begin_layout Standard
2683 <cell alignment="center" valignment="top" topline="true" usebox="none">
2686 \begin_layout Standard
2692 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2695 \begin_layout Standard
2703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2706 \begin_layout Standard
2714 <cell alignment="center" valignment="top" topline="true" usebox="none">
2717 \begin_layout Standard
2723 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2726 \begin_layout Standard
2734 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2737 \begin_layout Standard
2745 <cell alignment="center" valignment="top" topline="true" usebox="none">
2748 \begin_layout Standard
2754 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2757 \begin_layout Standard
2765 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2768 \begin_layout Standard
2776 <cell alignment="center" valignment="top" topline="true" usebox="none">
2779 \begin_layout Standard
2785 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2788 \begin_layout Standard
2796 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2799 \begin_layout Standard
2807 <cell alignment="center" valignment="top" topline="true" usebox="none">
2810 \begin_layout Standard
2816 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2819 \begin_layout Standard
2827 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2830 \begin_layout Standard
2838 <cell alignment="center" valignment="top" topline="true" usebox="none">
2841 \begin_layout Standard
2847 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2850 \begin_layout Standard
2858 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2861 \begin_layout Standard
2869 <cell alignment="center" valignment="top" topline="true" usebox="none">
2872 \begin_layout Standard
2878 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2881 \begin_layout Standard
2889 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2892 \begin_layout Standard
2900 <cell alignment="center" valignment="top" topline="true" usebox="none">
2903 \begin_layout Standard
2909 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2912 \begin_layout Standard
2920 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2923 \begin_layout Standard
2931 <cell alignment="center" valignment="top" topline="true" usebox="none">
2934 \begin_layout Standard
2940 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2943 \begin_layout Standard
2951 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2954 \begin_layout Standard
2962 <cell alignment="center" valignment="top" topline="true" usebox="none">
2965 \begin_layout Standard
2971 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2974 \begin_layout Standard
2982 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2985 \begin_layout Standard
2993 <cell alignment="center" valignment="top" topline="true" usebox="none">
2996 \begin_layout Standard
3002 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3005 \begin_layout Standard
3013 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3016 \begin_layout Standard
3024 <cell alignment="center" valignment="top" topline="true" usebox="none">
3027 \begin_layout Standard
3033 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3036 \begin_layout Standard
3044 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3047 \begin_layout Standard
3055 <cell alignment="center" valignment="top" topline="true" usebox="none">
3058 \begin_layout Standard
3064 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3067 \begin_layout Standard
3075 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3078 \begin_layout Standard
3086 <cell alignment="center" valignment="top" topline="true" usebox="none">
3089 \begin_layout Standard
3095 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3098 \begin_layout Standard
3106 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3109 \begin_layout Standard
3117 <cell alignment="center" valignment="top" topline="true" usebox="none">
3120 \begin_layout Standard
3126 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3129 \begin_layout Standard
3137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3140 \begin_layout Standard
3148 <cell alignment="center" valignment="top" topline="true" usebox="none">
3151 \begin_layout Standard
3157 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3160 \begin_layout Standard
3168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3171 \begin_layout Standard
3179 <cell alignment="center" valignment="top" topline="true" usebox="none">
3182 \begin_layout Standard
3188 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3191 \begin_layout Standard
3199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3202 \begin_layout Standard
3210 <cell alignment="center" valignment="top" topline="true" usebox="none">
3213 \begin_layout Standard
3219 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3222 \begin_layout Standard
3230 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3233 \begin_layout Standard
3241 <cell alignment="center" valignment="top" topline="true" usebox="none">
3244 \begin_layout Standard
3250 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3253 \begin_layout Standard
3261 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3264 \begin_layout Standard
3272 <cell alignment="center" valignment="top" topline="true" usebox="none">
3275 \begin_layout Standard
3281 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3284 \begin_layout Standard
3292 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3295 \begin_layout Standard
3303 <cell alignment="center" valignment="top" topline="true" usebox="none">
3306 \begin_layout Standard
3312 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3315 \begin_layout Standard
3323 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3326 \begin_layout Standard
3334 <cell alignment="center" valignment="top" topline="true" usebox="none">
3337 \begin_layout Standard
3343 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3346 \begin_layout Standard
3354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3357 \begin_layout Standard
3365 <cell alignment="center" valignment="top" topline="true" usebox="none">
3368 \begin_layout Standard
3374 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3377 \begin_layout Standard
3385 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3388 \begin_layout Standard
3396 <cell alignment="center" valignment="top" topline="true" usebox="none">
3399 \begin_layout Standard
3405 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3408 \begin_layout Standard
3416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3419 \begin_layout Standard
3427 <cell alignment="center" valignment="top" topline="true" usebox="none">
3430 \begin_layout Standard
3436 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3439 \begin_layout Standard
3447 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3450 \begin_layout Standard
3458 <cell alignment="center" valignment="top" topline="true" usebox="none">
3461 \begin_layout Standard
3467 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3470 \begin_layout Standard
3478 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3481 \begin_layout Standard
3489 <cell alignment="center" valignment="top" topline="true" usebox="none">
3492 \begin_layout Standard
3498 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3501 \begin_layout Standard
3508 <row bottomline="true">
3509 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3512 \begin_layout Standard
3520 <cell alignment="center" valignment="top" topline="true" usebox="none">
3523 \begin_layout Standard
3529 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3532 \begin_layout Standard
3539 <row bottomline="true">
3540 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3543 \begin_layout Standard
3549 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
3552 \begin_layout Standard
3558 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3561 \begin_layout Standard
3569 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3572 \begin_layout Standard
3580 <cell alignment="center" valignment="top" topline="true" usebox="none">
3583 \begin_layout Standard
3589 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3592 \begin_layout Standard
3600 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3603 \begin_layout Standard
3611 <cell alignment="center" valignment="top" topline="true" usebox="none">
3614 \begin_layout Standard
3620 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3623 \begin_layout Standard
3631 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3634 \begin_layout Standard
3642 <cell alignment="center" valignment="top" topline="true" usebox="none">
3645 \begin_layout Standard
3651 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3654 \begin_layout Standard
3662 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3665 \begin_layout Standard
3673 <cell alignment="center" valignment="top" topline="true" usebox="none">
3676 \begin_layout Standard
3682 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3685 \begin_layout Standard
3693 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3696 \begin_layout Standard
3704 <cell alignment="center" valignment="top" topline="true" usebox="none">
3707 \begin_layout Standard
3713 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3716 \begin_layout Standard
3724 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3727 \begin_layout Standard
3735 <cell alignment="center" valignment="top" topline="true" usebox="none">
3738 \begin_layout Standard
3744 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3747 \begin_layout Standard
3755 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3758 \begin_layout Standard
3766 <cell alignment="center" valignment="top" topline="true" usebox="none">
3769 \begin_layout Standard
3775 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3778 \begin_layout Standard
3786 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3789 \begin_layout Standard
3797 <cell alignment="center" valignment="top" topline="true" usebox="none">
3800 \begin_layout Standard
3806 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3809 \begin_layout Standard
3817 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3820 \begin_layout Standard
3828 <cell alignment="center" valignment="top" topline="true" usebox="none">
3831 \begin_layout Standard
3837 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3840 \begin_layout Standard
3848 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3851 \begin_layout Standard
3859 <cell alignment="center" valignment="top" topline="true" usebox="none">
3862 \begin_layout Standard
3868 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3871 \begin_layout Standard
3879 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3882 \begin_layout Standard
3890 <cell alignment="center" valignment="top" topline="true" usebox="none">
3893 \begin_layout Standard
3899 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3902 \begin_layout Standard
3910 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3913 \begin_layout Standard
3921 <cell alignment="center" valignment="top" topline="true" usebox="none">
3924 \begin_layout Standard
3930 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3933 \begin_layout Standard
3941 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3944 \begin_layout Standard
3952 <cell alignment="center" valignment="top" topline="true" usebox="none">
3955 \begin_layout Standard
3961 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3964 \begin_layout Standard
3972 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3975 \begin_layout Standard
3983 <cell alignment="center" valignment="top" topline="true" usebox="none">
3986 \begin_layout Standard
3992 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3995 \begin_layout Standard
4003 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4006 \begin_layout Standard
4014 <cell alignment="center" valignment="top" topline="true" usebox="none">
4017 \begin_layout Standard
4023 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4026 \begin_layout Standard
4034 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4037 \begin_layout Standard
4045 <cell alignment="center" valignment="top" topline="true" usebox="none">
4048 \begin_layout Standard
4054 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4057 \begin_layout Standard
4065 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4068 \begin_layout Standard
4076 <cell alignment="center" valignment="top" topline="true" usebox="none">
4079 \begin_layout Standard
4085 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4088 \begin_layout Standard
4096 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4099 \begin_layout Standard
4107 <cell alignment="center" valignment="top" topline="true" usebox="none">
4110 \begin_layout Standard
4116 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4119 \begin_layout Standard
4127 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4130 \begin_layout Standard
4138 <cell alignment="center" valignment="top" topline="true" usebox="none">
4141 \begin_layout Standard
4147 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4150 \begin_layout Standard
4158 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4161 \begin_layout Standard
4169 <cell alignment="center" valignment="top" topline="true" usebox="none">
4172 \begin_layout Standard
4178 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4181 \begin_layout Standard
4189 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4192 \begin_layout Standard
4200 <cell alignment="center" valignment="top" topline="true" usebox="none">
4203 \begin_layout Standard
4209 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4212 \begin_layout Standard
4220 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4223 \begin_layout Standard
4231 <cell alignment="center" valignment="top" topline="true" usebox="none">
4234 \begin_layout Standard
4240 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4243 \begin_layout Standard
4251 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4254 \begin_layout Standard
4262 <cell alignment="center" valignment="top" topline="true" usebox="none">
4265 \begin_layout Standard
4271 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4274 \begin_layout Standard
4282 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4285 \begin_layout Standard
4293 <cell alignment="center" valignment="top" topline="true" usebox="none">
4296 \begin_layout Standard
4302 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4305 \begin_layout Standard
4313 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4316 \begin_layout Standard
4324 <cell alignment="center" valignment="top" topline="true" usebox="none">
4327 \begin_layout Standard
4333 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4336 \begin_layout Standard
4344 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4347 \begin_layout Standard
4355 <cell alignment="center" valignment="top" topline="true" usebox="none">
4358 \begin_layout Standard
4364 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4367 \begin_layout Standard
4375 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4378 \begin_layout Standard
4386 <cell alignment="center" valignment="top" topline="true" usebox="none">
4389 \begin_layout Standard
4395 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4398 \begin_layout Standard
4406 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4409 \begin_layout Standard
4417 <cell alignment="center" valignment="top" topline="true" usebox="none">
4420 \begin_layout Standard
4426 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4429 \begin_layout Standard
4437 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4440 \begin_layout Standard
4448 <cell alignment="center" valignment="top" topline="true" usebox="none">
4451 \begin_layout Standard
4457 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4460 \begin_layout Standard
4468 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4471 \begin_layout Standard
4479 <cell alignment="center" valignment="top" topline="true" usebox="none">
4482 \begin_layout Standard
4488 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4491 \begin_layout Standard
4498 <row bottomline="true">
4499 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4502 \begin_layout Standard
4510 <cell alignment="center" valignment="top" topline="true" usebox="none">
4513 \begin_layout Standard
4519 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4522 \begin_layout Standard
4529 <row bottomline="true" endlastfoot="true">
4530 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
4533 \begin_layout Standard
4539 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4542 \begin_layout Standard
4548 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4551 \begin_layout Standard
4566 \begin_layout Standard
4570 addtocounter{table}{-1}
4576 \begin_inset Note Note
4579 \begin_layout Standard
4580 See greyed-out note in section 2.6.2 for an explanation of this command.
4588 \begin_layout Subsection
4589 Footnotes in Longtables
4590 \begin_inset LatexCommand label
4591 name "sub:Footnotes-in-Longtables"
4596 \begin_inset LatexCommand index
4597 name "Longtables ! Footnotes"
4604 \begin_layout Standard
4605 Footnotes can be inserted to every longtable cell.
4606 They appear at the bottom of the page where the table cell with the footnote
4610 \begin_inset LatexCommand ref
4611 reference "tab:DiffCaptions"
4615 has for example a footnote.
4618 \begin_layout Subsection
4620 \begin_inset LatexCommand index
4621 name "Longtables ! Captions"
4628 \begin_layout Standard
4629 A longtable cannot be put into a table float because floats can only be
4630 on one page but the caption environment of floats can also be used for
4634 \begin_layout Standard
4635 As LyX does not yet fully support captions in longtables, a hack is needed
4639 \begin_layout Enumerate
4645 \begin_layout Enumerate
4646 Mark the first row an disable its upper line.
4649 \begin_layout Enumerate
4650 Insert a caption via the menu
4652 Insert\SpecialChar \menuseparator
4655 into the first table cell.
4657 You can also add a short title for the caption.
4660 \begin_layout Enumerate
4662 \begin_inset Quotes eld
4674 \begin_inset Quotes erd
4677 as ERT behind the caption.
4680 \begin_layout Standard
4681 A short title that will appear in the LOT instead of the full title.
4690 behind the caption omits the vertical lines between the following cells
4692 The first table row is now only a dummy row for the caption, the actual
4693 table starts with the second row.
4696 \begin_layout Standard
4697 Here is a short longtable to see how it works:
4700 \begin_layout Standard
4701 \begin_inset Tabular
4702 <lyxtabular version="3" rows="6" columns="5">
4703 <features islongtable="true">
4704 <column alignment="center" valignment="top" leftline="true" width="0">
4705 <column alignment="center" valignment="top" leftline="true" width="0">
4706 <column alignment="center" valignment="top" leftline="true" width="0">
4707 <column alignment="center" valignment="top" leftline="true" width="0">
4708 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
4710 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4713 \begin_layout Standard
4714 \begin_inset Caption
4716 \begin_layout Standard
4717 Longtable with caption
4721 \begin_layout Standard
4736 \begin_layout Standard
4752 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4755 \begin_layout Standard
4761 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4764 \begin_layout Standard
4770 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4773 \begin_layout Standard
4779 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4782 \begin_layout Standard
4789 <row topline="true">
4790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4793 \begin_layout Standard
4799 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4802 \begin_layout Standard
4808 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4811 \begin_layout Standard
4817 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4820 \begin_layout Standard
4826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4829 \begin_layout Standard
4836 <row topline="true">
4837 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4840 \begin_layout Standard
4846 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4849 \begin_layout Standard
4855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4858 \begin_layout Standard
4864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4867 \begin_layout Standard
4873 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4876 \begin_layout Standard
4883 <row topline="true">
4884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4887 \begin_layout Standard
4893 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4896 \begin_layout Standard
4902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4905 \begin_layout Standard
4911 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4914 \begin_layout Standard
4920 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4923 \begin_layout Standard
4930 <row topline="true">
4931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4934 \begin_layout Standard
4940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4943 \begin_layout Standard
4949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4952 \begin_layout Standard
4958 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4961 \begin_layout Standard
4967 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4970 \begin_layout Standard
4977 <row topline="true" bottomline="true">
4978 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4981 \begin_layout Standard
4987 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4990 \begin_layout Standard
4996 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4999 \begin_layout Standard
5005 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5008 \begin_layout Standard
5014 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5017 \begin_layout Standard
5031 \begin_layout Standard
5032 \begin_inset VSpace medskip
5036 \begin_inset Note Greyedout
5039 \begin_layout Standard
5044 The table number is increased for every longtable, also if you didn't set
5046 For this reason you could have the case that e.g.
5048 2.4 follows on Table\InsetSpace ~
5049 2.1 in the list of tables if there are two longtables
5051 To avoid this you can add the following command in ERT behind every longtable
5055 \begin_layout Standard
5060 addtocounter{table}{-1}
5068 \begin_layout Standard
5069 \begin_inset Note Greyedout
5072 \begin_layout Standard
5077 If you are using the LaTeX-package
5082 \begin_inset LatexCommand index
5083 name "LaTeX-packages ! hyperref"
5087 to link cross-references, the link to a longtable caption will always point
5088 to the beginning of the document.
5096 \begin_layout Subsubsection
5097 References to Longtables
5098 \begin_inset LatexCommand index
5099 name "Longtables ! References"
5106 \begin_layout Standard
5107 \begin_inset Tabular
5108 <lyxtabular version="3" rows="6" columns="5">
5109 <features islongtable="true">
5110 <column alignment="center" valignment="top" leftline="true" width="0">
5111 <column alignment="center" valignment="top" leftline="true" width="0">
5112 <column alignment="center" valignment="top" leftline="true" width="0">
5113 <column alignment="center" valignment="top" leftline="true" width="0">
5114 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5116 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5119 \begin_layout Standard
5120 \begin_inset Caption
5122 \begin_layout Standard
5123 Referenced longtable
5124 \begin_inset LatexCommand label
5125 name "tab:RefExample"
5138 \begin_layout Standard
5154 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5157 \begin_layout Standard
5163 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5166 \begin_layout Standard
5172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5175 \begin_layout Standard
5181 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5184 \begin_layout Standard
5191 <row topline="true">
5192 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5195 \begin_layout Standard
5201 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5204 \begin_layout Standard
5210 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5213 \begin_layout Standard
5219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5222 \begin_layout Standard
5228 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5231 \begin_layout Standard
5238 <row topline="true">
5239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5242 \begin_layout Standard
5248 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5251 \begin_layout Standard
5257 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5260 \begin_layout Standard
5266 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5269 \begin_layout Standard
5275 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5278 \begin_layout Standard
5285 <row topline="true">
5286 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5289 \begin_layout Standard
5295 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5298 \begin_layout Standard
5304 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5307 \begin_layout Standard
5313 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5316 \begin_layout Standard
5322 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5325 \begin_layout Standard
5332 <row topline="true">
5333 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5336 \begin_layout Standard
5342 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5345 \begin_layout Standard
5351 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5354 \begin_layout Standard
5360 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5363 \begin_layout Standard
5369 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5372 \begin_layout Standard
5379 <row topline="true" bottomline="true">
5380 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5383 \begin_layout Standard
5389 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5392 \begin_layout Standard
5398 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5401 \begin_layout Standard
5407 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5410 \begin_layout Standard
5416 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5419 \begin_layout Standard
5433 \begin_layout Standard
5434 To reference a longtable, insert a label into the caption.
5435 Note that you have to add the label prefix
5436 \begin_inset Quotes eld
5444 \begin_inset Quotes eld
5447 manually in the label field.
5450 \begin_layout Standard
5451 This is a reference to Table\InsetSpace ~
5453 \begin_inset LatexCommand ref
5454 reference "tab:RefExample"
5461 \begin_layout Standard
5462 The caption layout can be set together with all other caption of your document
5463 using the LaTeX-package
5468 \begin_inset LatexCommand index
5469 name "LaTeX-packages ! caption"
5473 , see section\InsetSpace ~
5475 \begin_inset LatexCommand ref
5476 reference "sec:Caption-Formatting"
5483 \begin_layout Subsubsection
5485 \begin_inset LatexCommand index
5486 name "Longtables ! Caption Width"
5493 \begin_layout Standard
5494 The maximal width of of caption lines is defined by the length
5501 Its default value is 4\InsetSpace \thinspace{}
5503 To change it add the following command to your document preamble or as
5504 ERT into your document before the longtable that should be affected
5507 \begin_layout Standard
5517 \begin_layout Standard
5518 where the width could have one of the units listed in appendix\InsetSpace ~
5520 \begin_inset LatexCommand ref
5521 reference "cha:Units-available-in"
5528 \begin_layout Standard
5529 The following tables show the difference:
5532 \begin_layout Standard
5533 \begin_inset Tabular
5534 <lyxtabular version="3" rows="6" columns="5">
5535 <features islongtable="true">
5536 <column alignment="center" valignment="top" leftline="true" width="0">
5537 <column alignment="center" valignment="top" leftline="true" width="0">
5538 <column alignment="center" valignment="top" leftline="true" width="0">
5539 <column alignment="center" valignment="top" leftline="true" width="0">
5540 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5542 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5545 \begin_layout Standard
5546 \begin_inset Caption
5548 \begin_layout Standard
5549 long full title with default width long full title with default width long
5550 full title with default width
5554 \begin_layout Standard
5555 caption with default width
5569 \begin_layout Standard
5585 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5588 \begin_layout Standard
5594 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5597 \begin_layout Standard
5603 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5606 \begin_layout Standard
5612 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5615 \begin_layout Standard
5622 <row topline="true">
5623 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5626 \begin_layout Standard
5632 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5635 \begin_layout Standard
5641 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5644 \begin_layout Standard
5650 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5653 \begin_layout Standard
5659 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5662 \begin_layout Standard
5669 <row topline="true">
5670 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5673 \begin_layout Standard
5679 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5682 \begin_layout Standard
5688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5691 \begin_layout Standard
5697 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5700 \begin_layout Standard
5706 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5709 \begin_layout Standard
5716 <row topline="true">
5717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5720 \begin_layout Standard
5726 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5729 \begin_layout Standard
5735 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5738 \begin_layout Standard
5744 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5747 \begin_layout Standard
5753 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5756 \begin_layout Standard
5763 <row topline="true">
5764 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5767 \begin_layout Standard
5773 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5776 \begin_layout Standard
5782 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5785 \begin_layout Standard
5791 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5794 \begin_layout Standard
5800 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5803 \begin_layout Standard
5810 <row topline="true" bottomline="true">
5811 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5814 \begin_layout Standard
5820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5823 \begin_layout Standard
5829 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5832 \begin_layout Standard
5838 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5841 \begin_layout Standard
5847 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5850 \begin_layout Standard
5864 \begin_layout Standard
5868 \begin_layout Standard
5880 \begin_inset Tabular
5881 <lyxtabular version="3" rows="6" columns="5">
5882 <features islongtable="true">
5883 <column alignment="center" valignment="top" leftline="true" width="0">
5884 <column alignment="center" valignment="top" leftline="true" width="0">
5885 <column alignment="center" valignment="top" leftline="true" width="0">
5886 <column alignment="center" valignment="top" leftline="true" width="0">
5887 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5889 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5892 \begin_layout Standard
5893 \begin_inset Caption
5895 \begin_layout Standard
5896 long full title with width set to 5\InsetSpace \thinspace{}
5897 cm long full title with width set to
5898 5\InsetSpace \thinspace{}
5899 cm long full title with width set to 5\InsetSpace \thinspace{}
5904 \begin_layout Standard
5905 caption with width\InsetSpace \thinspace{}
5906 =\InsetSpace \thinspace{}
5907 5\InsetSpace \thinspace{}
5922 \begin_layout Standard
5938 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5941 \begin_layout Standard
5947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5950 \begin_layout Standard
5956 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5959 \begin_layout Standard
5965 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5968 \begin_layout Standard
5975 <row topline="true">
5976 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5979 \begin_layout Standard
5985 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5988 \begin_layout Standard
5994 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5997 \begin_layout Standard
6003 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6006 \begin_layout Standard
6012 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6015 \begin_layout Standard
6022 <row topline="true">
6023 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6026 \begin_layout Standard
6032 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6035 \begin_layout Standard
6041 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6044 \begin_layout Standard
6050 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6053 \begin_layout Standard
6059 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6062 \begin_layout Standard
6069 <row topline="true">
6070 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6073 \begin_layout Standard
6079 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6082 \begin_layout Standard
6088 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6091 \begin_layout Standard
6097 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6100 \begin_layout Standard
6106 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6109 \begin_layout Standard
6116 <row topline="true">
6117 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6120 \begin_layout Standard
6126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6129 \begin_layout Standard
6135 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6138 \begin_layout Standard
6144 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6147 \begin_layout Standard
6153 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6156 \begin_layout Standard
6163 <row topline="true" bottomline="true">
6164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6167 \begin_layout Standard
6173 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6176 \begin_layout Standard
6182 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6185 \begin_layout Standard
6191 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6194 \begin_layout Standard
6200 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6203 \begin_layout Standard
6218 \begin_layout Standard
6232 \begin_layout Standard
6236 \begin_layout Subsubsection
6237 Different Captions for Table Pages
6238 \begin_inset LatexCommand index
6239 name "Longtables ! Different Captions for Pages"
6246 \begin_layout Standard
6247 When the other captions should differ from the one of the first table page,
6248 insert a caption with a non-empty short title in a dummy caption row marked
6250 The caption used for the other table pages is inserted as caption without
6251 a short title in a dummy caption row that is marked as main header.
6252 When this caption shouldn't include the table number, use the command
6255 \begin_layout Standard
6260 caption*{caption text}
6263 \begin_layout Standard
6264 instead of LyX's caption box.
6265 The label to reference the table is inserted into the caption of the first
6269 \begin_inset LatexCommand ref
6270 reference "tab:DiffCaptions"
6274 is an example for a longtable with different heading where the second caption
6275 doesn't include the table number.
6278 \begin_layout Standard
6280 \begin_inset Tabular
6281 <lyxtabular version="3" rows="60" columns="3">
6282 <features islongtable="true">
6283 <column alignment="left" valignment="top" leftline="true" width="0cm">
6284 <column alignment="left" valignment="top" rightline="true" width="0pt">
6285 <column alignment="right" valignment="top" rightline="true" width="0pt">
6286 <row endfirsthead="true">
6287 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6290 \begin_layout Standard
6291 \begin_inset Caption
6293 \begin_layout Standard
6295 \begin_inset LatexCommand label
6296 name "tab:DiffCaptions"
6304 \begin_layout Standard
6319 \begin_layout Standard
6335 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6338 \begin_layout Standard
6344 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6347 \begin_layout Standard
6354 <row topline="true" bottomline="true" endfirsthead="true">
6355 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6358 \begin_layout Standard
6361 Example Phone List (ignore the names)
6366 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6369 \begin_layout Standard
6375 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6378 \begin_layout Standard
6385 <row topline="true" bottomline="true" endfirsthead="true">
6386 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6389 \begin_layout Standard
6397 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6400 \begin_layout Standard
6406 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6409 \begin_layout Standard
6418 <row bottomline="true" endhead="true">
6419 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6422 \begin_layout Standard
6426 \begin_layout Standard
6430 caption*{Continued Example Phone List}
6444 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6447 \begin_layout Standard
6453 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6456 \begin_layout Standard
6463 <row topline="true" bottomline="true" endhead="true">
6464 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6467 \begin_layout Standard
6475 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6478 \begin_layout Standard
6484 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6487 \begin_layout Standard
6494 <row topline="true" bottomline="true" endhead="true">
6495 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6498 \begin_layout Standard
6506 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6509 \begin_layout Standard
6515 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6518 \begin_layout Standard
6527 <row topline="true" bottomline="true" endfoot="true">
6528 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
6531 \begin_layout Standard
6532 continued on next page
6537 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6540 \begin_layout Standard
6546 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6549 \begin_layout Standard
6557 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6560 \begin_layout Standard
6568 <cell alignment="center" valignment="top" topline="true" usebox="none">
6571 \begin_layout Standard
6577 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6580 \begin_layout Standard
6588 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6591 \begin_layout Standard
6599 <cell alignment="center" valignment="top" topline="true" usebox="none">
6602 \begin_layout Standard
6608 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6611 \begin_layout Standard
6619 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6622 \begin_layout Standard
6630 <cell alignment="center" valignment="top" topline="true" usebox="none">
6633 \begin_layout Standard
6639 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6642 \begin_layout Standard
6650 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6653 \begin_layout Standard
6661 <cell alignment="center" valignment="top" topline="true" usebox="none">
6664 \begin_layout Standard
6670 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6673 \begin_layout Standard
6681 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6684 \begin_layout Standard
6692 <cell alignment="center" valignment="top" topline="true" usebox="none">
6695 \begin_layout Standard
6701 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6704 \begin_layout Standard
6712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6715 \begin_layout Standard
6723 <cell alignment="center" valignment="top" topline="true" usebox="none">
6726 \begin_layout Standard
6732 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6735 \begin_layout Standard
6743 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6746 \begin_layout Standard
6754 <cell alignment="center" valignment="top" topline="true" usebox="none">
6757 \begin_layout Standard
6763 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6766 \begin_layout Standard
6774 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6777 \begin_layout Standard
6785 <cell alignment="center" valignment="top" topline="true" usebox="none">
6788 \begin_layout Standard
6794 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6797 \begin_layout Standard
6805 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6808 \begin_layout Standard
6816 <cell alignment="center" valignment="top" topline="true" usebox="none">
6819 \begin_layout Standard
6825 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6828 \begin_layout Standard
6836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6839 \begin_layout Standard
6847 <cell alignment="center" valignment="top" topline="true" usebox="none">
6850 \begin_layout Standard
6856 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6859 \begin_layout Standard
6867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6870 \begin_layout Standard
6878 <cell alignment="center" valignment="top" topline="true" usebox="none">
6881 \begin_layout Standard
6887 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6890 \begin_layout Standard
6898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6901 \begin_layout Standard
6909 <cell alignment="center" valignment="top" topline="true" usebox="none">
6912 \begin_layout Standard
6918 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6921 \begin_layout Standard
6929 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6932 \begin_layout Standard
6940 <cell alignment="center" valignment="top" topline="true" usebox="none">
6943 \begin_layout Standard
6949 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6952 \begin_layout Standard
6960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6963 \begin_layout Standard
6971 <cell alignment="center" valignment="top" topline="true" usebox="none">
6974 \begin_layout Standard
6980 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6983 \begin_layout Standard
6991 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6994 \begin_layout Standard
7003 \begin_layout Standard
7014 <cell alignment="center" valignment="top" topline="true" usebox="none">
7017 \begin_layout Standard
7023 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7026 \begin_layout Standard
7034 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7037 \begin_layout Standard
7045 <cell alignment="center" valignment="top" topline="true" usebox="none">
7048 \begin_layout Standard
7054 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7057 \begin_layout Standard
7065 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7068 \begin_layout Standard
7076 <cell alignment="center" valignment="top" topline="true" usebox="none">
7079 \begin_layout Standard
7085 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7088 \begin_layout Standard
7096 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7099 \begin_layout Standard
7107 <cell alignment="center" valignment="top" topline="true" usebox="none">
7110 \begin_layout Standard
7116 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7119 \begin_layout Standard
7127 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7130 \begin_layout Standard
7138 <cell alignment="center" valignment="top" topline="true" usebox="none">
7141 \begin_layout Standard
7147 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7150 \begin_layout Standard
7158 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7161 \begin_layout Standard
7169 <cell alignment="center" valignment="top" topline="true" usebox="none">
7172 \begin_layout Standard
7178 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7181 \begin_layout Standard
7189 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7192 \begin_layout Standard
7200 <cell alignment="center" valignment="top" topline="true" usebox="none">
7203 \begin_layout Standard
7209 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7212 \begin_layout Standard
7220 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7223 \begin_layout Standard
7231 <cell alignment="center" valignment="top" topline="true" usebox="none">
7234 \begin_layout Standard
7240 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7243 \begin_layout Standard
7251 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7254 \begin_layout Standard
7262 <cell alignment="center" valignment="top" topline="true" usebox="none">
7265 \begin_layout Standard
7271 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7274 \begin_layout Standard
7282 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7285 \begin_layout Standard
7293 <cell alignment="center" valignment="top" topline="true" usebox="none">
7296 \begin_layout Standard
7302 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7305 \begin_layout Standard
7313 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7316 \begin_layout Standard
7324 <cell alignment="center" valignment="top" topline="true" usebox="none">
7327 \begin_layout Standard
7333 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7336 \begin_layout Standard
7344 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7347 \begin_layout Standard
7355 <cell alignment="center" valignment="top" topline="true" usebox="none">
7358 \begin_layout Standard
7364 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7367 \begin_layout Standard
7375 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7378 \begin_layout Standard
7386 <cell alignment="center" valignment="top" topline="true" usebox="none">
7389 \begin_layout Standard
7395 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7398 \begin_layout Standard
7406 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7409 \begin_layout Standard
7417 <cell alignment="center" valignment="top" topline="true" usebox="none">
7420 \begin_layout Standard
7426 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7429 \begin_layout Standard
7437 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7440 \begin_layout Standard
7448 <cell alignment="center" valignment="top" topline="true" usebox="none">
7451 \begin_layout Standard
7457 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7460 \begin_layout Standard
7468 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7471 \begin_layout Standard
7479 <cell alignment="center" valignment="top" topline="true" usebox="none">
7482 \begin_layout Standard
7488 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7491 \begin_layout Standard
7498 <row bottomline="true">
7499 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7502 \begin_layout Standard
7510 <cell alignment="center" valignment="top" topline="true" usebox="none">
7513 \begin_layout Standard
7519 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7522 \begin_layout Standard
7529 <row bottomline="true">
7530 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7533 \begin_layout Standard
7539 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
7542 \begin_layout Standard
7548 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7551 \begin_layout Standard
7559 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7562 \begin_layout Standard
7570 <cell alignment="center" valignment="top" topline="true" usebox="none">
7573 \begin_layout Standard
7579 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7582 \begin_layout Standard
7590 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7593 \begin_layout Standard
7601 <cell alignment="center" valignment="top" topline="true" usebox="none">
7604 \begin_layout Standard
7610 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7613 \begin_layout Standard
7621 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7624 \begin_layout Standard
7632 <cell alignment="center" valignment="top" topline="true" usebox="none">
7635 \begin_layout Standard
7641 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7644 \begin_layout Standard
7652 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7655 \begin_layout Standard
7663 <cell alignment="center" valignment="top" topline="true" usebox="none">
7666 \begin_layout Standard
7672 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7675 \begin_layout Standard
7683 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7686 \begin_layout Standard
7694 <cell alignment="center" valignment="top" topline="true" usebox="none">
7697 \begin_layout Standard
7703 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7706 \begin_layout Standard
7714 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7717 \begin_layout Standard
7725 <cell alignment="center" valignment="top" topline="true" usebox="none">
7728 \begin_layout Standard
7734 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7737 \begin_layout Standard
7745 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7748 \begin_layout Standard
7756 <cell alignment="center" valignment="top" topline="true" usebox="none">
7759 \begin_layout Standard
7765 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7768 \begin_layout Standard
7776 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7779 \begin_layout Standard
7787 <cell alignment="center" valignment="top" topline="true" usebox="none">
7790 \begin_layout Standard
7796 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7799 \begin_layout Standard
7807 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7810 \begin_layout Standard
7818 <cell alignment="center" valignment="top" topline="true" usebox="none">
7821 \begin_layout Standard
7827 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7830 \begin_layout Standard
7838 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7841 \begin_layout Standard
7849 <cell alignment="center" valignment="top" topline="true" usebox="none">
7852 \begin_layout Standard
7858 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7861 \begin_layout Standard
7869 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7872 \begin_layout Standard
7880 <cell alignment="center" valignment="top" topline="true" usebox="none">
7883 \begin_layout Standard
7889 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7892 \begin_layout Standard
7900 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7903 \begin_layout Standard
7911 <cell alignment="center" valignment="top" topline="true" usebox="none">
7914 \begin_layout Standard
7920 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7923 \begin_layout Standard
7931 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7934 \begin_layout Standard
7942 <cell alignment="center" valignment="top" topline="true" usebox="none">
7945 \begin_layout Standard
7951 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7954 \begin_layout Standard
7962 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7965 \begin_layout Standard
7973 <cell alignment="center" valignment="top" topline="true" usebox="none">
7976 \begin_layout Standard
7982 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7985 \begin_layout Standard
7993 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7996 \begin_layout Standard
8004 <cell alignment="center" valignment="top" topline="true" usebox="none">
8007 \begin_layout Standard
8013 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8016 \begin_layout Standard
8024 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8027 \begin_layout Standard
8035 <cell alignment="center" valignment="top" topline="true" usebox="none">
8038 \begin_layout Standard
8044 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8047 \begin_layout Standard
8055 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8058 \begin_layout Standard
8066 <cell alignment="center" valignment="top" topline="true" usebox="none">
8069 \begin_layout Standard
8075 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8078 \begin_layout Standard
8086 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8089 \begin_layout Standard
8097 <cell alignment="center" valignment="top" topline="true" usebox="none">
8100 \begin_layout Standard
8106 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8109 \begin_layout Standard
8117 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8120 \begin_layout Standard
8128 <cell alignment="center" valignment="top" topline="true" usebox="none">
8131 \begin_layout Standard
8137 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8140 \begin_layout Standard
8147 <row bottomline="true">
8148 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8151 \begin_layout Standard
8159 <cell alignment="center" valignment="top" topline="true" usebox="none">
8162 \begin_layout Standard
8168 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8171 \begin_layout Standard
8178 <row bottomline="true" endlastfoot="true">
8179 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
8182 \begin_layout Standard
8188 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8191 \begin_layout Standard
8197 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8200 \begin_layout Standard
8214 \begin_layout Section
8215 Special Longtable Issues
8216 \begin_inset LatexCommand label
8217 name "sec:Special-Longtable-Issues"
8224 \begin_layout Subsection
8225 Longtable Calculation
8226 \begin_inset LatexCommand index
8227 name "Longtables ! Calculation"
8234 \begin_layout Standard
8235 LaTeX calculates the height of table pages and their page breaks using so
8237 Chunks are pieces of the tables that are at once in LaTeX's memory.
8238 The default value is historically set to only 20 table rows.
8239 If you are using longtables with many pages this may slow down the creation
8241 You can safely increase the chunk size to values of 100-1000 by adding
8242 this command line to your document preamble:
8245 \begin_layout Standard
8250 setcounter{LTchunksize}{100}
8253 \begin_layout Subsection
8254 Floats and Longtables
8255 \begin_inset LatexCommand index
8256 name "Longtables ! Floats"
8263 \begin_layout Standard
8264 There might be problems when a float appears on the same page where a longtable
8266 To avoid such situation, add the command
8272 as ERT before your longtable.
8275 \begin_layout Subsection
8277 \begin_inset LatexCommand index
8278 name "Longtables ! Forced Page Breaks"
8285 \begin_layout Standard
8286 By default tables are only broken between rows.
8287 If you have a cell with multiples lines and want to have a page break within
8288 the cell, insert the new line command
8289 \begin_inset Quotes eld
8301 \begin_inset Quotes erd
8304 as ERT at this point of the cell where it should be broken.
8313 command you have to insert in ERT so many
8314 \begin_inset Quotes eld
8322 \begin_inset Quotes erd
8325 characters like the number of the following table columns.
8330 is the character to separate table cells.
8331 Write in ERT after each
8335 the content of the corresponding following cell and delete the content
8346 command, insert so many
8350 characters like the number of table columns before the current column.
8351 In Table\InsetSpace ~
8353 \begin_inset LatexCommand ref
8354 reference "tab:ForcedPagebreak"
8358 the cell that should be broken is in the second column followed by another
8360 Therefore the following command was inserted in the cell as ERT behind
8362 \begin_inset Quotes eld
8370 \begin_inset Quotes erd
8376 \begin_layout Standard
8388 \begin_layout Standard
8390 \begin_inset Quotes eld
8394 \begin_inset Quotes erd
8397 in the third columns of the row was deleted.
8398 If your footer row of the longtable has for a certain reason no upper line
8399 but you would have a horizontal line where the cell is broken, use this
8403 \begin_layout Standard
8417 \begin_layout Standard
8418 When the cell to be broken is in the last column, the command
8421 \begin_layout Standard
8428 parf\SpecialChar \textcompwordmark{}
8432 \begin_layout Standard
8433 must be inserted as ERT at the beginning of the cell.
8434 This assures that the part of the cell that will be displayed on the new
8435 page appears with the full width.
8439 \begin_layout Standard
8441 \begin_inset Tabular
8442 <lyxtabular version="3" rows="39" columns="3">
8443 <features islongtable="true">
8444 <column alignment="left" valignment="top" leftline="true" width="0cm">
8445 <column alignment="left" valignment="top" rightline="true" width="3cm">
8446 <column alignment="right" valignment="top" rightline="true" width="0pt">
8447 <row endfirsthead="true">
8448 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8451 \begin_layout Standard
8452 \begin_inset Caption
8454 \begin_layout Standard
8455 Table with forced page break in table cell
8456 \begin_inset LatexCommand label
8457 name "tab:ForcedPagebreak"
8465 \begin_layout Standard
8466 Table with forced page break in table cell
8480 \begin_layout Standard
8496 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8499 \begin_layout Standard
8505 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8508 \begin_layout Standard
8515 <row topline="true" bottomline="true" endfirsthead="true">
8516 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8519 \begin_layout Standard
8522 Example Phone List (ignore the names)
8527 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8530 \begin_layout Standard
8536 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8539 \begin_layout Standard
8546 <row topline="true" bottomline="true" endfirsthead="true">
8547 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8550 \begin_layout Standard
8558 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8561 \begin_layout Standard
8567 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8570 \begin_layout Standard
8579 <row bottomline="true" endhead="true">
8580 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8583 \begin_layout Standard
8587 \begin_layout Standard
8591 caption*{Continued table with forced page break in table cell}
8605 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8608 \begin_layout Standard
8614 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8617 \begin_layout Standard
8624 <row topline="true" bottomline="true" endhead="true">
8625 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8628 \begin_layout Standard
8636 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8639 \begin_layout Standard
8645 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8648 \begin_layout Standard
8655 <row topline="true" bottomline="true" endhead="true">
8656 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8659 \begin_layout Standard
8667 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8670 \begin_layout Standard
8676 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8679 \begin_layout Standard
8688 <row topline="true" bottomline="true" endfoot="true">
8689 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
8692 \begin_layout Standard
8693 continued on next page
8698 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8701 \begin_layout Standard
8707 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8710 \begin_layout Standard
8718 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8721 \begin_layout Standard
8729 <cell alignment="center" valignment="top" topline="true" usebox="none">
8732 \begin_layout Standard
8738 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8741 \begin_layout Standard
8749 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8752 \begin_layout Standard
8760 <cell alignment="center" valignment="top" topline="true" usebox="none">
8763 \begin_layout Standard
8769 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8772 \begin_layout Standard
8780 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8783 \begin_layout Standard
8791 <cell alignment="center" valignment="top" topline="true" usebox="none">
8794 \begin_layout Standard
8800 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8803 \begin_layout Standard
8811 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8814 \begin_layout Standard
8822 <cell alignment="center" valignment="top" topline="true" usebox="none">
8825 \begin_layout Standard
8831 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8834 \begin_layout Standard
8842 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8845 \begin_layout Standard
8853 <cell alignment="center" valignment="top" topline="true" usebox="none">
8856 \begin_layout Standard
8862 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8865 \begin_layout Standard
8873 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8876 \begin_layout Standard
8884 <cell alignment="center" valignment="top" topline="true" usebox="none">
8887 \begin_layout Standard
8893 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8896 \begin_layout Standard
8904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8907 \begin_layout Standard
8915 <cell alignment="center" valignment="top" topline="true" usebox="none">
8918 \begin_layout Standard
8924 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8927 \begin_layout Standard
8935 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8938 \begin_layout Standard
8946 <cell alignment="center" valignment="top" topline="true" usebox="none">
8949 \begin_layout Standard
8955 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8958 \begin_layout Standard
8966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8969 \begin_layout Standard
8977 <cell alignment="center" valignment="top" topline="true" usebox="none">
8980 \begin_layout Standard
8986 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8989 \begin_layout Standard
8997 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9000 \begin_layout Standard
9008 <cell alignment="center" valignment="top" topline="true" usebox="none">
9011 \begin_layout Standard
9017 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9020 \begin_layout Standard
9028 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9031 \begin_layout Standard
9039 <cell alignment="center" valignment="top" topline="true" usebox="none">
9042 \begin_layout Standard
9048 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9051 \begin_layout Standard
9059 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9062 \begin_layout Standard
9070 <cell alignment="center" valignment="top" topline="true" usebox="none">
9073 \begin_layout Standard
9079 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9082 \begin_layout Standard
9090 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9093 \begin_layout Standard
9101 <cell alignment="center" valignment="top" topline="true" usebox="none">
9104 \begin_layout Standard
9110 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9113 \begin_layout Standard
9121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9124 \begin_layout Standard
9132 <cell alignment="center" valignment="top" topline="true" usebox="none">
9135 \begin_layout Standard
9141 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9144 \begin_layout Standard
9152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9155 \begin_layout Standard
9163 <cell alignment="center" valignment="top" topline="true" usebox="none">
9166 \begin_layout Standard
9172 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9175 \begin_layout Standard
9183 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9186 \begin_layout Standard
9194 <cell alignment="center" valignment="top" topline="true" usebox="none">
9197 \begin_layout Standard
9203 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9206 \begin_layout Standard
9214 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9217 \begin_layout Standard
9225 <cell alignment="center" valignment="top" topline="true" usebox="none">
9228 \begin_layout Standard
9234 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9237 \begin_layout Standard
9245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9248 \begin_layout Standard
9256 <cell alignment="center" valignment="top" topline="true" usebox="none">
9259 \begin_layout Standard
9265 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9268 \begin_layout Standard
9276 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9279 \begin_layout Standard
9287 <cell alignment="center" valignment="top" topline="true" usebox="none">
9290 \begin_layout Standard
9296 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9299 \begin_layout Standard
9307 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9310 \begin_layout Standard
9318 <cell alignment="center" valignment="top" topline="true" usebox="none">
9321 \begin_layout Standard
9327 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9330 \begin_layout Standard
9338 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9341 \begin_layout Standard
9349 <cell alignment="center" valignment="top" topline="true" usebox="none">
9352 \begin_layout Standard
9358 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9361 \begin_layout Standard
9369 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9372 \begin_layout Standard
9380 <cell alignment="center" valignment="top" topline="true" usebox="none">
9383 \begin_layout Standard
9389 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9392 \begin_layout Standard
9400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9403 \begin_layout Standard
9411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9414 \begin_layout Standard
9416 Fürst von Montecompatri, 11.
9417 Fürst von Sulmona und Vivaro, 10.
9418 Fürst von Rossano, 5.
9419 Herzog von Canemorte, 11.
9420 Herzog von Palombara, 5.
9421 Herzog von Castelchiodato,
9425 \begin_layout Standard
9434 \begin_layout Standard
9442 Herzog von Poggionativo, 11.
9443 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
9444 Graf von Valinfreda, 11.
9445 Baron von Cropalati, 11.
9446 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
9451 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9454 \begin_layout Standard
9462 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9465 \begin_layout Standard
9473 <cell alignment="center" valignment="top" topline="true" usebox="none">
9476 \begin_layout Standard
9482 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9485 \begin_layout Standard
9493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9496 \begin_layout Standard
9504 <cell alignment="center" valignment="top" topline="true" usebox="none">
9507 \begin_layout Standard
9513 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9516 \begin_layout Standard
9524 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9527 \begin_layout Standard
9535 <cell alignment="center" valignment="top" topline="true" usebox="none">
9538 \begin_layout Standard
9544 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9547 \begin_layout Standard
9555 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9558 \begin_layout Standard
9566 <cell alignment="center" valignment="top" topline="true" usebox="none">
9569 \begin_layout Standard
9575 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9578 \begin_layout Standard
9586 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9589 \begin_layout Standard
9597 <cell alignment="center" valignment="top" topline="true" usebox="none">
9600 \begin_layout Standard
9606 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9609 \begin_layout Standard
9617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9620 \begin_layout Standard
9628 <cell alignment="center" valignment="top" topline="true" usebox="none">
9631 \begin_layout Standard
9637 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9640 \begin_layout Standard
9648 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9651 \begin_layout Standard
9659 <cell alignment="center" valignment="top" topline="true" usebox="none">
9662 \begin_layout Standard
9668 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9671 \begin_layout Standard
9678 <row bottomline="true">
9679 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9682 \begin_layout Standard
9690 <cell alignment="center" valignment="top" topline="true" usebox="none">
9693 \begin_layout Standard
9699 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9702 \begin_layout Standard
9709 <row endlastfoot="true">
9710 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9713 \begin_layout Standard
9719 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9722 \begin_layout Standard
9728 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9731 \begin_layout Standard
9745 \begin_layout Section
9746 Multiple Lines Columns and Rows
9749 \begin_layout Subsection
9750 Multiple Lines in Table Cells
9751 \begin_inset LatexCommand label
9752 name "sub:Multiple-Lines-in"
9757 \begin_inset LatexCommand index
9758 name "Multiple Lines in Table Cells"
9763 \begin_inset LatexCommand index
9764 name "Table ! Linebreaks"
9771 \begin_layout Standard
9773 \begin_inset Float table
9779 \begin_layout Standard
9780 \begin_inset Caption
9782 \begin_layout Standard
9783 \begin_inset LatexCommand label
9784 name "tab:Table-with-multiple"
9788 Table with multiple lines in cells
9796 \begin_layout Standard
9798 \begin_inset Tabular
9799 <lyxtabular version="3" rows="3" columns="3">
9801 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
9802 <column alignment="center" valignment="middle" leftline="true" width="0.5cm">
9803 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0.5cm">
9804 <row topline="true">
9805 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9808 \begin_layout Standard
9813 \begin_layout Standard
9827 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9830 \begin_layout Standard
9836 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9839 \begin_layout Standard
9846 <row topline="true">
9847 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9850 \begin_layout Standard
9856 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9859 \begin_layout Standard
9865 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9868 \begin_layout Standard
9875 <row topline="true" bottomline="true">
9876 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9879 \begin_layout Standard
9885 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9888 \begin_layout Standard
9894 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9897 \begin_layout Standard
9916 \begin_layout Standard
9917 Adjusting a fixed width for a column, enables to enter text as a paragraph
9918 with multiple lines and hyphenations.
9921 \begin_layout Standard
9922 To produce Table\InsetSpace ~
9924 \begin_inset LatexCommand ref
9925 reference "tab:Table-with-multiple"
9929 , create a 3×3 table, mark the first cell and right-click on it.
9930 In the appearing table dialog we set a cell width of 2.5\InsetSpace \thinspace{}
9931 cm and choose centered
9932 for the vertical and horizontal alignment.
9933 As our text is smaller than than 2.5\InsetSpace \thinspace{}
9934 cm, only one line will appear.
9935 To get two lines, we add a line break with the command
9938 \begin_layout Standard
9946 \begin_layout Standard
9948 If the text is wider than the set cell width it will automatically be broken
9952 \begin_layout Standard
9953 To center the text inside the two other cells of the first row vertically,
9954 right-click in the second cell, adjust a fixed width of 0.5\InsetSpace \thinspace{}
9956 centered alignments.
9957 Then do the same for the third cell of the row.
9960 \begin_layout Standard
9961 If you have a long word in a cell with a fixed width, it cannot be hyphenated
9962 by LaTeX if it is the first entry.
9963 Therefore you need to insert something, to make the word not being the
9964 first entry: Add the command
9967 \begin_layout Standard
9975 \begin_layout Standard
9976 in ERT before the word.
9977 As the space is zero, it doesn't change the output.
9980 \begin_inset LatexCommand ref
9981 reference "tab:Table-with-and"
9988 \begin_layout Standard
9989 \begin_inset Float table
9994 \begin_layout Standard
9995 \begin_inset Caption
9997 \begin_layout Standard
9998 \begin_inset LatexCommand label
9999 name "tab:Table-with-and"
10003 Table with and without hyphenation
10011 \begin_layout Standard
10015 \begin_inset Tabular
10016 <lyxtabular version="3" rows="3" columns="3">
10018 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10019 <column alignment="center" valignment="middle" leftline="true" width="0.5cm">
10020 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0.5cm">
10021 <row topline="true">
10022 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10025 \begin_layout Standard
10026 verylongtablecellword
10031 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10034 \begin_layout Standard
10040 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10043 \begin_layout Standard
10050 <row topline="true">
10051 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10054 \begin_layout Standard
10060 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10063 \begin_layout Standard
10069 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10072 \begin_layout Standard
10079 <row topline="true" bottomline="true">
10080 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10083 \begin_layout Standard
10089 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10092 \begin_layout Standard
10098 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10101 \begin_layout Standard
10115 \begin_inset Tabular
10116 <lyxtabular version="3" rows="3" columns="3">
10118 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10119 <column alignment="center" valignment="middle" leftline="true" width="0.5cm">
10120 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0.5cm">
10121 <row topline="true">
10122 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10125 \begin_layout Standard
10129 \begin_layout Standard
10138 verylongtablecellword
10143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10146 \begin_layout Standard
10152 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10155 \begin_layout Standard
10162 <row topline="true">
10163 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10166 \begin_layout Standard
10172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10175 \begin_layout Standard
10181 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10184 \begin_layout Standard
10191 <row topline="true" bottomline="true">
10192 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10195 \begin_layout Standard
10201 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10204 \begin_layout Standard
10210 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10213 \begin_layout Standard
10234 \begin_layout Standard
10240 \begin_layout Subsection
10242 \begin_inset LatexCommand label
10243 name "sub:Multicolumns"
10248 \begin_inset LatexCommand index
10249 name "Multicolumns"
10254 \begin_inset LatexCommand index
10255 name "Table ! Multicolumns"
10262 \begin_layout Subsubsection
10266 \begin_layout Standard
10267 To span a cell over multiple columns, mark as much cells within a line that
10268 should be one spanned cell and use either the table-toolbar button
10269 \begin_inset Graphics
10270 filename ../images/tabular-feature_multicolumn.xpm
10277 Edit\SpecialChar \menuseparator
10278 Table\SpecialChar \menuseparator
10281 , or right click on the marked cells and choose multicolumn in the appearing
10282 table dialog under the tab
10289 \begin_layout Standard
10290 Multicolumns have there own cell settings.
10291 That means changing cell borders, cell alignment, and the width only affects
10293 Here is an example table with a multicolumn cell in the first row and one
10294 in the last row without the upper border:
10297 \begin_layout Standard
10299 \begin_inset Tabular
10300 <lyxtabular version="3" rows="3" columns="4">
10301 <features firstHeadTopDL="true" firstHeadBottomDL="true">
10302 <column alignment="center" valignment="top" leftline="true" width="0pt">
10303 <column alignment="center" valignment="middle" leftline="true" width="0">
10304 <column alignment="center" valignment="top" leftline="true" width="0in">
10305 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
10306 <row topline="true" bottomline="true">
10307 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10310 \begin_layout Standard
10316 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
10319 \begin_layout Standard
10329 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10332 \begin_layout Standard
10338 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10341 \begin_layout Standard
10348 <row topline="true">
10349 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10352 \begin_layout Standard
10367 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10370 \begin_layout Standard
10376 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10379 \begin_layout Standard
10385 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10388 \begin_layout Standard
10395 <row topline="true" bottomline="true">
10396 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10399 \begin_layout Standard
10405 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10408 \begin_layout Standard
10414 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10417 \begin_layout Standard
10423 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10426 \begin_layout Standard
10440 \begin_layout Subsubsection
10441 Multicolumn Calculations
10442 \begin_inset LatexCommand label
10443 name "sub:Multicolumn-Calculations"
10448 \begin_inset LatexCommand index
10449 name "Multicolumns ! Calculations"
10456 \begin_layout Standard
10457 LyX supports multicolumns directly, but we have to take notice of the cell
10458 width of the columns spanned by the multicolumn cell.
10461 \begin_layout Standard
10462 \begin_inset Float table
10467 \begin_layout Standard
10468 \begin_inset Caption
10470 \begin_layout Standard
10471 \begin_inset LatexCommand label
10472 name "tab:Table-with-centered"
10476 Table with centered multicolumn text above two columns that have exactly
10477 half the width of the multicolumn cell
10478 \begin_inset OptArg
10481 \begin_layout Standard
10482 Perfect multicolumn table
10495 \begin_layout Standard
10497 \begin_inset Tabular
10498 <lyxtabular version="3" rows="3" columns="3">
10500 <column alignment="center" valignment="middle" leftline="true" width="0" special="|>{\centering}m{1.25cm-6.2pt}">
10501 <column alignment="center" valignment="middle" leftline="true" width="0">
10502 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10503 <row topline="true">
10504 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special="|>{\centering}m{2.5cm}|">
10507 \begin_layout Standard
10508 multiple lines multicolumn
10513 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10516 \begin_layout Standard
10522 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10525 \begin_layout Standard
10532 <row topline="true">
10533 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10536 \begin_layout Standard
10542 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10545 \begin_layout Standard
10551 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10554 \begin_layout Standard
10561 <row topline="true" bottomline="true">
10562 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10565 \begin_layout Standard
10571 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10574 \begin_layout Standard
10580 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10583 \begin_layout Standard
10602 \begin_layout Standard
10603 To create for example Table\InsetSpace ~
10605 \begin_inset LatexCommand ref
10606 reference "tab:Table-with-centered"
10610 , mark the first two cells in the first row a 3×3 table and right-click
10612 Now choose for this cell
10620 and a width of 2.5\InsetSpace \thinspace{}
10621 cm in the table dialog.
10622 The spanned columns should have exactly half the width of the multicolumn
10623 cell, so that you would adjust a width of 1.25\InsetSpace \thinspace{}
10624 cm for the first column.
10625 The second column has then automatically a width of 1.25\InsetSpace \thinspace{}
10627 width - width of first column).
10628 This was done for Table\InsetSpace ~
10630 \begin_inset LatexCommand ref
10631 reference "tab:Table-without-half"
10638 \begin_layout Standard
10639 \begin_inset Float table
10644 \begin_layout Standard
10645 \begin_inset Caption
10647 \begin_layout Standard
10648 \begin_inset LatexCommand label
10649 name "tab:Table-without-half"
10653 Table where the spanned table columns have not exactly half the width of
10654 the multicolumn cell
10655 \begin_inset OptArg
10658 \begin_layout Standard
10659 Imperfect multicolumn table
10672 \begin_layout Standard
10674 \begin_inset Tabular
10675 <lyxtabular version="3" rows="3" columns="3">
10677 <column alignment="center" valignment="top" leftline="true" width="1.25cm">
10678 <column alignment="center" valignment="top" leftline="true" width="0">
10679 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10680 <row topline="true" bottomline="true">
10681 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
10684 \begin_layout Standard
10685 multiple lines multicolumn
10690 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10693 \begin_layout Standard
10699 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10702 \begin_layout Standard
10709 <row topline="true">
10710 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10713 \begin_layout Standard
10719 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10722 \begin_layout Standard
10728 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10731 \begin_layout Standard
10738 <row topline="true" bottomline="true">
10739 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10742 \begin_layout Standard
10748 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10751 \begin_layout Standard
10757 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10760 \begin_layout Standard
10779 \begin_layout Standard
10780 You can see that the first column has not the half width of the multicolumn
10781 cell, it is a bit bigger.
10782 The reason is that the given width of a cell
10783 \begin_inset Formula $W_{g}$
10786 is not its total width
10787 \begin_inset Formula $W_{\mathrm{tot}}$
10790 because a cell is always a bit larger than its given width.
10791 Appendix\InsetSpace ~
10793 \begin_inset LatexCommand eqref
10794 reference "cha:Explanation-of-Equation"
10798 explains it in detail.
10801 \begin_layout Standard
10802 The needed given width
10803 \begin_inset Formula $W_{g\, n}$
10810 columns are spanned columns can be calculated, so that each column has
10812 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
10816 \begin_inset Formula \begin{equation}
10817 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)·(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
10824 \begin_layout Standard
10825 In our case we have
10826 \begin_inset Formula $n=2$
10830 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
10833 cm and the default values for the lengths, so that equation
10834 \begin_inset LatexCommand ref
10840 \begin_inset Formula \begin{equation}
10841 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
10848 \begin_layout Standard
10849 To enable calculations in LaTeX, the LaTeX-package
10853 must be loaded with the document preamble line
10854 \begin_inset LatexCommand index
10855 name "LaTeX-packages ! calc"
10862 \begin_layout Standard
10870 \begin_layout Standard
10871 LyX does not allow to calculate lengths in the width-field of the table
10873 Therefore you have to format the column by inserting a LaTeX-argument in
10875 Here is an overview about the arguments:
10878 \begin_layout Itemize
10883 creates cell with a fixed width, its text is vertically top-aligned
10886 \begin_layout Itemize
10891 creates cell with a fixed width, its text is vertically centered
10894 \begin_layout Itemize
10899 creates cell with a fixed width, its text is vertically bottom-aligned
10902 \begin_layout Standard
10903 By entering a LaTeX-argument, all cell properties set in the table dialog
10906 \begin_inset Note Greyedout
10909 \begin_layout Standard
10914 Due to a bug, LyX shows the overwritten properties anyway.
10919 As the text should be horizontally centered, the command
10926 You can now enter the following LaTeX-argument for the first spanned column:
10929 \begin_layout Standard
10934 centering}m{1.25cm-6.2pt}
10937 \begin_layout Standard
10939 \begin_inset Quotes eld
10947 \begin_inset Quotes erd
10950 at the beginning draws the border line and the command
10954 means, that the commands inside the braces are applied before the cell
10958 \begin_layout Standard
10959 Although we have chosen centered alignment for the text of the multicolumn
10960 cell, it is still left aligned.
10961 This is because LyX only applies the alignment to single columns.
10962 So we have to use for the multicolumn the LaTeX-argument
10965 \begin_layout Standard
10970 centering}m{2.5cm}|
10973 \begin_layout Subsection
10975 \begin_inset LatexCommand index
10981 \begin_inset LatexCommand index
10982 name "Table ! Multirows"
10987 \begin_inset LatexCommand index
10988 name "LaTeX-packages ! multirow"
10995 \begin_layout Standard
10996 In contrary to multicolumns multirows are not yet supported by LyX so a
10997 bit of ERT needs to be used.
10998 To use multirows load the LaTeX-package
11002 in your document preamble with the command
11005 \begin_layout Standard
11010 usepackage{multirow}
11013 \begin_layout Standard
11014 Multirows are created with the command
11017 \begin_layout Standard
11022 multirow{number of rows}{cell width}{cell entry}
11025 \begin_layout Standard
11026 To create the following table:
11029 \begin_layout Standard
11034 \begin_layout Standard
11048 \begin_inset Tabular
11049 <lyxtabular version="3" rows="3" columns="3">
11051 <column alignment="center" valignment="top" leftline="true" width="0">
11052 <column alignment="center" valignment="top" leftline="true" width="0">
11053 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
11054 <row topline="true">
11055 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11058 \begin_layout Standard
11064 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11067 \begin_layout Standard
11073 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11076 \begin_layout Standard
11083 <row topline="true">
11084 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11087 \begin_layout Standard
11091 \begin_layout Standard
11095 multirow{2}{2.5cm}{
11104 \begin_layout Standard
11116 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11119 \begin_layout Standard
11125 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11128 \begin_layout Standard
11135 <row topline="true" bottomline="true">
11136 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11139 \begin_layout Standard
11145 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11148 \begin_layout Standard
11154 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11157 \begin_layout Standard
11172 \begin_layout Standard
11188 \begin_layout Standard
11189 create a 3×3 table.
11190 To get rid of the line above the last cell in the first column, the cell
11191 is marked as multicolumn and the upper border is unset.
11192 The multirow is now created in the second row of the first column by inserting
11196 \begin_layout Standard
11201 multirow{2}{2.5cm}{
11204 \begin_layout Standard
11206 According to the command parameters the multirow spans now two rows and
11207 has a width of 2.5\InsetSpace \thinspace{}
11209 The content of the multirow cell follows outside the ERT box and the command
11210 is finished with a right brace
11214 in another ERT-box behind the text.
11217 \begin_layout Standard
11224 left-aligns its content by default.
11225 To override the default, renew the command
11234 \begin_layout Standard
11246 \begin_layout Standard
11247 in ERT in the document preamble.
11248 Then all entries of multirow cells in the document are centered.
11249 If centering is only needed for several tables, you can renew the command
11250 in an ERT box just before the table instead of the preamble.
11251 If the text should be right-aligned, replace
11264 To return to left-alignment
11273 \begin_layout Section
11275 \begin_inset LatexCommand label
11276 name "sec:Formal-Tables"
11281 \begin_inset LatexCommand index
11282 name "Table ! Formal"
11289 \begin_layout Standard
11290 Tables are often typeset in books similar to Table\InsetSpace ~
11292 \begin_inset LatexCommand ref
11293 reference "tab:Example-booktabs-table"
11298 This kind of tables is called
11299 \begin_inset Quotes eld
11307 \begin_inset Quotes erd
11311 To make a table a formal table use the option
11319 tab of the table dialog.
11322 \begin_layout Standard
11323 \begin_inset Float table
11329 \begin_layout Standard
11330 \begin_inset Caption
11332 \begin_layout Standard
11333 \begin_inset LatexCommand label
11334 name "tab:Example-booktabs-table"
11338 Example booktabs-table
11346 \begin_layout Standard
11348 \begin_inset Tabular
11349 <lyxtabular version="3" rows="8" columns="4">
11350 <features booktabs="true">
11351 <column alignment="center" valignment="top" rightline="true" width="0">
11352 <column alignment="center" valignment="top" width="0">
11353 <column alignment="center" valignment="top" width="0">
11354 <column alignment="center" valignment="top" width="0">
11355 <row topline="true">
11356 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11359 \begin_layout Standard
11365 <cell alignment="center" valignment="top" topline="true" usebox="none">
11368 \begin_layout Standard
11370 \begin_inset Formula $\,$
11378 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
11381 \begin_layout Standard
11383 \begin_inset Formula $\,$
11391 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11394 \begin_layout Standard
11402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11405 \begin_layout Standard
11409 \begin_layout Standard
11422 \begin_layout Standard
11431 Detector thickness [µm]
11436 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11439 \begin_layout Standard
11445 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11448 \begin_layout Standard
11454 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11457 \begin_layout Standard
11464 <row topline="true">
11465 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11468 \begin_layout Standard
11474 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11477 \begin_layout Standard
11483 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11486 \begin_layout Standard
11492 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11495 \begin_layout Standard
11502 <row topspace="default">
11503 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11506 \begin_layout Standard
11507 Spatial resolution [µm]
11512 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11515 \begin_layout Standard
11521 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11524 \begin_layout Standard
11530 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11533 \begin_layout Standard
11540 <row topspace="default">
11541 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11544 \begin_layout Standard
11546 \begin_inset Formula $f_{\mathrm{max}}$
11554 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11557 \begin_layout Standard
11563 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11566 \begin_layout Standard
11572 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11575 \begin_layout Standard
11582 <row topspace="default">
11583 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11586 \begin_layout Standard
11590 \begin_layout Standard
11594 cmidrule(l{10pt}){1-1}
11599 LSF-spatial resolution
11604 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11607 \begin_layout Standard
11613 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11616 \begin_layout Standard
11622 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11625 \begin_layout Standard
11633 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11636 \begin_layout Standard
11642 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11645 \begin_layout Standard
11651 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11654 \begin_layout Standard
11660 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11663 \begin_layout Standard
11670 <row bottomline="true">
11671 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11674 \begin_layout Standard
11680 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11683 \begin_layout Standard
11689 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11692 \begin_layout Standard
11698 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11701 \begin_layout Standard
11720 \begin_layout Standard
11721 Spaces to table rows can be added using the
11725 tab of the table dialog as described in section\InsetSpace ~
11727 \begin_inset LatexCommand ref
11728 reference "sub:Row-Spacing"
11735 \begin_layout Standard
11736 In contrary to normal tables, formal tables have no vertical table lines.
11737 The horizontal table lines can be set like for normal tables but they appear
11738 with different width in the output:
11740 The first and the last table line have
11741 a default width of 0.08\InsetSpace \thinspace{}
11742 em while the other lines have a default width of
11743 0.05\InsetSpace \thinspace{}
11747 \begin_layout Standard
11748 The default widths can be changed with the following preamble lines
11751 \begin_layout Standard
11771 \begin_layout Standard
11772 This example is for the first line, the so called toprule.
11773 If you want to change the width for the last line, replace
11782 To change the width for the other lines replace
11791 You can use all units listed in appendix\InsetSpace ~
11793 \begin_inset LatexCommand ref
11794 reference "cha:Units-available-in"
11801 \begin_layout Standard
11802 Lines that don't span over all table columns can be created by setting a
11803 table line for multicolumn cells.
11804 LyX will then internally use the command
11810 to create this line.
11814 \begin_layout Standard
11819 cmidrule[width](trim){startcol-endcol}
11822 \begin_layout Standard
11829 are are currently not supported by LyX so you have to use ERT to be able
11837 s can manually be created by inserting the command as ERT as first cell
11838 entry of the first cell of a row.
11839 The line is then drawn in the output above the current row.
11842 \begin_layout Standard
11843 The default for the width is 0.03\InsetSpace \thinspace{}
11845 Startcol is the number of the column where the line starts and endcol the
11846 column number where the line ends.
11847 The endcol always needs to be specified, also when the line should span
11849 The optional parameter trim could be either
11857 where the trimwidth is also optional.
11858 Using for example the parameter
11862 means that the line is trimmed from its left end by 2\InsetSpace \thinspace{}
11864 If you don't specify the trimwidth the lines are trimmed by the default
11865 of 0.5\InsetSpace \thinspace{}
11869 \begin_layout Standard
11870 \begin_inset VSpace bigskip
11875 \begin_inset LatexCommand ref
11876 reference "tab:Example-booktabs-table"
11880 was created using the commands
11883 \begin_layout Standard
11893 \begin_layout Standard
11894 at the beginning of the in the second row and
11897 \begin_layout Standard
11902 cmidrule(l{10pt}){1-1}
11905 \begin_layout Standard
11909 \begin_layout Standard
11913 \begin_layout Standard
11914 \begin_inset VSpace bigskip
11920 \begin_layout Standard
11921 You might want to have overlapping
11927 s like in Table\InsetSpace ~
11929 \begin_inset LatexCommand ref
11930 reference "tab:Special-booktabs-table"
11935 This can be achieved with the ERT command
11938 \begin_layout Standard
11946 \begin_layout Standard
11947 The command that was used for the second row of Table\InsetSpace ~
11949 \begin_inset LatexCommand ref
11950 reference "tab:Special-booktabs-table"
11957 \begin_layout Standard
11971 \begin_layout Standard
11972 The command for the sixth row is
11975 \begin_layout Standard
11987 \begin_layout Standard
11988 \begin_inset VSpace bigskip
11994 \begin_layout Standard
11995 If you are anyway not satisfied with the border line spacing, you can use
11996 the following command to produce lines that span over all table columns
12001 \begin_layout Standard
12006 specialrule{width}{space above}{space below}
12009 \begin_layout Standard
12010 For more informations about these specialties, we refer to the manual of
12016 \begin_inset LatexCommand cite
12022 \begin_inset LatexCommand index
12023 name "LaTeX-packages ! booktabs"
12030 \begin_layout Standard
12031 \begin_inset Float table
12037 \begin_layout Standard
12038 \begin_inset Caption
12040 \begin_layout Standard
12041 \begin_inset LatexCommand label
12042 name "tab:Special-booktabs-table"
12046 Special booktabs-table
12054 \begin_layout Standard
12056 \begin_inset Tabular
12057 <lyxtabular version="3" rows="8" columns="4">
12058 <features booktabs="true">
12059 <column alignment="center" valignment="top" width="0">
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 <row topline="true">
12064 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12067 \begin_layout Standard
12073 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12076 \begin_layout Standard
12077 Medipix\InsetSpace \thinspace{}
12083 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
12086 \begin_layout Standard
12087 Medipix\InsetSpace \thinspace{}
12093 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12096 \begin_layout Standard
12104 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12107 \begin_layout Standard
12111 \begin_layout Standard
12124 \begin_layout Standard
12137 \begin_layout Standard
12150 \begin_layout Standard
12159 Detector thickness [µm]
12164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12167 \begin_layout Standard
12173 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12176 \begin_layout Standard
12182 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12185 \begin_layout Standard
12192 <row topline="true">
12193 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12196 \begin_layout Standard
12202 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12205 \begin_layout Standard
12211 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12214 \begin_layout Standard
12220 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12223 \begin_layout Standard
12230 <row topspace="default">
12231 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12234 \begin_layout Standard
12235 Spatial resolution [µm]
12240 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12243 \begin_layout Standard
12249 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12252 \begin_layout Standard
12258 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12261 \begin_layout Standard
12268 <row topspace="default">
12269 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12272 \begin_layout Standard
12274 \begin_inset Formula $f_{\mathrm{max}}$
12282 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12285 \begin_layout Standard
12291 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12294 \begin_layout Standard
12300 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12303 \begin_layout Standard
12310 <row topline="true">
12311 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12314 \begin_layout Standard
12318 \begin_layout Standard
12331 \begin_layout Standard
12340 LSF-spatial resolution
12345 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12348 \begin_layout Standard
12354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12357 \begin_layout Standard
12363 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12366 \begin_layout Standard
12374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12377 \begin_layout Standard
12383 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12386 \begin_layout Standard
12392 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12395 \begin_layout Standard
12401 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12404 \begin_layout Standard
12411 <row bottomline="true">
12412 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12415 \begin_layout Standard
12421 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12424 \begin_layout Standard
12430 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12433 \begin_layout Standard
12439 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12442 \begin_layout Standard
12461 \begin_layout Section
12462 Vertical Table Alignment
12463 \begin_inset LatexCommand index
12464 name "Table ! Alignment"
12471 \begin_layout Standard
12472 To align tables vertically in a text line the table must be inside a box.
12473 The box can then be vertically aligned as described in section\InsetSpace ~
12475 \begin_inset LatexCommand ref
12476 reference "sec:Box-Dialog"
12483 \begin_layout Standard
12484 In the following example the tables are inside a minipage
12488 \begin_layout Standard
12489 Minipages are described in section\InsetSpace ~
12491 \begin_inset LatexCommand ref
12492 reference "sec:Minipages"
12501 box that has a width of 15\InsetSpace \thinspace{}
12505 \begin_layout Itemize
12507 \begin_inset Box Frameless
12516 height_special "totalheight"
12519 \begin_layout Standard
12520 \begin_inset Tabular
12521 <lyxtabular version="3" rows="3" columns="3">
12523 <column alignment="center" valignment="top" leftline="true" width="0">
12524 <column alignment="center" valignment="top" leftline="true" width="0">
12525 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12526 <row topline="true">
12527 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12530 \begin_layout Standard
12536 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12539 \begin_layout Standard
12545 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12548 \begin_layout Standard
12555 <row topline="true">
12556 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12559 \begin_layout Standard
12565 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12568 \begin_layout Standard
12574 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12577 \begin_layout Standard
12584 <row topline="true" bottomline="true">
12585 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12588 \begin_layout Standard
12594 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12597 \begin_layout Standard
12603 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12606 \begin_layout Standard
12626 \begin_layout Standard
12638 \begin_inset Box Frameless
12647 height_special "totalheight"
12650 \begin_layout Standard
12651 \begin_inset Tabular
12652 <lyxtabular version="3" rows="3" columns="3">
12654 <column alignment="center" valignment="top" leftline="true" width="0">
12655 <column alignment="center" valignment="top" leftline="true" width="0">
12656 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12657 <row topline="true">
12658 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12661 \begin_layout Standard
12667 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12670 \begin_layout Standard
12676 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12679 \begin_layout Standard
12686 <row topline="true">
12687 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12690 \begin_layout Standard
12696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12699 \begin_layout Standard
12705 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12708 \begin_layout Standard
12715 <row topline="true" bottomline="true">
12716 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12719 \begin_layout Standard
12725 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12728 \begin_layout Standard
12734 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12737 \begin_layout Standard
12757 \begin_layout Standard
12767 \begin_layout Itemize
12769 \begin_inset Box Frameless
12778 height_special "totalheight"
12781 \begin_layout Standard
12782 \begin_inset Tabular
12783 <lyxtabular version="3" rows="3" columns="3">
12785 <column alignment="center" valignment="top" leftline="true" width="0">
12786 <column alignment="center" valignment="top" leftline="true" width="0">
12787 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12788 <row topline="true">
12789 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12792 \begin_layout Standard
12798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12801 \begin_layout Standard
12807 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12810 \begin_layout Standard
12817 <row topline="true">
12818 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12821 \begin_layout Standard
12827 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12830 \begin_layout Standard
12836 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12839 \begin_layout Standard
12846 <row topline="true" bottomline="true">
12847 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12850 \begin_layout Standard
12856 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12859 \begin_layout Standard
12865 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12868 \begin_layout Standard
12887 \begin_layout Itemize
12889 \begin_inset Box Frameless
12898 height_special "totalheight"
12901 \begin_layout Standard
12902 \begin_inset Tabular
12903 <lyxtabular version="3" rows="3" columns="3">
12905 <column alignment="center" valignment="top" leftline="true" width="0">
12906 <column alignment="center" valignment="top" leftline="true" width="0">
12907 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12908 <row topline="true">
12909 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12912 \begin_layout Standard
12918 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12921 \begin_layout Standard
12927 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12930 \begin_layout Standard
12937 <row topline="true">
12938 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12941 \begin_layout Standard
12947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12950 \begin_layout Standard
12956 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12959 \begin_layout Standard
12966 <row topline="true" bottomline="true">
12967 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12970 \begin_layout Standard
12976 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12979 \begin_layout Standard
12985 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12988 \begin_layout Standard
13008 \begin_layout Standard
13020 \begin_inset Box Frameless
13029 height_special "totalheight"
13032 \begin_layout Standard
13033 \begin_inset Tabular
13034 <lyxtabular version="3" rows="3" columns="3">
13036 <column alignment="center" valignment="top" leftline="true" width="0">
13037 <column alignment="center" valignment="top" leftline="true" width="0">
13038 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13039 <row topline="true">
13040 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13043 \begin_layout Standard
13049 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13052 \begin_layout Standard
13058 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13061 \begin_layout Standard
13068 <row topline="true">
13069 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13072 \begin_layout Standard
13078 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13081 \begin_layout Standard
13087 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13090 \begin_layout Standard
13097 <row topline="true" bottomline="true">
13098 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13101 \begin_layout Standard
13107 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13110 \begin_layout Standard
13116 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13119 \begin_layout Standard
13139 \begin_layout Standard
13149 \begin_layout Standard
13150 As you can see, the content of the first and last table row is not correctly
13151 aligned with the text line where the table is in.
13152 To get this alignment, the minipage box must be set into a raisebox
13156 \begin_layout Standard
13157 Raiseboxes are described in section\InsetSpace ~
13159 \begin_inset LatexCommand ref
13160 reference "sub:Vertical-Alignment"
13170 In the example above the second table in the first item is aligned using
13174 \begin_layout Standard
13184 \begin_layout Standard
13186 Behind the box the closing brace
13190 is inserted as ERT.
13191 For the second table in the last item the command
13194 \begin_layout Standard
13204 \begin_layout Standard
13208 \begin_layout Standard
13209 \begin_inset Note Greyedout
13212 \begin_layout Standard
13217 The alignment of the table row content to the surrounding text line is
13219 The needed factor of the
13225 command for this alignment depends on the document font, the font size,
13226 and the table line thickness.
13234 \begin_layout Section
13236 \begin_inset LatexCommand label
13237 name "sec:Colored-Tables"
13242 \begin_inset LatexCommand index
13243 name "Table ! Color"
13250 \begin_layout Subsection
13252 \begin_inset LatexCommand index
13253 name "Table Color ! for Cells"
13258 \begin_inset LatexCommand index
13259 name "Color ! for Table Cells"
13266 \begin_layout Standard
13267 \begin_inset Float table
13273 \begin_layout Standard
13274 \begin_inset Caption
13276 \begin_layout Standard
13277 \begin_inset LatexCommand label
13278 name "tab:Table-colored-without"
13282 Table colored without using the package
13287 \begin_inset OptArg
13290 \begin_layout Standard
13291 Table without colortbl
13304 \begin_layout Standard
13306 \begin_inset Tabular
13307 <lyxtabular version="3" rows="3" columns="3">
13309 <column alignment="center" valignment="top" leftline="true" width="0">
13310 <column alignment="center" valignment="top" leftline="true" width="0">
13311 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13312 <row topline="true">
13313 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13316 \begin_layout Standard
13324 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13327 \begin_layout Standard
13335 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13338 \begin_layout Standard
13347 <row topline="true">
13348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13351 \begin_layout Standard
13359 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13362 \begin_layout Standard
13370 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13373 \begin_layout Standard
13382 <row topline="true" bottomline="true">
13383 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13386 \begin_layout Standard
13394 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13397 \begin_layout Standard
13405 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13408 \begin_layout Standard
13429 \begin_layout Standard
13430 If you only need colored text, mark the cells and choose a color in the
13433 Edit\SpecialChar \menuseparator
13438 This was used to create Table\InsetSpace ~
13440 \begin_inset LatexCommand ref
13441 reference "tab:Table-colored-without"
13446 In any other case you have to use the LaTeX-package
13451 \begin_inset LatexCommand index
13452 name "LaTeX-packages ! colortbl"
13459 \begin_layout Standard
13460 To create colored tables,
13464 must be loaded in the preamble with the line
13467 \begin_layout Standard
13472 usepackage{colortbl}
13475 \begin_layout Standard
13476 The color of a column is adjusted with the command
13479 \begin_layout Standard
13484 columncolor{name of color}
13487 \begin_layout Standard
13493 More about the command
13497 is described in section\InsetSpace ~
13499 \begin_inset LatexCommand ref
13500 reference "sub:Multicolumn-Calculations"
13507 \begin_layout Standard
13508 The following color names are predefined:
13511 \begin_layout Standard
13545 \begin_layout Standard
13546 \begin_inset VSpace medskip
13552 \begin_layout Standard
13553 You can also define your own color with the command
13556 \begin_layout Standard
13561 def\SpecialChar \textcompwordmark{}
13562 inecolor{color name}{color model}{color values}
13565 \begin_layout Standard
13566 The color model can be
13569 \begin_layout Labeling
13570 \labelwidthstring 00.00.0000
13571 cmyk: cyan, magenta, yellow, black
13574 \begin_layout Labeling
13575 \labelwidthstring 00.00.0000
13576 rgb: red, green blue
13579 \begin_layout Labeling
13580 \labelwidthstring 00.00.0000
13584 \begin_layout Standard
13585 and the color values are comma separated numbers between 0 and 1 describing
13586 the factor for the corresponding color of the color model.
13589 \begin_layout Standard
13590 You can e.\InsetSpace \thinspace{}
13596 " in the preamble with
13599 \begin_layout Standard
13604 def\SpecialChar \textcompwordmark{}
13605 inecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
13608 \begin_layout Standard
13616 \begin_layout Standard
13621 def\SpecialChar \textcompwordmark{}
13622 inecolor{lightgray}{gray}{0.8}
13625 \begin_layout Standard
13626 \begin_inset VSpace medskip
13632 \begin_layout Standard
13633 Lines are colored with the command
13636 \begin_layout Standard
13641 rowcolor{name of color}
13644 \begin_layout Standard
13645 and cells are colored with the command
13648 \begin_layout Standard
13653 cellcolor{name of color}
13656 \begin_layout Standard
13657 Both commands are inserted at the beginning of a cell as ERT.
13660 \begin_layout Standard
13661 To color characters in the table, mark the cells and use the LyX menu
13663 Edit\SpecialChar \menuseparator
13668 If a cell contains ERT mark only the characters, otherwise the colored
13669 ERT will cause LaTeX-errors.
13672 \begin_layout Standard
13673 \begin_inset VSpace bigskip
13679 \begin_layout Standard
13680 To create Table\InsetSpace ~
13682 \begin_inset LatexCommand ref
13683 reference "tab:Table-colored-using"
13687 do the following: The color of the first column should be
13695 \begin_layout Standard
13700 columncolor{darkgreen}
13705 \begin_layout Standard
13706 as LaTeX-argument for this column.
13707 The first row should be blue, therefore the ERT command
13710 \begin_layout Standard
13718 \begin_layout Standard
13719 is inserted to the first cell of this row.
13720 Note that this overwrites the column color for the first cell.
13721 The last cell of the last row is colored magenta by inserting the ERT command
13724 \begin_layout Standard
13732 \begin_layout Standard
13733 The characters could now be colored using the menu
13735 Edit\SpecialChar \menuseparator
13742 \begin_layout Standard
13743 \begin_inset Float table
13749 \begin_layout Standard
13750 \begin_inset Caption
13752 \begin_layout Standard
13753 \begin_inset LatexCommand label
13754 name "tab:Table-colored-using"
13758 Table colored using the package
13763 \begin_inset OptArg
13766 \begin_layout Standard
13767 Table with colortbl
13780 \begin_layout Standard
13782 \begin_inset Tabular
13783 <lyxtabular version="3" rows="3" columns="3">
13785 <column alignment="center" valignment="top" leftline="true" width="0" special=">{\columncolor{darkgreen}\centering}c">
13786 <column alignment="center" valignment="top" width="0">
13787 <column alignment="center" valignment="top" width="0">
13789 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13792 \begin_layout Standard
13796 \begin_layout Standard
13812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13815 \begin_layout Standard
13823 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13826 \begin_layout Standard
13836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13839 \begin_layout Standard
13847 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13850 \begin_layout Standard
13858 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13861 \begin_layout Standard
13871 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13874 \begin_layout Standard
13882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13885 \begin_layout Standard
13893 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13896 \begin_layout Standard
13900 \begin_layout Standard
13929 \begin_layout Subsection
13931 \begin_inset LatexCommand index
13932 name "Table Color ! for Lines"
13937 \begin_inset LatexCommand index
13938 name "Color ! for Table Lines"
13945 \begin_layout Standard
13946 As described in section\InsetSpace ~
13948 \begin_inset LatexCommand ref
13949 reference "sub:Line-Thickness"
13953 , the line thickness for all lines in a table can be adjusted with the length
13961 It is set to 1.5\InsetSpace \thinspace{}
13962 pt for all tables of this section.
13966 \begin_layout Standard
13972 arrayrulewidth}{1.5pt}
13980 \begin_layout Standard
13981 To color vertical lines for example with green, create the following column
13982 format in the document preamble, according to the description in section\InsetSpace ~
13984 \begin_inset LatexCommand ref
13985 reference "sub:Customized-Format"
13992 \begin_layout Standard
13997 newcolumntype{W}{!{
14004 \begin_layout Standard
14005 For Table\InsetSpace ~
14007 \begin_inset LatexCommand ref
14008 reference "tab:Table-with-vertical-colored"
14015 \begin_layout Standard
14021 \begin_layout Standard
14022 was used for the last column and
14025 \begin_layout Standard
14031 \begin_layout Standard
14032 for the other columns.
14035 \begin_layout Standard
14036 If you want to have several colors, define more column formats.
14039 \begin_layout Standard
14040 \begin_inset Float table
14045 \begin_layout Standard
14046 \begin_inset Caption
14048 \begin_layout Standard
14049 \begin_inset LatexCommand label
14050 name "tab:Table-with-vertical-colored"
14054 Table with colored vertical lines
14062 \begin_layout Standard
14064 \begin_inset Tabular
14065 <lyxtabular version="3" rows="3" columns="3">
14067 <column alignment="center" valignment="top" leftline="true" width="0" special="Wc">
14068 <column alignment="center" valignment="top" width="0" special="Wc">
14069 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0" special="WcW">
14070 <row topline="true">
14071 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14074 \begin_layout Standard
14080 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14083 \begin_layout Standard
14089 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14092 \begin_layout Standard
14099 <row topline="true">
14100 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14103 \begin_layout Standard
14109 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14112 \begin_layout Standard
14118 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14121 \begin_layout Standard
14128 <row topline="true" bottomline="true">
14129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14132 \begin_layout Standard
14138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14141 \begin_layout Standard
14147 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14150 \begin_layout Standard
14169 \begin_layout Standard
14170 \begin_inset VSpace bigskip
14173 To color horizontal lines for example with red, like in Table\InsetSpace ~
14175 \begin_inset LatexCommand ref
14176 reference "tab:Table-with-horizontal-colored"
14180 , insert these commands in ERT before the table or table float:
14183 \begin_layout Standard
14200 arrayrulecolor{red}
14204 arrayrulecolor{black}}
14207 \begin_layout Standard
14211 \begin_layout Standard
14222 \begin_layout Standard
14230 arrayrulecolor{red}
14234 arrayrulecolor{black}}
14240 \begin_inset Float table
14245 \begin_layout Standard
14246 \begin_inset Caption
14248 \begin_layout Standard
14249 \begin_inset LatexCommand label
14250 name "tab:Table-with-horizontal-colored"
14254 Table with colored horizontal lines
14262 \begin_layout Standard
14264 \begin_inset Tabular
14265 <lyxtabular version="3" rows="3" columns="3">
14267 <column alignment="center" valignment="top" leftline="true" width="0">
14268 <column alignment="center" valignment="top" leftline="true" width="0">
14269 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14270 <row topline="true">
14271 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14274 \begin_layout Standard
14280 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14283 \begin_layout Standard
14289 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14292 \begin_layout Standard
14299 <row topline="true">
14300 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14303 \begin_layout Standard
14309 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14312 \begin_layout Standard
14318 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14321 \begin_layout Standard
14328 <row topline="true" bottomline="true">
14329 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14332 \begin_layout Standard
14338 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14341 \begin_layout Standard
14347 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14350 \begin_layout Standard
14369 \begin_layout Standard
14373 \begin_layout Standard
14385 \begin_layout Standard
14386 To return to the default line color black, insert this command in ERT behind
14387 the table or table float:
14390 \begin_layout Standard
14402 \begin_layout Standard
14405 \begin_inset LatexCommand ref
14406 reference "tab:Table-with-colored"
14410 is an example with colored vertical and horizontal lines.
14413 \begin_layout Standard
14414 \begin_inset Float table
14419 \begin_layout Standard
14420 \begin_inset Caption
14422 \begin_layout Standard
14423 \begin_inset LatexCommand label
14424 name "tab:Table-with-colored"
14428 Table with colored lines
14436 \begin_layout Standard
14438 \begin_inset Tabular
14439 <lyxtabular version="3" rows="3" columns="3">
14441 <column alignment="center" valignment="top" leftline="true" width="0" special="Wc">
14442 <column alignment="center" valignment="top" width="0" special="Wc">
14443 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0" special="WcW">
14444 <row topline="true">
14445 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14448 \begin_layout Standard
14454 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14457 \begin_layout Standard
14463 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14466 \begin_layout Standard
14473 <row topline="true">
14474 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14477 \begin_layout Standard
14483 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14486 \begin_layout Standard
14492 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14495 \begin_layout Standard
14502 <row topline="true" bottomline="true" topspace="default">
14503 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14506 \begin_layout Standard
14512 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14515 \begin_layout Standard
14521 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14524 \begin_layout Standard
14543 \begin_layout Standard
14547 \begin_layout Standard
14563 \begin_layout Standard
14567 \begin_layout Standard
14573 arrayrulewidth}{0.4pt}
14581 \begin_layout Section
14582 Table Customization
14583 \begin_inset LatexCommand index
14584 name "Table Customization"
14589 \begin_inset LatexCommand index
14590 name "Table ! Customization"
14597 \begin_layout Subsection
14599 \begin_inset LatexCommand label
14600 name "sub:Row-Spacing"
14605 \begin_inset LatexCommand index
14606 name "Table Customization ! Row Spacing"
14613 \begin_layout Standard
14614 You can add vertical space to table rows in the
14618 tab of the table dialog.
14619 You find there three possibilities:
14622 \begin_layout Description
14625 row will add space above the characters of the table row.
14626 If the table is a formal table
14630 \begin_layout Standard
14631 Formal tables are explained in section\InsetSpace ~
14633 \begin_inset LatexCommand ref
14634 reference "sec:Formal-Tables"
14643 LyX will insert as default 0.5\InsetSpace \thinspace{}
14645 For normal tables the inserted space will unfortunately destroy the vertical
14646 table lines as in the following table:
14647 \begin_inset Tabular
14648 <lyxtabular version="3" rows="3" columns="1">
14650 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14651 <row topline="true">
14652 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14655 \begin_layout Standard
14662 <row topline="true" topspace="3mm">
14663 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14666 \begin_layout Standard
14667 3\InsetSpace \thinspace{}
14668 mm space top of row
14674 <row topline="true" bottomline="true">
14675 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14678 \begin_layout Standard
14691 So inserting space to the top of row for normal tables is only useful when
14692 you don't have vertical lines.
14695 \begin_layout Description
14696 Bottom\InsetSpace ~
14698 row will add space below the characters of the table row.
14699 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
14701 normal tables the default size is 2\InsetSpace \thinspace{}
14705 \begin_layout Description
14706 Between\InsetSpace ~
14707 rows only has an effect when you have selected the whole table row
14709 The space is added between the current and the following row.
14710 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
14712 For normal tables the inserted space will unfortunately destroy the vertical
14713 table lines as in the following table:
14714 \begin_inset Tabular
14715 <lyxtabular version="3" rows="3" columns="1">
14717 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14718 <row topline="true">
14719 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14722 \begin_layout Standard
14729 <row topline="true" interlinespace="3mm">
14730 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14733 \begin_layout Standard
14734 \begin_inset Formula $\downarrow$
14737 3\InsetSpace \thinspace{}
14738 mm space between row
14739 \begin_inset Formula $\downarrow$
14748 <row topline="true" bottomline="true">
14749 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14752 \begin_layout Standard
14753 \begin_inset Formula $\uparrow$
14756 3\InsetSpace \thinspace{}
14757 mm space between row
14758 \begin_inset Formula $\uparrow$
14773 So inserting space between rows for normal tables is only useful when you
14774 don't have vertical lines.
14777 \begin_layout Standard
14778 When you want to add extra height to all cells of all tables, you can do
14779 this with the following preamble line:
14782 \begin_layout Standard
14789 extrarowheight}{height}
14792 \begin_layout Standard
14793 But this has the disadvantage that the cell texts are no longer exactly
14794 vertically centered.
14797 \begin_layout Subsection
14798 Special Cell Alignment
14799 \begin_inset LatexCommand index
14800 name "Table Customization ! Special Cell Alignment"
14807 \begin_layout Standard
14808 Sometimes it looks better when the cell entries of a column are aligned
14809 with a special character, e.\InsetSpace \thinspace{}
14811 with the decimal separator as in Table\InsetSpace ~
14813 \begin_inset LatexCommand ref
14814 reference "tab:Table-cells-of"
14821 \begin_layout Standard
14822 \begin_inset Float table
14828 \begin_layout Standard
14829 \begin_inset Caption
14831 \begin_layout Standard
14832 \begin_inset LatexCommand label
14833 name "tab:Table-cells-of"
14837 Table cells of a column aligned with the decimal separator.
14845 \begin_layout Standard
14847 \begin_inset Tabular
14848 <lyxtabular version="3" rows="4" columns="2">
14850 <column alignment="right" valignment="top" width="0">
14851 <column alignment="left" valignment="top" width="0" special="@{}l">
14852 <row bottomline="true">
14853 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
14856 \begin_layout Standard
14862 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14865 \begin_layout Standard
14873 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14876 \begin_layout Standard
14882 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14885 \begin_layout Standard
14893 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14896 \begin_layout Standard
14902 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14905 \begin_layout Standard
14913 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14916 \begin_layout Standard
14922 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14925 \begin_layout Standard
14944 \begin_layout Standard
14945 This table was created with a 4×2 table.
14946 The heading is a centered multicolumn.
14947 The first column is right-aligned and contains the digits before the decimal
14948 point and the decimal point.
14949 The second column is left aligned and contains the digits after the decimal
14951 To omit the space that is normally between two table columns, use the following
14952 LaTeX-argument for the second column:
14955 \begin_layout Standard
14961 \begin_layout Standard
14962 If you need a vertical line right beside the second column, use this LaTeX-argum
14968 \begin_layout Standard
14971 \begin_inset LatexCommand ref
14972 reference "tab:Several-table-cell"
14976 shows some example alignments.
14977 For the alignment with the relation sign, you must add the second smallest
14978 math-space at the beginning of the last column to get the correct space
14979 surrounding the relation sign.
14982 \begin_layout Standard
14983 \begin_inset Float table
14988 \begin_layout Standard
14989 \begin_inset Caption
14991 \begin_layout Standard
14992 \begin_inset LatexCommand label
14993 name "tab:Several-table-cell"
14997 Several table cell alignments.
15005 \begin_layout Standard
15007 \begin_inset Tabular
15008 <lyxtabular version="3" rows="4" columns="6">
15010 <column alignment="right" valignment="top" width="0">
15011 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l|">
15012 <column alignment="right" valignment="top" width="0">
15013 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l|">
15014 <column alignment="right" valignment="top" width="0">
15015 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15016 <row bottomline="true">
15017 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15020 \begin_layout Standard
15026 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15029 \begin_layout Standard
15035 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15038 \begin_layout Standard
15044 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15047 \begin_layout Standard
15053 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15056 \begin_layout Standard
15062 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15065 \begin_layout Standard
15073 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15076 \begin_layout Standard
15082 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15085 \begin_layout Standard
15086 24\InsetSpace \thinspace{}
15092 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15095 \begin_layout Standard
15096 \begin_inset Formula $10\cdot$
15104 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15107 \begin_layout Standard
15108 \begin_inset Formula $10^{\mbox{-}17}$
15116 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15119 \begin_layout Standard
15120 \begin_inset Formula $\Gamma(t)\propto$
15128 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15131 \begin_layout Standard
15132 \begin_inset Formula $\:\Upsilon(t)$
15142 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15145 \begin_layout Standard
15151 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15154 \begin_layout Standard
15155 768\InsetSpace \thinspace{}
15161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15164 \begin_layout Standard
15165 \begin_inset Formula $5.78\cdot$
15173 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15176 \begin_layout Standard
15177 \begin_inset Formula $10^{7}$
15185 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15188 \begin_layout Standard
15189 \begin_inset Formula $A\ne$
15197 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15200 \begin_layout Standard
15201 \begin_inset Formula $\: B_{\mathrm{red}}$
15211 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15214 \begin_layout Standard
15220 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15223 \begin_layout Standard
15224 6\InsetSpace \thinspace{}
15230 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15233 \begin_layout Standard
15235 \begin_inset Formula $33.5\cdot$
15243 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15246 \begin_layout Standard
15247 \begin_inset Formula $10^{4}$
15255 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15258 \begin_layout Standard
15259 \begin_inset Formula $\sin(\alpha)\ge$
15267 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15270 \begin_layout Standard
15271 \begin_inset Formula $\:\sin(\beta)$
15292 \begin_layout Standard
15293 \begin_inset VSpace bigskip
15296 There is also the LaTeX-package
15301 \begin_inset LatexCommand index
15302 name "LaTeX-packages ! dcolumn"
15306 that provides table cell alignments.
15307 But this unfortunately treats the cell entries as math and doesn't allow
15308 formulas in table cells: The first column of Table\InsetSpace ~
15310 \begin_inset LatexCommand ref
15311 reference "tab:Several-table-cell"
15319 like the first column in Table\InsetSpace ~
15321 \begin_inset LatexCommand ref
15322 reference "tab:Alignments-when"
15326 and only with some tricks like the expected.
15327 The alignment of the second and third column of Table\InsetSpace ~
15329 \begin_inset LatexCommand ref
15330 reference "tab:Several-table-cell"
15334 is not possible with
15341 \begin_layout Standard
15342 \begin_inset Float table
15348 \begin_layout Standard
15349 \begin_inset Caption
15351 \begin_layout Standard
15352 \begin_inset LatexCommand label
15353 name "tab:Alignments-when"
15357 Alignments when LaTeX-package dcolumn is used.
15358 For all column alignments tricks have to be used to get the output.
15366 \begin_layout Standard
15368 \begin_inset Tabular
15369 <lyxtabular version="3" rows="4" columns="3">
15371 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{-1}|">
15372 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{4.9}|">
15373 <column alignment="center" valignment="top" rightline="true" width="0" special="D{~}{\,}{9.7}">
15374 <row bottomline="true">
15375 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15378 \begin_layout Standard
15384 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15387 \begin_layout Standard
15393 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15396 \begin_layout Standard
15404 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15407 \begin_layout Standard
15408 12x24\InsetSpace \thinspace{}
15414 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15417 \begin_layout Standard
15418 12x24\InsetSpace \thinspace{}
15420 \begin_inset Formula $\mbox{bottles}$
15428 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15431 \begin_layout Standard
15436 \begin_layout Standard
15446 \begin_inset Formula $\mbox{bottles}$
15456 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15459 \begin_layout Standard
15460 1024x768\InsetSpace \thinspace{}
15466 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15469 \begin_layout Standard
15470 1024x768\InsetSpace \thinspace{}
15472 \begin_inset Formula $\mbox{Pixels}$
15480 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15483 \begin_layout Standard
15488 \begin_layout Standard
15498 \begin_inset Formula $\mbox{Pixels}$
15508 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15511 \begin_layout Standard
15512 32x6\InsetSpace \thinspace{}
15518 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15521 \begin_layout Standard
15522 32x6\InsetSpace \thinspace{}
15524 \begin_inset Formula $\mbox{cm}$
15532 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15535 \begin_layout Standard
15540 \begin_layout Standard
15550 \begin_inset Formula $\mbox{cm}$
15571 \begin_layout Subsection
15572 Customized Cell/Column Format
15573 \begin_inset LatexCommand label
15574 name "sub:Customized-Format"
15579 \begin_inset LatexCommand index
15580 name "Table Customization ! Cell/Column Format"
15587 \begin_layout Standard
15588 Calculating the needed width for spanned columns like in section\InsetSpace ~
15590 \begin_inset LatexCommand ref
15591 reference "sub:Multicolumn-Calculations"
15595 is very annoying if you have several tables with multicolumn cells.
15596 To make life easier, you can define a cell/column format in the preamble,
15597 so that it can be used in all tables of the document.
15598 The format is defined with the command
15601 \begin_layout Standard
15606 newcolumntype{name of format}[number of arguments]{commands}
15609 \begin_layout Standard
15610 The format name may only consist of one letter.
15635 are predefined and cannot be used.
15636 But all letters are allowed as capitals.
15639 \begin_layout Standard
15640 \begin_inset VSpace medskip
15646 \begin_layout Standard
15647 For vertically and horizontally centered multicolumn cells with a fixed
15648 width you can define the cell format
15651 \begin_layout Standard
15656 newcolumntype{M}[1]{>{
15663 \begin_layout Standard
15670 avoids the problem of hyphenating the first word, as described in section\InsetSpace ~
15672 \begin_inset LatexCommand ref
15673 reference "sub:Multiple-Lines-in"
15678 Now you can simply enter
15681 \begin_layout Standard
15687 \begin_layout Standard
15688 as LaTeX-argument in the table dialog to create a multicolumn.
15691 \begin_layout Standard
15692 \begin_inset VSpace bigskip
15698 \begin_layout Standard
15699 For cells spanned by a multicolumn cell, you can define the format
15702 \begin_layout Standard
15707 newcolumntype{S}[2]{>{
15717 \begin_layout Standard
15728 newcolumntype{S}[2]
15732 \begin_layout Standard
15743 arrayrulewidth)*(1-#2))/#2}}
15746 \begin_layout Standard
15747 This format uses equation
15748 \begin_inset LatexCommand eqref
15753 to calculate the needed width so that each spanned cell has the same width.
15756 \begin_layout Standard
15760 \begin_layout Standard
15763 |S{width of multicolumn cell}{number of spanned columns}
15766 \begin_layout Standard
15767 as LaTeX-argument of the column.
15770 \begin_layout Standard
15771 \begin_inset VSpace bigskip
15777 \begin_layout Standard
15778 For colored columns, you can define
15781 \begin_layout Standard
15786 newcolumntype{K}[1]{>{
15793 \begin_layout Standard
15795 \begin_inset Quotes eld
15799 \begin_inset Quotes erd
15802 at the end creates a column with a flexible width whose text is horizontally
15807 \begin_layout Standard
15813 \begin_layout Standard
15817 \begin_layout Standard
15818 \begin_inset VSpace bigskip
15824 \begin_layout Standard
15825 To create Table\InsetSpace ~
15827 \begin_inset LatexCommand ref
15828 reference "tab:Table-using-user-defined"
15832 use the LaTeX-arguments
15835 \begin_layout Standard
15841 \begin_layout Standard
15842 for the first column and the multicolumn,
15845 \begin_layout Standard
15851 \begin_layout Standard
15852 for the the last column, and
15855 \begin_layout Standard
15861 \begin_layout Standard
15862 for the cells in the second column.
15865 \begin_layout Standard
15866 \begin_inset Float table
15872 \begin_layout Standard
15873 \begin_inset Caption
15875 \begin_layout Standard
15876 \begin_inset LatexCommand label
15877 name "tab:Table-using-user-defined"
15881 Table using user-defined table formats
15889 \begin_layout Standard
15891 \begin_inset Tabular
15892 <lyxtabular version="3" rows="3" columns="4">
15894 <column alignment="center" valignment="middle" leftline="true" width="2.5cm" special="|M{2.5cm}">
15895 <column alignment="center" valignment="middle" leftline="true" width="0" special="|S{2.5cm}{2}">
15896 <column alignment="center" valignment="middle" leftline="true" width="0">
15897 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0" special="|K{red}|">
15898 <row topline="true">
15899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15902 \begin_layout Standard
15903 verylongtablecellword
15908 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none" special="M{2.5cm}|">
15911 \begin_layout Standard
15912 multiple lines multicolumn
15917 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15920 \begin_layout Standard
15926 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15929 \begin_layout Standard
15936 <row topline="true">
15937 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15940 \begin_layout Standard
15946 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15949 \begin_layout Standard
15955 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15958 \begin_layout Standard
15964 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15967 \begin_layout Standard
15974 <row topline="true" bottomline="true">
15975 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15978 \begin_layout Standard
15984 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15987 \begin_layout Standard
15993 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15996 \begin_layout Standard
16002 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16005 \begin_layout Standard
16024 \begin_layout Subsection
16026 \begin_inset LatexCommand label
16027 name "sub:Line-Thickness"
16032 \begin_inset LatexCommand index
16033 name "Table Customization ! Line Thickness"
16040 \begin_layout Standard
16041 The line thickness for all lines in a table can be adjusted with the length
16049 To set for example a line thickness of 1.5\InsetSpace \thinspace{}
16050 pt, like in Table\InsetSpace ~
16052 \begin_inset LatexCommand ref
16053 reference "tab:Table-with-1.5"
16057 , insert the command
16060 \begin_layout Standard
16067 arrayrulewidth}{1.5pt}
16070 \begin_layout Standard
16071 in ERT before the table or table float.
16072 The changed thickness is valid for all following tables.
16073 To use the default value again, set
16079 to 0.4\InsetSpace \thinspace{}
16080 pt in ERT behind the table or table float.
16083 \begin_layout Standard
16087 \begin_layout Standard
16093 arrayrulewidth}{1.5pt}
16099 \begin_inset Float table
16104 \begin_layout Standard
16105 \begin_inset Caption
16107 \begin_layout Standard
16108 \begin_inset LatexCommand label
16109 name "tab:Table-with-1.5"
16113 Table with 1.5\InsetSpace \thinspace{}
16122 \begin_layout Standard
16124 \begin_inset Tabular
16125 <lyxtabular version="3" rows="3" columns="3">
16127 <column alignment="center" valignment="top" leftline="true" width="0">
16128 <column alignment="center" valignment="top" leftline="true" width="0">
16129 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16130 <row topline="true">
16131 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16134 \begin_layout Standard
16140 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16143 \begin_layout Standard
16149 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16152 \begin_layout Standard
16159 <row topline="true">
16160 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16163 \begin_layout Standard
16169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16172 \begin_layout Standard
16178 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16181 \begin_layout Standard
16188 <row topline="true" bottomline="true">
16189 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16192 \begin_layout Standard
16198 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16201 \begin_layout Standard
16207 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16210 \begin_layout Standard
16230 \begin_layout Standard
16236 arrayrulewidth}{0.4pt}
16244 \begin_layout Standard
16245 \begin_inset VSpace bigskip
16248 To set the line thickness to 1.5\InsetSpace \thinspace{}
16249 pt only for horizontal lines, like in Table\InsetSpace ~
16251 \begin_inset LatexCommand ref
16252 reference "tab:Table-with-horizontal"
16256 , insert these commands in ERT before the table or table float:
16259 \begin_layout Standard
16282 arrayrulewidth 1.5pt}
16292 arrayrulewidth 0.4pt}}
16295 \begin_layout Standard
16296 To return to the default line thickness, insert this command in ERT behind
16297 the table or table float:
16300 \begin_layout Standard
16312 \begin_layout Standard
16316 \begin_layout Standard
16327 \begin_layout Standard
16336 \begin_layout Standard
16344 arrayrulewidth 1.5pt}
16347 \begin_layout Standard
16357 arrayrulewidth 0.4pt}}
16363 \begin_inset Float table
16368 \begin_layout Standard
16369 \begin_inset Caption
16371 \begin_layout Standard
16372 \begin_inset LatexCommand label
16373 name "tab:Table-with-horizontal"
16377 Table with 1.5\InsetSpace \thinspace{}
16378 pt thick horizontal lines
16386 \begin_layout Standard
16388 \begin_inset Tabular
16389 <lyxtabular version="3" rows="3" columns="3">
16391 <column alignment="center" valignment="top" leftline="true" width="0">
16392 <column alignment="center" valignment="top" leftline="true" width="0">
16393 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16394 <row topline="true">
16395 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16398 \begin_layout Standard
16404 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16407 \begin_layout Standard
16413 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16416 \begin_layout Standard
16423 <row topline="true">
16424 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16427 \begin_layout Standard
16433 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16436 \begin_layout Standard
16442 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16445 \begin_layout Standard
16452 <row topline="true" bottomline="true">
16453 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16456 \begin_layout Standard
16462 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16465 \begin_layout Standard
16471 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16474 \begin_layout Standard
16494 \begin_layout Standard
16510 \begin_layout Standard
16511 \begin_inset VSpace bigskip
16514 To set the line thickness to 1.5\InsetSpace \thinspace{}
16515 pt only for vertical lines, create the following
16516 column format in the document preamble, according to the description in
16517 section\InsetSpace ~
16519 \begin_inset LatexCommand ref
16520 reference "sub:Customized-Format"
16527 \begin_layout Standard
16532 newcolumntype{V}{!{
16534 vrule width 1.5pt}}
16537 \begin_layout Standard
16538 For Table\InsetSpace ~
16540 \begin_inset LatexCommand ref
16541 reference "tab:Table-with-vertical"
16548 \begin_layout Standard
16554 \begin_layout Standard
16555 was used for the last column and
16558 \begin_layout Standard
16564 \begin_layout Standard
16565 for the other columns.
16568 \begin_layout Standard
16569 \begin_inset Float table
16574 \begin_layout Standard
16575 \begin_inset Caption
16577 \begin_layout Standard
16578 \begin_inset LatexCommand label
16579 name "tab:Table-with-vertical"
16583 Table with 1.5\InsetSpace \thinspace{}
16584 pt thick vertical lines
16592 \begin_layout Standard
16594 \begin_inset Tabular
16595 <lyxtabular version="3" rows="3" columns="3">
16597 <column alignment="center" valignment="top" leftline="true" width="0" special="Vc">
16598 <column alignment="center" valignment="top" leftline="true" width="0" special="Vc">
16599 <column alignment="center" valignment="top" leftline="true" width="0" special="VcV">
16600 <row topline="true">
16601 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16604 \begin_layout Standard
16610 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16613 \begin_layout Standard
16619 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16622 \begin_layout Standard
16629 <row topline="true">
16630 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16633 \begin_layout Standard
16639 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16642 \begin_layout Standard
16648 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16651 \begin_layout Standard
16658 <row topline="true" bottomline="true">
16659 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16662 \begin_layout Standard
16668 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16671 \begin_layout Standard
16677 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16680 \begin_layout Standard
16699 \begin_layout Subsection
16701 \begin_inset LatexCommand index
16702 name "Table Customization ! Dashed Lines"
16709 \begin_layout Standard
16713 \begin_layout Standard
16723 \begin_inset Note Note
16726 \begin_layout Standard
16727 The following section will only be displayed when you have the LaTeX-package
16740 \begin_layout Standard
16741 \begin_inset Float table
16747 \begin_layout Standard
16748 \begin_inset Caption
16750 \begin_layout Standard
16751 \begin_inset LatexCommand label
16752 name "tab:Table-with-dashed"
16756 Table with dashed lines
16764 \begin_layout Standard
16766 \begin_inset Tabular
16767 <lyxtabular version="3" rows="5" columns="5">
16769 <column alignment="center" valignment="top" leftline="true" width="0">
16770 <column alignment="center" valignment="top" leftline="true" width="0">
16771 <column alignment="center" valignment="top" width="0" special=":c">
16772 <column alignment="center" valignment="top" leftline="true" width="0">
16773 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16774 <row topline="true" bottomline="true">
16775 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16778 \begin_layout Standard
16784 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16787 \begin_layout Standard
16793 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16796 \begin_layout Standard
16802 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16805 \begin_layout Standard
16811 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16814 \begin_layout Standard
16821 <row topline="true">
16822 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16825 \begin_layout Standard
16831 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16834 \begin_layout Standard
16840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16843 \begin_layout Standard
16849 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16852 \begin_layout Standard
16858 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16861 \begin_layout Standard
16869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16872 \begin_layout Standard
16876 \begin_layout Standard
16890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16893 \begin_layout Standard
16899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16902 \begin_layout Standard
16908 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16911 \begin_layout Standard
16917 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16920 \begin_layout Standard
16927 <row topline="true">
16928 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16931 \begin_layout Standard
16935 \begin_layout Standard
16949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16952 \begin_layout Standard
16958 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="c:">
16961 \begin_layout Standard
16967 <cell multicolumn="1" alignment="center" valignment="top" rightline="true" usebox="none" special="c:">
16970 \begin_layout Standard
16976 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16979 \begin_layout Standard
16986 <row topline="true" bottomline="true">
16987 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16990 \begin_layout Standard
16996 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16999 \begin_layout Standard
17005 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17008 \begin_layout Standard
17014 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17017 \begin_layout Standard
17023 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17026 \begin_layout Standard
17045 \begin_layout Standard
17046 LyX doesn't natively support dashed lines, so you have to use ERT.
17047 As prerequisite the LaTeX-package
17052 \begin_inset LatexCommand index
17053 name "LaTeX-packages ! arydshln"
17057 must be loaded in the document preamble with the command
17060 \begin_layout Standard
17065 usepackage{arydshln}
17068 \begin_layout Standard
17069 To make a vertical line dashed, enter the colon
17070 \begin_inset Quotes eld
17074 \begin_inset Quotes erd
17077 together with the character for the horizontal alignment as LaTeX-argument
17078 in the table cell dialog.
17081 \begin_layout Standard
17082 For a horizontal dashed line add the command
17085 \begin_layout Standard
17093 \begin_layout Standard
17094 in ERT as first element of the first cell in the table row.
17097 \begin_layout Standard
17098 For dashed multicolumn lines use the command
17101 \begin_layout Standard
17106 cdashline{line number
17111 \begin_layout Standard
17112 in ERT as first element of the first cell in the table row.
17113 If you have for example a multicolumn spanning over columns 2 to 4 and
17114 you want to have a dashed line above, add the command
17117 \begin_layout Standard
17125 \begin_layout Standard
17126 as first element of the first cell in the row of the multicolumn.
17129 \begin_layout Standard
17130 \begin_inset VSpace bigskip
17136 \begin_layout Standard
17139 \begin_inset LatexCommand ref
17140 reference "tab:Table-with-dashed"
17145 \begin_inset Quotes eld
17153 \begin_inset Quotes erd
17156 as LaTeX-argument of the third column.
17163 was inserted to the first cell of the third row and the the ERT command
17172 was inserted to the first cell of the fourth row.
17175 \begin_layout Standard
17176 \begin_inset Note Greyedout
17179 \begin_layout Standard
17184 The used LaTeX-package
17188 is apparently not compatible with the LaTeX-package
17193 \begin_inset LatexCommand index
17194 name "LaTeX-packages ! colortbl"
17198 that is used for colored tables in section\InsetSpace ~
17200 \begin_inset LatexCommand ref
17201 reference "sec:Colored-Tables"
17206 That means colored tables cannot have dashed lines.
17214 \begin_layout Standard
17218 \begin_layout Standard
17228 \begin_inset Note Note
17231 \begin_layout Standard
17232 The following will be displayed when the LaTeX-package
17244 \begin_layout Standard
17245 You need to install the package
17249 to see the contents of this section in the output.
17252 \begin_layout Standard
17256 \begin_layout Standard
17268 \begin_layout Chapter
17270 \begin_inset LatexCommand index
17276 \begin_inset LatexCommand label
17284 \begin_layout Section
17286 \begin_inset LatexCommand label
17287 name "sec:FloatIntroduction"
17292 \begin_inset LatexCommand index
17293 name "Floats ! Introduction"
17300 \begin_layout Standard
17301 A float is a block of text associated with some sort of label, which doesn't
17302 have a fixed location.
17304 \begin_inset Quotes eld
17308 \begin_inset Quotes erd
17311 forward or backward a page or two, to wherever it fits best.
17318 Margin\InsetSpace ~
17321 are also floats, because they can float to the next page when there are
17322 too many notes at the page.
17325 \begin_layout Standard
17326 Floats allow a high quality layout.
17327 Images and tables can evenly be spread to the pages to avoid white space
17328 and pages without text.
17329 As the floating often destroys the context between the text and the image/table
17330 , every float can be referenced in the text.
17331 Floats are therefore numbered.
17332 Referencing is described in section\InsetSpace ~
17334 \begin_inset LatexCommand ref
17335 reference "sec:Referencing-Floats"
17342 \begin_layout Standard
17343 To insert a float, use the menu
17345 Insert\SpecialChar \menuseparator
17349 This inserts a box with a label in the
17357 \begin_layout Standard
17362 environment is described in LyX's
17371 into your document.
17372 Every label ends with the character
17373 \begin_inset Quotes eld
17377 \begin_inset Quotes erd
17380 as placeholder for the float number in the output.
17381 The label will automatically be translated to the document language in
17383 Behind the label you can insert the caption text.
17384 The image or table is inserted above or below the caption in a separate
17385 paragraph within the float.
17386 More about the caption placement is described in section\InsetSpace ~
17388 \begin_inset LatexCommand ref
17389 reference "sec:Caption-Placement"
17394 To keep your LyX-document readable, you can open and close the float box
17395 by left-clicking on the box label.
17396 A closed float box looks like this:
17397 \begin_inset Graphics
17398 filename clipart/floatQt4.png
17403 -- a gray button with a red label.
17406 \begin_layout Standard
17407 It is recommended to insert floats as a separate paragraph to avoid possible
17408 LaTeX-errors that can occur when the surrounding text is specially formatted.
17411 \begin_layout Standard
17412 Existing figures or tables can be put into a float by marking them and then
17413 pressing the corresponding toolbar button for a new float.
17416 \begin_layout Section
17420 \begin_layout Standard
17421 Besides figure and table floats that are described in section\InsetSpace ~
17423 \begin_inset LatexCommand ref
17424 reference "sec:Figure-Floats"
17429 \begin_inset LatexCommand ref
17430 reference "sec:Table-Floats"
17434 , respectively, LyX offers the float types
17447 \begin_layout Subsection
17449 \begin_inset LatexCommand index
17450 name "Floats ! Algorithm Floats"
17457 \begin_layout Standard
17458 \begin_inset Float algorithm
17464 \begin_layout Standard
17465 \begin_inset Caption
17467 \begin_layout Standard
17468 \begin_inset LatexCommand label
17469 name "alg:Example-Algorithm-float"
17473 Example Algorithm float
17481 \begin_layout LyX-Code
17484 Sum:= Sum + A(I); /*senseless comment*/
17487 \begin_inset VSpace -4mm
17498 \begin_layout Standard
17499 This float type is inserted with the menu
17501 Insert\SpecialChar \menuseparator
17502 Floats\SpecialChar \menuseparator
17506 It is used for program codes and descriptions of algorithms.
17507 A possible environment for algorithms is the
17511 , described in LyX's
17516 Algorithm\InsetSpace ~
17518 \begin_inset LatexCommand ref
17519 reference "alg:Example-Algorithm-float"
17523 is an example of an algorithm float where -4\InsetSpace \thinspace{}
17524 mm vertical space was added
17525 at the end of the float to have the bottom rule exactly below the last
17529 \begin_layout Standard
17530 The float label is not automatically translated into the document language.
17531 If your document is not in English, you have to do this manually by adding
17532 the following line to the document preamble
17537 \begin_layout Standard
17542 floatname{algorithm}{your\InsetSpace ~
17546 \begin_layout Standard
17553 \begin_inset Quotes eld
17561 \begin_inset Quotes erd
17567 \begin_layout Description
17572 When the LaTeX-package
17577 \begin_inset LatexCommand index
17578 name "LaTeX-packages ! hyperref"
17582 is used to link cross-references to floats in the PDF-output, it must be
17583 loaded in the document preamble before the definition of floats to be able
17584 to reference floats.
17585 As LyX sets the float definition for algorithm floats automatically before
17586 the user editable part of the document preamble, you need to insert the
17587 following preamble lines
17591 the loading command of
17598 \begin_inset VSpace defskip
17605 newfloat{Xalgorithm}{tbp}{loa}
17609 floatname{Xalgorithm}{your\InsetSpace ~
17622 renewenvironment{algorithm}[1][tbp]
17628 \begin_layout Standard
17639 begin{Xalgorithm}[#1]}{
17642 \begin_inset VSpace defskip
17655 \begin_inset Quotes eld
17663 \begin_inset Quotes erd
17669 \begin_layout Standard
17670 Algorithm floats are not by default numbered in the scheme
17671 \begin_inset Quotes eld
17675 \begin_inset Quotes erd
17678 like it is the case for table and figure floats in many document-classes.
17679 To number algorithm floats in the same scheme, add this command to your
17683 \begin_layout Standard
17688 numberwithin{algorithm}{chapter}
17691 \begin_layout Standard
17692 If you use the LaTeX-package
17696 , add this line instead
17704 (the commands from above) to the preamble:
17707 \begin_layout Standard
17712 numberwithin{Xalgorithm}{chapter}
17715 \begin_layout Standard
17716 To be able to use the command
17727 in the document settings the option
17737 \begin_layout Subsection
17739 \begin_inset LatexCommand index
17740 name "Floats ! Text Wrap Floats"
17745 \begin_inset LatexCommand label
17746 name "sub:floatflt-wrap-float"
17753 \begin_layout Standard
17754 This float type is used if you want to
17755 \begin_inset Quotes eld
17759 \begin_inset Quotes erd
17762 text around a figure so that it only occupies some fraction of the column
17764 It can be inserted using the menu
17765 \begin_inset Wrap figure
17770 \begin_layout Standard
17771 \begin_inset Graphics
17772 filename clipart/mobius.eps
17775 rotateOrigin center
17782 \begin_layout Standard
17783 \begin_inset Caption
17785 \begin_layout Standard
17786 \begin_inset LatexCommand label
17787 name "fig:This-is-a"
17791 This is a wrapped figure, and this is the brilliant caption that describes
17793 \begin_inset VSpace medskip
17808 Insert\SpecialChar \menuseparator
17809 Floats\SpecialChar \menuseparator
17814 if the LaTeX-package
17819 \begin_inset LatexCommand index
17820 name "LaTeX-packages ! floatflt"
17828 \begin_layout Standard
17829 Installing a LaTeX-package is explained it in the
17839 The width and placement of the float is adjusted by right-clicking on the
17841 Figure\InsetSpace ~
17843 \begin_inset LatexCommand ref
17844 reference "fig:This-is-a"
17848 is an example text wrap float with a width of 40
17849 \begin_inset Formula $\,$
17856 \begin_layout Standard
17857 Available units are explained in
17858 \begin_inset LatexCommand ref
17859 reference "cha:Units-available-in"
17868 Some space was added under the caption to separate it better from the surroundi
17872 \begin_layout Standard
17877 also supports table wrap floats, but they are not yet supported by LyX.
17878 If you need this, read the documentation of
17883 \begin_inset LatexCommand cite
17891 \begin_layout Standard
17892 \begin_inset Note Greyedout
17895 \begin_layout Standard
17901 wrap float floats are fragile! E.\InsetSpace \thinspace{}
17903 having a figure too close to the bottom
17904 of the page can mess things up in the way that the float doesn't appear
17905 in the output or that it is placed over some other text.
17909 \begin_layout Standard
17910 The better solution is to use the LaTeX-package
17912 wrapf\SpecialChar \textcompwordmark{}
17916 \begin_inset LatexCommand index
17917 name "LaTeX-packages ! wrapfig\\vspace{4mm}"
17923 floatf\SpecialChar \textcompwordmark{}
17926 , but it is currently not supported by LyX.
17939 \begin_layout Standard
17943 \begin_layout Itemize
17944 Wrap floats should not be placed in paragraphs that run over a page break.
17945 That means that wrap floats should better be inserted to the exact place
17946 when the document is nearly ready and you are able to estimate where page
17947 breaks will appear.
17950 \begin_layout Itemize
17951 Wrap floats should either be placed in an own paragraph before the paragraph
17952 where they should wrap into or within a paragraph.
17955 \begin_layout Itemize
17956 Wrap floats in consecutive paragraphs may cause troubles, so assure that
17957 there is a text paragraph between them as separator.
17960 \begin_layout Itemize
17961 Wrap floats are not allowed in section headings or tables.
17964 \begin_layout Section
17966 \begin_inset LatexCommand label
17967 name "sec:Referencing-Floats"
17972 \begin_inset LatexCommand index
17973 name "Floats ! References"
17978 \begin_inset LatexCommand index
17986 \begin_layout Standard
17987 To reference a float, insert a label into its caption using the menu
17989 Insert\SpecialChar \menuseparator
17992 or the toolbar button
17993 \begin_inset Graphics
17994 filename ../images/label-insert.xpm
18000 A grey label box like this one:
18001 \begin_inset Graphics
18002 filename clipart/labelQt4.png
18007 will be inserted and the label window pops up asking for the label text.
18008 LyX offers as text the first words of the caption with a prefix.
18009 The prefix depends on the float type, e.\InsetSpace \thinspace{}
18011 for figure floats the prefix will
18019 \begin_layout Standard
18020 The label is used as anchor and name for the reference.
18021 You can refer to the label using the menu
18023 Insert\SpecialChar \menuseparator
18026 or the toolbar button
18027 \begin_inset Graphics
18028 filename ../images/dialog-show-new-inset_ref.xpm
18034 A grey cross-reference box like this one:
18035 \begin_inset Graphics
18036 filename clipart/referenceQt4.png
18041 will be inserted and the cross-reference window appear showing all labels
18043 If you have multiple LyX-documents opened, choose the one you are working
18044 on from the drop-list at the top of the dialog.
18045 You can now sort the labels alphabetically and then choose one.
18046 At the position of the cross-reference box the float number will appear
18050 \begin_layout Standard
18051 It is recommended to use a protected space between the cross-reference name
18052 and its number to avoid line breaks between them.
18053 If a cross-reference refers to a non-existing label, you will see two question
18054 marks in the output instead of the reference.
18057 \begin_layout Standard
18058 You can change labels at any time by clicking on the label box.
18059 References to the changed label will automatically change its link to the
18060 new label text, so that you don't need to take care about this.
18063 \begin_layout Standard
18070 in the cross-reference window sets the cursor before the referred label.
18071 The button text changes then to Go\InsetSpace ~
18072 Back and you can use it to set the cursor
18073 back to the cross-reference.
18074 Right-clicking on a cross-reference box also sets the cursor before the
18075 referenced label but without a possibility to go back.
18078 \begin_layout Subsection
18079 Cross-Reference Formats
18080 \begin_inset LatexCommand label
18081 name "sub:Cross-Reference-Formats"
18086 \begin_inset LatexCommand index
18087 name "References ! Formats"
18094 \begin_layout Standard
18095 There are six varieties of cross-references:
18098 \begin_layout Description
18099 <reference>: prints the float number, this is the default:
18100 \begin_inset LatexCommand ref
18101 reference "fig:Two-distorted-images"
18108 \begin_layout Description
18109 (<reference>): prints the float number within two parentheses, this is the
18110 style normally used to reference formulas, especially when the reference
18112 \begin_inset Quotes eld
18116 \begin_inset Quotes erd
18120 \begin_inset LatexCommand eqref
18128 \begin_layout Description
18129 <page>: prints the page number: Page\InsetSpace ~
18131 \begin_inset LatexCommand pageref
18132 reference "fig:Two-distorted-images"
18139 \begin_layout Description
18142 <page>: prints the text "on page" and the page number:
18143 \begin_inset LatexCommand vpageref
18144 reference "fig:Two-distorted-images"
18151 \begin_layout Description
18152 <reference>\InsetSpace ~
18155 <page>: prints the float number, the text "on page", and
18157 \begin_inset LatexCommand vref
18158 reference "fig:Two-distorted-images"
18165 \begin_layout Description
18166 Formatted\InsetSpace ~
18167 reference: prints a self defined cross-reference format.
18169 \begin_inset Note Greyedout
18172 \begin_layout Standard
18177 This feature is only available when you have the LaTeX-package
18189 \begin_layout Standard
18190 Note that the style <page> won't print the page number if the label is on
18191 the previous, the same, or the next page.
18192 You will e.\InsetSpace \thinspace{}
18195 \begin_inset Quotes eld
18203 \begin_inset Quotes erd
18209 \begin_layout Standard
18210 The number and current page of the referred document part in the output,
18211 is automatically calculated by LaTeX.
18212 The varieties are adjusted in the field
18216 of the cross-reference window, that appear when you click on the cross-referenc
18220 \begin_layout Subsection
18221 Referencing Subfigures
18222 \begin_inset LatexCommand label
18223 name "sub:Referencing-Subfigures"
18228 \begin_inset LatexCommand index
18229 name "References ! to Subfigures"
18236 \begin_layout Standard
18237 Currently referencing subfigures is not supported by LyX, so you have to
18238 use LaTeX-commands.
18239 The label is the created with the command
18242 \begin_layout Standard
18247 label{fig:YourLabelName}
18250 \begin_layout Standard
18251 that is directly inserted into the subfigure caption field.
18252 To reference the label add this command in ERT
18255 \begin_layout Standard
18260 ref{fig:YourLabelName}
18263 \begin_layout Standard
18264 to the position in your document where the reference should be placed.
18265 Here is a reference to a subfigure: Subfigure\InsetSpace ~
18270 \begin_layout Standard
18282 \begin_layout Subsection
18283 Automatic Reference Naming
18284 \begin_inset LatexCommand index
18285 name "References ! Automatic Reference Naming"
18292 \begin_layout Standard
18297 provides a very useful feature that cross-references automatically include
18298 the name of the referenced floats (or text parts like sections).
18299 You save to write e.\InsetSpace \thinspace{}
18302 \begin_inset Quotes eld
18306 \begin_inset Quotes erd
18309 before every reference box.
18310 To get this automatic reference naming, you have to load the LaTeX-package
18316 \begin_inset LatexCommand index
18317 name "LaTeX-packages ! hyperref"
18321 in the document preamble with
18324 \begin_layout Standard
18329 usepackage[pdfborder={0 0 0}]{hyperref}
18344 \begin_layout Standard
18349 is used to link cross-references in the DVI- and PDF-output, this means
18350 that the reader of your document will be able to click on a table of content
18351 (TOC) entry or on a reference and he will be shown the referenced document
18357 also creates PDF-bookmarks for every section of your document to make it
18358 easier for readers to navigate through the document.
18359 This is also used in this document but when you have a look in the document
18360 preamble you will find various options in the load command of
18365 To learn more about the
18369 package, we refer to its documentation
18370 \begin_inset LatexCommand cite
18378 \begin_layout Standard
18379 \begin_inset Note Greyedout
18382 \begin_layout Standard
18387 Automatic reference naming cannot be used when you use cross-references
18390 Formatted\InsetSpace ~
18393 style, described in section\InsetSpace ~
18395 \begin_inset LatexCommand ref
18396 reference "sub:Cross-Reference-Formats"
18408 \begin_layout Subsection
18410 \begin_inset LatexCommand label
18411 name "sub:Reference-Position"
18416 \begin_inset LatexCommand index
18417 name "References ! Reference Position"
18424 \begin_layout Standard
18430 \begin_inset LatexCommand index
18431 name "LaTeX-packages ! hyperref"
18435 to link cross-references in the output, you will see that clicking on an
18436 image float reference jumps to the image label.
18437 The caption will be the first text part on the screen, so that you cannot
18438 see the image without scrolling.
18439 This is because the reference link anchor is placed at the position of
18441 With the use of the package
18446 \begin_inset LatexCommand index
18447 name "LaTeX-packages ! hypcap"
18451 , which is part of the LaTeX-package
18456 \begin_inset LatexCommand index
18457 name "LaTeX-packages ! oberdiek"
18461 , the link anchor is placed at the beginning of a float.
18462 To use this feature for figure floats, load
18466 in the document preamble with the line
18469 \begin_layout Standard
18474 usepackage[f\SpecialChar \textcompwordmark{}
18478 \begin_layout Standard
18483 for all floats but this isn't recommended for stability reasons.
18484 For more informations, have a look at
18489 \begin_inset LatexCommand cite
18497 \begin_layout Standard
18498 \begin_inset Note Greyedout
18501 \begin_layout Standard
18510 must be loaded after
18514 in the document preamble.
18522 \begin_layout Standard
18523 \begin_inset Note Greyedout
18526 \begin_layout Standard
18531 The set reference position has no effect for references to subfigures.
18539 \begin_layout Section
18541 \begin_inset LatexCommand label
18542 name "sec:Float-Placement"
18547 \begin_inset LatexCommand index
18548 name "Floats ! Placement"
18555 \begin_layout Standard
18556 Right-clicking on a float-box opens a dialog where you can alter the placement
18557 options that LaTeX uses for positioning the float.
18564 is only useful for two-column documents: If you select it, the float will
18565 span across both columns on the page instead of being confined to just
18570 Rotate\InsetSpace ~
18573 is used to rotate floats, see section
18574 \begin_inset LatexCommand ref
18575 reference "sec:Rotated-Floats"
18582 \begin_layout Standard
18583 You can use one ore more of the following options in the float dialog to
18584 set the placement for a particular float when you uncheck the option
18587 default\InsetSpace ~
18593 \begin_layout Description
18596 possible: try to place the float on the position where it is inserted
18599 \begin_layout Description
18602 page: try to place the float on the top of the current page
18605 \begin_layout Description
18606 Bottom\InsetSpace ~
18608 page: try to place the float on the bottom of the current page
18611 \begin_layout Description
18614 floats: try to place the float on an own page
18617 \begin_layout Standard
18618 The order of the above option is
18623 That means, if you use the default placement, LaTeX will first try out
18636 , and then the others.
18637 If you don't use the default, LaTeX will try only the checked options but
18639 If none of the 4 placements are possible the procedure is internally repeated
18640 but it is tried to put the float on the following page.
18643 \begin_layout Standard
18644 By default, each options has its own rules:
18647 \begin_layout Labeling
18648 \labelwidthstring 00.00.0000
18655 only floats occupying less than 70\InsetSpace \thinspace{}
18656 % of the page can be placed at the top
18666 \begin_layout Labeling
18667 \labelwidthstring 00.00.0000
18670 Bottom\InsetSpace ~
18674 : only floats occupying less than 30\InsetSpace \thinspace{}
18675 % of the page can be placed at the bottom
18686 \begin_layout Labeling
18687 \labelwidthstring 00.00.0000
18694 : only if more than 50\InsetSpace \thinspace{}
18695 % of the page are occupied by floats, several floats
18696 can be set together on a page.
18706 \begin_layout Standard
18707 If you don't like these rules, you can ignore them by using the additional
18710 Ignore\InsetSpace ~
18716 You can also redefine the rules with LaTeX-commands that are given in parenthese
18717 s behind the rules description above.
18718 To increase for example the often too small default of the bottom-rule
18719 to 50\InsetSpace \thinspace{}
18720 % of the page, add this line to your document preamble:
18723 \begin_layout Standard
18730 bottomfraction}{0.5}
18733 \begin_layout Standard
18734 Sometimes you might need, under all circumstances, a float to be placed
18735 exactly at the position where it is inserted.
18736 For this case you can use the option
18742 Use this option very rarely and only if the document is nearly ready to
18744 Because the float is then no longer able to
18745 \begin_inset Quotes eld
18749 \begin_inset Quotes erd
18752 when you change your document and this will often destroy the page layout.
18755 \begin_layout Standard
18756 There are no placement options for text wrap floats, because they are always
18757 surrounded by the text of a certain paragraph.
18758 \begin_inset VSpace bigskip
18764 \begin_layout Standard
18765 Sometimes you have the problem that a float is placed at the top of a page
18766 while its corresponding section starts at the middle of the page, so that
18767 the reader could think the float is part of the previous section.
18768 To avoid this the LaTeX-command
18772 suppressf\SpecialChar \textcompwordmark{}
18776 It suppresses a given float placement for the page where it is inserted
18777 and can therefore be used to avoid that floats could be set before a section
18779 To get this, add these commands to your document preamble:
18782 \begin_layout Standard
18799 suppressf\SpecialChar \textcompwordmark{}
18805 \begin_layout Standard
18806 You can define the same for all section headings, like chapters and subsections.
18807 This definition is not recommended to be used for small text parts like
18808 subsubsections because LaTeX may then have problems to find a suitable
18812 \begin_layout Standard
18813 \begin_inset VSpace bigskip
18816 In some cases it is required to have all figures/tables at the end of the
18818 For this purpose the LaTeX-package
18820 endf\SpecialChar \textcompwordmark{}
18824 \begin_inset LatexCommand index
18825 name "LaTeX-packages ! endfloat"
18830 It puts all figure and table floats at the end of the document into own
18832 At the original float position a text hint like
18833 \begin_inset Quotes eld
18838 [Figure\InsetSpace ~
18842 \begin_inset Quotes erd
18846 The endfloat-package is loaded in the preamble with the line
18849 \begin_layout Standard
18854 usepackage[options]{endf\SpecialChar \textcompwordmark{}
18858 \begin_layout Standard
18859 There are various package options to format the created figure/table sections.
18860 For more information we refer to the
18862 endf\SpecialChar \textcompwordmark{}
18866 \begin_inset LatexCommand cite
18874 \begin_inset Note Greyedout
18877 \begin_layout Standard
18880 Note: endf\SpecialChar \textcompwordmark{}
18883 doesn't provide an automatic translation for the text hint, you have to
18884 do this manually, see section\InsetSpace ~
18886 \begin_inset LatexCommand cite
18899 \begin_inset Note Greyedout
18902 \begin_layout Standard
18907 There is currently a bug in
18909 endf\SpecialChar \textcompwordmark{}
18912 when the caption contains a German
18913 \begin_inset Quotes eld
18917 \begin_inset Quotes erd
18921 Use in this case the command
18922 \begin_inset Quotes eld
18932 \begin_inset Quotes erd
18936 \begin_inset Quotes eld
18940 \begin_inset Quotes erd
18951 \begin_layout Standard
18952 \begin_inset VSpace bigskip
18955 For more details about float placements, have a look at LaTeX books,
18956 \begin_inset LatexCommand cite
18957 key "latexcompanion,latexguide,latexbook"
18964 \begin_layout Section
18966 \begin_inset LatexCommand label
18967 name "sec:Rotated-Floats"
18972 \begin_inset LatexCommand index
18973 name "Floats ! Rotating"
18980 \begin_layout Standard
18981 Especially for wide tables you might have floats rotated.
18982 To rotate a whole float including the caption, right-click on the float-box
18985 Rotate\InsetSpace ~
18991 \begin_layout Standard
18992 Rotated floats are always placed on its own page (or column, when you have
18993 a two-column document).
18994 They are normally rotated so that you can read them from the outside margin
18995 -- to the left on even pages, to the right on odd pages.
18998 \begin_layout Standard
18999 Referencing rotated floats is the same like for normal floats, the caption
19000 format is also the same: Table\InsetSpace ~
19002 \begin_inset LatexCommand ref
19003 reference "tab:Rotated-table"
19007 is an example of a rotated table float.
19010 \begin_layout Standard
19011 \begin_inset Note Greyedout
19014 \begin_layout Standard
19019 Not all DVI-viewers are able to display rotated floats.
19027 \begin_layout Standard
19028 \begin_inset Float table
19033 \begin_layout Standard
19034 \begin_inset Caption
19036 \begin_layout Standard
19037 \begin_inset LatexCommand label
19038 name "tab:Rotated-table"
19050 \begin_layout Standard
19052 \begin_inset Tabular
19053 <lyxtabular version="3" rows="1" columns="5">
19055 <column alignment="center" valignment="top" leftline="true" width="0">
19056 <column alignment="center" valignment="top" leftline="true" width="0">
19057 <column alignment="center" valignment="top" leftline="true" width="0">
19058 <column alignment="center" valignment="top" leftline="true" width="0">
19059 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19060 <row topline="true" bottomline="true">
19061 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19064 \begin_layout Standard
19070 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19073 \begin_layout Standard
19079 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19082 \begin_layout Standard
19088 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19091 \begin_layout Standard
19097 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19100 \begin_layout Standard
19119 \begin_layout Section
19121 \begin_inset LatexCommand index
19122 name "Caption ! Formatting"
19127 \begin_inset LatexCommand index
19128 name "Floats ! Caption Formatting"
19133 \begin_inset LatexCommand index
19134 name "LaTeX-packages ! caption"
19139 \begin_inset LatexCommand label
19140 name "sec:Caption-Formatting"
19147 \begin_layout Standard
19152 environment is the default paragraph environment for
19157 On the LyX screen captions appear as label, e.\InsetSpace \thinspace{}
19160 \begin_inset Quotes eld
19168 \begin_inset Quotes erd
19171 followed by the caption text.
19173 \begin_inset Quotes eld
19177 \begin_inset Quotes erd
19180 is substituted in the printed output by the actual reference number.
19181 By default the label and the number are in the same font as the caption
19182 text and a colon follows the number to divide then label from the text.
19183 This caption format is not suitable for all document formats.
19187 \begin_layout Standard
19188 To change the default caption format, load the LaTeX-package
19193 \begin_inset LatexCommand index
19194 name "LaTeX-packages ! caption"
19198 in the document preamble with this line:
19201 \begin_layout Standard
19206 usepackage[format definition]{caption}
19209 \begin_layout Standard
19210 To have for example the label and the number in sans-serif bold font and
19211 the table captions always above the table like in this document, use the
19215 \begin_layout Standard
19220 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
19223 \begin_layout Standard
19224 You can also define different caption formats for the different float types.
19225 In this case load the
19229 package without format specific options and define the different formats
19230 with the help of the command
19233 \begin_layout Standard
19238 captionsetup[float type]{format definition}
19241 \begin_layout Standard
19242 in the document preamble.
19243 For example the caption formats of Figure\InsetSpace ~
19245 \begin_inset LatexCommand ref
19246 reference "fig:This-is-an-fig"
19250 and Table\InsetSpace ~
19252 \begin_inset LatexCommand ref
19253 reference "tab:This-is-an-tab"
19257 can be created using these commands in the document preamble:
19260 \begin_layout Standard
19265 usepackage[tableposition=top]{caption}
19273 captionsetup[f\SpecialChar \textcompwordmark{}
19274 igure]{labelfont={tt}, textfont=it, indention=1cm,%
19280 \begin_layout Standard
19288 captionsetup[figure]
19299 captionsetup[table]{labelfont={bf,sf}}
19302 \begin_layout Standard
19303 \begin_inset Note Greyedout
19306 \begin_layout Standard
19315 has no effect when a
19320 \begin_inset LatexCommand index
19321 name "LaTeX-packages ! koma-script"
19325 document class is used.
19326 In this case the document class option
19338 \begin_layout Standard
19339 For more information about the package
19343 we refer to its documentation
19344 \begin_inset LatexCommand cite
19345 key "caption,caption-de"
19352 \begin_layout Standard
19353 To change the label name from e.g.
19355 \begin_inset Quotes eld
19359 \begin_inset Quotes erd
19363 \begin_inset Quotes eld
19367 \begin_inset Quotes erd
19370 use this preamble command:
19373 \begin_layout Standard
19380 fnum@figure}{Image~
19385 \begin_layout Standard
19392 inserts the figure number and
19395 \begin_inset Quotes eld
19401 \begin_inset Quotes erd
19404 creates a protected space.
19407 \begin_layout Standard
19408 \begin_inset VSpace bigskip
19416 \begin_inset LatexCommand index
19417 name "LaTeX-packages ! koma-script"
19423 article (koma-script)
19431 letter (koma-script)
19435 report (koma-script)
19437 \InsetSpace \thinspace{}
19438 ), you can alternatively to the
19446 's built-in command
19453 For example, to have the caption label in bold, add this command to your
19457 \begin_layout Standard
19462 setkomafont{captionlabel}{
19467 \begin_layout Standard
19468 For more information about
19479 \begin_inset LatexCommand cite
19480 key "koma-script,koma-script-de"
19487 \begin_layout Standard
19491 \begin_layout Standard
19495 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
19502 \begin_inset Note Note
19505 \begin_layout Standard
19506 The caption format is changed only for this example.
19514 \begin_layout Standard
19515 \begin_inset Float figure
19521 \begin_layout Standard
19523 \begin_inset Graphics
19524 filename clipart/mobius.eps
19533 \begin_layout Standard
19534 \begin_inset Caption
19536 \begin_layout Standard
19537 \begin_inset LatexCommand label
19538 name "fig:This-is-an-fig"
19542 This is an example figure caption that is longer than one line to show the
19543 different caption format.
19544 Here a self-defined caption format is used.
19557 \begin_layout Standard
19561 \begin_layout Standard
19565 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
19574 \begin_layout Standard
19575 \begin_inset Float table
19581 \begin_layout Standard
19582 \begin_inset Caption
19584 \begin_layout Standard
19585 \begin_inset LatexCommand label
19586 name "tab:This-is-an-tab"
19590 This is an example table caption that is longer than one line to show the
19591 different caption format.
19592 Here the standard caption format for tables in this document is used.
19600 \begin_layout Standard
19602 \begin_inset Tabular
19603 <lyxtabular version="3" rows="1" columns="5">
19605 <column alignment="center" valignment="top" leftline="true" width="0">
19606 <column alignment="center" valignment="top" leftline="true" width="0">
19607 <column alignment="center" valignment="top" leftline="true" width="0">
19608 <column alignment="center" valignment="top" leftline="true" width="0">
19609 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19610 <row topline="true" bottomline="true">
19611 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19614 \begin_layout Standard
19620 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19623 \begin_layout Standard
19629 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19632 \begin_layout Standard
19638 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19641 \begin_layout Standard
19647 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19650 \begin_layout Standard
19669 \begin_layout Section
19671 \begin_inset LatexCommand index
19672 name "Caption ! Placement"
19677 \begin_inset LatexCommand index
19678 name "Floats ! Caption Placement"
19683 \begin_inset LatexCommand label
19684 name "sec:Caption-Placement"
19691 \begin_layout Standard
19692 The common caption placement rule is:
19695 \begin_layout Description
19696 Figure: Caption is set below the figure
19699 \begin_layout Description
19700 Table: Caption is set above the table
19703 \begin_layout Standard
19704 Having the caption above the table is unfortunately not supported in LaTeX's
19706 That means if you are using the document classes
19722 there will be no space between the caption and the table.
19723 To insert the needed space, add the following option to the load command
19724 of the LaTeX-package
19728 in your document preamble
19732 \begin_layout Standard
19733 See section\InsetSpace ~
19735 \begin_inset LatexCommand ref
19736 reference "sec:Caption-Formatting"
19740 for more information of the package
19752 \begin_layout Standard
19758 \begin_layout Standard
19764 \begin_inset LatexCommand index
19765 name "LaTeX-packages ! koma-script"
19771 article (koma-script)
19779 letter (koma-script)
19783 report (koma-script)
19785 \InsetSpace \thinspace{}
19786 ), you can alternatively to the
19790 package set the document class option
19794 , or you can use the environment
19796 caption\InsetSpace ~
19806 \begin_layout Standard
19807 \begin_inset VSpace bigskip
19810 It is also possible to set the caption beside a figure or table.
19811 To get this the LaTeX-package
19816 \begin_inset LatexCommand index
19817 name "LaTeX-packages ! sidecap"
19821 has to be loaded in the document preamble with the line
19824 \begin_layout Standard
19829 usepackage[option]{sidecap}
19832 \begin_layout Standard
19833 If you set no option, the caption is placed on the side of the outer page
19834 margin -- to the right on odd pages, to the left on even pages.
19835 You can change the placement to inner margin with the option
19840 To force the placement always to the right or left, use the option
19851 \begin_layout Standard
19852 To place in LyX the caption of a float on the side, it is necessary to add
19853 these commands to the document preamble:
19856 \begin_layout Standard
19862 \begin_layout Standard
19875 \begin_layout Standard
19896 \begin_layout Standard
19917 \begin_layout Standard
19928 renewenvironment{table}{
19935 \begin_layout Standard
19948 \begin_layout Standard
19969 \begin_layout Standard
19987 \begin_layout Standard
20000 \begin_layout Standard
20015 f\SpecialChar \textcompwordmark{}
20022 \begin_layout Standard
20035 MyEndf\SpecialChar \textcompwordmark{}
20038 endf\SpecialChar \textcompwordmark{}
20045 \begin_layout Standard
20056 renewenvironment{f\SpecialChar \textcompwordmark{}
20059 begin{SCf\SpecialChar \textcompwordmark{}
20062 end{SCf\SpecialChar \textcompwordmark{}
20066 \begin_layout Standard
20079 \begin_layout Standard
20092 f\SpecialChar \textcompwordmark{}
20101 \begin_layout Standard
20114 endf\SpecialChar \textcompwordmark{}
20117 MyEndf\SpecialChar \textcompwordmark{}
20121 \begin_layout Standard
20127 \begin_layout Standard
20128 The commands allow you to redefine the floats so that the caption is set
20130 For figure floats use the command
20133 \begin_layout Standard
20141 \begin_layout Standard
20142 in ERT before the float.
20143 Behind the float insert the command
20146 \begin_layout Standard
20154 \begin_layout Standard
20155 in ERT to get back to the original float definition.
20158 \begin_layout Standard
20159 For table floats use the corresponding commands
20162 \begin_layout Standard
20176 \begin_layout Standard
20177 Figure\InsetSpace ~
20179 \begin_inset LatexCommand ref
20180 reference "fig:cap-beside-fig"
20184 and Table\InsetSpace ~
20186 \begin_inset LatexCommand ref
20187 reference "tab:cap-beside-tab"
20191 are examples where the caption is set beside.
20194 \begin_layout Standard
20195 You can see in the examples that the caption text appears at the top of
20196 the floats for table floats and at the bottom for figure floats.
20197 To change this, you can use the command
20200 \begin_layout Standard
20205 sidecaptionvpos{float type}{placement}
20208 \begin_layout Standard
20209 in the document preamble or in ERT before the float.
20210 The float type is either
20218 , the placement can be
20219 \begin_inset Quotes eld
20227 \begin_inset Quotes erd
20231 \begin_inset Quotes eld
20239 \begin_inset Quotes erd
20243 \begin_inset Quotes eld
20251 \begin_inset Quotes erd
20255 To have for example the caption of figure floats vertically centered, use
20259 \begin_layout Standard
20264 sidecaptionvpos{f\SpecialChar \textcompwordmark{}
20268 \begin_layout Standard
20269 This was used for Figure\InsetSpace ~
20271 \begin_inset LatexCommand ref
20272 reference "fig:cap-beside-fig-2"
20279 \begin_layout Standard
20280 \begin_inset VSpace defskip
20283 For more information about the package
20287 we refer to its documentation
20288 \begin_inset LatexCommand cite
20296 \begin_layout Standard
20297 \begin_inset Note Greyedout
20300 \begin_layout Standard
20310 \begin_inset LatexCommand index
20311 name "LaTeX-packages ! hypcap"
20315 , described in section\InsetSpace ~
20317 \begin_inset LatexCommand ref
20318 reference "sub:Reference-Position"
20322 , has no effect on floats with the caption set beside.
20330 \begin_layout Standard
20334 \begin_layout Standard
20346 \begin_layout Standard
20347 \begin_inset Float figure
20352 \begin_layout Standard
20353 \begin_inset Graphics
20354 filename clipart/escher-lsd.eps
20362 \begin_layout Standard
20363 \begin_inset Caption
20365 \begin_layout Standard
20366 \begin_inset LatexCommand label
20367 name "fig:cap-beside-fig"
20371 This is a caption beside a figure.
20384 \begin_layout Standard
20388 \begin_layout Standard
20400 \begin_layout Standard
20401 \begin_inset Float table
20406 \begin_layout Standard
20407 \begin_inset Caption
20409 \begin_layout Standard
20410 \begin_inset LatexCommand label
20411 name "tab:cap-beside-tab"
20415 This is a caption beside a table.
20423 \begin_layout Standard
20424 \begin_inset Tabular
20425 <lyxtabular version="3" rows="4" columns="5">
20427 <column alignment="center" valignment="top" leftline="true" width="0">
20428 <column alignment="center" valignment="top" leftline="true" width="0">
20429 <column alignment="center" valignment="top" leftline="true" width="0">
20430 <column alignment="center" valignment="top" leftline="true" width="0">
20431 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
20432 <row topline="true">
20433 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20436 \begin_layout Standard
20442 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20445 \begin_layout Standard
20451 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20454 \begin_layout Standard
20460 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20463 \begin_layout Standard
20469 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20472 \begin_layout Standard
20479 <row topline="true">
20480 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20483 \begin_layout Standard
20489 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20492 \begin_layout Standard
20498 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20501 \begin_layout Standard
20507 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20510 \begin_layout Standard
20516 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20519 \begin_layout Standard
20526 <row topline="true">
20527 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20530 \begin_layout Standard
20536 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20539 \begin_layout Standard
20545 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20548 \begin_layout Standard
20554 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20557 \begin_layout Standard
20563 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20566 \begin_layout Standard
20573 <row topline="true" bottomline="true">
20574 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20577 \begin_layout Standard
20583 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20586 \begin_layout Standard
20592 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20595 \begin_layout Standard
20601 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20604 \begin_layout Standard
20610 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20613 \begin_layout Standard
20632 \begin_layout Standard
20636 \begin_layout Standard
20648 \begin_layout Standard
20652 \begin_layout Standard
20656 sidecaptionvpos{figure}{c}
20662 \begin_inset Float figure
20667 \begin_layout Standard
20668 \begin_inset Graphics
20669 filename clipart/escher-lsd.eps
20677 \begin_layout Standard
20678 \begin_inset Caption
20680 \begin_layout Standard
20681 \begin_inset LatexCommand label
20682 name "fig:cap-beside-fig-2"
20686 This is a vertically centered caption beside a figure.
20699 \begin_layout Standard
20703 \begin_layout Standard
20715 \begin_layout Section
20717 \begin_inset LatexCommand label
20718 name "sec:Listings-of-Floats"
20723 \begin_inset LatexCommand index
20724 name "Floats ! Listings"
20731 \begin_layout Standard
20732 Similar to the the table of contents where the sections of the document
20733 are listed, there are listings for all float types, like the figures of
20735 You can insert them via the
20737 Insert\SpecialChar \menuseparator
20745 \begin_layout Standard
20746 The list entries are the float captions or its short title, the float number,
20747 and the page number where they appear in the document.
20750 \begin_layout Standard
20751 You can find the list of figures and tables at the end of this document.
20754 \begin_layout Chapter
20758 \begin_layout Section
20762 \begin_layout Standard
20775 \begin_layout Standard
20783 \begin_inset LatexCommand label
20784 name "sec:LyX-Notes"
20789 \begin_inset LatexCommand index
20790 name "Notes ! LyX Notes"
20795 \begin_inset Note Note
20798 \begin_layout Standard
20801 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
20802 are displayed wrongly in PDF-bookmarks.
20803 For more information about this, have a look at
20804 \begin_inset LatexCommand cite
20817 \begin_layout Standard
20818 Notes are inserted with the toolbar button
20819 \begin_inset Graphics
20820 filename ../images/note-insert.xpm
20827 Insert\SpecialChar \menuseparator
20831 There are three types of notes:
20834 \begin_layout Description
20836 Note This note type is for internal notes that won't appear in the output.
20837 Its note-box looks like this:
20842 \begin_inset Graphics
20843 filename clipart/LyXNoteImageQt4.png
20850 \begin_inset Note Note
20853 \begin_layout Standard
20854 This is text in a note box that doesn't appear in the output.
20862 \begin_layout Description
20863 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
20864 ent, when you export the document to LaTeX via the menu
20866 File\SpecialChar \menuseparator
20867 Export\SpecialChar \menuseparator
20868 LaTeX (pdflatex) / LaTeX (plain)
20871 Its note-box looks like this:
20876 \begin_inset Graphics
20877 filename clipart/CommentNoteImageQt4.png
20884 \begin_inset Note Comment
20887 \begin_layout Standard
20888 This is text in a note box that only appears as comment in LaTeX-files.
20896 \begin_layout Description
20897 Greyed\InsetSpace ~
20898 Out This note will appear in the output as grey text.
20899 Its note-box looks like this:
20904 \begin_inset Graphics
20905 filename clipart/GreyedOutNoteImageQt4.png
20917 \begin_layout Standard
20921 renewenvironment{lyxgreyedout}
20924 \begin_layout Standard
20928 textcolor[gray]{0.8}
20938 \begin_inset Note Greyedout
20941 \begin_layout Standard
20946 \begin_layout Standard
20947 This is an example footnote within a greyed out note.
20952 of a comment that appears in the output as grey text.
20961 \begin_layout Standard
20965 renewenvironment{lyxgreyedout}
20968 \begin_layout Standard
20982 \begin_inset Note Note
20985 \begin_layout Standard
20986 The greyed out note is here redefined to show it with the original LyX definitio
20987 n because greyed out notes are redefined in the preamble of this document,
20988 as described below, to have blue text.
20997 As you can see in the example, the first line of greyed out notes is a bit
20998 indented and greyed out notes can have footnotes.
21001 \begin_layout Description
21002 Framed This note will appear in the output as framed text.
21003 Its note-box looks like this:
21008 \begin_inset Graphics
21009 filename clipart/FramedNoteImageQt4.png
21016 \begin_inset Note Framed
21019 \begin_layout Standard
21020 This is text in a note box that appears framed in the output.
21025 In contrary to framed boxes
21029 \begin_layout Standard
21030 Framed boxes are described in section\InsetSpace ~
21032 \begin_inset LatexCommand ref
21033 reference "sec:Framed-Boxes"
21042 the frame uses always the whole text width and the note is set into its
21046 \begin_layout Description
21047 Shaded This note will appear in the output with red background color.
21048 Its note box looks like this:
21053 \begin_inset Graphics
21054 filename clipart/ShadedNoteImageQt4.png
21061 \begin_inset Note Shaded
21064 \begin_layout Standard
21065 This text in a note box appears in the output with red background.
21070 In contrary to colored boxes
21074 \begin_layout Standard
21075 Colored boxes are described in section\InsetSpace ~
21077 \begin_inset LatexCommand ref
21078 reference "sec:Colored-Boxes"
21087 the note uses always the whole text width and the note is set into its
21091 \begin_layout Standard
21092 \begin_inset VSpace bigskip
21095 When you use the toolbar button to insert notes, a
21101 You can switch between the three note types by right-clicking on the note-box.
21106 If you want to turn existing text into a note, mark it and click on the
21122 \begin_layout Standard
21123 \begin_inset VSpace bigskip
21126 You can change the text color of the greyed out notes in the preamble with
21127 the following command:
21130 \begin_layout Standard
21135 renewenvironment{lyxgreyedout}
21141 \begin_layout Standard
21159 \begin_layout Standard
21160 The available colors and the method to define own colors is explained in
21161 section\InsetSpace ~
21163 \begin_inset LatexCommand ref
21164 reference "sec:Colored-Tables"
21171 \begin_layout Standard
21172 Notes that appear in blue in this document are set using greyed out notes
21176 \begin_layout Standard
21177 \begin_inset VSpace bigskip
21183 \begin_layout Standard
21192 notes can be set in the
21199 \begin_layout Standard
21200 The default frame width for
21204 notes is 0.4\InsetSpace \thinspace{}
21205 pt; it can be changed by changing the size
21212 The default space between the note content and the frame is 9\InsetSpace \thinspace{}
21214 be changed by changing the size
21221 For example the frame appearance of the following
21225 note is set with the ERT commands
21228 \begin_layout Standard
21238 \begin_layout Standard
21242 \begin_layout Standard
21254 \begin_inset Note Framed
21257 \begin_layout Standard
21271 \begin_layout Standard
21285 \begin_layout Standard
21286 \begin_inset VSpace bigskip
21292 \begin_layout Standard
21297 notes the default space between the note content and the note border is
21298 3\InsetSpace \thinspace{}
21299 pt; it can be changed by changing the size
21307 The default background color red can be changed with the command
21311 def\SpecialChar \textcompwordmark{}
21319 def\SpecialChar \textcompwordmark{}
21322 command is explained in section\InsetSpace ~
21324 \begin_inset LatexCommand ref
21325 reference "sec:Colored-Tables"
21333 \begin_layout Standard
21340 \SpecialChar \textcompwordmark{}
21345 requires the LaTeX-package
21349 in the preamble, see section\InsetSpace ~
21351 \begin_inset LatexCommand ref
21352 reference "sec:Colored-Boxes"
21364 \begin_layout Standard
21365 For example the appearance of the following
21369 note is set with the ERT commands
21372 \begin_layout Standard
21385 def\SpecialChar \textcompwordmark{}
21386 inecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21389 \begin_layout Standard
21393 \begin_layout Standard
21406 \begin_layout Standard
21410 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21416 \begin_inset Note Shaded
21419 \begin_layout Standard
21422 This is yellow text in a
21432 note with darkgreen background.
21441 \begin_layout Standard
21454 \begin_layout Standard
21458 definecolor{shadecolor}{rgb}{1,0,0}
21466 \begin_layout Section
21468 \begin_inset LatexCommand label
21469 name "sec:Footnotes"
21474 \begin_inset LatexCommand index
21475 name "Notes ! Footnotes"
21480 \begin_inset LatexCommand index
21488 \begin_layout Standard
21489 Footnotes can be inserted using the toolbar button
21490 \begin_inset Graphics
21491 filename ../images/footnote-insert.xpm
21498 Insert\SpecialChar \menuseparator
21510 then the following footnote-box:
21511 \begin_inset Graphics
21512 filename clipart/footnoteQt4.png
21521 where you can enter the footnote text.
21522 If you want to turn existing text into a footnote, mark it and click on
21538 \begin_layout Standard
21539 Here is an example footnote:
21547 \begin_layout Standard
21548 \begin_inset LatexCommand label
21549 name "foot:This-is-an"
21553 This is an example footnote.
21566 \begin_layout Standard
21570 newcounter{MyRepeatFoot}
21573 \begin_layout Standard
21577 setcounter{MyRepeatFoot}{
21587 \begin_layout Standard
21588 The footnote will appear in the output as a superscript number at the text
21589 position where the footnote box is placed.
21590 The footnote text is placed at the bottom of the current page.
21591 The footnote number is calculated by LaTeX, the numbers are consecutive.
21592 It depends on your document-class, if the footnote number is reset for
21596 \begin_layout Standard
21597 Footnotes can be referenced like floats: Insert a label into the footnote
21598 and cross-reference this label in the text as described in section\InsetSpace ~
21600 \begin_inset LatexCommand ref
21601 reference "sec:Referencing-Floats"
21607 This is a cross-reference of Footnote\InsetSpace ~
21609 \begin_inset LatexCommand ref
21610 reference "foot:This-is-an"
21617 \begin_inset Note Greyedout
21620 \begin_layout Standard
21625 LyX doesn't provide a prefix for labels in footnotes, so you have to insert
21626 e.\InsetSpace \thinspace{}
21631 \begin_inset Quotes eld
21637 \begin_inset Quotes erd
21640 manually when you want to use the reference style
21642 Formatted\InsetSpace ~
21653 \begin_layout Standard
21654 \begin_inset VSpace defskip
21657 To use footnotes within tables, you have to use minipages, see section\InsetSpace ~
21659 \begin_inset LatexCommand ref
21660 reference "sec:Minipages"
21665 Footnotes within longtables are described in section\InsetSpace ~
21667 \begin_inset LatexCommand ref
21668 reference "sub:Footnotes-in-Longtables"
21675 \begin_layout Standard
21676 \begin_inset VSpace defskip
21679 To create only a mark for a footnote, use the command
21683 footnotemark[number]
21686 This is used when you have the same annotation several times in a text
21687 but doesn't want to print the footnote text every time.
21690 the number of the repeating footnote while you are writing the text, you
21691 have to store its number.
21692 For the following footnote mark example, these commands were inserted in
21693 ERT behind Footnote\InsetSpace ~
21695 \begin_inset LatexCommand ref
21696 reference "foot:This-is-an"
21700 to store the footnote number:
21703 \begin_layout Standard
21708 newcounter{MyRepeatFoot}
21712 setcounter{MyRepeatFoot}{
21717 \begin_layout Standard
21718 The footnote mark was then created with this command:
21721 \begin_layout Standard
21731 \begin_layout Standard
21732 Here is an example footnote mark:
21740 \begin_layout Standard
21754 \begin_layout Subsection
21756 \begin_inset LatexCommand label
21757 name "sub:Footnote-Numbering"
21762 \begin_inset LatexCommand index
21763 name "Footnotes ! Numbering"
21770 \begin_layout Standard
21771 If you want to have footnotes numbered in the scheme
21772 \begin_inset Quotes eld
21776 \begin_inset Quotes erd
21779 , add the following command to your document preamble:
21782 \begin_layout Standard
21787 numberwithin{footnote}{chapter}
21790 \begin_layout Standard
21791 To be able to use the command
21802 in the document settings the option
21812 \begin_layout Standard
21816 \begin_layout Standard
21820 numberwithin{footnote}{chapter}
21825 This is another example footnote:
21831 \begin_layout Standard
21832 This is a footnote numbered in the scheme
21833 \begin_inset Quotes eld
21837 \begin_inset Quotes erd
21851 \begin_layout Standard
21855 numberwithin{footnote}{part}
21863 \begin_layout Standard
21864 \begin_inset VSpace bigskip
21870 \begin_layout Standard
21871 To reset the footnote number back to 1 after each section
21873 , add this command to your document preamble:
21876 \begin_layout Standard
21881 @addtoreset{footnote}{section}
21884 \begin_layout Standard
21885 \begin_inset VSpace bigskip
21888 The following preamble command changes the footnote numbering style to small
21892 \begin_layout Standard
21904 \begin_layout Standard
21908 \begin_layout Standard
21921 This is a footnote with roman numbering:
21925 \begin_layout Standard
21926 This is an example footnote with roman numbering.
21935 \begin_layout Standard
21951 \begin_layout Standard
21952 To change the numbering style to capital roman numerals replace in the command
21967 \begin_inset Quotes eld
21971 \begin_inset Quotes erd
21974 footnotes with capital or small Latin letters use
21988 \begin_inset Quotes eld
21992 \begin_inset Quotes erd
21995 footnotes with symbols use
22004 \begin_layout Standard
22005 \begin_inset Note Greyedout
22008 \begin_layout Standard
22013 You can only number 26 footnotes with Latin letters, because this numbering
22014 is limited to single letters.
22022 \begin_inset Note Greyedout
22025 \begin_layout Standard
22030 You can only number 9 footnotes with symbols.
22038 \begin_layout Standard
22039 To return to the default numbering style when you changed to another one,
22052 in the command above.
22055 \begin_layout Subsection
22057 \begin_inset LatexCommand index
22058 name "Footnotes ! Placement"
22065 \begin_layout Standard
22066 If you have several footnotes in one page, they appear without vertical
22067 space between them at the bottom of the page.
22068 To make them better readable you can e.\InsetSpace \thinspace{}
22070 add 1.5\InsetSpace \thinspace{}
22071 mm space with the following
22075 \begin_layout Standard
22097 \begin_layout Standard
22098 \begin_inset VSpace bigskip
22101 In a two-column document the footnotes appear at the bottom of every column,
22102 see Figure\InsetSpace ~
22104 \begin_inset LatexCommand ref
22105 reference "fig:Standard-footnote-placement"
22110 If the footnotes should only appear at the bottom of the right column,
22111 as in Figure\InsetSpace ~
22113 \begin_inset LatexCommand ref
22114 reference "fig:Footnote-placement-in"
22118 , use the LaTeX-package
22123 \begin_inset LatexCommand index
22124 name "LaTeX-packages ! ftnright"
22128 with this command in the document preamble:
22131 \begin_layout Standard
22136 usepackage{ftnright}
22139 \begin_layout Standard
22140 \begin_inset Float figure
22146 \begin_layout Standard
22150 \begin_layout Standard
22160 \begin_inset Graphics
22161 filename clipart/without_fntright.pdf
22170 \begin_layout Standard
22180 \begin_layout Standard
22181 \begin_inset Caption
22183 \begin_layout Standard
22184 \begin_inset LatexCommand label
22185 name "fig:Standard-footnote-placement"
22189 Standard footnote placement in two-column documents.
22202 \begin_layout Standard
22203 \begin_inset Float figure
22209 \begin_layout Standard
22213 \begin_layout Standard
22223 \begin_inset Graphics
22224 filename clipart/with_fntright.pdf
22233 \begin_layout Standard
22243 \begin_layout Standard
22244 \begin_inset Caption
22246 \begin_layout Standard
22247 \begin_inset LatexCommand label
22248 name "fig:Footnote-placement-in"
22252 Footnote placement in two-column documents when the LaTeX-package
22269 \begin_layout Standard
22270 \begin_inset VSpace bigskip
22273 In some scientific literature it is usual to collect the footnotes and print
22274 them in a separate paragraph at the the end of a section, like in Figure\InsetSpace ~
22276 \begin_inset LatexCommand ref
22277 reference "fig:Endnotes----footnotes"
22282 They are then so called
22283 \begin_inset Quotes eld
22287 \begin_inset Quotes erd
22291 To use endnotes instead of footnotes in your document, load the LaTeX-package
22297 \begin_inset LatexCommand index
22298 name "LaTeX-packages ! endnotes"
22302 with the document preamble lines
22305 \begin_layout Standard
22310 usepackage{endnotes}
22321 \begin_layout Standard
22322 To insert the collected footnotes, insert the command
22325 \begin_layout Standard
22333 \begin_layout Standard
22334 in ERT at the the end of a section or chapter.
22337 \begin_layout Standard
22338 \begin_inset Float figure
22343 \begin_layout Standard
22348 \begin_layout Standard
22358 \begin_inset Graphics
22359 filename clipart/endnotes.pdf
22367 \begin_layout Standard
22377 \begin_layout Standard
22378 \begin_inset Caption
22380 \begin_layout Standard
22381 \begin_inset LatexCommand label
22382 name "fig:Endnotes----footnotes"
22386 Endnotes -- footnotes are printed in a separate paragraph at the end of
22387 sections or chapters.
22400 \begin_layout Standard
22401 \begin_inset VSpace defskip
22404 The paragraph heading for the endnotes isn't automatically translated into
22405 the document language, this must be done manually.
22406 The following preamble command translate the default English name
22407 \begin_inset Quotes eld
22411 \begin_inset Quotes erd
22414 to the German translation
22415 \begin_inset Quotes eld
22419 \begin_inset Quotes erd
22425 \begin_layout Standard
22432 notesname}{Anmerkungen}
22435 \begin_layout Standard
22436 \begin_inset VSpace defskip
22439 The numbering of endnotes can be changed like the footnote numbering as
22440 described in section\InsetSpace ~
22442 \begin_inset LatexCommand ref
22443 reference "sub:Footnote-Numbering"
22447 ; just replace the command
22460 To reset the endnote number use the command
22466 as described in section\InsetSpace ~
22468 \begin_inset LatexCommand ref
22469 reference "sub:Footnote-Numbering"
22473 and replace the command parameter
22484 \begin_layout Standard
22485 To create only a mark for an endnote, use the command
22489 endnotemark[number]
22491 similar to the command
22497 , described in section\InsetSpace ~
22499 \begin_inset LatexCommand ref
22500 reference "sec:Footnotes"
22507 \begin_layout Standard
22508 \begin_inset VSpace bigskip
22511 Footnotes can also be placed in the page margin and the footnote text alignment
22512 can be changed, see the LaTeX-package
22517 \begin_inset LatexCommand index
22518 name "LaTeX-packages ! footmisc"
22523 \begin_inset LatexCommand cite
22528 for more information about this.
22531 \begin_layout Standard
22532 For various further footnote formatting issues have a look at LaTeX-books,
22534 \begin_inset LatexCommand cite
22535 key "latexcompanion,latexguide,latexbook"
22542 \begin_layout Section
22544 \begin_inset LatexCommand index
22545 name "Notes ! Margin Notes"
22552 \begin_layout Standard
22553 Margin notes look and behave in LyX like footnotes.
22554 They are inserted via the menu
22556 Insert\SpecialChar \menuseparator
22557 Marginal\InsetSpace ~
22560 or the toolbar button
22561 \begin_inset Graphics
22562 filename ../images/marginalnote-insert.xpm
22578 \begin_inset Quotes eld
22582 \begin_inset Quotes erd
22585 appears where you can enter the text of the margin note.
22588 \begin_layout Standard
22589 At the side is an example margin note.
22593 \begin_inset Marginal
22596 \begin_layout Standard
22597 This is a margin note.
22605 \begin_layout Standard
22606 Margin notes appear at the right side in single-sided documents.
22607 In double-sided documents they appear in the outer margin -- left on even
22608 pages, right on odd pages.
22609 The text of margin notes is aligned opposite to the outer margin -- right-align
22610 ed when the note appears in the left margin.
22611 The first line of the margin note is placed at the position of the text
22612 line where it is inserted in the document.
22615 \begin_layout Standard
22616 \begin_inset VSpace bigskip
22619 To place the margin note in the inner margin, add the command
22622 \begin_layout Standard
22630 \begin_layout Standard
22631 in ERT before a margin note.
22632 The new placement is valid for all following margin notes.
22636 \begin_layout Standard
22646 \begin_inset Marginal
22649 \begin_layout Standard
22650 This is a margin note in the inner margin.
22662 \begin_inset Note Greyedout
22665 \begin_layout Standard
22670 There is often not enough space in the inner margin so that the notes are
22671 not correctly displayed in the output.
22679 \begin_layout Standard
22683 \begin_layout Standard
22692 To return to the default placement insert the command
22695 \begin_layout Standard
22703 \begin_layout Standard
22706 \begin_inset Note Greyedout
22709 \begin_layout Standard
22714 The command is ignored when it is within a paragraph where also the command
22729 \begin_layout Standard
22730 \begin_inset VSpace bigskip
22737 \begin_inset Marginal
22740 \begin_layout Standard
22741 AVeryLongMarginParWord that isn't hyphenated.
22749 Similar to the case described in section\InsetSpace ~
22751 \begin_inset LatexCommand ref
22752 reference "sub:Multiple-Lines-in"
22756 , long words cannot be hyphenated when they are the first word in a margin
22758 To avoid this, insert the command
22761 \begin_layout Standard
22769 \begin_layout Standard
22770 in ERT before the word
22774 \begin_inset Marginal
22777 \begin_layout Standard
22781 \begin_layout Standard
22790 AVeryLongMarginParWord that is hyphenated.
22798 \begin_layout Standard
22799 \begin_inset VSpace bigskip
22805 \begin_layout Standard
22806 \begin_inset Note Greyedout
22809 \begin_layout Standard
22814 Margin notes can normally not be used inside tables, floats, and footnotes.
22822 \begin_layout Standard
22823 \begin_inset VSpace bigskip
22829 \begin_layout Standard
22833 \begin_layout Standard
22843 \begin_inset Note Note
22846 \begin_layout Standard
22847 The following section will only be displayed when you have the LaTeX-package
22860 \begin_layout Standard
22861 This restriction can be evaded by using the LaTeX-package
22866 \begin_inset LatexCommand index
22867 name "LaTeX-packages ! marginnote"
22872 By adding these two lines to your document preamble, the command used by
22873 LyX for margin notes is redefined to use the command provided by the
22880 \begin_layout Standard
22885 usepackage{marginnote}
22896 \begin_layout Standard
22897 This is also used in this document because
22901 has another useful feature: You can set a vertical offset for the note.
22902 This is often needed when too many margin notes are too close together
22903 or for a better page layout.
22904 The offset is set in LyX as ERT directly behind the margin note in the
22908 \begin_layout Standard
22914 \begin_layout Standard
22915 where the offset is a length with one of the units listed in Table\InsetSpace ~
22917 \begin_inset LatexCommand ref
22918 reference "tab:Units"
22923 A negative value shifts the note up, a positive value shifts it down.
22927 For example the margin note beside this text line is shifted up 1.5\InsetSpace \thinspace{}
22930 \begin_inset Quotes eld
22940 \begin_inset Quotes erd
22944 \begin_inset Marginal
22947 \begin_layout Standard
22948 This margin note is shifted up 1.5\InsetSpace \thinspace{}
22949 cm from its original position.
22961 \begin_layout Standard
22971 \begin_layout Standard
22972 \begin_inset VSpace defskip
22979 you can also change the alignment of the text in the margin note.
22980 For example the commands
22983 \begin_layout Standard
22990 raggedleftmarginnote}{
22998 raggedrightmarginnote}{
23003 \begin_layout Standard
23004 set the alignment to centered.
23009 raggedleftmarginnote
23011 denotes margin notes that appear at the left side.
23018 \begin_layout Standard
23024 raggedleftmarginnote}{
23029 \begin_layout Standard
23035 raggedrightmarginnote}{
23043 \begin_inset Marginal
23046 \begin_layout Standard
23047 The text of this margin note is centered.
23058 \begin_layout Standard
23065 raggedleftmarginnote}{
23073 raggedrightmarginnote}{
23082 \begin_layout Standard
23088 raggedleftmarginnote}{
23093 \begin_layout Standard
23099 raggedrightmarginnote}{
23109 \begin_layout Standard
23110 \begin_inset VSpace defskip
23113 For the other features of
23117 we refer to its documentation
23118 \begin_inset LatexCommand cite
23126 \begin_layout Standard
23127 \begin_inset VSpace bigskip
23130 You can change the layout of margin notes by redefining its definition.
23131 To create for example a header for all margin notes with the underlined,
23132 sans-serif, and bold header text
23133 \begin_inset Quotes eld
23145 \begin_inset Quotes erd
23148 , add this to your document preamble:
23151 \begin_layout Standard
23174 \begin_layout Standard
23191 underbar{Attention!}}}%
23197 \begin_layout Standard
23215 \begin_layout Standard
23222 \begin_layout Standard
23233 \begin_layout Standard
23244 \begin_layout Standard
23252 underbar{Attention!}}}%
23255 \begin_layout Standard
23269 \begin_inset Marginal
23272 \begin_layout Standard
23273 This is a margin note with a defined heading.
23285 \begin_layout Standard
23299 \begin_layout Standard
23316 \begin_inset Note Note
23319 \begin_layout Standard
23320 The margin note format is changed only for this example.
23328 \begin_layout Standard
23332 \begin_layout Standard
23342 \begin_inset Note Note
23345 \begin_layout Standard
23346 The following will be displayed when the LaTeX-package
23358 \begin_layout Standard
23359 You need to install the LaTeX-package
23363 to see the following part of this section in the output.
23366 \begin_layout Standard
23370 \begin_layout Standard
23382 \begin_layout Chapter
23386 \begin_layout Section
23388 \begin_inset LatexCommand index
23389 name "Boxes ! Introduction"
23396 \begin_layout Standard
23397 Boxes are used to format a block of text.
23398 Boxes can be used to write documents with multiple languages, see section\InsetSpace ~
23400 \begin_inset LatexCommand ref
23401 reference "sec:Minipages"
23405 , to frame texts, see section\InsetSpace ~
23407 \begin_inset LatexCommand ref
23408 reference "sec:Framed-Boxes"
23412 , to prevent words to be hyphenated, see section\InsetSpace ~
23414 \begin_inset LatexCommand ref
23415 reference "sec:Prevent-Hyphenation"
23419 , to align text, see section\InsetSpace ~
23421 \begin_inset LatexCommand ref
23422 reference "sub:Vertical-Alignment"
23426 , or to set the background color of texts, see section\InsetSpace ~
23428 \begin_inset LatexCommand ref
23429 reference "sec:Colored-Boxes"
23436 \begin_layout Standard
23437 Boxes can be inserted with the menu
23439 Insert\SpecialChar \menuseparator
23443 A grey box with the label
23448 \begin_inset Graphics
23449 filename clipart/BoxInsetDefaultQt4.png
23454 , will be inserted.
23455 The box type can be specified by right-clicking on the box.
23456 The appearing box dialog offers the
23474 is the default for new boxes and is explained in section\InsetSpace ~
23476 \begin_inset LatexCommand ref
23477 reference "sec:Minipages"
23485 is described in section\InsetSpace ~
23487 \begin_inset LatexCommand ref
23488 reference "sec:Parboxes"
23495 \begin_layout Standard
23496 Boxes aren't numbered and can therefore not be referenced like floats or
23500 \begin_layout Standard
23501 \begin_inset Note Greyedout
23504 \begin_layout Standard
23509 Due to a bug in LyX you have to insert a protected space behind a box when
23510 you want to separate in a line the box from the following text with a space.
23518 \begin_layout Standard
23519 \begin_inset Note Greyedout
23522 \begin_layout Standard
23527 Boxes must not be the item in an
23543 \begin_layout Standard
23544 \begin_inset Note Greyedout
23547 \begin_layout Standard
23552 For an unknown reason you can only set the
23561 when you use a framed box.
23567 type and without frames are explained in section\InsetSpace ~
23569 \begin_inset LatexCommand ref
23570 reference "sec:Prevent-Hyphenation"
23582 \begin_layout Section
23584 \begin_inset LatexCommand label
23585 name "sec:Box-Dialog"
23590 \begin_inset LatexCommand index
23591 name "Boxes ! Box Dialog"
23596 \begin_inset LatexCommand index
23597 name "Boxes ! Alignment"
23604 \begin_layout Standard
23605 In the box dialog you can adjust the box geometry in the fields
23614 The available units for the geometry are explained in Table\InsetSpace ~
23616 \begin_inset LatexCommand ref
23617 reference "tab:Units"
23626 offers the following additional sizes:
23629 \begin_layout Description
23630 Depth This is the plain text
23631 \begin_inset Quotes eld
23635 \begin_inset Quotes erd
23639 It ignores the total depth when there are multiple text lines in the box:
23646 \begin_inset Box Boxed
23655 height_special "depth"
23658 \begin_layout Standard
23660 Box height set to 1\InsetSpace \thinspace{}
23673 \begin_layout Description
23674 Height This is the heigth of the text that is inside the box.
23675 A value of e.\InsetSpace \thinspace{}
23677 2 for this size will set the box heigth to 2 times the text
23679 \begin_inset Box Boxed
23688 height_special "height"
23691 \begin_layout Standard
23693 Box height set to 2\InsetSpace \thinspace{}
23702 \begin_layout Description
23704 Height This is the Height\InsetSpace \thinspace{}
23705 +\InsetSpace \thinspace{}
23707 \begin_inset Box Boxed
23716 height_special "totalheight"
23719 \begin_layout Standard
23721 Box height set to 1\InsetSpace \thinspace{}
23731 \begin_layout Description
23732 Width This set the width of the box as heigth:
23733 \begin_inset Box Boxed
23742 height_special "width"
23745 \begin_layout Standard
23747 Box height set to 1\InsetSpace \thinspace{}
23756 \begin_layout Standard
23757 \begin_inset VSpace bigskip
23760 When you have chosen an
23765 , the vertical box alignment can be:
23768 \begin_layout Description
23769 Top This is an example text line.
23771 \begin_inset Box Boxed
23780 height_special "totalheight"
23783 \begin_layout Standard
23785 This box is top-aligned.
23791 This is an example text line.
23794 \begin_layout Description
23795 Middle This is an example text line.
23797 \begin_inset Box Boxed
23806 height_special "totalheight"
23809 \begin_layout Standard
23811 This box is middle-aligned.
23817 This is an example text line.
23820 \begin_layout Description
23821 Bottom This is an example text line.
23823 \begin_inset Box Boxed
23832 height_special "totalheight"
23835 \begin_layout Standard
23837 This box is bottom-aligned.
23843 This is an example text line.
23846 \begin_layout Standard
23847 The horizontal box alignment can be set via LyX's paragraph dialog when
23848 you set the box into its own paragraph.
23851 \begin_layout Standard
23852 \begin_inset VSpace bigskip
23855 When you have chosen an
23860 , the box content can be vertical aligned to:
23863 \begin_layout Description
23864 top This is an example text line.
23866 \begin_inset Box Boxed
23875 height_special "totalheight"
23878 \begin_layout Standard
23880 This box text is top-aligned.
23886 This is an example text line.
23889 \begin_layout Description
23890 middle This is an example text line.
23892 \begin_inset Box Boxed
23901 height_special "totalheight"
23904 \begin_layout Standard
23906 This box text is middle-aligned.
23912 This is an example text line.
23915 \begin_layout Description
23916 bottom This is an example text line.
23918 \begin_inset Box Boxed
23927 height_special "totalheight"
23930 \begin_layout Standard
23932 This box text is bottom-aligned.
23938 This is an example text line.
23941 \begin_layout Description
23942 stretch This is an example text line.
23944 \begin_inset Box Boxed
23953 height_special "totalheight"
23956 \begin_layout Standard
23961 \begin_layout Standard
23966 \begin_layout Standard
23974 This is an example text line.
23977 \begin_layout Standard
23978 To stretch the box content, it must consist of more than one paragraph.
23979 In the example above every text line is in an own paragraph.
23982 \begin_layout Standard
23983 \begin_inset VSpace bigskip
23986 To align the box content horizontally you can use LyX's paragraph dialog
23987 when you have chosen an
23995 \begin_layout Standard
23997 \begin_inset Box Boxed
24006 height_special "totalheight"
24009 \begin_layout Standard
24014 \begin_layout Standard
24019 \begin_layout Standard
24029 \begin_layout Standard
24030 If you haven't set an
24035 , you can align the box content horizontally in the box dialog.
24038 \begin_layout Standard
24040 \begin_inset Box Boxed
24049 height_special "totalheight"
24052 \begin_layout Standard
24054 This box text is horizontally stretched.
24062 \begin_layout Section
24064 \begin_inset LatexCommand label
24065 name "sec:Framed-Boxes"
24070 \begin_inset LatexCommand index
24071 name "Boxes ! Frames"
24078 \begin_layout Standard
24079 The frame style of the box can be specified in the box-dialog in the drop-down
24085 The following frame types are possible:
24088 \begin_layout Description
24089 Rectangular\InsetSpace ~
24090 box This draws a rectangle frame around the box.
24091 The frame line thickness has the size of
24099 \begin_inset Box Boxed
24108 height_special "totalheight"
24111 \begin_layout Standard
24121 \begin_layout Description
24124 thin This draws an oval frame around the box.
24125 The frame line thickness has the size 0.4\InsetSpace \thinspace{}
24128 \begin_inset Box ovalbox
24137 height_special "totalheight"
24140 \begin_layout Standard
24150 \begin_layout Description
24153 thick This draws an oval frame around the box.
24154 The frame line thickness has the size 0.8\InsetSpace \thinspace{}
24157 \begin_inset Box Ovalbox
24166 height_special "totalheight"
24169 \begin_layout Standard
24179 \begin_layout Description
24180 Shadow\InsetSpace ~
24181 box This draws a rectangle frame with a shadow around the box.
24182 The frame line thickness has the size of
24188 , the shadow has a width of 4\InsetSpace \thinspace{}
24191 \begin_inset Box Shadowbox
24200 height_special "totalheight"
24203 \begin_layout Standard
24213 \begin_layout Description
24214 Double\InsetSpace ~
24215 box This draws a double-line rectangle frame around the box.
24216 The line thickness of the inner frame is 0.75\InsetSpace \thinspace{}
24223 , the thickness of the outer frame is 1.5\InsetSpace \thinspace{}
24231 The distance between the lines is 1.5\InsetSpace \thinspace{}
24238 \InsetSpace \thinspace{}
24239 +\InsetSpace \thinspace{}
24240 0.5\InsetSpace \thinspace{}
24243 \begin_inset Box Doublebox
24252 height_special "totalheight"
24255 \begin_layout Standard
24265 \begin_layout Standard
24266 \begin_inset VSpace bigskip
24269 LyX's box label will change to the used frame style when you set a frame.
24270 To be able to use the different frame styles, the LaTeX-package
24275 \begin_inset LatexCommand index
24276 name "LaTeX-packages ! fancybox"
24283 \begin_layout Standard
24284 \begin_inset VSpace bigskip
24287 The default value for the size
24293 is 0.4\InsetSpace \thinspace{}
24295 It can be changed with the following command in ERT to e.\InsetSpace \thinspace{}
24297 2\InsetSpace \thinspace{}
24301 \begin_layout Standard
24311 \begin_layout Standard
24315 \begin_layout Standard
24327 \begin_inset Box Boxed
24336 height_special "totalheight"
24339 \begin_layout Standard
24341 Rectangular box with
24347 \InsetSpace \thinspace{}
24348 =\InsetSpace \thinspace{}
24349 2\InsetSpace \thinspace{}
24359 \begin_layout Standard
24373 \begin_layout Standard
24374 \begin_inset VSpace bigskip
24377 The space between the frame and the box content is for all frame styles
24378 by default 3\InsetSpace \thinspace{}
24380 You can change it by setting the length
24387 For example the command
24390 \begin_layout Standard
24400 \begin_layout Standard
24401 sets the value to 10\InsetSpace \thinspace{}
24402 pt, like for the following box:
24405 \begin_layout Standard
24409 \begin_layout Standard
24421 \begin_inset Box Boxed
24430 height_special "totalheight"
24433 \begin_layout Standard
24435 Rectangular box with
24441 \InsetSpace \thinspace{}
24442 =\InsetSpace \thinspace{}
24443 10\InsetSpace \thinspace{}
24453 \begin_layout Standard
24467 \begin_layout Standard
24468 \begin_inset VSpace bigskip
24471 The diameter of the round corners of the oval boxes can be set with the
24482 \begin_layout Standard
24490 \begin_layout Standard
24491 sets the diameter to 1\InsetSpace \thinspace{}
24496 \begin_layout Standard
24504 \begin_layout Standard
24505 sets the diameter to
24507 num\InsetSpace \thinspace{}
24508 ×\InsetSpace \thinspace{}
24509 minimum(width and heigth of box)
24521 \begin_layout Standard
24525 \begin_layout Standard
24535 \begin_inset Box Ovalbox
24544 height_special "totalheight"
24547 \begin_layout Standard
24555 \InsetSpace \thinspace{}
24556 =\InsetSpace \thinspace{}
24557 1.5\InsetSpace \thinspace{}
24567 \begin_layout Standard
24579 \begin_layout Standard
24580 \begin_inset VSpace bigskip
24583 The size of the shadow can be adjusted by changing the length
24590 It it set to 2\InsetSpace \thinspace{}
24591 pt for the following box by this command:
24594 \begin_layout Standard
24604 \begin_layout Standard
24608 \begin_layout Standard
24620 \begin_inset Box Shadowbox
24629 height_special "totalheight"
24632 \begin_layout Standard
24640 \InsetSpace \thinspace{}
24641 =\InsetSpace \thinspace{}
24642 2\InsetSpace \thinspace{}
24652 \begin_layout Standard
24666 \begin_layout Standard
24667 \begin_inset VSpace bigskip
24670 Changed lengths and widths are valid for all boxes following the commands
24674 \begin_layout Section
24676 \begin_inset LatexCommand label
24677 name "sec:Minipages"
24682 \begin_inset LatexCommand index
24683 name "Boxes ! Minipages"
24690 \begin_layout Standard
24691 Minipages are treated by LaTeX as pages within pages and can therefore for
24692 example have their own footnotes.
24695 \begin_layout Standard
24696 Minipages are useful when you write documents with different languages.
24699 \begin_layout Standard
24700 Below are two example minipages side by side.
24701 Their width is set to 45\InsetSpace \thinspace{}
24702 col% and they are separated by a horizontal fill,
24703 that was inserted via the menu
24705 Insert\SpecialChar \menuseparator
24706 Special\InsetSpace ~
24707 Formatting\SpecialChar \menuseparator
24708 Horizontal\InsetSpace ~
24714 \begin_layout Standard
24715 \begin_inset Box Frameless
24724 height_special "totalheight"
24727 \begin_layout Standard
24730 Dies ist ein deutscher Text.
24731 Dies ist ein deutscher Text.
24732 Dies ist ein deutscher Text.
24733 Dies ist ein deutscher Text.
24734 Dies ist ein deutscher Text.
24735 Dies ist ein deutscher Text.
24736 Dies ist ein deutscher Text.
24737 Dies ist ein deutscher Text.
24738 Dies ist ein deutscher Text.
24739 Dies ist ein deutscher Text.
24740 Dies ist ein deutscher Text.
24741 Dies ist ein deutscher Text.
24742 Dies ist ein deutscher Text
24746 \begin_layout Standard
24749 Dies ist eine deutsche Fußnote.
24755 Dies ist ein deutscher Text.
24756 Dies ist ein deutscher Text.
24764 \begin_inset Box Frameless
24773 height_special "totalheight"
24776 \begin_layout Standard
24777 This is an English Text.
24778 This is an English Text.
24779 This is an English Text.
24780 This is an English Text.
24781 This is an English Text.
24782 This is an English Text.
24783 This is an English Text.
24784 This is an English Text.
24785 This is an English Text.
24786 This is an English Text.
24787 This is an English Text.
24788 This is an English Text.
24789 This is an English Text.
24790 This is an English Text.
24791 This is an English Text.
24792 This is an English Text.
24796 \begin_layout Standard
24797 This is an English footnote.
24802 This is an English Text.
24811 \begin_layout Standard
24812 \begin_inset VSpace bigskip
24815 Another application for minipages are footnotes within tables.
24816 Due to a LaTeX restriction footnotes within tables doesn't appear at the
24817 bottom of the current page.
24818 But when you put the table with the footnote to a minipage, the footnote
24819 will appear at its bottom, numbered with Latin letters.
24820 The footnote number is reset to 1 in every minipage but not outside the
24824 \begin_layout Standard
24825 The footnote of this table doesn't appear:
24826 \begin_inset Tabular
24827 <lyxtabular version="3" rows="3" columns="4">
24829 <column alignment="center" valignment="top" leftline="true" width="0pt">
24830 <column alignment="center" valignment="top" leftline="true" width="0pt">
24831 <column alignment="center" valignment="top" leftline="true" width="0pt">
24832 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
24833 <row topline="true">
24834 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24837 \begin_layout Standard
24843 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24846 \begin_layout Standard
24852 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24855 \begin_layout Standard
24860 \begin_layout Standard
24861 This is a footnote within a table.
24871 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24874 \begin_layout Standard
24881 <row topline="true">
24882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24885 \begin_layout Standard
24891 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24894 \begin_layout Standard
24900 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24903 \begin_layout Standard
24909 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24912 \begin_layout Standard
24919 <row topline="true" bottomline="true">
24920 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24923 \begin_layout Standard
24929 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24932 \begin_layout Standard
24938 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24941 \begin_layout Standard
24947 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24950 \begin_layout Standard
24964 \begin_layout Standard
24966 \begin_inset Box Frameless
24975 height_special "totalheight"
24978 \begin_layout Standard
24980 \begin_inset Tabular
24981 <lyxtabular version="3" rows="3" columns="4">
24983 <column alignment="center" valignment="top" leftline="true" width="0pt">
24984 <column alignment="center" valignment="top" leftline="true" width="0pt">
24985 <column alignment="center" valignment="top" leftline="true" width="0pt">
24986 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
24987 <row topline="true">
24988 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24991 \begin_layout Standard
24997 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25000 \begin_layout Standard
25006 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25009 \begin_layout Standard
25014 \begin_layout Standard
25015 This is a footnote within a table.
25025 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25028 \begin_layout Standard
25035 <row topline="true">
25036 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25039 \begin_layout Standard
25045 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25048 \begin_layout Standard
25054 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25057 \begin_layout Standard
25063 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25066 \begin_layout Standard
25073 <row topline="true" bottomline="true">
25074 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25077 \begin_layout Standard
25083 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25086 \begin_layout Standard
25092 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25095 \begin_layout Standard
25101 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25104 \begin_layout Standard
25123 \begin_layout Standard
25124 \begin_inset VSpace bigskip
25127 The document-wide paragraph settings are ignored within minipages.
25128 That means that there will be no space between paragraphs in minipages
25129 although you set it to e.\InsetSpace \thinspace{}
25135 in the document settings.
25138 \begin_layout Standard
25139 Minipages can also be used to set a background color for text parts, see
25140 section\InsetSpace ~
25142 \begin_inset LatexCommand ref
25143 reference "sub:Color-for-Paragraphs"
25150 \begin_layout Standard
25151 \begin_inset Note Greyedout
25154 \begin_layout Standard
25159 You cannot have floats or margin notes inside minipages but minipages can
25160 be used inside tables, floats, and other boxes.
25168 \begin_layout Section
25170 \begin_inset LatexCommand label
25171 name "sec:Parboxes"
25176 \begin_inset LatexCommand index
25177 name "Boxes ! Parboxes"
25184 \begin_layout Standard
25185 Parboxes are very similar to minipages with the difference that they cannot
25187 The main difference to minipages is that minipages are in contrary to parboxes
25188 no real boxes but LaTeX-environments.
25191 \begin_layout Standard
25193 \begin_inset Box Frameless
25202 height_special "totalheight"
25205 \begin_layout Standard
25206 This a text within a parbox.
25207 This a text within a parbox.
25210 \begin_layout Standard
25211 This footnote won't appear:
25215 \begin_layout Standard
25216 This footnote is inside a parbox and will therefore not appear.
25229 \begin_layout Section
25230 Boxes for Words and Characters
25231 \begin_inset LatexCommand index
25232 name "Boxes ! for Characters"
25239 \begin_layout Subsection
25240 Prevent Hyphenation
25241 \begin_inset LatexCommand label
25242 name "sec:Prevent-Hyphenation"
25247 \begin_inset LatexCommand index
25248 name "Boxes ! to Prevent Hyphenation"
25255 \begin_layout Standard
25256 You can use a special kind of boxes to prevent words or text to be hyphenated.
25259 e is an example text:
25262 \begin_layout Standard
25263 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25269 \begin_layout Standard
25270 To prevent the hyphenation of the word
25271 \begin_inset Quotes eld
25275 \begin_inset Quotes erd
25281 \begin_layout Standard
25289 \begin_layout Standard
25290 in ERT before the word.
25291 Behind the word insert a closing brace
25292 \begin_inset Quotes eld
25300 \begin_inset Quotes erd
25307 \begin_layout Standard
25319 \begin_layout Standard
25320 This is the result:
25323 \begin_layout Standard
25324 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25330 \begin_layout Standard
25343 \begin_layout Standard
25353 \begin_layout Standard
25354 Of course the word now protrudes over the side margin.
25355 To avoid this, add via the menu
25357 Insert\SpecialChar \menuseparator
25358 Special\InsetSpace ~
25359 Formatting\SpecialChar \menuseparator
25367 ) a line break before the word:
25370 \begin_layout Standard
25371 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25379 \begin_layout Standard
25392 \begin_layout Standard
25402 \begin_layout Subsection
25404 \begin_inset LatexCommand label
25405 name "sub:Vertical-Alignment"
25410 \begin_inset LatexCommand index
25411 name "Boxes ! for Vertical Alignment"
25416 \begin_inset LatexCommand index
25417 name "Boxes ! Raiseboxes"
25424 \begin_layout Standard
25425 With the help of the command
25431 you can align words, characters or other boxes vertically to the surrounding
25439 is used with the following scheme:
25442 \begin_layout Standard
25447 raisebox{lift}[height][depth]{box content}
25450 \begin_layout Standard
25451 The lift can be a positive value to raise the box or a negative value to
25455 \begin_layout Standard
25456 To align for example the word
25457 \begin_inset Quotes eld
25461 \begin_inset Quotes erd
25464 so that the bottom of the
25465 \begin_inset Quotes eld
25469 \begin_inset Quotes erd
25473 \begin_inset Quotes eld
25477 \begin_inset Quotes erd
25480 is at the baseline, insert the command
25483 \begin_layout Standard
25493 \begin_layout Standard
25494 in ERT before the word.
25495 Behind the word insert a closing brace
25496 \begin_inset Quotes eld
25504 \begin_inset Quotes erd
25509 This is the result:
25512 \begin_layout Standard
25513 This is a text line with the word
25517 \begin_layout Standard
25529 \begin_inset Quotes eld
25533 \begin_inset Quotes erd
25540 \begin_layout Standard
25550 \begin_layout Standard
25551 \begin_inset VSpace bigskip
25554 When you raise or lower characters in a line, the line distance will be
25558 \begin_layout Standard
25559 This is a text line with the word
25563 \begin_layout Standard
25575 \begin_inset Quotes eld
25579 \begin_inset Quotes erd
25586 \begin_layout Standard
25595 This is a text line with the word
25599 \begin_layout Standard
25609 \begin_inset Quotes eld
25613 \begin_inset Quotes erd
25620 \begin_layout Standard
25630 \begin_layout Standard
25631 If you want to prevent this for a certain reason, set the box height to
25636 \begin_layout Standard
25646 \begin_layout Standard
25647 This is a text line with the word
25651 \begin_layout Standard
25663 \begin_inset Quotes eld
25667 \begin_inset Quotes erd
25674 \begin_layout Standard
25683 This is a text line with the word
25687 \begin_layout Standard
25691 raisebox{0.5cm}[0pt]{
25697 \begin_inset Quotes eld
25701 \begin_inset Quotes erd
25708 \begin_layout Standard
25718 \begin_layout Section
25720 \begin_inset LatexCommand label
25721 name "sec:Colored-Boxes"
25726 \begin_inset LatexCommand index
25727 name "Boxes ! Color"
25734 \begin_layout Subsection
25736 \begin_inset LatexCommand index
25737 name "Color ! for Text"
25744 \begin_layout Standard
25745 To color the background of text the text must be put into a so called colorbox.
25746 This requires that the LaTeX-package
25751 \begin_inset LatexCommand index
25752 name "LaTeX-packages ! color"
25756 is loaded in the document preamble with the command
25759 \begin_layout Standard
25764 @ifundef\SpecialChar \textcompwordmark{}
25771 \begin_layout Standard
25782 usepackage{color}}{}
25785 \begin_layout Standard
25790 will be loaded automatically by LyX when you color text
25794 \begin_layout Standard
25795 To avoid that it is loaded twice the command
25799 @ifundef\SpecialChar \textcompwordmark{}
25810 \begin_layout Standard
25811 \begin_inset VSpace medskip
25814 Colorboxes are created with the command
25821 This will be used with the following scheme:
25824 \begin_layout Standard
25829 colorbox{color}{box content}
25832 \begin_layout Standard
25833 The box content can also be a box and colorboxes can also be within other
25837 \begin_layout Standard
25838 The following colors are predefined:
25877 You can also define your own color as described in section\InsetSpace ~
25879 \begin_inset LatexCommand ref
25880 reference "sec:Colored-Tables"
25887 \begin_layout Standard
25888 To have e.\InsetSpace \thinspace{}
25890 a red background for a word, insert the command
25893 \begin_layout Standard
25901 \begin_layout Standard
25902 before the word in ERT.
25903 Behind the word insert a closing brace
25904 \begin_inset Quotes eld
25912 \begin_inset Quotes erd
25917 This is the result:
25920 \begin_layout Standard
25921 This is a line where the word
25925 \begin_layout Standard
25935 \begin_inset Quotes eld
25939 \begin_inset Quotes erd
25946 \begin_layout Standard
25953 has a red background.
25956 \begin_layout Standard
25957 \begin_inset VSpace bigskip
25960 If you would have the box frame in a different color, you can use the command
25967 with the following scheme:
25970 \begin_layout Standard
25975 fcolorbox{frame color}{box color}{box content}
25978 \begin_layout Standard
25992 The frame thickness and the space between the frame and the box content
25993 can be adjusted with the lengths
26005 , respectively, as described in section\InsetSpace ~
26007 \begin_inset LatexCommand ref
26008 reference "sec:Framed-Boxes"
26015 \begin_layout Standard
26016 For the following example the command
26019 \begin_layout Standard
26024 fcolorbox{cyan}{magenta}{
26027 \begin_layout Standard
26031 \begin_layout Standard
26032 Here is an example where the frame line thickness was set to 1\InsetSpace \thinspace{}
26039 \begin_layout Standard
26054 \begin_layout Standard
26058 fcolorbox{cyan}{magenta}{
26063 This is text within a colored, framed box.
26067 \begin_layout Standard
26077 \begin_layout Standard
26078 \begin_inset VSpace bigskip
26081 Of course you can also have colored text inside a colorbox:
26087 \begin_layout Standard
26091 fcolorbox{cyan}{magenta}{
26098 This is colored text within a colored, framed box.
26104 \begin_layout Standard
26115 \begin_layout Standard
26129 \begin_layout Standard
26132 \begin_inset VSpace medskip
26138 \begin_layout Standard
26139 \begin_inset Note Greyedout
26142 \begin_layout Standard
26147 Text in colorboxes cannot have line breaks.
26148 To color multiple text lines or paragraphs, use a box inside a colorbox
26149 as described in the following.
26157 \begin_layout Subsection
26158 Color for Paragraphs
26159 \begin_inset LatexCommand label
26160 name "sub:Color-for-Paragraphs"
26165 \begin_inset LatexCommand index
26166 name "Color ! for Paragraphs"
26173 \begin_layout Standard
26174 To set the background color for more than one text line, put the text into
26176 Before the minipage insert the
26185 \begin_layout Standard
26193 \begin_layout Standard
26195 Behind the minipage insert a closing brace
26196 \begin_inset Quotes eld
26204 \begin_inset Quotes erd
26210 \begin_layout Standard
26214 \begin_layout Standard
26218 colorbox{lightgrey}{
26224 \begin_inset Box Frameless
26233 height_special "totalheight"
26236 \begin_layout Standard
26237 This is text with background color.
26238 This is text with background color.
26241 \begin_layout Standard
26242 \begin_inset VSpace defskip
26245 The text can have footnotes
26249 \begin_layout Standard
26250 Another example footnote
26255 and can include tables and figures.
26258 \begin_layout Standard
26260 \begin_inset Tabular
26261 <lyxtabular version="3" rows="3" columns="3">
26263 <column alignment="center" valignment="top" leftline="true" width="0">
26264 <column alignment="center" valignment="top" leftline="true" width="0">
26265 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
26266 <row topline="true">
26267 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26270 \begin_layout Standard
26276 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26279 \begin_layout Standard
26285 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26288 \begin_layout Standard
26295 <row topline="true">
26296 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26299 \begin_layout Standard
26305 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26308 \begin_layout Standard
26310 \begin_inset Quotes erd
26318 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26321 \begin_layout Standard
26328 <row topline="true" bottomline="true">
26329 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26332 \begin_layout Standard
26338 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26341 \begin_layout Standard
26347 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26350 \begin_layout Standard
26370 \begin_layout Standard
26380 \begin_layout Section
26381 URLs (Uniform Resource Locators)
26382 \begin_inset LatexCommand index
26390 \begin_layout Standard
26391 Links to web pages or email addresses can be inserted via the menu
26393 Insert\SpecialChar \menuseparator
26397 The appearing URL dialog has two fields; the
26405 field for the URL description, which will be typeset as plain text immediately
26409 \begin_layout Standard
26410 Here is an example URL:
26411 \begin_inset LatexCommand url
26412 name "LyX's homepage"
26413 target "http://www.lyx.org"
26420 \begin_layout Standard
26423 Generate\InsetSpace ~
26426 in the URL dialog has only an affect when you export your document to the
26428 \begin_inset Quotes eld
26436 \begin_inset Quotes erd
26442 \begin_layout Standard
26443 You cannot change the style of the link text.
26448 field will have the default text style of the document while the text of
26453 field will have the style
26454 \begin_inset Quotes eld
26462 \begin_inset Quotes erd
26468 \begin_layout Standard
26469 When you use the LaTeX-package
26474 \begin_inset LatexCommand index
26475 name "LaTeX-packages ! hyperref"
26479 to link cross-references in the output, URLs will automatically become
26480 clickable hyperlinks in DVI and PDF-output.
26483 \begin_layout Standard
26484 \begin_inset Note Greyedout
26487 \begin_layout Standard
26492 When you use the following characters: "%", "#", "^", you have to write
26493 them with a preceding backslash, e.\InsetSpace \thinspace{}
26496 \begin_inset Quotes eld
26502 \begin_inset Quotes erd
26506 URLs must not end with a backslash.
26514 \begin_layout Standard
26515 \begin_inset VSpace bigskip
26518 To create real hyperlinks without the force to write the link location to
26519 the text, you can use the command
26522 \begin_layout Standard
26527 href{link location}{link text}
26530 \begin_layout Standard
26532 To get for example a link to LyX's web page, write the command
26535 \begin_layout Standard
26540 href{http://www.lyx.org}{
26543 \begin_layout Standard
26545 Insert after the command the link text
26546 \begin_inset Quotes eld
26550 \begin_inset Quotes erd
26553 as normal text followed by a closing brace
26554 \begin_inset Quotes eld
26562 \begin_inset Quotes erd
26566 This is the result:
26570 \begin_layout Standard
26574 href{http://www.lyx.org}{
26583 \begin_layout Standard
26593 \begin_layout Standard
26594 To link to email addresses, add the prefix
26595 \begin_inset Quotes eld
26603 \begin_inset Quotes erd
26606 to the link location:
26612 \begin_layout Standard
26616 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's documentation}{
26621 lyx-docs mailing list
26625 \begin_layout Standard
26635 \begin_layout Standard
26642 instead of LyX's URL box has the advantage that you can specify the text
26643 style of the link text like for all other text parts.
26644 You can therefore set hyphenation points and forced linebreaks to have
26645 long link text broken at the page margin.
26646 You are furthermore able to change the text style for all URLs in your
26647 document with an option in
26651 's load command and the restrictions mentioned above doesn't apply for
26660 \begin_layout Chapter
26662 \begin_inset LatexCommand index
26663 name "External Stuff"
26670 \begin_layout Standard
26673 Insert\SpecialChar \menuseparator
26676 you can insert external material to your document.
26680 \begin_layout Description
26682 Document Another LyX document; its content is directly inserted to your
26686 \begin_layout Description
26688 Text A text document; every of its text lines is inserted to your document
26692 \begin_layout Description
26696 Lines A text document; its text lines are inserted as they
26698 Empty text lines creates a new paragraph in your document.
26701 \begin_layout Description
26702 External\InsetSpace ~
26703 Material Files in various formats.
26706 \begin_layout Description
26708 Document LyX or LaTeX-documents.
26711 \begin_layout Section
26713 \begin_inset LatexCommand index
26714 name "External Stuff ! External Material"
26721 \begin_layout Standard
26722 The external material feature allows you to insert files to your document
26723 without converting them previously to a format that can be read by the
26724 document output format because LyX takes care of needed conversions.
26725 This is similar to images that can be inserted in various image formats
26729 \begin_layout Standard
26730 External material can be inserted via the
26734 dialog that is accessible with the menu
26736 Insert\SpecialChar \menuseparator
26737 File\SpecialChar \menuseparator
26738 External\InsetSpace ~
26742 Currently the following file types (
26749 \begin_layout Description
26750 ChessDiagram This template supports chess position diagrams made with the
26755 \begin_layout Standard
26759 href{http://en.wikipedia.org/wiki/XBoard}{
26772 \begin_layout Standard
26782 \begin_layout Description
26783 Date This inserts the date in the form
26788 This is a date inserted as external material:
26789 \begin_inset External
26797 The date is not shown within LyX, only in the output.
26798 There are two other methods of inserting a date, via menu
26800 Insert\SpecialChar \menuseparator
26803 and with the LaTeX command
26810 The different methods are compared in Table\InsetSpace ~
26812 \begin_inset LatexCommand ref
26813 reference "tab:Comparison-of-the"
26820 \begin_layout Description
26821 LilyPond This template is used for music notation typeset with the program
26825 \begin_layout Standard
26838 \begin_layout Standard
26842 href{http://en.wikipedia.org/wiki/LilyPond}{
26855 \begin_layout Standard
26863 \begin_inset Note Note
26866 \begin_layout Standard
26873 breaks the line while the remaining text in the line is stretched to the
26882 \begin_layout Description
26883 RasterImage This can be used for bitmap images.
26884 Nearly all popular image formats are supported.
26885 The image can be treated in the
26889 dialog like the images that are usually included via the
26893 dialog as described in section\InsetSpace ~
26895 \begin_inset LatexCommand ref
26896 reference "sec:Graphics-Dialog"
26901 The difference is that only raster images are allowed, that means that
26902 PDF and EPS-images are not supported.
26905 \begin_layout Description
26906 XFig This template supports images created with the program
26910 \begin_layout Standard
26914 href{http://en.wikipedia.org/wiki/Xfig}{
26927 \begin_layout Standard
26937 \begin_layout Standard
26938 \begin_inset Float table
26944 \begin_layout Standard
26945 \begin_inset Caption
26947 \begin_layout Standard
26948 \begin_inset LatexCommand label
26949 name "tab:Comparison-of-the"
26953 Comparison of the date input methods.
26961 \begin_layout Standard
26963 \begin_inset Tabular
26964 <lyxtabular version="3" rows="4" columns="4">
26966 <column alignment="center" valignment="top" leftline="true" width="0">
26967 <column alignment="center" valignment="top" leftline="true" width="0">
26968 <column alignment="center" valignment="top" leftline="true" width="0">
26969 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
26970 <row topline="true">
26971 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26974 \begin_layout Standard
26980 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26983 \begin_layout Standard
26986 External Material\SpecialChar \menuseparator
26992 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26995 \begin_layout Standard
26998 Insert\SpecialChar \menuseparator
27004 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27007 \begin_layout Standard
27018 <row topline="true">
27019 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27022 \begin_layout Standard
27028 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27031 \begin_layout Standard
27037 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27040 \begin_layout Standard
27046 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27049 \begin_layout Standard
27056 <row topline="true">
27057 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27060 \begin_layout Standard
27066 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27069 \begin_layout Standard
27075 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27078 \begin_layout Standard
27084 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27087 \begin_layout Standard
27094 <row topline="true" bottomline="true">
27095 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27098 \begin_layout Standard
27104 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27107 \begin_layout Standard
27113 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27116 \begin_layout Standard
27122 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27125 \begin_layout Standard
27144 \begin_layout Standard
27145 When you use the option
27157 dialog, only the path to the inserted file is shown in the output.
27160 material is displayed in LyX either as box like this:
27161 \begin_inset Graphics
27162 filename clipart/ExternalMaterialQt4.png
27167 or as image, depending on the setting in the
27179 \begin_layout Standard
27186 manual explains how you can define your own templates.
27189 \begin_layout Section
27191 \begin_inset LatexCommand index
27192 name "External Stuff ! Child Documents"
27197 \begin_inset LatexCommand index
27198 name "Files ! Include"
27205 \begin_layout Standard
27206 Child documents are used when you have a long document consisting of several
27207 larger parts or sections.
27208 For maintenance it is often useful and sometimes even required to split
27209 the document in several files that can be revised separately.
27210 The different documents are then the so called child documents and a master
27211 document connects them to print the full document or parts of it.
27214 \begin_layout Standard
27215 Included documents are displayed in LyX as a box like this:
27216 \begin_inset Graphics
27217 filename clipart/ChildDocumentQt4.png
27222 To include child documents to a master document use the menu
27224 Insert\SpecialChar \menuseparator
27225 File\SpecialChar \menuseparator
27230 A dialog pops up where you can choose between three include methods:
27233 \begin_layout Description
27234 Include You can include LyX and LaTeX-documents.
27243 dialog, the included documents will be opened in LyX in a new file tab
27244 so that you can modify it.
27249 \begin_layout Standard
27250 Here is a child document inserted using
27255 \begin_inset Include \include{DummyDocument1.lyx}
27263 \begin_layout Standard
27264 The section numbering includes the sections of the included files in the
27265 order they are inserted in the master document.
27266 The included example document has for example a subsection that is numbered
27267 as subsection of this section.
27268 Labels of included documents can be referenced: Subsection\InsetSpace ~
27270 \begin_inset LatexCommand ref
27271 reference "sub:External-Subsection-1"
27278 \begin_layout Standard
27279 The preamble of the child document is ignored, only the preamble of the
27280 master document is used.
27281 Included documents are inserted starting on a new page and end with a pagebreak.
27284 \begin_layout Standard
27285 With the LaTeX-command
27291 you can specify which included child documents are processed when the output
27293 This is useful when you are perhaps only working on a certain chapter of
27294 your large document as this saves compiling time.
27301 is inserted to the master document preamble.
27302 It takes a comma-separated list of the filenames as argument, e.g.
27305 \begin_layout Standard
27310 includeonly{chapter1,chapter5}
27313 \begin_layout Standard
27314 will only process the included files named
27315 \begin_inset Quotes eld
27319 \begin_inset Quotes erd
27323 \begin_inset Quotes eld
27327 \begin_inset Quotes erd
27331 \begin_inset Quotes eld
27335 \begin_inset Quotes erd
27341 \begin_layout Standard
27342 \begin_inset Note Greyedout
27345 \begin_layout Standard
27350 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
27351 w the document in case that the child document uses another document class
27352 than the master document as this will lead to unexpected outputs.
27360 \begin_layout Description
27361 Input This method is very similar to the Include method.
27362 The differences are:
27366 \begin_layout Itemize
27367 Input files don't start with a new page and don't end with a pagebreak.
27370 \begin_layout Itemize
27371 Input files can be previewed in LyX when
27373 Instant\InsetSpace ~
27376 is enabled in LyX's preferences under
27380 feel\SpecialChar \menuseparator
27386 \begin_layout Itemize
27397 \begin_layout Standard
27398 Here is a child document inserted using
27403 \begin_inset Include \input{DummyDocument2.lyx}
27411 \begin_layout Description
27412 Verbatim With this method every text file can be included.
27413 The file is shown in the output with its source code, no command used in
27414 the text is invoked.
27415 You can use the option
27417 Mark spaces in output
27419 that displays the character
27420 \begin_inset Quotes eld
27427 \begin_layout Standard
27437 \begin_inset Quotes erd
27440 for every space character in the source code.
27441 The difference to the method via the menu
27443 Insert\SpecialChar \menuseparator
27444 File\SpecialChar \menuseparator
27448 is that the document content is not shown in LyX.
27451 \begin_layout Standard
27452 Here is a child document inserted as Verbatim:
27453 \begin_inset Include \verbatiminput{DummyTextDocument.txt}
27459 \begin_inset VSpace bigskip
27462 Here is a child document inserted as Verbatim using the
27464 Mark spaces in output
27467 \begin_inset Include \verbatiminput*{DummyTextDocument.txt}
27475 \begin_layout Standard
27476 \begin_inset VSpace bigskip
27482 \begin_layout Standard
27483 \begin_inset Note Greyedout
27486 \begin_layout Standard
27491 As you can see in the examples above, the text of the documents included
27492 as verbatim is not broken at the end of the document lines.
27500 \begin_layout Standard
27501 \begin_inset Note Greyedout
27504 \begin_layout Standard
27509 Including the same document twice in a document using different methods
27510 could cause LaTeX-problems.
27518 \begin_layout Standard
27524 \begin_layout Chapter
27530 \begin_layout Standard
27543 \begin_layout Standard
27551 \begin_inset LatexCommand index
27557 \begin_inset LatexCommand label
27558 name "cha:Units-available-in"
27563 \begin_inset Note Note
27566 \begin_layout Standard
27569 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
27570 are displayed wrongly in PDF-bookmarks.
27571 For more information about this, have a look at
27572 \begin_inset LatexCommand cite
27585 \begin_layout Standard
27586 To understand the units described in this documentation, Table\InsetSpace ~
27588 \begin_inset LatexCommand ref
27589 reference "tab:Units"
27593 explains all units available in LyX.
27596 \begin_layout Standard
27597 \begin_inset Float table
27603 \begin_layout Standard
27604 \begin_inset Caption
27606 \begin_layout Standard
27607 \begin_inset LatexCommand label
27620 \begin_layout Standard
27621 \begin_inset VSpace medskip
27627 \begin_layout Standard
27629 \begin_inset Tabular
27630 <lyxtabular version="3" rows="20" columns="2">
27632 <column alignment="center" valignment="top" leftline="true" width="0">
27633 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27634 <row topline="true" bottomline="true">
27635 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27638 \begin_layout Standard
27644 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27647 \begin_layout Standard
27654 <row topline="true">
27655 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27658 \begin_layout Standard
27664 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27667 \begin_layout Standard
27674 <row topline="true">
27675 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27678 \begin_layout Standard
27684 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27687 \begin_layout Standard
27694 <row topline="true">
27695 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27698 \begin_layout Standard
27704 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27707 \begin_layout Standard
27714 <row topline="true">
27715 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27718 \begin_layout Standard
27724 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27727 \begin_layout Standard
27728 point (72.27\InsetSpace \thinspace{}
27729 pt = 1\InsetSpace \thinspace{}
27736 <row topline="true">
27737 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27740 \begin_layout Standard
27746 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27749 \begin_layout Standard
27750 pica (1\InsetSpace \thinspace{}
27751 pc = 12\InsetSpace \thinspace{}
27758 <row topline="true">
27759 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27762 \begin_layout Standard
27768 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27771 \begin_layout Standard
27772 scaled point (65536\InsetSpace \thinspace{}
27773 sp = 1\InsetSpace \thinspace{}
27780 <row topline="true">
27781 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27784 \begin_layout Standard
27790 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27793 \begin_layout Standard
27794 big point (72\InsetSpace \thinspace{}
27795 bp = 1\InsetSpace \thinspace{}
27802 <row topline="true">
27803 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27806 \begin_layout Standard
27812 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27815 \begin_layout Standard
27816 didot (72\InsetSpace \thinspace{}
27818 \begin_inset Formula $\approx$
27821 37.6\InsetSpace \thinspace{}
27828 <row topline="true">
27829 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27832 \begin_layout Standard
27838 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27841 \begin_layout Standard
27842 cicero (1\InsetSpace \thinspace{}
27843 cc = 12\InsetSpace \thinspace{}
27850 <row topline="true">
27851 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27854 \begin_layout Standard
27860 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27863 \begin_layout Standard
27864 % of original image width
27870 <row topline="true">
27871 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27874 \begin_layout Standard
27880 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27883 \begin_layout Standard
27890 <row topline="true">
27891 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27894 \begin_layout Standard
27900 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27903 \begin_layout Standard
27910 <row topline="true">
27911 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27914 \begin_layout Standard
27920 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27923 \begin_layout Standard
27930 <row topline="true">
27931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27934 \begin_layout Standard
27940 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27943 \begin_layout Standard
27950 <row topline="true">
27951 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27954 \begin_layout Standard
27960 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27963 \begin_layout Standard
27970 <row topline="true">
27971 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27974 \begin_layout Standard
27980 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27983 \begin_layout Standard
27990 <row topline="true">
27991 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27994 \begin_layout Standard
28000 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28003 \begin_layout Standard
28014 <row topline="true">
28015 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28018 \begin_layout Standard
28024 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28027 \begin_layout Standard
28038 <row topline="true" bottomline="true">
28039 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28042 \begin_layout Standard
28048 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28051 \begin_layout Standard
28052 math unit (1\InsetSpace \thinspace{}
28053 mu = 1/18\InsetSpace \thinspace{}
28072 \begin_layout Chapter
28073 Output File Formats with Graphics
28074 \begin_inset LatexCommand label
28075 name "cha:Output-File-Formats"
28082 \begin_layout Section
28084 \begin_inset LatexCommand index
28085 name "File Formats ! DVI"
28090 \begin_inset LatexCommand index
28091 name "DVI|see{File Formats}"
28098 \begin_layout Standard
28099 This file type has the extension
28100 \begin_inset Quotes eld
28108 \begin_inset Quotes erd
28113 \begin_inset Quotes eld
28117 \begin_inset Quotes erd
28120 (DVI), because it is completely portable; you can move them from one machine
28121 to another without needing to do any sort of conversion.
28122 At the time when this file-format was developed, this was no matter of
28124 DVIs are used for quick previews and as pre-stage for other output formats,
28128 \begin_layout Standard
28129 \begin_inset Note Greyedout
28132 \begin_layout Standard
28137 DVI-files doesn't contain images, they will only be a linked.
28142 So don't forget this, if you move your
28146 file to another computer.
28147 This property can also slow down your computer when you view the DVI.
28148 Because the DVI-viewer has to convert the image in the background to make
28149 it visible when you scroll in the DVI.
28150 So we recommend to use PDF for files with many images.
28153 \begin_layout Standard
28154 You can export your document to DVI by using the menu
28156 File\SpecialChar \menuseparator
28157 Export\SpecialChar \menuseparator
28161 You can view your document as DVI via the
28165 menu or by using the toolbar button
28166 \begin_inset Graphics
28167 filename ../images/buffer-view_dvi.xpm
28175 \begin_layout Section
28177 \begin_inset LatexCommand label
28178 name "sec:PostScript"
28183 \begin_inset LatexCommand index
28184 name "File Formats ! PostScript"
28189 \begin_inset LatexCommand index
28190 name "PostScript|see{File Formats}"
28197 \begin_layout Standard
28198 This file type has the extension
28199 \begin_inset Quotes eld
28207 \begin_inset Quotes erd
28211 PostScript was developed by the company
28215 as printer language.
28216 The file contains therefore commands that the printer uses to print the
28218 PostScript can be seen as
28219 \begin_inset Quotes eld
28222 programming language
28223 \begin_inset Quotes erd
28226 ; you can calculate with it and draw diagrams and images
28230 \begin_layout Standard
28231 If you are interested to learn more about this, have a look at the LaTeX-package
28237 \begin_inset LatexCommand cite
28248 Due to this ability, the files are often bigger than PDFs.
28251 \begin_layout Standard
28252 PostScript can only contain images in the format
28253 \begin_inset Quotes eld
28256 Encapsulated PostScript
28257 \begin_inset Quotes erd
28260 (EPS, file extension
28261 \begin_inset Quotes eld
28269 \begin_inset Quotes erd
28273 As LyX allows you to use any known image format in your document, it has
28274 to convert images in the background to EPS.
28275 If you have e.g 50 images in your document, LyX has to do 50 conversions
28276 whenever you view or export your document.
28277 This will slow down your work flow with LyX drastically.
28278 So if you plan to use PostScript, you can insert your images directly as
28279 EPS to avoid this problem.
28282 \begin_layout Standard
28283 You can export your document to PostScript using the menu
28285 File\SpecialChar \menuseparator
28286 Export\SpecialChar \menuseparator
28290 You can view your document as PostScript via the
28294 menu or by using the toolbar button
28295 \begin_inset Graphics
28296 filename ../images/buffer-view_ps.xpm
28304 \begin_layout Section
28306 \begin_inset LatexCommand label
28312 \begin_inset LatexCommand index
28313 name "File Formats ! PDF"
28318 \begin_inset LatexCommand index
28326 \begin_layout Standard
28327 This file type has the extension
28328 \begin_inset Quotes eld
28336 \begin_inset Quotes erd
28341 \begin_inset Quotes eld
28344 Portable Document Format
28345 \begin_inset Quotes erd
28348 (PDF) is developed by
28352 as derivative from PostScript.
28353 It is more compressed and it uses much less commands than PostScript.
28355 \begin_inset Quotes eld
28359 \begin_inset Quotes erd
28362 implies, it can be processed at any computer system and the printed output
28363 looks exactly the same.
28366 \begin_layout Standard
28367 PDF can contain images in its own PDF format, in the format
28368 \begin_inset Quotes eld
28371 Joint Photographic Experts Group
28372 \begin_inset Quotes erd
28375 (JPG, file extension
28376 \begin_inset Quotes eld
28384 \begin_inset Quotes erd
28388 \begin_inset Quotes eld
28396 \begin_inset Quotes erd
28399 ), and in the format
28400 \begin_inset Quotes eld
28403 Portable Network Graphics
28404 \begin_inset Quotes erd
28407 (PNG, file extension
28408 \begin_inset Quotes eld
28416 \begin_inset Quotes erd
28420 You can although use any other image format, because LyX converts them
28421 in the background to one of these formats.
28422 But as described in the section about PostScript, the image conversion
28423 will slow down your work flow.
28424 So it is recommended to use images in one of the three mentioned formats.
28427 \begin_layout Standard
28428 You can export your document to PDF via the menu
28430 File\SpecialChar \menuseparator
28433 in three different ways:
28436 \begin_layout Description
28437 PDF This uses the program
28441 that creates a PDF from a PostScript-version of your file.
28442 The PostScript-version is produced by the program
28446 which uses a DVI-version as intermediate step.
28447 So this export variant consist of three conversions.
28450 \begin_layout Description
28452 (dvipdfm) This uses the program
28456 that converts your file in the background to DVI and in a second step to
28460 \begin_layout Description
28462 (pdflatex) This uses the program
28466 that converts your file directly to PDF.
28469 \begin_layout Standard
28470 It is recommended to use
28479 supports all features of actual PDF-versions, is quick and works stable
28485 is not under development and therefore a bit outdated.
28488 \begin_layout Standard
28489 You can view your document as PDF via the
28493 menu or by using the toolbar button
28494 \begin_inset Graphics
28495 filename ../images/buffer-view_pdf2.xpm
28512 \begin_layout Chapter
28513 Explanation of Equation\InsetSpace ~
28515 \begin_inset LatexCommand eqref
28521 \begin_inset LatexCommand label
28522 name "cha:Explanation-of-Equation"
28529 \begin_layout Standard
28535 \begin_inset Formula $W_{\mathrm{tot\, n}}$
28538 can be calculated to
28541 \begin_layout Standard
28542 \begin_inset Formula \begin{equation}
28543 W_{\mathrm{tot}\, n}=n·(W_{g\, n}+2·\backslash\mbox{tabcolsep})+(n+1)·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}\end{equation}
28550 \begin_layout Standard
28552 \begin_inset Formula $W_{g\, n}$
28555 is the given width of all cells.
28562 is the LaTeX-length between the cell text and the cell border, its default
28563 value is 6\InsetSpace \thinspace{}
28571 is the thickness of the cell border line, the default is 0.4\InsetSpace \thinspace{}
28575 \begin_layout Standard
28576 Following equation\InsetSpace ~
28578 \begin_inset LatexCommand eqref
28579 reference "eq:Wtot_n"
28583 , the total width of a multicolumn
28584 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
28590 \begin_layout Standard
28591 \begin_inset Formula \begin{equation}
28592 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2·\backslash\mbox{tabcolsep}+2·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
28599 \begin_layout Standard
28600 By setting equation\InsetSpace ~
28602 \begin_inset LatexCommand eqref
28603 reference "eq:Wtot_n"
28608 \begin_inset LatexCommand eqref
28609 reference "eq:Wtot_mult"
28613 equal we can calculate the needed given width
28614 \begin_inset Formula $W_{g\, n}$
28621 columns are spanned, so that each column has a total width of
28622 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
28628 \begin_layout Standard
28629 \begin_inset Formula \begin{equation}
28630 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)·(2·\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
28637 \begin_layout Bibliography
28638 \begin_inset LatexCommand bibitem
28639 key "latexcompanion"
28643 Frank Mittelbach and Michel Goossens:
28645 The LaTeX Companion Second Edition.
28648 Addison-Wesley, 2004
28651 \begin_layout Bibliography
28652 \begin_inset LatexCommand bibitem
28657 Helmut Kopka and Patrick W.
28660 A Guide to LaTeX Fourth Edition.
28663 Addison-Wesley, 2003
28666 \begin_layout Bibliography
28667 \begin_inset LatexCommand bibitem
28674 LaTeX: A Document Preparation System.
28677 Addison-Wesley, second edition, 1994
28680 \begin_layout Bibliography
28681 \begin_inset LatexCommand bibitem
28690 \begin_layout Standard
28694 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf}
28704 \begin_layout Standard
28711 of the LaTeX-package
28716 \begin_inset LatexCommand index
28717 name "LaTeX-packages ! booktabs"
28724 \begin_layout Bibliography
28725 \begin_inset LatexCommand bibitem
28734 \begin_layout Standard
28738 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf}{
28747 \begin_layout Standard
28754 of the LaTeX-package
28759 \begin_inset LatexCommand index
28760 name "LaTeX-packages ! caption"
28767 \begin_layout Bibliography
28768 \begin_inset LatexCommand bibitem
28777 \begin_layout Standard
28781 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/anleitung.pdf}
28791 \begin_layout Standard
28798 of the LaTeX-package
28803 \begin_layout Bibliography
28804 \begin_inset LatexCommand bibitem
28813 \begin_layout Standard
28817 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf}
28827 \begin_layout Standard
28834 of the LaTeX-package
28836 endf\SpecialChar \textcompwordmark{}
28840 \begin_inset LatexCommand index
28841 name "LaTeX-packages ! endfloat"
28848 \begin_layout Bibliography
28849 \begin_inset LatexCommand bibitem
28858 \begin_layout Standard
28862 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/floatflt/floatflt.pdf}
28872 \begin_layout Standard
28879 of the LaTeX-package
28881 floatf\SpecialChar \textcompwordmark{}
28885 \begin_inset LatexCommand index
28886 name "LaTeX-packages ! floatflt"
28893 \begin_layout Bibliography
28894 \begin_inset LatexCommand bibitem
28903 \begin_layout Standard
28907 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf}
28917 \begin_layout Standard
28924 of the LaTeX-package
28929 \begin_inset LatexCommand index
28930 name "LaTeX-packages ! footmisc"
28937 \begin_layout Bibliography
28938 \begin_inset LatexCommand bibitem
28947 \begin_layout Standard
28951 href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf}{
28960 \begin_layout Standard
28967 of the LaTeX-package
28972 \begin_inset LatexCommand index
28973 name "LaTeX-packages ! hyperref"
28980 \begin_layout Bibliography
28981 \begin_inset LatexCommand bibitem
28990 \begin_layout Standard
28994 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf}
29004 \begin_layout Standard
29011 of the LaTeX-package
29016 \begin_inset LatexCommand index
29017 name "LaTeX-packages ! hyperref"
29024 \begin_layout Bibliography
29025 \begin_inset LatexCommand bibitem
29034 \begin_layout Standard
29038 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.p
29048 \begin_layout Standard
29055 of the LaTeX-package
29060 \begin_inset LatexCommand index
29061 name "LaTeX-packages ! koma-script"
29068 \begin_layout Bibliography
29069 \begin_inset LatexCommand bibitem
29070 key "koma-script-de"
29078 \begin_layout Standard
29082 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguide.p
29092 \begin_layout Standard
29099 of the LaTeX-package
29104 \begin_inset LatexCommand index
29105 name "LaTeX-packages ! koma-script"
29112 \begin_layout Bibliography
29113 \begin_inset LatexCommand bibitem
29122 \begin_layout Standard
29126 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.
29136 \begin_layout Standard
29143 of the LaTeX-package
29148 \begin_inset LatexCommand index
29149 name "LaTeX-packages ! marginnote"
29156 \begin_layout Bibliography
29157 \begin_inset LatexCommand bibitem
29166 \begin_layout Standard
29170 href{http://tug.org/PSTricks/main.cgi/}{
29179 \begin_layout Standard
29186 of the LaTeX-package
29191 \begin_inset LatexCommand index
29192 name "LaTeX-packages ! PSTricks"
29199 \begin_layout Bibliography
29200 \begin_inset LatexCommand bibitem
29209 \begin_layout Standard
29213 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf}{
29222 \begin_layout Standard
29229 of the LaTeX-package
29234 \begin_inset LatexCommand index
29235 name "LaTeX-packages ! sidecap"
29242 \begin_layout Bibliography
29243 \begin_inset LatexCommand bibitem
29252 \begin_layout Standard
29256 href{http://wiki.lyx.org/LyX/NewInLyX15}{
29265 \begin_layout Standard
29272 about new LyX-features planned for the release
29279 \begin_layout Standard
29280 \begin_inset LatexCommand printindex
29287 \begin_layout Standard
29288 \begin_inset FloatList figure
29295 \begin_layout Standard
29296 \begin_inset FloatList table