1 #LyX 1.5.4svn 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 scaled and rotated boxes
96 \@ifundefined{rotatebox}{\usepackage{graphicx}}{}
98 % used for colored tables
99 \@ifundefined{textcolor}
100 {\usepackage{color}}{}
101 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
102 \definecolor{lightgrey}{gray}{0.8}
104 % check for package colortbl
105 % used for colored table cells
106 \newboolean{colortbl}
107 \IfFileExists{colortbl.sty}
108 {\usepackage{colortbl}
109 \setboolean{colortbl}{true}}
110 {\setboolean{colortbl}{false}}
113 \usepackage{multirow}
114 %\renewcommand{\multirowsetup}{\centering}
116 % used for book-style tables
117 \usepackage{booktabs}
119 % used to have extra space in table cells
120 \@ifundefined{extrarowheight}
121 {\usepackage{array}}{}
122 \setlength{\extrarowheight}{2pt}
124 % used for customized tables
127 {>{\centering\hspace{0pt}}m{#1}}
130 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
133 {>{\columncolor{#1}\hspace{0pt}}c}
135 \newcolumntype{V}{!{\vrule width 1.5pt}}
137 \newcolumntype{W}{!{\color{green}\vline}}
140 % insert additional vertical space of
141 % 1.5 mm between footnotes
143 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
145 % enable algorithm floats to be referenced
146 \newfloat{Xalgorithm}{tbp}{loa}
147 \floatname{Xalgorithm}{Algorithm}
148 \newcommand{\theHalgorithm}{\theHXalgorithm}
149 \renewenvironment{algorithm}[1][tbp]
150 {\begin{Xalgorithm}[#1]}{\end{Xalgorithm}}
152 % number algorithm floats within chapters
153 \numberwithin{Xalgorithm}{chapter}
155 % redefine the greyed out note
156 \renewenvironment{lyxgreyedout}
157 {\textcolor{blue}\bgroup}{\egroup}
159 % ------------------------------------
160 % used to check for needed LaTeX packages
163 % check for package arydshln
164 % used for tables with dashed lines
165 \newboolean{arydshln}
166 \IfFileExists{arydshln.sty}
167 {\usepackage{arydshln}
168 \setboolean{arydshln}{true}}
169 {\setboolean{arydshln}{false}}
171 % check for package marginnote
172 % used for margin notes
173 \newboolean{marginnote}
174 \IfFileExists{marginnote.sty}
175 {\usepackage{marginnote}
176 \let\marginpar\marginnote
177 \setboolean{marginnote}{true}}
178 {\setboolean{marginnote}{false}}
180 % redefine the \LyX macro for PDF bookmarks
181 \def\LyX{\texorpdfstring{%
182 L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
185 \options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
190 \font_typewriter default
191 \font_default_family default
205 \paperorientation portrait
208 \paragraph_separation skip
210 \quotes_language english
213 \paperpagestyle default
217 \tracking_changes false
218 \output_changes false
226 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
235 \begin_layout Standard
237 If you have comments or error corrections, please send them to the LyX Documenta
244 \begin_layout Standard
248 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's ExtendedInsets manual}{
253 lyx-docs@lists.lyx.org
257 \begin_layout Standard
270 \begin_inset Note Note
273 \begin_layout Standard
274 original author: Uwe Stöhr
288 \begin_layout Standard
289 \begin_inset LatexCommand tableofcontents
296 \begin_layout Standard
297 \begin_inset Note Note
300 \begin_layout Standard
301 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
315 If they are not installed you can export the document anyway but the sections
316 where the packages are required won't appear in the output.
319 \begin_layout Standard
320 The latest PDF-version of this document can be found here:
324 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
332 \begin_layout Chapter
334 \begin_inset LatexCommand label
340 \begin_inset LatexCommand index
346 \begin_inset LatexCommand index
347 name "Graphics|see{Figures}"
354 \begin_layout Section
356 \begin_inset LatexCommand index
357 name "Figures ! Graphics Dialog"
362 \begin_inset LatexCommand label
363 name "sec:Graphics-Dialog"
370 \begin_layout Standard
371 To insert an image into your document, place the cursor at the text position
372 you want and click on the toolbar icon
373 \begin_inset Graphics
374 filename ../images/dialog-show-new-inset_graphics.png
382 Insert\SpecialChar \menuseparator
386 Then a dialog will appear to choose the file to load.
387 The image will appear in the output exactly at the position where it is
391 \begin_layout Standard
392 The graphics dialog can be called at any time by right-clicking on an image.
393 This dialog has three tabs:
396 \begin_layout Description
401 Here you can choose an image file and adjust its appearance in the output.
402 The available units for the image size are explained in appendix\InsetSpace ~
404 \begin_inset LatexCommand ref
405 reference "cha:Units-available-in"
412 \begin_inset LatexCommand index
413 name "Figures ! rotated"
417 You can rotate images counter-clockwise by setting a rotation angle and
419 The image will also be rotated inside LyX.
422 \begin_inset LatexCommand index
423 name "Figures ! scaled"
427 Images can be scaled by using a percentage value or by setting the width
428 and height explicitly.
429 If you set only the width or only the height, the other size will be determined
431 If you set both, then the image will be transformed to the given size,
432 possibly distorting it.
433 To prevent the image from distortion, use the option
435 Maintain aspect ratio
438 The image will then be scaled so that its width and height don't exceed
439 the specified dimensions.
441 Images can be opened in a program of your choice
447 The program can be set for every image format in the file format settings
448 in LyX's preferences.
451 \begin_layout Description
456 Alternatively to the usage of scaling units it is possible to set image
457 coordinates to adjust the height and width of the image in the output.
458 The coordinates can also be calculated automatically by pressing the button
470 bounding\InsetSpace ~
473 will only print the image region within the given coordinates.
474 Normally you don't need to take care about image coordinates and can ignore
478 \begin_layout Description
484 In this tab you can modify the appearance of the image within LyX and set
485 the image to be a subfigure of a figure float with an own caption.
486 Subfigures are explained in section\InsetSpace ~
488 \begin_inset LatexCommand ref
489 reference "sec:Figure-Floats"
495 LaTeX experts can also specify on this tab additional LaTeX options.
503 makes the image appear in the output only as a frame with the size of the
513 option only affects zipped EPS-graphics, e.\InsetSpace \thinspace{}
520 When the option is used the images will not be unzipped on export, since
521 LaTeX can handle them as they are.
523 Zipped EPS-graphics are useful to save
524 disk space when you choose PostScript as output format, see appendix\InsetSpace ~
526 \begin_inset LatexCommand ref
527 reference "sec:PostScript"
532 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
543 zgrep %%Bounding x.eps.gz > x.eps.bb
547 The second command creates the bounding box file
548 \begin_inset Quotes eld
552 \begin_inset Quotes erd
555 that is needed by LaTeX for zipped graphics.
558 \begin_layout Standard
559 \begin_inset VSpace bigskip
565 \begin_layout Standard
566 This is an example image in EPS format
570 \begin_layout Standard
571 Image formats are explained in section\InsetSpace ~
573 \begin_inset LatexCommand ref
574 reference "sec:Image-Formats"
583 within a separate, horizontally centered paragraph:
586 \begin_layout Standard
588 \begin_inset Graphics
589 filename clipart/mobius.eps
600 \begin_layout Standard
601 This is the same image like the one above but in draft mode:
604 \begin_layout Standard
606 \begin_inset Graphics
607 filename clipart/mobius.eps
619 \begin_layout Section
621 \begin_inset LatexCommand label
622 name "sec:Figure-Floats"
627 \begin_inset LatexCommand index
628 name "Floats ! Figures"
633 \begin_inset LatexCommand index
634 name "Figures ! Floats"
641 \begin_layout Standard
642 For general explanations about floats, have a look at section\InsetSpace ~
644 \begin_inset LatexCommand ref
645 reference "sec:FloatIntroduction"
652 \begin_layout Standard
654 \begin_inset Graphics
655 filename ../images/float-insert_figure.png
663 Insert\SpecialChar \menuseparator
664 Float\SpecialChar \menuseparator
667 inserts a float with a caption that has the label
668 \begin_inset Quotes eld
673 \begin_inset Quotes erd
676 (# is the actual number).
677 You can insert the image above the caption, like in Figure\InsetSpace ~
679 \begin_inset LatexCommand ref
680 reference "fig:kill-plat"
684 or below the caption, like in Figure\InsetSpace ~
686 \begin_inset LatexCommand ref
687 reference "fig:escher"
692 More about the caption placement is described in section\InsetSpace ~
694 \begin_inset LatexCommand ref
695 reference "sec:Caption-Placement"
702 \begin_layout Standard
703 \begin_inset Float figure
708 \begin_layout Standard
710 \begin_inset Graphics
711 filename clipart/platypus.eps
722 \begin_layout Standard
725 \begin_layout Standard
726 \begin_inset LatexCommand label
731 A severely distorted platypus in a float.
744 \begin_layout Standard
745 \begin_inset Float figure
750 \begin_layout Standard
753 \begin_layout Standard
754 \begin_inset LatexCommand label
768 \begin_layout Standard
770 \begin_inset Graphics
771 filename clipart/escher-lsd.eps
787 \begin_layout Standard
788 \begin_inset LatexCommand index
789 name "References ! to Figures"
795 \begin_inset LatexCommand ref
796 reference "fig:kill-plat"
801 \begin_inset LatexCommand ref
802 reference "fig:escher"
806 are examples of referenced figures.
807 Figures can be referenced in the text by referencing their label.
808 To do this insert a label in the caption using the menu
810 Insert\SpecialChar \menuseparator
813 or the toolbar button
814 \begin_inset Graphics
815 filename ../images/label-insert.png
822 You can now refer to the label using the menu
824 Insert\SpecialChar \menuseparator
828 or the toolbar button
829 \begin_inset Graphics
830 filename ../images/dialog-show-new-inset_ref.png
837 It is important to use references to floats, rather than using vague references
839 \begin_inset Quotes eld
843 \begin_inset Quotes erd
846 , because as LaTeX will reposition the floats in the final document, it
848 \begin_inset Quotes eld
852 \begin_inset Quotes erd
857 Referencing is explained in detail in section\InsetSpace ~
859 \begin_inset LatexCommand ref
860 reference "sec:Referencing-Floats"
867 \begin_layout Standard
868 Normally only one image is inserted to a figure float, but sometimes you
869 might want to use two images with separate subcaptions.
870 This can be set in the tab
875 of the graphics dialog.
876 Choose there the option
880 and enter the subcaption for the image in the caption field.
881 Note that only the main caption of the float is added to the List of Figures.
884 erencing subfigures is explained in section\InsetSpace ~
886 \begin_inset LatexCommand ref
887 reference "sub:Referencing-Subfigures"
894 \begin_layout Standard
897 \begin_inset LatexCommand ref
898 reference "fig:Two-distorted-images"
902 is an example of a figure float with two images set side by side.
903 You can also set the images one below the other.
906 \begin_layout Standard
907 \begin_inset Float figure
912 \begin_layout Standard
916 \begin_inset Graphics
917 filename clipart/escher-lsd.eps
921 subcaptionText "Undefinable structure"
928 \begin_inset Graphics
929 filename clipart/platypus.eps
934 subcaptionText "\label{fig:Platypus} Platypus"
943 \begin_layout Standard
946 \begin_layout Standard
947 \begin_inset LatexCommand label
948 name "fig:Two-distorted-images"
952 Two distorted images.
965 \begin_layout Section
967 \begin_inset LatexCommand label
968 name "sec:Image-Formats"
973 \begin_inset LatexCommand index
979 \begin_inset LatexCommand index
980 name "Figures ! Image Formats"
987 \begin_layout Standard
988 You can insert images in any known file format.
989 But as explained in appendix\InsetSpace ~
991 \begin_inset LatexCommand ref
992 reference "cha:Output-File-Formats"
996 , every output document format allows only a few image formats.
997 LyX uses therefore the program
1001 in the background to convert the images to the right format.
1002 To increase your work flow by avoiding these conversions in the background,
1003 you can use only the image formats that can directly be embedded in the
1005 The output file formats are explained in appendix\InsetSpace ~
1007 \begin_inset LatexCommand ref
1008 reference "cha:Output-File-Formats"
1015 \begin_layout Standard
1016 Similar to fonts there are two types of image formats:
1019 \begin_layout Description
1021 images consist of pixel values, often in a compressed form.
1022 They are therefore not fully scalable and look pixeled in large zooms.
1023 Well-known bitmap image formats are
1024 \begin_inset Quotes eld
1027 Graphics Interchange Format
1028 \begin_inset Quotes erd
1031 (GIF, file extension
1032 \begin_inset Quotes eld
1040 \begin_inset Quotes erd
1044 \begin_inset LatexCommand index
1045 name "GIF|see{Image formats}"
1050 \begin_inset Quotes eld
1053 Portable Network Graphics
1054 \begin_inset Quotes erd
1057 (PNG, file extension
1058 \begin_inset Quotes eld
1066 \begin_inset Quotes erd
1070 \begin_inset LatexCommand index
1071 name "PNG|see{Image formats}"
1076 \begin_inset Quotes eld
1079 Joint Photographic Experts Group
1080 \begin_inset Quotes erd
1083 (JPG, file extension
1084 \begin_inset Quotes eld
1092 \begin_inset Quotes erd
1096 \begin_inset Quotes eld
1104 \begin_inset Quotes erd
1108 \begin_inset LatexCommand index
1109 name "JPG|see{Image formats}"
1116 \begin_layout Description
1118 images consist of vectors and can therefore be scaled to any size
1120 The scaling ability is necessary if you want to create presentations, because
1121 presentations are always scaled by the video projector.
1122 Scaling is also useful for online documents to let the user zoom into diagrams.
1125 ell-known scalable image formats are
1126 \begin_inset Quotes eld
1129 Scalable Vector Graphics
1130 \begin_inset Quotes erd
1133 (SVG, file extension
1134 \begin_inset Quotes eld
1142 \begin_inset Quotes erd
1146 \begin_inset LatexCommand index
1147 name "SVG|see{Image formats}"
1152 \begin_inset Quotes eld
1155 Encapsulated PostScript
1156 \begin_inset Quotes erd
1159 (EPS, file extension
1160 \begin_inset Quotes eld
1168 \begin_inset Quotes erd
1172 \begin_inset LatexCommand index
1173 name "EPS|see{Image formats}"
1178 \begin_inset Quotes eld
1181 Portable Document Format
1182 \begin_inset Quotes erd
1185 (PDF, file extension
1186 \begin_inset Quotes eld
1194 \begin_inset Quotes erd
1198 \begin_inset LatexCommand index
1204 \begin_inset Quotes eld
1208 \begin_inset Quotes erd
1211 (WMF, file extension
1212 \begin_inset Quotes eld
1220 \begin_inset Quotes erd
1224 \begin_inset LatexCommand index
1225 name "SVG|see{Image formats}"
1231 \begin_inset Quotes eld
1235 \begin_inset Quotes erd
1238 , because you can convert any bitmap image to a PDF or EPS-image and the
1239 result will still be a bitmap image.
1240 In this cases only a header with the image properties is added to the original
1245 \begin_layout Standard
1246 In the case of PDF, the original image is additionally compressed.
1252 The PDF-files generated by
1256 are for example bitmap images.
1259 \begin_layout Standard
1260 Normally it is not possible to convert a bitmap image into a scalable one,
1262 Only the image formats PDF and EPS can directly be embedded to PDF and
1263 PostScript output files, respectively.
1264 SVG and WMF-images are recalculated to bitmaps when the output file is
1265 generated because there is currently no adequate WMF/SVG
1266 \begin_inset Formula $\to$
1269 PDF/EPS converter available.
1272 \begin_layout Chapter
1274 \begin_inset LatexCommand label
1280 \begin_inset LatexCommand index
1288 \begin_layout Section
1290 \begin_inset LatexCommand index
1291 name "Table ! Introduction"
1298 \begin_layout Standard
1299 You can insert a table using either the toolbar button
1300 \begin_inset Graphics
1301 filename ../images/tabular-insert.png
1309 Insert\SpecialChar \menuseparator
1313 The toolbar button offers you a graphical selection: Move the mouse to
1314 set the column/row number of the table that should be created and then
1315 press a mouse button.
1316 When you use the menu to create a table, a dialog will appear, asking you
1317 for the number of rows and columns.
1319 The default table has lines around any
1320 cell and the first row appears separated from the rest of the table.
1321 This separation occurs due to a double line: The cells of the first row
1322 have a line below them and the cells of the second row have a line above
1324 Here is an example table:
1327 \begin_layout Standard
1329 \begin_inset Tabular
1330 <lyxtabular version="3" rows="4" columns="4">
1332 <column alignment="center" valignment="top" leftline="true" width="0">
1333 <column alignment="center" valignment="top" leftline="true" width="0">
1334 <column alignment="center" valignment="top" leftline="true" width="0">
1335 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
1336 <row topline="true" bottomline="true">
1337 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1340 \begin_layout Standard
1346 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1349 \begin_layout Standard
1364 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1367 \begin_layout Standard
1373 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1376 \begin_layout Standard
1383 <row topline="true">
1384 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1387 \begin_layout Standard
1402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1405 \begin_layout Standard
1411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1414 \begin_layout Standard
1420 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1423 \begin_layout Standard
1430 <row topline="true">
1431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1434 \begin_layout Standard
1449 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1452 \begin_layout Standard
1458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1461 \begin_layout Standard
1467 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1470 \begin_layout Standard
1477 <row topline="true" bottomline="true">
1478 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1481 \begin_layout Standard
1496 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1499 \begin_layout Standard
1505 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1508 \begin_layout Standard
1514 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1517 \begin_layout Standard
1531 \begin_layout Section
1533 \begin_inset LatexCommand index
1534 name "Table ! Dialog"
1541 \begin_layout Standard
1542 You can alter a table by clicking on it with the right mouse button, which
1543 brings up the table dialog.
1544 Here you can adjust the settings of that cell and row/column respectively
1545 where the cursor is currently placed.
1546 Most of the dialog options also work on selections.
1547 This means if you select more cells, columns or rows, the action is done
1548 for the whole selection.
1549 Note that there is a difference between selecting the
1553 of the cell, and the cell itself.
1554 You can alter tables with the following tabs of the table dialog:
1557 \begin_layout Description
1563 Here you can set the horizontal alignment and the width of the current
1565 When you have set a width you can also adjust the vertical alignment of
1567 A given width will allow the cell to have line breaks and multiple paragraphs
1568 of text, see section\InsetSpace ~
1570 \begin_inset LatexCommand ref
1571 reference "sub:Multiple-Lines-in"
1576 If you set no width, the column is as wide as their widest cell content
1579 Furthermore, you can mark one or multiple cells of one row as a multicolumn
1580 cell, see section\InsetSpace ~
1582 \begin_inset LatexCommand ref
1583 reference "sub:Multicolumns"
1589 The rotate check boxes rotates the current cell, a selection, or the whole
1590 table counter-clockwise by 90°.
1591 The rotation is not shown within LyX, only in the output.
1594 \begin_inset Note Greyedout
1597 \begin_layout Standard
1602 Not all DVI-viewers are able to display rotations.
1609 It is also possible to enter a LaTeX-argument which is needed for special
1610 table formattings, see section\InsetSpace ~
1612 \begin_inset LatexCommand ref
1613 reference "sub:Multicolumn-Calculations"
1618 \begin_inset LatexCommand ref
1619 reference "sec:Colored-Tables"
1626 \begin_layout Description
1631 In this tab you can add and delete border lines for the current row/column.
1638 will convert the table to a formal table as described in section\InsetSpace ~
1640 \begin_inset LatexCommand ref
1641 reference "sec:Formal-Tables"
1647 You can also add here space to table rows as decribed in section\InsetSpace ~
1649 \begin_inset LatexCommand ref
1650 reference "sub:Row-Spacing"
1657 \begin_layout Description
1662 This tab is to make a table a so called
1663 \begin_inset Quotes eld
1671 \begin_inset Quotes erd
1674 that can run over several pages.
1675 Section\InsetSpace ~
1677 \begin_inset LatexCommand ref
1678 reference "sec:Longtables"
1683 \begin_inset LatexCommand ref
1684 reference "sec:Special-Longtable-Issues"
1688 describe the longtable features in detail.
1691 \begin_layout Standard
1692 When the table toolbar is opened, you can move the cursor with the arrow
1693 keys from cell to cell and the property of the current cell will immediately
1694 be displayed in the dialog.
1697 \begin_layout Section
1699 \begin_inset LatexCommand index
1700 name "Table ! Toolbar"
1707 \begin_layout Standard
1708 The table toolbar is an alternative to the table dialog to be able to alter
1710 It should normally appear at the bottom of LyX's main window when the cursor
1712 You can alternatively switch it on to appear always, by right-clicking
1713 in LyX's main menu bar.
1716 \begin_layout Standard
1717 The toolbar has the following icons:
1720 \begin_layout Labeling
1721 \labelwidthstring 00.00.0000
1722 \begin_inset Graphics
1723 filename ../images/tabular-feature_append-row.png
1728 adds a row below the current cell or selection
1731 \begin_layout Labeling
1732 \labelwidthstring 00.00.0000
1733 \begin_inset Graphics
1734 filename ../images/tabular-feature_append-column.png
1739 adds a column right beside the current cell or selection
1742 \begin_layout Labeling
1743 \labelwidthstring 00.00.0000
1744 \begin_inset Graphics
1745 filename ../images/tabular-feature_delete-row.png
1750 deletes the current row or selection
1753 \begin_layout Labeling
1754 \labelwidthstring 00.00.0000
1755 \begin_inset Graphics
1756 filename ../images/tabular-feature_delete-column.png
1761 deletes the current column or selection
1764 \begin_layout Labeling
1765 \labelwidthstring 00.00.0000
1766 \begin_inset Graphics
1767 filename ../images/tabular-feature_toggle-line-top.png
1772 adds a line at the top of the current cell / row or of a selection
1775 \begin_layout Labeling
1776 \labelwidthstring 00.00.0000
1777 \begin_inset Graphics
1778 filename ../images/tabular-feature_toggle-line-bottom.png
1783 adds a line at the bottom of the current cell / row or of a selection
1786 \begin_layout Labeling
1787 \labelwidthstring 00.00.0000
1788 \begin_inset Graphics
1789 filename ../images/tabular-feature_toggle-line-left.png
1794 adds a line at the left side of the current cell / row or of a selection
1797 \begin_layout Labeling
1798 \labelwidthstring 00.00.0000
1799 \begin_inset Graphics
1800 filename ../images/tabular-feature_toggle-line-right.png
1805 adds a line at the right side of the current cell / row or of a selection
1808 \begin_layout Labeling
1809 \labelwidthstring 00.00.0000
1810 \begin_inset Graphics
1811 filename ../images/tabular-feature_set-all-lines.png
1816 adds lines around the current or selected cells - if the current cell no
1817 multicolumn this also affects the current row and column
1820 \begin_layout Labeling
1821 \labelwidthstring 00.00.0000
1822 \begin_inset Graphics
1823 filename ../images/tabular-feature_unset-all-lines.png
1828 deletes all lines of the current or selected cells - if the current cell
1829 no multicolumn this also affects the current row and column
1832 \begin_layout Labeling
1833 \labelwidthstring 00.00.0000
1834 \begin_inset Graphics
1835 filename ../images/tabular-feature_align-left.png
1840 left-aligns the content of the current cell / column
1843 \begin_layout Labeling
1844 \labelwidthstring 00.00.0000
1845 \begin_inset Graphics
1846 filename ../images/tabular-feature_align-center.png
1851 centers the content of the current cell / column horizontally
1854 \begin_layout Labeling
1855 \labelwidthstring 00.00.0000
1856 \begin_inset Graphics
1857 filename ../images/tabular-feature_align-right.png
1862 right-aligns the content of the current cell / column
1865 \begin_layout Labeling
1866 \labelwidthstring 00.00.0000
1867 \begin_inset Graphics
1868 filename ../images/tabular-feature_valign-top.png
1873 aligns the content of the current cell vertically to the top
1876 \begin_layout Labeling
1877 \labelwidthstring 00.00.0000
1878 \begin_inset Graphics
1879 filename ../images/tabular-feature_valign-middle.png
1884 centers the content of the current cell vertically
1887 \begin_layout Labeling
1888 \labelwidthstring 00.00.0000
1889 \begin_inset Graphics
1890 filename ../images/tabular-feature_valign-bottom.png
1895 aligns the content of the current cell vertically to the bottom
1898 \begin_layout Labeling
1899 \labelwidthstring 00.00.0000
1900 \begin_inset Graphics
1901 filename ../images/tabular-feature_set-rotate-cell.png
1906 rotates the current cell or selection counter-clockwise by 90°
1909 \begin_layout Labeling
1910 \labelwidthstring 00.00.0000
1911 \begin_inset Graphics
1912 filename ../images/tabular-feature_set-rotate-tabular.png
1917 rotates the whole table counter-clockwise by 90°
1920 \begin_layout Labeling
1921 \labelwidthstring 00.00.0000
1922 \begin_inset Graphics
1923 filename ../images/tabular-feature_multicolumn.png
1928 sets the current cell or selection as a multicolumn
1931 \begin_layout Standard
1932 \begin_inset Note Greyedout
1935 \begin_layout Standard
1940 For the output the vertical alignment of the first cell in a row is used
1941 for all following cells in the row.
1949 \begin_layout Section
1951 \begin_inset LatexCommand index
1952 name "Table ! Edit Menu"
1959 \begin_layout Standard
1960 Additionally to the table dialog and toolbar, the menu
1962 Edit\SpecialChar \menuseparator
1965 allows you to add and delete border lines for the current row/column and
1966 to set the current selection as multicolumn.
1967 The menu is only available when the cursor is inside a table.
1970 \begin_layout Section
1972 \begin_inset LatexCommand label
1973 name "sec:Table-Floats"
1978 \begin_inset LatexCommand index
1979 name "Floats ! Tables"
1984 \begin_inset LatexCommand index
1985 name "Table ! Floats"
1992 \begin_layout Standard
1993 For general explanations about floats, have a look at section\InsetSpace ~
1995 \begin_inset LatexCommand ref
1996 reference "sec:FloatIntroduction"
2003 \begin_layout Standard
2004 \begin_inset Float table
2010 \begin_layout Standard
2011 \begin_inset Caption
2013 \begin_layout Standard
2014 \begin_inset LatexCommand label
2015 name "tab:a table float"
2027 \begin_layout Standard
2029 \begin_inset Tabular
2030 <lyxtabular version="3" rows="3" columns="3">
2032 <column alignment="center" valignment="top" leftline="true" width="0pt">
2033 <column alignment="center" valignment="top" leftline="true" width="0pt">
2034 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
2035 <row topline="true" bottomline="true">
2036 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2039 \begin_layout Standard
2054 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2057 \begin_layout Standard
2072 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2075 \begin_layout Standard
2091 <row topline="true">
2092 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2095 \begin_layout Standard
2110 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2113 \begin_layout Standard
2128 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2131 \begin_layout Standard
2147 <row topline="true" bottomline="true">
2148 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2151 \begin_layout Standard
2161 \begin_inset Formula $\int x^{2}dx$
2169 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2172 \begin_layout Standard
2182 \begin_inset Formula $\left[\begin{array}{cc}
2184 c & d\end{array}\right]$
2192 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2195 \begin_layout Standard
2205 \begin_inset Formula $1+1=2$
2226 \begin_layout Standard
2227 Table floats can be inserted using the menu
2229 Insert\SpecialChar \menuseparator
2230 Float\SpecialChar \menuseparator
2233 or the toolbar button
2234 \begin_inset Graphics
2235 filename ../images/float-insert_table.png
2244 \begin_layout Standard
2245 The float appears as a collapsible box with a caption that has the label
2247 \begin_inset Quotes eld
2252 \begin_inset Quotes erd
2255 (# is the actual table number).
2256 You can insert tables to the float above or below the caption.
2259 \begin_layout Standard
2262 \begin_inset LatexCommand ref
2263 reference "tab:a table float"
2267 is an example table within a table float.
2270 \begin_layout Standard
2271 Having the caption above the table is the common rule that is unfortunately
2272 not supported in LaTeX's standard classes.
2273 That means if you are using the document classes
2289 there will be no space between the caption and the table.
2290 To insert the needed space, add the following option to the load command
2291 of the LaTeX-package
2296 \begin_inset LatexCommand index
2297 name "LaTeX-packages ! caption"
2301 in your document preamble
2305 \begin_layout Standard
2306 For more information have a look at section\InsetSpace ~
2308 \begin_inset LatexCommand ref
2309 reference "sec:Caption-Placement"
2321 \begin_layout Standard
2327 \begin_layout Standard
2332 , which is described in section\InsetSpace ~
2334 \begin_inset LatexCommand ref
2335 reference "sec:Caption-Formatting"
2339 , is used to adjust the caption format.
2342 \begin_layout Standard
2343 \begin_inset LatexCommand index
2344 name "References ! to Tables"
2348 Tables can be cross-referenced in the text by referencing their label.
2349 To do this insert a label in the caption using the menu
2351 Insert\SpecialChar \menuseparator
2354 or the toolbar button
2355 \begin_inset Graphics
2356 filename ../images/label-insert.png
2363 You can now refer to the label using the menu
2365 Insert\SpecialChar \menuseparator
2369 or the toolbar button
2370 \begin_inset Graphics
2371 filename ../images/dialog-show-new-inset_ref.png
2379 Referencing is explained in detail in section\InsetSpace ~
2381 \begin_inset LatexCommand ref
2382 reference "sec:Referencing-Floats"
2389 \begin_layout Section
2391 \begin_inset LatexCommand label
2392 name "sec:Longtables"
2397 \begin_inset LatexCommand index
2403 \begin_inset LatexCommand index
2404 name "Table ! Longtables"
2411 \begin_layout Standard
2412 If the table is too long to fit on one page, you can use the option
2422 of the table dialog to split the table automatically over more pages.
2423 Doing this enables some check boxes and you can now define:
2426 \begin_layout Description
2431 : The current row and all rows above, that don't have any special options
2432 defined, are defined to be the header rows of all pages of the longtable;
2433 except for the first page, if
2439 This therefore called the main header.
2442 \begin_layout Description
2448 : The current row and all rows above, that don't have any special options
2449 defined, are defined to be the header rows of the first page of the longtable.
2452 \begin_layout Description
2457 : The current row and all rows below, that don't have any special options
2458 defined, are defined to be the footer rows of all pages of the longtable;
2459 except for the last page, if
2467 \begin_layout Description
2473 : The current row and all rows below, that don't have any special options
2474 defined, are defined to be the footer rows of the last page of the longtable.
2477 \begin_layout Standard
2478 You can also specify a row where the table is splitted.
2479 If you set more than one option in the same table row, you should be aware
2480 of the fact that only the first one is used in the given table row.
2481 The others will then be defined as
2486 In this context, first means first in this order:
2493 header, Footer, Last\InsetSpace ~
2497 See the following longtable to see how it works:
2500 \begin_layout Standard
2502 \begin_inset Tabular
2503 <lyxtabular version="3" rows="69" columns="3">
2504 <features islongtable="true">
2505 <column alignment="left" valignment="top" leftline="true" width="0cm">
2506 <column alignment="left" valignment="top" width="0pt">
2507 <column alignment="right" valignment="top" leftline="true" rightline="true" width="0pt">
2508 <row topline="true" bottomline="true" endfirsthead="true">
2509 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2512 \begin_layout Standard
2515 Example Phone List (ignore the names)
2520 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2523 \begin_layout Standard
2529 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2532 \begin_layout Standard
2539 <row topline="true" bottomline="true" endfirsthead="true">
2540 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2543 \begin_layout Standard
2551 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2554 \begin_layout Standard
2560 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2563 \begin_layout Standard
2572 <row topline="true" bottomline="true" endhead="true">
2573 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2576 \begin_layout Standard
2584 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2587 \begin_layout Standard
2593 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2596 \begin_layout Standard
2603 <row topline="true" bottomline="true" endhead="true">
2604 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2607 \begin_layout Standard
2615 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2618 \begin_layout Standard
2624 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2627 \begin_layout Standard
2636 <row topline="true" bottomline="true" endfoot="true">
2637 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
2640 \begin_layout Standard
2641 continued on next page
2646 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2649 \begin_layout Standard
2655 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2658 \begin_layout Standard
2666 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2669 \begin_layout Standard
2677 <cell alignment="center" valignment="top" topline="true" usebox="none">
2680 \begin_layout Standard
2686 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2689 \begin_layout Standard
2697 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2700 \begin_layout Standard
2708 <cell alignment="center" valignment="top" topline="true" usebox="none">
2711 \begin_layout Standard
2717 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2720 \begin_layout Standard
2728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2731 \begin_layout Standard
2739 <cell alignment="center" valignment="top" topline="true" usebox="none">
2742 \begin_layout Standard
2748 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2751 \begin_layout Standard
2759 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2762 \begin_layout Standard
2770 <cell alignment="center" valignment="top" topline="true" usebox="none">
2773 \begin_layout Standard
2779 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2782 \begin_layout Standard
2790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2793 \begin_layout Standard
2801 <cell alignment="center" valignment="top" topline="true" usebox="none">
2804 \begin_layout Standard
2810 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2813 \begin_layout Standard
2821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2824 \begin_layout Standard
2832 <cell alignment="center" valignment="top" topline="true" usebox="none">
2835 \begin_layout Standard
2841 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2844 \begin_layout Standard
2852 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2855 \begin_layout Standard
2863 <cell alignment="center" valignment="top" topline="true" usebox="none">
2866 \begin_layout Standard
2872 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2875 \begin_layout Standard
2883 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2886 \begin_layout Standard
2894 <cell alignment="center" valignment="top" topline="true" usebox="none">
2897 \begin_layout Standard
2903 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2906 \begin_layout Standard
2914 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2917 \begin_layout Standard
2925 <cell alignment="center" valignment="top" topline="true" usebox="none">
2928 \begin_layout Standard
2934 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2937 \begin_layout Standard
2945 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2948 \begin_layout Standard
2956 <cell alignment="center" valignment="top" topline="true" usebox="none">
2959 \begin_layout Standard
2965 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2968 \begin_layout Standard
2976 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2979 \begin_layout Standard
2987 <cell alignment="center" valignment="top" topline="true" usebox="none">
2990 \begin_layout Standard
2996 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2999 \begin_layout Standard
3007 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3010 \begin_layout Standard
3018 <cell alignment="center" valignment="top" topline="true" usebox="none">
3021 \begin_layout Standard
3027 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3030 \begin_layout Standard
3038 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3041 \begin_layout Standard
3049 <cell alignment="center" valignment="top" topline="true" usebox="none">
3052 \begin_layout Standard
3058 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3061 \begin_layout Standard
3069 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3072 \begin_layout Standard
3080 <cell alignment="center" valignment="top" topline="true" usebox="none">
3083 \begin_layout Standard
3089 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3092 \begin_layout Standard
3100 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3103 \begin_layout Standard
3111 <cell alignment="center" valignment="top" topline="true" usebox="none">
3114 \begin_layout Standard
3120 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3123 \begin_layout Standard
3131 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3134 \begin_layout Standard
3142 <cell alignment="center" valignment="top" topline="true" usebox="none">
3145 \begin_layout Standard
3151 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3154 \begin_layout Standard
3162 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3165 \begin_layout Standard
3173 <cell alignment="center" valignment="top" topline="true" usebox="none">
3176 \begin_layout Standard
3182 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3185 \begin_layout Standard
3193 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3196 \begin_layout Standard
3204 <cell alignment="center" valignment="top" topline="true" usebox="none">
3207 \begin_layout Standard
3213 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3216 \begin_layout Standard
3224 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3227 \begin_layout Standard
3235 <cell alignment="center" valignment="top" topline="true" usebox="none">
3238 \begin_layout Standard
3244 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3247 \begin_layout Standard
3255 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3258 \begin_layout Standard
3266 <cell alignment="center" valignment="top" topline="true" usebox="none">
3269 \begin_layout Standard
3275 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3278 \begin_layout Standard
3286 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3289 \begin_layout Standard
3297 <cell alignment="center" valignment="top" topline="true" usebox="none">
3300 \begin_layout Standard
3306 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3309 \begin_layout Standard
3317 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3320 \begin_layout Standard
3328 <cell alignment="center" valignment="top" topline="true" usebox="none">
3331 \begin_layout Standard
3337 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3340 \begin_layout Standard
3348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3351 \begin_layout Standard
3359 <cell alignment="center" valignment="top" topline="true" usebox="none">
3362 \begin_layout Standard
3368 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3371 \begin_layout Standard
3379 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3382 \begin_layout Standard
3390 <cell alignment="center" valignment="top" topline="true" usebox="none">
3393 \begin_layout Standard
3399 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3402 \begin_layout Standard
3410 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3413 \begin_layout Standard
3421 <cell alignment="center" valignment="top" topline="true" usebox="none">
3424 \begin_layout Standard
3430 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3433 \begin_layout Standard
3441 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3444 \begin_layout Standard
3452 <cell alignment="center" valignment="top" topline="true" usebox="none">
3455 \begin_layout Standard
3461 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3464 \begin_layout Standard
3472 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3475 \begin_layout Standard
3483 <cell alignment="center" valignment="top" topline="true" usebox="none">
3486 \begin_layout Standard
3492 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3495 \begin_layout Standard
3503 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3506 \begin_layout Standard
3514 <cell alignment="center" valignment="top" topline="true" usebox="none">
3517 \begin_layout Standard
3523 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3526 \begin_layout Standard
3534 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3537 \begin_layout Standard
3545 <cell alignment="center" valignment="top" topline="true" usebox="none">
3548 \begin_layout Standard
3554 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3557 \begin_layout Standard
3565 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3568 \begin_layout Standard
3576 <cell alignment="center" valignment="top" topline="true" usebox="none">
3579 \begin_layout Standard
3585 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3588 \begin_layout Standard
3595 <row bottomline="true">
3596 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3599 \begin_layout Standard
3607 <cell alignment="center" valignment="top" topline="true" usebox="none">
3610 \begin_layout Standard
3616 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3619 \begin_layout Standard
3626 <row bottomline="true">
3627 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3630 \begin_layout Standard
3636 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
3639 \begin_layout Standard
3645 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3648 \begin_layout Standard
3656 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3659 \begin_layout Standard
3667 <cell alignment="center" valignment="top" topline="true" usebox="none">
3670 \begin_layout Standard
3676 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3679 \begin_layout Standard
3687 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3690 \begin_layout Standard
3698 <cell alignment="center" valignment="top" topline="true" usebox="none">
3701 \begin_layout Standard
3707 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3710 \begin_layout Standard
3718 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3721 \begin_layout Standard
3729 <cell alignment="center" valignment="top" topline="true" usebox="none">
3732 \begin_layout Standard
3738 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3741 \begin_layout Standard
3749 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3752 \begin_layout Standard
3760 <cell alignment="center" valignment="top" topline="true" usebox="none">
3763 \begin_layout Standard
3769 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3772 \begin_layout Standard
3780 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3783 \begin_layout Standard
3791 <cell alignment="center" valignment="top" topline="true" usebox="none">
3794 \begin_layout Standard
3800 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3803 \begin_layout Standard
3811 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3814 \begin_layout Standard
3822 <cell alignment="center" valignment="top" topline="true" usebox="none">
3825 \begin_layout Standard
3831 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3834 \begin_layout Standard
3842 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3845 \begin_layout Standard
3853 <cell alignment="center" valignment="top" topline="true" usebox="none">
3856 \begin_layout Standard
3862 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3865 \begin_layout Standard
3873 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3876 \begin_layout Standard
3884 <cell alignment="center" valignment="top" topline="true" usebox="none">
3887 \begin_layout Standard
3893 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3896 \begin_layout Standard
3904 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3907 \begin_layout Standard
3915 <cell alignment="center" valignment="top" topline="true" usebox="none">
3918 \begin_layout Standard
3924 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3927 \begin_layout Standard
3935 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3938 \begin_layout Standard
3946 <cell alignment="center" valignment="top" topline="true" usebox="none">
3949 \begin_layout Standard
3955 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3958 \begin_layout Standard
3966 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3969 \begin_layout Standard
3977 <cell alignment="center" valignment="top" topline="true" usebox="none">
3980 \begin_layout Standard
3986 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3989 \begin_layout Standard
3997 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4000 \begin_layout Standard
4008 <cell alignment="center" valignment="top" topline="true" usebox="none">
4011 \begin_layout Standard
4017 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4020 \begin_layout Standard
4028 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4031 \begin_layout Standard
4039 <cell alignment="center" valignment="top" topline="true" usebox="none">
4042 \begin_layout Standard
4048 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4051 \begin_layout Standard
4059 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4062 \begin_layout Standard
4070 <cell alignment="center" valignment="top" topline="true" usebox="none">
4073 \begin_layout Standard
4079 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4082 \begin_layout Standard
4090 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4093 \begin_layout Standard
4101 <cell alignment="center" valignment="top" topline="true" usebox="none">
4104 \begin_layout Standard
4110 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4113 \begin_layout Standard
4121 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4124 \begin_layout Standard
4132 <cell alignment="center" valignment="top" topline="true" usebox="none">
4135 \begin_layout Standard
4141 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4144 \begin_layout Standard
4152 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4155 \begin_layout Standard
4163 <cell alignment="center" valignment="top" topline="true" usebox="none">
4166 \begin_layout Standard
4172 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4175 \begin_layout Standard
4183 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4186 \begin_layout Standard
4194 <cell alignment="center" valignment="top" topline="true" usebox="none">
4197 \begin_layout Standard
4203 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4206 \begin_layout Standard
4214 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4217 \begin_layout Standard
4225 <cell alignment="center" valignment="top" topline="true" usebox="none">
4228 \begin_layout Standard
4234 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4237 \begin_layout Standard
4245 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4248 \begin_layout Standard
4256 <cell alignment="center" valignment="top" topline="true" usebox="none">
4259 \begin_layout Standard
4265 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4268 \begin_layout Standard
4276 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4279 \begin_layout Standard
4287 <cell alignment="center" valignment="top" topline="true" usebox="none">
4290 \begin_layout Standard
4296 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4299 \begin_layout Standard
4307 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4310 \begin_layout Standard
4318 <cell alignment="center" valignment="top" topline="true" usebox="none">
4321 \begin_layout Standard
4327 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4330 \begin_layout Standard
4338 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4341 \begin_layout Standard
4349 <cell alignment="center" valignment="top" topline="true" usebox="none">
4352 \begin_layout Standard
4358 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4361 \begin_layout Standard
4369 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4372 \begin_layout Standard
4380 <cell alignment="center" valignment="top" topline="true" usebox="none">
4383 \begin_layout Standard
4389 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4392 \begin_layout Standard
4400 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4403 \begin_layout Standard
4411 <cell alignment="center" valignment="top" topline="true" usebox="none">
4414 \begin_layout Standard
4420 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4423 \begin_layout Standard
4431 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4434 \begin_layout Standard
4442 <cell alignment="center" valignment="top" topline="true" usebox="none">
4445 \begin_layout Standard
4451 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4454 \begin_layout Standard
4462 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4465 \begin_layout Standard
4473 <cell alignment="center" valignment="top" topline="true" usebox="none">
4476 \begin_layout Standard
4482 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4485 \begin_layout Standard
4493 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4496 \begin_layout Standard
4504 <cell alignment="center" valignment="top" topline="true" usebox="none">
4507 \begin_layout Standard
4513 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4516 \begin_layout Standard
4524 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4527 \begin_layout Standard
4535 <cell alignment="center" valignment="top" topline="true" usebox="none">
4538 \begin_layout Standard
4544 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4547 \begin_layout Standard
4555 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4558 \begin_layout Standard
4566 <cell alignment="center" valignment="top" topline="true" usebox="none">
4569 \begin_layout Standard
4575 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4578 \begin_layout Standard
4585 <row bottomline="true">
4586 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4589 \begin_layout Standard
4597 <cell alignment="center" valignment="top" topline="true" usebox="none">
4600 \begin_layout Standard
4606 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4609 \begin_layout Standard
4616 <row bottomline="true" endlastfoot="true">
4617 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
4620 \begin_layout Standard
4626 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4629 \begin_layout Standard
4635 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4638 \begin_layout Standard
4653 \begin_layout Standard
4657 addtocounter{table}{-1}
4663 \begin_inset Note Note
4666 \begin_layout Standard
4667 See greyed-out note in section\InsetSpace ~
4669 \begin_inset LatexCommand ref
4670 reference "sub:Longtable-Captions"
4674 for an explanation of this command.
4682 \begin_layout Subsection
4683 Footnotes in Longtables
4684 \begin_inset LatexCommand label
4685 name "sub:Footnotes-in-Longtables"
4690 \begin_inset LatexCommand index
4691 name "Longtables ! Footnotes"
4698 \begin_layout Standard
4699 Footnotes can be inserted to every longtable cell.
4700 They appear at the bottom of the page where the table cell with the footnote
4704 \begin_inset LatexCommand ref
4705 reference "tab:DiffCaptions"
4709 has for example a footnote.
4712 \begin_layout Subsection
4714 \begin_inset LatexCommand index
4715 name "Longtables ! Alignment"
4722 \begin_layout Standard
4723 Longtables are by default centered.
4724 In contrary to the alignment of the table columns and row, the table alignment
4725 can currently not be changed in the table dialog.
4726 To change the alignment of longtables you have to change the value of the
4739 by inserting this line as TeX-Code before the corresponding longtable:
4742 \begin_layout Standard
4752 \begin_layout Standard
4753 Where the value can have any of the units listed in Table\InsetSpace ~
4755 \begin_inset LatexCommand ref
4756 reference "tab:Units"
4767 controls the horizontal distance from the left page border to the longtable,
4774 the distance from the right side.
4775 The default value for both lengths is
4781 , which is in this case the same as an horizontal fill in LyX.
4784 \begin_layout Standard
4785 The following longtable was left-aligned by setting
4791 to 0\InsetSpace \thinspace{}
4796 \begin_layout Standard
4810 \begin_layout Standard
4811 \begin_inset Tabular
4812 <lyxtabular version="3" rows="5" columns="5">
4813 <features islongtable="true">
4814 <column alignment="center" valignment="top" leftline="true" width="0">
4815 <column alignment="center" valignment="top" leftline="true" width="0">
4816 <column alignment="center" valignment="top" leftline="true" width="0">
4817 <column alignment="center" valignment="top" leftline="true" width="0">
4818 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
4819 <row topline="true">
4820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4823 \begin_layout Standard
4829 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4832 \begin_layout Standard
4838 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4841 \begin_layout Standard
4847 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4850 \begin_layout Standard
4856 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4859 \begin_layout Standard
4866 <row topline="true">
4867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4870 \begin_layout Standard
4876 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4879 \begin_layout Standard
4885 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4888 \begin_layout Standard
4894 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4897 \begin_layout Standard
4903 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4906 \begin_layout Standard
4913 <row topline="true">
4914 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4917 \begin_layout Standard
4923 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4926 \begin_layout Standard
4932 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4935 \begin_layout Standard
4941 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4944 \begin_layout Standard
4950 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4953 \begin_layout Standard
4960 <row topline="true">
4961 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4964 \begin_layout Standard
4970 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4973 \begin_layout Standard
4979 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4982 \begin_layout Standard
4988 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4991 \begin_layout Standard
4997 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5000 \begin_layout Standard
5007 <row topline="true" bottomline="true">
5008 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5011 \begin_layout Standard
5017 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5020 \begin_layout Standard
5026 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5029 \begin_layout Standard
5035 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5038 \begin_layout Standard
5044 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5047 \begin_layout Standard
5062 \begin_layout Standard
5078 \begin_layout Subsection
5080 \begin_inset LatexCommand index
5081 name "Longtables ! Captions"
5086 \begin_inset LatexCommand label
5087 name "sub:Longtable-Captions"
5094 \begin_layout Standard
5095 A longtable cannot be put into a table float because floats can only be
5096 on one page but the caption environment of floats can also be used for
5100 \begin_layout Standard
5101 As LyX does not yet fully support captions in longtables, a hack is needed
5105 \begin_layout Enumerate
5111 \begin_layout Enumerate
5112 Mark the first row and disable its upper line.
5115 \begin_layout Enumerate
5116 Insert a caption via the menu
5118 Insert\SpecialChar \menuseparator
5121 into the first table cell.
5123 You can also add a short title for the caption.
5126 \begin_layout Enumerate
5128 \begin_inset Quotes eld
5140 \begin_inset Quotes erd
5143 as TeX-Code behind the caption.
5146 \begin_layout Standard
5147 A short title that will appear in the LOT instead of the full title.
5156 behind the caption omits the vertical lines between the following cells
5158 The first table row is now only a dummy row for the caption, the actual
5159 table starts with the second row.
5162 \begin_layout Standard
5163 Here is a short longtable to see how it works:
5166 \begin_layout Standard
5167 \begin_inset Tabular
5168 <lyxtabular version="3" rows="6" columns="5">
5169 <features islongtable="true">
5170 <column alignment="center" valignment="top" leftline="true" width="0">
5171 <column alignment="center" valignment="top" leftline="true" width="0">
5172 <column alignment="center" valignment="top" leftline="true" width="0">
5173 <column alignment="center" valignment="top" leftline="true" width="0">
5174 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5176 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5179 \begin_layout Standard
5180 \begin_inset Caption
5182 \begin_layout Standard
5183 Longtable with caption
5187 \begin_layout Standard
5202 \begin_layout Standard
5218 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5221 \begin_layout Standard
5227 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5230 \begin_layout Standard
5236 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5239 \begin_layout Standard
5245 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5248 \begin_layout Standard
5255 <row topline="true">
5256 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5259 \begin_layout Standard
5265 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5268 \begin_layout Standard
5274 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5277 \begin_layout Standard
5283 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5286 \begin_layout Standard
5292 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5295 \begin_layout Standard
5302 <row topline="true">
5303 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5306 \begin_layout Standard
5312 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5315 \begin_layout Standard
5321 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5324 \begin_layout Standard
5330 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5333 \begin_layout Standard
5339 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5342 \begin_layout Standard
5349 <row topline="true">
5350 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5353 \begin_layout Standard
5359 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5362 \begin_layout Standard
5368 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5371 \begin_layout Standard
5377 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5380 \begin_layout Standard
5386 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5389 \begin_layout Standard
5396 <row topline="true">
5397 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5400 \begin_layout Standard
5406 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5409 \begin_layout Standard
5415 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5418 \begin_layout Standard
5424 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5427 \begin_layout Standard
5433 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5436 \begin_layout Standard
5443 <row topline="true" bottomline="true">
5444 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5447 \begin_layout Standard
5453 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5456 \begin_layout Standard
5462 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5465 \begin_layout Standard
5471 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5474 \begin_layout Standard
5480 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5483 \begin_layout Standard
5497 \begin_layout Standard
5498 \begin_inset VSpace medskip
5502 \begin_inset Note Greyedout
5505 \begin_layout Standard
5510 The table number is increased for every longtable, also if you didn't set
5512 For this reason you could have the case that e.g.
5514 2.4 follows on Table\InsetSpace ~
5515 2.1 in the list of tables if there are two longtables
5517 To avoid this you can add the following command in TeX-Code behind every
5518 longtable without a caption:
5521 \begin_layout Standard
5526 addtocounter{table}{-1}
5534 \begin_layout Standard
5535 \begin_inset Note Greyedout
5538 \begin_layout Standard
5543 If you are using the LaTeX-package
5548 \begin_inset LatexCommand index
5549 name "LaTeX-packages ! hyperref"
5553 to link cross-references, the link to a longtable caption will always point
5554 to the beginning of the document.
5562 \begin_layout Standard
5568 \begin_layout Subsubsection
5569 References to Longtables
5570 \begin_inset LatexCommand index
5571 name "Longtables ! References"
5578 \begin_layout Standard
5579 \begin_inset Tabular
5580 <lyxtabular version="3" rows="6" columns="5">
5581 <features islongtable="true">
5582 <column alignment="center" valignment="top" leftline="true" width="0">
5583 <column alignment="center" valignment="top" leftline="true" width="0">
5584 <column alignment="center" valignment="top" leftline="true" width="0">
5585 <column alignment="center" valignment="top" leftline="true" width="0">
5586 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5588 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5591 \begin_layout Standard
5592 \begin_inset Caption
5594 \begin_layout Standard
5595 Referenced longtable
5596 \begin_inset LatexCommand label
5597 name "tab:RefExample"
5610 \begin_layout Standard
5626 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5629 \begin_layout Standard
5635 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5638 \begin_layout Standard
5644 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5647 \begin_layout Standard
5653 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5656 \begin_layout Standard
5663 <row topline="true">
5664 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5667 \begin_layout Standard
5673 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5676 \begin_layout Standard
5682 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5685 \begin_layout Standard
5691 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5694 \begin_layout Standard
5700 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5703 \begin_layout Standard
5710 <row topline="true">
5711 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5714 \begin_layout Standard
5720 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5723 \begin_layout Standard
5729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5732 \begin_layout Standard
5738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5741 \begin_layout Standard
5747 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5750 \begin_layout Standard
5757 <row topline="true">
5758 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5761 \begin_layout Standard
5767 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5770 \begin_layout Standard
5776 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5779 \begin_layout Standard
5785 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5788 \begin_layout Standard
5794 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5797 \begin_layout Standard
5804 <row topline="true">
5805 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5808 \begin_layout Standard
5814 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5817 \begin_layout Standard
5823 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5826 \begin_layout Standard
5832 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5835 \begin_layout Standard
5841 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5844 \begin_layout Standard
5851 <row topline="true" bottomline="true">
5852 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5855 \begin_layout Standard
5861 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5864 \begin_layout Standard
5870 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5873 \begin_layout Standard
5879 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5882 \begin_layout Standard
5888 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5891 \begin_layout Standard
5905 \begin_layout Standard
5906 To reference a longtable, insert a label into the caption.
5907 Note that you have to add the label prefix
5908 \begin_inset Quotes eld
5916 \begin_inset Quotes eld
5919 manually in the label field.
5922 \begin_layout Standard
5923 This is a reference to Table\InsetSpace ~
5925 \begin_inset LatexCommand ref
5926 reference "tab:RefExample"
5933 \begin_layout Standard
5934 The caption layout can be set together with all other caption of your document
5935 using the LaTeX-package
5940 \begin_inset LatexCommand index
5941 name "LaTeX-packages ! caption"
5945 , see section\InsetSpace ~
5947 \begin_inset LatexCommand ref
5948 reference "sec:Caption-Formatting"
5955 \begin_layout Subsubsection
5957 \begin_inset LatexCommand index
5958 name "Longtables ! Caption Width"
5965 \begin_layout Standard
5966 The maximal width of of caption lines is defined by the length
5973 Its default value is 4\InsetSpace \thinspace{}
5975 To change it add the following command to your document preamble or as
5976 TeX-Code into your document before the longtable that should be affected
5979 \begin_layout Standard
5989 \begin_layout Standard
5990 where the width could have one of the units listed in appendix\InsetSpace ~
5992 \begin_inset LatexCommand ref
5993 reference "cha:Units-available-in"
6000 \begin_layout Standard
6001 The following tables show the difference:
6004 \begin_layout Standard
6005 \begin_inset Tabular
6006 <lyxtabular version="3" rows="6" columns="5">
6007 <features islongtable="true">
6008 <column alignment="center" valignment="top" leftline="true" width="0">
6009 <column alignment="center" valignment="top" leftline="true" width="0">
6010 <column alignment="center" valignment="top" leftline="true" width="0">
6011 <column alignment="center" valignment="top" leftline="true" width="0">
6012 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
6014 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6017 \begin_layout Standard
6018 \begin_inset Caption
6020 \begin_layout Standard
6021 long full title with default width long full title with default width long
6022 full title with default width
6026 \begin_layout Standard
6027 caption with default width
6041 \begin_layout Standard
6057 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6060 \begin_layout Standard
6066 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6069 \begin_layout Standard
6075 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6078 \begin_layout Standard
6084 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6087 \begin_layout Standard
6094 <row topline="true">
6095 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6098 \begin_layout Standard
6104 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6107 \begin_layout Standard
6113 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6116 \begin_layout Standard
6122 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6125 \begin_layout Standard
6131 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6134 \begin_layout Standard
6141 <row topline="true">
6142 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6145 \begin_layout Standard
6151 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6154 \begin_layout Standard
6160 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6163 \begin_layout Standard
6169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6172 \begin_layout Standard
6178 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6181 \begin_layout Standard
6188 <row topline="true">
6189 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6192 \begin_layout Standard
6198 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6201 \begin_layout Standard
6207 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6210 \begin_layout Standard
6216 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6219 \begin_layout Standard
6225 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6228 \begin_layout Standard
6235 <row topline="true">
6236 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6239 \begin_layout Standard
6245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6248 \begin_layout Standard
6254 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6257 \begin_layout Standard
6263 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6266 \begin_layout Standard
6272 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6275 \begin_layout Standard
6282 <row topline="true" bottomline="true">
6283 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6286 \begin_layout Standard
6292 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6295 \begin_layout Standard
6301 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6304 \begin_layout Standard
6310 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6313 \begin_layout Standard
6319 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6322 \begin_layout Standard
6336 \begin_layout Standard
6340 \begin_layout Standard
6352 \begin_inset Tabular
6353 <lyxtabular version="3" rows="6" columns="5">
6354 <features islongtable="true">
6355 <column alignment="center" valignment="top" leftline="true" width="0">
6356 <column alignment="center" valignment="top" leftline="true" width="0">
6357 <column alignment="center" valignment="top" leftline="true" width="0">
6358 <column alignment="center" valignment="top" leftline="true" width="0">
6359 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
6361 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6364 \begin_layout Standard
6365 \begin_inset Caption
6367 \begin_layout Standard
6368 long full title with width set to 5\InsetSpace \thinspace{}
6369 cm long full title with width set to
6370 5\InsetSpace \thinspace{}
6371 cm long full title with width set to 5\InsetSpace \thinspace{}
6376 \begin_layout Standard
6377 caption with width\InsetSpace \thinspace{}
6378 =\InsetSpace \thinspace{}
6379 5\InsetSpace \thinspace{}
6394 \begin_layout Standard
6410 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6413 \begin_layout Standard
6419 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6422 \begin_layout Standard
6428 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6431 \begin_layout Standard
6437 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6440 \begin_layout Standard
6447 <row topline="true">
6448 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6451 \begin_layout Standard
6457 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6460 \begin_layout Standard
6466 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6469 \begin_layout Standard
6475 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6478 \begin_layout Standard
6484 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6487 \begin_layout Standard
6494 <row topline="true">
6495 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6498 \begin_layout Standard
6504 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6507 \begin_layout Standard
6513 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6516 \begin_layout Standard
6522 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6525 \begin_layout Standard
6531 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6534 \begin_layout Standard
6541 <row topline="true">
6542 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6545 \begin_layout Standard
6551 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6554 \begin_layout Standard
6560 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6563 \begin_layout Standard
6569 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6572 \begin_layout Standard
6578 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6581 \begin_layout Standard
6588 <row topline="true">
6589 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6592 \begin_layout Standard
6598 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6601 \begin_layout Standard
6607 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6610 \begin_layout Standard
6616 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6619 \begin_layout Standard
6625 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6628 \begin_layout Standard
6635 <row topline="true" bottomline="true">
6636 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6639 \begin_layout Standard
6645 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6648 \begin_layout Standard
6654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6657 \begin_layout Standard
6663 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6666 \begin_layout Standard
6672 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6675 \begin_layout Standard
6689 \begin_layout Standard
6693 \begin_layout Standard
6707 \begin_layout Standard
6708 \begin_inset Note Greyedout
6711 \begin_layout Standard
6716 When the LaTeX-package
6721 \begin_inset LatexCommand index
6722 name "LaTeX-packages ! caption"
6726 is used, as in this document, the full page width is used for the caption
6727 when you use the default value of 4\InsetSpace \thinspace{}
6735 To get in this case exactly a 4\InsetSpace \thinspace{}
6736 in wide caption, you can either use a value
6737 slightly different from 4.0\InsetSpace \thinspace{}
6739 3.99\InsetSpace \thinspace{}
6740 in, or the LaTeX-command
6744 captionsetup{width=value}
6746 that is provided by the
6758 \begin_layout Subsubsection
6759 Different Captions for Table Pages
6760 \begin_inset LatexCommand index
6761 name "Longtables ! Different Captions for Pages"
6768 \begin_layout Standard
6769 When the other captions should differ from the one of the first table page,
6770 insert a caption with a non-empty short title in a dummy caption row marked
6772 The caption used for the other table pages is inserted as caption without
6773 a short title in a dummy caption row that is marked as main header.
6774 When this caption shouldn't include the table number, use the command
6777 \begin_layout Standard
6782 caption*{caption text}
6785 \begin_layout Standard
6786 instead of LyX's caption box.
6787 The label to reference the table is inserted into the caption of the first
6791 \begin_inset LatexCommand ref
6792 reference "tab:DiffCaptions"
6796 is an example for a longtable with different heading where the second caption
6797 doesn't include the table number.
6800 \begin_layout Standard
6802 \begin_inset Tabular
6803 <lyxtabular version="3" rows="60" columns="3">
6804 <features islongtable="true">
6805 <column alignment="left" valignment="top" leftline="true" width="0cm">
6806 <column alignment="left" valignment="top" rightline="true" width="0pt">
6807 <column alignment="right" valignment="top" rightline="true" width="0pt">
6808 <row endfirsthead="true">
6809 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6812 \begin_layout Standard
6813 \begin_inset Caption
6815 \begin_layout Standard
6817 \begin_inset LatexCommand label
6818 name "tab:DiffCaptions"
6826 \begin_layout Standard
6841 \begin_layout Standard
6857 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6860 \begin_layout Standard
6866 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6869 \begin_layout Standard
6876 <row topline="true" bottomline="true" endfirsthead="true">
6877 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6880 \begin_layout Standard
6883 Example Phone List (ignore the names)
6888 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6891 \begin_layout Standard
6897 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6900 \begin_layout Standard
6907 <row topline="true" bottomline="true" endfirsthead="true">
6908 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6911 \begin_layout Standard
6919 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6922 \begin_layout Standard
6928 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6931 \begin_layout Standard
6940 <row bottomline="true" endhead="true">
6941 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6944 \begin_layout Standard
6948 \begin_layout Standard
6952 caption*{Continued Example Phone List}
6966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6969 \begin_layout Standard
6975 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6978 \begin_layout Standard
6985 <row topline="true" bottomline="true" endhead="true">
6986 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6989 \begin_layout Standard
6997 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7000 \begin_layout Standard
7006 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7009 \begin_layout Standard
7016 <row topline="true" bottomline="true" endhead="true">
7017 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7020 \begin_layout Standard
7028 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7031 \begin_layout Standard
7037 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7040 \begin_layout Standard
7049 <row topline="true" bottomline="true" endfoot="true">
7050 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
7053 \begin_layout Standard
7054 continued on next page
7059 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7062 \begin_layout Standard
7068 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7071 \begin_layout Standard
7079 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7082 \begin_layout Standard
7090 <cell alignment="center" valignment="top" topline="true" usebox="none">
7093 \begin_layout Standard
7099 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7102 \begin_layout Standard
7110 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7113 \begin_layout Standard
7121 <cell alignment="center" valignment="top" topline="true" usebox="none">
7124 \begin_layout Standard
7130 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7133 \begin_layout Standard
7141 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7144 \begin_layout Standard
7152 <cell alignment="center" valignment="top" topline="true" usebox="none">
7155 \begin_layout Standard
7161 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7164 \begin_layout Standard
7172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7175 \begin_layout Standard
7183 <cell alignment="center" valignment="top" topline="true" usebox="none">
7186 \begin_layout Standard
7192 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7195 \begin_layout Standard
7203 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7206 \begin_layout Standard
7214 <cell alignment="center" valignment="top" topline="true" usebox="none">
7217 \begin_layout Standard
7223 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7226 \begin_layout Standard
7234 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7237 \begin_layout Standard
7245 <cell alignment="center" valignment="top" topline="true" usebox="none">
7248 \begin_layout Standard
7254 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7257 \begin_layout Standard
7265 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7268 \begin_layout Standard
7276 <cell alignment="center" valignment="top" topline="true" usebox="none">
7279 \begin_layout Standard
7285 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7288 \begin_layout Standard
7296 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7299 \begin_layout Standard
7307 <cell alignment="center" valignment="top" topline="true" usebox="none">
7310 \begin_layout Standard
7316 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7319 \begin_layout Standard
7327 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7330 \begin_layout Standard
7338 <cell alignment="center" valignment="top" topline="true" usebox="none">
7341 \begin_layout Standard
7347 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7350 \begin_layout Standard
7358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7361 \begin_layout Standard
7369 <cell alignment="center" valignment="top" topline="true" usebox="none">
7372 \begin_layout Standard
7378 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7381 \begin_layout Standard
7389 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7392 \begin_layout Standard
7400 <cell alignment="center" valignment="top" topline="true" usebox="none">
7403 \begin_layout Standard
7409 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7412 \begin_layout Standard
7420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7423 \begin_layout Standard
7431 <cell alignment="center" valignment="top" topline="true" usebox="none">
7434 \begin_layout Standard
7440 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7443 \begin_layout Standard
7451 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7454 \begin_layout Standard
7462 <cell alignment="center" valignment="top" topline="true" usebox="none">
7465 \begin_layout Standard
7471 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7474 \begin_layout Standard
7482 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7485 \begin_layout Standard
7493 <cell alignment="center" valignment="top" topline="true" usebox="none">
7496 \begin_layout Standard
7502 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7505 \begin_layout Standard
7513 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7516 \begin_layout Standard
7525 \begin_layout Standard
7536 <cell alignment="center" valignment="top" topline="true" usebox="none">
7539 \begin_layout Standard
7545 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7548 \begin_layout Standard
7556 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7559 \begin_layout Standard
7567 <cell alignment="center" valignment="top" topline="true" usebox="none">
7570 \begin_layout Standard
7576 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7579 \begin_layout Standard
7587 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7590 \begin_layout Standard
7598 <cell alignment="center" valignment="top" topline="true" usebox="none">
7601 \begin_layout Standard
7607 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7610 \begin_layout Standard
7618 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7621 \begin_layout Standard
7629 <cell alignment="center" valignment="top" topline="true" usebox="none">
7632 \begin_layout Standard
7638 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7641 \begin_layout Standard
7649 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7652 \begin_layout Standard
7660 <cell alignment="center" valignment="top" topline="true" usebox="none">
7663 \begin_layout Standard
7669 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7672 \begin_layout Standard
7680 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7683 \begin_layout Standard
7691 <cell alignment="center" valignment="top" topline="true" usebox="none">
7694 \begin_layout Standard
7700 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7703 \begin_layout Standard
7711 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7714 \begin_layout Standard
7722 <cell alignment="center" valignment="top" topline="true" usebox="none">
7725 \begin_layout Standard
7731 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7734 \begin_layout Standard
7742 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7745 \begin_layout Standard
7753 <cell alignment="center" valignment="top" topline="true" usebox="none">
7756 \begin_layout Standard
7762 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7765 \begin_layout Standard
7773 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7776 \begin_layout Standard
7784 <cell alignment="center" valignment="top" topline="true" usebox="none">
7787 \begin_layout Standard
7793 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7796 \begin_layout Standard
7804 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7807 \begin_layout Standard
7815 <cell alignment="center" valignment="top" topline="true" usebox="none">
7818 \begin_layout Standard
7824 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7827 \begin_layout Standard
7835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7838 \begin_layout Standard
7846 <cell alignment="center" valignment="top" topline="true" usebox="none">
7849 \begin_layout Standard
7855 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7858 \begin_layout Standard
7866 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7869 \begin_layout Standard
7877 <cell alignment="center" valignment="top" topline="true" usebox="none">
7880 \begin_layout Standard
7886 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7889 \begin_layout Standard
7897 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7900 \begin_layout Standard
7908 <cell alignment="center" valignment="top" topline="true" usebox="none">
7911 \begin_layout Standard
7917 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7920 \begin_layout Standard
7928 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7931 \begin_layout Standard
7939 <cell alignment="center" valignment="top" topline="true" usebox="none">
7942 \begin_layout Standard
7948 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7951 \begin_layout Standard
7959 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7962 \begin_layout Standard
7970 <cell alignment="center" valignment="top" topline="true" usebox="none">
7973 \begin_layout Standard
7979 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7982 \begin_layout Standard
7990 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7993 \begin_layout Standard
8001 <cell alignment="center" valignment="top" topline="true" usebox="none">
8004 \begin_layout Standard
8010 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8013 \begin_layout Standard
8020 <row bottomline="true">
8021 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8024 \begin_layout Standard
8032 <cell alignment="center" valignment="top" topline="true" usebox="none">
8035 \begin_layout Standard
8041 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8044 \begin_layout Standard
8051 <row bottomline="true">
8052 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8055 \begin_layout Standard
8061 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8064 \begin_layout Standard
8070 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8073 \begin_layout Standard
8081 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8084 \begin_layout Standard
8092 <cell alignment="center" valignment="top" topline="true" usebox="none">
8095 \begin_layout Standard
8101 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8104 \begin_layout Standard
8112 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8115 \begin_layout Standard
8123 <cell alignment="center" valignment="top" topline="true" usebox="none">
8126 \begin_layout Standard
8132 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8135 \begin_layout Standard
8143 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8146 \begin_layout Standard
8154 <cell alignment="center" valignment="top" topline="true" usebox="none">
8157 \begin_layout Standard
8163 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8166 \begin_layout Standard
8174 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8177 \begin_layout Standard
8185 <cell alignment="center" valignment="top" topline="true" usebox="none">
8188 \begin_layout Standard
8194 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8197 \begin_layout Standard
8205 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8208 \begin_layout Standard
8216 <cell alignment="center" valignment="top" topline="true" usebox="none">
8219 \begin_layout Standard
8225 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8228 \begin_layout Standard
8236 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8239 \begin_layout Standard
8247 <cell alignment="center" valignment="top" topline="true" usebox="none">
8250 \begin_layout Standard
8256 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8259 \begin_layout Standard
8267 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8270 \begin_layout Standard
8278 <cell alignment="center" valignment="top" topline="true" usebox="none">
8281 \begin_layout Standard
8287 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8290 \begin_layout Standard
8298 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8301 \begin_layout Standard
8309 <cell alignment="center" valignment="top" topline="true" usebox="none">
8312 \begin_layout Standard
8318 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8321 \begin_layout Standard
8329 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8332 \begin_layout Standard
8340 <cell alignment="center" valignment="top" topline="true" usebox="none">
8343 \begin_layout Standard
8349 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8352 \begin_layout Standard
8360 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8363 \begin_layout Standard
8371 <cell alignment="center" valignment="top" topline="true" usebox="none">
8374 \begin_layout Standard
8380 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8383 \begin_layout Standard
8391 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8394 \begin_layout Standard
8402 <cell alignment="center" valignment="top" topline="true" usebox="none">
8405 \begin_layout Standard
8411 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8414 \begin_layout Standard
8422 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8425 \begin_layout Standard
8433 <cell alignment="center" valignment="top" topline="true" usebox="none">
8436 \begin_layout Standard
8442 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8445 \begin_layout Standard
8453 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8456 \begin_layout Standard
8464 <cell alignment="center" valignment="top" topline="true" usebox="none">
8467 \begin_layout Standard
8473 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8476 \begin_layout Standard
8484 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8487 \begin_layout Standard
8495 <cell alignment="center" valignment="top" topline="true" usebox="none">
8498 \begin_layout Standard
8504 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8507 \begin_layout Standard
8515 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8518 \begin_layout Standard
8526 <cell alignment="center" valignment="top" topline="true" usebox="none">
8529 \begin_layout Standard
8535 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8538 \begin_layout Standard
8546 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8549 \begin_layout Standard
8557 <cell alignment="center" valignment="top" topline="true" usebox="none">
8560 \begin_layout Standard
8566 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8569 \begin_layout Standard
8577 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8580 \begin_layout Standard
8588 <cell alignment="center" valignment="top" topline="true" usebox="none">
8591 \begin_layout Standard
8597 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8600 \begin_layout Standard
8608 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8611 \begin_layout Standard
8619 <cell alignment="center" valignment="top" topline="true" usebox="none">
8622 \begin_layout Standard
8628 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8631 \begin_layout Standard
8639 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8642 \begin_layout Standard
8650 <cell alignment="center" valignment="top" topline="true" usebox="none">
8653 \begin_layout Standard
8659 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8662 \begin_layout Standard
8669 <row bottomline="true">
8670 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8673 \begin_layout Standard
8681 <cell alignment="center" valignment="top" topline="true" usebox="none">
8684 \begin_layout Standard
8690 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8693 \begin_layout Standard
8700 <row bottomline="true" endlastfoot="true">
8701 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
8704 \begin_layout Standard
8710 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8713 \begin_layout Standard
8719 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8722 \begin_layout Standard
8736 \begin_layout Section
8737 Special Longtable Issues
8738 \begin_inset LatexCommand label
8739 name "sec:Special-Longtable-Issues"
8746 \begin_layout Subsection
8747 Longtable Calculation
8748 \begin_inset LatexCommand index
8749 name "Longtables ! Calculation"
8756 \begin_layout Standard
8757 LaTeX calculates the height of table pages and their page breaks using so
8759 Chunks are pieces of the tables that are at once in LaTeX's memory.
8760 The default value is historically set to only 20 table rows.
8761 If you are using longtables with many pages this may slow down the creation
8763 You can safely increase the chunk size to values of 100-1000 by adding
8764 this command line to your document preamble:
8767 \begin_layout Standard
8772 setcounter{LTchunksize}{100}
8775 \begin_layout Subsection
8776 Floats and Longtables
8777 \begin_inset LatexCommand index
8778 name "Longtables ! Floats"
8785 \begin_layout Standard
8786 There might be problems when a float appears on the same page where a longtable
8788 To avoid such situation, add the command
8794 as TeX-Code before your longtable.
8797 \begin_layout Subsection
8799 \begin_inset LatexCommand index
8800 name "Longtables ! Forced Page Breaks"
8807 \begin_layout Standard
8808 By default tables are only broken between rows.
8809 If you have a cell with multiples lines and want to have a page break within
8810 the cell, insert the new line command
8811 \begin_inset Quotes eld
8823 \begin_inset Quotes erd
8826 as TeX-Code at this point of the cell where it should be broken.
8835 command you have to insert in TeX-Code so many
8836 \begin_inset Quotes eld
8844 \begin_inset Quotes erd
8847 characters like the number of the following table columns.
8852 is the character to separate table cells.
8853 Write in TeX-Code after each
8857 the content of the corresponding following cell and delete the content
8868 command, insert so many
8872 characters like the number of table columns before the current column.
8873 In Table\InsetSpace ~
8875 \begin_inset LatexCommand ref
8876 reference "tab:ForcedPagebreak"
8880 the cell that should be broken is in the second column followed by another
8882 Therefore the following command was inserted in the cell as TeX-Code behind
8884 \begin_inset Quotes eld
8892 \begin_inset Quotes erd
8898 \begin_layout Standard
8910 \begin_layout Standard
8912 \begin_inset Quotes eld
8916 \begin_inset Quotes erd
8919 in the third columns of the row was deleted.
8920 If your footer row of the longtable has for a certain reason no upper line
8921 but you would have a horizontal line where the cell is broken, use this
8925 \begin_layout Standard
8939 \begin_layout Standard
8940 When the cell to be broken is in the last column, the command
8943 \begin_layout Standard
8950 parf\SpecialChar \textcompwordmark{}
8954 \begin_layout Standard
8955 must be inserted as TeX-Code at the beginning of the cell.
8956 This assures that the part of the cell that will be displayed on the new
8957 page appears with the full width.
8960 \begin_layout Standard
8962 \begin_inset Tabular
8963 <lyxtabular version="3" rows="39" columns="3">
8964 <features islongtable="true">
8965 <column alignment="left" valignment="top" leftline="true" width="0cm">
8966 <column alignment="left" valignment="top" rightline="true" width="3cm">
8967 <column alignment="right" valignment="top" rightline="true" width="0pt">
8968 <row endfirsthead="true">
8969 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8972 \begin_layout Standard
8973 \begin_inset Caption
8975 \begin_layout Standard
8976 Table with forced page break in table cell
8977 \begin_inset LatexCommand label
8978 name "tab:ForcedPagebreak"
8986 \begin_layout Standard
8987 Table with forced page break in table cell
9001 \begin_layout Standard
9017 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9020 \begin_layout Standard
9026 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9029 \begin_layout Standard
9036 <row topline="true" bottomline="true" endfirsthead="true">
9037 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9040 \begin_layout Standard
9043 Example Phone List (ignore the names)
9048 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9051 \begin_layout Standard
9057 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9060 \begin_layout Standard
9067 <row topline="true" bottomline="true" endfirsthead="true">
9068 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9071 \begin_layout Standard
9079 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9082 \begin_layout Standard
9088 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9091 \begin_layout Standard
9100 <row bottomline="true" endhead="true">
9101 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9104 \begin_layout Standard
9108 \begin_layout Standard
9112 caption*{Continued table with forced page break in table cell}
9126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9129 \begin_layout Standard
9135 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9138 \begin_layout Standard
9145 <row topline="true" bottomline="true" endhead="true">
9146 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9149 \begin_layout Standard
9157 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9160 \begin_layout Standard
9166 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9169 \begin_layout Standard
9176 <row topline="true" bottomline="true" endhead="true">
9177 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9180 \begin_layout Standard
9188 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9191 \begin_layout Standard
9197 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9200 \begin_layout Standard
9209 <row topline="true" bottomline="true" endfoot="true">
9210 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
9213 \begin_layout Standard
9214 continued on next page
9219 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9222 \begin_layout Standard
9228 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9231 \begin_layout Standard
9239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9242 \begin_layout Standard
9250 <cell alignment="center" valignment="top" topline="true" usebox="none">
9253 \begin_layout Standard
9259 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9262 \begin_layout Standard
9270 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9273 \begin_layout Standard
9281 <cell alignment="center" valignment="top" topline="true" usebox="none">
9284 \begin_layout Standard
9290 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9293 \begin_layout Standard
9301 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9304 \begin_layout Standard
9312 <cell alignment="center" valignment="top" topline="true" usebox="none">
9315 \begin_layout Standard
9321 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9324 \begin_layout Standard
9332 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9335 \begin_layout Standard
9343 <cell alignment="center" valignment="top" topline="true" usebox="none">
9346 \begin_layout Standard
9352 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9355 \begin_layout Standard
9363 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9366 \begin_layout Standard
9374 <cell alignment="center" valignment="top" topline="true" usebox="none">
9377 \begin_layout Standard
9383 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9386 \begin_layout Standard
9394 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9397 \begin_layout Standard
9405 <cell alignment="center" valignment="top" topline="true" usebox="none">
9408 \begin_layout Standard
9414 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9417 \begin_layout Standard
9425 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9428 \begin_layout Standard
9436 <cell alignment="center" valignment="top" topline="true" usebox="none">
9439 \begin_layout Standard
9445 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9448 \begin_layout Standard
9456 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9459 \begin_layout Standard
9467 <cell alignment="center" valignment="top" topline="true" usebox="none">
9470 \begin_layout Standard
9476 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9479 \begin_layout Standard
9487 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9490 \begin_layout Standard
9498 <cell alignment="center" valignment="top" topline="true" usebox="none">
9501 \begin_layout Standard
9507 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9510 \begin_layout Standard
9518 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9521 \begin_layout Standard
9529 <cell alignment="center" valignment="top" topline="true" usebox="none">
9532 \begin_layout Standard
9538 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9541 \begin_layout Standard
9549 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9552 \begin_layout Standard
9560 <cell alignment="center" valignment="top" topline="true" usebox="none">
9563 \begin_layout Standard
9569 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9572 \begin_layout Standard
9580 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9583 \begin_layout Standard
9591 <cell alignment="center" valignment="top" topline="true" usebox="none">
9594 \begin_layout Standard
9600 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9603 \begin_layout Standard
9611 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9614 \begin_layout Standard
9622 <cell alignment="center" valignment="top" topline="true" usebox="none">
9625 \begin_layout Standard
9631 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9634 \begin_layout Standard
9642 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9645 \begin_layout Standard
9653 <cell alignment="center" valignment="top" topline="true" usebox="none">
9656 \begin_layout Standard
9662 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9665 \begin_layout Standard
9673 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9676 \begin_layout Standard
9684 <cell alignment="center" valignment="top" topline="true" usebox="none">
9687 \begin_layout Standard
9693 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9696 \begin_layout Standard
9704 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9707 \begin_layout Standard
9715 <cell alignment="center" valignment="top" topline="true" usebox="none">
9718 \begin_layout Standard
9724 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9727 \begin_layout Standard
9735 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9738 \begin_layout Standard
9746 <cell alignment="center" valignment="top" topline="true" usebox="none">
9749 \begin_layout Standard
9755 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9758 \begin_layout Standard
9766 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9769 \begin_layout Standard
9777 <cell alignment="center" valignment="top" topline="true" usebox="none">
9780 \begin_layout Standard
9786 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9789 \begin_layout Standard
9797 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9800 \begin_layout Standard
9808 <cell alignment="center" valignment="top" topline="true" usebox="none">
9811 \begin_layout Standard
9817 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9820 \begin_layout Standard
9828 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9831 \begin_layout Standard
9839 <cell alignment="center" valignment="top" topline="true" usebox="none">
9842 \begin_layout Standard
9848 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9851 \begin_layout Standard
9859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9862 \begin_layout Standard
9870 <cell alignment="center" valignment="top" topline="true" usebox="none">
9873 \begin_layout Standard
9879 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9882 \begin_layout Standard
9890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9893 \begin_layout Standard
9901 <cell alignment="center" valignment="top" topline="true" usebox="none">
9904 \begin_layout Standard
9910 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9913 \begin_layout Standard
9921 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9924 \begin_layout Standard
9932 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9935 \begin_layout Standard
9937 Fürst von Montecompatri, 11.
9938 Fürst von Sulmona und Vivaro, 10.
9939 Fürst von Rossano, 5.
9940 Herzog von Canemorte, 11.
9941 Herzog von Palombara, 5.
9942 Herzog von Castelchiodato,
9946 \begin_layout Standard
9955 \begin_layout Standard
9963 Herzog von Poggionativo, 11.
9964 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
9965 Graf von Valinfreda, 11.
9966 Baron von Cropalati, 11.
9967 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
9972 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9975 \begin_layout Standard
9983 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9986 \begin_layout Standard
9994 <cell alignment="center" valignment="top" topline="true" usebox="none">
9997 \begin_layout Standard
10003 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10006 \begin_layout Standard
10014 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10017 \begin_layout Standard
10025 <cell alignment="center" valignment="top" topline="true" usebox="none">
10028 \begin_layout Standard
10034 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10037 \begin_layout Standard
10045 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10048 \begin_layout Standard
10056 <cell alignment="center" valignment="top" topline="true" usebox="none">
10059 \begin_layout Standard
10065 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10068 \begin_layout Standard
10076 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10079 \begin_layout Standard
10087 <cell alignment="center" valignment="top" topline="true" usebox="none">
10090 \begin_layout Standard
10096 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10099 \begin_layout Standard
10107 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10110 \begin_layout Standard
10118 <cell alignment="center" valignment="top" topline="true" usebox="none">
10121 \begin_layout Standard
10127 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10130 \begin_layout Standard
10138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10141 \begin_layout Standard
10149 <cell alignment="center" valignment="top" topline="true" usebox="none">
10152 \begin_layout Standard
10158 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10161 \begin_layout Standard
10169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10172 \begin_layout Standard
10180 <cell alignment="center" valignment="top" topline="true" usebox="none">
10183 \begin_layout Standard
10189 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10192 \begin_layout Standard
10199 <row bottomline="true">
10200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10203 \begin_layout Standard
10211 <cell alignment="center" valignment="top" topline="true" usebox="none">
10214 \begin_layout Standard
10220 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10223 \begin_layout Standard
10230 <row endlastfoot="true">
10231 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
10234 \begin_layout Standard
10240 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10243 \begin_layout Standard
10249 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10252 \begin_layout Standard
10266 \begin_layout Standard
10272 \begin_layout Section
10273 Multiple Lines Columns and Rows
10276 \begin_layout Subsection
10277 Multiple Lines in Table Cells
10278 \begin_inset LatexCommand label
10279 name "sub:Multiple-Lines-in"
10284 \begin_inset LatexCommand index
10285 name "Multiple Lines in Table Cells"
10290 \begin_inset LatexCommand index
10291 name "Table ! Linebreaks"
10298 \begin_layout Standard
10300 \begin_inset Float table
10306 \begin_layout Standard
10307 \begin_inset Caption
10309 \begin_layout Standard
10310 \begin_inset LatexCommand label
10311 name "tab:Table-with-multiple"
10315 Table with multiple lines in cells
10323 \begin_layout Standard
10325 \begin_inset Tabular
10326 <lyxtabular version="3" rows="3" columns="3">
10328 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10329 <column alignment="center" valignment="middle" leftline="true" width="0">
10330 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
10331 <row topline="true">
10332 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10335 \begin_layout Standard
10340 \begin_layout Standard
10354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10357 \begin_layout Standard
10363 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10366 \begin_layout Standard
10373 <row topline="true">
10374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10377 \begin_layout Standard
10383 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10386 \begin_layout Standard
10392 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10395 \begin_layout Standard
10402 <row topline="true" bottomline="true">
10403 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10406 \begin_layout Standard
10412 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10415 \begin_layout Standard
10421 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10424 \begin_layout Standard
10443 \begin_layout Standard
10444 Adjusting a fixed width for a column, enables to enter text as a paragraph
10445 with multiple lines and hyphenations.
10448 \begin_layout Standard
10449 To produce Table\InsetSpace ~
10451 \begin_inset LatexCommand ref
10452 reference "tab:Table-with-multiple"
10456 , create a 3×3 table, mark the first cell and right-click on it.
10457 In the appearing table dialog we set a cell width of 2.5\InsetSpace \thinspace{}
10458 cm and choose centered
10459 for the vertical and horizontal alignment.
10460 The vertical alignment is used for all cells of the row.
10461 As our text is smaller than than 2.5\InsetSpace \thinspace{}
10462 cm, only one line will appear.
10463 To get two lines, we add a line break with the command
10466 \begin_layout Standard
10474 \begin_layout Standard
10476 If the text is wider than the set cell width it will automatically be broken
10480 \begin_layout Standard
10481 If you have a long word in a cell with a fixed width, it cannot be hyphenated
10482 by LaTeX if it is the first entry.
10483 Therefore you need to insert something, to make the word not being the
10484 first entry: Add the command
10487 \begin_layout Standard
10495 \begin_layout Standard
10496 in TeX-Code before the word.
10497 As the space is zero, it doesn't change the output.
10500 \begin_inset LatexCommand ref
10501 reference "tab:Table-with-and"
10508 \begin_layout Standard
10509 \begin_inset Float table
10515 \begin_layout Standard
10516 \begin_inset Caption
10518 \begin_layout Standard
10519 \begin_inset LatexCommand label
10520 name "tab:Table-with-and"
10524 Table with and without hyphenation
10532 \begin_layout Standard
10536 \begin_inset Tabular
10537 <lyxtabular version="3" rows="3" columns="3">
10539 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10540 <column alignment="center" valignment="middle" leftline="true" width="0">
10541 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
10542 <row topline="true">
10543 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10546 \begin_layout Standard
10547 verylongtablecellword
10552 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10555 \begin_layout Standard
10561 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10564 \begin_layout Standard
10571 <row topline="true">
10572 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10575 \begin_layout Standard
10581 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10584 \begin_layout Standard
10590 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10593 \begin_layout Standard
10600 <row topline="true" bottomline="true">
10601 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10604 \begin_layout Standard
10610 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10613 \begin_layout Standard
10619 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10622 \begin_layout Standard
10636 \begin_inset Tabular
10637 <lyxtabular version="3" rows="3" columns="3">
10639 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10640 <column alignment="center" valignment="middle" leftline="true" width="0">
10641 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
10642 <row topline="true">
10643 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10646 \begin_layout Standard
10650 \begin_layout Standard
10659 verylongtablecellword
10664 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10667 \begin_layout Standard
10673 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10676 \begin_layout Standard
10683 <row topline="true">
10684 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10687 \begin_layout Standard
10693 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10696 \begin_layout Standard
10702 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10705 \begin_layout Standard
10712 <row topline="true" bottomline="true">
10713 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10716 \begin_layout Standard
10722 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10725 \begin_layout Standard
10731 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10734 \begin_layout Standard
10755 \begin_layout Standard
10761 \begin_layout Subsection
10763 \begin_inset LatexCommand label
10764 name "sub:Multicolumns"
10769 \begin_inset LatexCommand index
10770 name "Multicolumns"
10775 \begin_inset LatexCommand index
10776 name "Table ! Multicolumns"
10783 \begin_layout Subsubsection
10787 \begin_layout Standard
10788 To span a cell over multiple columns, mark as much cells within a line that
10789 should be one spanned cell and use either the table-toolbar button
10790 \begin_inset Graphics
10791 filename ../images/tabular-feature_multicolumn.png
10793 scaleBeforeRotation
10799 Edit\SpecialChar \menuseparator
10800 Table\SpecialChar \menuseparator
10803 , or right click on the marked cells and choose multicolumn in the appearing
10804 table dialog under the tab
10811 \begin_layout Standard
10812 Multicolumns have there own cell settings.
10813 That means changing cell borders, cell alignment, and the width only affects
10815 Here is an example table with a multicolumn cell in the first row and one
10816 in the last row without the upper border:
10819 \begin_layout Standard
10821 \begin_inset Tabular
10822 <lyxtabular version="3" rows="3" columns="4">
10823 <features firstHeadTopDL="true" firstHeadBottomDL="true">
10824 <column alignment="center" valignment="top" leftline="true" width="0pt">
10825 <column alignment="center" valignment="middle" leftline="true" width="0">
10826 <column alignment="center" valignment="top" leftline="true" width="0in">
10827 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
10828 <row topline="true" bottomline="true">
10829 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10832 \begin_layout Standard
10838 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
10841 \begin_layout Standard
10847 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10850 \begin_layout Standard
10856 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10859 \begin_layout Standard
10866 <row topline="true">
10867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10870 \begin_layout Standard
10885 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10888 \begin_layout Standard
10894 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10897 \begin_layout Standard
10903 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10906 \begin_layout Standard
10913 <row topline="true" bottomline="true">
10914 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10917 \begin_layout Standard
10923 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10926 \begin_layout Standard
10932 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10935 \begin_layout Standard
10941 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10944 \begin_layout Standard
10958 \begin_layout Subsubsection
10959 Multicolumn Calculations
10960 \begin_inset LatexCommand label
10961 name "sub:Multicolumn-Calculations"
10966 \begin_inset LatexCommand index
10967 name "Multicolumns ! Calculations"
10974 \begin_layout Standard
10975 LyX supports multicolumns directly, but we have to take notice of the cell
10976 width of the columns spanned by the multicolumn cell.
10979 \begin_layout Standard
10980 \begin_inset Float table
10985 \begin_layout Standard
10986 \begin_inset Caption
10988 \begin_layout Standard
10989 \begin_inset LatexCommand label
10990 name "tab:Table-with-centered"
10994 Table with centered multicolumn text above two columns that have exactly
10995 half the width of the multicolumn cell
10996 \begin_inset OptArg
10999 \begin_layout Standard
11000 Perfect multicolumn table
11013 \begin_layout Standard
11015 \begin_inset Tabular
11016 <lyxtabular version="3" rows="3" columns="3">
11018 <column alignment="center" valignment="middle" leftline="true" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11019 <column alignment="center" valignment="middle" leftline="true" width="0">
11020 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
11021 <row topline="true">
11022 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11025 \begin_layout Standard
11026 multiple lines multicolumn
11031 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11034 \begin_layout Standard
11040 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11043 \begin_layout Standard
11050 <row topline="true">
11051 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11054 \begin_layout Standard
11060 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11063 \begin_layout Standard
11069 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11072 \begin_layout Standard
11079 <row topline="true" bottomline="true">
11080 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11083 \begin_layout Standard
11089 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11092 \begin_layout Standard
11098 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11101 \begin_layout Standard
11120 \begin_layout Standard
11121 To create for example Table\InsetSpace ~
11123 \begin_inset LatexCommand ref
11124 reference "tab:Table-with-centered"
11128 , mark the first two cells in the first row of a 3×3 table and right-click
11130 Now choose for this cell
11138 and a width of 2.5\InsetSpace \thinspace{}
11139 cm in the table dialog.
11140 The spanned columns should have exactly half the width of the multicolumn
11141 cell, so that you would adjust a width of 1.25\InsetSpace \thinspace{}
11142 cm for the first column.
11143 The second column has then automatically a width of 1.25\InsetSpace \thinspace{}
11145 width - width of first column).
11146 This was done for Table\InsetSpace ~
11148 \begin_inset LatexCommand ref
11149 reference "tab:Table-without-half"
11156 \begin_layout Standard
11157 \begin_inset Float table
11162 \begin_layout Standard
11163 \begin_inset Caption
11165 \begin_layout Standard
11166 \begin_inset LatexCommand label
11167 name "tab:Table-without-half"
11171 Table where the spanned table columns have not exactly half the width of
11172 the multicolumn cell
11173 \begin_inset OptArg
11176 \begin_layout Standard
11177 Imperfect multicolumn table
11190 \begin_layout Standard
11192 \begin_inset Tabular
11193 <lyxtabular version="3" rows="3" columns="3">
11195 <column alignment="center" valignment="top" leftline="true" width="1.25cm">
11196 <column alignment="center" valignment="top" leftline="true" width="0">
11197 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
11198 <row topline="true" bottomline="true">
11199 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
11202 \begin_layout Standard
11203 multiple lines multicolumn
11208 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11211 \begin_layout Standard
11217 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11220 \begin_layout Standard
11227 <row topline="true">
11228 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11231 \begin_layout Standard
11237 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11240 \begin_layout Standard
11246 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11249 \begin_layout Standard
11256 <row topline="true" bottomline="true">
11257 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11260 \begin_layout Standard
11266 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11269 \begin_layout Standard
11275 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11278 \begin_layout Standard
11297 \begin_layout Standard
11298 You can see that the first column has not the half width of the multicolumn
11299 cell, it is a bit bigger.
11300 The reason is that the given width of a cell
11301 \begin_inset Formula $W_{g}$
11304 is not its total width
11305 \begin_inset Formula $W_{\mathrm{tot}}$
11308 because a cell is always a bit larger than its given width.
11309 Appendix\InsetSpace ~
11311 \begin_inset LatexCommand eqref
11312 reference "cha:Explanation-of-Equation"
11316 explains it in detail.
11319 \begin_layout Standard
11320 The needed given width
11321 \begin_inset Formula $W_{g\, n}$
11328 columns are spanned can be calculated, so that each column has a total
11330 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
11334 \begin_inset Formula \begin{equation}
11335 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
11342 \begin_layout Standard
11343 In our case we have
11344 \begin_inset Formula $n=2$
11348 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
11351 cm and the default values for the lengths, so that equation
11352 \begin_inset LatexCommand ref
11358 \begin_inset Formula \begin{equation}
11359 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
11366 \begin_layout Standard
11367 To enable calculations in LaTeX, the LaTeX-package
11371 must be loaded with the document preamble line
11372 \begin_inset LatexCommand index
11373 name "LaTeX-packages ! calc"
11380 \begin_layout Standard
11388 \begin_layout Standard
11389 LyX does not allow to calculate lengths in the width-field of the table
11391 Therefore you have to format the column by inserting a LaTeX-argument in
11393 Here is an overview about the arguments:
11396 \begin_layout Itemize
11401 creates cell with a fixed width, its text is vertically top-aligned
11404 \begin_layout Itemize
11409 creates cell with a fixed width, its text is vertically centered
11412 \begin_layout Itemize
11417 creates cell with a fixed width, its text is vertically bottom-aligned
11420 \begin_layout Standard
11421 By entering a LaTeX-argument, all cell settings set in the table dialog
11425 \begin_layout Standard
11426 \begin_inset Note Greyedout
11429 \begin_layout Standard
11434 Due to a bug, LyX shows the overwritten settings anyway.
11442 \begin_layout Standard
11443 As the text should be horizontally centered, the command
11450 You can now enter the following LaTeX-argument for the first spanned column:
11453 \begin_layout Standard
11458 centering}m{1.25cm-6.2pt}
11461 \begin_layout Standard
11466 means, that the commands inside the braces are applied before the cell
11470 \begin_layout Standard
11471 Although we have chosen centered alignment for the text of the multicolumn
11472 cell, it is still left aligned.
11473 This is because LyX only applies the alignment to single columns.
11474 So we have to use for the multicolumn the LaTeX-argument
11477 \begin_layout Standard
11485 \begin_layout Subsection
11487 \begin_inset LatexCommand index
11493 \begin_inset LatexCommand index
11494 name "Table ! Multirows"
11499 \begin_inset LatexCommand index
11500 name "LaTeX-packages ! multirow"
11507 \begin_layout Standard
11508 In contrary to multicolumns multirows are not yet supported by LyX so a
11509 bit of TeX-Code needs to be used.
11510 To use multirows load the LaTeX-package
11514 in your document preamble with the command
11517 \begin_layout Standard
11522 usepackage{multirow}
11525 \begin_layout Standard
11526 Multirows are created with the command
11529 \begin_layout Standard
11534 multirow{number of rows}{cell width}{cell entry}
11537 \begin_layout Standard
11538 To create the following table:
11541 \begin_layout Standard
11546 \begin_layout Standard
11560 \begin_inset Tabular
11561 <lyxtabular version="3" rows="3" columns="3">
11563 <column alignment="center" valignment="top" leftline="true" width="0">
11564 <column alignment="center" valignment="top" leftline="true" width="0">
11565 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
11566 <row topline="true">
11567 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11570 \begin_layout Standard
11576 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11579 \begin_layout Standard
11585 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11588 \begin_layout Standard
11595 <row topline="true">
11596 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11599 \begin_layout Standard
11603 \begin_layout Standard
11607 multirow{2}{2.5cm}{
11616 \begin_layout Standard
11628 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11631 \begin_layout Standard
11637 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11640 \begin_layout Standard
11647 <row topline="true" bottomline="true">
11648 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11651 \begin_layout Standard
11657 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11660 \begin_layout Standard
11666 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11669 \begin_layout Standard
11684 \begin_layout Standard
11700 \begin_layout Standard
11701 create a 3×3 table.
11702 To get rid of the line above the last cell in the first column, the cell
11703 is marked as multicolumn and the upper border is unset.
11704 The multirow is now created in the second row of the first column by inserting
11708 \begin_layout Standard
11713 multirow{2}{2.5cm}{
11716 \begin_layout Standard
11718 According to the command parameters the multirow spans now two rows and
11719 has a width of 2.5\InsetSpace \thinspace{}
11721 The content of the multirow cell follows outside the TeX-Code box and the
11722 command is finished with a right brace
11726 in another TeX-Code-box behind the text.
11729 \begin_layout Standard
11736 left-aligns its content by default.
11737 To override the default, renew the command
11746 \begin_layout Standard
11758 \begin_layout Standard
11759 in TeX-Code in the document preamble.
11760 Then all entries of multirow cells in the document are centered.
11761 If centering is only needed for several tables, you can renew the command
11762 in an TeX-Code box just before the table instead of the preamble.
11763 If the text should be right-aligned, replace
11776 To return to left-alignment
11785 \begin_layout Section
11787 \begin_inset LatexCommand label
11788 name "sec:Formal-Tables"
11793 \begin_inset LatexCommand index
11794 name "Table ! Formal"
11801 \begin_layout Standard
11802 Tables are often typeset in books similar to Table\InsetSpace ~
11804 \begin_inset LatexCommand ref
11805 reference "tab:Example-booktabs-table"
11810 This kind of tables is called
11811 \begin_inset Quotes eld
11819 \begin_inset Quotes erd
11823 To make a table a formal table use the option
11831 tab of the table dialog.
11834 \begin_layout Standard
11835 \begin_inset Float table
11841 \begin_layout Standard
11842 \begin_inset Caption
11844 \begin_layout Standard
11845 \begin_inset LatexCommand label
11846 name "tab:Example-booktabs-table"
11850 Example booktabs-table
11858 \begin_layout Standard
11860 \begin_inset Tabular
11861 <lyxtabular version="3" rows="8" columns="4">
11862 <features booktabs="true">
11863 <column alignment="center" valignment="top" rightline="true" width="0">
11864 <column alignment="center" valignment="top" width="0">
11865 <column alignment="center" valignment="top" width="0">
11866 <column alignment="center" valignment="top" width="0">
11867 <row topline="true">
11868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11871 \begin_layout Standard
11877 <cell alignment="center" valignment="top" topline="true" usebox="none">
11880 \begin_layout Standard
11882 \begin_inset Formula $\,$
11890 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
11893 \begin_layout Standard
11895 \begin_inset Formula $\,$
11903 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11906 \begin_layout Standard
11914 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11917 \begin_layout Standard
11921 \begin_layout Standard
11934 \begin_layout Standard
11943 Detector thickness [µm]
11948 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11951 \begin_layout Standard
11957 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11960 \begin_layout Standard
11966 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11969 \begin_layout Standard
11976 <row topline="true">
11977 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11980 \begin_layout Standard
11986 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11989 \begin_layout Standard
11995 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11998 \begin_layout Standard
12004 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12007 \begin_layout Standard
12014 <row topspace="default">
12015 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12018 \begin_layout Standard
12019 Spatial resolution [µm]
12024 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12027 \begin_layout Standard
12033 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12036 \begin_layout Standard
12042 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12045 \begin_layout Standard
12052 <row topspace="default">
12053 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12056 \begin_layout Standard
12058 \begin_inset Formula $f_{\mathrm{max}}$
12066 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12069 \begin_layout Standard
12075 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12078 \begin_layout Standard
12084 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12087 \begin_layout Standard
12094 <row topspace="default">
12095 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12098 \begin_layout Standard
12102 \begin_layout Standard
12106 cmidrule(l{10pt}){1-1}
12111 LSF-spatial resolution
12116 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12119 \begin_layout Standard
12125 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12128 \begin_layout Standard
12134 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12137 \begin_layout Standard
12145 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12148 \begin_layout Standard
12154 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12157 \begin_layout Standard
12163 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12166 \begin_layout Standard
12172 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12175 \begin_layout Standard
12182 <row bottomline="true">
12183 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12186 \begin_layout Standard
12192 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12195 \begin_layout Standard
12201 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12204 \begin_layout Standard
12210 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12213 \begin_layout Standard
12232 \begin_layout Standard
12233 Spaces to table rows can be added using the
12237 tab of the table dialog as described in section\InsetSpace ~
12239 \begin_inset LatexCommand ref
12240 reference "sub:Row-Spacing"
12247 \begin_layout Standard
12248 In contrary to normal tables, formal tables have no vertical table lines.
12249 The horizontal table lines can be set like for normal tables but they appear
12250 with different width in the output:
12252 The first and the last table line have
12253 a default width of 0.08\InsetSpace \thinspace{}
12254 em while the other lines have a default width of
12255 0.05\InsetSpace \thinspace{}
12259 \begin_layout Standard
12260 The default widths can be changed with the following preamble lines
12263 \begin_layout Standard
12283 \begin_layout Standard
12284 This example is for the first line, the so called
12289 If you want to change the width for the last line, replace
12298 To change the width for the other lines replace
12307 You can use all units listed in appendix\InsetSpace ~
12309 \begin_inset LatexCommand ref
12310 reference "cha:Units-available-in"
12317 \begin_layout Standard
12318 Lines that don't span over all table columns can be created by setting a
12319 table line for multicolumn cells.
12320 LyX will then internally use the command
12326 to create this line.
12330 \begin_layout Standard
12335 cmidrule[width](trim){startcol-endcol}
12338 \begin_layout Standard
12345 are are currently not supported by LyX so you have to use TeX-Code to be
12353 s can manually be created by inserting the command as TeX-Code as first
12354 cell entry of the first cell of a row.
12355 The line is then drawn in the output above the current row.
12358 \begin_layout Standard
12359 The default for the width is 0.03\InsetSpace \thinspace{}
12361 Startcol is the number of the column where the line starts and endcol the
12362 column number where the line ends.
12363 The endcol always needs to be specified, also when the line should span
12365 The optional parameter trim could be either
12373 where the trimwidth is also optional.
12374 Using for example the parameter
12378 means that the line is trimmed from its left end by 2\InsetSpace \thinspace{}
12380 If you don't specify the trimwidth the lines are trimmed by the default
12381 of 0.5\InsetSpace \thinspace{}
12385 \begin_layout Standard
12386 \begin_inset VSpace bigskip
12391 \begin_inset LatexCommand ref
12392 reference "tab:Example-booktabs-table"
12396 was created using the commands
12399 \begin_layout Standard
12409 \begin_layout Standard
12410 at the beginning of the in the second row and
12413 \begin_layout Standard
12418 cmidrule(l{10pt}){1-1}
12421 \begin_layout Standard
12425 \begin_layout Standard
12426 \begin_inset VSpace bigskip
12432 \begin_layout Standard
12433 You might want to have overlapping
12439 s like in Table\InsetSpace ~
12441 \begin_inset LatexCommand ref
12442 reference "tab:Special-booktabs-table"
12447 This can be achieved with the TeX-Code command
12450 \begin_layout Standard
12458 \begin_layout Standard
12459 The command that was used for the second row of Table\InsetSpace ~
12461 \begin_inset LatexCommand ref
12462 reference "tab:Special-booktabs-table"
12469 \begin_layout Standard
12483 \begin_layout Standard
12484 The command for the sixth row is
12487 \begin_layout Standard
12499 \begin_layout Standard
12500 \begin_inset VSpace bigskip
12506 \begin_layout Standard
12507 If you are anyway not satisfied with the border line spacing, you can use
12508 the following command to produce lines that span over all table columns
12513 \begin_layout Standard
12518 specialrule{width}{space above}{space below}
12521 \begin_layout Standard
12522 For more informations about these specialties, we refer to the manual of
12528 \begin_inset LatexCommand cite
12534 \begin_inset LatexCommand index
12535 name "LaTeX-packages ! booktabs"
12542 \begin_layout Standard
12543 \begin_inset Float table
12549 \begin_layout Standard
12550 \begin_inset Caption
12552 \begin_layout Standard
12553 \begin_inset LatexCommand label
12554 name "tab:Special-booktabs-table"
12558 Special booktabs-table
12566 \begin_layout Standard
12568 \begin_inset Tabular
12569 <lyxtabular version="3" rows="8" columns="4">
12570 <features booktabs="true">
12571 <column alignment="center" valignment="top" width="0">
12572 <column alignment="center" valignment="top" width="0">
12573 <column alignment="center" valignment="top" width="0">
12574 <column alignment="center" valignment="top" width="0">
12575 <row topline="true">
12576 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12579 \begin_layout Standard
12585 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12588 \begin_layout Standard
12589 Medipix\InsetSpace \thinspace{}
12595 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
12598 \begin_layout Standard
12599 Medipix\InsetSpace \thinspace{}
12605 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12608 \begin_layout Standard
12616 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12619 \begin_layout Standard
12623 \begin_layout Standard
12636 \begin_layout Standard
12649 \begin_layout Standard
12662 \begin_layout Standard
12671 Detector thickness [µm]
12676 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12679 \begin_layout Standard
12685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12688 \begin_layout Standard
12694 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12697 \begin_layout Standard
12704 <row topline="true">
12705 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12708 \begin_layout Standard
12714 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12717 \begin_layout Standard
12723 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12726 \begin_layout Standard
12732 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12735 \begin_layout Standard
12742 <row topspace="default">
12743 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12746 \begin_layout Standard
12747 Spatial resolution [µm]
12752 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12755 \begin_layout Standard
12761 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12764 \begin_layout Standard
12770 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12773 \begin_layout Standard
12780 <row topspace="default">
12781 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12784 \begin_layout Standard
12786 \begin_inset Formula $f_{\mathrm{max}}$
12794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12797 \begin_layout Standard
12803 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12806 \begin_layout Standard
12812 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12815 \begin_layout Standard
12822 <row topline="true">
12823 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12826 \begin_layout Standard
12830 \begin_layout Standard
12843 \begin_layout Standard
12852 LSF-spatial resolution
12857 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12860 \begin_layout Standard
12866 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12869 \begin_layout Standard
12875 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12878 \begin_layout Standard
12886 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12889 \begin_layout Standard
12895 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12898 \begin_layout Standard
12904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12907 \begin_layout Standard
12913 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12916 \begin_layout Standard
12923 <row bottomline="true">
12924 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12927 \begin_layout Standard
12933 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12936 \begin_layout Standard
12942 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12945 \begin_layout Standard
12951 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12954 \begin_layout Standard
12973 \begin_layout Section
12974 Vertical Table Alignment
12975 \begin_inset LatexCommand index
12976 name "Table ! Alignment"
12983 \begin_layout Standard
12984 To align tables vertically in a text line the table must be inside a box.
12985 The box can then be vertically aligned as described in section\InsetSpace ~
12987 \begin_inset LatexCommand ref
12988 reference "sec:Box-Dialog"
12995 \begin_layout Standard
12996 In the following example the tables are inside a minipage
13000 \begin_layout Standard
13001 Minipages are described in section\InsetSpace ~
13003 \begin_inset LatexCommand ref
13004 reference "sec:Minipages"
13013 box that has a width of 15\InsetSpace \thinspace{}
13017 \begin_layout Itemize
13019 \begin_inset Box Frameless
13028 height_special "totalheight"
13031 \begin_layout Standard
13032 \begin_inset Tabular
13033 <lyxtabular version="3" rows="3" columns="3">
13035 <column alignment="center" valignment="top" leftline="true" width="0">
13036 <column alignment="center" valignment="top" leftline="true" width="0">
13037 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13038 <row topline="true">
13039 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13042 \begin_layout Standard
13048 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13051 \begin_layout Standard
13057 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13060 \begin_layout Standard
13067 <row topline="true">
13068 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13071 \begin_layout Standard
13077 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13080 \begin_layout Standard
13086 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13089 \begin_layout Standard
13096 <row topline="true" bottomline="true">
13097 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13100 \begin_layout Standard
13106 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13109 \begin_layout Standard
13115 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13118 \begin_layout Standard
13138 \begin_layout Standard
13150 \begin_inset Box Frameless
13159 height_special "totalheight"
13162 \begin_layout Standard
13163 \begin_inset Tabular
13164 <lyxtabular version="3" rows="3" columns="3">
13166 <column alignment="center" valignment="top" leftline="true" width="0">
13167 <column alignment="center" valignment="top" leftline="true" width="0">
13168 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13169 <row topline="true">
13170 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13173 \begin_layout Standard
13179 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13182 \begin_layout Standard
13188 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13191 \begin_layout Standard
13198 <row topline="true">
13199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13202 \begin_layout Standard
13208 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13211 \begin_layout Standard
13217 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13220 \begin_layout Standard
13227 <row topline="true" bottomline="true">
13228 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13231 \begin_layout Standard
13237 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13240 \begin_layout Standard
13246 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13249 \begin_layout Standard
13269 \begin_layout Standard
13279 \begin_layout Itemize
13281 \begin_inset Box Frameless
13290 height_special "totalheight"
13293 \begin_layout Standard
13294 \begin_inset Tabular
13295 <lyxtabular version="3" rows="3" columns="3">
13297 <column alignment="center" valignment="top" leftline="true" width="0">
13298 <column alignment="center" valignment="top" leftline="true" width="0">
13299 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13300 <row topline="true">
13301 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13304 \begin_layout Standard
13310 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13313 \begin_layout Standard
13319 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13322 \begin_layout Standard
13329 <row topline="true">
13330 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13333 \begin_layout Standard
13339 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13342 \begin_layout Standard
13348 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13351 \begin_layout Standard
13358 <row topline="true" bottomline="true">
13359 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13362 \begin_layout Standard
13368 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13371 \begin_layout Standard
13377 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13380 \begin_layout Standard
13399 \begin_layout Itemize
13401 \begin_inset Box Frameless
13410 height_special "totalheight"
13413 \begin_layout Standard
13414 \begin_inset Tabular
13415 <lyxtabular version="3" rows="3" columns="3">
13417 <column alignment="center" valignment="top" leftline="true" width="0">
13418 <column alignment="center" valignment="top" leftline="true" width="0">
13419 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13420 <row topline="true">
13421 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13424 \begin_layout Standard
13430 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13433 \begin_layout Standard
13439 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13442 \begin_layout Standard
13449 <row topline="true">
13450 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13453 \begin_layout Standard
13459 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13462 \begin_layout Standard
13468 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13471 \begin_layout Standard
13478 <row topline="true" bottomline="true">
13479 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13482 \begin_layout Standard
13488 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13491 \begin_layout Standard
13497 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13500 \begin_layout Standard
13520 \begin_layout Standard
13532 \begin_inset Box Frameless
13541 height_special "totalheight"
13544 \begin_layout Standard
13545 \begin_inset Tabular
13546 <lyxtabular version="3" rows="3" columns="3">
13548 <column alignment="center" valignment="top" leftline="true" width="0">
13549 <column alignment="center" valignment="top" leftline="true" width="0">
13550 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13551 <row topline="true">
13552 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13555 \begin_layout Standard
13561 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13564 \begin_layout Standard
13570 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13573 \begin_layout Standard
13580 <row topline="true">
13581 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13584 \begin_layout Standard
13590 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13593 \begin_layout Standard
13599 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13602 \begin_layout Standard
13609 <row topline="true" bottomline="true">
13610 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13613 \begin_layout Standard
13619 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13622 \begin_layout Standard
13628 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13631 \begin_layout Standard
13651 \begin_layout Standard
13661 \begin_layout Standard
13662 As you can see, the content of the first and last table row is not correctly
13663 aligned with the text line where the table is in.
13664 To get this alignment, the minipage box must be set into a raisebox
13668 \begin_layout Standard
13669 Raiseboxes are described in section\InsetSpace ~
13671 \begin_inset LatexCommand ref
13672 reference "sub:Vertical-Alignment"
13682 In the example above the second table in the first item is aligned using
13683 the TeX-Code-command
13686 \begin_layout Standard
13696 \begin_layout Standard
13698 Behind the box the closing brace
13702 is inserted as TeX-Code.
13703 For the second table in the last item the command
13706 \begin_layout Standard
13716 \begin_layout Standard
13720 \begin_layout Standard
13721 \begin_inset Note Greyedout
13724 \begin_layout Standard
13729 The alignment of the table row content to the surrounding text line is
13731 The needed factor of the
13737 command for this alignment depends on the document font, the font size,
13738 and the table line thickness.
13746 \begin_layout Section
13748 \begin_inset LatexCommand label
13749 name "sec:Colored-Tables"
13754 \begin_inset LatexCommand index
13755 name "Table ! Color"
13762 \begin_layout Subsection
13764 \begin_inset LatexCommand index
13765 name "Table Color ! for Cells"
13770 \begin_inset LatexCommand index
13771 name "Color ! for Table Cells"
13778 \begin_layout Standard
13779 \begin_inset Float table
13785 \begin_layout Standard
13786 \begin_inset Caption
13788 \begin_layout Standard
13789 \begin_inset LatexCommand label
13790 name "tab:Table-colored-without"
13794 Table colored without using the package
13799 \begin_inset OptArg
13802 \begin_layout Standard
13803 Table without colortbl
13816 \begin_layout Standard
13818 \begin_inset Tabular
13819 <lyxtabular version="3" rows="3" columns="3">
13821 <column alignment="center" valignment="top" leftline="true" width="0">
13822 <column alignment="center" valignment="top" leftline="true" width="0">
13823 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13824 <row topline="true">
13825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13828 \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" rightline="true" usebox="none">
13850 \begin_layout Standard
13859 <row topline="true">
13860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13863 \begin_layout Standard
13871 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13874 \begin_layout Standard
13882 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13885 \begin_layout Standard
13894 <row topline="true" bottomline="true">
13895 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13898 \begin_layout Standard
13906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13909 \begin_layout Standard
13917 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13920 \begin_layout Standard
13941 \begin_layout Standard
13942 If you only need colored text, mark the cells and choose a color in the
13945 Edit\SpecialChar \menuseparator
13950 This was used to create Table\InsetSpace ~
13952 \begin_inset LatexCommand ref
13953 reference "tab:Table-colored-without"
13958 In any other case you have to use the LaTeX-package
13963 \begin_inset LatexCommand index
13964 name "LaTeX-packages ! colortbl"
13971 \begin_layout Standard
13975 \begin_layout Standard
13985 \begin_inset Note Note
13988 \begin_layout Standard
13989 The following section part will only be displayed when the LaTeX-package
14002 \begin_layout Standard
14003 To create colored tables,
14007 must be loaded in the preamble with the line
14010 \begin_layout Standard
14015 usepackage{colortbl}
14018 \begin_layout Standard
14019 The color of a column is adjusted with the command
14022 \begin_layout Standard
14027 columncolor{name of color}
14030 \begin_layout Standard
14036 More about the command
14040 is described in section\InsetSpace ~
14042 \begin_inset LatexCommand ref
14043 reference "sub:Multicolumn-Calculations"
14050 \begin_layout Standard
14051 The following color names are predefined:
14054 \begin_layout Standard
14088 \begin_layout Standard
14089 \begin_inset VSpace medskip
14095 \begin_layout Standard
14096 You can also define your own color with the command
14099 \begin_layout Standard
14104 def\SpecialChar \textcompwordmark{}
14105 inecolor{color name}{color model}{color values}
14108 \begin_layout Standard
14109 The color model can be
14112 \begin_layout Labeling
14113 \labelwidthstring 00.00.0000
14114 cmyk: cyan, magenta, yellow, black
14117 \begin_layout Labeling
14118 \labelwidthstring 00.00.0000
14119 rgb: red, green blue
14122 \begin_layout Labeling
14123 \labelwidthstring 00.00.0000
14127 \begin_layout Standard
14128 and the color values are comma separated numbers between 0 and 1 describing
14129 the factor for the corresponding color of the color model.
14132 \begin_layout Standard
14133 You can e.\InsetSpace \thinspace{}
14139 " in the preamble with
14142 \begin_layout Standard
14147 def\SpecialChar \textcompwordmark{}
14148 inecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
14151 \begin_layout Standard
14159 \begin_layout Standard
14164 def\SpecialChar \textcompwordmark{}
14165 inecolor{lightgray}{gray}{0.8}
14168 \begin_layout Standard
14169 \begin_inset VSpace medskip
14175 \begin_layout Standard
14176 Lines are colored with the command
14179 \begin_layout Standard
14184 rowcolor{name of color}
14187 \begin_layout Standard
14188 and cells are colored with the command
14191 \begin_layout Standard
14196 cellcolor{name of color}
14199 \begin_layout Standard
14200 Both commands are inserted at the beginning of a cell as TeX-Code.
14203 \begin_layout Standard
14204 To color characters in the table, mark the cells and use the LyX menu
14206 Edit\SpecialChar \menuseparator
14211 If a cell contains TeX-Code mark only the characters, otherwise the colored
14212 TeX-Code will cause LaTeX-errors.
14215 \begin_layout Standard
14216 \begin_inset Note Greyedout
14219 \begin_layout Standard
14224 Not all DVI-viewers are able to display self-defined colors.
14232 \begin_layout Standard
14233 \begin_inset VSpace bigskip
14239 \begin_layout Standard
14240 To create Table\InsetSpace ~
14242 \begin_inset LatexCommand ref
14243 reference "tab:Table-colored-using"
14247 do the following: The color of the first column should be
14255 \begin_layout Standard
14260 columncolor{darkgreen}
14265 \begin_layout Standard
14266 as LaTeX-argument for this column.
14267 The first row should be blue, therefore the TeX-Code command
14270 \begin_layout Standard
14278 \begin_layout Standard
14279 is inserted to the first cell of this row.
14280 Note that this overwrites the column color for the first cell.
14281 The last cell of the last row is colored magenta by inserting the TeX-Code
14285 \begin_layout Standard
14293 \begin_layout Standard
14294 The characters could now be colored using the menu
14296 Edit\SpecialChar \menuseparator
14303 \begin_layout Standard
14304 \begin_inset Float table
14310 \begin_layout Standard
14311 \begin_inset Caption
14313 \begin_layout Standard
14314 \begin_inset LatexCommand label
14315 name "tab:Table-colored-using"
14319 Table colored using the package
14324 \begin_inset OptArg
14327 \begin_layout Standard
14328 Table with colortbl
14341 \begin_layout Standard
14343 \begin_inset Tabular
14344 <lyxtabular version="3" rows="3" columns="3">
14346 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
14347 <column alignment="center" valignment="top" width="0">
14348 <column alignment="center" valignment="top" width="0">
14350 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14353 \begin_layout Standard
14357 \begin_layout Standard
14373 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14376 \begin_layout Standard
14384 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14387 \begin_layout Standard
14397 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14400 \begin_layout Standard
14408 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14411 \begin_layout Standard
14419 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14422 \begin_layout Standard
14432 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14435 \begin_layout Standard
14443 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14446 \begin_layout Standard
14454 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14457 \begin_layout Standard
14461 \begin_layout Standard
14490 \begin_layout Standard
14494 \begin_layout Standard
14504 \begin_inset Note Note
14507 \begin_layout Standard
14508 The following will be displayed when the LaTeX-package
14520 \begin_layout Standard
14521 You need to install the package
14525 to see the content of this section in the output.
14528 \begin_layout Standard
14532 \begin_layout Standard
14544 \begin_layout Subsection
14546 \begin_inset LatexCommand index
14547 name "Table Color ! for Lines"
14552 \begin_inset LatexCommand index
14553 name "Color ! for Table Lines"
14560 \begin_layout Standard
14561 As described in section\InsetSpace ~
14563 \begin_inset LatexCommand ref
14564 reference "sub:Line-Thickness"
14568 , the line thickness for all lines in a table can be adjusted with the length
14576 It is set to 1.5\InsetSpace \thinspace{}
14577 pt for all tables of this section.
14581 \begin_layout Standard
14587 arrayrulewidth}{1.5pt}
14595 \begin_layout Standard
14596 To color vertical lines for example with green, create the following column
14597 format in the document preamble, according to the description in section\InsetSpace ~
14599 \begin_inset LatexCommand ref
14600 reference "sub:Customized-Format"
14607 \begin_layout Standard
14612 newcolumntype{W}{!{
14619 \begin_layout Standard
14620 For Table\InsetSpace ~
14622 \begin_inset LatexCommand ref
14623 reference "tab:Table-with-vertical-colored"
14631 was used for the last column and
14635 for the other columns.
14638 \begin_layout Standard
14639 If you want to have several colors, define more column formats.
14642 \begin_layout Standard
14643 \begin_inset Float table
14648 \begin_layout Standard
14649 \begin_inset Caption
14651 \begin_layout Standard
14652 \begin_inset LatexCommand label
14653 name "tab:Table-with-vertical-colored"
14657 Table with colored vertical lines
14665 \begin_layout Standard
14667 \begin_inset Tabular
14668 <lyxtabular version="3" rows="3" columns="3">
14670 <column alignment="center" valignment="top" width="0" special="Wc">
14671 <column alignment="center" valignment="top" width="0" special="Wc">
14672 <column alignment="center" valignment="top" width="0" special="WcW">
14673 <row topline="true">
14674 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14677 \begin_layout Standard
14683 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14686 \begin_layout Standard
14692 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14695 \begin_layout Standard
14702 <row topline="true">
14703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14706 \begin_layout Standard
14712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14715 \begin_layout Standard
14721 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14724 \begin_layout Standard
14731 <row topline="true" bottomline="true">
14732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14735 \begin_layout Standard
14741 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14744 \begin_layout Standard
14750 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14753 \begin_layout Standard
14772 \begin_layout Standard
14773 \begin_inset VSpace bigskip
14776 To color horizontal lines for example with red, like in Table\InsetSpace ~
14778 \begin_inset LatexCommand ref
14779 reference "tab:Table-with-horizontal-colored"
14783 , insert these commands in TeX-Code before the table or table float:
14786 \begin_layout Standard
14807 \begin_layout Standard
14818 arrayrulecolor{red}
14822 arrayrulecolor{black}}
14825 \begin_layout Standard
14829 \begin_layout Standard
14840 \begin_layout Standard
14849 \begin_layout Standard
14853 arrayrulecolor{red}
14857 arrayrulecolor{black}}
14863 \begin_inset Float table
14868 \begin_layout Standard
14869 \begin_inset Caption
14871 \begin_layout Standard
14872 \begin_inset LatexCommand label
14873 name "tab:Table-with-horizontal-colored"
14877 Table with colored horizontal lines
14885 \begin_layout Standard
14887 \begin_inset Tabular
14888 <lyxtabular version="3" rows="3" columns="3">
14890 <column alignment="center" valignment="top" leftline="true" width="0">
14891 <column alignment="center" valignment="top" leftline="true" width="0">
14892 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14893 <row topline="true">
14894 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14897 \begin_layout Standard
14903 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14906 \begin_layout Standard
14912 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14915 \begin_layout Standard
14922 <row topline="true">
14923 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14926 \begin_layout Standard
14932 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14935 \begin_layout Standard
14941 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14944 \begin_layout Standard
14951 <row topline="true" bottomline="true">
14952 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14955 \begin_layout Standard
14961 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14964 \begin_layout Standard
14970 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14973 \begin_layout Standard
14992 \begin_layout Standard
14996 \begin_layout Standard
15008 \begin_layout Standard
15009 To return to the default line color black, insert this command in TeX-Code
15010 behind the table or table float:
15013 \begin_layout Standard
15025 \begin_layout Standard
15028 \begin_inset LatexCommand ref
15029 reference "tab:Table-with-colored"
15033 is an example with colored vertical and horizontal lines.
15036 \begin_layout Standard
15037 \begin_inset Float table
15043 \begin_layout Standard
15044 \begin_inset Caption
15046 \begin_layout Standard
15047 \begin_inset LatexCommand label
15048 name "tab:Table-with-colored"
15052 Table with colored lines
15060 \begin_layout Standard
15062 \begin_inset Tabular
15063 <lyxtabular version="3" rows="3" columns="3">
15065 <column alignment="center" valignment="top" width="0" special="Wc">
15066 <column alignment="center" valignment="top" width="0" special="Wc">
15067 <column alignment="center" valignment="top" width="0" special="WcW">
15068 <row topline="true">
15069 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15072 \begin_layout Standard
15078 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15081 \begin_layout Standard
15087 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15090 \begin_layout Standard
15097 <row topline="true">
15098 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15101 \begin_layout Standard
15107 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15110 \begin_layout Standard
15116 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15119 \begin_layout Standard
15126 <row topline="true" bottomline="true" topspace="default">
15127 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15130 \begin_layout Standard
15136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15139 \begin_layout Standard
15145 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15148 \begin_layout Standard
15167 \begin_layout Standard
15171 \begin_layout Standard
15187 \begin_layout Standard
15191 \begin_layout Standard
15197 arrayrulewidth}{0.4pt}
15205 \begin_layout Section
15206 Table Customization
15207 \begin_inset LatexCommand index
15208 name "Table Customization"
15213 \begin_inset LatexCommand index
15214 name "Table ! Customization"
15221 \begin_layout Subsection
15223 \begin_inset LatexCommand label
15224 name "sub:Row-Spacing"
15229 \begin_inset LatexCommand index
15230 name "Table Customization ! Row Spacing"
15237 \begin_layout Standard
15238 You can add vertical space to table rows in the
15242 tab of the table dialog.
15243 You find there three possibilities:
15246 \begin_layout Description
15249 row will add space above the characters of the table row.
15250 If the table is a formal table
15254 \begin_layout Standard
15255 Formal tables are explained in section\InsetSpace ~
15257 \begin_inset LatexCommand ref
15258 reference "sec:Formal-Tables"
15267 LyX will insert as default 0.5\InsetSpace \thinspace{}
15269 For normal tables the inserted space will unfortunately destroy the vertical
15270 table lines as in the following table:
15271 \begin_inset VSpace medskip
15280 \begin_layout Standard
15292 \begin_inset Tabular
15293 <lyxtabular version="3" rows="3" columns="1">
15295 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
15296 <row topline="true">
15297 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15300 \begin_layout Standard
15307 <row topline="true" topspace="3mm">
15308 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15311 \begin_layout Standard
15312 3\InsetSpace \thinspace{}
15313 mm space top of row
15319 <row topline="true" bottomline="true">
15320 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15323 \begin_layout Standard
15340 \begin_layout Standard
15350 \begin_inset VSpace medskip
15355 So inserting space to the top of row for normal tables is only useful when
15356 you don't have vertical lines.
15359 \begin_layout Description
15360 Bottom\InsetSpace ~
15362 row will add space below the characters of the table row.
15363 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
15365 normal tables the default size is 2\InsetSpace \thinspace{}
15369 \begin_layout Description
15370 Between\InsetSpace ~
15371 rows adds space between the current and the following row.
15372 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
15374 For normal tables the inserted space will unfortunately destroy the vertical
15375 table lines as in the following table:
15376 \begin_inset VSpace medskip
15385 \begin_layout Standard
15397 \begin_inset Tabular
15398 <lyxtabular version="3" rows="3" columns="1">
15400 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
15401 <row topline="true">
15402 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15405 \begin_layout Standard
15412 <row topline="true" interlinespace="3mm">
15413 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15416 \begin_layout Standard
15417 \begin_inset Formula $\downarrow$
15420 3\InsetSpace \thinspace{}
15421 mm space between row
15422 \begin_inset Formula $\downarrow$
15431 <row topline="true" bottomline="true">
15432 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15435 \begin_layout Standard
15436 \begin_inset Formula $\uparrow$
15439 3\InsetSpace \thinspace{}
15440 mm space between row
15441 \begin_inset Formula $\uparrow$
15460 \begin_layout Standard
15470 \begin_inset VSpace medskip
15475 So inserting space between rows for normal tables is only useful when you
15476 don't have vertical lines.
15479 \begin_layout Standard
15480 \begin_inset VSpace bigskip
15483 When you want to add extra height to all cells of all tables, you can do
15484 this with the following preamble lines:
15487 \begin_layout Standard
15492 @ifundef\SpecialChar \textcompwordmark{}
15493 ined{extrarowheight}
15499 \begin_layout Standard
15510 usepackage{array}}{}
15516 extrarowheight}{height}
15519 \begin_layout Standard
15520 But this has the disadvantage that the cell texts are no longer exactly
15521 vertically centered.
15526 will be loaded automatically by LyX when you use self defined table formats.
15527 To avoid that it is loaded twice the command
15531 @ifundef\SpecialChar \textcompwordmark{}
15534 is used in the above command.)
15537 \begin_layout Subsection
15538 Special Cell Alignment
15539 \begin_inset LatexCommand index
15540 name "Table Customization ! Special Cell Alignment"
15547 \begin_layout Standard
15548 Sometimes it looks better when the cell entries of a column are aligned
15549 with a special character, e.\InsetSpace \thinspace{}
15551 with the decimal separator as in Table\InsetSpace ~
15553 \begin_inset LatexCommand ref
15554 reference "tab:Table-cells-of"
15561 \begin_layout Standard
15562 \begin_inset Float table
15568 \begin_layout Standard
15569 \begin_inset Caption
15571 \begin_layout Standard
15572 \begin_inset LatexCommand label
15573 name "tab:Table-cells-of"
15577 Table cells of a column aligned with the decimal separator.
15585 \begin_layout Standard
15587 \begin_inset Tabular
15588 <lyxtabular version="3" rows="4" columns="2">
15590 <column alignment="right" valignment="top" width="0">
15591 <column alignment="left" valignment="top" width="0" special="@{}l">
15592 <row bottomline="true">
15593 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15596 \begin_layout Standard
15602 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15605 \begin_layout Standard
15613 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15616 \begin_layout Standard
15622 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15625 \begin_layout Standard
15633 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15636 \begin_layout Standard
15642 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15645 \begin_layout Standard
15653 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15656 \begin_layout Standard
15662 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15665 \begin_layout Standard
15684 \begin_layout Standard
15685 This table was created with a 4×2 table.
15686 The heading is a centered multicolumn.
15687 The first column is right-aligned and contains the digits before the decimal
15688 point and the decimal point.
15689 The second column is left aligned and contains the digits after the decimal
15691 To omit the space that is normally between two table columns, use the following
15692 LaTeX-argument for the second column:
15695 \begin_layout Standard
15701 \begin_layout Standard
15704 \begin_inset LatexCommand ref
15705 reference "tab:Several-table-cell"
15709 shows some example alignments.
15710 For the alignment with the relation sign, you must add the second smallest
15711 math-space at the beginning of the last column to get the correct space
15712 surrounding the relation sign.
15715 \begin_layout Standard
15716 \begin_inset Float table
15721 \begin_layout Standard
15722 \begin_inset Caption
15724 \begin_layout Standard
15725 \begin_inset LatexCommand label
15726 name "tab:Several-table-cell"
15730 Several table cell alignments.
15738 \begin_layout Standard
15740 \begin_inset Tabular
15741 <lyxtabular version="3" rows="4" columns="6">
15743 <column alignment="right" valignment="top" width="0">
15744 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15745 <column alignment="right" valignment="top" width="0">
15746 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15747 <column alignment="right" valignment="top" width="0">
15748 <column alignment="left" valignment="top" width="0" special="@{}l">
15749 <row bottomline="true">
15750 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15753 \begin_layout Standard
15759 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15762 \begin_layout Standard
15768 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15771 \begin_layout Standard
15777 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15780 \begin_layout Standard
15786 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15789 \begin_layout Standard
15795 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15798 \begin_layout Standard
15806 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15809 \begin_layout Standard
15815 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15818 \begin_layout Standard
15819 24\InsetSpace \thinspace{}
15825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15828 \begin_layout Standard
15829 \begin_inset Formula $10\cdot$
15837 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15840 \begin_layout Standard
15841 \begin_inset Formula $10^{\mbox{-}17}$
15849 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15852 \begin_layout Standard
15853 \begin_inset Formula $\Gamma(t)\propto$
15861 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15864 \begin_layout Standard
15865 \begin_inset Formula $\:\Upsilon(t)$
15875 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15878 \begin_layout Standard
15884 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15887 \begin_layout Standard
15888 768\InsetSpace \thinspace{}
15894 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15897 \begin_layout Standard
15898 \begin_inset Formula $5.78\cdot$
15906 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15909 \begin_layout Standard
15910 \begin_inset Formula $10^{7}$
15918 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15921 \begin_layout Standard
15922 \begin_inset Formula $A\ne$
15930 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15933 \begin_layout Standard
15934 \begin_inset Formula $\: B_{\mathrm{red}}$
15944 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15947 \begin_layout Standard
15953 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15956 \begin_layout Standard
15957 6\InsetSpace \thinspace{}
15963 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15966 \begin_layout Standard
15968 \begin_inset Formula $33.5\cdot$
15976 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15979 \begin_layout Standard
15980 \begin_inset Formula $10^{4}$
15988 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15991 \begin_layout Standard
15992 \begin_inset Formula $\sin(\alpha)\ge$
16000 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16003 \begin_layout Standard
16004 \begin_inset Formula $\:\sin(\beta)$
16025 \begin_layout Standard
16026 \begin_inset VSpace bigskip
16029 There is also the LaTeX-package
16034 \begin_inset LatexCommand index
16035 name "LaTeX-packages ! dcolumn"
16039 that provides table cell alignments.
16040 But this unfortunately treats the cell entries as math and doesn't allow
16041 formulas in table cells: The first column of Table\InsetSpace ~
16043 \begin_inset LatexCommand ref
16044 reference "tab:Several-table-cell"
16052 like the first column in Table\InsetSpace ~
16054 \begin_inset LatexCommand ref
16055 reference "tab:Alignments-when"
16059 and only with some tricks like the expected.
16060 The alignment of the second and third column of Table\InsetSpace ~
16062 \begin_inset LatexCommand ref
16063 reference "tab:Several-table-cell"
16067 is not possible with
16074 \begin_layout Standard
16075 \begin_inset Float table
16081 \begin_layout Standard
16082 \begin_inset Caption
16084 \begin_layout Standard
16085 \begin_inset LatexCommand label
16086 name "tab:Alignments-when"
16090 Alignments when LaTeX-package dcolumn is used.
16091 For all column alignments tricks have to be used to get the output.
16099 \begin_layout Standard
16101 \begin_inset Tabular
16102 <lyxtabular version="3" rows="4" columns="3">
16104 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{-1}">
16105 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{4.9}">
16106 <column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
16107 <row bottomline="true">
16108 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16111 \begin_layout Standard
16117 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16120 \begin_layout Standard
16126 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16129 \begin_layout Standard
16137 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16140 \begin_layout Standard
16141 12x24\InsetSpace \thinspace{}
16147 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16150 \begin_layout Standard
16151 12x24\InsetSpace \thinspace{}
16153 \begin_inset Formula $\mbox{bottles}$
16161 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16164 \begin_layout Standard
16169 \begin_layout Standard
16179 \begin_inset Formula $\mbox{bottles}$
16189 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16192 \begin_layout Standard
16193 1024x768\InsetSpace \thinspace{}
16199 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16202 \begin_layout Standard
16203 1024x768\InsetSpace \thinspace{}
16205 \begin_inset Formula $\mbox{Pixels}$
16213 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16216 \begin_layout Standard
16221 \begin_layout Standard
16231 \begin_inset Formula $\mbox{Pixels}$
16241 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16244 \begin_layout Standard
16245 32x6\InsetSpace \thinspace{}
16251 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16254 \begin_layout Standard
16255 32x6\InsetSpace \thinspace{}
16257 \begin_inset Formula $\mbox{cm}$
16265 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16268 \begin_layout Standard
16273 \begin_layout Standard
16283 \begin_inset Formula $\mbox{cm}$
16304 \begin_layout Subsection
16305 Customized Cell/Column Format
16306 \begin_inset LatexCommand label
16307 name "sub:Customized-Format"
16312 \begin_inset LatexCommand index
16313 name "Table Customization ! Cell/Column Format"
16320 \begin_layout Standard
16321 Calculating the needed width for spanned columns like in section\InsetSpace ~
16323 \begin_inset LatexCommand ref
16324 reference "sub:Multicolumn-Calculations"
16328 is very annoying if you have several tables with multicolumn cells.
16329 To make life easier, you can define a cell/column format in the preamble,
16330 so that it can be used in all tables of the document.
16331 The format is defined with the command
16334 \begin_layout Standard
16339 newcolumntype{name of format}[number of arguments]{commands}
16342 \begin_layout Standard
16343 The format name may only consist of one letter.
16368 are predefined and cannot be used.
16369 But all letters are allowed as capitals.
16372 \begin_layout Standard
16373 \begin_inset VSpace medskip
16379 \begin_layout Standard
16380 For vertically and horizontally centered multicolumn cells with a fixed
16381 width you can define the cell format
16384 \begin_layout Standard
16389 newcolumntype{M}[1]{>{
16396 \begin_layout Standard
16403 avoids the problem of hyphenating the first word, as described in section\InsetSpace ~
16405 \begin_inset LatexCommand ref
16406 reference "sub:Multiple-Lines-in"
16411 Now you can simply enter
16414 \begin_layout Standard
16420 \begin_layout Standard
16421 as LaTeX-argument in the table dialog to create a multicolumn.
16424 \begin_layout Standard
16425 \begin_inset VSpace bigskip
16431 \begin_layout Standard
16432 For cells spanned by a multicolumn cell, you can define the format
16435 \begin_layout Standard
16440 newcolumntype{S}[2]{>{
16450 \begin_layout Standard
16465 \begin_layout Standard
16476 arrayrulewidth)*(1-#2))/#2}}
16479 \begin_layout Standard
16480 This format uses equation
16481 \begin_inset LatexCommand eqref
16486 to calculate the needed width so that each spanned cell has the same width.
16489 \begin_layout Standard
16493 \begin_layout Standard
16496 S{width of multicolumn cell}{number of spanned columns}
16499 \begin_layout Standard
16500 as LaTeX-argument of the column.
16503 \begin_layout Standard
16504 \begin_inset VSpace bigskip
16510 \begin_layout Standard
16511 For colored columns, you can define
16514 \begin_layout Standard
16519 newcolumntype{K}[1]{>{
16526 \begin_layout Standard
16528 \begin_inset Quotes eld
16532 \begin_inset Quotes erd
16535 at the end creates a column with a flexible width whose text is horizontally
16540 \begin_layout Standard
16546 \begin_layout Standard
16550 \begin_layout Standard
16551 \begin_inset VSpace bigskip
16557 \begin_layout Standard
16558 To create Table\InsetSpace ~
16560 \begin_inset LatexCommand ref
16561 reference "tab:Table-using-user-defined"
16565 use the LaTeX-arguments
16568 \begin_layout Standard
16574 \begin_layout Standard
16575 for the first column and the multicolumn,
16578 \begin_layout Standard
16584 \begin_layout Standard
16585 for the the last column, and
16588 \begin_layout Standard
16594 \begin_layout Standard
16595 for the cells in the second column.
16598 \begin_layout Standard
16599 \begin_inset Float table
16605 \begin_layout Standard
16606 \begin_inset Caption
16608 \begin_layout Standard
16609 \begin_inset LatexCommand label
16610 name "tab:Table-using-user-defined"
16614 Table using user-defined table formats
16622 \begin_layout Standard
16624 \begin_inset Tabular
16625 <lyxtabular version="3" rows="3" columns="4">
16627 <column alignment="center" valignment="middle" leftline="true" width="2.5cm" special="M{2.5cm}">
16628 <column alignment="center" valignment="middle" leftline="true" width="0" special="S{2.5cm}{2}">
16629 <column alignment="center" valignment="middle" leftline="true" width="0">
16630 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0" special="K{red}">
16631 <row topline="true">
16632 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16635 \begin_layout Standard
16636 verylongtablecellword
16641 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none" special="M{2.5cm}">
16644 \begin_layout Standard
16645 multiple lines multicolumn
16650 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16653 \begin_layout Standard
16659 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16662 \begin_layout Standard
16669 <row topline="true">
16670 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16673 \begin_layout Standard
16679 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16682 \begin_layout Standard
16688 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16691 \begin_layout Standard
16697 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16700 \begin_layout Standard
16707 <row topline="true" bottomline="true">
16708 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16711 \begin_layout Standard
16717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16720 \begin_layout Standard
16726 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16729 \begin_layout Standard
16735 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16738 \begin_layout Standard
16757 \begin_layout Subsection
16759 \begin_inset LatexCommand label
16760 name "sub:Line-Thickness"
16765 \begin_inset LatexCommand index
16766 name "Table Customization ! Line Thickness"
16773 \begin_layout Standard
16774 The line thickness for all lines in a table can be adjusted with the length
16782 To set for example a line thickness of 1.5\InsetSpace \thinspace{}
16783 pt, like in Table\InsetSpace ~
16785 \begin_inset LatexCommand ref
16786 reference "tab:Table-with-1.5"
16790 , insert the command
16793 \begin_layout Standard
16800 arrayrulewidth}{1.5pt}
16803 \begin_layout Standard
16804 in TeX-Code before the table or table float.
16805 The changed thickness is valid for all following tables.
16806 To use the default value again, set
16812 to 0.4\InsetSpace \thinspace{}
16813 pt in TeX-Code behind the table or table float.
16816 \begin_layout Standard
16820 \begin_layout Standard
16826 arrayrulewidth}{1.5pt}
16832 \begin_inset Float table
16837 \begin_layout Standard
16838 \begin_inset Caption
16840 \begin_layout Standard
16841 \begin_inset LatexCommand label
16842 name "tab:Table-with-1.5"
16846 Table with 1.5\InsetSpace \thinspace{}
16855 \begin_layout Standard
16857 \begin_inset Tabular
16858 <lyxtabular version="3" rows="3" columns="3">
16860 <column alignment="center" valignment="top" leftline="true" width="0">
16861 <column alignment="center" valignment="top" leftline="true" width="0">
16862 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16863 <row topline="true">
16864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16867 \begin_layout Standard
16873 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16876 \begin_layout Standard
16882 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16885 \begin_layout Standard
16892 <row topline="true">
16893 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16896 \begin_layout Standard
16902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16905 \begin_layout Standard
16911 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16914 \begin_layout Standard
16921 <row topline="true" bottomline="true">
16922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16925 \begin_layout Standard
16931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16934 \begin_layout Standard
16940 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16943 \begin_layout Standard
16963 \begin_layout Standard
16969 arrayrulewidth}{0.4pt}
16977 \begin_layout Standard
16978 \begin_inset VSpace bigskip
16981 To set the line thickness to 1.5\InsetSpace \thinspace{}
16982 pt only for horizontal lines, like in Table\InsetSpace ~
16984 \begin_inset LatexCommand ref
16985 reference "tab:Table-with-horizontal"
16989 , insert these commands in TeX-Code before the table or table float:
16992 \begin_layout Standard
17015 arrayrulewidth 1.5pt}
17025 arrayrulewidth 0.4pt}}
17028 \begin_layout Standard
17029 To return to the default line thickness, insert this command in TeX-Code
17030 behind the table or table float:
17033 \begin_layout Standard
17045 \begin_layout Standard
17049 \begin_layout Standard
17060 \begin_layout Standard
17069 \begin_layout Standard
17077 arrayrulewidth 1.5pt}
17080 \begin_layout Standard
17090 arrayrulewidth 0.4pt}}
17096 \begin_inset Float table
17101 \begin_layout Standard
17102 \begin_inset Caption
17104 \begin_layout Standard
17105 \begin_inset LatexCommand label
17106 name "tab:Table-with-horizontal"
17110 Table with 1.5\InsetSpace \thinspace{}
17111 pt thick horizontal lines
17119 \begin_layout Standard
17121 \begin_inset Tabular
17122 <lyxtabular version="3" rows="3" columns="3">
17124 <column alignment="center" valignment="top" leftline="true" width="0">
17125 <column alignment="center" valignment="top" leftline="true" width="0">
17126 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
17127 <row topline="true">
17128 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17131 \begin_layout Standard
17137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17140 \begin_layout Standard
17146 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17149 \begin_layout Standard
17156 <row topline="true">
17157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17160 \begin_layout Standard
17166 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17169 \begin_layout Standard
17175 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17178 \begin_layout Standard
17185 <row topline="true" bottomline="true">
17186 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17189 \begin_layout Standard
17195 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17198 \begin_layout Standard
17204 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17207 \begin_layout Standard
17227 \begin_layout Standard
17243 \begin_layout Standard
17244 \begin_inset VSpace bigskip
17247 To set the line thickness to 1.5\InsetSpace \thinspace{}
17248 pt only for vertical lines, create the following
17249 column format in the document preamble, according to the description in
17250 section\InsetSpace ~
17252 \begin_inset LatexCommand ref
17253 reference "sub:Customized-Format"
17260 \begin_layout Standard
17265 newcolumntype{V}{!{
17267 vrule width 1.5pt}}
17270 \begin_layout Standard
17271 For Table\InsetSpace ~
17273 \begin_inset LatexCommand ref
17274 reference "tab:Table-with-vertical"
17281 \begin_layout Standard
17287 \begin_layout Standard
17288 was used for the last column and
17291 \begin_layout Standard
17297 \begin_layout Standard
17298 for the other columns.
17301 \begin_layout Standard
17302 \begin_inset Float table
17307 \begin_layout Standard
17308 \begin_inset Caption
17310 \begin_layout Standard
17311 \begin_inset LatexCommand label
17312 name "tab:Table-with-vertical"
17316 Table with 1.5\InsetSpace \thinspace{}
17317 pt thick vertical lines
17325 \begin_layout Standard
17327 \begin_inset Tabular
17328 <lyxtabular version="3" rows="3" columns="3">
17330 <column alignment="center" valignment="top" width="0" special="Vc">
17331 <column alignment="center" valignment="top" width="0" special="Vc">
17332 <column alignment="center" valignment="top" width="0" special="VcV">
17333 <row topline="true">
17334 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17337 \begin_layout Standard
17343 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17346 \begin_layout Standard
17352 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17355 \begin_layout Standard
17362 <row topline="true">
17363 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17366 \begin_layout Standard
17372 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17375 \begin_layout Standard
17381 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17384 \begin_layout Standard
17391 <row topline="true" bottomline="true">
17392 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17395 \begin_layout Standard
17401 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17404 \begin_layout Standard
17410 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17413 \begin_layout Standard
17432 \begin_layout Subsection
17434 \begin_inset LatexCommand index
17435 name "Table Customization ! Dashed Lines"
17442 \begin_layout Standard
17446 \begin_layout Standard
17456 \begin_inset Note Note
17459 \begin_layout Standard
17460 The following section will only be displayed when the LaTeX-package
17472 \begin_layout Standard
17473 \begin_inset Float table
17479 \begin_layout Standard
17480 \begin_inset Caption
17482 \begin_layout Standard
17483 \begin_inset LatexCommand label
17484 name "tab:Table-with-dashed"
17488 Table with dashed lines
17496 \begin_layout Standard
17498 \begin_inset Tabular
17499 <lyxtabular version="3" rows="5" columns="5">
17501 <column alignment="center" valignment="top" leftline="true" width="0">
17502 <column alignment="center" valignment="top" leftline="true" width="0">
17503 <column alignment="center" valignment="top" width="0" special=":c">
17504 <column alignment="center" valignment="top" leftline="true" width="0">
17505 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
17506 <row topline="true" bottomline="true">
17507 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17510 \begin_layout Standard
17516 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17519 \begin_layout Standard
17525 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17528 \begin_layout Standard
17534 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17537 \begin_layout Standard
17543 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17546 \begin_layout Standard
17553 <row topline="true">
17554 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17557 \begin_layout Standard
17563 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17566 \begin_layout Standard
17572 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17575 \begin_layout Standard
17581 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17584 \begin_layout Standard
17590 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17593 \begin_layout Standard
17601 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17604 \begin_layout Standard
17608 \begin_layout Standard
17622 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17625 \begin_layout Standard
17631 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17634 \begin_layout Standard
17640 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17643 \begin_layout Standard
17649 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17652 \begin_layout Standard
17659 <row topline="true">
17660 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17663 \begin_layout Standard
17667 \begin_layout Standard
17681 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17684 \begin_layout Standard
17690 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="c:">
17693 \begin_layout Standard
17699 <cell multicolumn="1" alignment="center" valignment="top" rightline="true" usebox="none" special="c:">
17702 \begin_layout Standard
17708 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17711 \begin_layout Standard
17718 <row topline="true" bottomline="true">
17719 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17722 \begin_layout Standard
17728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17731 \begin_layout Standard
17737 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17740 \begin_layout Standard
17746 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17749 \begin_layout Standard
17755 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17758 \begin_layout Standard
17777 \begin_layout Standard
17778 LyX doesn't natively support dashed lines, so you have to use TeX-Code.
17779 As prerequisite the LaTeX-package
17784 \begin_inset LatexCommand index
17785 name "LaTeX-packages ! arydshln"
17789 must be loaded in the document preamble with the command
17792 \begin_layout Standard
17797 usepackage{arydshln}
17800 \begin_layout Standard
17801 To make a vertical line dashed, enter the colon
17802 \begin_inset Quotes eld
17806 \begin_inset Quotes erd
17809 together with the character for the horizontal alignment as LaTeX-argument
17810 in the table cell dialog.
17813 \begin_layout Standard
17814 For a horizontal dashed line add the command
17817 \begin_layout Standard
17825 \begin_layout Standard
17826 in TeX-Code as first element of the first cell in the table row.
17829 \begin_layout Standard
17830 For dashed multicolumn lines use the command
17833 \begin_layout Standard
17838 cdashline{line number
17843 \begin_layout Standard
17844 in TeX-Code as first element of the first cell in the table row.
17845 If you have for example a multicolumn spanning over columns 2 to 4 and
17846 you want to have a dashed line above, add the command
17849 \begin_layout Standard
17857 \begin_layout Standard
17858 as first element of the first cell in the row of the multicolumn.
17861 \begin_layout Standard
17862 \begin_inset VSpace bigskip
17868 \begin_layout Standard
17871 \begin_inset LatexCommand ref
17872 reference "tab:Table-with-dashed"
17877 \begin_inset Quotes eld
17885 \begin_inset Quotes erd
17888 as LaTeX-argument of the third column.
17889 The TeX-Code command
17895 was inserted to the first cell of the third row and the the TeX-Code command
17904 was inserted to the first cell of the fourth row.
17907 \begin_layout Standard
17908 \begin_inset Note Greyedout
17911 \begin_layout Standard
17916 The used LaTeX-package
17920 is apparently not compatible with the LaTeX-package
17925 \begin_inset LatexCommand index
17926 name "LaTeX-packages ! colortbl"
17930 that is used for colored tables in section\InsetSpace ~
17932 \begin_inset LatexCommand ref
17933 reference "sec:Colored-Tables"
17938 That means colored tables cannot have dashed lines.
17946 \begin_layout Standard
17950 \begin_layout Standard
17960 \begin_inset Note Note
17963 \begin_layout Standard
17964 The following will be displayed when the LaTeX-package
17976 \begin_layout Standard
17977 You need to install the package
17981 to see the content of this section in the output.
17984 \begin_layout Standard
17988 \begin_layout Standard
18000 \begin_layout Chapter
18002 \begin_inset LatexCommand index
18008 \begin_inset LatexCommand label
18016 \begin_layout Section
18018 \begin_inset LatexCommand label
18019 name "sec:FloatIntroduction"
18024 \begin_inset LatexCommand index
18025 name "Floats ! Introduction"
18032 \begin_layout Standard
18033 A float is a block of text associated with some sort of label, which doesn't
18034 have a fixed location.
18036 \begin_inset Quotes eld
18040 \begin_inset Quotes erd
18043 forward or backward a page or two, to wherever it fits best.
18050 Margin\InsetSpace ~
18053 are also floats, because they can float to the next page when there are
18054 too many notes at the page.
18057 \begin_layout Standard
18058 Floats allow a high quality layout.
18059 Images and tables can evenly be spread to the pages to avoid white space
18060 and pages without text.
18061 As the floating often destroys the context between the text and the image/table
18062 , every float can be referenced in the text.
18063 Floats are therefore numbered.
18064 Referencing is described in section\InsetSpace ~
18066 \begin_inset LatexCommand ref
18067 reference "sec:Referencing-Floats"
18074 \begin_layout Standard
18075 To insert a float, use the menu
18077 Insert\SpecialChar \menuseparator
18085 inset, a box with a label.
18086 The label will automatically be translated to the document language in
18088 Behind the label you can insert the caption text.
18089 The image or table is inserted above or below the caption in a separate
18090 paragraph within the float.
18091 More about the caption placement is described in section\InsetSpace ~
18093 \begin_inset LatexCommand ref
18094 reference "sec:Caption-Placement"
18099 To keep your LyX-document readable, you can open and close the float box
18100 by left-clicking on the box label.
18101 A closed float box looks like this:
18102 \begin_inset Graphics
18103 filename clipart/floatQt4.png
18105 scaleBeforeRotation
18109 -- a gray button with a red label.
18112 \begin_layout Standard
18113 It is recommended to insert floats as a separate paragraph to avoid possible
18114 LaTeX-errors that can occur when the surrounding text is specially formatted.
18117 \begin_layout Standard
18118 Existing figures or tables can be put into a float by marking them and then
18119 pressing the corresponding toolbar button for a new float.
18122 \begin_layout Section
18126 \begin_layout Standard
18127 Besides figure and table floats that are described in section\InsetSpace ~
18129 \begin_inset LatexCommand ref
18130 reference "sec:Figure-Floats"
18135 \begin_inset LatexCommand ref
18136 reference "sec:Table-Floats"
18140 , respectively, LyX offers the float types
18153 \begin_layout Subsection
18155 \begin_inset LatexCommand index
18156 name "Floats ! Algorithms"
18161 \begin_inset LatexCommand label
18162 name "sub:Algorithm-Floats"
18169 \begin_layout Standard
18170 \begin_inset Float algorithm
18176 \begin_layout Standard
18177 \begin_inset Caption
18179 \begin_layout Standard
18180 \begin_inset LatexCommand label
18181 name "alg:Example-Algorithm-float"
18185 Example Algorithm float
18193 \begin_layout LyX-Code
18196 Sum:= Sum + A(I); /*comment*/
18199 \begin_inset VSpace -4mm
18210 \begin_layout Standard
18211 This float type is inserted with the menu
18213 Insert\SpecialChar \menuseparator
18214 Floats\SpecialChar \menuseparator
18218 It is used for program codes and descriptions of algorithms.
18219 A possible environment for algorithms is the
18223 , described in LyX's
18228 Algorithm\InsetSpace ~
18230 \begin_inset LatexCommand ref
18231 reference "alg:Example-Algorithm-float"
18235 is an example of an algorithm float where -4\InsetSpace \thinspace{}
18236 mm vertical space was added
18237 at the end of the float to have the bottom rule exactly below the last
18241 \begin_layout Standard
18242 The float label is not automatically translated into the document language.
18243 If your document is not in English, you have to do this manually by adding
18244 the following line to the document preamble
18249 \begin_layout Standard
18254 floatname{algorithm}{your\InsetSpace ~
18258 \begin_layout Standard
18265 \begin_inset Quotes eld
18273 \begin_inset Quotes erd
18279 \begin_layout Description
18284 When the LaTeX-package
18289 \begin_inset LatexCommand index
18290 name "LaTeX-packages ! hyperref"
18294 is used to link cross-references to floats in the PDF-output, it must be
18295 loaded in the document preamble before the definition of floats to be able
18296 to reference floats.
18297 As LyX sets the float definition for algorithm floats automatically before
18298 the user editable part of the document preamble, you need to insert the
18299 following preamble lines
18303 the loading command of
18308 \begin_inset VSpace defskip
18317 newfloat{Xalgorithm}{tbp}{loa}
18321 floatname{Xalgorithm}{your\InsetSpace ~
18334 renewenvironment{algorithm}[1][tbp]
18340 \begin_layout Standard
18351 begin{Xalgorithm}[#1]}{
18356 \begin_inset VSpace defskip
18361 To insert the list of algorithms you can in this case not use the menu
18363 Insert\SpecialChar \menuseparator
18364 List\InsetSpace \thinspace{}
18365 /\InsetSpace \thinspace{}
18366 TOC\SpecialChar \menuseparator
18369 but have to use this command in TeX-Code instead:
18375 listof{Xalgorithm}{List of Algorithms}
18378 \begin_inset Note Note
18381 \begin_layout Standard
18384 is used at the end of this document
18392 \begin_layout Standard
18393 Algorithm floats are not by default numbered in the scheme
18394 \begin_inset Quotes eld
18398 \begin_inset Quotes erd
18401 like it is the case for table and figure floats in many document-classes.
18402 To number algorithm floats in the same scheme, add this command to your
18406 \begin_layout Standard
18411 numberwithin{algorithm}{chapter}
18414 \begin_layout Standard
18415 If you use the LaTeX-package
18419 , add this line instead
18427 (the commands from above) to the preamble:
18430 \begin_layout Standard
18435 numberwithin{Xalgorithm}{chapter}
18438 \begin_layout Standard
18439 To be able to use the command
18450 in the document settings the option
18460 \begin_layout Subsection
18462 \begin_inset LatexCommand index
18463 name "Floats ! Text Wrap Floats"
18468 \begin_inset LatexCommand label
18469 name "sub:floatflt-wrap-float"
18476 \begin_layout Standard
18477 This float type is used if you want to
18478 \begin_inset Quotes eld
18482 \begin_inset Quotes erd
18485 text around a figure so that it only occupies some fraction of the column
18487 It can be inserted using the menu
18488 \begin_inset Wrap figure
18493 \begin_layout Standard
18494 \begin_inset Graphics
18495 filename clipart/mobius.eps
18498 scaleBeforeRotation
18499 rotateOrigin center
18506 \begin_layout Standard
18507 \begin_inset Caption
18509 \begin_layout Standard
18510 \begin_inset LatexCommand label
18511 name "fig:This-is-a"
18515 This is a wrapped figure, and this is the brilliant caption that describes
18517 \begin_inset VSpace medskip
18532 Insert\SpecialChar \menuseparator
18533 Floats\SpecialChar \menuseparator
18538 if the LaTeX-package
18540 f\SpecialChar \textcompwordmark{}
18541 loatf\SpecialChar \textcompwordmark{}
18545 \begin_inset LatexCommand index
18546 name "LaTeX-packages ! floatflt"
18554 \begin_layout Standard
18555 Installing a LaTeX-package is explained it in the
18565 The width and placement of the float is adjusted by right-clicking on the
18567 Figure\InsetSpace ~
18569 \begin_inset LatexCommand ref
18570 reference "fig:This-is-a"
18574 is an example text wrap float with a width of 40
18575 \begin_inset Formula $\,$
18582 \begin_layout Standard
18583 Available units are explained in
18584 \begin_inset LatexCommand ref
18585 reference "cha:Units-available-in"
18594 Some space was added under the caption to separate it better from the surroundi
18598 \begin_layout Standard
18601 f\SpecialChar \textcompwordmark{}
18602 loatf\SpecialChar \textcompwordmark{}
18605 also supports table wrap floats, but they are not yet supported by LyX.
18606 If you need this, read the documentation of
18608 f\SpecialChar \textcompwordmark{}
18609 loatf\SpecialChar \textcompwordmark{}
18613 \begin_inset LatexCommand cite
18621 \begin_layout Standard
18622 \begin_inset Note Greyedout
18625 \begin_layout Standard
18631 wrap float floats are fragile! E.\InsetSpace \thinspace{}
18633 having a figure too close to the bottom
18634 of the page can mess things up in the way that the float doesn't appear
18635 in the output or that it is placed over some other text.
18639 \begin_layout Standard
18640 The better solution is to use the LaTeX-package
18642 wrapf\SpecialChar \textcompwordmark{}
18646 \begin_inset LatexCommand index
18647 name "LaTeX-packages ! wrapfig\\vspace{4mm}"
18653 f\SpecialChar \textcompwordmark{}
18654 loatf\SpecialChar \textcompwordmark{}
18657 , but it is currently not supported by LyX.
18670 \begin_layout Standard
18674 \begin_layout Itemize
18675 Wrap floats should not be placed in paragraphs that run over a page break.
18676 That means that wrap floats should better be inserted to the exact place
18677 when the document is nearly finished and you are able to estimate where
18678 page breaks will appear.
18681 \begin_layout Itemize
18682 Wrap floats should either be placed in an own paragraph before the paragraph
18683 where they should wrap into or within a paragraph.
18686 \begin_layout Itemize
18687 Wrap floats in consecutive paragraphs may cause troubles, so assure that
18688 there is a text paragraph between them as separator.
18691 \begin_layout Itemize
18692 Wrap floats are not allowed in section headings or tables.
18695 \begin_layout Section
18697 \begin_inset LatexCommand label
18698 name "sec:Float-Numbering"
18703 \begin_inset LatexCommand index
18704 name "Floats ! Numbering"
18711 \begin_layout Standard
18712 Floats are usually numbered either independent from the sections the floats
18713 are in, or in the scheme
18714 \begin_inset Quotes eld
18718 \begin_inset Quotes erd
18722 \begin_inset Quotes eld
18726 \begin_inset Quotes erd
18730 This depends on the used document class.
18733 \begin_layout Standard
18734 To change the section independent numbering, you can use this command in
18735 the document preamble:
18738 \begin_layout Standard
18750 \begin_layout Standard
18757 is the command that prints the table number, for figure floats, the command
18771 prints in the command above the table number as small roman number.
18774 \begin_layout Standard
18775 To change the numbering scheme for example to
18776 \begin_inset Quotes eld
18780 \begin_inset Quotes erd
18783 , use this command in the preamble:
18786 \begin_layout Standard
18791 numberwithin{table}{subsection}
18794 \begin_layout Standard
18795 To be able to use the command
18806 in the document settings the option
18816 \begin_layout Standard
18817 Please also have a look at section\InsetSpace ~
18819 \begin_inset LatexCommand ref
18820 reference "sub:Footnote-Numbering"
18824 for the details and important notes about the numbering commands.
18827 \begin_layout Section
18829 \begin_inset LatexCommand label
18830 name "sec:Referencing-Floats"
18835 \begin_inset LatexCommand index
18836 name "Floats ! References"
18841 \begin_inset LatexCommand index
18849 \begin_layout Standard
18850 To reference a float, insert a label into its caption using the menu
18852 Insert\SpecialChar \menuseparator
18855 or the toolbar button
18856 \begin_inset Graphics
18857 filename ../images/label-insert.png
18859 scaleBeforeRotation
18864 A grey label box like this one:
18865 \begin_inset Graphics
18866 filename clipart/labelQt4.png
18868 scaleBeforeRotation
18872 will be inserted and the label window pops up asking for the label text.
18873 LyX offers as text the first words of the caption with a prefix.
18874 The prefix depends on the float type, e.\InsetSpace \thinspace{}
18876 for figure floats the prefix will
18884 \begin_layout Standard
18885 The label is used as anchor and name for the reference.
18886 You can refer to the label using the menu
18888 Insert\SpecialChar \menuseparator
18891 or the toolbar button
18892 \begin_inset Graphics
18893 filename ../images/dialog-show-new-inset_ref.png
18895 scaleBeforeRotation
18900 A grey cross-reference box like this one:
18901 \begin_inset Graphics
18902 filename clipart/referenceQt4.png
18904 scaleBeforeRotation
18908 will be inserted and the cross-reference window appear showing all labels
18910 If you have multiple LyX-documents opened, choose the one you are working
18911 on from the drop-list at the top of the dialog.
18912 You can now sort the labels alphabetically and then choose one.
18913 At the position of the cross-reference box the float number will appear
18917 \begin_layout Standard
18918 It is recommended to use a protected space between the cross-reference name
18919 and its number to avoid line breaks between them.
18920 If a cross-reference refers to a non-existing label, you will see two question
18921 marks in the output instead of the reference.
18924 \begin_layout Standard
18925 You can change labels at any time by clicking on the label box.
18926 References to the changed label will automatically change its link to the
18927 new label text, so that you don't need to take care about this.
18930 \begin_layout Standard
18937 in the cross-reference window sets the cursor before the referred label.
18938 The button text changes then to Go\InsetSpace ~
18939 Back and you can use it to set the cursor
18940 back to the cross-reference.
18941 Right-clicking on a cross-reference box also sets the cursor before the
18942 referenced label but without a possibility to go back.
18945 \begin_layout Subsection
18946 Cross-Reference Formats
18947 \begin_inset LatexCommand label
18948 name "sub:Cross-Reference-Formats"
18953 \begin_inset LatexCommand index
18954 name "References ! Formats"
18961 \begin_layout Standard
18962 There are six varieties of cross-references:
18965 \begin_layout Description
18966 <reference>: prints the float number, this is the default:
18967 \begin_inset LatexCommand ref
18968 reference "fig:Two-distorted-images"
18975 \begin_layout Description
18976 (<reference>): prints the float number within two parentheses, this is the
18977 style normally used to reference formulas, especially when the reference
18979 \begin_inset Quotes eld
18983 \begin_inset Quotes erd
18987 \begin_inset LatexCommand eqref
18995 \begin_layout Description
18996 <page>: prints the page number: Page\InsetSpace ~
18998 \begin_inset LatexCommand pageref
18999 reference "fig:Two-distorted-images"
19006 \begin_layout Description
19009 <page>: prints the text "on page" and the page number:
19010 \begin_inset LatexCommand vpageref
19011 reference "fig:Two-distorted-images"
19018 \begin_layout Description
19019 <reference>\InsetSpace ~
19022 <page>: prints the float number, the text "on page", and
19024 \begin_inset LatexCommand vref
19025 reference "fig:Two-distorted-images"
19032 \begin_layout Description
19033 Formatted\InsetSpace ~
19034 reference: prints a self defined cross-reference format.
19036 \begin_inset Note Greyedout
19039 \begin_layout Standard
19044 This feature is only available when you have the LaTeX-package
19056 \begin_layout Standard
19057 Note that the style <page> won't print the page number if the label is on
19058 the previous, the same, or the next page.
19059 You will e.\InsetSpace \thinspace{}
19062 \begin_inset Quotes eld
19070 \begin_inset Quotes erd
19076 \begin_layout Standard
19077 The number and current page of the referred document part in the output,
19078 is automatically calculated by LaTeX.
19079 The varieties are adjusted in the field
19083 of the cross-reference window, that appear when you click on the cross-referenc
19087 \begin_layout Subsection
19088 Referencing Subfigures
19089 \begin_inset LatexCommand label
19090 name "sub:Referencing-Subfigures"
19095 \begin_inset LatexCommand index
19096 name "References ! to Subfigures"
19103 \begin_layout Standard
19104 Currently referencing subfigures is not supported by LyX, so you have to
19105 use LaTeX-commands.
19106 The label is the created with the command
19109 \begin_layout Standard
19114 label{fig:YourLabelName}
19117 \begin_layout Standard
19118 that is directly inserted into the subfigure caption field.
19119 To reference the label add this command in TeX-Code
19122 \begin_layout Standard
19127 ref{fig:YourLabelName}
19130 \begin_layout Standard
19131 to the position in your document where the reference should be placed.
19132 Here is a reference to a subfigure: Subfigure\InsetSpace ~
19137 \begin_layout Standard
19149 \begin_layout Subsection
19150 Automatic Reference Naming
19151 \begin_inset LatexCommand index
19152 name "References ! Automatic Reference Naming"
19159 \begin_layout Standard
19164 provides a very useful feature that cross-references automatically include
19165 the name of the referenced floats (or text parts like sections).
19166 You save to write e.\InsetSpace \thinspace{}
19169 \begin_inset Quotes eld
19173 \begin_inset Quotes erd
19176 before every reference box.
19177 To get this automatic reference naming, you have to load the LaTeX-package
19183 \begin_inset LatexCommand index
19184 name "LaTeX-packages ! hyperref"
19188 in the document preamble with
19191 \begin_layout Standard
19196 usepackage[pdfborder={0 0 0}]{hyperref}
19211 \begin_layout Standard
19216 is used to link cross-references in the DVI- and PDF-output, this means
19217 that the reader of your document will be able to click on a table of content
19218 (TOC) entry or on a reference and he will be shown the referenced document
19224 also creates PDF-bookmarks for every section of your document to make it
19225 easier for readers to navigate through the document.
19226 This is also used in this document but when you have a look in the document
19227 preamble you will find various options in the load command of
19232 To learn more about the
19236 package, we refer to its documentation
19237 \begin_inset LatexCommand cite
19245 \begin_layout Standard
19246 \begin_inset Note Greyedout
19249 \begin_layout Standard
19254 Automatic reference naming cannot be used when you use cross-references
19257 Formatted\InsetSpace ~
19260 style, described in section\InsetSpace ~
19262 \begin_inset LatexCommand ref
19263 reference "sub:Cross-Reference-Formats"
19275 \begin_layout Subsection
19277 \begin_inset LatexCommand label
19278 name "sub:Reference-Position"
19283 \begin_inset LatexCommand index
19284 name "References ! Reference Position"
19291 \begin_layout Standard
19297 \begin_inset LatexCommand index
19298 name "LaTeX-packages ! hyperref"
19302 to link cross-references in the output, you will see that clicking on an
19303 image float reference jumps to the image label.
19304 The caption will be the first text part on the screen, so that you cannot
19305 see the image without scrolling.
19306 This is because the reference link anchor is placed at the position of
19308 With the use of the package
19313 \begin_inset LatexCommand index
19314 name "LaTeX-packages ! hypcap"
19318 , which is part of the LaTeX-package
19323 \begin_inset LatexCommand index
19324 name "LaTeX-packages ! oberdiek"
19328 , the link anchor is placed at the beginning of a float.
19329 To use this feature for figure floats, load
19333 in the document preamble with the line
19336 \begin_layout Standard
19341 usepackage[f\SpecialChar \textcompwordmark{}
19345 \begin_layout Standard
19350 for all floats but this isn't recommended for stability reasons.
19351 For more informations, have a look at
19356 \begin_inset LatexCommand cite
19364 \begin_layout Standard
19365 \begin_inset Note Greyedout
19368 \begin_layout Standard
19377 must be loaded after
19381 in the document preamble.
19389 \begin_layout Standard
19390 \begin_inset Note Greyedout
19393 \begin_layout Standard
19402 has no effect for references to subfigures.
19410 \begin_layout Section
19412 \begin_inset LatexCommand label
19413 name "sec:Float-Placement"
19418 \begin_inset LatexCommand index
19419 name "Floats ! Placement"
19426 \begin_layout Standard
19427 Right-clicking on a float-box opens a dialog where you can alter the placement
19428 options that LaTeX uses for positioning the float.
19435 is only useful for two-column documents: If you select it, the float will
19436 span across both columns on the page instead of being confined to just
19441 Rotate\InsetSpace ~
19444 is used to rotate floats, see section
19445 \begin_inset LatexCommand ref
19446 reference "sec:Rotated-Floats"
19453 \begin_layout Standard
19454 You can use one ore more of the following options in the float dialog to
19455 set the placement for a particular float when you uncheck the option
19458 default\InsetSpace ~
19464 \begin_layout Description
19467 possible try to place the float on the position where it is inserted
19470 \begin_layout Description
19473 page try to place the float on the top of the current page
19476 \begin_layout Description
19477 Bottom\InsetSpace ~
19479 page try to place the float on the bottom of the current page
19482 \begin_layout Description
19485 floats try to place the float on an own page
19488 \begin_layout Standard
19489 The order of the above option is
19494 That means, if you use the default placement, LaTeX will first try out
19507 , and then the others.
19508 If you don't use the default, LaTeX will try only the checked options but
19510 If none of the 4 placements are possible the procedure is internally repeated
19511 but it is tried to put the float on the following page.
19514 \begin_layout Standard
19515 By default, each option has its own rules:
19518 \begin_layout Labeling
19519 \labelwidthstring 00.00.0000
19526 only floats occupying less than 70\InsetSpace \thinspace{}
19527 % of the page can be placed at the top
19537 \begin_layout Labeling
19538 \labelwidthstring 00.00.0000
19541 Bottom\InsetSpace ~
19545 : only floats occupying less than 30\InsetSpace \thinspace{}
19546 % of the page can be placed at the bottom
19557 \begin_layout Labeling
19558 \labelwidthstring 00.00.0000
19565 : only if more than 50\InsetSpace \thinspace{}
19566 % of the page are occupied by floats, several floats
19567 can be set together on a page.
19577 \begin_layout Standard
19578 If you don't like these rules, you can ignore them by using the additional
19581 Ignore\InsetSpace ~
19587 You can also redefine the rules with LaTeX-commands that are given in parenthese
19588 s behind the rules description above.
19589 To increase for example the often too small default of the bottom-rule
19590 to 50\InsetSpace \thinspace{}
19591 % of the page, add this line to your document preamble:
19594 \begin_layout Standard
19601 bottomfraction}{0.5}
19604 \begin_layout Standard
19605 Sometimes you might need, under all circumstances, a float to be placed
19606 exactly at the position where it is inserted.
19607 For this case you can use the option
19613 Use this option very rarely and only if the document is nearly ready to
19615 Because the float is then no longer able to
19616 \begin_inset Quotes eld
19620 \begin_inset Quotes erd
19623 when you change your document and this will often destroy the page layout.
19626 \begin_layout Standard
19627 There are no placement options for text wrap floats, because they are always
19628 surrounded by the text of a certain paragraph.
19629 \begin_inset VSpace bigskip
19635 \begin_layout Standard
19636 Sometimes you have the problem that a float is placed at the top of a page
19637 while its corresponding section starts at the middle of the page, so that
19638 the reader could think the float is part of the previous section.
19639 To avoid this the LaTeX-command
19646 It suppresses a given float placement for the page where it is inserted
19647 and can therefore be used to avoid that floats could be set before a section
19649 To get this, add these commands to your document preamble:
19652 \begin_layout Standard
19674 \begin_layout Standard
19675 You can define the same for all section headings, like chapters and subsections.
19676 This definition is not recommended to be used for small text parts like
19677 subsubsections because LaTeX may then have problems to find a suitable
19681 \begin_layout Standard
19682 \begin_inset VSpace bigskip
19685 In some cases it is required to have all figures/tables at the end of the
19687 For this purpose the LaTeX-package
19692 \begin_inset LatexCommand index
19693 name "LaTeX-packages ! endfloat"
19698 It puts all figure and table floats at the end of the document into own
19700 At the original float position a text hint like
19701 \begin_inset Quotes eld
19706 [Figure\InsetSpace ~
19710 \begin_inset Quotes erd
19714 The endfloat-package is loaded in the preamble with the line
19717 \begin_layout Standard
19722 usepackage[options]{endfloat}
19725 \begin_layout Standard
19726 There are various package options to format the created figure/table sections.
19727 For more information we refer to the
19732 \begin_inset LatexCommand cite
19740 \begin_inset Note Greyedout
19743 \begin_layout Standard
19748 doesn't provide an automatic translation for the text hint, you have to
19749 do this manually, see section\InsetSpace ~
19751 \begin_inset LatexCommand cite
19764 \begin_inset Note Greyedout
19767 \begin_layout Standard
19772 There is currently a bug in
19776 when the caption contains a German
19777 \begin_inset Quotes eld
19781 \begin_inset Quotes erd
19785 Use in this case the command
19786 \begin_inset Quotes eld
19796 \begin_inset Quotes erd
19799 in TeX-Code instead of
19800 \begin_inset Quotes eld
19804 \begin_inset Quotes erd
19815 \begin_layout Standard
19816 \begin_inset VSpace bigskip
19819 For more details about float placements, have a look at LaTeX books,
19820 \begin_inset LatexCommand cite
19821 key "latexcompanion,latexguide,latexbook"
19828 \begin_layout Section
19830 \begin_inset LatexCommand label
19831 name "sec:Rotated-Floats"
19836 \begin_inset LatexCommand index
19837 name "Floats ! Rotating"
19844 \begin_layout Standard
19845 Especially for wide tables you might have floats rotated.
19846 To rotate a whole float including the caption, right-click on the float-box
19849 Rotate\InsetSpace ~
19855 \begin_layout Standard
19856 Rotated floats are always placed on its own page (or column, when you have
19857 a two-column document).
19858 They are rotated so that you can read them from the outside margin.
19859 To force a certain rotation direction for all pages, you can add either
19868 to the document class options.
19871 \begin_layout Standard
19872 Referencing rotated floats is the same like for normal floats, the caption
19873 format is also the same: Table\InsetSpace ~
19875 \begin_inset LatexCommand ref
19876 reference "tab:Rotated-table"
19880 is an example of a rotated table float.
19883 \begin_layout Standard
19884 \begin_inset Note Greyedout
19887 \begin_layout Standard
19892 Not all DVI-viewers are able to display rotated floats.
19900 \begin_layout Standard
19901 \begin_inset Float table
19906 \begin_layout Standard
19907 \begin_inset Caption
19909 \begin_layout Standard
19910 \begin_inset LatexCommand label
19911 name "tab:Rotated-table"
19923 \begin_layout Standard
19925 \begin_inset Tabular
19926 <lyxtabular version="3" rows="1" columns="5">
19928 <column alignment="center" valignment="top" leftline="true" width="0">
19929 <column alignment="center" valignment="top" leftline="true" width="0">
19930 <column alignment="center" valignment="top" leftline="true" width="0">
19931 <column alignment="center" valignment="top" leftline="true" width="0">
19932 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19933 <row topline="true" bottomline="true">
19934 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19937 \begin_layout Standard
19943 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19946 \begin_layout Standard
19952 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19955 \begin_layout Standard
19961 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19964 \begin_layout Standard
19970 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19973 \begin_layout Standard
19992 \begin_layout Section
19994 \begin_inset LatexCommand index
19995 name "Caption ! Formatting"
20000 \begin_inset LatexCommand index
20001 name "Floats ! Caption Formatting"
20006 \begin_inset LatexCommand index
20007 name "LaTeX-packages ! caption"
20012 \begin_inset LatexCommand label
20013 name "sec:Caption-Formatting"
20020 \begin_layout Standard
20025 environment is the default paragraph environment for
20030 On the LyX screen captions appear as label, e.\InsetSpace \thinspace{}
20033 \begin_inset Quotes eld
20041 \begin_inset Quotes erd
20044 followed by the caption text.
20046 \begin_inset Quotes eld
20050 \begin_inset Quotes erd
20053 is the actual reference number.
20054 By default the label and the number are in the same font as the caption
20055 text and a colon follows the number to divide the label from the text.
20056 This caption format is not suitable for all document formats.
20060 \begin_layout Standard
20061 To change the default caption format, load the LaTeX-package
20066 \begin_inset LatexCommand index
20067 name "LaTeX-packages ! caption"
20071 in the document preamble with this line:
20074 \begin_layout Standard
20079 usepackage[format definition]{caption}
20082 \begin_layout Standard
20083 To have for example the label and the number in sans-serif bold font and
20084 the table captions always above the table like in this document, use the
20088 \begin_layout Standard
20093 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
20096 \begin_layout Standard
20097 You can also define different caption formats for the different float types.
20098 In this case load the
20102 package without format specific options and define the different formats
20103 with the help of the command
20106 \begin_layout Standard
20111 captionsetup[float type]{format definition}
20114 \begin_layout Standard
20115 in the document preamble.
20116 For example the caption formats of Figure\InsetSpace ~
20118 \begin_inset LatexCommand ref
20119 reference "fig:This-is-an-fig"
20123 and Table\InsetSpace ~
20125 \begin_inset LatexCommand ref
20126 reference "tab:This-is-an-tab"
20130 can be created using these commands in the document preamble:
20133 \begin_layout Standard
20138 usepackage[tableposition=top]{caption}
20146 captionsetup[f\SpecialChar \textcompwordmark{}
20147 igure]{labelfont={tt}, textfont=it, indention=1cm,%
20153 \begin_layout Standard
20161 captionsetup[figure]
20172 captionsetup[table]{labelfont={bf,sf}}
20175 \begin_layout Standard
20176 \begin_inset Note Greyedout
20179 \begin_layout Standard
20188 has no effect when a
20193 \begin_inset LatexCommand index
20194 name "LaTeX-packages ! koma-script"
20198 document class is used.
20199 In this case the document class option
20211 \begin_layout Standard
20212 For more information about the package
20216 we refer to its documentation
20217 \begin_inset LatexCommand cite
20218 key "caption,caption-de"
20225 \begin_layout Standard
20226 To change the label name from e.g.
20228 \begin_inset Quotes eld
20232 \begin_inset Quotes erd
20236 \begin_inset Quotes eld
20240 \begin_inset Quotes erd
20243 use this preamble command:
20246 \begin_layout Standard
20253 fnum@figure}{Image~
20258 \begin_layout Standard
20265 inserts the figure number and
20268 \begin_inset Quotes eld
20274 \begin_inset Quotes erd
20277 creates a protected space.
20280 \begin_layout Standard
20281 \begin_inset VSpace bigskip
20289 \begin_inset LatexCommand index
20290 name "LaTeX-packages ! koma-script"
20296 article (koma-script)
20304 letter (koma-script)
20308 report (koma-script)
20310 \InsetSpace \thinspace{}
20311 ), you can alternatively to the
20319 's built-in command
20326 For example, to have the caption label in bold, add this command to your
20330 \begin_layout Standard
20335 setkomafont{captionlabel}{
20340 \begin_layout Standard
20341 For more information about
20352 \begin_inset LatexCommand cite
20353 key "koma-script,koma-script-de"
20360 \begin_layout Standard
20364 \begin_layout Standard
20368 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
20375 \begin_inset Note Note
20378 \begin_layout Standard
20379 The caption format is changed only for this example.
20387 \begin_layout Standard
20388 \begin_inset Float figure
20394 \begin_layout Standard
20396 \begin_inset Graphics
20397 filename clipart/mobius.eps
20400 scaleBeforeRotation
20407 \begin_layout Standard
20408 \begin_inset Caption
20410 \begin_layout Standard
20411 \begin_inset LatexCommand label
20412 name "fig:This-is-an-fig"
20416 This is an example figure caption that is longer than one line to show the
20417 different caption format.
20418 Here a self-defined caption format is used.
20431 \begin_layout Standard
20435 \begin_layout Standard
20439 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
20448 \begin_layout Standard
20449 \begin_inset Float table
20455 \begin_layout Standard
20456 \begin_inset Caption
20458 \begin_layout Standard
20459 \begin_inset LatexCommand label
20460 name "tab:This-is-an-tab"
20464 This is an example table caption that is longer than one line to show the
20465 different caption format.
20466 Here the standard caption format for tables in this document is used.
20474 \begin_layout Standard
20476 \begin_inset Tabular
20477 <lyxtabular version="3" rows="1" columns="5">
20479 <column alignment="center" valignment="top" leftline="true" width="0">
20480 <column alignment="center" valignment="top" leftline="true" width="0">
20481 <column alignment="center" valignment="top" leftline="true" width="0">
20482 <column alignment="center" valignment="top" leftline="true" width="0">
20483 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
20484 <row topline="true" bottomline="true">
20485 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20488 \begin_layout Standard
20494 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20497 \begin_layout Standard
20503 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20506 \begin_layout Standard
20512 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20515 \begin_layout Standard
20521 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20524 \begin_layout Standard
20543 \begin_layout Section
20545 \begin_inset LatexCommand index
20546 name "Caption ! Placement"
20551 \begin_inset LatexCommand index
20552 name "Floats ! Caption Placement"
20557 \begin_inset LatexCommand label
20558 name "sec:Caption-Placement"
20565 \begin_layout Standard
20566 The common caption placement rule is:
20569 \begin_layout Description
20570 Figure: Caption is set below the figure
20573 \begin_layout Description
20574 Table: Caption is set above the table
20577 \begin_layout Standard
20578 Having the caption above the table is unfortunately not supported in LaTeX's
20580 That means if you are using the document classes
20596 there will be no space between the caption and the table.
20597 To insert the needed space, add the following option to the load command
20598 of the LaTeX-package
20602 in your document preamble
20606 \begin_layout Standard
20607 See section\InsetSpace ~
20609 \begin_inset LatexCommand ref
20610 reference "sec:Caption-Formatting"
20614 for more information of the package
20626 \begin_layout Standard
20632 \begin_layout Standard
20638 \begin_inset LatexCommand index
20639 name "LaTeX-packages ! koma-script"
20645 article (koma-script)
20653 letter (koma-script)
20657 report (koma-script)
20659 \InsetSpace \thinspace{}
20660 ), you can alternatively to the
20664 package set the document class option
20671 \begin_layout Standard
20672 \begin_inset VSpace bigskip
20675 It is also possible to set the caption beside a figure or table.
20676 To get this the LaTeX-package
20681 \begin_inset LatexCommand index
20682 name "LaTeX-packages ! sidecap"
20686 has to be loaded in the document preamble with the line
20689 \begin_layout Standard
20694 usepackage[option]{sidecap}
20697 \begin_layout Standard
20698 If you set no option, the caption is placed on the side of the outer page
20699 margin -- to the right on odd pages, to the left on even pages.
20700 You can change the placement to inner margin with the option
20705 To force the placement always to the right or left, use the option
20716 \begin_layout Standard
20717 To place in LyX the caption of a float on the side, it is necessary to add
20718 these commands to the document preamble:
20721 \begin_layout Standard
20727 \begin_layout Standard
20740 \begin_layout Standard
20761 \begin_layout Standard
20782 \begin_layout Standard
20793 renewenvironment{table}{
20800 \begin_layout Standard
20813 \begin_layout Standard
20834 \begin_layout Standard
20852 \begin_layout Standard
20865 \begin_layout Standard
20880 f\SpecialChar \textcompwordmark{}
20887 \begin_layout Standard
20900 MyEndf\SpecialChar \textcompwordmark{}
20903 endf\SpecialChar \textcompwordmark{}
20910 \begin_layout Standard
20921 renewenvironment{f\SpecialChar \textcompwordmark{}
20924 begin{SCf\SpecialChar \textcompwordmark{}
20927 end{SCf\SpecialChar \textcompwordmark{}
20931 \begin_layout Standard
20944 \begin_layout Standard
20957 f\SpecialChar \textcompwordmark{}
20966 \begin_layout Standard
20979 endf\SpecialChar \textcompwordmark{}
20982 MyEndf\SpecialChar \textcompwordmark{}
20986 \begin_layout Standard
20992 \begin_layout Standard
20993 The commands allow you to redefine the floats so that the caption is set
20995 For figure floats use the command
20998 \begin_layout Standard
21006 \begin_layout Standard
21007 in TeX-Code before the float.
21008 Behind the float insert the command
21011 \begin_layout Standard
21019 \begin_layout Standard
21020 in TeX-Code to get back to the original float definition.
21023 \begin_layout Standard
21024 For table floats use the corresponding commands
21027 \begin_layout Standard
21041 \begin_layout Standard
21042 Figure\InsetSpace ~
21044 \begin_inset LatexCommand ref
21045 reference "fig:cap-beside-fig"
21049 and Table\InsetSpace ~
21051 \begin_inset LatexCommand ref
21052 reference "tab:cap-beside-tab"
21056 are examples where the caption is set beside.
21059 \begin_layout Standard
21060 You can see in the examples that the caption text appears at the top of
21061 the floats for table floats and at the bottom for figure floats.
21062 To change this, you can use the command
21065 \begin_layout Standard
21070 sidecaptionvpos{float type}{placement}
21073 \begin_layout Standard
21074 in the document preamble or in TeX-Code before the float.
21075 The float type is either
21083 , the placement can be
21084 \begin_inset Quotes eld
21092 \begin_inset Quotes erd
21096 \begin_inset Quotes eld
21104 \begin_inset Quotes erd
21108 \begin_inset Quotes eld
21116 \begin_inset Quotes erd
21120 To have for example the caption of figure floats vertically centered, use
21124 \begin_layout Standard
21129 sidecaptionvpos{f\SpecialChar \textcompwordmark{}
21133 \begin_layout Standard
21134 This was used for Figure\InsetSpace ~
21136 \begin_inset LatexCommand ref
21137 reference "fig:cap-beside-fig-2"
21144 \begin_layout Standard
21145 \begin_inset VSpace medskip
21148 For more information about the package
21152 we refer to its documentation
21153 \begin_inset LatexCommand cite
21161 \begin_layout Standard
21162 \begin_inset Note Greyedout
21165 \begin_layout Standard
21175 \begin_inset LatexCommand index
21176 name "LaTeX-packages ! hypcap"
21180 , described in section\InsetSpace ~
21182 \begin_inset LatexCommand ref
21183 reference "sub:Reference-Position"
21187 , has no effect on floats with the caption set beside.
21195 \begin_layout Standard
21199 \begin_layout Standard
21211 \begin_layout Standard
21212 \begin_inset Float figure
21217 \begin_layout Standard
21218 \begin_inset Graphics
21219 filename clipart/escher-lsd.eps
21221 scaleBeforeRotation
21228 \begin_layout Standard
21229 \begin_inset Caption
21231 \begin_layout Standard
21232 \begin_inset LatexCommand label
21233 name "fig:cap-beside-fig"
21237 This is a caption beside a figure.
21250 \begin_layout Standard
21254 \begin_layout Standard
21266 \begin_layout Standard
21267 \begin_inset Float table
21272 \begin_layout Standard
21273 \begin_inset Caption
21275 \begin_layout Standard
21276 \begin_inset LatexCommand label
21277 name "tab:cap-beside-tab"
21281 This is a caption beside a table.
21289 \begin_layout Standard
21290 \begin_inset Tabular
21291 <lyxtabular version="3" rows="4" columns="5">
21293 <column alignment="center" valignment="top" leftline="true" width="0">
21294 <column alignment="center" valignment="top" leftline="true" width="0">
21295 <column alignment="center" valignment="top" leftline="true" width="0">
21296 <column alignment="center" valignment="top" leftline="true" width="0">
21297 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
21298 <row topline="true">
21299 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21302 \begin_layout Standard
21308 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21311 \begin_layout Standard
21317 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21320 \begin_layout Standard
21326 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21329 \begin_layout Standard
21335 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21338 \begin_layout Standard
21345 <row topline="true">
21346 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21349 \begin_layout Standard
21355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21358 \begin_layout Standard
21364 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21367 \begin_layout Standard
21373 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21376 \begin_layout Standard
21382 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21385 \begin_layout Standard
21392 <row topline="true">
21393 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21396 \begin_layout Standard
21402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21405 \begin_layout Standard
21411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21414 \begin_layout Standard
21420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21423 \begin_layout Standard
21429 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21432 \begin_layout Standard
21439 <row topline="true" bottomline="true">
21440 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21443 \begin_layout Standard
21449 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21452 \begin_layout Standard
21458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21461 \begin_layout Standard
21467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21470 \begin_layout Standard
21476 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21479 \begin_layout Standard
21498 \begin_layout Standard
21502 \begin_layout Standard
21514 \begin_layout Standard
21518 \begin_layout Standard
21522 sidecaptionvpos{figure}{c}
21528 \begin_inset Float figure
21533 \begin_layout Standard
21534 \begin_inset Graphics
21535 filename clipart/escher-lsd.eps
21537 scaleBeforeRotation
21544 \begin_layout Standard
21545 \begin_inset Caption
21547 \begin_layout Standard
21548 \begin_inset LatexCommand label
21549 name "fig:cap-beside-fig-2"
21553 This is a vertically centered caption beside a figure.
21566 \begin_layout Standard
21570 \begin_layout Standard
21582 \begin_layout Section
21584 \begin_inset LatexCommand label
21585 name "sec:Listings-of-Floats"
21590 \begin_inset LatexCommand index
21591 name "Floats ! Float Lists"
21598 \begin_layout Standard
21599 Similar to the the table of contents where the sections of the document
21600 are listed, there are listings for all float types, like the figures of
21602 You can insert them via the
21604 Insert\SpecialChar \menuseparator
21612 \begin_layout Standard
21613 The list entries are the float captions or its short title, the float number,
21614 and the page number where they appear in the document.
21617 \begin_layout Standard
21618 You can find the list of figures and tables at the end of this document.
21621 \begin_layout Chapter
21625 \begin_layout Section
21627 \begin_inset LatexCommand label
21628 name "sec:LyX-Notes"
21633 \begin_inset LatexCommand index
21634 name "Notes ! LyX Notes"
21641 \begin_layout Standard
21642 Notes are inserted with the toolbar button
21643 \begin_inset Graphics
21644 filename ../images/note-insert.png
21646 scaleBeforeRotation
21652 Insert\SpecialChar \menuseparator
21656 There are five types of notes:
21659 \begin_layout Description
21661 Note This note type is for internal notes that won't appear in the output.
21662 Its note-box looks like this:
21667 \begin_inset Graphics
21668 filename clipart/LyXNoteImageQt4.png
21671 scaleBeforeRotation
21676 \begin_inset Note Note
21679 \begin_layout Standard
21680 This is text in a note box that doesn't appear in the output.
21688 \begin_layout Description
21689 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
21690 ent, when you export the document to LaTeX via the menu
21692 File\SpecialChar \menuseparator
21693 Export\SpecialChar \menuseparator
21694 LaTeX (pdflatex) / (plain)
21697 Its note-box looks like this:
21702 \begin_inset Graphics
21703 filename clipart/CommentNoteImageQt4.png
21706 scaleBeforeRotation
21711 \begin_inset Note Comment
21714 \begin_layout Standard
21715 This is text in a note box that only appears as comment in LaTeX-files.
21723 \begin_layout Description
21724 Greyed\InsetSpace ~
21725 Out This note will appear in the output as grey text.
21726 Its note-box looks like this:
21731 \begin_inset Graphics
21732 filename clipart/GreyedOutNoteImageQt4.png
21735 scaleBeforeRotation
21745 \begin_layout Standard
21749 renewenvironment{lyxgreyedout}
21752 \begin_layout Standard
21756 textcolor[gray]{0.8}
21766 \begin_inset Note Greyedout
21769 \begin_layout Standard
21774 \begin_layout Standard
21775 This is an example footnote within a greyed out note.
21780 of a comment that appears in the output as grey text.
21789 \begin_layout Standard
21793 renewenvironment{lyxgreyedout}
21796 \begin_layout Standard
21810 \begin_inset Note Note
21813 \begin_layout Standard
21814 The greyed out note is here redefined to show it with the original LyX definitio
21815 n because greyed out notes are redefined in the preamble of this document,
21816 as described below, to have blue text.
21825 As you can see in the example, the first line of greyed out notes is a bit
21826 indented and greyed out notes can have footnotes.
21829 \begin_layout Description
21830 Framed This note will appear in the output as framed text.
21831 Its note-box looks like this:
21836 \begin_inset Graphics
21837 filename clipart/FramedNoteImageQt4.png
21840 scaleBeforeRotation
21845 \begin_inset Note Framed
21848 \begin_layout Standard
21849 This is text in a note box that appears framed in the output.
21854 In contrary to framed boxes
21858 \begin_layout Standard
21859 Framed boxes are described in section\InsetSpace ~
21861 \begin_inset LatexCommand ref
21862 reference "sec:Framed-Boxes"
21871 the frame uses always the whole text width and the note is set into its
21875 \begin_layout Description
21876 Shaded This note will appear in the output with red background color.
21877 Its note box looks like this:
21882 \begin_inset Graphics
21883 filename clipart/ShadedNoteImageQt4.png
21886 scaleBeforeRotation
21891 \begin_inset Note Shaded
21894 \begin_layout Standard
21895 This text in a note box appears in the output with red background.
21900 In contrary to colored boxes
21904 \begin_layout Standard
21905 Colored boxes are described in section\InsetSpace ~
21907 \begin_inset LatexCommand ref
21908 reference "sec:Colored-Boxes"
21917 the note uses always the whole text width and the note is set into its
21921 \begin_layout Standard
21922 \begin_inset VSpace bigskip
21925 When you use the toolbar button
21926 \begin_inset Graphics
21927 filename ../images/note-insert.png
21929 scaleBeforeRotation
21939 You can switch between the five note types by right-clicking on the note-box.
21944 If you want to turn existing text into a note, mark it and click on the
21958 To change a note to text, press the backspace key when the cursor is in
21959 the first position of a note, or press the deletey key when the cursor
21960 is in the very last position of the note, respectively.
21963 \begin_layout Standard
21964 \begin_inset VSpace bigskip
21967 You can change the text color of the greyed out notes in the preamble with
21968 the following command:
21971 \begin_layout Standard
21976 renewenvironment{lyxgreyedout}
21982 \begin_layout Standard
22000 \begin_layout Standard
22001 The available colors and the method to define own colors is explained in
22002 section\InsetSpace ~
22004 \begin_inset LatexCommand ref
22005 reference "sec:Colored-Tables"
22012 \begin_layout Standard
22013 Notes that appear in blue in this document are set using greyed out notes
22017 \begin_layout Standard
22018 \begin_inset VSpace bigskip
22024 \begin_layout Standard
22033 notes can be set in the
22040 \begin_layout Standard
22041 The default frame width for
22045 notes is 0.4\InsetSpace \thinspace{}
22046 pt; it can be changed by changing the size
22053 The default space between the note content and the frame is 9\InsetSpace \thinspace{}
22055 be changed by changing the size
22062 For example the frame appearance of the following
22066 note is set with the TeX-Code commands
22069 \begin_layout Standard
22079 \begin_layout Standard
22083 \begin_layout Standard
22095 \begin_inset Note Framed
22098 \begin_layout Standard
22112 \begin_layout Standard
22126 \begin_layout Standard
22127 \begin_inset VSpace bigskip
22133 \begin_layout Standard
22138 notes the default space between the note content and the note border is
22139 3\InsetSpace \thinspace{}
22140 pt; it can be changed by changing the size
22148 The default background color red can be changed with the command
22152 def\SpecialChar \textcompwordmark{}
22160 def\SpecialChar \textcompwordmark{}
22163 command is explained in section\InsetSpace ~
22165 \begin_inset LatexCommand ref
22166 reference "sec:Colored-Tables"
22174 \begin_layout Standard
22181 \SpecialChar \textcompwordmark{}
22186 requires the LaTeX-package
22190 in the preamble, see section\InsetSpace ~
22192 \begin_inset LatexCommand ref
22193 reference "sec:Colored-Boxes"
22205 \begin_layout Standard
22206 For example the appearance of the following
22210 note is set with the TeX-Code commands
22213 \begin_layout Standard
22226 def\SpecialChar \textcompwordmark{}
22227 inecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
22230 \begin_layout Standard
22234 \begin_layout Standard
22247 \begin_layout Standard
22251 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
22257 \begin_inset Note Shaded
22260 \begin_layout Standard
22263 This is yellow text in a
22273 note with darkgreen background.
22282 \begin_layout Standard
22295 \begin_layout Standard
22299 definecolor{shadecolor}{rgb}{1,0,0}
22307 \begin_layout Section
22309 \begin_inset LatexCommand label
22310 name "sec:Footnotes"
22315 \begin_inset LatexCommand index
22316 name "Notes ! Footnotes"
22321 \begin_inset LatexCommand index
22329 \begin_layout Standard
22330 Footnotes can be inserted using the toolbar button
22331 \begin_inset Graphics
22332 filename ../images/footnote-insert.png
22334 scaleBeforeRotation
22340 Insert\SpecialChar \menuseparator
22352 then the following footnote-box:
22353 \begin_inset Graphics
22354 filename clipart/footnoteQt4.png
22356 scaleBeforeRotation
22364 where you can enter the footnote text.
22365 If you want to turn existing text into a footnote, mark it and click on
22387 to text, press the Backspace key when the cursor is in the first position
22396 , or press the Delete key when the cursor is in the very last position of
22408 \begin_layout Standard
22409 Here is an example footnote:
22417 \begin_layout Standard
22418 \begin_inset LatexCommand label
22419 name "foot:This-is-an"
22423 This is an example footnote.
22436 \begin_layout Standard
22440 newcounter{MyRepeatFoot}
22443 \begin_layout Standard
22447 setcounter{MyRepeatFoot}{
22457 \begin_layout Standard
22458 The footnote will appear in the output as a superscript number at the text
22459 position where the footnote box is placed.
22460 The footnote text is placed at the bottom of the current page.
22461 The footnote number is calculated by LaTeX, the numbers are consecutive.
22462 It depends on your document-class, if the footnote number is reset for
22466 \begin_layout Standard
22467 Footnotes can be referenced like floats: Insert a label into the footnote
22468 and cross-reference this label in the text as described in section\InsetSpace ~
22470 \begin_inset LatexCommand ref
22471 reference "sec:Referencing-Floats"
22477 This is a cross-reference of Footnote\InsetSpace ~
22479 \begin_inset LatexCommand ref
22480 reference "foot:This-is-an"
22487 \begin_layout Standard
22488 \begin_inset VSpace defskip
22491 To use footnotes within tables, you have to use minipages, see section\InsetSpace ~
22493 \begin_inset LatexCommand ref
22494 reference "sec:Minipages"
22499 Footnotes within longtables are described in section\InsetSpace ~
22501 \begin_inset LatexCommand ref
22502 reference "sub:Footnotes-in-Longtables"
22509 \begin_layout Standard
22510 \begin_inset VSpace defskip
22513 To create only a mark for a footnote, use the command
22517 footnotemark[number]
22520 This is used when you have the same annotation several times in a text
22521 but doesn't want to print the footnote text every time.
22524 the number of the repeating footnote while you are writing the text, you
22525 have to store its number.
22526 For the following footnote mark example, these commands were inserted in
22527 TeX-Code behind Footnote\InsetSpace ~
22529 \begin_inset LatexCommand ref
22530 reference "foot:This-is-an"
22534 to store the footnote number:
22537 \begin_layout Standard
22542 newcounter{MyRepeatFoot}
22546 setcounter{MyRepeatFoot}{
22551 \begin_layout Standard
22552 The footnote mark was then created with this command:
22555 \begin_layout Standard
22565 \begin_layout Standard
22566 Here is an example footnote mark:
22574 \begin_layout Standard
22588 \begin_layout Subsection
22590 \begin_inset LatexCommand label
22591 name "sub:Footnote-Numbering"
22596 \begin_inset LatexCommand index
22597 name "Footnotes ! Numbering"
22604 \begin_layout Standard
22605 To reset the footnote number back to 1 after each section
22607 , add this command to your document preamble:
22610 \begin_layout Standard
22615 @addtoreset{footnote}{section}
22618 \begin_layout Standard
22619 \begin_inset VSpace bigskip
22622 The following preamble command changes the footnote numbering style to small
22626 \begin_layout Standard
22638 \begin_layout Standard
22642 \begin_layout Standard
22655 This is a footnote with roman numbering:
22659 \begin_layout Standard
22660 This is an example footnote with roman numbering.
22668 \begin_layout Standard
22669 To change the numbering style to capital roman numerals replace in the command
22684 \begin_inset Quotes eld
22688 \begin_inset Quotes erd
22691 footnotes with capital or small Latin letters use
22705 \begin_inset Quotes eld
22709 \begin_inset Quotes erd
22712 footnotes with symbols use
22721 \begin_layout Standard
22722 \begin_inset Note Greyedout
22725 \begin_layout Standard
22730 You can only number 26 footnotes with Latin letters, because this numbering
22731 is limited to single letters.
22739 \begin_inset Note Greyedout
22742 \begin_layout Standard
22747 You can only number 9 footnotes with symbols.
22755 \begin_layout Standard
22756 To return to the default numbering style when you changed to another one,
22769 in the command above.
22773 \begin_layout Standard
22789 \begin_layout Standard
22790 \begin_inset VSpace bigskip
22796 \begin_layout Standard
22797 If you want to have footnotes numbered in the scheme
22798 \begin_inset Quotes eld
22802 \begin_inset Quotes erd
22805 , add the following command to your document preamble:
22808 \begin_layout Standard
22813 numberwithin{footnote}{chapter}
22816 \begin_layout Standard
22817 To be able to use the command
22828 in the document settings the option
22838 \begin_layout Standard
22842 \begin_layout Standard
22846 numberwithin{footnote}{chapter}
22851 This is another example footnote:
22857 \begin_layout Standard
22858 This is a footnote numbered in the scheme
22859 \begin_inset Quotes eld
22863 \begin_inset Quotes erd
22877 \begin_layout Standard
22893 \begin_layout Standard
22894 \begin_inset Note Greyedout
22897 \begin_layout Standard
22908 always prints out the footnote number as arabic number; previous redefinitions
22909 to get non-arabic numbers are overwritten.
22917 \begin_layout Standard
22918 So to get for example the scheme
22919 \begin_inset Quotes eld
22925 \begin_inset Quotes erd
22928 , use this command instead of
22937 \begin_layout Standard
22951 \begin_layout Subsection
22953 \begin_inset LatexCommand index
22954 name "Footnotes ! Placement"
22961 \begin_layout Standard
22962 If you have several footnotes in one page, they appear without vertical
22963 space between them at the bottom of the page.
22964 To make them better readable you can e.\InsetSpace \thinspace{}
22966 add 1.5\InsetSpace \thinspace{}
22967 mm space with the following
22971 \begin_layout Standard
22993 \begin_layout Standard
22994 \begin_inset VSpace bigskip
22997 In a two-column document the footnotes appear at the bottom of every column,
22998 see Figure\InsetSpace ~
23000 \begin_inset LatexCommand ref
23001 reference "fig:Standard-footnote-placement"
23006 If the footnotes should only appear at the bottom of the right column,
23007 as in Figure\InsetSpace ~
23009 \begin_inset LatexCommand ref
23010 reference "fig:Footnote-placement-in"
23014 , use the LaTeX-package
23019 \begin_inset LatexCommand index
23020 name "LaTeX-packages ! ftnright"
23024 with this command in the document preamble:
23027 \begin_layout Standard
23032 usepackage{ftnright}
23035 \begin_layout Standard
23036 \begin_inset Float figure
23042 \begin_layout Standard
23046 \begin_layout Standard
23056 \begin_inset Graphics
23057 filename clipart/without_fntright.pdf
23059 scaleBeforeRotation
23067 \begin_layout Standard
23077 \begin_layout Standard
23078 \begin_inset Caption
23080 \begin_layout Standard
23081 \begin_inset LatexCommand label
23082 name "fig:Standard-footnote-placement"
23086 Standard footnote placement in two-column documents.
23099 \begin_layout Standard
23100 \begin_inset Float figure
23106 \begin_layout Standard
23110 \begin_layout Standard
23120 \begin_inset Graphics
23121 filename clipart/with_fntright.pdf
23123 scaleBeforeRotation
23131 \begin_layout Standard
23141 \begin_layout Standard
23142 \begin_inset Caption
23144 \begin_layout Standard
23145 \begin_inset LatexCommand label
23146 name "fig:Footnote-placement-in"
23150 Footnote placement in two-column documents when the LaTeX-package
23167 \begin_layout Standard
23168 \begin_inset VSpace bigskip
23171 In some scientific literature it is usual to collect the footnotes and print
23172 them in a separate paragraph at the the end of a section, like in Figure\InsetSpace ~
23174 \begin_inset LatexCommand ref
23175 reference "fig:Endnotes----footnotes"
23180 They are then so called
23181 \begin_inset Quotes eld
23185 \begin_inset Quotes erd
23189 To use endnotes instead of footnotes in your document, load the LaTeX-package
23195 \begin_inset LatexCommand index
23196 name "LaTeX-packages ! endnotes"
23200 with the document preamble lines
23203 \begin_layout Standard
23208 usepackage{endnotes}
23219 \begin_layout Standard
23220 To insert the collected footnotes, insert the command
23223 \begin_layout Standard
23231 \begin_layout Standard
23232 in TeX-Code at the the end of a section or chapter.
23235 \begin_layout Standard
23236 \begin_inset Float figure
23241 \begin_layout Standard
23246 \begin_layout Standard
23256 \begin_inset Graphics
23257 filename clipart/endnotes.pdf
23258 scaleBeforeRotation
23266 \begin_layout Standard
23276 \begin_layout Standard
23277 \begin_inset Caption
23279 \begin_layout Standard
23280 \begin_inset LatexCommand label
23281 name "fig:Endnotes----footnotes"
23285 Endnotes -- footnotes are printed in a separate paragraph at the end of
23286 sections or chapters.
23299 \begin_layout Standard
23300 \begin_inset VSpace medskip
23303 The paragraph heading for the endnotes isn't automatically translated into
23304 the document language, this must be done manually.
23305 The following preamble command translate the default English name
23306 \begin_inset Quotes eld
23310 \begin_inset Quotes erd
23313 to the German translation
23314 \begin_inset Quotes eld
23318 \begin_inset Quotes erd
23324 \begin_layout Standard
23331 notesname}{Anmerkungen}
23334 \begin_layout Standard
23335 \begin_inset VSpace medskip
23338 The numbering of endnotes can be changed like the footnote numbering as
23339 described in section\InsetSpace ~
23341 \begin_inset LatexCommand ref
23342 reference "sub:Footnote-Numbering"
23346 ; just replace the command
23359 To reset the endnote number use the command
23365 as described in section\InsetSpace ~
23367 \begin_inset LatexCommand ref
23368 reference "sub:Footnote-Numbering"
23372 and replace the command parameter
23383 \begin_layout Standard
23384 To create only a mark for an endnote, use the command
23388 endnotemark[number]
23390 similar to the command
23396 , described in section\InsetSpace ~
23398 \begin_inset LatexCommand ref
23399 reference "sec:Footnotes"
23406 \begin_layout Standard
23407 \begin_inset VSpace bigskip
23410 Footnotes can also be placed in the page margin and the footnote text alignment
23411 can be changed, see the LaTeX-package
23416 \begin_inset LatexCommand index
23417 name "LaTeX-packages ! footmisc"
23422 \begin_inset LatexCommand cite
23427 for more information about this.
23430 \begin_layout Standard
23431 For various further footnote formatting issues have a look at LaTeX-books,
23433 \begin_inset LatexCommand cite
23434 key "latexcompanion,latexguide,latexbook"
23441 \begin_layout Section
23443 \begin_inset LatexCommand index
23444 name "Notes ! Margin Notes"
23451 \begin_layout Standard
23452 Margin notes look and behave in LyX like footnotes.
23453 They are inserted via the menu
23455 Insert\SpecialChar \menuseparator
23456 Marginal\InsetSpace ~
23459 or the toolbar button
23460 \begin_inset Graphics
23461 filename ../images/marginalnote-insert.png
23463 scaleBeforeRotation
23478 \begin_inset Quotes eld
23482 \begin_inset Quotes erd
23485 appears where you can enter the text of the margin note.
23488 \begin_layout Standard
23489 At the side is an example margin note.
23493 \begin_inset Marginal
23496 \begin_layout Standard
23497 This is a margin note.
23505 \begin_layout Standard
23506 Margin notes appear at the right side in single-sided documents.
23507 In double-sided documents they appear in the outer margin -- left on even
23508 pages, right on odd pages.
23509 The text of margin notes is aligned opposite to the outer margin -- right-align
23510 ed when the note appears in the left margin.
23511 The first line of the margin note is placed at the position of the text
23512 line where it is inserted in the document.
23515 \begin_layout Standard
23516 \begin_inset VSpace bigskip
23519 To place the margin note in the inner margin, add the command
23522 \begin_layout Standard
23530 \begin_layout Standard
23531 in TeX-Code before a margin note.
23532 The new placement is valid for all following margin notes.
23536 \begin_layout Standard
23546 \begin_inset Marginal
23549 \begin_layout Standard
23550 This is a margin note in the inner margin.
23562 \begin_inset Note Greyedout
23565 \begin_layout Standard
23570 There is often not enough space in the inner margin so that the notes are
23571 not correctly displayed in the output.
23579 \begin_layout Standard
23580 To return to the default placement insert the command
23583 \begin_layout Standard
23591 \begin_layout Standard
23596 \begin_layout Standard
23606 \begin_inset Note Greyedout
23609 \begin_layout Standard
23614 The command is ignored when it is within a paragraph where also the command
23629 \begin_layout Standard
23630 \begin_inset VSpace bigskip
23637 \begin_inset Marginal
23640 \begin_layout Standard
23641 AVeryLongMarginParWord that isn't hyphenated.
23649 Similar to the case described in section\InsetSpace ~
23651 \begin_inset LatexCommand ref
23652 reference "sub:Multiple-Lines-in"
23656 , long words cannot be hyphenated when they are the first word in a margin
23658 To avoid this, insert the command
23661 \begin_layout Standard
23669 \begin_layout Standard
23670 in TeX-Code before the word
23674 \begin_inset Marginal
23677 \begin_layout Standard
23681 \begin_layout Standard
23690 AVeryLongMarginParWord that is hyphenated.
23698 \begin_layout Standard
23699 \begin_inset VSpace bigskip
23705 \begin_layout Standard
23706 \begin_inset Note Greyedout
23709 \begin_layout Standard
23714 Margin notes can normally not be used inside tables, floats, and footnotes.
23722 \begin_layout Standard
23723 \begin_inset VSpace bigskip
23729 \begin_layout Standard
23733 \begin_layout Standard
23743 \begin_inset Note Note
23746 \begin_layout Standard
23747 The following section will only be displayed when the LaTeX-package
23759 \begin_layout Standard
23760 This restriction can be evaded by using the LaTeX-package
23765 \begin_inset LatexCommand index
23766 name "LaTeX-packages ! marginnote"
23771 By adding these two lines to your document preamble, the command used by
23772 LyX for margin notes is redefined to use the command provided by the
23779 \begin_layout Standard
23784 usepackage{marginnote}
23795 \begin_layout Standard
23796 This is also used in this document because
23800 has another useful feature: You can set a vertical offset for the note.
23801 This is often needed when too many margin notes are too close together
23802 or for a better page layout.
23803 The offset is set in LyX as TeX-Code directly behind the margin note in
23807 \begin_layout Standard
23813 \begin_layout Standard
23814 where the offset is a length with one of the units listed in Table\InsetSpace ~
23816 \begin_inset LatexCommand ref
23817 reference "tab:Units"
23822 A negative value shifts the note up, a positive value shifts it down.
23826 For example the margin note beside this text line is shifted up 1.5\InsetSpace \thinspace{}
23828 the TeX-Code-command
23829 \begin_inset Quotes eld
23839 \begin_inset Quotes erd
23843 \begin_inset Marginal
23846 \begin_layout Standard
23847 This margin note is shifted up 1.5\InsetSpace \thinspace{}
23848 cm from its original position.
23860 \begin_layout Standard
23870 \begin_layout Standard
23871 \begin_inset VSpace medskip
23878 you can also change the alignment of the text in the margin note.
23879 For example the commands
23882 \begin_layout Standard
23889 raggedleftmarginnote}{
23897 raggedrightmarginnote}{
23902 \begin_layout Standard
23903 set the alignment to centered.
23908 raggedleftmarginnote
23910 denotes margin notes that appear at the left side.
23917 \begin_layout Standard
23923 raggedleftmarginnote}{
23928 \begin_layout Standard
23934 raggedrightmarginnote}{
23942 \begin_inset Marginal
23945 \begin_layout Standard
23946 The text of this margin note is centered.
23957 \begin_layout Standard
23964 raggedleftmarginnote}{
23972 raggedrightmarginnote}{
23981 \begin_layout Standard
23987 raggedleftmarginnote}{
23992 \begin_layout Standard
23998 raggedrightmarginnote}{
24008 \begin_layout Standard
24009 \begin_inset VSpace medskip
24012 For the other features of
24016 we refer to its documentation
24017 \begin_inset LatexCommand cite
24025 \begin_layout Standard
24026 \begin_inset VSpace bigskip
24029 You can adjust the layout of margin notes by changing its definition.
24030 To create for example a header for all margin notes with the underlined,
24031 sans-serif, and bold header text
24032 \begin_inset Quotes eld
24044 \begin_inset Quotes erd
24047 , add this to your document preamble:
24050 \begin_layout Standard
24073 \begin_layout Standard
24090 underbar{Attention!}}}%
24096 \begin_layout Standard
24114 \begin_layout Standard
24121 \begin_layout Standard
24132 \begin_layout Standard
24143 \begin_layout Standard
24151 underbar{Attention!}}}%
24154 \begin_layout Standard
24168 \begin_inset Marginal
24171 \begin_layout Standard
24172 This is a margin note with a defined heading.
24184 \begin_layout Standard
24198 \begin_layout Standard
24215 \begin_inset Note Note
24218 \begin_layout Standard
24219 The margin note format is changed only for this example.
24227 \begin_layout Standard
24231 \begin_layout Standard
24241 \begin_inset Note Note
24244 \begin_layout Standard
24245 The following will be displayed when the LaTeX-package
24257 \begin_layout Standard
24258 You need to install the LaTeX-package
24262 to see the following part of this section in the output.
24265 \begin_layout Standard
24269 \begin_layout Standard
24281 \begin_layout Chapter
24285 \begin_layout Section
24287 \begin_inset LatexCommand index
24288 name "Boxes ! Introduction"
24295 \begin_layout Standard
24296 Boxes are used to format a block of text.
24297 Boxes can be used to write documents with multiple languages, see section\InsetSpace ~
24299 \begin_inset LatexCommand ref
24300 reference "sec:Minipages"
24304 , to frame texts, see section\InsetSpace ~
24306 \begin_inset LatexCommand ref
24307 reference "sec:Framed-Boxes"
24311 , to prevent words to be hyphenated, see section\InsetSpace ~
24313 \begin_inset LatexCommand ref
24314 reference "sec:Prevent-Hyphenation"
24318 , to align text, see section\InsetSpace ~
24320 \begin_inset LatexCommand ref
24321 reference "sub:Vertical-Alignment"
24325 , or to set the background color of texts, see section\InsetSpace ~
24327 \begin_inset LatexCommand ref
24328 reference "sec:Colored-Boxes"
24335 \begin_layout Standard
24336 Boxes can be inserted with the menu
24338 Insert\SpecialChar \menuseparator
24341 or the toolbar button
24342 \begin_inset Graphics
24343 filename ../images/box-insert.png
24345 scaleBeforeRotation
24350 A grey box with the label
24355 \begin_inset Graphics
24356 filename clipart/BoxInsetDefaultQt4.png
24358 scaleBeforeRotation
24362 , will be inserted.
24363 The box type can be specified by right-clicking on the box.
24364 The appearing box dialog offers the
24382 is the default for new boxes and is explained in section\InsetSpace ~
24384 \begin_inset LatexCommand ref
24385 reference "sec:Minipages"
24393 is described in section\InsetSpace ~
24395 \begin_inset LatexCommand ref
24396 reference "sec:Parboxes"
24403 \begin_layout Standard
24404 Boxes aren't numbered and can therefore not be referenced like floats or
24408 \begin_layout Standard
24409 \begin_inset Note Greyedout
24412 \begin_layout Standard
24417 Boxes must not be the item in an
24433 \begin_layout Standard
24434 \begin_inset Note Greyedout
24437 \begin_layout Standard
24442 For an unknown reason you can only set the
24451 when you use a framed box.
24457 type and without frames are explained in section\InsetSpace ~
24459 \begin_inset LatexCommand ref
24460 reference "sec:Prevent-Hyphenation"
24472 \begin_layout Section
24474 \begin_inset LatexCommand label
24475 name "sec:Box-Dialog"
24480 \begin_inset LatexCommand index
24481 name "Boxes ! Box Dialog"
24486 \begin_inset LatexCommand index
24487 name "Boxes ! Alignment"
24494 \begin_layout Standard
24495 In the box dialog you can adjust the box geometry in the fields
24504 The available units for the geometry are explained in Table\InsetSpace ~
24506 \begin_inset LatexCommand ref
24507 reference "tab:Units"
24516 offers the following additional sizes:
24519 \begin_layout Description
24520 Depth This is the plain text
24521 \begin_inset Quotes eld
24525 \begin_inset Quotes erd
24529 It ignores the total depth when there are multiple text lines in the box:
24536 \begin_inset Box Boxed
24545 height_special "depth"
24548 \begin_layout Standard
24550 Box height set to 1\InsetSpace \thinspace{}
24563 \begin_layout Description
24564 Height This is the heigth of the text that is inside the box.
24565 A value of e.\InsetSpace \thinspace{}
24567 2 for this size will set the box heigth to 2 times the text
24569 \begin_inset Box Boxed
24578 height_special "height"
24581 \begin_layout Standard
24583 Box height set to 2\InsetSpace \thinspace{}
24592 \begin_layout Description
24594 Height This is the Height\InsetSpace \thinspace{}
24595 +\InsetSpace \thinspace{}
24597 \begin_inset Box Boxed
24606 height_special "totalheight"
24609 \begin_layout Standard
24611 Box height set to 1\InsetSpace \thinspace{}
24621 \begin_layout Description
24622 Width This sets the width of the box as heigth:
24623 \begin_inset Box Boxed
24632 height_special "width"
24635 \begin_layout Standard
24637 Box height set to 1\InsetSpace \thinspace{}
24646 \begin_layout Standard
24647 \begin_inset VSpace bigskip
24650 When you have chosen an
24655 , the vertical box alignment can be:
24658 \begin_layout Description
24659 Top This is an example text line.
24661 \begin_inset Box Boxed
24670 height_special "totalheight"
24673 \begin_layout Standard
24675 This box is top-aligned.
24680 This is an example text line.
24683 \begin_layout Description
24684 Middle This is an example text line.
24686 \begin_inset Box Boxed
24695 height_special "totalheight"
24698 \begin_layout Standard
24700 This box is middle-aligned.
24705 This is an example text line.
24708 \begin_layout Description
24709 Bottom This is an example text line.
24711 \begin_inset Box Boxed
24720 height_special "totalheight"
24723 \begin_layout Standard
24725 This box is bottom-aligned.
24730 This is an example text line.
24733 \begin_layout Standard
24734 The horizontal box alignment can be set via LyX's paragraph dialog when
24735 you set the box into its own paragraph.
24738 \begin_layout Standard
24739 \begin_inset VSpace bigskip
24742 When you have chosen an
24747 , the box content can be vertical aligned to:
24750 \begin_layout Description
24751 top This is an example text line.
24753 \begin_inset Box Boxed
24762 height_special "totalheight"
24765 \begin_layout Standard
24767 This box text is top-aligned.
24772 This is an example text line.
24775 \begin_layout Description
24776 middle This is an example text line.
24778 \begin_inset Box Boxed
24787 height_special "totalheight"
24790 \begin_layout Standard
24792 This box text is middle-aligned.
24797 This is an example text line.
24800 \begin_layout Description
24801 bottom This is an example text line.
24803 \begin_inset Box Boxed
24812 height_special "totalheight"
24815 \begin_layout Standard
24817 This box text is bottom-aligned.
24822 This is an example text line.
24825 \begin_layout Description
24826 stretch This is an example text line.
24828 \begin_inset Box Boxed
24837 height_special "totalheight"
24840 \begin_layout Standard
24845 \begin_layout Standard
24850 \begin_layout Standard
24857 This is an example text line.
24860 \begin_layout Standard
24861 To stretch the box content, it must consist of more than one paragraph.
24862 In the example above every text line is in an own paragraph.
24865 \begin_layout Standard
24866 \begin_inset VSpace bigskip
24869 To align the box content horizontally you can use LyX's paragraph dialog
24870 when you have chosen an
24878 \begin_layout Standard
24880 \begin_inset Box Boxed
24889 height_special "totalheight"
24892 \begin_layout Standard
24897 \begin_layout Standard
24902 \begin_layout Standard
24912 \begin_layout Standard
24913 If you haven't set an
24918 , you can align the box content horizontally in the box dialog.
24921 \begin_layout Standard
24923 \begin_inset Box Boxed
24932 height_special "totalheight"
24935 \begin_layout Standard
24937 This box text is horizontally stretched.
24945 \begin_layout Section
24947 \begin_inset LatexCommand label
24948 name "sec:Framed-Boxes"
24953 \begin_inset LatexCommand index
24954 name "Boxes ! Frames"
24961 \begin_layout Standard
24962 The frame style of the box can be specified in the box-dialog in the drop-down
24968 The following frame types are possible:
24971 \begin_layout Description
24972 Rectangular\InsetSpace ~
24973 box This draws a rectangle frame around the box.
24974 The frame line thickness has the size of
24982 \begin_inset Box Boxed
24991 height_special "totalheight"
24994 \begin_layout Standard
25004 \begin_layout Description
25007 thin This draws an oval frame around the box.
25008 The frame line thickness has the size 0.4\InsetSpace \thinspace{}
25011 \begin_inset Box ovalbox
25020 height_special "totalheight"
25023 \begin_layout Standard
25033 \begin_layout Description
25036 thick This draws an oval frame around the box.
25037 The frame line thickness has the size 0.8\InsetSpace \thinspace{}
25040 \begin_inset Box Ovalbox
25049 height_special "totalheight"
25052 \begin_layout Standard
25062 \begin_layout Description
25063 Shadow\InsetSpace ~
25064 box This draws a rectangle frame with a shadow around the box.
25065 The frame line thickness has the size of
25071 , the shadow has a width of 4\InsetSpace \thinspace{}
25074 \begin_inset Box Shadowbox
25083 height_special "totalheight"
25086 \begin_layout Standard
25096 \begin_layout Description
25097 Double\InsetSpace ~
25098 box This draws a double-line rectangle frame around the box.
25099 The line thickness of the inner frame is 0.75\InsetSpace \thinspace{}
25106 , the thickness of the outer frame is 1.5\InsetSpace \thinspace{}
25114 The distance between the lines is 1.5\InsetSpace \thinspace{}
25121 \InsetSpace \thinspace{}
25122 +\InsetSpace \thinspace{}
25123 0.5\InsetSpace \thinspace{}
25126 \begin_inset Box Doublebox
25135 height_special "totalheight"
25138 \begin_layout Standard
25148 \begin_layout Standard
25149 \begin_inset VSpace bigskip
25152 LyX's box label will change to the used frame style when you set a frame.
25153 To be able to use the different frame styles, the LaTeX-package
25158 \begin_inset LatexCommand index
25159 name "LaTeX-packages ! fancybox"
25166 \begin_layout Standard
25167 \begin_inset VSpace bigskip
25170 The default value for the size
25176 is 0.4\InsetSpace \thinspace{}
25178 It can be changed with the following command in TeX-Code to e.\InsetSpace \thinspace{}
25180 2\InsetSpace \thinspace{}
25184 \begin_layout Standard
25194 \begin_layout Standard
25198 \begin_layout Standard
25210 \begin_inset Box Boxed
25219 height_special "totalheight"
25222 \begin_layout Standard
25224 Rectangular box with
25230 \InsetSpace \thinspace{}
25231 =\InsetSpace \thinspace{}
25232 2\InsetSpace \thinspace{}
25242 \begin_layout Standard
25256 \begin_layout Standard
25257 \begin_inset VSpace bigskip
25260 The space between the frame and the box content is for all frame styles
25261 by default 3\InsetSpace \thinspace{}
25263 You can change it by setting the length
25270 For example the command
25273 \begin_layout Standard
25283 \begin_layout Standard
25284 sets the value to 10\InsetSpace \thinspace{}
25285 pt, like for the following box:
25288 \begin_layout Standard
25292 \begin_layout Standard
25304 \begin_inset Box Boxed
25313 height_special "totalheight"
25316 \begin_layout Standard
25318 Rectangular box with
25324 \InsetSpace \thinspace{}
25325 =\InsetSpace \thinspace{}
25326 10\InsetSpace \thinspace{}
25336 \begin_layout Standard
25350 \begin_layout Standard
25351 \begin_inset VSpace bigskip
25354 The diameter of the round corners of the oval boxes can be set with the
25365 \begin_layout Standard
25373 \begin_layout Standard
25374 sets the diameter to 1\InsetSpace \thinspace{}
25379 \begin_layout Standard
25387 \begin_layout Standard
25388 sets the diameter to
25390 num\InsetSpace \thinspace{}
25391 ×\InsetSpace \thinspace{}
25392 minimum(width and heigth of box)
25404 \begin_layout Standard
25408 \begin_layout Standard
25418 \begin_inset Box Ovalbox
25427 height_special "totalheight"
25430 \begin_layout Standard
25438 \InsetSpace \thinspace{}
25439 =\InsetSpace \thinspace{}
25440 1.5\InsetSpace \thinspace{}
25450 \begin_layout Standard
25462 \begin_layout Standard
25463 \begin_inset VSpace bigskip
25466 The size of the shadow can be adjusted by changing the length
25473 It it set to 2\InsetSpace \thinspace{}
25474 pt for the following box by this command:
25477 \begin_layout Standard
25487 \begin_layout Standard
25491 \begin_layout Standard
25503 \begin_inset Box Shadowbox
25512 height_special "totalheight"
25515 \begin_layout Standard
25523 \InsetSpace \thinspace{}
25524 =\InsetSpace \thinspace{}
25525 2\InsetSpace \thinspace{}
25535 \begin_layout Standard
25549 \begin_layout Standard
25550 \begin_inset VSpace bigskip
25553 Changed lengths and widths are valid for all boxes following the commands
25557 \begin_layout Section
25559 \begin_inset LatexCommand label
25560 name "sec:Minipages"
25565 \begin_inset LatexCommand index
25566 name "Boxes ! Minipages"
25573 \begin_layout Standard
25574 Minipages are treated by LaTeX as pages within pages and can therefore for
25575 example have their own footnotes.
25578 \begin_layout Standard
25579 Minipages are useful when you write documents with different languages.
25582 \begin_layout Standard
25583 Below are two example minipages side by side.
25584 Their width is set to 45\InsetSpace \thinspace{}
25585 col% and they are separated by a horizontal fill,
25586 that was inserted via the menu
25588 Insert\SpecialChar \menuseparator
25589 Special\InsetSpace ~
25590 Formatting\SpecialChar \menuseparator
25591 Horizontal\InsetSpace ~
25597 \begin_layout Standard
25598 \begin_inset Box Frameless
25607 height_special "totalheight"
25610 \begin_layout Standard
25613 Dies ist ein deutscher Text.
25614 Dies ist ein deutscher Text.
25615 Dies ist ein deutscher Text.
25616 Dies ist ein deutscher Text.
25617 Dies ist ein deutscher Text.
25618 Dies ist ein deutscher Text.
25619 Dies ist ein deutscher Text.
25620 Dies ist ein deutscher Text.
25621 Dies ist ein deutscher Text.
25622 Dies ist ein deutscher Text.
25623 Dies ist ein deutscher Text.
25624 Dies ist ein deutscher Text.
25625 Dies ist ein deutscher Text
25629 \begin_layout Standard
25632 Dies ist eine deutsche Fußnote.
25638 Dies ist ein deutscher Text.
25639 Dies ist ein deutscher Text.
25647 \begin_inset Box Frameless
25656 height_special "totalheight"
25659 \begin_layout Standard
25660 This is an English Text.
25661 This is an English Text.
25662 This is an English Text.
25663 This is an English Text.
25664 This is an English Text.
25665 This is an English Text.
25666 This is an English Text.
25667 This is an English Text.
25668 This is an English Text.
25669 This is an English Text.
25670 This is an English Text.
25671 This is an English Text.
25672 This is an English Text.
25673 This is an English Text.
25674 This is an English Text.
25675 This is an English Text.
25679 \begin_layout Standard
25680 This is an English footnote.
25685 This is an English Text.
25694 \begin_layout Standard
25695 \begin_inset VSpace bigskip
25698 Another application for minipages are footnotes within tables.
25699 Due to a LaTeX restriction footnotes within tables doesn't appear at the
25700 bottom of the current page.
25701 But when you put the table with the footnote to a minipage, the footnote
25702 will appear at its bottom, numbered with Latin letters.
25703 The footnote number is reset to 1 in every minipage but not outside the
25707 \begin_layout Standard
25708 The footnote of this table doesn't appear:
25709 \begin_inset Tabular
25710 <lyxtabular version="3" rows="3" columns="4">
25712 <column alignment="center" valignment="top" leftline="true" width="0pt">
25713 <column alignment="center" valignment="top" leftline="true" width="0pt">
25714 <column alignment="center" valignment="top" leftline="true" width="0pt">
25715 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25716 <row topline="true">
25717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25720 \begin_layout Standard
25726 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25729 \begin_layout Standard
25735 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25738 \begin_layout Standard
25743 \begin_layout Standard
25744 This is a footnote within a table.
25754 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25757 \begin_layout Standard
25764 <row topline="true">
25765 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25768 \begin_layout Standard
25774 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25777 \begin_layout Standard
25783 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25786 \begin_layout Standard
25792 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25795 \begin_layout Standard
25802 <row topline="true" bottomline="true">
25803 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25806 \begin_layout Standard
25812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25815 \begin_layout Standard
25821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25824 \begin_layout Standard
25830 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25833 \begin_layout Standard
25847 \begin_layout Standard
25849 \begin_inset Box Frameless
25858 height_special "totalheight"
25861 \begin_layout Standard
25863 \begin_inset Tabular
25864 <lyxtabular version="3" rows="3" columns="4">
25866 <column alignment="center" valignment="top" leftline="true" width="0pt">
25867 <column alignment="center" valignment="top" leftline="true" width="0pt">
25868 <column alignment="center" valignment="top" leftline="true" width="0pt">
25869 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25870 <row topline="true">
25871 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25874 \begin_layout Standard
25880 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25883 \begin_layout Standard
25889 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25892 \begin_layout Standard
25897 \begin_layout Standard
25898 This is a footnote within a table.
25908 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25911 \begin_layout Standard
25918 <row topline="true">
25919 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25922 \begin_layout Standard
25928 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25931 \begin_layout Standard
25937 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25940 \begin_layout Standard
25946 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25949 \begin_layout Standard
25956 <row topline="true" bottomline="true">
25957 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25960 \begin_layout Standard
25966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25969 \begin_layout Standard
25975 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25978 \begin_layout Standard
25984 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25987 \begin_layout Standard
26006 \begin_layout Standard
26007 \begin_inset VSpace bigskip
26010 The document-wide paragraph settings are ignored within minipages.
26011 That means that there will be no space between paragraphs in minipages
26012 although you set it to e.\InsetSpace \thinspace{}
26018 in the document settings.
26021 \begin_layout Standard
26022 Minipages can also be used to set a background color for text parts, see
26023 section\InsetSpace ~
26025 \begin_inset LatexCommand ref
26026 reference "sub:Color-for-Paragraphs"
26033 \begin_layout Standard
26034 \begin_inset Note Greyedout
26037 \begin_layout Standard
26042 You cannot have floats or margin notes inside minipages but minipages can
26043 be used inside tables, floats, and other boxes.
26051 \begin_layout Section
26053 \begin_inset LatexCommand label
26054 name "sec:Parboxes"
26059 \begin_inset LatexCommand index
26060 name "Boxes ! Parboxes"
26067 \begin_layout Standard
26068 Parboxes are very similar to minipages with the difference that they cannot
26070 The main difference to minipages is that minipages are in contrary to parboxes
26071 no real boxes but LaTeX-environments.
26074 \begin_layout Standard
26076 \begin_inset Box Frameless
26085 height_special "totalheight"
26088 \begin_layout Standard
26089 This a text within a parbox.
26090 This a text within a parbox.
26093 \begin_layout Standard
26094 This footnote won't appear:
26098 \begin_layout Standard
26099 This footnote is inside a parbox and will therefore not appear.
26112 \begin_layout Section
26113 Boxes for Words and Characters
26114 \begin_inset LatexCommand index
26115 name "Boxes ! for Characters"
26122 \begin_layout Subsection
26123 Prevent Hyphenation
26124 \begin_inset LatexCommand label
26125 name "sec:Prevent-Hyphenation"
26130 \begin_inset LatexCommand index
26131 name "Boxes ! to Prevent Hyphenation"
26138 \begin_layout Standard
26139 You can use a special kind of boxes to prevent words or text to be hyphenated.
26142 e is an example text:
26145 \begin_layout Standard
26146 This line is an example to show how you can prevent the hyphenation of
26147 \begin_inset Quotes eld
26151 \begin_inset Quotes erd
26157 \begin_layout Standard
26158 To prevent the hyphenation of the word
26159 \begin_inset Quotes eld
26163 \begin_inset Quotes erd
26169 \begin_layout Standard
26177 \begin_layout Standard
26178 in TeX-Code before the word.
26179 Behind the word insert a closing brace
26180 \begin_inset Quotes eld
26188 \begin_inset Quotes erd
26195 \begin_layout Standard
26207 \begin_layout Standard
26208 This is the result:
26211 \begin_layout Standard
26212 This line is an example to show how you can prevent the hyphenation of
26216 \begin_layout Standard
26226 \begin_inset Quotes eld
26230 \begin_inset Quotes erd
26237 \begin_layout Standard
26247 \begin_layout Standard
26248 You can alternatively set the command
26249 \begin_inset Quotes eld
26259 \begin_inset Quotes grd
26262 as TeX-Code directly before the word:
26265 \begin_layout Standard
26266 This line is an example to show how you can prevent the hyphenation of
26267 \begin_inset Quotes eld
26274 \begin_layout Standard
26284 \begin_inset Quotes erd
26290 \begin_layout Standard
26291 Of course the word now protrudes over the side margin.
26292 To avoid this, add via the menu
26294 Insert\SpecialChar \menuseparator
26295 Special\InsetSpace ~
26296 Formatting\SpecialChar \menuseparator
26304 ) a line break before the word:
26307 \begin_layout Standard
26308 This line is an example to show how you can prevent the hyphenation of
26314 \begin_layout Standard
26324 \begin_inset Quotes eld
26328 \begin_inset Quotes erd
26335 \begin_layout Standard
26345 \begin_layout Subsection
26347 \begin_inset LatexCommand label
26348 name "sub:Vertical-Alignment"
26353 \begin_inset LatexCommand index
26354 name "Boxes ! for Vertical Alignment"
26359 \begin_inset LatexCommand index
26360 name "Boxes ! Raiseboxes"
26367 \begin_layout Standard
26368 With the help of the command
26374 you can align words, characters or other boxes vertically to the surrounding
26382 is used with the following scheme:
26385 \begin_layout Standard
26390 raisebox{lift}[height][depth]{box content}
26393 \begin_layout Standard
26394 The lift can be a positive value to raise the box or a negative value to
26398 \begin_layout Standard
26399 To align for example the word
26400 \begin_inset Quotes eld
26404 \begin_inset Quotes erd
26407 so that the bottom of the
26408 \begin_inset Quotes eld
26412 \begin_inset Quotes erd
26416 \begin_inset Quotes eld
26420 \begin_inset Quotes erd
26423 is at the baseline, insert the command
26426 \begin_layout Standard
26436 \begin_layout Standard
26437 in TeX-Code before the word.
26438 Behind the word insert a closing brace
26439 \begin_inset Quotes eld
26447 \begin_inset Quotes erd
26452 This is the result:
26455 \begin_layout Standard
26456 This is a text line with the word
26460 \begin_layout Standard
26472 \begin_inset Quotes eld
26476 \begin_inset Quotes erd
26483 \begin_layout Standard
26493 \begin_layout Standard
26494 \begin_inset VSpace bigskip
26497 When you raise or lower characters in a line, the line distance will be
26501 \begin_layout Standard
26502 This is a text line with the word
26506 \begin_layout Standard
26518 \begin_inset Quotes eld
26522 \begin_inset Quotes erd
26529 \begin_layout Standard
26538 This is a text line with the word
26542 \begin_layout Standard
26552 \begin_inset Quotes eld
26556 \begin_inset Quotes erd
26563 \begin_layout Standard
26573 \begin_layout Standard
26574 If you want to prevent this for a certain reason, set the box height to
26579 \begin_layout Standard
26589 \begin_layout Standard
26590 This is a text line with the word
26594 \begin_layout Standard
26606 \begin_inset Quotes eld
26610 \begin_inset Quotes erd
26617 \begin_layout Standard
26626 This is a text line with the word
26630 \begin_layout Standard
26634 raisebox{0.5cm}[0pt]{
26640 \begin_inset Quotes eld
26644 \begin_inset Quotes erd
26651 \begin_layout Standard
26661 \begin_layout Section
26663 \begin_inset LatexCommand label
26664 name "sec:Colored-Boxes"
26669 \begin_inset LatexCommand index
26670 name "Boxes ! Color"
26677 \begin_layout Subsection
26679 \begin_inset LatexCommand index
26680 name "Color ! for Text"
26687 \begin_layout Standard
26688 To color the background of text the text must be put into a so called
26689 \begin_inset Quotes eld
26693 \begin_inset Quotes erd
26697 This requires that the LaTeX-package
26702 \begin_inset LatexCommand index
26703 name "LaTeX-packages ! color"
26707 is loaded in the document preamble with the command
26710 \begin_layout Standard
26715 @ifundefined{textcolor}
26721 \begin_layout Standard
26732 usepackage{color}}{}
26735 \begin_layout Standard
26740 will be loaded automatically by LyX when you color text
26744 \begin_layout Standard
26745 To avoid that it is loaded twice the command
26749 @ifundef\SpecialChar \textcompwordmark{}
26760 \begin_layout Standard
26761 \begin_inset VSpace medskip
26764 Colorboxes are created with the command
26771 This will be used with the following scheme:
26774 \begin_layout Standard
26779 colorbox{color}{box content}
26782 \begin_layout Standard
26783 The box content can also be a box and colorboxes can also be within other
26787 \begin_layout Standard
26788 The following colors are predefined:
26827 You can also define your own color as described in section\InsetSpace ~
26829 \begin_inset LatexCommand ref
26830 reference "sec:Colored-Tables"
26837 \begin_layout Standard
26838 To have e.\InsetSpace \thinspace{}
26840 a red background for a word, insert the command
26843 \begin_layout Standard
26851 \begin_layout Standard
26852 before the word in TeX-Code.
26853 Behind the word insert a closing brace
26854 \begin_inset Quotes eld
26862 \begin_inset Quotes erd
26867 This is the result:
26870 \begin_layout Standard
26871 This is a line where the word
26875 \begin_layout Standard
26885 \begin_inset Quotes eld
26889 \begin_inset Quotes erd
26896 \begin_layout Standard
26903 has a red background.
26906 \begin_layout Standard
26907 \begin_inset VSpace bigskip
26910 If you would have the box frame in a different color, you can use the command
26917 with the following scheme:
26920 \begin_layout Standard
26925 fcolorbox{frame color}{box color}{box content}
26928 \begin_layout Standard
26942 The frame thickness and the space between the frame and the box content
26943 can be adjusted with the lengths
26955 , respectively, as described in section\InsetSpace ~
26957 \begin_inset LatexCommand ref
26958 reference "sec:Framed-Boxes"
26965 \begin_layout Standard
26966 For the following example the command
26969 \begin_layout Standard
26974 fcolorbox{cyan}{magenta}{
26977 \begin_layout Standard
26981 \begin_layout Standard
26982 Here is an example where the frame line thickness was set to 1\InsetSpace \thinspace{}
26989 \begin_layout Standard
27004 \begin_layout Standard
27008 fcolorbox{cyan}{magenta}{
27013 This is text within a colored, framed box.
27017 \begin_layout Standard
27027 \begin_layout Standard
27028 \begin_inset VSpace bigskip
27031 Of course you can also have colored text inside a colorbox:
27037 \begin_layout Standard
27041 fcolorbox{cyan}{magenta}{
27048 This is colored text within a colored, framed box.
27054 \begin_layout Standard
27065 \begin_layout Standard
27079 \begin_layout Standard
27082 \begin_inset VSpace medskip
27088 \begin_layout Standard
27089 \begin_inset Note Greyedout
27092 \begin_layout Standard
27097 Text in colorboxes cannot have line breaks.
27098 To color multiple text lines or paragraphs, use a box inside a colorbox
27099 as described in the following.
27107 \begin_layout Subsection
27108 Color for Paragraphs
27109 \begin_inset LatexCommand label
27110 name "sub:Color-for-Paragraphs"
27115 \begin_inset LatexCommand index
27116 name "Color ! for Paragraphs"
27123 \begin_layout Standard
27124 To set the background color for more than one text line, put the text into
27126 Before the minipage insert the
27135 \begin_layout Standard
27143 \begin_layout Standard
27145 Behind the minipage insert a closing brace
27146 \begin_inset Quotes eld
27154 \begin_inset Quotes erd
27160 \begin_layout Standard
27164 \begin_layout Standard
27168 colorbox{lightgrey}{
27174 \begin_inset Box Frameless
27183 height_special "totalheight"
27186 \begin_layout Standard
27187 This is text with background color.
27188 This is text with background color.
27191 \begin_layout Standard
27192 \begin_inset VSpace defskip
27195 The text can have footnotes
27199 \begin_layout Standard
27200 Another example footnote
27205 and can include tables and figures.
27208 \begin_layout Standard
27210 \begin_inset Tabular
27211 <lyxtabular version="3" rows="3" columns="3">
27213 <column alignment="center" valignment="top" leftline="true" width="0">
27214 <column alignment="center" valignment="top" leftline="true" width="0">
27215 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27216 <row topline="true">
27217 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27220 \begin_layout Standard
27226 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27229 \begin_layout Standard
27235 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27238 \begin_layout Standard
27245 <row topline="true">
27246 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27249 \begin_layout Standard
27255 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27258 \begin_layout Standard
27260 \begin_inset Quotes erd
27268 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27271 \begin_layout Standard
27278 <row topline="true" bottomline="true">
27279 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27282 \begin_layout Standard
27288 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27291 \begin_layout Standard
27297 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27300 \begin_layout Standard
27320 \begin_layout Standard
27330 \begin_layout Section
27331 Rotated and Scaled Boxes
27334 \begin_layout Standard
27335 To use the the commands described in this section, the LaTeX-package
27340 \begin_inset LatexCommand index
27341 name "LaTeX-packages ! graphicx"
27345 needs to be loaded in the document preamble with the command
27348 \begin_layout Standard
27353 @ifundefined{rotatebox}
27359 \begin_layout Standard
27370 usepackage{graphicx}}{}
27373 \begin_layout Standard
27374 \begin_inset Note Greyedout
27377 \begin_layout Standard
27382 Some DVI-viewers can't display rotated or scaled material.
27390 \begin_layout Standard
27391 \begin_inset Note Greyedout
27394 \begin_layout Standard
27399 Floats mustn't be inside a rotated or scaled box.
27407 \begin_layout Subsection
27409 \begin_inset LatexCommand index
27410 name "Boxes ! rotated"
27415 \begin_inset LatexCommand index
27416 name "Rotated material"
27421 \begin_inset LatexCommand index
27422 name "Figures ! rotated"
27427 \begin_inset LatexCommand index
27428 name "Table Customization ! Rotating"
27435 \begin_layout Standard
27436 To rotate material, you can put it into a rotated box.
27437 Such a box is created using the command
27443 in TeX-Code with the following scheme:
27446 \begin_layout Standard
27451 rotatebox[rotation origin]{rotation angle}{box content}
27454 \begin_layout Standard
27455 The rotation origin is specified in the form
27460 The following positions are possible:
27480 (top), and also expedient combinations of the four base positions.
27485 means, that the rotation origin is at the top left corner of the box.
27486 When no rotation origin is specified, the position
27491 The rotation angle is a number that can be negative that specifies the
27493 The rotation direction is counterclockwise.
27496 \begin_layout Standard
27497 In the following example the command
27501 rotatebox[origin=c]{60}{
27503 was inserted as TeX-Code before the text
27504 \begin_inset Quotes eld
27508 \begin_inset Quotes erd
27511 ; after the text the box was closed by a closing brace
27518 \begin_layout Standard
27523 \begin_layout Standard
27527 rotatebox[origin=c]{60}{
27536 \begin_layout Standard
27546 \begin_layout Standard
27547 The box content can also be another box or an inline formula:
27550 \begin_layout Standard
27555 \begin_layout Standard
27559 rotatebox[origin=r]{-60}{
27565 \begin_inset Box Doublebox
27574 height_special "totalheight"
27577 \begin_layout Standard
27587 \begin_layout Standard
27598 \begin_layout Standard
27602 rotatebox[origin=lb]{60}{
27608 \begin_inset Formula $\int A\,\mathrm{d}x=B$
27615 \begin_layout Standard
27625 \begin_layout Standard
27626 or an image or table:
27629 \begin_layout Standard
27634 \begin_layout Standard
27638 rotatebox[origin=lb]{90}{
27644 \begin_inset Graphics
27645 filename clipart/platypus.eps
27655 \begin_layout Standard
27662 with a rotated image
27666 \begin_layout Standard
27670 rotatebox[origin=l]{-90}{
27676 \begin_inset Tabular
27677 <lyxtabular version="3" rows="2" columns="2">
27679 <column alignment="center" valignment="top" leftline="true" width="0">
27680 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27681 <row topline="true">
27682 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27685 \begin_layout Standard
27691 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27694 \begin_layout Standard
27701 <row topline="true" bottomline="true">
27702 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27705 \begin_layout Standard
27711 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27714 \begin_layout Standard
27729 \begin_layout Standard
27739 \begin_layout Subsection
27741 \begin_inset LatexCommand index
27742 name "Boxes ! scaled"
27747 \begin_inset LatexCommand index
27748 name "Scaled material"
27753 \begin_inset LatexCommand index
27754 name "Figures ! scaled"
27759 \begin_inset LatexCommand index
27760 name "Table Customization ! Scaling"
27767 \begin_layout Standard
27768 To scale material the commands
27780 can be used as TeX-Code.
27783 \begin_layout Standard
27790 is used with the following scheme:
27793 \begin_layout Standard
27798 scalebox{horizontal}[vertical]{box content}
27801 \begin_layout Standard
27802 Horizontal and vertical are the corresponding scaling factors.
27803 If no vertical scaling factor is given, the horizontal factor will also
27804 be used as vertical one.
27807 \begin_layout Standard
27814 creates for example a double size
27818 \begin_layout Standard
27831 \begin_layout Standard
27838 , compared to the document text size.
27841 \begin_layout Standard
27846 scalebox{2}[1]{Hello}
27848 in contrary distorts the
27852 \begin_layout Standard
27865 \begin_layout Standard
27875 \begin_layout Standard
27876 If a the scaling factor is negative, the box content will be mirrored.
27877 Therefore the command
27881 scalebox{-1}[1]{Hello}
27883 can be used to create mirror writing:
27887 \begin_layout Standard
27900 \begin_layout Standard
27910 \begin_layout Standard
27915 scalebox{1}[-1]{Hello}
27921 \begin_layout Standard
27934 \begin_layout Standard
27944 \begin_layout Standard
27949 scalebox{-1}[1]{box content}
27951 there exists the command
27957 reflectbox{box content}
27962 \begin_layout Standard
27963 \begin_inset VSpace bigskip
27972 is used to scale the box to a defined width and height.
27973 The command scheme is:
27976 \begin_layout Standard
27981 resizebox{width}{height}{box content}
27984 \begin_layout Standard
27985 Is one of the two command arguments given as exclamation mark
27989 , the size is set so that the aspect ratio of the box content is kept.
27992 \begin_layout Standard
27997 resizebox{2cm}{1cm}{Hello}
28003 \begin_layout Standard
28007 resizebox{2cm}{1cm}{
28016 \begin_layout Standard
28029 resizebox{2cm}{!}{Hello}
28035 \begin_layout Standard
28048 \begin_layout Standard
28058 \begin_layout Standard
28059 \begin_inset VSpace bigskip
28063 \begin_inset Note Greyedout
28066 \begin_layout Standard
28083 are set to zero, no LaTeX-errors occur when exporting the document but
28084 the exported files can not or only partly be displayed.
28092 \begin_layout Standard
28093 \begin_inset VSpace bigskip
28099 \begin_layout Standard
28100 The boxes can be combined in any order.
28101 E.\InsetSpace \thinspace{}
28109 rotatebox[origin=c]{-45}{
28113 reflectbox{Hello}}}
28120 \begin_layout Standard
28125 \begin_layout Standard
28129 rotatebox[origin=c]{-45}{
28142 \begin_layout Standard
28152 \begin_layout Standard
28154 Images, tables, and inline formulas are allowed as box content:
28157 \begin_layout Standard
28162 \begin_layout Standard
28166 rotatebox[origin=c]{-30}{
28176 \begin_inset Graphics
28177 filename clipart/platypus.eps
28187 \begin_layout Standard
28198 \begin_layout Standard
28202 rotatebox[origin=c]{-45}{
28212 \begin_inset Tabular
28213 <lyxtabular version="3" rows="2" columns="2">
28215 <column alignment="center" valignment="top" leftline="true" width="0">
28216 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
28217 <row topline="true">
28218 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28221 \begin_layout Standard
28227 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28230 \begin_layout Standard
28237 <row topline="true" bottomline="true">
28238 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28241 \begin_layout Standard
28247 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28250 \begin_layout Standard
28265 \begin_layout Standard
28276 \begin_layout Standard
28280 rotatebox[origin=c]{-45}{
28290 \begin_inset Formula $\int A\,\mathrm{d}x=B$
28297 \begin_layout Standard
28307 \begin_layout Standard
28308 When the global formula style
28312 is used in the document
28316 \begin_layout Standard
28318 \begin_inset Quotes eld
28322 \begin_inset Quotes erd
28325 is added to the document class options.
28330 , also display formulas can be scaled.
28333 \begin_layout Section
28334 URLs (Uniform Resource Locators)
28335 \begin_inset LatexCommand index
28343 \begin_layout Standard
28344 Links to web pages or email addresses can be inserted via the menu
28346 Insert\SpecialChar \menuseparator
28350 The appearing URL dialog has two fields; the
28358 field for the URL description, which will be typeset as plain text immediately
28362 \begin_layout Standard
28363 Here is an example URL:
28364 \begin_inset LatexCommand url
28365 name "LyX's homepage"
28366 target "http://www.lyx.org"
28373 \begin_layout Standard
28376 Generate\InsetSpace ~
28379 in the URL dialog does nothing.
28380 This relict will be removed in the next LyX-version.
28383 \begin_layout Standard
28384 You cannot change the style of the link text.
28389 field will have the default text style of the document while the text of
28394 field will have the style
28395 \begin_inset Quotes eld
28403 \begin_inset Quotes erd
28409 \begin_layout Standard
28410 When you use the LaTeX-package
28415 \begin_inset LatexCommand index
28416 name "LaTeX-packages ! hyperref"
28420 to link cross-references in the output, URLs will automatically become
28421 clickable hyperlinks in DVI and PDF-output.
28424 \begin_layout Standard
28425 \begin_inset Note Greyedout
28428 \begin_layout Standard
28433 When you use the following characters: "%", "#", "^", you have to write
28434 them with a preceding backslash, e.\InsetSpace \thinspace{}
28437 \begin_inset Quotes eld
28443 \begin_inset Quotes erd
28447 URLs must not end with a backslash.
28455 \begin_layout Standard
28456 \begin_inset VSpace bigskip
28459 To create real hyperlinks without the force to write the link location to
28460 the text, you can use the command
28463 \begin_layout Standard
28468 href{link location}{link text}
28471 \begin_layout Standard
28473 To get for example a link to LyX's web page, write the command
28476 \begin_layout Standard
28481 href{http://www.lyx.org}{
28484 \begin_layout Standard
28486 Insert after the command the link text
28487 \begin_inset Quotes eld
28491 \begin_inset Quotes erd
28494 as normal text followed by a closing brace
28495 \begin_inset Quotes eld
28503 \begin_inset Quotes erd
28507 This is the result:
28511 \begin_layout Standard
28515 href{http://www.lyx.org}{
28524 \begin_layout Standard
28534 \begin_layout Standard
28535 To link to email addresses, add the prefix
28536 \begin_inset Quotes eld
28544 \begin_inset Quotes erd
28547 to the link location:
28553 \begin_layout Standard
28557 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's documentation}{
28562 lyx-docs mailing list
28566 \begin_layout Standard
28576 \begin_layout Standard
28583 instead of LyX's URL box has the advantage that you can specify the text
28584 style of the link text like for all other text parts.
28585 You can then set hyphenation points and forced linebreaks to have long
28586 link text broken at the page margin.
28587 You are furthermore able to change the text style for all URLs in your
28588 document with an option in
28592 's load command and the restrictions mentioned above doesn't apply for
28601 \begin_layout Chapter
28603 \begin_inset LatexCommand index
28604 name "External Stuff"
28611 \begin_layout Standard
28614 Insert\SpecialChar \menuseparator
28617 you can insert external material to your document.
28621 \begin_layout Description
28623 Document Another LyX document; its content is directly inserted to your
28627 \begin_layout Description
28629 Text A text document; every of its text lines is inserted to your document
28633 \begin_layout Description
28637 Lines A text document; its text lines are inserted as they
28639 Empty text lines creates a new paragraph in your document.
28642 \begin_layout Description
28643 External\InsetSpace ~
28644 Material Files in various formats.
28647 \begin_layout Description
28649 Document LyX or LaTeX-documents.
28652 \begin_layout Section
28654 \begin_inset LatexCommand index
28655 name "External Stuff ! External Material"
28662 \begin_layout Standard
28663 The external material feature allows you to insert files to your document
28664 without converting them previously to a format that can be read by the
28665 document output format because LyX takes care of needed conversions.
28666 This is similar to images that can be inserted in various image formats
28670 \begin_layout Standard
28671 External material can be inserted via the
28675 dialog that is accessible with the menu
28677 Insert\SpecialChar \menuseparator
28678 File\SpecialChar \menuseparator
28679 External\InsetSpace ~
28683 Currently the following file types (
28690 \begin_layout Description
28691 ChessDiagram This template supports chess position diagrams made with the
28696 \begin_layout Standard
28700 href{http://en.wikipedia.org/wiki/XBoard}{
28713 \begin_layout Standard
28723 \begin_layout Description
28724 Date This inserts the date in the form
28729 This is a date inserted as external material:
28730 \begin_inset External
28738 The date is not shown within LyX, only in the output.
28739 There are two other methods of inserting a date: Via menu
28741 Insert\SpecialChar \menuseparator
28744 and with the LaTeX command
28751 The different methods are compared in Table\InsetSpace ~
28753 \begin_inset LatexCommand ref
28754 reference "tab:Comparison-of-the"
28761 \begin_layout Description
28762 LilyPond This template is used for music notation typeset with the program
28766 \begin_layout Standard
28779 \begin_layout Standard
28783 href{http://en.wikipedia.org/wiki/LilyPond}{
28796 \begin_layout Standard
28804 \begin_inset Note Note
28807 \begin_layout Standard
28814 breaks the line while the remaining text in the line is stretched to the
28823 \begin_layout Description
28824 RasterImage This can be used for bitmap images.
28825 Nearly all popular image formats are supported.
28826 The image can be treated in the
28830 dialog like the images that are usually included via the
28834 dialog as described in section\InsetSpace ~
28836 \begin_inset LatexCommand ref
28837 reference "sec:Graphics-Dialog"
28842 The difference is that only raster images are allowed, that means that
28843 PDF and EPS-images are not supported.
28846 \begin_layout Description
28847 XFig This template supports images created with the program
28851 \begin_layout Standard
28855 href{http://en.wikipedia.org/wiki/Xfig}{
28868 \begin_layout Standard
28878 \begin_layout Standard
28879 \begin_inset Float table
28885 \begin_layout Standard
28886 \begin_inset Caption
28888 \begin_layout Standard
28889 \begin_inset LatexCommand label
28890 name "tab:Comparison-of-the"
28894 Comparison of the date input methods.
28902 \begin_layout Standard
28904 \begin_inset Tabular
28905 <lyxtabular version="3" rows="4" columns="4">
28907 <column alignment="center" valignment="top" leftline="true" width="0">
28908 <column alignment="center" valignment="top" leftline="true" width="0">
28909 <column alignment="center" valignment="top" leftline="true" width="0">
28910 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
28911 <row topline="true">
28912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28915 \begin_layout Standard
28921 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28924 \begin_layout Standard
28927 External Material\SpecialChar \menuseparator
28933 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28936 \begin_layout Standard
28939 Insert\SpecialChar \menuseparator
28945 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28948 \begin_layout Standard
28959 <row topline="true">
28960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28963 \begin_layout Standard
28969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28972 \begin_layout Standard
28978 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28981 \begin_layout Standard
28987 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28990 \begin_layout Standard
28991 as TeX-Code inset box
28997 <row topline="true">
28998 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29001 \begin_layout Standard
29007 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29010 \begin_layout Standard
29016 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29019 \begin_layout Standard
29025 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29028 \begin_layout Standard
29035 <row topline="true" bottomline="true">
29036 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29039 \begin_layout Standard
29045 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29048 \begin_layout Standard
29054 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29057 \begin_layout Standard
29063 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29066 \begin_layout Standard
29085 \begin_layout Standard
29086 When you use the option
29098 dialog, only the path to the inserted file is shown in the output.
29101 material is displayed in LyX either as box like this:
29102 \begin_inset Graphics
29103 filename clipart/ExternalMaterialQt4.png
29105 scaleBeforeRotation
29109 or as image, depending on the setting in the
29121 \begin_layout Standard
29128 manual explains how you can define your own templates.
29131 \begin_layout Section
29133 \begin_inset LatexCommand label
29134 name "sec:Child-Documents"
29139 \begin_inset LatexCommand index
29140 name "External Stuff ! Child Documents"
29145 \begin_inset LatexCommand index
29146 name "Files ! Include"
29153 \begin_layout Standard
29154 Child documents are used when you have a long document consisting of several
29155 larger parts or sections.
29156 For maintenance it is often useful and sometimes even required to split
29157 the document in several files that can be revised separately.
29158 The different documents are then the so called child documents and a master
29159 document connects them to print the full document or parts of it.
29162 \begin_layout Standard
29163 Included documents are displayed in LyX as a box like this:
29164 \begin_inset Graphics
29165 filename clipart/ChildDocumentQt4.png
29167 scaleBeforeRotation
29171 To include child documents to a master document use the menu
29173 Insert\SpecialChar \menuseparator
29174 File\SpecialChar \menuseparator
29179 A dialog pops up where you can choose between four include methods:
29182 \begin_layout Description
29183 Include You can include LyX and LaTeX-documents.
29192 dialog, the included documents will be opened in LyX in a new file tab
29193 so that you can modify it.
29198 \begin_layout Standard
29199 Here is a child document inserted using
29204 \begin_inset Include \include{DummyDocument1.lyx}
29212 \begin_layout Standard
29213 The section numbering includes the sections of the included files in the
29214 order they are inserted in the master document.
29215 The included example document has for example a subsection that is numbered
29216 as subsection of this section.
29217 Labels of included documents can be referenced: Subsection\InsetSpace ~
29219 \begin_inset LatexCommand ref
29220 reference "sub:External-Subsection-1"
29227 \begin_layout Standard
29228 The preamble of the child document is ignored, only the preamble of the
29229 master document is used.
29230 Included documents are inserted starting on a new page and end with a pagebreak.
29233 \begin_layout Standard
29234 With the LaTeX-command
29240 you can specify which included child documents are processed when the output
29242 This is useful when you are perhaps only working on a certain chapter of
29243 your large document as this saves compiling time.
29250 is inserted to the master document preamble.
29251 It takes a comma-separated list of the filenames as argument, e.g.
29254 \begin_layout Standard
29259 includeonly{chapter1,chapter5}
29262 \begin_layout Standard
29263 will only process the included files named
29264 \begin_inset Quotes eld
29268 \begin_inset Quotes erd
29272 \begin_inset Quotes eld
29276 \begin_inset Quotes erd
29280 \begin_inset Quotes eld
29284 \begin_inset Quotes erd
29290 \begin_layout Standard
29291 \begin_inset Note Greyedout
29294 \begin_layout Standard
29299 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
29300 w the document in case that the child document uses another document class
29301 than the master document as this will lead to unexpected outputs.
29309 \begin_layout Description
29310 Input This method is very similar to the Include method.
29311 The differences are:
29315 \begin_layout Itemize
29316 Input files don't start with a new page and don't end with a pagebreak.
29319 \begin_layout Itemize
29320 Input files can be previewed in LyX when
29322 Instant\InsetSpace ~
29325 is enabled in LyX's preferences under
29329 feel\SpecialChar \menuseparator
29335 \begin_layout Itemize
29346 \begin_layout Standard
29347 Here is a child document inserted using
29352 \begin_inset Include \input{DummyDocument2.lyx}
29360 \begin_layout Description
29361 Verbatim With this method every text file can be included.
29362 The file is shown in the output with its source code, no command used in
29363 the text is invoked.
29364 You can use the option
29366 Mark spaces in output
29368 that displays the character
29369 \begin_inset Quotes eld
29376 \begin_layout Standard
29386 \begin_inset Quotes erd
29389 for every space character in the source code.
29390 The difference to the method via the menu
29392 Insert\SpecialChar \menuseparator
29393 File\SpecialChar \menuseparator
29397 is that the document content is not shown in LyX.
29400 \begin_layout Standard
29401 Here is a child document inserted as Verbatim:
29402 \begin_inset Include \verbatiminput{DummyTextDocument.txt}
29408 \begin_inset VSpace bigskip
29411 Here is a child document inserted as Verbatim using the
29413 Mark spaces in output
29416 \begin_inset Include \verbatiminput*{DummyTextDocument.txt}
29424 \begin_layout Standard
29425 \begin_inset VSpace bigskip
29431 \begin_layout Standard
29432 \begin_inset Note Greyedout
29435 \begin_layout Standard
29440 As you can see in the examples above, the text of the documents included
29445 is not broken at the end of the document lines.
29453 \begin_layout Description
29454 Listings This type is described in chapter\InsetSpace ~
29456 \begin_inset LatexCommand ref
29457 reference "cha:Program-Code-Listings"
29464 \begin_layout Standard
29465 \begin_inset Note Greyedout
29468 \begin_layout Standard
29473 Including the same document twice in a document using different methods
29474 could cause LaTeX-problems.
29482 \begin_layout Chapter
29483 Program Code Listings
29484 \begin_inset LatexCommand label
29485 name "cha:Program-Code-Listings"
29490 \begin_inset LatexCommand index
29496 \begin_inset LatexCommand index
29497 name "Program Code"
29502 \begin_inset LatexCommand index
29503 name "Floats ! Listings"
29510 \begin_layout Standard
29511 To include and typeset program code you can use the
29515 inset that can be inserted via the menu
29517 Insert\SpecialChar \menuseparator
29526 \begin_inset LatexCommand index
29527 name "LaTeX-packages ! listings"
29531 provides a powerful and flexible way to insert program source code to your
29535 \begin_layout Standard
29536 When right-clicking on a listings inset a dialog pops up where you can set
29537 the listings format.
29540 \begin_layout Standard
29541 By default, a listing starts a new paragraph in the output.
29542 The placement option
29544 Inline\InsetSpace ~
29547 prints the listing inline like this:
29548 \begin_inset listings
29549 lstparams "language={C++}"
29553 \begin_layout Standard
29566 creates a listings float where you can specify the placement options
29567 \begin_inset Quotes eld
29575 \begin_inset Quotes erd
29579 \begin_inset Quotes eld
29587 \begin_inset Quotes erd
29591 \begin_inset Quotes eld
29599 \begin_inset Quotes erd
29603 \begin_inset Quotes eld
29611 \begin_inset Quotes erd
29614 corresponding to the float placement options described in section\InsetSpace ~
29616 \begin_inset LatexCommand ref
29617 reference "sec:Float-Placement"
29622 The placement options can be mixed and are inserted without any separation,
29623 e.\InsetSpace \thinspace{}
29626 \begin_inset Quotes eld
29634 \begin_inset Quotes erd
29639 \begin_inset Quotes eld
29643 \begin_inset Quotes erd
29646 has sometimes no effect, but you don't need to use the
29650 option in this case as also non-float listings can have captions and be
29654 \begin_layout Standard
29655 You can add captions to listings with the menu
29657 Insert\SpecialChar \menuseparator
29661 Listings can be referenced like floats: Listing\InsetSpace ~
29663 \begin_inset LatexCommand ref
29664 reference "lst:Example-Listing"
29671 \begin_layout Standard
29672 \begin_inset listings
29673 lstparams "language=Python"
29677 \begin_layout Standard
29679 \begin_inset Caption
29681 \begin_layout Standard
29682 \begin_inset LatexCommand label
29683 name "lst:Example-Listing"
29687 Example Listing float
29692 # Example listing float
29695 \begin_layout Standard
29700 \begin_layout Standard
29702 'this is a python function'
29705 \begin_layout Standard
29715 \begin_layout Standard
29716 When you have set a programming language in the listings dialog, the keywords
29717 of this language will be recognized and specially typeset in the output.
29718 In the example listings the Python keyword
29719 \begin_inset Quotes eld
29723 \begin_inset Quotes erd
29726 is recognized and printed bold in the output.
29729 \begin_layout Standard
29730 \begin_inset Note Greyedout
29733 \begin_layout Standard
29738 If you don't get bold keywords when using typewriter fonts, your typewriter
29739 font probably doesn't provide a bold shape.
29740 In this case select a different one in the menu
29742 Document\SpecialChar \menuseparator
29743 Settings\SpecialChar \menuseparator
29755 provide bold shapes.)
29763 \begin_layout Standard
29769 of the listings dialog you can specify the line numbering style.
29770 You can insert a number to specify which lines are numbered to the field
29776 When you insert e.g.
29778 \begin_inset Quotes eld
29782 \begin_inset Quotes erd
29785 , only every 3rd line will be numbered.
29788 \begin_layout Standard
29789 You can furthermore specify a range of lines, only these will then appear
29793 Extended\InsetSpace ~
29796 should be used when you use national characters like the German umlauts
29799 Here is an example listing with left line numbering, step
29801 \begin_inset Quotes eld
29805 \begin_inset Quotes erd
29809 \begin_inset Quotes eld
29813 \begin_inset Quotes erd
29817 \begin_inset Quotes eld
29820 Extended\InsetSpace ~
29822 \begin_inset Quotes erd
29826 \begin_inset Quotes eld
29832 \begin_inset Quotes erd
29835 , range lines 3\InsetSpace \thinspace{}
29836 -\InsetSpace \thinspace{}
29840 \begin_layout Standard
29841 \begin_inset listings
29842 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
29846 \begin_layout Standard
29851 \begin_layout Standard
29853 'this is a python function'
29856 \begin_layout Standard
29861 \begin_layout Standard
29866 \begin_layout Standard
29868 'This is a German word: Tschüß'
29871 \begin_layout Standard
29876 \begin_layout Standard
29881 \begin_layout Standard
29883 'this is a python function'
29886 \begin_layout Standard
29896 \begin_layout Standard
29897 \begin_inset Note Greyedout
29900 \begin_layout Standard
29905 Due to a bug in the
29909 package the line numbering is shifted by a line by every previous listing.
29910 That's the reason why the lines 2 and 5 are numbered in the above listing
29911 and not the lines 3 and 6.
29919 \begin_layout Standard
29920 \begin_inset VSpace bigskip
29926 \begin_layout Standard
29927 It is also possible to print lines from a file as listing.
29928 To do this, use the menu
29930 Insert\SpecialChar \menuseparator
29931 File\SpecialChar \menuseparator
29934 and choose the type
29942 \begin_layout Standard
29943 The other child document types are described in section\InsetSpace ~
29945 \begin_inset LatexCommand ref
29946 reference "sec:Child-Documents"
29955 In the child document dialog you can specify the listing parameters in
29957 To show a list of all available parameters, type in a question mark
29958 \begin_inset Quotes eld
29962 \begin_inset Quotes erd
29968 \begin_layout Standard
29969 To reference child document listings, write a label text into the corresponding
29970 field of the child document dialog.
29971 The label can then be referenced using the menu
29973 Insert\SpecialChar \menuseparator
29979 \begin_layout Standard
29980 Listing\InsetSpace ~
29982 \begin_inset LatexCommand ref
29983 reference "lst:file-listing"
29987 is an example for a listing of a file; there the lines 10\InsetSpace \thinspace{}
29988 -\InsetSpace \thinspace{}
29993 \begin_layout Standard
29994 \begin_inset Include \lstinputlisting{EmbeddedObjects.lyx}[breaklines=true,caption={Lines 10 - 15 of this LyX file},firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15]
30002 \begin_layout Standard
30003 \begin_inset VSpace bigskip
30009 \begin_layout Standard
30010 Global listings settings can be set in the
30012 Document\SpecialChar \menuseparator
30013 Settings\SpecialChar \menuseparator
30017 To get there a list of available options, type in a question mark
30018 \begin_inset Quotes eld
30022 \begin_inset Quotes erd
30027 Listings\InsetSpace ~
30033 \begin_layout Standard
30034 For more information about the
30038 package, we refer to its documentation
30039 \begin_inset LatexCommand cite
30047 \begin_layout Standard
30053 \begin_layout Chapter
30055 Units available in LyX
30056 \begin_inset LatexCommand index
30062 \begin_inset LatexCommand label
30063 name "cha:Units-available-in"
30070 \begin_layout Standard
30071 To understand the units described in this documentation, Table\InsetSpace ~
30073 \begin_inset LatexCommand ref
30074 reference "tab:Units"
30078 explains all units available in LyX.
30081 \begin_layout Standard
30082 \begin_inset Float table
30088 \begin_layout Standard
30089 \begin_inset Caption
30091 \begin_layout Standard
30092 \begin_inset LatexCommand label
30105 \begin_layout Standard
30106 \begin_inset VSpace medskip
30112 \begin_layout Standard
30114 \begin_inset Tabular
30115 <lyxtabular version="3" rows="20" columns="2">
30117 <column alignment="center" valignment="top" leftline="true" width="0">
30118 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
30119 <row topline="true" bottomline="true">
30120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30123 \begin_layout Standard
30129 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30132 \begin_layout Standard
30139 <row topline="true">
30140 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30143 \begin_layout Standard
30149 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30152 \begin_layout Standard
30159 <row topline="true">
30160 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30163 \begin_layout Standard
30169 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30172 \begin_layout Standard
30179 <row topline="true">
30180 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30183 \begin_layout Standard
30189 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30192 \begin_layout Standard
30199 <row topline="true">
30200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30203 \begin_layout Standard
30209 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30212 \begin_layout Standard
30213 point (72.27\InsetSpace \thinspace{}
30214 pt = 1\InsetSpace \thinspace{}
30221 <row topline="true">
30222 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30225 \begin_layout Standard
30231 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30234 \begin_layout Standard
30235 pica (1\InsetSpace \thinspace{}
30236 pc = 12\InsetSpace \thinspace{}
30243 <row topline="true">
30244 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30247 \begin_layout Standard
30253 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30256 \begin_layout Standard
30257 scaled point (65536\InsetSpace \thinspace{}
30258 sp = 1\InsetSpace \thinspace{}
30265 <row topline="true">
30266 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30269 \begin_layout Standard
30275 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30278 \begin_layout Standard
30279 big point (72\InsetSpace \thinspace{}
30280 bp = 1\InsetSpace \thinspace{}
30287 <row topline="true">
30288 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30291 \begin_layout Standard
30297 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30300 \begin_layout Standard
30301 didot (1\InsetSpace \thinspace{}
30303 \begin_inset Formula $\approx$
30306 0.376\InsetSpace \thinspace{}
30313 <row topline="true">
30314 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30317 \begin_layout Standard
30323 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30326 \begin_layout Standard
30327 cicero (1\InsetSpace \thinspace{}
30328 cc = 12\InsetSpace \thinspace{}
30335 <row topline="true">
30336 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30339 \begin_layout Standard
30345 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30348 \begin_layout Standard
30349 % of original image width
30355 <row topline="true">
30356 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30359 \begin_layout Standard
30365 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30368 \begin_layout Standard
30375 <row topline="true">
30376 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30379 \begin_layout Standard
30385 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30388 \begin_layout Standard
30395 <row topline="true">
30396 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30399 \begin_layout Standard
30405 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30408 \begin_layout Standard
30415 <row topline="true">
30416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30419 \begin_layout Standard
30425 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30428 \begin_layout Standard
30435 <row topline="true">
30436 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30439 \begin_layout Standard
30445 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30448 \begin_layout Standard
30455 <row topline="true">
30456 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30459 \begin_layout Standard
30465 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30468 \begin_layout Standard
30475 <row topline="true">
30476 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30479 \begin_layout Standard
30485 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30488 \begin_layout Standard
30499 <row topline="true">
30500 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30503 \begin_layout Standard
30509 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30512 \begin_layout Standard
30523 <row topline="true" bottomline="true">
30524 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30527 \begin_layout Standard
30533 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30536 \begin_layout Standard
30537 math unit (1\InsetSpace \thinspace{}
30538 mu = 1/18\InsetSpace \thinspace{}
30557 \begin_layout Chapter
30558 Output File Formats with Graphics
30559 \begin_inset LatexCommand label
30560 name "cha:Output-File-Formats"
30567 \begin_layout Section
30569 \begin_inset LatexCommand index
30570 name "File Formats ! DVI"
30575 \begin_inset LatexCommand index
30576 name "DVI|see{File Formats}"
30583 \begin_layout Standard
30584 This file type has the extension
30585 \begin_inset Quotes eld
30593 \begin_inset Quotes erd
30598 \begin_inset Quotes eld
30602 \begin_inset Quotes erd
30605 (DVI), because it is completely portable; you can move them from one machine
30606 to another without needing to do any sort of conversion.
30607 At the time when this file-format was developed, this was no matter of
30609 DVIs are used for quick previews and as pre-stage for other output formats,
30613 \begin_layout Standard
30614 \begin_inset Note Greyedout
30617 \begin_layout Standard
30622 DVI-files doesn't contain images, they will only be a linked.
30627 So don't forget this, if you move your
30631 file to another computer.
30632 This property can also slow down your computer when you view the DVI.
30633 Because the DVI-viewer has to convert the image in the background to make
30634 it visible when you scroll in the DVI.
30635 So we recommend to use PDF for files with many images.
30638 \begin_layout Standard
30639 You can export your document to DVI by using the menu
30641 File\SpecialChar \menuseparator
30642 Export\SpecialChar \menuseparator
30646 You can view your document as DVI via the
30650 menu or by using the toolbar button
30651 \begin_inset Graphics
30652 filename ../images/buffer-view_dvi.png
30654 scaleBeforeRotation
30661 \begin_layout Section
30663 \begin_inset LatexCommand label
30664 name "sec:PostScript"
30669 \begin_inset LatexCommand index
30670 name "File Formats ! PostScript"
30675 \begin_inset LatexCommand index
30676 name "PostScript|see{File Formats}"
30683 \begin_layout Standard
30684 This file type has the extension
30685 \begin_inset Quotes eld
30693 \begin_inset Quotes erd
30697 PostScript was developed by the company
30701 as printer language.
30702 The file contains therefore commands that the printer uses to print the
30704 PostScript can be seen as
30705 \begin_inset Quotes eld
30708 programming language
30709 \begin_inset Quotes erd
30712 ; you can calculate with it and draw diagrams and images
30716 \begin_layout Standard
30717 If you are interested to learn more about this, have a look at the LaTeX-package
30723 \begin_inset LatexCommand cite
30734 Due to this ability, the files are often bigger than PDFs.
30737 \begin_layout Standard
30738 PostScript can only contain images in the format
30739 \begin_inset Quotes eld
30742 Encapsulated PostScript
30743 \begin_inset Quotes erd
30746 (EPS, file extension
30747 \begin_inset Quotes eld
30755 \begin_inset Quotes erd
30759 As LyX allows you to use any known image format in your document, it has
30760 to convert images in the background to EPS.
30761 If you have e.g 50 images in your document, LyX has to do 50 conversions
30762 whenever you view or export your document.
30763 This will slow down your work flow with LyX drastically.
30764 So if you plan to use PostScript, you can insert your images directly as
30765 EPS to avoid this problem.
30768 \begin_layout Standard
30769 You can export your document to PostScript using the menu
30771 File\SpecialChar \menuseparator
30772 Export\SpecialChar \menuseparator
30776 You can view your document as PostScript via the
30780 menu or by using the toolbar button
30781 \begin_inset Graphics
30782 filename ../images/buffer-view_ps.png
30784 scaleBeforeRotation
30791 \begin_layout Section
30793 \begin_inset LatexCommand label
30799 \begin_inset LatexCommand index
30800 name "File Formats ! PDF"
30805 \begin_inset LatexCommand index
30813 \begin_layout Standard
30814 This file type has the extension
30815 \begin_inset Quotes eld
30823 \begin_inset Quotes erd
30828 \begin_inset Quotes eld
30831 Portable Document Format
30832 \begin_inset Quotes erd
30835 (PDF) is developed by
30839 as derivative from PostScript.
30840 It is more compressed and it uses much less commands than PostScript.
30842 \begin_inset Quotes eld
30846 \begin_inset Quotes erd
30849 implies, it can be processed at any computer system and the printed output
30850 looks exactly the same.
30853 \begin_layout Standard
30854 PDF can contain images in its own PDF format, in the format
30855 \begin_inset Quotes eld
30858 Joint Photographic Experts Group
30859 \begin_inset Quotes erd
30862 (JPG, file extension
30863 \begin_inset Quotes eld
30871 \begin_inset Quotes erd
30875 \begin_inset Quotes eld
30883 \begin_inset Quotes erd
30886 ), and in the format
30887 \begin_inset Quotes eld
30890 Portable Network Graphics
30891 \begin_inset Quotes erd
30894 (PNG, file extension
30895 \begin_inset Quotes eld
30903 \begin_inset Quotes erd
30907 Nevertheless you can use any other image format, because LyX converts them
30908 in the background to one of these formats.
30909 But as described in the section about PostScript, the image conversion
30910 will slow down your work flow.
30911 So it is recommended to use images in one of the three mentioned formats.
30914 \begin_layout Standard
30915 You can export your document to PDF via the menu
30917 File\SpecialChar \menuseparator
30920 in three different ways:
30923 \begin_layout Description
30925 (ps2pdf) This uses the program
30929 that creates a PDF from a PostScript-version of your file.
30930 The PostScript-version is produced by the program
30934 which uses a DVI-version as intermediate step.
30935 So this export variant consist of three conversions.
30938 \begin_layout Description
30940 (dvipdfm) This uses the program
30944 that converts your file in the background to DVI and in a second step to
30948 \begin_layout Description
30950 (pdflatex) This uses the program
30954 that converts your file directly to PDF.
30957 \begin_layout Standard
30958 It is recommended to use
30967 supports all features of actual PDF-versions, is quick and works stable
30973 is not under development and therefore a bit outdated.
30976 \begin_layout Standard
30977 You can view your document as PDF via the
30981 menu or by using the toolbar button
30982 \begin_inset Graphics
30983 filename ../images/buffer-view_pdf2.png
30985 scaleBeforeRotation
31001 \begin_layout Chapter
31002 Explanation of Equation\InsetSpace ~
31004 \begin_inset LatexCommand eqref
31010 \begin_inset LatexCommand label
31011 name "cha:Explanation-of-Equation"
31018 \begin_layout Standard
31024 \begin_inset Formula $W_{\mathrm{tot\, n}}$
31027 can be calculated to
31030 \begin_layout Standard
31031 \begin_inset Formula \begin{equation}
31032 W_{\mathrm{tot}\, n}=n\cdot(W_{g\, n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}\end{equation}
31039 \begin_layout Standard
31041 \begin_inset Formula $W_{g\, n}$
31044 is the given width of all cells.
31051 is the LaTeX-length between the cell text and the cell border, its default
31052 value is 6\InsetSpace \thinspace{}
31060 is the thickness of the cell border line, the default is 0.4\InsetSpace \thinspace{}
31064 \begin_layout Standard
31065 Following equation\InsetSpace ~
31067 \begin_inset LatexCommand eqref
31068 reference "eq:Wtot_n"
31072 , the total width of a multicolumn
31073 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
31079 \begin_layout Standard
31080 \begin_inset Formula \begin{equation}
31081 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
31088 \begin_layout Standard
31089 By setting equation\InsetSpace ~
31091 \begin_inset LatexCommand eqref
31092 reference "eq:Wtot_n"
31097 \begin_inset LatexCommand eqref
31098 reference "eq:Wtot_mult"
31102 equal we can calculate the needed given width
31103 \begin_inset Formula $W_{g\, n}$
31110 columns are spanned, so that each column has a total width of
31111 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
31117 \begin_layout Standard
31118 \begin_inset Formula \begin{equation}
31119 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
31126 \begin_layout Bibliography
31127 \begin_inset LatexCommand bibitem
31128 key "latexcompanion"
31132 Frank Mittelbach and Michel Goossens:
31134 The LaTeX Companion Second Edition.
31137 Addison-Wesley, 2004
31140 \begin_layout Bibliography
31141 \begin_inset LatexCommand bibitem
31146 Helmut Kopka and Patrick W.
31149 A Guide to LaTeX Fourth Edition.
31152 Addison-Wesley, 2003
31155 \begin_layout Bibliography
31156 \begin_inset LatexCommand bibitem
31163 LaTeX: A Document Preparation System.
31166 Addison-Wesley, second edition, 1994
31169 \begin_layout Bibliography
31170 \begin_inset LatexCommand bibitem
31179 \begin_layout Standard
31183 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf}
31193 \begin_layout Standard
31200 of the LaTeX-package
31205 \begin_inset LatexCommand index
31206 name "LaTeX-packages ! booktabs"
31213 \begin_layout Bibliography
31214 \begin_inset LatexCommand bibitem
31223 \begin_layout Standard
31227 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf}{
31236 \begin_layout Standard
31243 of the LaTeX-package
31248 \begin_inset LatexCommand index
31249 name "LaTeX-packages ! caption"
31256 \begin_layout Bibliography
31257 \begin_inset LatexCommand bibitem
31266 \begin_layout Standard
31270 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/anleitung.pdf}
31280 \begin_layout Standard
31287 of the LaTeX-package
31292 \begin_layout Bibliography
31293 \begin_inset LatexCommand bibitem
31302 \begin_layout Standard
31306 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf}
31316 \begin_layout Standard
31323 of the LaTeX-package
31325 endf\SpecialChar \textcompwordmark{}
31329 \begin_inset LatexCommand index
31330 name "LaTeX-packages ! endfloat"
31337 \begin_layout Bibliography
31338 \begin_inset LatexCommand bibitem
31347 \begin_layout Standard
31351 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/floatflt/floatflt.pdf}
31361 \begin_layout Standard
31368 of the LaTeX-package
31370 f\SpecialChar \textcompwordmark{}
31371 loatf\SpecialChar \textcompwordmark{}
31375 \begin_inset LatexCommand index
31376 name "LaTeX-packages ! floatflt"
31383 \begin_layout Bibliography
31384 \begin_inset LatexCommand bibitem
31393 \begin_layout Standard
31397 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf}
31407 \begin_layout Standard
31414 of the LaTeX-package
31419 \begin_inset LatexCommand index
31420 name "LaTeX-packages ! footmisc"
31427 \begin_layout Bibliography
31428 \begin_inset LatexCommand bibitem
31437 \begin_layout Standard
31441 href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf}{
31450 \begin_layout Standard
31457 of the LaTeX-package
31462 \begin_inset LatexCommand index
31463 name "LaTeX-packages ! hyperref"
31470 \begin_layout Bibliography
31471 \begin_inset LatexCommand bibitem
31480 \begin_layout Standard
31484 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf}
31494 \begin_layout Standard
31501 of the LaTeX-package
31506 \begin_inset LatexCommand index
31507 name "LaTeX-packages ! hyperref"
31514 \begin_layout Bibliography
31515 \begin_inset LatexCommand bibitem
31524 \begin_layout Standard
31528 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.p
31538 \begin_layout Standard
31545 of the LaTeX-package
31550 \begin_inset LatexCommand index
31551 name "LaTeX-packages ! koma-script"
31558 \begin_layout Bibliography
31559 \begin_inset LatexCommand bibitem
31560 key "koma-script-de"
31568 \begin_layout Standard
31572 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguide.p
31582 \begin_layout Standard
31589 of the LaTeX-package
31594 \begin_inset LatexCommand index
31595 name "LaTeX-packages ! koma-script"
31602 \begin_layout Bibliography
31603 \begin_inset LatexCommand bibitem
31612 \begin_layout Standard
31616 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf}
31626 \begin_layout Standard
31633 of the LaTeX-package
31638 \begin_inset LatexCommand index
31639 name "LaTeX-packages ! listings"
31646 \begin_layout Bibliography
31647 \begin_inset LatexCommand bibitem
31656 \begin_layout Standard
31660 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.
31670 \begin_layout Standard
31677 of the LaTeX-package
31682 \begin_inset LatexCommand index
31683 name "LaTeX-packages ! marginnote"
31690 \begin_layout Bibliography
31691 \begin_inset LatexCommand bibitem
31700 \begin_layout Standard
31704 href{http://tug.org/PSTricks/main.cgi/}{
31713 \begin_layout Standard
31720 of the LaTeX-package
31725 \begin_inset LatexCommand index
31726 name "LaTeX-packages ! PSTricks"
31733 \begin_layout Bibliography
31734 \begin_inset LatexCommand bibitem
31743 \begin_layout Standard
31747 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf}{
31756 \begin_layout Standard
31763 of the LaTeX-package
31768 \begin_inset LatexCommand index
31769 name "LaTeX-packages ! sidecap"
31776 \begin_layout Bibliography
31777 \begin_inset LatexCommand bibitem
31786 \begin_layout Standard
31790 href{http://wiki.lyx.org/LyX/NewInLyX15}{
31799 \begin_layout Standard
31806 about new features in
31813 \begin_layout Standard
31814 \begin_inset LatexCommand printindex
31821 \begin_layout Standard
31822 \begin_inset FloatList figure
31829 \begin_layout Standard
31830 \begin_inset FloatList table
31837 \begin_layout Standard
31841 \begin_layout Standard
31845 listof{Xalgorithm}{List of Algorithms}
31851 \begin_inset Note Note
31854 \begin_layout Standard
31855 see section\InsetSpace ~
31857 \begin_inset LatexCommand ref
31858 reference "sub:Algorithm-Floats"