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 the second and third alignment some tricks were used.
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{×}{\times}{-1}|">
15372 <column alignment="center" valignment="top" width="0" special="D{×}{\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 12×24\InsetSpace \thinspace{}
15414 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15417 \begin_layout Standard
15418 12×24\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
15433 \begin_inset Formula $\mbox{bottles}$
15443 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15446 \begin_layout Standard
15447 1024×768\InsetSpace \thinspace{}
15453 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15456 \begin_layout Standard
15457 1024×768\InsetSpace \thinspace{}
15459 \begin_inset Formula $\mbox{Pixels}$
15467 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15470 \begin_layout Standard
15472 \begin_inset Formula $\mbox{Pixels}$
15482 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15485 \begin_layout Standard
15486 32×6\InsetSpace \thinspace{}
15492 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15495 \begin_layout Standard
15496 32×6\InsetSpace \thinspace{}
15498 \begin_inset Formula $\mbox{cm}$
15506 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15509 \begin_layout Standard
15511 \begin_inset Formula $\mbox{cm}$
15532 \begin_layout Subsection
15533 Customized Cell/Column Format
15534 \begin_inset LatexCommand label
15535 name "sub:Customized-Format"
15540 \begin_inset LatexCommand index
15541 name "Table Customization ! Cell/Column Format"
15548 \begin_layout Standard
15549 Calculating the needed width for spanned columns like in section\InsetSpace ~
15551 \begin_inset LatexCommand ref
15552 reference "sub:Multicolumn-Calculations"
15556 is very annoying if you have several tables with multicolumn cells.
15557 To make life easier, you can define a cell/column format in the preamble,
15558 so that it can be used in all tables of the document.
15559 The format is defined with the command
15562 \begin_layout Standard
15567 newcolumntype{name of format}[number of arguments]{commands}
15570 \begin_layout Standard
15571 The format name may only consist of one letter.
15596 are predefined and cannot be used.
15597 But all letters are allowed as capitals.
15600 \begin_layout Standard
15601 \begin_inset VSpace medskip
15607 \begin_layout Standard
15608 For vertically and horizontally centered multicolumn cells with a fixed
15609 width you can define the cell format
15612 \begin_layout Standard
15617 newcolumntype{M}[1]{>{
15624 \begin_layout Standard
15631 avoids the problem of hyphenating the first word, as described in section\InsetSpace ~
15633 \begin_inset LatexCommand ref
15634 reference "sub:Multiple-Lines-in"
15639 Now you can simply enter
15642 \begin_layout Standard
15648 \begin_layout Standard
15649 as LaTeX-argument in the table dialog to create a multicolumn.
15652 \begin_layout Standard
15653 \begin_inset VSpace bigskip
15659 \begin_layout Standard
15660 For cells spanned by a multicolumn cell, you can define the format
15663 \begin_layout Standard
15668 newcolumntype{S}[2]{>{
15678 \begin_layout Standard
15689 newcolumntype{S}[2]
15693 \begin_layout Standard
15704 arrayrulewidth)*(1-#2))/#2}}
15707 \begin_layout Standard
15708 This format uses equation
15709 \begin_inset LatexCommand eqref
15714 to calculate the needed width so that each spanned cell has the same width.
15717 \begin_layout Standard
15721 \begin_layout Standard
15724 |S{width of multicolumn cell}{number of spanned columns}
15727 \begin_layout Standard
15728 as LaTeX-argument of the column.
15731 \begin_layout Standard
15732 \begin_inset VSpace bigskip
15738 \begin_layout Standard
15739 For colored columns, you can define
15742 \begin_layout Standard
15747 newcolumntype{K}[1]{>{
15754 \begin_layout Standard
15756 \begin_inset Quotes eld
15760 \begin_inset Quotes erd
15763 at the end creates a column with a flexible width whose text is horizontally
15768 \begin_layout Standard
15774 \begin_layout Standard
15778 \begin_layout Standard
15779 \begin_inset VSpace bigskip
15785 \begin_layout Standard
15786 To create Table\InsetSpace ~
15788 \begin_inset LatexCommand ref
15789 reference "tab:Table-using-user-defined"
15793 use the LaTeX-arguments
15796 \begin_layout Standard
15802 \begin_layout Standard
15803 for the first column and the multicolumn,
15806 \begin_layout Standard
15812 \begin_layout Standard
15813 for the the last column, and
15816 \begin_layout Standard
15822 \begin_layout Standard
15823 for the cells in the second column.
15826 \begin_layout Standard
15827 \begin_inset Float table
15833 \begin_layout Standard
15834 \begin_inset Caption
15836 \begin_layout Standard
15837 \begin_inset LatexCommand label
15838 name "tab:Table-using-user-defined"
15842 Table using user-defined table formats
15850 \begin_layout Standard
15852 \begin_inset Tabular
15853 <lyxtabular version="3" rows="3" columns="4">
15855 <column alignment="center" valignment="middle" leftline="true" width="2.5cm" special="|M{2.5cm}">
15856 <column alignment="center" valignment="middle" leftline="true" width="0" special="|S{2.5cm}{2}">
15857 <column alignment="center" valignment="middle" leftline="true" width="0">
15858 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0" special="|K{red}|">
15859 <row topline="true">
15860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15863 \begin_layout Standard
15864 verylongtablecellword
15869 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none" special="M{2.5cm}|">
15872 \begin_layout Standard
15873 multiple lines multicolumn
15878 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15881 \begin_layout Standard
15887 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15890 \begin_layout Standard
15897 <row topline="true">
15898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15901 \begin_layout Standard
15907 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15910 \begin_layout Standard
15916 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15919 \begin_layout Standard
15925 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15928 \begin_layout Standard
15935 <row topline="true" bottomline="true">
15936 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15939 \begin_layout Standard
15945 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15948 \begin_layout Standard
15954 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15957 \begin_layout Standard
15963 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15966 \begin_layout Standard
15985 \begin_layout Subsection
15987 \begin_inset LatexCommand label
15988 name "sub:Line-Thickness"
15993 \begin_inset LatexCommand index
15994 name "Table Customization ! Line Thickness"
16001 \begin_layout Standard
16002 The line thickness for all lines in a table can be adjusted with the length
16010 To set for example a line thickness of 1.5\InsetSpace \thinspace{}
16011 pt, like in Table\InsetSpace ~
16013 \begin_inset LatexCommand ref
16014 reference "tab:Table-with-1.5"
16018 , insert the command
16021 \begin_layout Standard
16028 arrayrulewidth}{1.5pt}
16031 \begin_layout Standard
16032 in ERT before the table or table float.
16033 The changed thickness is valid for all following tables.
16034 To use the default value again, set
16040 to 0.4\InsetSpace \thinspace{}
16041 pt in ERT behind the table or table float.
16044 \begin_layout Standard
16048 \begin_layout Standard
16054 arrayrulewidth}{1.5pt}
16060 \begin_inset Float table
16065 \begin_layout Standard
16066 \begin_inset Caption
16068 \begin_layout Standard
16069 \begin_inset LatexCommand label
16070 name "tab:Table-with-1.5"
16074 Table with 1.5\InsetSpace \thinspace{}
16083 \begin_layout Standard
16085 \begin_inset Tabular
16086 <lyxtabular version="3" rows="3" columns="3">
16088 <column alignment="center" valignment="top" leftline="true" width="0">
16089 <column alignment="center" valignment="top" leftline="true" width="0">
16090 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16091 <row topline="true">
16092 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16095 \begin_layout Standard
16101 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16104 \begin_layout Standard
16110 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16113 \begin_layout Standard
16120 <row topline="true">
16121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16124 \begin_layout Standard
16130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16133 \begin_layout Standard
16139 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16142 \begin_layout Standard
16149 <row topline="true" bottomline="true">
16150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16153 \begin_layout Standard
16159 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16162 \begin_layout Standard
16168 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16171 \begin_layout Standard
16191 \begin_layout Standard
16197 arrayrulewidth}{0.4pt}
16205 \begin_layout Standard
16206 \begin_inset VSpace bigskip
16209 To set the line thickness to 1.5\InsetSpace \thinspace{}
16210 pt only for horizontal lines, like in Table\InsetSpace ~
16212 \begin_inset LatexCommand ref
16213 reference "tab:Table-with-horizontal"
16217 , insert these commands in ERT before the table or table float:
16220 \begin_layout Standard
16243 arrayrulewidth 1.5pt}
16253 arrayrulewidth 0.4pt}}
16256 \begin_layout Standard
16257 To return to the default line thickness, insert this command in ERT behind
16258 the table or table float:
16261 \begin_layout Standard
16273 \begin_layout Standard
16277 \begin_layout Standard
16288 \begin_layout Standard
16297 \begin_layout Standard
16305 arrayrulewidth 1.5pt}
16308 \begin_layout Standard
16318 arrayrulewidth 0.4pt}}
16324 \begin_inset Float table
16329 \begin_layout Standard
16330 \begin_inset Caption
16332 \begin_layout Standard
16333 \begin_inset LatexCommand label
16334 name "tab:Table-with-horizontal"
16338 Table with 1.5\InsetSpace \thinspace{}
16339 pt thick horizontal lines
16347 \begin_layout Standard
16349 \begin_inset Tabular
16350 <lyxtabular version="3" rows="3" columns="3">
16352 <column alignment="center" valignment="top" leftline="true" width="0">
16353 <column alignment="center" valignment="top" leftline="true" width="0">
16354 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16355 <row topline="true">
16356 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16359 \begin_layout Standard
16365 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16368 \begin_layout Standard
16374 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16377 \begin_layout Standard
16384 <row topline="true">
16385 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16388 \begin_layout Standard
16394 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16397 \begin_layout Standard
16403 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16406 \begin_layout Standard
16413 <row topline="true" bottomline="true">
16414 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16417 \begin_layout Standard
16423 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16426 \begin_layout Standard
16432 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16435 \begin_layout Standard
16455 \begin_layout Standard
16471 \begin_layout Standard
16472 \begin_inset VSpace bigskip
16475 To set the line thickness to 1.5\InsetSpace \thinspace{}
16476 pt only for vertical lines, create the following
16477 column format in the document preamble, according to the description in
16478 section\InsetSpace ~
16480 \begin_inset LatexCommand ref
16481 reference "sub:Customized-Format"
16488 \begin_layout Standard
16493 newcolumntype{V}{!{
16495 vrule width 1.5pt}}
16498 \begin_layout Standard
16499 For Table\InsetSpace ~
16501 \begin_inset LatexCommand ref
16502 reference "tab:Table-with-vertical"
16509 \begin_layout Standard
16515 \begin_layout Standard
16516 was used for the last column and
16519 \begin_layout Standard
16525 \begin_layout Standard
16526 for the other columns.
16529 \begin_layout Standard
16530 \begin_inset Float table
16535 \begin_layout Standard
16536 \begin_inset Caption
16538 \begin_layout Standard
16539 \begin_inset LatexCommand label
16540 name "tab:Table-with-vertical"
16544 Table with 1.5\InsetSpace \thinspace{}
16545 pt thick vertical lines
16553 \begin_layout Standard
16555 \begin_inset Tabular
16556 <lyxtabular version="3" rows="3" columns="3">
16558 <column alignment="center" valignment="top" leftline="true" width="0" special="Vc">
16559 <column alignment="center" valignment="top" leftline="true" width="0" special="Vc">
16560 <column alignment="center" valignment="top" leftline="true" width="0" special="VcV">
16561 <row topline="true">
16562 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16565 \begin_layout Standard
16571 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16574 \begin_layout Standard
16580 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16583 \begin_layout Standard
16590 <row topline="true">
16591 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16594 \begin_layout Standard
16600 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16603 \begin_layout Standard
16609 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16612 \begin_layout Standard
16619 <row topline="true" bottomline="true">
16620 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16623 \begin_layout Standard
16629 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16632 \begin_layout Standard
16638 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16641 \begin_layout Standard
16660 \begin_layout Subsection
16662 \begin_inset LatexCommand index
16663 name "Table Customization ! Dashed Lines"
16670 \begin_layout Standard
16674 \begin_layout Standard
16684 \begin_inset Note Note
16687 \begin_layout Standard
16688 The following section will only be displayed when you have the LaTeX-package
16701 \begin_layout Standard
16702 \begin_inset Float table
16708 \begin_layout Standard
16709 \begin_inset Caption
16711 \begin_layout Standard
16712 \begin_inset LatexCommand label
16713 name "tab:Table-with-dashed"
16717 Table with dashed lines
16725 \begin_layout Standard
16727 \begin_inset Tabular
16728 <lyxtabular version="3" rows="5" columns="5">
16730 <column alignment="center" valignment="top" leftline="true" width="0">
16731 <column alignment="center" valignment="top" leftline="true" width="0">
16732 <column alignment="center" valignment="top" width="0" special=":c">
16733 <column alignment="center" valignment="top" leftline="true" width="0">
16734 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16735 <row topline="true" bottomline="true">
16736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16739 \begin_layout Standard
16745 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16748 \begin_layout Standard
16754 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16757 \begin_layout Standard
16763 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16766 \begin_layout Standard
16772 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16775 \begin_layout Standard
16782 <row topline="true">
16783 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16786 \begin_layout Standard
16792 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16795 \begin_layout Standard
16801 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16804 \begin_layout Standard
16810 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16813 \begin_layout Standard
16819 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16822 \begin_layout Standard
16830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16833 \begin_layout Standard
16837 \begin_layout Standard
16851 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16854 \begin_layout Standard
16860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16863 \begin_layout Standard
16869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16872 \begin_layout Standard
16878 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16881 \begin_layout Standard
16888 <row topline="true">
16889 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16892 \begin_layout Standard
16896 \begin_layout Standard
16910 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16913 \begin_layout Standard
16919 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="c:">
16922 \begin_layout Standard
16928 <cell multicolumn="1" alignment="center" valignment="top" rightline="true" usebox="none" special="c:">
16931 \begin_layout Standard
16937 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16940 \begin_layout Standard
16947 <row topline="true" bottomline="true">
16948 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16951 \begin_layout Standard
16957 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16960 \begin_layout Standard
16966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16969 \begin_layout Standard
16975 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16978 \begin_layout Standard
16984 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16987 \begin_layout Standard
17006 \begin_layout Standard
17007 LyX doesn't natively support dashed lines, so you have to use ERT.
17008 As prerequisite the LaTeX-package
17013 \begin_inset LatexCommand index
17014 name "LaTeX-packages ! arydshln"
17018 must be loaded in the document preamble with the command
17021 \begin_layout Standard
17026 usepackage{arydshln}
17029 \begin_layout Standard
17030 To make a vertical line dashed, enter the colon
17031 \begin_inset Quotes eld
17035 \begin_inset Quotes erd
17038 together with the character for the horizontal alignment as LaTeX-argument
17039 in the table cell dialog.
17042 \begin_layout Standard
17043 For a horizontal dashed line add the command
17046 \begin_layout Standard
17054 \begin_layout Standard
17055 in ERT as first element of the first cell in the table row.
17058 \begin_layout Standard
17059 For dashed multicolumn lines use the command
17062 \begin_layout Standard
17067 cdashline{line number
17072 \begin_layout Standard
17073 in ERT as first element of the first cell in the table row.
17074 If you have for example a multicolumn spanning over columns 2 to 4 and
17075 you want to have a dashed line above, add the command
17078 \begin_layout Standard
17086 \begin_layout Standard
17087 as first element of the first cell in the row of the multicolumn.
17090 \begin_layout Standard
17091 \begin_inset VSpace bigskip
17097 \begin_layout Standard
17100 \begin_inset LatexCommand ref
17101 reference "tab:Table-with-dashed"
17106 \begin_inset Quotes eld
17114 \begin_inset Quotes erd
17117 as LaTeX-argument of the third column.
17124 was inserted to the first cell of the third row and the the ERT command
17133 was inserted to the first cell of the fourth row.
17136 \begin_layout Standard
17137 \begin_inset Note Greyedout
17140 \begin_layout Standard
17145 The used LaTeX-package
17149 is apparently not compatible with the LaTeX-package
17154 \begin_inset LatexCommand index
17155 name "LaTeX-packages ! colortbl"
17159 that is used for colored tables in section\InsetSpace ~
17161 \begin_inset LatexCommand ref
17162 reference "sec:Colored-Tables"
17167 That means colored tables cannot have dashed lines.
17175 \begin_layout Standard
17179 \begin_layout Standard
17189 \begin_inset Note Note
17192 \begin_layout Standard
17193 The following will be displayed when the LaTeX-package
17205 \begin_layout Standard
17206 You need to install the package
17210 to see the contents of this section in the output.
17213 \begin_layout Standard
17217 \begin_layout Standard
17229 \begin_layout Chapter
17231 \begin_inset LatexCommand index
17237 \begin_inset LatexCommand label
17245 \begin_layout Section
17247 \begin_inset LatexCommand label
17248 name "sec:FloatIntroduction"
17253 \begin_inset LatexCommand index
17254 name "Floats ! Introduction"
17261 \begin_layout Standard
17262 A float is a block of text associated with some sort of label, which doesn't
17263 have a fixed location.
17265 \begin_inset Quotes eld
17269 \begin_inset Quotes erd
17272 forward or backward a page or two, to wherever it fits best.
17279 Margin\InsetSpace ~
17282 are also floats, because they can float to the next page when there are
17283 too many notes at the page.
17286 \begin_layout Standard
17287 Floats allow a high quality layout.
17288 Images and tables can evenly be spread to the pages to avoid white space
17289 and pages without text.
17290 As the floating often destroys the context between the text and the image/table
17291 , every float can be referenced in the text.
17292 Floats are therefore numbered.
17293 Referencing is described in section\InsetSpace ~
17295 \begin_inset LatexCommand ref
17296 reference "sec:Referencing-Floats"
17303 \begin_layout Standard
17304 To insert a float, use the menu
17306 Insert\SpecialChar \menuseparator
17310 This inserts a box with a label in the
17318 \begin_layout Standard
17323 environment is described in LyX's
17332 into your document.
17333 Every label ends with the character
17334 \begin_inset Quotes eld
17338 \begin_inset Quotes erd
17341 as placeholder for the float number in the output.
17342 The label will automatically be translated to the document language in
17344 Behind the label you can insert the caption text.
17345 The image or table is inserted above or below the caption in a separate
17346 paragraph within the float.
17347 More about the caption placement is described in section\InsetSpace ~
17349 \begin_inset LatexCommand ref
17350 reference "sec:Caption-Placement"
17355 To keep your LyX-document readable, you can open and close the float box
17356 by left-clicking on the box label.
17357 A closed float box looks like this:
17358 \begin_inset Graphics
17359 filename clipart/floatQt4.png
17364 -- a gray button with a red label.
17367 \begin_layout Standard
17368 It is recommended to insert floats as a separate paragraph to avoid possible
17369 LaTeX-errors that can occur when the surrounding text is specially formatted.
17372 \begin_layout Standard
17373 Existing figures or tables can be put into a float by marking them and then
17374 pressing the corresponding toolbar button for a new float.
17377 \begin_layout Section
17381 \begin_layout Standard
17382 Besides figure and table floats that are described in section\InsetSpace ~
17384 \begin_inset LatexCommand ref
17385 reference "sec:Figure-Floats"
17390 \begin_inset LatexCommand ref
17391 reference "sec:Table-Floats"
17395 , respectively, LyX offers the float types
17408 \begin_layout Subsection
17410 \begin_inset LatexCommand index
17411 name "Floats ! Algorithm Floats"
17418 \begin_layout Standard
17419 \begin_inset Float algorithm
17425 \begin_layout Standard
17426 \begin_inset Caption
17428 \begin_layout Standard
17429 \begin_inset LatexCommand label
17430 name "alg:Example-Algorithm-float"
17434 Example Algorithm float
17442 \begin_layout LyX-Code
17445 Sum:= Sum + A(I); /*senseless comment*/
17448 \begin_inset VSpace -4mm
17459 \begin_layout Standard
17460 This float type is inserted with the menu
17462 Insert\SpecialChar \menuseparator
17463 Floats\SpecialChar \menuseparator
17467 It is used for program codes and descriptions of algorithms.
17468 A possible environment for algorithms is the
17472 , described in LyX's
17477 Algorithm\InsetSpace ~
17479 \begin_inset LatexCommand ref
17480 reference "alg:Example-Algorithm-float"
17484 is an example of an algorithm float where -4\InsetSpace \thinspace{}
17485 mm vertical space was added
17486 at the end of the float to have the bottom rule exactly below the last
17490 \begin_layout Standard
17491 The float label is not automatically translated into the document language.
17492 If your document is not in English, you have to do this manually by adding
17493 the following line to the document preamble
17498 \begin_layout Standard
17503 floatname{algorithm}{your\InsetSpace ~
17507 \begin_layout Standard
17514 \begin_inset Quotes eld
17522 \begin_inset Quotes erd
17528 \begin_layout Description
17533 When the LaTeX-package
17538 \begin_inset LatexCommand index
17539 name "LaTeX-packages ! hyperref"
17543 is used to link cross-references to floats in the PDF-output, it must be
17544 loaded in the document preamble before the definition of floats to be able
17545 to reference floats.
17546 As LyX sets the float definition for algorithm floats automatically before
17547 the user editable part of the document preamble, you need to insert the
17548 following preamble lines
17552 the loading command of
17559 \begin_inset VSpace defskip
17566 newfloat{Xalgorithm}{tbp}{loa}
17570 floatname{Xalgorithm}{your\InsetSpace ~
17583 renewenvironment{algorithm}[1][tbp]
17589 \begin_layout Standard
17600 begin{Xalgorithm}[#1]}{
17603 \begin_inset VSpace defskip
17616 \begin_inset Quotes eld
17624 \begin_inset Quotes erd
17630 \begin_layout Standard
17631 Algorithm floats are not by default numbered in the scheme
17632 \begin_inset Quotes eld
17636 \begin_inset Quotes erd
17639 like it is the case for table and figure floats in many document-classes.
17640 To number algorithm floats in the same scheme, add this command to your
17644 \begin_layout Standard
17649 numberwithin{algorithm}{chapter}
17652 \begin_layout Standard
17653 If you use the LaTeX-package
17657 , add this line instead
17665 (the commands from above) to the preamble:
17668 \begin_layout Standard
17673 numberwithin{Xalgorithm}{chapter}
17676 \begin_layout Standard
17677 To be able to use the command
17688 in the document settings the option
17698 \begin_layout Subsection
17700 \begin_inset LatexCommand index
17701 name "Floats ! Text Wrap Floats"
17706 \begin_inset LatexCommand label
17707 name "sub:floatflt-wrap-float"
17714 \begin_layout Standard
17715 This float type is used if you want to
17716 \begin_inset Quotes eld
17720 \begin_inset Quotes erd
17723 text around a figure so that it only occupies some fraction of the column
17725 It can be inserted using the menu
17726 \begin_inset Wrap figure
17731 \begin_layout Standard
17732 \begin_inset Graphics
17733 filename clipart/mobius.eps
17736 rotateOrigin center
17743 \begin_layout Standard
17744 \begin_inset Caption
17746 \begin_layout Standard
17747 \begin_inset LatexCommand label
17748 name "fig:This-is-a"
17752 This is a wrapped figure, and this is the brilliant caption that describes
17754 \begin_inset VSpace medskip
17769 Insert\SpecialChar \menuseparator
17770 Floats\SpecialChar \menuseparator
17775 if the LaTeX-package
17780 \begin_inset LatexCommand index
17781 name "LaTeX-packages ! floatflt"
17789 \begin_layout Standard
17790 Installing a LaTeX-package is explained it in the
17800 The width and placement of the float is adjusted by right-clicking on the
17802 Figure\InsetSpace ~
17804 \begin_inset LatexCommand ref
17805 reference "fig:This-is-a"
17809 is an example text wrap float with a width of 40
17810 \begin_inset Formula $\,$
17817 \begin_layout Standard
17818 Available units are explained in
17819 \begin_inset LatexCommand ref
17820 reference "cha:Units-available-in"
17829 Some space was added under the caption to separate it better from the surroundi
17833 \begin_layout Standard
17838 also supports table wrap floats, but they are not yet supported by LyX.
17839 If you need this, read the documentation of
17844 \begin_inset LatexCommand cite
17852 \begin_layout Standard
17853 \begin_inset Note Greyedout
17856 \begin_layout Standard
17862 wrap float floats are fragile! E.\InsetSpace \thinspace{}
17864 having a figure too close to the bottom
17865 of the page can mess things up in the way that the float doesn't appear
17866 in the output or that it is placed over some other text.
17870 \begin_layout Standard
17871 The better solution is to use the LaTeX-package
17873 wrapf\SpecialChar \textcompwordmark{}
17877 \begin_inset LatexCommand index
17878 name "LaTeX-packages ! wrapfig\\vspace{4mm}"
17884 floatf\SpecialChar \textcompwordmark{}
17887 , but it is currently not supported by LyX.
17900 \begin_layout Standard
17904 \begin_layout Itemize
17905 Wrap floats should not be placed in paragraphs that run over a page break.
17906 That means that wrap floats should better be inserted to the exact place
17907 when the document is nearly ready and you are able to estimate where page
17908 breaks will appear.
17911 \begin_layout Itemize
17912 Wrap floats should either be placed in an own paragraph before the paragraph
17913 where they should wrap into or within a paragraph.
17916 \begin_layout Itemize
17917 Wrap floats in consecutive paragraphs may cause troubles, so assure that
17918 there is a text paragraph between them as separator.
17921 \begin_layout Itemize
17922 Wrap floats are not allowed in section headings or tables.
17925 \begin_layout Section
17927 \begin_inset LatexCommand label
17928 name "sec:Referencing-Floats"
17933 \begin_inset LatexCommand index
17934 name "Floats ! References"
17939 \begin_inset LatexCommand index
17947 \begin_layout Standard
17948 To reference a float, insert a label into its caption using the menu
17950 Insert\SpecialChar \menuseparator
17953 or the toolbar button
17954 \begin_inset Graphics
17955 filename ../images/label-insert.xpm
17961 A grey label box like this one:
17962 \begin_inset Graphics
17963 filename clipart/labelQt4.png
17968 will be inserted and the label window pops up asking for the label text.
17969 LyX offers as text the first words of the caption with a prefix.
17970 The prefix depends on the float type, e.\InsetSpace \thinspace{}
17972 for figure floats the prefix will
17980 \begin_layout Standard
17981 The label is used as anchor and name for the reference.
17982 You can refer to the label using the menu
17984 Insert\SpecialChar \menuseparator
17987 or the toolbar button
17988 \begin_inset Graphics
17989 filename ../images/dialog-show-new-inset_ref.xpm
17995 A grey cross-reference box like this one:
17996 \begin_inset Graphics
17997 filename clipart/referenceQt4.png
18002 will be inserted and the cross-reference window appear showing all labels
18004 If you have multiple LyX-documents opened, choose the one you are working
18005 on from the drop-list at the top of the dialog.
18006 You can now sort the labels alphabetically and then choose one.
18007 At the position of the cross-reference box the float number will appear
18011 \begin_layout Standard
18012 It is recommended to use a protected space between the cross-reference name
18013 and its number to avoid line breaks between them.
18014 If a cross-reference refers to a non-existing label, you will see two question
18015 marks in the output instead of the reference.
18018 \begin_layout Standard
18019 You can change labels at any time by clicking on the label box.
18020 References to the changed label will automatically change its link to the
18021 new label text, so that you don't need to take care about this.
18024 \begin_layout Standard
18031 in the cross-reference window sets the cursor before the referred label.
18032 The button text changes then to Go\InsetSpace ~
18033 Back and you can use it to set the cursor
18034 back to the cross-reference.
18035 Right-clicking on a cross-reference box also sets the cursor before the
18036 referenced label but without a possibility to go back.
18039 \begin_layout Subsection
18040 Cross-Reference Formats
18041 \begin_inset LatexCommand label
18042 name "sub:Cross-Reference-Formats"
18047 \begin_inset LatexCommand index
18048 name "References ! Formats"
18055 \begin_layout Standard
18056 There are six varieties of cross-references:
18059 \begin_layout Description
18060 <reference>: prints the float number, this is the default:
18061 \begin_inset LatexCommand ref
18062 reference "fig:Two-distorted-images"
18069 \begin_layout Description
18070 (<reference>): prints the float number within two parentheses, this is the
18071 style normally used to reference formulas, especially when the reference
18073 \begin_inset Quotes eld
18077 \begin_inset Quotes erd
18081 \begin_inset LatexCommand eqref
18089 \begin_layout Description
18090 <page>: prints the page number: Page\InsetSpace ~
18092 \begin_inset LatexCommand pageref
18093 reference "fig:Two-distorted-images"
18100 \begin_layout Description
18103 <page>: prints the text "on page" and the page number:
18104 \begin_inset LatexCommand vpageref
18105 reference "fig:Two-distorted-images"
18112 \begin_layout Description
18113 <reference>\InsetSpace ~
18116 <page>: prints the float number, the text "on page", and
18118 \begin_inset LatexCommand vref
18119 reference "fig:Two-distorted-images"
18126 \begin_layout Description
18127 Formatted\InsetSpace ~
18128 reference: prints a self defined cross-reference format.
18130 \begin_inset Note Greyedout
18133 \begin_layout Standard
18138 This feature is only available when you have the LaTeX-package
18150 \begin_layout Standard
18151 Note that the style <page> won't print the page number if the label is on
18152 the previous, the same, or the next page.
18153 You will e.\InsetSpace \thinspace{}
18156 \begin_inset Quotes eld
18164 \begin_inset Quotes erd
18170 \begin_layout Standard
18171 The number and current page of the referred document part in the output,
18172 is automatically calculated by LaTeX.
18173 The varieties are adjusted in the field
18177 of the cross-reference window, that appear when you click on the cross-referenc
18181 \begin_layout Subsection
18182 Referencing Subfigures
18183 \begin_inset LatexCommand label
18184 name "sub:Referencing-Subfigures"
18189 \begin_inset LatexCommand index
18190 name "References ! to Subfigures"
18197 \begin_layout Standard
18198 Currently referencing subfigures is not supported by LyX, so you have to
18199 use LaTeX-commands.
18200 The label is the created with the command
18203 \begin_layout Standard
18208 label{fig:YourLabelName}
18211 \begin_layout Standard
18212 that is directly inserted into the subfigure caption field.
18213 To reference the label add this command in ERT
18216 \begin_layout Standard
18221 ref{fig:YourLabelName}
18224 \begin_layout Standard
18225 to the position in your document where the reference should be placed.
18226 Here is a reference to a subfigure: Subfigure\InsetSpace ~
18231 \begin_layout Standard
18243 \begin_layout Subsection
18244 Automatic Reference Naming
18245 \begin_inset LatexCommand index
18246 name "References ! Automatic Reference Naming"
18253 \begin_layout Standard
18258 provides a very useful feature that cross-references automatically include
18259 the name of the referenced floats (or text parts like sections).
18260 You save to write e.\InsetSpace \thinspace{}
18263 \begin_inset Quotes eld
18267 \begin_inset Quotes erd
18270 before every reference box.
18271 To get this automatic reference naming, you have to load the LaTeX-package
18277 \begin_inset LatexCommand index
18278 name "LaTeX-packages ! hyperref"
18282 in the document preamble with
18285 \begin_layout Standard
18290 usepackage[pdfborder={0 0 0}]{hyperref}
18305 \begin_layout Standard
18310 is used to link cross-references in the DVI- and PDF-output, this means
18311 that the reader of your document will be able to click on a table of content
18312 (TOC) entry or on a reference and he will be shown the referenced document
18318 also creates PDF-bookmarks for every section of your document to make it
18319 easier for readers to navigate through the document.
18320 This is also used in this document but when you have a look in the document
18321 preamble you will find various options in the load command of
18326 To learn more about the
18330 package, we refer to its documentation
18331 \begin_inset LatexCommand cite
18339 \begin_layout Standard
18340 \begin_inset Note Greyedout
18343 \begin_layout Standard
18348 Automatic reference naming cannot be used when you use cross-references
18351 Formatted\InsetSpace ~
18354 style, described in section\InsetSpace ~
18356 \begin_inset LatexCommand ref
18357 reference "sub:Cross-Reference-Formats"
18369 \begin_layout Subsection
18371 \begin_inset LatexCommand label
18372 name "sub:Reference-Position"
18377 \begin_inset LatexCommand index
18378 name "References ! Reference Position"
18385 \begin_layout Standard
18391 \begin_inset LatexCommand index
18392 name "LaTeX-packages ! hyperref"
18396 to link cross-references in the output, you will see that clicking on an
18397 image float reference jumps to the image label.
18398 The caption will be the first text part on the screen, so that you cannot
18399 see the image without scrolling.
18400 This is because the reference link anchor is placed at the position of
18402 With the use of the package
18407 \begin_inset LatexCommand index
18408 name "LaTeX-packages ! hypcap"
18412 , which is part of the LaTeX-package
18417 \begin_inset LatexCommand index
18418 name "LaTeX-packages ! oberdiek"
18422 , the link anchor is placed at the beginning of a float.
18423 To use this feature for figure floats, load
18427 in the document preamble with the line
18430 \begin_layout Standard
18435 usepackage[f\SpecialChar \textcompwordmark{}
18439 \begin_layout Standard
18444 for all floats but this isn't recommended for stability reasons.
18445 For more informations, have a look at
18450 \begin_inset LatexCommand cite
18458 \begin_layout Standard
18459 \begin_inset Note Greyedout
18462 \begin_layout Standard
18471 must be loaded after
18475 in the document preamble.
18483 \begin_layout Standard
18484 \begin_inset Note Greyedout
18487 \begin_layout Standard
18492 The set reference position has no effect for references to subfigures.
18500 \begin_layout Section
18502 \begin_inset LatexCommand label
18503 name "sec:Float-Placement"
18508 \begin_inset LatexCommand index
18509 name "Floats ! Placement"
18516 \begin_layout Standard
18517 Right-clicking on a float-box opens a dialog where you can alter the placement
18518 options that LaTeX uses for positioning the float.
18525 is only useful for two-column documents: If you select it, the float will
18526 span across both columns on the page instead of being confined to just
18531 Rotate\InsetSpace ~
18534 is used to rotate floats, see section
18535 \begin_inset LatexCommand ref
18536 reference "sec:Rotated-Floats"
18543 \begin_layout Standard
18544 You can use one ore more of the following options in the float dialog to
18545 set the placement for a particular float when you uncheck the option
18548 default\InsetSpace ~
18554 \begin_layout Description
18557 possible: try to place the float on the position where it is inserted
18560 \begin_layout Description
18563 page: try to place the float on the top of the current page
18566 \begin_layout Description
18567 Bottom\InsetSpace ~
18569 page: try to place the float on the bottom of the current page
18572 \begin_layout Description
18575 floats: try to place the float on an own page
18578 \begin_layout Standard
18579 The order of the above option is
18584 That means, if you use the default placement, LaTeX will first try out
18597 , and then the others.
18598 If you don't use the default, LaTeX will try only the checked options but
18600 If none of the 4 placements are possible the procedure is internally repeated
18601 but it is tried to put the float on the following page.
18604 \begin_layout Standard
18605 By default, each options has its own rules:
18608 \begin_layout Labeling
18609 \labelwidthstring 00.00.0000
18616 only floats occupying less than 70\InsetSpace \thinspace{}
18617 % of the page can be placed at the top
18627 \begin_layout Labeling
18628 \labelwidthstring 00.00.0000
18631 Bottom\InsetSpace ~
18635 : only floats occupying less than 30\InsetSpace \thinspace{}
18636 % of the page can be placed at the bottom
18647 \begin_layout Labeling
18648 \labelwidthstring 00.00.0000
18655 : only if more than 50\InsetSpace \thinspace{}
18656 % of the page are occupied by floats, several floats
18657 can be set together on a page.
18667 \begin_layout Standard
18668 If you don't like these rules, you can ignore them by using the additional
18671 Ignore\InsetSpace ~
18677 You can also redefine the rules with LaTeX-commands that are given in parenthese
18678 s behind the rules description above.
18679 To increase for example the often too small default of the bottom-rule
18680 to 50\InsetSpace \thinspace{}
18681 % of the page, add this line to your document preamble:
18684 \begin_layout Standard
18691 bottomfraction}{0.5}
18694 \begin_layout Standard
18695 Sometimes you might need, under all circumstances, a float to be placed
18696 exactly at the position where it is inserted.
18697 For this case you can use the option
18703 Use this option very rarely and only if the document is nearly ready to
18705 Because the float is then no longer able to
18706 \begin_inset Quotes eld
18710 \begin_inset Quotes erd
18713 when you change your document and this will often destroy the page layout.
18716 \begin_layout Standard
18717 There are no placement options for text wrap floats, because they are always
18718 surrounded by the text of a certain paragraph.
18719 \begin_inset VSpace bigskip
18725 \begin_layout Standard
18726 Sometimes you have the problem that a float is placed at the top of a page
18727 while its corresponding section starts at the middle of the page, so that
18728 the reader could think the float is part of the previous section.
18729 To avoid this the LaTeX-command
18733 suppressf\SpecialChar \textcompwordmark{}
18737 It suppresses a given float placement for the page where it is inserted
18738 and can therefore be used to avoid that floats could be set before a section
18740 To get this, add these commands to your document preamble:
18743 \begin_layout Standard
18760 suppressf\SpecialChar \textcompwordmark{}
18766 \begin_layout Standard
18767 You can define the same for all section headings, like chapters and subsections.
18768 This definition is not recommended to be used for small text parts like
18769 subsubsections because LaTeX may then have problems to find a suitable
18773 \begin_layout Standard
18774 \begin_inset VSpace bigskip
18777 In some cases it is required to have all figures/tables at the end of the
18779 For this purpose the LaTeX-package
18781 endf\SpecialChar \textcompwordmark{}
18785 \begin_inset LatexCommand index
18786 name "LaTeX-packages ! endfloat"
18791 It puts all figure and table floats at the end of the document into own
18793 At the original float position a text hint like
18794 \begin_inset Quotes eld
18799 [Figure\InsetSpace ~
18803 \begin_inset Quotes erd
18807 The endfloat-package is loaded in the preamble with the line
18810 \begin_layout Standard
18815 usepackage[options]{endf\SpecialChar \textcompwordmark{}
18819 \begin_layout Standard
18820 There are various package options to format the created figure/table sections.
18821 For more information we refer to the
18823 endf\SpecialChar \textcompwordmark{}
18827 \begin_inset LatexCommand cite
18835 \begin_inset Note Greyedout
18838 \begin_layout Standard
18841 Note: endf\SpecialChar \textcompwordmark{}
18844 doesn't provide an automatic translation for the text hint, you have to
18845 do this manually, see section\InsetSpace ~
18847 \begin_inset LatexCommand cite
18860 \begin_inset Note Greyedout
18863 \begin_layout Standard
18868 There is currently a bug in
18870 endf\SpecialChar \textcompwordmark{}
18873 when the caption contains a German
18874 \begin_inset Quotes eld
18878 \begin_inset Quotes erd
18882 Use in this case the command
18883 \begin_inset Quotes eld
18893 \begin_inset Quotes erd
18897 \begin_inset Quotes eld
18901 \begin_inset Quotes erd
18912 \begin_layout Standard
18913 \begin_inset VSpace bigskip
18916 For more details about float placements, have a look at LaTeX books,
18917 \begin_inset LatexCommand cite
18918 key "latexcompanion,latexguide,latexbook"
18925 \begin_layout Section
18927 \begin_inset LatexCommand label
18928 name "sec:Rotated-Floats"
18933 \begin_inset LatexCommand index
18934 name "Floats ! Rotating"
18941 \begin_layout Standard
18942 Especially for wide tables you might have floats rotated.
18943 To rotate a whole float including the caption, right-click on the float-box
18946 Rotate\InsetSpace ~
18952 \begin_layout Standard
18953 Rotated floats are always placed on its own page (or column, when you have
18954 a two-column document).
18955 They are normally rotated so that you can read them from the outside margin
18956 -- to the left on even pages, to the right on odd pages.
18959 \begin_layout Standard
18960 Referencing rotated floats is the same like for normal floats, the caption
18961 format is also the same: Table\InsetSpace ~
18963 \begin_inset LatexCommand ref
18964 reference "tab:Rotated-table"
18968 is an example of a rotated table float.
18971 \begin_layout Standard
18972 \begin_inset Note Greyedout
18975 \begin_layout Standard
18980 Not all DVI-viewers are able to display rotated floats.
18988 \begin_layout Standard
18989 \begin_inset Float table
18994 \begin_layout Standard
18995 \begin_inset Caption
18997 \begin_layout Standard
18998 \begin_inset LatexCommand label
18999 name "tab:Rotated-table"
19011 \begin_layout Standard
19013 \begin_inset Tabular
19014 <lyxtabular version="3" rows="1" columns="5">
19016 <column alignment="center" valignment="top" leftline="true" width="0">
19017 <column alignment="center" valignment="top" leftline="true" width="0">
19018 <column alignment="center" valignment="top" leftline="true" width="0">
19019 <column alignment="center" valignment="top" leftline="true" width="0">
19020 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19021 <row topline="true" bottomline="true">
19022 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19025 \begin_layout Standard
19031 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19034 \begin_layout Standard
19040 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19043 \begin_layout Standard
19049 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19052 \begin_layout Standard
19058 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19061 \begin_layout Standard
19080 \begin_layout Section
19082 \begin_inset LatexCommand index
19083 name "Caption ! Formatting"
19088 \begin_inset LatexCommand index
19089 name "Floats ! Caption Formatting"
19094 \begin_inset LatexCommand index
19095 name "LaTeX-packages ! caption"
19100 \begin_inset LatexCommand label
19101 name "sec:Caption-Formatting"
19108 \begin_layout Standard
19113 environment is the default paragraph environment for
19118 On the LyX screen captions appear as label, e.\InsetSpace \thinspace{}
19121 \begin_inset Quotes eld
19129 \begin_inset Quotes erd
19132 followed by the caption text.
19134 \begin_inset Quotes eld
19138 \begin_inset Quotes erd
19141 is substituted in the printed output by the actual reference number.
19142 By default the label and the number are in the same font as the caption
19143 text and a colon follows the number to divide then label from the text.
19144 This caption format is not suitable for all document formats.
19148 \begin_layout Standard
19149 To change the default caption format, load the LaTeX-package
19154 \begin_inset LatexCommand index
19155 name "LaTeX-packages ! caption"
19159 in the document preamble with this line:
19162 \begin_layout Standard
19167 usepackage[format definition]{caption}
19170 \begin_layout Standard
19171 To have for example the label and the number in sans-serif bold font and
19172 the table captions always above the table like in this document, use the
19176 \begin_layout Standard
19181 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
19184 \begin_layout Standard
19185 You can also define different caption formats for the different float types.
19186 In this case load the
19190 package without format specific options and define the different formats
19191 with the help of the command
19194 \begin_layout Standard
19199 captionsetup[float type]{format definition}
19202 \begin_layout Standard
19203 in the document preamble.
19204 For example the caption formats of Figure\InsetSpace ~
19206 \begin_inset LatexCommand ref
19207 reference "fig:This-is-an-fig"
19211 and Table\InsetSpace ~
19213 \begin_inset LatexCommand ref
19214 reference "tab:This-is-an-tab"
19218 can be created using these commands in the document preamble:
19221 \begin_layout Standard
19226 usepackage[tableposition=top]{caption}
19234 captionsetup[f\SpecialChar \textcompwordmark{}
19235 igure]{labelfont={tt}, textfont=it, indention=1cm,%
19241 \begin_layout Standard
19249 captionsetup[figure]
19260 captionsetup[table]{labelfont={bf,sf}}
19263 \begin_layout Standard
19264 \begin_inset Note Greyedout
19267 \begin_layout Standard
19276 has no effect when a
19281 \begin_inset LatexCommand index
19282 name "LaTeX-packages ! koma-script"
19286 document class is used.
19287 In this case the document class option
19299 \begin_layout Standard
19300 For more information about the package
19304 we refer to its documentation
19305 \begin_inset LatexCommand cite
19306 key "caption,caption-de"
19313 \begin_layout Standard
19314 To change the label name from e.g.
19316 \begin_inset Quotes eld
19320 \begin_inset Quotes erd
19324 \begin_inset Quotes eld
19328 \begin_inset Quotes erd
19331 use this preamble command:
19334 \begin_layout Standard
19341 fnum@figure}{Image~
19346 \begin_layout Standard
19353 inserts the figure number and
19356 \begin_inset Quotes eld
19362 \begin_inset Quotes erd
19365 creates a protected space.
19368 \begin_layout Standard
19369 \begin_inset VSpace bigskip
19377 \begin_inset LatexCommand index
19378 name "LaTeX-packages ! koma-script"
19384 article (koma-script)
19392 letter (koma-script)
19396 report (koma-script)
19398 \InsetSpace \thinspace{}
19399 ), you can alternatively to the
19407 's built-in command
19414 For example, to have the caption label in bold, add this command to your
19418 \begin_layout Standard
19423 setkomafont{captionlabel}{
19428 \begin_layout Standard
19429 For more information about
19440 \begin_inset LatexCommand cite
19441 key "koma-script,koma-script-de"
19448 \begin_layout Standard
19452 \begin_layout Standard
19456 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
19463 \begin_inset Note Note
19466 \begin_layout Standard
19467 The caption format is changed only for this example.
19475 \begin_layout Standard
19476 \begin_inset Float figure
19482 \begin_layout Standard
19484 \begin_inset Graphics
19485 filename clipart/mobius.eps
19494 \begin_layout Standard
19495 \begin_inset Caption
19497 \begin_layout Standard
19498 \begin_inset LatexCommand label
19499 name "fig:This-is-an-fig"
19503 This is an example figure caption that is longer than one line to show the
19504 different caption format.
19505 Here a self-defined caption format is used.
19518 \begin_layout Standard
19522 \begin_layout Standard
19526 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
19535 \begin_layout Standard
19536 \begin_inset Float table
19542 \begin_layout Standard
19543 \begin_inset Caption
19545 \begin_layout Standard
19546 \begin_inset LatexCommand label
19547 name "tab:This-is-an-tab"
19551 This is an example table caption that is longer than one line to show the
19552 different caption format.
19553 Here the standard caption format for tables in this document is used.
19561 \begin_layout Standard
19563 \begin_inset Tabular
19564 <lyxtabular version="3" rows="1" columns="5">
19566 <column alignment="center" valignment="top" leftline="true" width="0">
19567 <column alignment="center" valignment="top" leftline="true" width="0">
19568 <column alignment="center" valignment="top" leftline="true" width="0">
19569 <column alignment="center" valignment="top" leftline="true" width="0">
19570 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19571 <row topline="true" bottomline="true">
19572 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19575 \begin_layout Standard
19581 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19584 \begin_layout Standard
19590 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19593 \begin_layout Standard
19599 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19602 \begin_layout Standard
19608 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19611 \begin_layout Standard
19630 \begin_layout Section
19632 \begin_inset LatexCommand index
19633 name "Caption ! Placement"
19638 \begin_inset LatexCommand index
19639 name "Floats ! Caption Placement"
19644 \begin_inset LatexCommand label
19645 name "sec:Caption-Placement"
19652 \begin_layout Standard
19653 The common caption placement rule is:
19656 \begin_layout Description
19657 Figure: Caption is set below the figure
19660 \begin_layout Description
19661 Table: Caption is set above the table
19664 \begin_layout Standard
19665 Having the caption above the table is unfortunately not supported in LaTeX's
19667 That means if you are using the document classes
19683 there will be no space between the caption and the table.
19684 To insert the needed space, add the following option to the load command
19685 of the LaTeX-package
19689 in your document preamble
19693 \begin_layout Standard
19694 See section\InsetSpace ~
19696 \begin_inset LatexCommand ref
19697 reference "sec:Caption-Formatting"
19701 for more information of the package
19713 \begin_layout Standard
19719 \begin_layout Standard
19725 \begin_inset LatexCommand index
19726 name "LaTeX-packages ! koma-script"
19732 article (koma-script)
19740 letter (koma-script)
19744 report (koma-script)
19746 \InsetSpace \thinspace{}
19747 ), you can alternatively to the
19751 package set the document class option
19755 , or you can use the environment
19757 caption\InsetSpace ~
19767 \begin_layout Standard
19768 \begin_inset VSpace bigskip
19771 It is also possible to set the caption beside a figure or table.
19772 To get this the LaTeX-package
19777 \begin_inset LatexCommand index
19778 name "LaTeX-packages ! sidecap"
19782 has to be loaded in the document preamble with the line
19785 \begin_layout Standard
19790 usepackage[option]{sidecap}
19793 \begin_layout Standard
19794 If you set no option, the caption is placed on the side of the outer page
19795 margin -- to the right on odd pages, to the left on even pages.
19796 You can change the placement to inner margin with the option
19801 To force the placement always to the right or left, use the option
19812 \begin_layout Standard
19813 To place in LyX the caption of a float on the side, it is necessary to add
19814 these commands to the document preamble:
19817 \begin_layout Standard
19823 \begin_layout Standard
19836 \begin_layout Standard
19857 \begin_layout Standard
19878 \begin_layout Standard
19889 renewenvironment{table}{
19896 \begin_layout Standard
19909 \begin_layout Standard
19930 \begin_layout Standard
19948 \begin_layout Standard
19961 \begin_layout Standard
19976 f\SpecialChar \textcompwordmark{}
19983 \begin_layout Standard
19996 MyEndf\SpecialChar \textcompwordmark{}
19999 endf\SpecialChar \textcompwordmark{}
20006 \begin_layout Standard
20017 renewenvironment{f\SpecialChar \textcompwordmark{}
20020 begin{SCf\SpecialChar \textcompwordmark{}
20023 end{SCf\SpecialChar \textcompwordmark{}
20027 \begin_layout Standard
20040 \begin_layout Standard
20053 f\SpecialChar \textcompwordmark{}
20062 \begin_layout Standard
20075 endf\SpecialChar \textcompwordmark{}
20078 MyEndf\SpecialChar \textcompwordmark{}
20082 \begin_layout Standard
20088 \begin_layout Standard
20089 The commands allow you to redefine the floats so that the caption is set
20091 For figure floats use the command
20094 \begin_layout Standard
20102 \begin_layout Standard
20103 in ERT before the float.
20104 Behind the float insert the command
20107 \begin_layout Standard
20115 \begin_layout Standard
20116 in ERT to get back to the original float definition.
20119 \begin_layout Standard
20120 For table floats use the corresponding commands
20123 \begin_layout Standard
20137 \begin_layout Standard
20138 Figure\InsetSpace ~
20140 \begin_inset LatexCommand ref
20141 reference "fig:cap-beside-fig"
20145 and Table\InsetSpace ~
20147 \begin_inset LatexCommand ref
20148 reference "tab:cap-beside-tab"
20152 are examples where the caption is set beside.
20155 \begin_layout Standard
20156 You can see in the examples that the caption text appears at the top of
20157 the floats for table floats and at the bottom for figure floats.
20158 To change this, you can use the command
20161 \begin_layout Standard
20166 sidecaptionvpos{float type}{placement}
20169 \begin_layout Standard
20170 in the document preamble or in ERT before the float.
20171 The float type is either
20179 , the placement can be
20180 \begin_inset Quotes eld
20188 \begin_inset Quotes erd
20192 \begin_inset Quotes eld
20200 \begin_inset Quotes erd
20204 \begin_inset Quotes eld
20212 \begin_inset Quotes erd
20216 To have for example the caption of figure floats vertically centered, use
20220 \begin_layout Standard
20225 sidecaptionvpos{f\SpecialChar \textcompwordmark{}
20229 \begin_layout Standard
20230 This was used for Figure\InsetSpace ~
20232 \begin_inset LatexCommand ref
20233 reference "fig:cap-beside-fig-2"
20240 \begin_layout Standard
20241 \begin_inset VSpace defskip
20244 For more information about the package
20248 we refer to its documentation
20249 \begin_inset LatexCommand cite
20257 \begin_layout Standard
20258 \begin_inset Note Greyedout
20261 \begin_layout Standard
20271 \begin_inset LatexCommand index
20272 name "LaTeX-packages ! hypcap"
20276 , described in section\InsetSpace ~
20278 \begin_inset LatexCommand ref
20279 reference "sub:Reference-Position"
20283 , has no effect on floats with the caption set beside.
20291 \begin_layout Standard
20295 \begin_layout Standard
20307 \begin_layout Standard
20308 \begin_inset Float figure
20313 \begin_layout Standard
20314 \begin_inset Graphics
20315 filename clipart/escher-lsd.eps
20323 \begin_layout Standard
20324 \begin_inset Caption
20326 \begin_layout Standard
20327 \begin_inset LatexCommand label
20328 name "fig:cap-beside-fig"
20332 This is a caption beside a figure.
20345 \begin_layout Standard
20349 \begin_layout Standard
20361 \begin_layout Standard
20362 \begin_inset Float table
20367 \begin_layout Standard
20368 \begin_inset Caption
20370 \begin_layout Standard
20371 \begin_inset LatexCommand label
20372 name "tab:cap-beside-tab"
20376 This is a caption beside a table.
20384 \begin_layout Standard
20385 \begin_inset Tabular
20386 <lyxtabular version="3" rows="4" columns="5">
20388 <column alignment="center" valignment="top" leftline="true" width="0">
20389 <column alignment="center" valignment="top" leftline="true" width="0">
20390 <column alignment="center" valignment="top" leftline="true" width="0">
20391 <column alignment="center" valignment="top" leftline="true" width="0">
20392 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
20393 <row topline="true">
20394 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20397 \begin_layout Standard
20403 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20406 \begin_layout Standard
20412 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20415 \begin_layout Standard
20421 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20424 \begin_layout Standard
20430 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20433 \begin_layout Standard
20440 <row topline="true">
20441 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20444 \begin_layout Standard
20450 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20453 \begin_layout Standard
20459 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20462 \begin_layout Standard
20468 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20471 \begin_layout Standard
20477 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20480 \begin_layout Standard
20487 <row topline="true">
20488 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20491 \begin_layout Standard
20497 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20500 \begin_layout Standard
20506 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20509 \begin_layout Standard
20515 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20518 \begin_layout Standard
20524 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20527 \begin_layout Standard
20534 <row topline="true" bottomline="true">
20535 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20538 \begin_layout Standard
20544 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20547 \begin_layout Standard
20553 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20556 \begin_layout Standard
20562 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20565 \begin_layout Standard
20571 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20574 \begin_layout Standard
20593 \begin_layout Standard
20597 \begin_layout Standard
20609 \begin_layout Standard
20613 \begin_layout Standard
20617 sidecaptionvpos{figure}{c}
20623 \begin_inset Float figure
20628 \begin_layout Standard
20629 \begin_inset Graphics
20630 filename clipart/escher-lsd.eps
20638 \begin_layout Standard
20639 \begin_inset Caption
20641 \begin_layout Standard
20642 \begin_inset LatexCommand label
20643 name "fig:cap-beside-fig-2"
20647 This is a vertically centered caption beside a figure.
20660 \begin_layout Standard
20664 \begin_layout Standard
20676 \begin_layout Section
20678 \begin_inset LatexCommand label
20679 name "sec:Listings-of-Floats"
20684 \begin_inset LatexCommand index
20685 name "Floats ! Listings"
20692 \begin_layout Standard
20693 Similar to the the table of contents where the sections of the document
20694 are listed, there are listings for all float types, like the figures of
20696 You can insert them via the
20698 Insert\SpecialChar \menuseparator
20706 \begin_layout Standard
20707 The list entries are the float captions or its short title, the float number,
20708 and the page number where they appear in the document.
20711 \begin_layout Standard
20712 You can find the list of figures and tables at the end of this document.
20715 \begin_layout Chapter
20719 \begin_layout Section
20723 \begin_layout Standard
20736 \begin_layout Standard
20744 \begin_inset LatexCommand label
20745 name "sec:LyX-Notes"
20750 \begin_inset LatexCommand index
20751 name "Notes ! LyX Notes"
20756 \begin_inset Note Note
20759 \begin_layout Standard
20762 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
20763 are displayed wrongly in PDF-bookmarks.
20764 For more information about this, have a look at
20765 \begin_inset LatexCommand cite
20778 \begin_layout Standard
20779 Notes are inserted with the toolbar button
20780 \begin_inset Graphics
20781 filename ../images/note-insert.xpm
20788 Insert\SpecialChar \menuseparator
20792 There are three types of notes:
20795 \begin_layout Description
20797 Note This note type is for internal notes that won't appear in the output.
20798 Its note-box looks like this:
20803 \begin_inset Graphics
20804 filename clipart/LyXNoteImageQt4.png
20811 \begin_inset Note Note
20814 \begin_layout Standard
20815 This is text in a note box that doesn't appear in the output.
20823 \begin_layout Description
20824 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
20825 ent, when you export the document to LaTeX via the menu
20827 File\SpecialChar \menuseparator
20828 Export\SpecialChar \menuseparator
20829 LaTeX (pdflatex) / LaTeX (plain)
20832 Its note-box looks like this:
20837 \begin_inset Graphics
20838 filename clipart/CommentNoteImageQt4.png
20845 \begin_inset Note Comment
20848 \begin_layout Standard
20849 This is text in a note box that only appears as comment in LaTeX-files.
20857 \begin_layout Description
20858 Greyed\InsetSpace ~
20859 Out This note will appear in the output as grey text.
20860 Its note-box looks like this:
20865 \begin_inset Graphics
20866 filename clipart/GreyedOutNoteImageQt4.png
20878 \begin_layout Standard
20882 renewenvironment{lyxgreyedout}
20885 \begin_layout Standard
20889 textcolor[gray]{0.8}
20899 \begin_inset Note Greyedout
20902 \begin_layout Standard
20907 \begin_layout Standard
20908 This is an example footnote within a greyed out note.
20913 of a comment that appears in the output as grey text.
20922 \begin_layout Standard
20926 renewenvironment{lyxgreyedout}
20929 \begin_layout Standard
20943 \begin_inset Note Note
20946 \begin_layout Standard
20947 The greyed out note is here redefined to show it with the original LyX definitio
20948 n because greyed out notes are redefined in the preamble of this document,
20949 as described below, to have blue text.
20958 As you can see in the example, the first line of greyed out notes is a bit
20959 indented and greyed out notes can have footnotes.
20962 \begin_layout Description
20963 Framed This note will appear in the output as framed text.
20964 Its note-box looks like this:
20969 \begin_inset Graphics
20970 filename clipart/FramedNoteImageQt4.png
20977 \begin_inset Note Framed
20980 \begin_layout Standard
20981 This is text in a note box that appears framed in the output.
20986 In contrary to framed boxes
20990 \begin_layout Standard
20991 Framed boxes are described in section\InsetSpace ~
20993 \begin_inset LatexCommand ref
20994 reference "sec:Framed-Boxes"
21003 the frame uses always the whole text width and the note is set into its
21007 \begin_layout Description
21008 Shaded This note will appear in the output with red background color.
21009 Its note box looks like this:
21014 \begin_inset Graphics
21015 filename clipart/ShadedNoteImageQt4.png
21022 \begin_inset Note Shaded
21025 \begin_layout Standard
21026 This text in a note box appears in the output with red background.
21031 In contrary to colored boxes
21035 \begin_layout Standard
21036 Colored boxes are described in section\InsetSpace ~
21038 \begin_inset LatexCommand ref
21039 reference "sec:Colored-Boxes"
21048 the note uses always the whole text width and the note is set into its
21052 \begin_layout Standard
21053 \begin_inset VSpace bigskip
21056 When you use the toolbar button to insert notes, a
21062 You can switch between the three note types by right-clicking on the note-box.
21067 If you want to turn existing text into a note, mark it and click on the
21083 \begin_layout Standard
21084 \begin_inset VSpace bigskip
21087 You can change the text color of the greyed out notes in the preamble with
21088 the following command:
21091 \begin_layout Standard
21096 renewenvironment{lyxgreyedout}
21102 \begin_layout Standard
21120 \begin_layout Standard
21121 The available colors and the method to define own colors is explained in
21122 section\InsetSpace ~
21124 \begin_inset LatexCommand ref
21125 reference "sec:Colored-Tables"
21132 \begin_layout Standard
21133 Notes that appear in blue in this document are set using greyed out notes
21137 \begin_layout Standard
21138 \begin_inset VSpace bigskip
21144 \begin_layout Standard
21153 notes can be set in the
21160 \begin_layout Standard
21161 The default frame width for
21165 notes is 0.4\InsetSpace \thinspace{}
21166 pt; it can be changed by changing the size
21173 The default space between the note content and the frame is 9\InsetSpace \thinspace{}
21175 be changed by changing the size
21182 For example the frame appearance of the following
21186 note is set with the ERT commands
21189 \begin_layout Standard
21199 \begin_layout Standard
21203 \begin_layout Standard
21215 \begin_inset Note Framed
21218 \begin_layout Standard
21232 \begin_layout Standard
21246 \begin_layout Standard
21247 \begin_inset VSpace bigskip
21253 \begin_layout Standard
21258 notes the default space between the note content and the note border is
21259 3\InsetSpace \thinspace{}
21260 pt; it can be changed by changing the size
21268 The default background color red can be changed with the command
21272 def\SpecialChar \textcompwordmark{}
21280 def\SpecialChar \textcompwordmark{}
21283 command is explained in section\InsetSpace ~
21285 \begin_inset LatexCommand ref
21286 reference "sec:Colored-Tables"
21294 \begin_layout Standard
21301 \SpecialChar \textcompwordmark{}
21306 requires the LaTeX-package
21310 in the preamble, see section\InsetSpace ~
21312 \begin_inset LatexCommand ref
21313 reference "sec:Colored-Boxes"
21325 \begin_layout Standard
21326 For example the appearance of the following
21330 note is set with the ERT commands
21333 \begin_layout Standard
21346 def\SpecialChar \textcompwordmark{}
21347 inecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21350 \begin_layout Standard
21354 \begin_layout Standard
21367 \begin_layout Standard
21371 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21377 \begin_inset Note Shaded
21380 \begin_layout Standard
21383 This is yellow text in a
21393 note with darkgreen background.
21402 \begin_layout Standard
21415 \begin_layout Standard
21419 definecolor{shadecolor}{rgb}{1,0,0}
21427 \begin_layout Section
21429 \begin_inset LatexCommand label
21430 name "sec:Footnotes"
21435 \begin_inset LatexCommand index
21436 name "Notes ! Footnotes"
21441 \begin_inset LatexCommand index
21449 \begin_layout Standard
21450 Footnotes can be inserted using the toolbar button
21451 \begin_inset Graphics
21452 filename ../images/footnote-insert.xpm
21459 Insert\SpecialChar \menuseparator
21471 then the following footnote-box:
21472 \begin_inset Graphics
21473 filename clipart/footnoteQt4.png
21482 where you can enter the footnote text.
21483 If you want to turn existing text into a footnote, mark it and click on
21499 \begin_layout Standard
21500 Here is an example footnote:
21508 \begin_layout Standard
21509 \begin_inset LatexCommand label
21510 name "foot:This-is-an"
21514 This is an example footnote.
21527 \begin_layout Standard
21531 newcounter{MyRepeatFoot}
21534 \begin_layout Standard
21538 setcounter{MyRepeatFoot}{
21548 \begin_layout Standard
21549 The footnote will appear in the output as a superscript number at the text
21550 position where the footnote box is placed.
21551 The footnote text is placed at the bottom of the current page.
21552 The footnote number is calculated by LaTeX, the numbers are consecutive.
21553 It depends on your document-class, if the footnote number is reset for
21557 \begin_layout Standard
21558 Footnotes can be referenced like floats: Insert a label into the footnote
21559 and cross-reference this label in the text as described in section\InsetSpace ~
21561 \begin_inset LatexCommand ref
21562 reference "sec:Referencing-Floats"
21568 This is a cross-reference of Footnote\InsetSpace ~
21570 \begin_inset LatexCommand ref
21571 reference "foot:This-is-an"
21578 \begin_inset Note Greyedout
21581 \begin_layout Standard
21586 LyX doesn't provide a prefix for labels in footnotes, so you have to insert
21587 e.\InsetSpace \thinspace{}
21592 \begin_inset Quotes eld
21598 \begin_inset Quotes erd
21601 manually when you want to use the reference style
21603 Formatted\InsetSpace ~
21614 \begin_layout Standard
21615 \begin_inset VSpace defskip
21618 To use footnotes within tables, you have to use minipages, see section\InsetSpace ~
21620 \begin_inset LatexCommand ref
21621 reference "sec:Minipages"
21626 Footnotes within longtables are described in section\InsetSpace ~
21628 \begin_inset LatexCommand ref
21629 reference "sub:Footnotes-in-Longtables"
21636 \begin_layout Standard
21637 \begin_inset VSpace defskip
21640 To create only a mark for a footnote, use the command
21644 footnotemark[number]
21647 This is used when you have the same annotation several times in a text
21648 but doesn't want to print the footnote text every time.
21651 the number of the repeating footnote while you are writing the text, you
21652 have to store its number.
21653 For the following footnote mark example, these commands were inserted in
21654 ERT behind Footnote\InsetSpace ~
21656 \begin_inset LatexCommand ref
21657 reference "foot:This-is-an"
21661 to store the footnote number:
21664 \begin_layout Standard
21669 newcounter{MyRepeatFoot}
21673 setcounter{MyRepeatFoot}{
21678 \begin_layout Standard
21679 The footnote mark was then created with this command:
21682 \begin_layout Standard
21692 \begin_layout Standard
21693 Here is an example footnote mark:
21701 \begin_layout Standard
21715 \begin_layout Subsection
21717 \begin_inset LatexCommand label
21718 name "sub:Footnote-Numbering"
21723 \begin_inset LatexCommand index
21724 name "Footnotes ! Numbering"
21731 \begin_layout Standard
21732 If you want to have footnotes numbered in the scheme
21733 \begin_inset Quotes eld
21737 \begin_inset Quotes erd
21740 , add the following command to your document preamble:
21743 \begin_layout Standard
21748 numberwithin{footnote}{chapter}
21751 \begin_layout Standard
21752 To be able to use the command
21763 in the document settings the option
21773 \begin_layout Standard
21777 \begin_layout Standard
21781 numberwithin{footnote}{chapter}
21786 This is another example footnote:
21792 \begin_layout Standard
21793 This is a footnote numbered in the scheme
21794 \begin_inset Quotes eld
21798 \begin_inset Quotes erd
21812 \begin_layout Standard
21816 numberwithin{footnote}{part}
21824 \begin_layout Standard
21825 \begin_inset VSpace bigskip
21831 \begin_layout Standard
21832 To reset the footnote number back to 1 after each section
21834 , add this command to your document preamble:
21837 \begin_layout Standard
21842 @addtoreset{footnote}{section}
21845 \begin_layout Standard
21846 \begin_inset VSpace bigskip
21849 The following preamble command changes the footnote numbering style to small
21853 \begin_layout Standard
21865 \begin_layout Standard
21869 \begin_layout Standard
21882 This is a footnote with roman numbering:
21886 \begin_layout Standard
21887 This is an example footnote with roman numbering.
21896 \begin_layout Standard
21912 \begin_layout Standard
21913 To change the numbering style to capital roman numerals replace in the command
21928 \begin_inset Quotes eld
21932 \begin_inset Quotes erd
21935 footnotes with capital or small Latin letters use
21949 \begin_inset Quotes eld
21953 \begin_inset Quotes erd
21956 footnotes with symbols use
21965 \begin_layout Standard
21966 \begin_inset Note Greyedout
21969 \begin_layout Standard
21974 You can only number 26 footnotes with Latin letters, because this numbering
21975 is limited to single letters.
21983 \begin_inset Note Greyedout
21986 \begin_layout Standard
21991 You can only number 9 footnotes with symbols.
21999 \begin_layout Standard
22000 To return to the default numbering style when you changed to another one,
22013 in the command above.
22016 \begin_layout Subsection
22018 \begin_inset LatexCommand index
22019 name "Footnotes ! Placement"
22026 \begin_layout Standard
22027 If you have several footnotes in one page, they appear without vertical
22028 space between them at the bottom of the page.
22029 To make them better readable you can e.\InsetSpace \thinspace{}
22031 add 1.5\InsetSpace \thinspace{}
22032 mm space with the following
22036 \begin_layout Standard
22058 \begin_layout Standard
22059 \begin_inset VSpace bigskip
22062 In a two-column document the footnotes appear at the bottom of every column,
22063 see Figure\InsetSpace ~
22065 \begin_inset LatexCommand ref
22066 reference "fig:Standard-footnote-placement"
22071 If the footnotes should only appear at the bottom of the right column,
22072 as in Figure\InsetSpace ~
22074 \begin_inset LatexCommand ref
22075 reference "fig:Footnote-placement-in"
22079 , use the LaTeX-package
22084 \begin_inset LatexCommand index
22085 name "LaTeX-packages ! ftnright"
22089 with this command in the document preamble:
22092 \begin_layout Standard
22097 usepackage{ftnright}
22100 \begin_layout Standard
22101 \begin_inset Float figure
22107 \begin_layout Standard
22111 \begin_layout Standard
22121 \begin_inset Graphics
22122 filename clipart/without_fntright.pdf
22131 \begin_layout Standard
22141 \begin_layout Standard
22142 \begin_inset Caption
22144 \begin_layout Standard
22145 \begin_inset LatexCommand label
22146 name "fig:Standard-footnote-placement"
22150 Standard footnote placement in two-column documents.
22163 \begin_layout Standard
22164 \begin_inset Float figure
22170 \begin_layout Standard
22174 \begin_layout Standard
22184 \begin_inset Graphics
22185 filename clipart/with_fntright.pdf
22194 \begin_layout Standard
22204 \begin_layout Standard
22205 \begin_inset Caption
22207 \begin_layout Standard
22208 \begin_inset LatexCommand label
22209 name "fig:Footnote-placement-in"
22213 Footnote placement in two-column documents when the LaTeX-package
22230 \begin_layout Standard
22231 \begin_inset VSpace bigskip
22234 In some scientific literature it is usual to collect the footnotes and print
22235 them in a separate paragraph at the the end of a section, like in Figure\InsetSpace ~
22237 \begin_inset LatexCommand ref
22238 reference "fig:Endnotes----footnotes"
22243 They are then so called
22244 \begin_inset Quotes eld
22248 \begin_inset Quotes erd
22252 To use endnotes instead of footnotes in your document, load the LaTeX-package
22258 \begin_inset LatexCommand index
22259 name "LaTeX-packages ! endnotes"
22263 with the document preamble lines
22266 \begin_layout Standard
22271 usepackage{endnotes}
22282 \begin_layout Standard
22283 To insert the collected footnotes, insert the command
22286 \begin_layout Standard
22294 \begin_layout Standard
22295 in ERT at the the end of a section or chapter.
22298 \begin_layout Standard
22299 \begin_inset Float figure
22304 \begin_layout Standard
22309 \begin_layout Standard
22319 \begin_inset Graphics
22320 filename clipart/endnotes.pdf
22328 \begin_layout Standard
22338 \begin_layout Standard
22339 \begin_inset Caption
22341 \begin_layout Standard
22342 \begin_inset LatexCommand label
22343 name "fig:Endnotes----footnotes"
22347 Endnotes -- footnotes are printed in a separate paragraph at the end of
22348 sections or chapters.
22361 \begin_layout Standard
22362 \begin_inset VSpace defskip
22365 The paragraph heading for the endnotes isn't automatically translated into
22366 the document language, this must be done manually.
22367 The following preamble command translate the default English name
22368 \begin_inset Quotes eld
22372 \begin_inset Quotes erd
22375 to the German translation
22376 \begin_inset Quotes eld
22380 \begin_inset Quotes erd
22386 \begin_layout Standard
22393 notesname}{Anmerkungen}
22396 \begin_layout Standard
22397 \begin_inset VSpace defskip
22400 The numbering of endnotes can be changed like the footnote numbering as
22401 described in section\InsetSpace ~
22403 \begin_inset LatexCommand ref
22404 reference "sub:Footnote-Numbering"
22408 ; just replace the command
22421 To reset the endnote number use the command
22427 as described in section\InsetSpace ~
22429 \begin_inset LatexCommand ref
22430 reference "sub:Footnote-Numbering"
22434 and replace the command parameter
22445 \begin_layout Standard
22446 To create only a mark for an endnote, use the command
22450 endnotemark[number]
22452 similar to the command
22458 , described in section\InsetSpace ~
22460 \begin_inset LatexCommand ref
22461 reference "sec:Footnotes"
22468 \begin_layout Standard
22469 \begin_inset VSpace bigskip
22472 Footnotes can also be placed in the page margin and the footnote text alignment
22473 can be changed, see the LaTeX-package
22478 \begin_inset LatexCommand index
22479 name "LaTeX-packages ! footmisc"
22484 \begin_inset LatexCommand cite
22489 for more information about this.
22492 \begin_layout Standard
22493 For various further footnote formatting issues have a look at LaTeX-books,
22495 \begin_inset LatexCommand cite
22496 key "latexcompanion,latexguide,latexbook"
22503 \begin_layout Section
22505 \begin_inset LatexCommand index
22506 name "Notes ! Margin Notes"
22513 \begin_layout Standard
22514 Margin notes look and behave in LyX like footnotes.
22515 They are inserted via the menu
22517 Insert\SpecialChar \menuseparator
22518 Marginal\InsetSpace ~
22521 or the toolbar button
22522 \begin_inset Graphics
22523 filename ../images/marginalnote-insert.xpm
22539 \begin_inset Quotes eld
22543 \begin_inset Quotes erd
22546 appears where you can enter the text of the margin note.
22549 \begin_layout Standard
22550 At the side is an example margin note.
22554 \begin_inset Marginal
22557 \begin_layout Standard
22558 This is a margin note.
22566 \begin_layout Standard
22567 Margin notes appear at the right side in single-sided documents.
22568 In double-sided documents they appear in the outer margin -- left on even
22569 pages, right on odd pages.
22570 The text of margin notes is aligned opposite to the outer margin -- right-align
22571 ed when the note appears in the left margin.
22572 The first line of the margin note is placed at the position of the text
22573 line where it is inserted in the document.
22576 \begin_layout Standard
22577 \begin_inset VSpace bigskip
22580 To place the margin note in the inner margin, add the command
22583 \begin_layout Standard
22591 \begin_layout Standard
22592 in ERT before a margin note.
22593 The new placement is valid for all following margin notes.
22597 \begin_layout Standard
22607 \begin_inset Marginal
22610 \begin_layout Standard
22611 This is a margin note in the inner margin.
22623 \begin_inset Note Greyedout
22626 \begin_layout Standard
22631 There is often not enough space in the inner margin so that the notes are
22632 not correctly displayed in the output.
22640 \begin_layout Standard
22644 \begin_layout Standard
22653 To return to the default placement insert the command
22656 \begin_layout Standard
22664 \begin_layout Standard
22667 \begin_inset Note Greyedout
22670 \begin_layout Standard
22675 The command is ignored when it is within a paragraph where also the command
22690 \begin_layout Standard
22691 \begin_inset VSpace bigskip
22698 \begin_inset Marginal
22701 \begin_layout Standard
22702 AVeryLongMarginParWord that isn't hyphenated.
22710 Similar to the case described in section\InsetSpace ~
22712 \begin_inset LatexCommand ref
22713 reference "sub:Multiple-Lines-in"
22717 , long words cannot be hyphenated when they are the first word in a margin
22719 To avoid this, insert the command
22722 \begin_layout Standard
22730 \begin_layout Standard
22731 in ERT before the word
22735 \begin_inset Marginal
22738 \begin_layout Standard
22742 \begin_layout Standard
22751 AVeryLongMarginParWord that is hyphenated.
22759 \begin_layout Standard
22760 \begin_inset VSpace bigskip
22766 \begin_layout Standard
22767 \begin_inset Note Greyedout
22770 \begin_layout Standard
22775 Margin notes can normally not be used inside tables, floats, and footnotes.
22783 \begin_layout Standard
22784 \begin_inset VSpace bigskip
22790 \begin_layout Standard
22794 \begin_layout Standard
22804 \begin_inset Note Note
22807 \begin_layout Standard
22808 The following section will only be displayed when you have the LaTeX-package
22821 \begin_layout Standard
22822 This restriction can be evaded by using the LaTeX-package
22827 \begin_inset LatexCommand index
22828 name "LaTeX-packages ! marginnote"
22833 By adding these two lines to your document preamble, the command used by
22834 LyX for margin notes is redefined to use the command provided by the
22841 \begin_layout Standard
22846 usepackage{marginnote}
22857 \begin_layout Standard
22858 This is also used in this document because
22862 has another useful feature: You can set a vertical offset for the note.
22863 This is often needed when too many margin notes are too close together
22864 or for a better page layout.
22865 The offset is set in LyX as ERT directly behind the margin note in the
22869 \begin_layout Standard
22875 \begin_layout Standard
22876 where the offset is a length with one of the units listed in Table\InsetSpace ~
22878 \begin_inset LatexCommand ref
22879 reference "tab:Units"
22884 A negative value shifts the note up, a positive value shifts it down.
22888 For example the margin note beside this text line is shifted up 1.5\InsetSpace \thinspace{}
22891 \begin_inset Quotes eld
22901 \begin_inset Quotes erd
22905 \begin_inset Marginal
22908 \begin_layout Standard
22909 This margin note is shifted up 1.5\InsetSpace \thinspace{}
22910 cm from its original position.
22922 \begin_layout Standard
22932 \begin_layout Standard
22933 \begin_inset VSpace defskip
22940 you can also change the alignment of the text in the margin note.
22941 For example the commands
22944 \begin_layout Standard
22951 raggedleftmarginnote}{
22959 raggedrightmarginnote}{
22964 \begin_layout Standard
22965 set the alignment to centered.
22970 raggedleftmarginnote
22972 denotes margin notes that appear at the left side.
22979 \begin_layout Standard
22985 raggedleftmarginnote}{
22990 \begin_layout Standard
22996 raggedrightmarginnote}{
23004 \begin_inset Marginal
23007 \begin_layout Standard
23008 The text of this margin note is centered.
23019 \begin_layout Standard
23026 raggedleftmarginnote}{
23034 raggedrightmarginnote}{
23043 \begin_layout Standard
23049 raggedleftmarginnote}{
23054 \begin_layout Standard
23060 raggedrightmarginnote}{
23070 \begin_layout Standard
23071 \begin_inset VSpace defskip
23074 For the other features of
23078 we refer to its documentation
23079 \begin_inset LatexCommand cite
23087 \begin_layout Standard
23088 \begin_inset VSpace bigskip
23091 You can change the layout of margin notes by redefining its definition.
23092 To create for example a header for all margin notes with the underlined,
23093 sans-serif, and bold header text
23094 \begin_inset Quotes eld
23106 \begin_inset Quotes erd
23109 , add this to your document preamble:
23112 \begin_layout Standard
23135 \begin_layout Standard
23152 underbar{Attention!}}}%
23158 \begin_layout Standard
23176 \begin_layout Standard
23183 \begin_layout Standard
23194 \begin_layout Standard
23205 \begin_layout Standard
23213 underbar{Attention!}}}%
23216 \begin_layout Standard
23230 \begin_inset Marginal
23233 \begin_layout Standard
23234 This is a margin note with a defined heading.
23246 \begin_layout Standard
23260 \begin_layout Standard
23277 \begin_inset Note Note
23280 \begin_layout Standard
23281 The margin note format is changed only for this example.
23289 \begin_layout Standard
23293 \begin_layout Standard
23303 \begin_inset Note Note
23306 \begin_layout Standard
23307 The following will be displayed when the LaTeX-package
23319 \begin_layout Standard
23320 You need to install the LaTeX-package
23324 to see the following part of this section in the output.
23327 \begin_layout Standard
23331 \begin_layout Standard
23343 \begin_layout Chapter
23347 \begin_layout Section
23349 \begin_inset LatexCommand index
23350 name "Boxes ! Introduction"
23357 \begin_layout Standard
23358 Boxes are used to format a block of text.
23359 Boxes can be used to write documents with multiple languages, see section\InsetSpace ~
23361 \begin_inset LatexCommand ref
23362 reference "sec:Minipages"
23366 , to frame texts, see section\InsetSpace ~
23368 \begin_inset LatexCommand ref
23369 reference "sec:Framed-Boxes"
23373 , to prevent words to be hyphenated, see section\InsetSpace ~
23375 \begin_inset LatexCommand ref
23376 reference "sec:Prevent-Hyphenation"
23380 , to align text, see section\InsetSpace ~
23382 \begin_inset LatexCommand ref
23383 reference "sub:Vertical-Alignment"
23387 , or to set the background color of texts, see section\InsetSpace ~
23389 \begin_inset LatexCommand ref
23390 reference "sec:Colored-Boxes"
23397 \begin_layout Standard
23398 Boxes can be inserted with the menu
23400 Insert\SpecialChar \menuseparator
23404 A grey box with the label
23409 \begin_inset Graphics
23410 filename clipart/BoxInsetDefaultQt4.png
23415 , will be inserted.
23416 The box type can be specified by right-clicking on the box.
23417 The appearing box dialog offers the
23435 is the default for new boxes and is explained in section\InsetSpace ~
23437 \begin_inset LatexCommand ref
23438 reference "sec:Minipages"
23446 is described in section\InsetSpace ~
23448 \begin_inset LatexCommand ref
23449 reference "sec:Parboxes"
23456 \begin_layout Standard
23457 Boxes aren't numbered and can therefore not be referenced like floats or
23461 \begin_layout Standard
23462 \begin_inset Note Greyedout
23465 \begin_layout Standard
23470 Due to a bug in LyX you have to insert a protected space behind a box when
23471 you want to separate in a line the box from the following text with a space.
23479 \begin_layout Standard
23480 \begin_inset Note Greyedout
23483 \begin_layout Standard
23488 Boxes must not be the item in an
23504 \begin_layout Standard
23505 \begin_inset Note Greyedout
23508 \begin_layout Standard
23513 For an unknown reason you can only set the
23522 when you use a framed box.
23528 type and without frames are explained in section\InsetSpace ~
23530 \begin_inset LatexCommand ref
23531 reference "sec:Prevent-Hyphenation"
23543 \begin_layout Section
23545 \begin_inset LatexCommand label
23546 name "sec:Box-Dialog"
23551 \begin_inset LatexCommand index
23552 name "Boxes ! Box Dialog"
23557 \begin_inset LatexCommand index
23558 name "Boxes ! Alignment"
23565 \begin_layout Standard
23566 In the box dialog you can adjust the box geometry in the fields
23575 The available units for the geometry are explained in Table\InsetSpace ~
23577 \begin_inset LatexCommand ref
23578 reference "tab:Units"
23587 offers the following additional sizes:
23590 \begin_layout Description
23591 Depth This is the plain text
23592 \begin_inset Quotes eld
23596 \begin_inset Quotes erd
23600 It ignores the total depth when there are multiple text lines in the box:
23607 \begin_inset Box Boxed
23616 height_special "depth"
23619 \begin_layout Standard
23621 Box height set to 1\InsetSpace \thinspace{}
23634 \begin_layout Description
23635 Height This is the heigth of the text that is inside the box.
23636 A value of e.\InsetSpace \thinspace{}
23638 2 for this size will set the box heigth to 2 times the text
23640 \begin_inset Box Boxed
23649 height_special "height"
23652 \begin_layout Standard
23654 Box height set to 2\InsetSpace \thinspace{}
23663 \begin_layout Description
23665 Height This is the Height\InsetSpace \thinspace{}
23666 +\InsetSpace \thinspace{}
23668 \begin_inset Box Boxed
23677 height_special "totalheight"
23680 \begin_layout Standard
23682 Box height set to 1\InsetSpace \thinspace{}
23692 \begin_layout Description
23693 Width This set the width of the box as heigth:
23694 \begin_inset Box Boxed
23703 height_special "width"
23706 \begin_layout Standard
23708 Box height set to 1\InsetSpace \thinspace{}
23717 \begin_layout Standard
23718 \begin_inset VSpace bigskip
23721 When you have chosen an
23726 , the vertical box alignment can be:
23729 \begin_layout Description
23730 Top This is an example text line.
23732 \begin_inset Box Boxed
23741 height_special "totalheight"
23744 \begin_layout Standard
23746 This box is top-aligned.
23752 This is an example text line.
23755 \begin_layout Description
23756 Middle This is an example text line.
23758 \begin_inset Box Boxed
23767 height_special "totalheight"
23770 \begin_layout Standard
23772 This box is middle-aligned.
23778 This is an example text line.
23781 \begin_layout Description
23782 Bottom This is an example text line.
23784 \begin_inset Box Boxed
23793 height_special "totalheight"
23796 \begin_layout Standard
23798 This box is bottom-aligned.
23804 This is an example text line.
23807 \begin_layout Standard
23808 The horizontal box alignment can be set via LyX's paragraph dialog when
23809 you set the box into its own paragraph.
23812 \begin_layout Standard
23813 \begin_inset VSpace bigskip
23816 When you have chosen an
23821 , the box content can be vertical aligned to:
23824 \begin_layout Description
23825 top This is an example text line.
23827 \begin_inset Box Boxed
23836 height_special "totalheight"
23839 \begin_layout Standard
23841 This box text is top-aligned.
23847 This is an example text line.
23850 \begin_layout Description
23851 middle This is an example text line.
23853 \begin_inset Box Boxed
23862 height_special "totalheight"
23865 \begin_layout Standard
23867 This box text is middle-aligned.
23873 This is an example text line.
23876 \begin_layout Description
23877 bottom This is an example text line.
23879 \begin_inset Box Boxed
23888 height_special "totalheight"
23891 \begin_layout Standard
23893 This box text is bottom-aligned.
23899 This is an example text line.
23902 \begin_layout Description
23903 stretch This is an example text line.
23905 \begin_inset Box Boxed
23914 height_special "totalheight"
23917 \begin_layout Standard
23922 \begin_layout Standard
23927 \begin_layout Standard
23935 This is an example text line.
23938 \begin_layout Standard
23939 To stretch the box content, it must consist of more than one paragraph.
23940 In the example above every text line is in an own paragraph.
23943 \begin_layout Standard
23944 \begin_inset VSpace bigskip
23947 To align the box content horizontally you can use LyX's paragraph dialog
23948 when you have chosen an
23956 \begin_layout Standard
23958 \begin_inset Box Boxed
23967 height_special "totalheight"
23970 \begin_layout Standard
23975 \begin_layout Standard
23980 \begin_layout Standard
23990 \begin_layout Standard
23991 If you haven't set an
23996 , you can align the box content horizontally in the box dialog.
23999 \begin_layout Standard
24001 \begin_inset Box Boxed
24010 height_special "totalheight"
24013 \begin_layout Standard
24015 This box text is horizontally stretched.
24023 \begin_layout Section
24025 \begin_inset LatexCommand label
24026 name "sec:Framed-Boxes"
24031 \begin_inset LatexCommand index
24032 name "Boxes ! Frames"
24039 \begin_layout Standard
24040 The frame style of the box can be specified in the box-dialog in the drop-down
24046 The following frame types are possible:
24049 \begin_layout Description
24050 Rectangular\InsetSpace ~
24051 box This draws a rectangle frame around the box.
24052 The frame line thickness has the size of
24060 \begin_inset Box Boxed
24069 height_special "totalheight"
24072 \begin_layout Standard
24082 \begin_layout Description
24085 thin This draws an oval frame around the box.
24086 The frame line thickness has the size 0.4\InsetSpace \thinspace{}
24089 \begin_inset Box ovalbox
24098 height_special "totalheight"
24101 \begin_layout Standard
24111 \begin_layout Description
24114 thick This draws an oval frame around the box.
24115 The frame line thickness has the size 0.8\InsetSpace \thinspace{}
24118 \begin_inset Box Ovalbox
24127 height_special "totalheight"
24130 \begin_layout Standard
24140 \begin_layout Description
24141 Shadow\InsetSpace ~
24142 box This draws a rectangle frame with a shadow around the box.
24143 The frame line thickness has the size of
24149 , the shadow has a width of 4\InsetSpace \thinspace{}
24152 \begin_inset Box Shadowbox
24161 height_special "totalheight"
24164 \begin_layout Standard
24174 \begin_layout Description
24175 Double\InsetSpace ~
24176 box This draws a double-line rectangle frame around the box.
24177 The line thickness of the inner frame is 0.75\InsetSpace \thinspace{}
24184 , the thickness of the outer frame is 1.5\InsetSpace \thinspace{}
24192 The distance between the lines is 1.5\InsetSpace \thinspace{}
24199 \InsetSpace \thinspace{}
24200 +\InsetSpace \thinspace{}
24201 0.5\InsetSpace \thinspace{}
24204 \begin_inset Box Doublebox
24213 height_special "totalheight"
24216 \begin_layout Standard
24226 \begin_layout Standard
24227 \begin_inset VSpace bigskip
24230 LyX's box label will change to the used frame style when you set a frame.
24231 To be able to use the different frame styles, the LaTeX-package
24236 \begin_inset LatexCommand index
24237 name "LaTeX-packages ! fancybox"
24244 \begin_layout Standard
24245 \begin_inset VSpace bigskip
24248 The default value for the size
24254 is 0.4\InsetSpace \thinspace{}
24256 It can be changed with the following command in ERT to e.\InsetSpace \thinspace{}
24258 2\InsetSpace \thinspace{}
24262 \begin_layout Standard
24272 \begin_layout Standard
24276 \begin_layout Standard
24288 \begin_inset Box Boxed
24297 height_special "totalheight"
24300 \begin_layout Standard
24302 Rectangular box with
24308 \InsetSpace \thinspace{}
24309 =\InsetSpace \thinspace{}
24310 2\InsetSpace \thinspace{}
24320 \begin_layout Standard
24334 \begin_layout Standard
24335 \begin_inset VSpace bigskip
24338 The space between the frame and the box content is for all frame styles
24339 by default 3\InsetSpace \thinspace{}
24341 You can change it by setting the length
24348 For example the command
24351 \begin_layout Standard
24361 \begin_layout Standard
24362 sets the value to 10\InsetSpace \thinspace{}
24363 pt, like for the following box:
24366 \begin_layout Standard
24370 \begin_layout Standard
24382 \begin_inset Box Boxed
24391 height_special "totalheight"
24394 \begin_layout Standard
24396 Rectangular box with
24402 \InsetSpace \thinspace{}
24403 =\InsetSpace \thinspace{}
24404 10\InsetSpace \thinspace{}
24414 \begin_layout Standard
24428 \begin_layout Standard
24429 \begin_inset VSpace bigskip
24432 The diameter of the round corners of the oval boxes can be set with the
24443 \begin_layout Standard
24451 \begin_layout Standard
24452 sets the diameter to 1\InsetSpace \thinspace{}
24457 \begin_layout Standard
24465 \begin_layout Standard
24466 sets the diameter to
24468 num\InsetSpace \thinspace{}
24469 ×\InsetSpace \thinspace{}
24470 minimum(width and heigth of box)
24482 \begin_layout Standard
24486 \begin_layout Standard
24496 \begin_inset Box Ovalbox
24505 height_special "totalheight"
24508 \begin_layout Standard
24516 \InsetSpace \thinspace{}
24517 =\InsetSpace \thinspace{}
24518 1.5\InsetSpace \thinspace{}
24528 \begin_layout Standard
24540 \begin_layout Standard
24541 \begin_inset VSpace bigskip
24544 The size of the shadow can be adjusted by changing the length
24551 It it set to 2\InsetSpace \thinspace{}
24552 pt for the following box by this command:
24555 \begin_layout Standard
24565 \begin_layout Standard
24569 \begin_layout Standard
24581 \begin_inset Box Shadowbox
24590 height_special "totalheight"
24593 \begin_layout Standard
24601 \InsetSpace \thinspace{}
24602 =\InsetSpace \thinspace{}
24603 2\InsetSpace \thinspace{}
24613 \begin_layout Standard
24627 \begin_layout Standard
24628 \begin_inset VSpace bigskip
24631 Changed lengths and widths are valid for all boxes following the commands
24635 \begin_layout Section
24637 \begin_inset LatexCommand label
24638 name "sec:Minipages"
24643 \begin_inset LatexCommand index
24644 name "Boxes ! Minipages"
24651 \begin_layout Standard
24652 Minipages are treated by LaTeX as pages within pages and can therefore for
24653 example have their own footnotes.
24656 \begin_layout Standard
24657 Minipages are useful when you write documents with different languages.
24660 \begin_layout Standard
24661 Below are two example minipages side by side.
24662 Their width is set to 45\InsetSpace \thinspace{}
24663 col% and they are separated by a horizontal fill,
24664 that was inserted via the menu
24666 Insert\SpecialChar \menuseparator
24667 Special\InsetSpace ~
24668 Formatting\SpecialChar \menuseparator
24669 Horizontal\InsetSpace ~
24675 \begin_layout Standard
24676 \begin_inset Box Frameless
24685 height_special "totalheight"
24688 \begin_layout Standard
24691 Dies ist ein deutscher Text.
24692 Dies ist ein deutscher Text.
24693 Dies ist ein deutscher Text.
24694 Dies ist ein deutscher Text.
24695 Dies ist ein deutscher Text.
24696 Dies ist ein deutscher Text.
24697 Dies ist ein deutscher Text.
24698 Dies ist ein deutscher Text.
24699 Dies ist ein deutscher Text.
24700 Dies ist ein deutscher Text.
24701 Dies ist ein deutscher Text.
24702 Dies ist ein deutscher Text.
24703 Dies ist ein deutscher Text
24707 \begin_layout Standard
24710 Dies ist eine deutsche Fußnote.
24716 Dies ist ein deutscher Text.
24717 Dies ist ein deutscher Text.
24725 \begin_inset Box Frameless
24734 height_special "totalheight"
24737 \begin_layout Standard
24738 This is an English Text.
24739 This is an English Text.
24740 This is an English Text.
24741 This is an English Text.
24742 This is an English Text.
24743 This is an English Text.
24744 This is an English Text.
24745 This is an English Text.
24746 This is an English Text.
24747 This is an English Text.
24748 This is an English Text.
24749 This is an English Text.
24750 This is an English Text.
24751 This is an English Text.
24752 This is an English Text.
24753 This is an English Text.
24757 \begin_layout Standard
24758 This is an English footnote.
24763 This is an English Text.
24772 \begin_layout Standard
24773 \begin_inset VSpace bigskip
24776 Another application for minipages are footnotes within tables.
24777 Due to a LaTeX restriction footnotes within tables doesn't appear at the
24778 bottom of the current page.
24779 But when you put the table with the footnote to a minipage, the footnote
24780 will appear at its bottom, numbered with Latin letters.
24781 The footnote number is reset to 1 in every minipage but not outside the
24785 \begin_layout Standard
24786 The footnote of this table doesn't appear:
24787 \begin_inset Tabular
24788 <lyxtabular version="3" rows="3" columns="4">
24790 <column alignment="center" valignment="top" leftline="true" width="0pt">
24791 <column alignment="center" valignment="top" leftline="true" width="0pt">
24792 <column alignment="center" valignment="top" leftline="true" width="0pt">
24793 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
24794 <row topline="true">
24795 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24798 \begin_layout Standard
24804 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24807 \begin_layout Standard
24813 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24816 \begin_layout Standard
24821 \begin_layout Standard
24822 This is a footnote within a table.
24832 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24835 \begin_layout Standard
24842 <row topline="true">
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
24861 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24864 \begin_layout Standard
24870 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24873 \begin_layout Standard
24880 <row topline="true" bottomline="true">
24881 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24884 \begin_layout Standard
24890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24893 \begin_layout Standard
24899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24902 \begin_layout Standard
24908 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24911 \begin_layout Standard
24925 \begin_layout Standard
24927 \begin_inset Box Frameless
24936 height_special "totalheight"
24939 \begin_layout Standard
24941 \begin_inset Tabular
24942 <lyxtabular version="3" rows="3" columns="4">
24944 <column alignment="center" valignment="top" leftline="true" width="0pt">
24945 <column alignment="center" valignment="top" leftline="true" width="0pt">
24946 <column alignment="center" valignment="top" leftline="true" width="0pt">
24947 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
24948 <row topline="true">
24949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24952 \begin_layout Standard
24958 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24961 \begin_layout Standard
24967 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24970 \begin_layout Standard
24975 \begin_layout Standard
24976 This is a footnote within a table.
24986 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24989 \begin_layout Standard
24996 <row topline="true">
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
25015 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25018 \begin_layout Standard
25024 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25027 \begin_layout Standard
25034 <row topline="true" bottomline="true">
25035 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25038 \begin_layout Standard
25044 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25047 \begin_layout Standard
25053 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25056 \begin_layout Standard
25062 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25065 \begin_layout Standard
25084 \begin_layout Standard
25085 \begin_inset VSpace bigskip
25088 The document-wide paragraph settings are ignored within minipages.
25089 That means that there will be no space between paragraphs in minipages
25090 although you set it to e.\InsetSpace \thinspace{}
25096 in the document settings.
25099 \begin_layout Standard
25100 Minipages can also be used to set a background color for text parts, see
25101 section\InsetSpace ~
25103 \begin_inset LatexCommand ref
25104 reference "sub:Color-for-Paragraphs"
25111 \begin_layout Standard
25112 \begin_inset Note Greyedout
25115 \begin_layout Standard
25120 You cannot have floats or margin notes inside minipages but minipages can
25121 be used inside tables, floats, and other boxes.
25129 \begin_layout Section
25131 \begin_inset LatexCommand label
25132 name "sec:Parboxes"
25137 \begin_inset LatexCommand index
25138 name "Boxes ! Parboxes"
25145 \begin_layout Standard
25146 Parboxes are very similar to minipages with the difference that they cannot
25148 The main difference to minipages is that minipages are in contrary to parboxes
25149 no real boxes but LaTeX-environments.
25152 \begin_layout Standard
25154 \begin_inset Box Frameless
25163 height_special "totalheight"
25166 \begin_layout Standard
25167 This a text within a parbox.
25168 This a text within a parbox.
25171 \begin_layout Standard
25172 This footnote won't appear:
25176 \begin_layout Standard
25177 This footnote is inside a parbox and will therefore not appear.
25190 \begin_layout Section
25191 Boxes for Words and Characters
25192 \begin_inset LatexCommand index
25193 name "Boxes ! for Characters"
25200 \begin_layout Subsection
25201 Prevent Hyphenation
25202 \begin_inset LatexCommand label
25203 name "sec:Prevent-Hyphenation"
25208 \begin_inset LatexCommand index
25209 name "Boxes ! to Prevent Hyphenation"
25216 \begin_layout Standard
25217 You can use a special kind of boxes to prevent words or text to be hyphenated.
25220 e is an example text:
25223 \begin_layout Standard
25224 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25230 \begin_layout Standard
25231 To prevent the hyphenation of the word
25232 \begin_inset Quotes eld
25236 \begin_inset Quotes erd
25242 \begin_layout Standard
25250 \begin_layout Standard
25251 in ERT before the word.
25252 Behind the word insert a closing brace
25253 \begin_inset Quotes eld
25261 \begin_inset Quotes erd
25268 \begin_layout Standard
25280 \begin_layout Standard
25281 This is the result:
25284 \begin_layout Standard
25285 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25291 \begin_layout Standard
25304 \begin_layout Standard
25314 \begin_layout Standard
25315 Of course the word now protrudes over the side margin.
25316 To avoid this, add via the menu
25318 Insert\SpecialChar \menuseparator
25319 Special\InsetSpace ~
25320 Formatting\SpecialChar \menuseparator
25328 ) a line break before the word:
25331 \begin_layout Standard
25332 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25340 \begin_layout Standard
25353 \begin_layout Standard
25363 \begin_layout Subsection
25365 \begin_inset LatexCommand label
25366 name "sub:Vertical-Alignment"
25371 \begin_inset LatexCommand index
25372 name "Boxes ! for Vertical Alignment"
25377 \begin_inset LatexCommand index
25378 name "Boxes ! Raiseboxes"
25385 \begin_layout Standard
25386 With the help of the command
25392 you can align words, characters or other boxes vertically to the surrounding
25400 is used with the following scheme:
25403 \begin_layout Standard
25408 raisebox{lift}[height][depth]{box content}
25411 \begin_layout Standard
25412 The lift can be a positive value to raise the box or a negative value to
25416 \begin_layout Standard
25417 To align for example the word
25418 \begin_inset Quotes eld
25422 \begin_inset Quotes erd
25425 so that the bottom of the
25426 \begin_inset Quotes eld
25430 \begin_inset Quotes erd
25434 \begin_inset Quotes eld
25438 \begin_inset Quotes erd
25441 is at the baseline, insert the command
25444 \begin_layout Standard
25454 \begin_layout Standard
25455 in ERT before the word.
25456 Behind the word insert a closing brace
25457 \begin_inset Quotes eld
25465 \begin_inset Quotes erd
25470 This is the result:
25473 \begin_layout Standard
25474 This is a text line with the word
25478 \begin_layout Standard
25490 \begin_inset Quotes eld
25494 \begin_inset Quotes erd
25501 \begin_layout Standard
25511 \begin_layout Standard
25512 \begin_inset VSpace bigskip
25515 When you raise or lower characters in a line, the line distance will be
25519 \begin_layout Standard
25520 This is a text line with the word
25524 \begin_layout Standard
25536 \begin_inset Quotes eld
25540 \begin_inset Quotes erd
25547 \begin_layout Standard
25556 This is a text line with the word
25560 \begin_layout Standard
25570 \begin_inset Quotes eld
25574 \begin_inset Quotes erd
25581 \begin_layout Standard
25591 \begin_layout Standard
25592 If you want to prevent this for a certain reason, set the box height to
25597 \begin_layout Standard
25607 \begin_layout Standard
25608 This is a text line with the word
25612 \begin_layout Standard
25624 \begin_inset Quotes eld
25628 \begin_inset Quotes erd
25635 \begin_layout Standard
25644 This is a text line with the word
25648 \begin_layout Standard
25652 raisebox{0.5cm}[0pt]{
25658 \begin_inset Quotes eld
25662 \begin_inset Quotes erd
25669 \begin_layout Standard
25679 \begin_layout Section
25681 \begin_inset LatexCommand label
25682 name "sec:Colored-Boxes"
25687 \begin_inset LatexCommand index
25688 name "Boxes ! Color"
25695 \begin_layout Subsection
25697 \begin_inset LatexCommand index
25698 name "Color ! for Text"
25705 \begin_layout Standard
25706 To color the background of text the text must be put into a so called colorbox.
25707 This requires that the LaTeX-package
25712 \begin_inset LatexCommand index
25713 name "LaTeX-packages ! color"
25717 is loaded in the document preamble with the command
25720 \begin_layout Standard
25725 @ifundef\SpecialChar \textcompwordmark{}
25732 \begin_layout Standard
25743 usepackage{color}}{}
25746 \begin_layout Standard
25751 will be loaded automatically by LyX when you color text
25755 \begin_layout Standard
25756 To avoid that it is loaded twice the command
25760 @ifundef\SpecialChar \textcompwordmark{}
25771 \begin_layout Standard
25772 \begin_inset VSpace medskip
25775 Colorboxes are created with the command
25782 This will be used with the following scheme:
25785 \begin_layout Standard
25790 colorbox{color}{box content}
25793 \begin_layout Standard
25794 The box content can also be a box and colorboxes can also be within other
25798 \begin_layout Standard
25799 The following colors are predefined:
25838 You can also define your own color as described in section\InsetSpace ~
25840 \begin_inset LatexCommand ref
25841 reference "sec:Colored-Tables"
25848 \begin_layout Standard
25849 To have e.\InsetSpace \thinspace{}
25851 a red background for a word, insert the command
25854 \begin_layout Standard
25862 \begin_layout Standard
25863 before the word in ERT.
25864 Behind the word insert a closing brace
25865 \begin_inset Quotes eld
25873 \begin_inset Quotes erd
25878 This is the result:
25881 \begin_layout Standard
25882 This is a line where the word
25886 \begin_layout Standard
25896 \begin_inset Quotes eld
25900 \begin_inset Quotes erd
25907 \begin_layout Standard
25914 has a red background.
25917 \begin_layout Standard
25918 \begin_inset VSpace bigskip
25921 If you would have the box frame in a different color, you can use the command
25928 with the following scheme:
25931 \begin_layout Standard
25936 fcolorbox{frame color}{box color}{box content}
25939 \begin_layout Standard
25953 The frame thickness and the space between the frame and the box content
25954 can be adjusted with the lengths
25966 , respectively, as described in section\InsetSpace ~
25968 \begin_inset LatexCommand ref
25969 reference "sec:Framed-Boxes"
25976 \begin_layout Standard
25977 For the following example the command
25980 \begin_layout Standard
25985 fcolorbox{cyan}{magenta}{
25988 \begin_layout Standard
25992 \begin_layout Standard
25993 Here is an example where the frame line thickness was set to 1\InsetSpace \thinspace{}
26000 \begin_layout Standard
26015 \begin_layout Standard
26019 fcolorbox{cyan}{magenta}{
26024 This is text within a colored, framed box.
26028 \begin_layout Standard
26038 \begin_layout Standard
26039 \begin_inset VSpace bigskip
26042 Of course you can also have colored text inside a colorbox:
26048 \begin_layout Standard
26052 fcolorbox{cyan}{magenta}{
26059 This is colored text within a colored, framed box.
26065 \begin_layout Standard
26076 \begin_layout Standard
26090 \begin_layout Standard
26093 \begin_inset VSpace medskip
26099 \begin_layout Standard
26100 \begin_inset Note Greyedout
26103 \begin_layout Standard
26108 Text in colorboxes cannot have line breaks.
26109 To color multiple text lines or paragraphs, use a box inside a colorbox
26110 as described in the following.
26118 \begin_layout Subsection
26119 Color for Paragraphs
26120 \begin_inset LatexCommand label
26121 name "sub:Color-for-Paragraphs"
26126 \begin_inset LatexCommand index
26127 name "Color ! for Paragraphs"
26134 \begin_layout Standard
26135 To set the background color for more than one text line, put the text into
26137 Before the minipage insert the
26146 \begin_layout Standard
26154 \begin_layout Standard
26156 Behind the minipage insert a closing brace
26157 \begin_inset Quotes eld
26165 \begin_inset Quotes erd
26171 \begin_layout Standard
26175 \begin_layout Standard
26179 colorbox{lightgrey}{
26185 \begin_inset Box Frameless
26194 height_special "totalheight"
26197 \begin_layout Standard
26198 This is text with background color.
26199 This is text with background color.
26202 \begin_layout Standard
26203 \begin_inset VSpace defskip
26206 The text can have footnotes
26210 \begin_layout Standard
26211 Another example footnote
26216 and can include tables and figures.
26219 \begin_layout Standard
26221 \begin_inset Tabular
26222 <lyxtabular version="3" rows="3" columns="3">
26224 <column alignment="center" valignment="top" leftline="true" width="0">
26225 <column alignment="center" valignment="top" leftline="true" width="0">
26226 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
26227 <row topline="true">
26228 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26231 \begin_layout Standard
26237 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26240 \begin_layout Standard
26246 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26249 \begin_layout Standard
26256 <row topline="true">
26257 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26260 \begin_layout Standard
26266 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26269 \begin_layout Standard
26271 \begin_inset Quotes erd
26279 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26282 \begin_layout Standard
26289 <row topline="true" bottomline="true">
26290 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26293 \begin_layout Standard
26299 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26302 \begin_layout Standard
26308 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26311 \begin_layout Standard
26331 \begin_layout Standard
26341 \begin_layout Section
26342 URLs (Uniform Resource Locators)
26343 \begin_inset LatexCommand index
26351 \begin_layout Standard
26352 Links to web pages or email addresses can be inserted via the menu
26354 Insert\SpecialChar \menuseparator
26358 The appearing URL dialog has two fields; the
26366 field for the URL description, which will be typeset as plain text immediately
26370 \begin_layout Standard
26371 Here is an example URL:
26372 \begin_inset LatexCommand url
26373 name "LyX's homepage"
26374 target "http://www.lyx.org"
26381 \begin_layout Standard
26384 Generate\InsetSpace ~
26387 in the URL dialog has only an affect when you export your document to the
26389 \begin_inset Quotes eld
26397 \begin_inset Quotes erd
26403 \begin_layout Standard
26404 You cannot change the style of the link text.
26409 field will have the default text style of the document while the text of
26414 field will have the style
26415 \begin_inset Quotes eld
26423 \begin_inset Quotes erd
26429 \begin_layout Standard
26430 When you use the LaTeX-package
26435 \begin_inset LatexCommand index
26436 name "LaTeX-packages ! hyperref"
26440 to link cross-references in the output, URLs will automatically become
26441 clickable hyperlinks in DVI and PDF-output.
26444 \begin_layout Standard
26445 \begin_inset Note Greyedout
26448 \begin_layout Standard
26453 When you use the following characters: "%", "#", "^", you have to write
26454 them with a preceding backslash, e.\InsetSpace \thinspace{}
26457 \begin_inset Quotes eld
26463 \begin_inset Quotes erd
26467 URLs must not end with a backslash.
26475 \begin_layout Standard
26476 \begin_inset VSpace bigskip
26479 To create real hyperlinks without the force to write the link location to
26480 the text, you can use the command
26483 \begin_layout Standard
26488 href{link location}{link text}
26491 \begin_layout Standard
26493 To get for example a link to LyX's web page, write the command
26496 \begin_layout Standard
26501 href{http://www.lyx.org}{
26504 \begin_layout Standard
26506 Insert after the command the link text
26507 \begin_inset Quotes eld
26511 \begin_inset Quotes erd
26514 as normal text followed by a closing brace
26515 \begin_inset Quotes eld
26523 \begin_inset Quotes erd
26527 This is the result:
26531 \begin_layout Standard
26535 href{http://www.lyx.org}{
26544 \begin_layout Standard
26554 \begin_layout Standard
26555 To link to email addresses, add the prefix
26556 \begin_inset Quotes eld
26564 \begin_inset Quotes erd
26567 to the link location:
26573 \begin_layout Standard
26577 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's documentation}{
26582 lyx-docs mailing list
26586 \begin_layout Standard
26596 \begin_layout Standard
26603 instead of LyX's URL box has the advantage that you can specify the text
26604 style of the link text like for all other text parts.
26605 You can therefore set hyphenation points and forced linebreaks to have
26606 long link text broken at the page margin.
26607 You are furthermore able to change the text style for all URLs in your
26608 document with an option in
26612 's load command and the restrictions mentioned above doesn't apply for
26621 \begin_layout Chapter
26623 \begin_inset LatexCommand index
26624 name "External Stuff"
26631 \begin_layout Standard
26634 Insert\SpecialChar \menuseparator
26637 you can insert external material to your document.
26641 \begin_layout Description
26643 Document Another LyX document; its content is directly inserted to your
26647 \begin_layout Description
26649 Text A text document; every of its text lines is inserted to your document
26653 \begin_layout Description
26657 Lines A text document; its text lines are inserted as they
26659 Empty text lines creates a new paragraph in your document.
26662 \begin_layout Description
26663 External\InsetSpace ~
26664 Material Files in various formats.
26667 \begin_layout Description
26669 Document LyX or LaTeX-documents.
26672 \begin_layout Section
26674 \begin_inset LatexCommand index
26675 name "External Stuff ! External Material"
26682 \begin_layout Standard
26683 The external material feature allows you to insert files to your document
26684 without converting them previously to a format that can be read by the
26685 document output format because LyX takes care of needed conversions.
26686 This is similar to images that can be inserted in various image formats
26690 \begin_layout Standard
26691 External material can be inserted via the
26695 dialog that is accessible with the menu
26697 Insert\SpecialChar \menuseparator
26698 File\SpecialChar \menuseparator
26699 External\InsetSpace ~
26703 Currently the following file types (
26710 \begin_layout Description
26711 ChessDiagram This template supports chess position diagrams made with the
26716 \begin_layout Standard
26720 href{http://en.wikipedia.org/wiki/XBoard}{
26733 \begin_layout Standard
26743 \begin_layout Description
26744 Date This inserts the date in the form
26749 This is a date inserted as external material:
26750 \begin_inset External
26758 The date is not shown within LyX, only in the output.
26759 There are two other methods of inserting a date, via menu
26761 Insert\SpecialChar \menuseparator
26764 and with the LaTeX command
26771 The different methods are compared in Table\InsetSpace ~
26773 \begin_inset LatexCommand ref
26774 reference "tab:Comparison-of-the"
26781 \begin_layout Description
26782 LilyPond This template is used for music notation typeset with the program
26786 \begin_layout Standard
26799 \begin_layout Standard
26803 href{http://en.wikipedia.org/wiki/LilyPond}{
26816 \begin_layout Standard
26824 \begin_inset Note Note
26827 \begin_layout Standard
26834 breaks the line while the remaining text in the line is stretched to the
26843 \begin_layout Description
26844 RasterImage This can be used for bitmap images.
26845 Nearly all popular image formats are supported.
26846 The image can be treated in the
26850 dialog like the images that are usually included via the
26854 dialog as described in section\InsetSpace ~
26856 \begin_inset LatexCommand ref
26857 reference "sec:Graphics-Dialog"
26862 The difference is that only raster images are allowed, that means that
26863 PDF and EPS-images are not supported.
26866 \begin_layout Description
26867 XFig This template supports images created with the program
26871 \begin_layout Standard
26875 href{http://en.wikipedia.org/wiki/Xfig}{
26888 \begin_layout Standard
26898 \begin_layout Standard
26899 \begin_inset Float table
26905 \begin_layout Standard
26906 \begin_inset Caption
26908 \begin_layout Standard
26909 \begin_inset LatexCommand label
26910 name "tab:Comparison-of-the"
26914 Comparison of the date input methods.
26922 \begin_layout Standard
26924 \begin_inset Tabular
26925 <lyxtabular version="3" rows="4" columns="4">
26927 <column alignment="center" valignment="top" leftline="true" width="0">
26928 <column alignment="center" valignment="top" leftline="true" width="0">
26929 <column alignment="center" valignment="top" leftline="true" width="0">
26930 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
26931 <row topline="true">
26932 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26935 \begin_layout Standard
26941 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26944 \begin_layout Standard
26947 External Material\SpecialChar \menuseparator
26953 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26956 \begin_layout Standard
26959 Insert\SpecialChar \menuseparator
26965 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26968 \begin_layout Standard
26979 <row topline="true">
26980 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26983 \begin_layout Standard
26989 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26992 \begin_layout Standard
26998 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27001 \begin_layout Standard
27007 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27010 \begin_layout Standard
27017 <row topline="true">
27018 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27021 \begin_layout Standard
27027 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27030 \begin_layout Standard
27036 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27039 \begin_layout Standard
27045 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27048 \begin_layout Standard
27055 <row topline="true" bottomline="true">
27056 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27059 \begin_layout Standard
27065 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27068 \begin_layout Standard
27074 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27077 \begin_layout Standard
27083 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27086 \begin_layout Standard
27105 \begin_layout Standard
27106 When you use the option
27118 dialog, only the path to the inserted file is shown in the output.
27121 material is displayed in LyX either as box like this:
27122 \begin_inset Graphics
27123 filename clipart/ExternalMaterialQt4.png
27128 or as image, depending on the setting in the
27140 \begin_layout Standard
27147 manual explains how you can define your own templates.
27150 \begin_layout Section
27152 \begin_inset LatexCommand index
27153 name "External Stuff ! Child Documents"
27158 \begin_inset LatexCommand index
27159 name "Files ! Include"
27166 \begin_layout Standard
27167 Child documents are used when you have a long document consisting of several
27168 larger parts or sections.
27169 For maintenance it is often useful and sometimes even required to split
27170 the document in several files that can be revised separately.
27171 The different documents are then the so called child documents and a master
27172 document connects them to print the full document or parts of it.
27175 \begin_layout Standard
27176 Included documents are displayed in LyX as a box like this:
27177 \begin_inset Graphics
27178 filename clipart/ChildDocumentQt4.png
27183 To include child documents to a master document use the menu
27185 Insert\SpecialChar \menuseparator
27186 File\SpecialChar \menuseparator
27191 A dialog pops up where you can choose between three include methods:
27194 \begin_layout Description
27195 Include You can include LyX and LaTeX-documents.
27204 dialog, the included documents will be opened in LyX in a new file tab
27205 so that you can modify it.
27210 \begin_layout Standard
27211 Here is a child document inserted using
27216 \begin_inset Include \include{DummyDocument1.lyx}
27224 \begin_layout Standard
27225 The section numbering includes the sections of the included files in the
27226 order they are inserted in the master document.
27227 The included example document has for example a subsection that is numbered
27228 as subsection of this section.
27229 Labels of included documents can be referenced: Subsection\InsetSpace ~
27231 \begin_inset LatexCommand ref
27232 reference "sub:External-Subsection-1"
27239 \begin_layout Standard
27240 The preamble of the child document is ignored, only the preamble of the
27241 master document is used.
27242 Included documents are inserted starting on a new page and end with a pagebreak.
27245 \begin_layout Standard
27246 With the LaTeX-command
27252 you can specify which included child documents are processed when the output
27254 This is useful when you are perhaps only working on a certain chapter of
27255 your large document as this saves compiling time.
27262 is inserted to the master document preamble.
27263 It takes a comma-separated list of the filenames as argument, e.g.
27266 \begin_layout Standard
27271 includeonly{chapter1,chapter5}
27274 \begin_layout Standard
27275 will only process the included files named
27276 \begin_inset Quotes eld
27280 \begin_inset Quotes erd
27284 \begin_inset Quotes eld
27288 \begin_inset Quotes erd
27292 \begin_inset Quotes eld
27296 \begin_inset Quotes erd
27302 \begin_layout Standard
27303 \begin_inset Note Greyedout
27306 \begin_layout Standard
27311 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
27312 w the document in case that the child document uses another document class
27313 than the master document as this will lead to unexpected outputs.
27321 \begin_layout Description
27322 Input This method is very similar to the Include method.
27323 The differences are:
27327 \begin_layout Itemize
27328 Input files don't start with a new page and don't end with a pagebreak.
27331 \begin_layout Itemize
27332 Input files can be previewed in LyX when
27334 Instant\InsetSpace ~
27337 is enabled in LyX's preferences under
27341 feel\SpecialChar \menuseparator
27347 \begin_layout Itemize
27358 \begin_layout Standard
27359 Here is a child document inserted using
27364 \begin_inset Include \input{DummyDocument2.lyx}
27372 \begin_layout Description
27373 Verbatim With this method every text file can be included.
27374 The file is shown in the output with its source code, no command used in
27375 the text is invoked.
27376 You can use the option
27378 Mark spaces in output
27380 that displays the character
27381 \begin_inset Quotes eld
27388 \begin_layout Standard
27398 \begin_inset Quotes erd
27401 for every space character in the source code.
27402 The difference to the method via the menu
27404 Insert\SpecialChar \menuseparator
27405 File\SpecialChar \menuseparator
27409 is that the document content is not shown in LyX.
27412 \begin_layout Standard
27413 Here is a child document inserted as Verbatim:
27414 \begin_inset Include \verbatiminput{DummyTextDocument.txt}
27420 \begin_inset VSpace bigskip
27423 Here is a child document inserted as Verbatim using the
27425 Mark spaces in output
27428 \begin_inset Include \verbatiminput*{DummyTextDocument.txt}
27436 \begin_layout Standard
27437 \begin_inset VSpace bigskip
27443 \begin_layout Standard
27444 \begin_inset Note Greyedout
27447 \begin_layout Standard
27452 As you can see in the examples above, the text of the documents included
27453 as verbatim is not broken at the end of the document lines.
27461 \begin_layout Standard
27462 \begin_inset Note Greyedout
27465 \begin_layout Standard
27470 Including the same document twice in a document using different methods
27471 could cause LaTeX-problems.
27479 \begin_layout Standard
27485 \begin_layout Chapter
27491 \begin_layout Standard
27504 \begin_layout Standard
27512 \begin_inset LatexCommand index
27518 \begin_inset LatexCommand label
27519 name "cha:Units-available-in"
27524 \begin_inset Note Note
27527 \begin_layout Standard
27530 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
27531 are displayed wrongly in PDF-bookmarks.
27532 For more information about this, have a look at
27533 \begin_inset LatexCommand cite
27546 \begin_layout Standard
27547 To understand the units described in this documentation, Table\InsetSpace ~
27549 \begin_inset LatexCommand ref
27550 reference "tab:Units"
27554 explains all units available in LyX.
27557 \begin_layout Standard
27558 \begin_inset Float table
27564 \begin_layout Standard
27565 \begin_inset Caption
27567 \begin_layout Standard
27568 \begin_inset LatexCommand label
27581 \begin_layout Standard
27582 \begin_inset VSpace medskip
27588 \begin_layout Standard
27590 \begin_inset Tabular
27591 <lyxtabular version="3" rows="20" columns="2">
27593 <column alignment="center" valignment="top" leftline="true" width="0">
27594 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27595 <row topline="true" bottomline="true">
27596 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27599 \begin_layout Standard
27605 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27608 \begin_layout Standard
27615 <row topline="true">
27616 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27619 \begin_layout Standard
27625 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27628 \begin_layout Standard
27635 <row topline="true">
27636 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27639 \begin_layout Standard
27645 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27648 \begin_layout Standard
27655 <row topline="true">
27656 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27659 \begin_layout Standard
27665 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27668 \begin_layout Standard
27675 <row topline="true">
27676 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27679 \begin_layout Standard
27685 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27688 \begin_layout Standard
27689 point (72.27\InsetSpace \thinspace{}
27690 pt = 1\InsetSpace \thinspace{}
27697 <row topline="true">
27698 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27701 \begin_layout Standard
27707 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27710 \begin_layout Standard
27711 pica (1\InsetSpace \thinspace{}
27712 pc = 12\InsetSpace \thinspace{}
27719 <row topline="true">
27720 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27723 \begin_layout Standard
27729 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27732 \begin_layout Standard
27733 scaled point (65536\InsetSpace \thinspace{}
27734 sp = 1\InsetSpace \thinspace{}
27741 <row topline="true">
27742 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27745 \begin_layout Standard
27751 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27754 \begin_layout Standard
27755 big point (72\InsetSpace \thinspace{}
27756 bp = 1\InsetSpace \thinspace{}
27763 <row topline="true">
27764 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27767 \begin_layout Standard
27773 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27776 \begin_layout Standard
27777 didot (72\InsetSpace \thinspace{}
27779 \begin_inset Formula $\approx$
27782 37.6\InsetSpace \thinspace{}
27789 <row topline="true">
27790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27793 \begin_layout Standard
27799 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27802 \begin_layout Standard
27803 cicero (1\InsetSpace \thinspace{}
27804 cc = 12\InsetSpace \thinspace{}
27811 <row topline="true">
27812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27815 \begin_layout Standard
27821 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27824 \begin_layout Standard
27825 % of original image width
27831 <row topline="true">
27832 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27835 \begin_layout Standard
27841 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27844 \begin_layout Standard
27851 <row topline="true">
27852 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27855 \begin_layout Standard
27861 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27864 \begin_layout Standard
27871 <row topline="true">
27872 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27875 \begin_layout Standard
27881 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27884 \begin_layout Standard
27891 <row topline="true">
27892 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27895 \begin_layout Standard
27901 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27904 \begin_layout Standard
27911 <row topline="true">
27912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27915 \begin_layout Standard
27921 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27924 \begin_layout Standard
27931 <row topline="true">
27932 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27935 \begin_layout Standard
27941 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27944 \begin_layout Standard
27951 <row topline="true">
27952 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27955 \begin_layout Standard
27961 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27964 \begin_layout Standard
27975 <row topline="true">
27976 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27979 \begin_layout Standard
27985 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27988 \begin_layout Standard
27999 <row topline="true" bottomline="true">
28000 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28003 \begin_layout Standard
28009 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28012 \begin_layout Standard
28013 math unit (1\InsetSpace \thinspace{}
28014 mu = 1/18\InsetSpace \thinspace{}
28033 \begin_layout Chapter
28034 Output File Formats with Graphics
28035 \begin_inset LatexCommand label
28036 name "cha:Output-File-Formats"
28043 \begin_layout Section
28045 \begin_inset LatexCommand index
28046 name "File Formats ! DVI"
28051 \begin_inset LatexCommand index
28052 name "DVI|see{File Formats}"
28059 \begin_layout Standard
28060 This file type has the extension
28061 \begin_inset Quotes eld
28069 \begin_inset Quotes erd
28074 \begin_inset Quotes eld
28078 \begin_inset Quotes erd
28081 (DVI), because it is completely portable; you can move them from one machine
28082 to another without needing to do any sort of conversion.
28083 At the time when this file-format was developed, this was no matter of
28085 DVIs are used for quick previews and as pre-stage for other output formats,
28089 \begin_layout Standard
28090 \begin_inset Note Greyedout
28093 \begin_layout Standard
28098 DVI-files doesn't contain images, they will only be a linked.
28103 So don't forget this, if you move your
28107 file to another computer.
28108 This property can also slow down your computer when you view the DVI.
28109 Because the DVI-viewer has to convert the image in the background to make
28110 it visible when you scroll in the DVI.
28111 So we recommend to use PDF for files with many images.
28114 \begin_layout Standard
28115 You can export your document to DVI by using the menu
28117 File\SpecialChar \menuseparator
28118 Export\SpecialChar \menuseparator
28122 You can view your document as DVI via the
28126 menu or by using the toolbar button
28127 \begin_inset Graphics
28128 filename ../images/buffer-view_dvi.xpm
28136 \begin_layout Section
28138 \begin_inset LatexCommand label
28139 name "sec:PostScript"
28144 \begin_inset LatexCommand index
28145 name "File Formats ! PostScript"
28150 \begin_inset LatexCommand index
28151 name "PostScript|see{File Formats}"
28158 \begin_layout Standard
28159 This file type has the extension
28160 \begin_inset Quotes eld
28168 \begin_inset Quotes erd
28172 PostScript was developed by the company
28176 as printer language.
28177 The file contains therefore commands that the printer uses to print the
28179 PostScript can be seen as
28180 \begin_inset Quotes eld
28183 programming language
28184 \begin_inset Quotes erd
28187 ; you can calculate with it and draw diagrams and images
28191 \begin_layout Standard
28192 If you are interested to learn more about this, have a look at the LaTeX-package
28198 \begin_inset LatexCommand cite
28209 Due to this ability, the files are often bigger than PDFs.
28212 \begin_layout Standard
28213 PostScript can only contain images in the format
28214 \begin_inset Quotes eld
28217 Encapsulated PostScript
28218 \begin_inset Quotes erd
28221 (EPS, file extension
28222 \begin_inset Quotes eld
28230 \begin_inset Quotes erd
28234 As LyX allows you to use any known image format in your document, it has
28235 to convert images in the background to EPS.
28236 If you have e.g 50 images in your document, LyX has to do 50 conversions
28237 whenever you view or export your document.
28238 This will slow down your work flow with LyX drastically.
28239 So if you plan to use PostScript, you can insert your images directly as
28240 EPS to avoid this problem.
28243 \begin_layout Standard
28244 You can export your document to PostScript using the menu
28246 File\SpecialChar \menuseparator
28247 Export\SpecialChar \menuseparator
28251 You can view your document as PostScript via the
28255 menu or by using the toolbar button
28256 \begin_inset Graphics
28257 filename ../images/buffer-view_ps.xpm
28265 \begin_layout Section
28267 \begin_inset LatexCommand label
28273 \begin_inset LatexCommand index
28274 name "File Formats ! PDF"
28279 \begin_inset LatexCommand index
28287 \begin_layout Standard
28288 This file type has the extension
28289 \begin_inset Quotes eld
28297 \begin_inset Quotes erd
28302 \begin_inset Quotes eld
28305 Portable Document Format
28306 \begin_inset Quotes erd
28309 (PDF) is developed by
28313 as derivative from PostScript.
28314 It is more compressed and it uses much less commands than PostScript.
28316 \begin_inset Quotes eld
28320 \begin_inset Quotes erd
28323 implies, it can be processed at any computer system and the printed output
28324 looks exactly the same.
28327 \begin_layout Standard
28328 PDF can contain images in its own PDF format, in the format
28329 \begin_inset Quotes eld
28332 Joint Photographic Experts Group
28333 \begin_inset Quotes erd
28336 (JPG, file extension
28337 \begin_inset Quotes eld
28345 \begin_inset Quotes erd
28349 \begin_inset Quotes eld
28357 \begin_inset Quotes erd
28360 ), and in the format
28361 \begin_inset Quotes eld
28364 Portable Network Graphics
28365 \begin_inset Quotes erd
28368 (PNG, file extension
28369 \begin_inset Quotes eld
28377 \begin_inset Quotes erd
28381 You can although use any other image format, because LyX converts them
28382 in the background to one of these formats.
28383 But as described in the section about PostScript, the image conversion
28384 will slow down your work flow.
28385 So it is recommended to use images in one of the three mentioned formats.
28388 \begin_layout Standard
28389 You can export your document to PDF via the menu
28391 File\SpecialChar \menuseparator
28394 in three different ways:
28397 \begin_layout Description
28398 PDF This uses the program
28402 that creates a PDF from a PostScript-version of your file.
28403 The PostScript-version is produced by the program
28407 which uses a DVI-version as intermediate step.
28408 So this export variant consist of three conversions.
28411 \begin_layout Description
28413 (dvipdfm) This uses the program
28417 that converts your file in the background to DVI and in a second step to
28421 \begin_layout Description
28423 (pdflatex) This uses the program
28427 that converts your file directly to PDF.
28430 \begin_layout Standard
28431 It is recommended to use
28440 supports all features of actual PDF-versions, is quick and works stable
28446 is not under development and therefore a bit outdated.
28449 \begin_layout Standard
28450 You can view your document as PDF via the
28454 menu or by using the toolbar button
28455 \begin_inset Graphics
28456 filename ../images/buffer-view_pdf2.xpm
28473 \begin_layout Chapter
28474 Explanation of Equation\InsetSpace ~
28476 \begin_inset LatexCommand eqref
28482 \begin_inset LatexCommand label
28483 name "cha:Explanation-of-Equation"
28490 \begin_layout Standard
28496 \begin_inset Formula $W_{\mathrm{tot\, n}}$
28499 can be calculated to
28502 \begin_layout Standard
28503 \begin_inset Formula \begin{equation}
28504 W_{\mathrm{tot}\, n}=n·(W_{g\, n}+2·\backslash\mbox{tabcolsep})+(n+1)·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}\end{equation}
28511 \begin_layout Standard
28513 \begin_inset Formula $W_{g\, n}$
28516 is the given width of all cells.
28523 is the LaTeX-length between the cell text and the cell border, its default
28524 value is 6\InsetSpace \thinspace{}
28532 is the thickness of the cell border line, the default is 0.4\InsetSpace \thinspace{}
28536 \begin_layout Standard
28537 Following equation\InsetSpace ~
28539 \begin_inset LatexCommand eqref
28540 reference "eq:Wtot_n"
28544 , the total width of a multicolumn
28545 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
28551 \begin_layout Standard
28552 \begin_inset Formula \begin{equation}
28553 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2·\backslash\mbox{tabcolsep}+2·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
28560 \begin_layout Standard
28561 By setting equation\InsetSpace ~
28563 \begin_inset LatexCommand eqref
28564 reference "eq:Wtot_n"
28569 \begin_inset LatexCommand eqref
28570 reference "eq:Wtot_mult"
28574 equal we can calculate the needed given width
28575 \begin_inset Formula $W_{g\, n}$
28582 columns are spanned, so that each column has a total width of
28583 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
28589 \begin_layout Standard
28590 \begin_inset Formula \begin{equation}
28591 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)·(2·\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
28598 \begin_layout Bibliography
28599 \begin_inset LatexCommand bibitem
28600 key "latexcompanion"
28604 Frank Mittelbach and Michel Goossens:
28606 The LaTeX Companion Second Edition.
28609 Addison-Wesley, 2004
28612 \begin_layout Bibliography
28613 \begin_inset LatexCommand bibitem
28618 Helmut Kopka and Patrick W.
28621 A Guide to LaTeX Fourth Edition.
28624 Addison-Wesley, 2003
28627 \begin_layout Bibliography
28628 \begin_inset LatexCommand bibitem
28635 LaTeX: A Document Preparation System.
28638 Addison-Wesley, second edition, 1994
28641 \begin_layout Bibliography
28642 \begin_inset LatexCommand bibitem
28651 \begin_layout Standard
28655 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf}
28665 \begin_layout Standard
28672 of the LaTeX-package
28677 \begin_inset LatexCommand index
28678 name "LaTeX-packages ! booktabs"
28685 \begin_layout Bibliography
28686 \begin_inset LatexCommand bibitem
28695 \begin_layout Standard
28699 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf}{
28708 \begin_layout Standard
28715 of the LaTeX-package
28720 \begin_inset LatexCommand index
28721 name "LaTeX-packages ! caption"
28728 \begin_layout Bibliography
28729 \begin_inset LatexCommand bibitem
28738 \begin_layout Standard
28742 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/anleitung.pdf}
28752 \begin_layout Standard
28759 of the LaTeX-package
28764 \begin_layout Bibliography
28765 \begin_inset LatexCommand bibitem
28774 \begin_layout Standard
28778 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf}
28788 \begin_layout Standard
28795 of the LaTeX-package
28797 endf\SpecialChar \textcompwordmark{}
28801 \begin_inset LatexCommand index
28802 name "LaTeX-packages ! endfloat"
28809 \begin_layout Bibliography
28810 \begin_inset LatexCommand bibitem
28819 \begin_layout Standard
28823 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/floatflt/floatflt.pdf}
28833 \begin_layout Standard
28840 of the LaTeX-package
28842 floatf\SpecialChar \textcompwordmark{}
28846 \begin_inset LatexCommand index
28847 name "LaTeX-packages ! floatflt"
28854 \begin_layout Bibliography
28855 \begin_inset LatexCommand bibitem
28864 \begin_layout Standard
28868 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf}
28878 \begin_layout Standard
28885 of the LaTeX-package
28890 \begin_inset LatexCommand index
28891 name "LaTeX-packages ! footmisc"
28898 \begin_layout Bibliography
28899 \begin_inset LatexCommand bibitem
28908 \begin_layout Standard
28912 href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf}{
28921 \begin_layout Standard
28928 of the LaTeX-package
28933 \begin_inset LatexCommand index
28934 name "LaTeX-packages ! hyperref"
28941 \begin_layout Bibliography
28942 \begin_inset LatexCommand bibitem
28951 \begin_layout Standard
28955 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf}
28965 \begin_layout Standard
28972 of the LaTeX-package
28977 \begin_inset LatexCommand index
28978 name "LaTeX-packages ! hyperref"
28985 \begin_layout Bibliography
28986 \begin_inset LatexCommand bibitem
28995 \begin_layout Standard
28999 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.p
29009 \begin_layout Standard
29016 of the LaTeX-package
29021 \begin_inset LatexCommand index
29022 name "LaTeX-packages ! koma-script"
29029 \begin_layout Bibliography
29030 \begin_inset LatexCommand bibitem
29031 key "koma-script-de"
29039 \begin_layout Standard
29043 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguide.p
29053 \begin_layout Standard
29060 of the LaTeX-package
29065 \begin_inset LatexCommand index
29066 name "LaTeX-packages ! koma-script"
29073 \begin_layout Bibliography
29074 \begin_inset LatexCommand bibitem
29083 \begin_layout Standard
29087 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.
29097 \begin_layout Standard
29104 of the LaTeX-package
29109 \begin_inset LatexCommand index
29110 name "LaTeX-packages ! marginnote"
29117 \begin_layout Bibliography
29118 \begin_inset LatexCommand bibitem
29127 \begin_layout Standard
29131 href{http://tug.org/PSTricks/main.cgi/}{
29140 \begin_layout Standard
29147 of the LaTeX-package
29152 \begin_inset LatexCommand index
29153 name "LaTeX-packages ! PSTricks"
29160 \begin_layout Bibliography
29161 \begin_inset LatexCommand bibitem
29170 \begin_layout Standard
29174 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf}{
29183 \begin_layout Standard
29190 of the LaTeX-package
29195 \begin_inset LatexCommand index
29196 name "LaTeX-packages ! sidecap"
29203 \begin_layout Bibliography
29204 \begin_inset LatexCommand bibitem
29213 \begin_layout Standard
29217 href{http://wiki.lyx.org/LyX/NewInLyX15}{
29226 \begin_layout Standard
29233 about new LyX-features planned for the release
29240 \begin_layout Standard
29241 \begin_inset LatexCommand printindex
29248 \begin_layout Standard
29249 \begin_inset FloatList figure
29256 \begin_layout Standard
29257 \begin_inset FloatList table