1 #LyX 1.5.3svn 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 you have the LaTeX-packag
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 you have the LaTeX-package
17473 \begin_layout Standard
17474 \begin_inset Float table
17480 \begin_layout Standard
17481 \begin_inset Caption
17483 \begin_layout Standard
17484 \begin_inset LatexCommand label
17485 name "tab:Table-with-dashed"
17489 Table with dashed lines
17497 \begin_layout Standard
17499 \begin_inset Tabular
17500 <lyxtabular version="3" rows="5" columns="5">
17502 <column alignment="center" valignment="top" leftline="true" width="0">
17503 <column alignment="center" valignment="top" leftline="true" width="0">
17504 <column alignment="center" valignment="top" width="0" special=":c">
17505 <column alignment="center" valignment="top" leftline="true" width="0">
17506 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
17507 <row topline="true" bottomline="true">
17508 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17511 \begin_layout Standard
17517 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17520 \begin_layout Standard
17526 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17529 \begin_layout Standard
17535 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17538 \begin_layout Standard
17544 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17547 \begin_layout Standard
17554 <row topline="true">
17555 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17558 \begin_layout Standard
17564 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17567 \begin_layout Standard
17573 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17576 \begin_layout Standard
17582 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17585 \begin_layout Standard
17591 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17594 \begin_layout Standard
17602 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17605 \begin_layout Standard
17609 \begin_layout Standard
17623 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17626 \begin_layout Standard
17632 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17635 \begin_layout Standard
17641 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17644 \begin_layout Standard
17650 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17653 \begin_layout Standard
17660 <row topline="true">
17661 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17664 \begin_layout Standard
17668 \begin_layout Standard
17682 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17685 \begin_layout Standard
17691 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="c:">
17694 \begin_layout Standard
17700 <cell multicolumn="1" alignment="center" valignment="top" rightline="true" usebox="none" special="c:">
17703 \begin_layout Standard
17709 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17712 \begin_layout Standard
17719 <row topline="true" bottomline="true">
17720 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17723 \begin_layout Standard
17729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17732 \begin_layout Standard
17738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17741 \begin_layout Standard
17747 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17750 \begin_layout Standard
17756 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17759 \begin_layout Standard
17778 \begin_layout Standard
17779 LyX doesn't natively support dashed lines, so you have to use TeX-Code.
17780 As prerequisite the LaTeX-package
17785 \begin_inset LatexCommand index
17786 name "LaTeX-packages ! arydshln"
17790 must be loaded in the document preamble with the command
17793 \begin_layout Standard
17798 usepackage{arydshln}
17801 \begin_layout Standard
17802 To make a vertical line dashed, enter the colon
17803 \begin_inset Quotes eld
17807 \begin_inset Quotes erd
17810 together with the character for the horizontal alignment as LaTeX-argument
17811 in the table cell dialog.
17814 \begin_layout Standard
17815 For a horizontal dashed line add the command
17818 \begin_layout Standard
17826 \begin_layout Standard
17827 in TeX-Code as first element of the first cell in the table row.
17830 \begin_layout Standard
17831 For dashed multicolumn lines use the command
17834 \begin_layout Standard
17839 cdashline{line number
17844 \begin_layout Standard
17845 in TeX-Code as first element of the first cell in the table row.
17846 If you have for example a multicolumn spanning over columns 2 to 4 and
17847 you want to have a dashed line above, add the command
17850 \begin_layout Standard
17858 \begin_layout Standard
17859 as first element of the first cell in the row of the multicolumn.
17862 \begin_layout Standard
17863 \begin_inset VSpace bigskip
17869 \begin_layout Standard
17872 \begin_inset LatexCommand ref
17873 reference "tab:Table-with-dashed"
17878 \begin_inset Quotes eld
17886 \begin_inset Quotes erd
17889 as LaTeX-argument of the third column.
17890 The TeX-Code command
17896 was inserted to the first cell of the third row and the the TeX-Code command
17905 was inserted to the first cell of the fourth row.
17908 \begin_layout Standard
17909 \begin_inset Note Greyedout
17912 \begin_layout Standard
17917 The used LaTeX-package
17921 is apparently not compatible with the LaTeX-package
17926 \begin_inset LatexCommand index
17927 name "LaTeX-packages ! colortbl"
17931 that is used for colored tables in section\InsetSpace ~
17933 \begin_inset LatexCommand ref
17934 reference "sec:Colored-Tables"
17939 That means colored tables cannot have dashed lines.
17947 \begin_layout Standard
17951 \begin_layout Standard
17961 \begin_inset Note Note
17964 \begin_layout Standard
17965 The following will be displayed when the LaTeX-package
17977 \begin_layout Standard
17978 You need to install the package
17982 to see the content of this section in the output.
17985 \begin_layout Standard
17989 \begin_layout Standard
18001 \begin_layout Chapter
18003 \begin_inset LatexCommand index
18009 \begin_inset LatexCommand label
18017 \begin_layout Section
18019 \begin_inset LatexCommand label
18020 name "sec:FloatIntroduction"
18025 \begin_inset LatexCommand index
18026 name "Floats ! Introduction"
18033 \begin_layout Standard
18034 A float is a block of text associated with some sort of label, which doesn't
18035 have a fixed location.
18037 \begin_inset Quotes eld
18041 \begin_inset Quotes erd
18044 forward or backward a page or two, to wherever it fits best.
18051 Margin\InsetSpace ~
18054 are also floats, because they can float to the next page when there are
18055 too many notes at the page.
18058 \begin_layout Standard
18059 Floats allow a high quality layout.
18060 Images and tables can evenly be spread to the pages to avoid white space
18061 and pages without text.
18062 As the floating often destroys the context between the text and the image/table
18063 , every float can be referenced in the text.
18064 Floats are therefore numbered.
18065 Referencing is described in section\InsetSpace ~
18067 \begin_inset LatexCommand ref
18068 reference "sec:Referencing-Floats"
18075 \begin_layout Standard
18076 To insert a float, use the menu
18078 Insert\SpecialChar \menuseparator
18086 inset, a box with a label.
18087 The label will automatically be translated to the document language in
18089 Behind the label you can insert the caption text.
18090 The image or table is inserted above or below the caption in a separate
18091 paragraph within the float.
18092 More about the caption placement is described in section\InsetSpace ~
18094 \begin_inset LatexCommand ref
18095 reference "sec:Caption-Placement"
18100 To keep your LyX-document readable, you can open and close the float box
18101 by left-clicking on the box label.
18102 A closed float box looks like this:
18103 \begin_inset Graphics
18104 filename clipart/floatQt4.png
18106 scaleBeforeRotation
18110 -- a gray button with a red label.
18113 \begin_layout Standard
18114 It is recommended to insert floats as a separate paragraph to avoid possible
18115 LaTeX-errors that can occur when the surrounding text is specially formatted.
18118 \begin_layout Standard
18119 Existing figures or tables can be put into a float by marking them and then
18120 pressing the corresponding toolbar button for a new float.
18123 \begin_layout Section
18127 \begin_layout Standard
18128 Besides figure and table floats that are described in section\InsetSpace ~
18130 \begin_inset LatexCommand ref
18131 reference "sec:Figure-Floats"
18136 \begin_inset LatexCommand ref
18137 reference "sec:Table-Floats"
18141 , respectively, LyX offers the float types
18154 \begin_layout Subsection
18156 \begin_inset LatexCommand index
18157 name "Floats ! Algorithms"
18162 \begin_inset LatexCommand label
18163 name "sub:Algorithm-Floats"
18170 \begin_layout Standard
18171 \begin_inset Float algorithm
18177 \begin_layout Standard
18178 \begin_inset Caption
18180 \begin_layout Standard
18181 \begin_inset LatexCommand label
18182 name "alg:Example-Algorithm-float"
18186 Example Algorithm float
18194 \begin_layout LyX-Code
18197 Sum:= Sum + A(I); /*comment*/
18200 \begin_inset VSpace -4mm
18211 \begin_layout Standard
18212 This float type is inserted with the menu
18214 Insert\SpecialChar \menuseparator
18215 Floats\SpecialChar \menuseparator
18219 It is used for program codes and descriptions of algorithms.
18220 A possible environment for algorithms is the
18224 , described in LyX's
18229 Algorithm\InsetSpace ~
18231 \begin_inset LatexCommand ref
18232 reference "alg:Example-Algorithm-float"
18236 is an example of an algorithm float where -4\InsetSpace \thinspace{}
18237 mm vertical space was added
18238 at the end of the float to have the bottom rule exactly below the last
18242 \begin_layout Standard
18243 The float label is not automatically translated into the document language.
18244 If your document is not in English, you have to do this manually by adding
18245 the following line to the document preamble
18250 \begin_layout Standard
18255 floatname{algorithm}{your\InsetSpace ~
18259 \begin_layout Standard
18266 \begin_inset Quotes eld
18274 \begin_inset Quotes erd
18280 \begin_layout Description
18285 When the LaTeX-package
18290 \begin_inset LatexCommand index
18291 name "LaTeX-packages ! hyperref"
18295 is used to link cross-references to floats in the PDF-output, it must be
18296 loaded in the document preamble before the definition of floats to be able
18297 to reference floats.
18298 As LyX sets the float definition for algorithm floats automatically before
18299 the user editable part of the document preamble, you need to insert the
18300 following preamble lines
18304 the loading command of
18309 \begin_inset VSpace defskip
18318 newfloat{Xalgorithm}{tbp}{loa}
18322 floatname{Xalgorithm}{your\InsetSpace ~
18335 renewenvironment{algorithm}[1][tbp]
18341 \begin_layout Standard
18352 begin{Xalgorithm}[#1]}{
18357 \begin_inset VSpace defskip
18362 To insert the list of algorithms you can in this case not use the menu
18364 Insert\SpecialChar \menuseparator
18365 List\InsetSpace \thinspace{}
18366 /\InsetSpace \thinspace{}
18367 TOC\SpecialChar \menuseparator
18370 but have to use this command in TeX-Code instead:
18376 listof{Xalgorithm}{List of Algorithms}
18379 \begin_inset Note Note
18382 \begin_layout Standard
18385 is used at the end of this document
18393 \begin_layout Standard
18394 Algorithm floats are not by default numbered in the scheme
18395 \begin_inset Quotes eld
18399 \begin_inset Quotes erd
18402 like it is the case for table and figure floats in many document-classes.
18403 To number algorithm floats in the same scheme, add this command to your
18407 \begin_layout Standard
18412 numberwithin{algorithm}{chapter}
18415 \begin_layout Standard
18416 If you use the LaTeX-package
18420 , add this line instead
18428 (the commands from above) to the preamble:
18431 \begin_layout Standard
18436 numberwithin{Xalgorithm}{chapter}
18439 \begin_layout Standard
18440 To be able to use the command
18451 in the document settings the option
18461 \begin_layout Subsection
18463 \begin_inset LatexCommand index
18464 name "Floats ! Text Wrap Floats"
18469 \begin_inset LatexCommand label
18470 name "sub:floatflt-wrap-float"
18477 \begin_layout Standard
18478 This float type is used if you want to
18479 \begin_inset Quotes eld
18483 \begin_inset Quotes erd
18486 text around a figure so that it only occupies some fraction of the column
18488 It can be inserted using the menu
18489 \begin_inset Wrap figure
18494 \begin_layout Standard
18495 \begin_inset Graphics
18496 filename clipart/mobius.eps
18499 scaleBeforeRotation
18500 rotateOrigin center
18507 \begin_layout Standard
18508 \begin_inset Caption
18510 \begin_layout Standard
18511 \begin_inset LatexCommand label
18512 name "fig:This-is-a"
18516 This is a wrapped figure, and this is the brilliant caption that describes
18518 \begin_inset VSpace medskip
18533 Insert\SpecialChar \menuseparator
18534 Floats\SpecialChar \menuseparator
18539 if the LaTeX-package
18541 f\SpecialChar \textcompwordmark{}
18542 loatf\SpecialChar \textcompwordmark{}
18546 \begin_inset LatexCommand index
18547 name "LaTeX-packages ! floatflt"
18555 \begin_layout Standard
18556 Installing a LaTeX-package is explained it in the
18566 The width and placement of the float is adjusted by right-clicking on the
18568 Figure\InsetSpace ~
18570 \begin_inset LatexCommand ref
18571 reference "fig:This-is-a"
18575 is an example text wrap float with a width of 40
18576 \begin_inset Formula $\,$
18583 \begin_layout Standard
18584 Available units are explained in
18585 \begin_inset LatexCommand ref
18586 reference "cha:Units-available-in"
18595 Some space was added under the caption to separate it better from the surroundi
18599 \begin_layout Standard
18602 f\SpecialChar \textcompwordmark{}
18603 loatf\SpecialChar \textcompwordmark{}
18606 also supports table wrap floats, but they are not yet supported by LyX.
18607 If you need this, read the documentation of
18609 f\SpecialChar \textcompwordmark{}
18610 loatf\SpecialChar \textcompwordmark{}
18614 \begin_inset LatexCommand cite
18622 \begin_layout Standard
18623 \begin_inset Note Greyedout
18626 \begin_layout Standard
18632 wrap float floats are fragile! E.\InsetSpace \thinspace{}
18634 having a figure too close to the bottom
18635 of the page can mess things up in the way that the float doesn't appear
18636 in the output or that it is placed over some other text.
18640 \begin_layout Standard
18641 The better solution is to use the LaTeX-package
18643 wrapf\SpecialChar \textcompwordmark{}
18647 \begin_inset LatexCommand index
18648 name "LaTeX-packages ! wrapfig\\vspace{4mm}"
18654 f\SpecialChar \textcompwordmark{}
18655 loatf\SpecialChar \textcompwordmark{}
18658 , but it is currently not supported by LyX.
18671 \begin_layout Standard
18675 \begin_layout Itemize
18676 Wrap floats should not be placed in paragraphs that run over a page break.
18677 That means that wrap floats should better be inserted to the exact place
18678 when the document is nearly finished and you are able to estimate where
18679 page breaks will appear.
18682 \begin_layout Itemize
18683 Wrap floats should either be placed in an own paragraph before the paragraph
18684 where they should wrap into or within a paragraph.
18687 \begin_layout Itemize
18688 Wrap floats in consecutive paragraphs may cause troubles, so assure that
18689 there is a text paragraph between them as separator.
18692 \begin_layout Itemize
18693 Wrap floats are not allowed in section headings or tables.
18696 \begin_layout Section
18698 \begin_inset LatexCommand label
18699 name "sec:Float-Numbering"
18704 \begin_inset LatexCommand index
18705 name "Floats ! Numbering"
18712 \begin_layout Standard
18713 Floats are usually numbered either independent from the sections the floats
18714 are in, or in the scheme
18715 \begin_inset Quotes eld
18719 \begin_inset Quotes erd
18723 \begin_inset Quotes eld
18727 \begin_inset Quotes erd
18731 This depends on the used document class.
18734 \begin_layout Standard
18735 To change the section independent numbering, you can use this command in
18736 the document preamble:
18739 \begin_layout Standard
18751 \begin_layout Standard
18758 is the command that prints the table number, for figure floats, the command
18772 prints in the command above the table number as small roman number.
18775 \begin_layout Standard
18776 To change the numbering scheme for example to
18777 \begin_inset Quotes eld
18781 \begin_inset Quotes erd
18784 , use this command in the preamble:
18787 \begin_layout Standard
18792 numberwithin{table}{subsection}
18795 \begin_layout Standard
18796 To be able to use the command
18807 in the document settings the option
18817 \begin_layout Standard
18818 Please also have a look at section\InsetSpace ~
18820 \begin_inset LatexCommand ref
18821 reference "sub:Footnote-Numbering"
18825 for the details and important notes about the numbering commands.
18828 \begin_layout Section
18830 \begin_inset LatexCommand label
18831 name "sec:Referencing-Floats"
18836 \begin_inset LatexCommand index
18837 name "Floats ! References"
18842 \begin_inset LatexCommand index
18850 \begin_layout Standard
18851 To reference a float, insert a label into its caption using the menu
18853 Insert\SpecialChar \menuseparator
18856 or the toolbar button
18857 \begin_inset Graphics
18858 filename ../images/label-insert.png
18860 scaleBeforeRotation
18865 A grey label box like this one:
18866 \begin_inset Graphics
18867 filename clipart/labelQt4.png
18869 scaleBeforeRotation
18873 will be inserted and the label window pops up asking for the label text.
18874 LyX offers as text the first words of the caption with a prefix.
18875 The prefix depends on the float type, e.\InsetSpace \thinspace{}
18877 for figure floats the prefix will
18885 \begin_layout Standard
18886 The label is used as anchor and name for the reference.
18887 You can refer to the label using the menu
18889 Insert\SpecialChar \menuseparator
18892 or the toolbar button
18893 \begin_inset Graphics
18894 filename ../images/dialog-show-new-inset_ref.png
18896 scaleBeforeRotation
18901 A grey cross-reference box like this one:
18902 \begin_inset Graphics
18903 filename clipart/referenceQt4.png
18905 scaleBeforeRotation
18909 will be inserted and the cross-reference window appear showing all labels
18911 If you have multiple LyX-documents opened, choose the one you are working
18912 on from the drop-list at the top of the dialog.
18913 You can now sort the labels alphabetically and then choose one.
18914 At the position of the cross-reference box the float number will appear
18918 \begin_layout Standard
18919 It is recommended to use a protected space between the cross-reference name
18920 and its number to avoid line breaks between them.
18921 If a cross-reference refers to a non-existing label, you will see two question
18922 marks in the output instead of the reference.
18925 \begin_layout Standard
18926 You can change labels at any time by clicking on the label box.
18927 References to the changed label will automatically change its link to the
18928 new label text, so that you don't need to take care about this.
18931 \begin_layout Standard
18938 in the cross-reference window sets the cursor before the referred label.
18939 The button text changes then to Go\InsetSpace ~
18940 Back and you can use it to set the cursor
18941 back to the cross-reference.
18942 Right-clicking on a cross-reference box also sets the cursor before the
18943 referenced label but without a possibility to go back.
18946 \begin_layout Subsection
18947 Cross-Reference Formats
18948 \begin_inset LatexCommand label
18949 name "sub:Cross-Reference-Formats"
18954 \begin_inset LatexCommand index
18955 name "References ! Formats"
18962 \begin_layout Standard
18963 There are six varieties of cross-references:
18966 \begin_layout Description
18967 <reference>: prints the float number, this is the default:
18968 \begin_inset LatexCommand ref
18969 reference "fig:Two-distorted-images"
18976 \begin_layout Description
18977 (<reference>): prints the float number within two parentheses, this is the
18978 style normally used to reference formulas, especially when the reference
18980 \begin_inset Quotes eld
18984 \begin_inset Quotes erd
18988 \begin_inset LatexCommand eqref
18996 \begin_layout Description
18997 <page>: prints the page number: Page\InsetSpace ~
18999 \begin_inset LatexCommand pageref
19000 reference "fig:Two-distorted-images"
19007 \begin_layout Description
19010 <page>: prints the text "on page" and the page number:
19011 \begin_inset LatexCommand vpageref
19012 reference "fig:Two-distorted-images"
19019 \begin_layout Description
19020 <reference>\InsetSpace ~
19023 <page>: prints the float number, the text "on page", and
19025 \begin_inset LatexCommand vref
19026 reference "fig:Two-distorted-images"
19033 \begin_layout Description
19034 Formatted\InsetSpace ~
19035 reference: prints a self defined cross-reference format.
19037 \begin_inset Note Greyedout
19040 \begin_layout Standard
19045 This feature is only available when you have the LaTeX-package
19057 \begin_layout Standard
19058 Note that the style <page> won't print the page number if the label is on
19059 the previous, the same, or the next page.
19060 You will e.\InsetSpace \thinspace{}
19063 \begin_inset Quotes eld
19071 \begin_inset Quotes erd
19077 \begin_layout Standard
19078 The number and current page of the referred document part in the output,
19079 is automatically calculated by LaTeX.
19080 The varieties are adjusted in the field
19084 of the cross-reference window, that appear when you click on the cross-referenc
19088 \begin_layout Subsection
19089 Referencing Subfigures
19090 \begin_inset LatexCommand label
19091 name "sub:Referencing-Subfigures"
19096 \begin_inset LatexCommand index
19097 name "References ! to Subfigures"
19104 \begin_layout Standard
19105 Currently referencing subfigures is not supported by LyX, so you have to
19106 use LaTeX-commands.
19107 The label is the created with the command
19110 \begin_layout Standard
19115 label{fig:YourLabelName}
19118 \begin_layout Standard
19119 that is directly inserted into the subfigure caption field.
19120 To reference the label add this command in TeX-Code
19123 \begin_layout Standard
19128 ref{fig:YourLabelName}
19131 \begin_layout Standard
19132 to the position in your document where the reference should be placed.
19133 Here is a reference to a subfigure: Subfigure\InsetSpace ~
19138 \begin_layout Standard
19150 \begin_layout Subsection
19151 Automatic Reference Naming
19152 \begin_inset LatexCommand index
19153 name "References ! Automatic Reference Naming"
19160 \begin_layout Standard
19165 provides a very useful feature that cross-references automatically include
19166 the name of the referenced floats (or text parts like sections).
19167 You save to write e.\InsetSpace \thinspace{}
19170 \begin_inset Quotes eld
19174 \begin_inset Quotes erd
19177 before every reference box.
19178 To get this automatic reference naming, you have to load the LaTeX-package
19184 \begin_inset LatexCommand index
19185 name "LaTeX-packages ! hyperref"
19189 in the document preamble with
19192 \begin_layout Standard
19197 usepackage[pdfborder={0 0 0}]{hyperref}
19212 \begin_layout Standard
19217 is used to link cross-references in the DVI- and PDF-output, this means
19218 that the reader of your document will be able to click on a table of content
19219 (TOC) entry or on a reference and he will be shown the referenced document
19225 also creates PDF-bookmarks for every section of your document to make it
19226 easier for readers to navigate through the document.
19227 This is also used in this document but when you have a look in the document
19228 preamble you will find various options in the load command of
19233 To learn more about the
19237 package, we refer to its documentation
19238 \begin_inset LatexCommand cite
19246 \begin_layout Standard
19247 \begin_inset Note Greyedout
19250 \begin_layout Standard
19255 Automatic reference naming cannot be used when you use cross-references
19258 Formatted\InsetSpace ~
19261 style, described in section\InsetSpace ~
19263 \begin_inset LatexCommand ref
19264 reference "sub:Cross-Reference-Formats"
19276 \begin_layout Subsection
19278 \begin_inset LatexCommand label
19279 name "sub:Reference-Position"
19284 \begin_inset LatexCommand index
19285 name "References ! Reference Position"
19292 \begin_layout Standard
19298 \begin_inset LatexCommand index
19299 name "LaTeX-packages ! hyperref"
19303 to link cross-references in the output, you will see that clicking on an
19304 image float reference jumps to the image label.
19305 The caption will be the first text part on the screen, so that you cannot
19306 see the image without scrolling.
19307 This is because the reference link anchor is placed at the position of
19309 With the use of the package
19314 \begin_inset LatexCommand index
19315 name "LaTeX-packages ! hypcap"
19319 , which is part of the LaTeX-package
19324 \begin_inset LatexCommand index
19325 name "LaTeX-packages ! oberdiek"
19329 , the link anchor is placed at the beginning of a float.
19330 To use this feature for figure floats, load
19334 in the document preamble with the line
19337 \begin_layout Standard
19342 usepackage[f\SpecialChar \textcompwordmark{}
19346 \begin_layout Standard
19351 for all floats but this isn't recommended for stability reasons.
19352 For more informations, have a look at
19357 \begin_inset LatexCommand cite
19365 \begin_layout Standard
19366 \begin_inset Note Greyedout
19369 \begin_layout Standard
19378 must be loaded after
19382 in the document preamble.
19390 \begin_layout Standard
19391 \begin_inset Note Greyedout
19394 \begin_layout Standard
19403 has no effect for references to subfigures.
19411 \begin_layout Section
19413 \begin_inset LatexCommand label
19414 name "sec:Float-Placement"
19419 \begin_inset LatexCommand index
19420 name "Floats ! Placement"
19427 \begin_layout Standard
19428 Right-clicking on a float-box opens a dialog where you can alter the placement
19429 options that LaTeX uses for positioning the float.
19436 is only useful for two-column documents: If you select it, the float will
19437 span across both columns on the page instead of being confined to just
19442 Rotate\InsetSpace ~
19445 is used to rotate floats, see section
19446 \begin_inset LatexCommand ref
19447 reference "sec:Rotated-Floats"
19454 \begin_layout Standard
19455 You can use one ore more of the following options in the float dialog to
19456 set the placement for a particular float when you uncheck the option
19459 default\InsetSpace ~
19465 \begin_layout Description
19468 possible try to place the float on the position where it is inserted
19471 \begin_layout Description
19474 page try to place the float on the top of the current page
19477 \begin_layout Description
19478 Bottom\InsetSpace ~
19480 page try to place the float on the bottom of the current page
19483 \begin_layout Description
19486 floats try to place the float on an own page
19489 \begin_layout Standard
19490 The order of the above option is
19495 That means, if you use the default placement, LaTeX will first try out
19508 , and then the others.
19509 If you don't use the default, LaTeX will try only the checked options but
19511 If none of the 4 placements are possible the procedure is internally repeated
19512 but it is tried to put the float on the following page.
19515 \begin_layout Standard
19516 By default, each option has its own rules:
19519 \begin_layout Labeling
19520 \labelwidthstring 00.00.0000
19527 only floats occupying less than 70\InsetSpace \thinspace{}
19528 % of the page can be placed at the top
19538 \begin_layout Labeling
19539 \labelwidthstring 00.00.0000
19542 Bottom\InsetSpace ~
19546 : only floats occupying less than 30\InsetSpace \thinspace{}
19547 % of the page can be placed at the bottom
19558 \begin_layout Labeling
19559 \labelwidthstring 00.00.0000
19566 : only if more than 50\InsetSpace \thinspace{}
19567 % of the page are occupied by floats, several floats
19568 can be set together on a page.
19578 \begin_layout Standard
19579 If you don't like these rules, you can ignore them by using the additional
19582 Ignore\InsetSpace ~
19588 You can also redefine the rules with LaTeX-commands that are given in parenthese
19589 s behind the rules description above.
19590 To increase for example the often too small default of the bottom-rule
19591 to 50\InsetSpace \thinspace{}
19592 % of the page, add this line to your document preamble:
19595 \begin_layout Standard
19602 bottomfraction}{0.5}
19605 \begin_layout Standard
19606 Sometimes you might need, under all circumstances, a float to be placed
19607 exactly at the position where it is inserted.
19608 For this case you can use the option
19614 Use this option very rarely and only if the document is nearly ready to
19616 Because the float is then no longer able to
19617 \begin_inset Quotes eld
19621 \begin_inset Quotes erd
19624 when you change your document and this will often destroy the page layout.
19627 \begin_layout Standard
19628 There are no placement options for text wrap floats, because they are always
19629 surrounded by the text of a certain paragraph.
19630 \begin_inset VSpace bigskip
19636 \begin_layout Standard
19637 Sometimes you have the problem that a float is placed at the top of a page
19638 while its corresponding section starts at the middle of the page, so that
19639 the reader could think the float is part of the previous section.
19640 To avoid this the LaTeX-command
19647 It suppresses a given float placement for the page where it is inserted
19648 and can therefore be used to avoid that floats could be set before a section
19650 To get this, add these commands to your document preamble:
19653 \begin_layout Standard
19675 \begin_layout Standard
19676 You can define the same for all section headings, like chapters and subsections.
19677 This definition is not recommended to be used for small text parts like
19678 subsubsections because LaTeX may then have problems to find a suitable
19682 \begin_layout Standard
19683 \begin_inset VSpace bigskip
19686 In some cases it is required to have all figures/tables at the end of the
19688 For this purpose the LaTeX-package
19693 \begin_inset LatexCommand index
19694 name "LaTeX-packages ! endfloat"
19699 It puts all figure and table floats at the end of the document into own
19701 At the original float position a text hint like
19702 \begin_inset Quotes eld
19707 [Figure\InsetSpace ~
19711 \begin_inset Quotes erd
19715 The endfloat-package is loaded in the preamble with the line
19718 \begin_layout Standard
19723 usepackage[options]{endfloat}
19726 \begin_layout Standard
19727 There are various package options to format the created figure/table sections.
19728 For more information we refer to the
19733 \begin_inset LatexCommand cite
19741 \begin_inset Note Greyedout
19744 \begin_layout Standard
19749 doesn't provide an automatic translation for the text hint, you have to
19750 do this manually, see section\InsetSpace ~
19752 \begin_inset LatexCommand cite
19765 \begin_inset Note Greyedout
19768 \begin_layout Standard
19773 There is currently a bug in
19777 when the caption contains a German
19778 \begin_inset Quotes eld
19782 \begin_inset Quotes erd
19786 Use in this case the command
19787 \begin_inset Quotes eld
19797 \begin_inset Quotes erd
19800 in TeX-Code instead of
19801 \begin_inset Quotes eld
19805 \begin_inset Quotes erd
19816 \begin_layout Standard
19817 \begin_inset VSpace bigskip
19820 For more details about float placements, have a look at LaTeX books,
19821 \begin_inset LatexCommand cite
19822 key "latexcompanion,latexguide,latexbook"
19829 \begin_layout Section
19831 \begin_inset LatexCommand label
19832 name "sec:Rotated-Floats"
19837 \begin_inset LatexCommand index
19838 name "Floats ! Rotating"
19845 \begin_layout Standard
19846 Especially for wide tables you might have floats rotated.
19847 To rotate a whole float including the caption, right-click on the float-box
19850 Rotate\InsetSpace ~
19856 \begin_layout Standard
19857 Rotated floats are always placed on its own page (or column, when you have
19858 a two-column document).
19859 They are rotated so that you can read them from the outside margin.
19860 To force a certain rotation direction for all pages, you can add either
19869 to the document class options.
19872 \begin_layout Standard
19873 Referencing rotated floats is the same like for normal floats, the caption
19874 format is also the same: Table\InsetSpace ~
19876 \begin_inset LatexCommand ref
19877 reference "tab:Rotated-table"
19881 is an example of a rotated table float.
19884 \begin_layout Standard
19885 \begin_inset Note Greyedout
19888 \begin_layout Standard
19893 Not all DVI-viewers are able to display rotated floats.
19901 \begin_layout Standard
19902 \begin_inset Float table
19907 \begin_layout Standard
19908 \begin_inset Caption
19910 \begin_layout Standard
19911 \begin_inset LatexCommand label
19912 name "tab:Rotated-table"
19924 \begin_layout Standard
19926 \begin_inset Tabular
19927 <lyxtabular version="3" rows="1" columns="5">
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" width="0">
19933 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19934 <row topline="true" bottomline="true">
19935 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19938 \begin_layout Standard
19944 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19947 \begin_layout Standard
19953 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19956 \begin_layout Standard
19962 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19965 \begin_layout Standard
19971 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19974 \begin_layout Standard
19993 \begin_layout Section
19995 \begin_inset LatexCommand index
19996 name "Caption ! Formatting"
20001 \begin_inset LatexCommand index
20002 name "Floats ! Caption Formatting"
20007 \begin_inset LatexCommand index
20008 name "LaTeX-packages ! caption"
20013 \begin_inset LatexCommand label
20014 name "sec:Caption-Formatting"
20021 \begin_layout Standard
20026 environment is the default paragraph environment for
20031 On the LyX screen captions appear as label, e.\InsetSpace \thinspace{}
20034 \begin_inset Quotes eld
20042 \begin_inset Quotes erd
20045 followed by the caption text.
20047 \begin_inset Quotes eld
20051 \begin_inset Quotes erd
20054 is the actual reference number.
20055 By default the label and the number are in the same font as the caption
20056 text and a colon follows the number to divide the label from the text.
20057 This caption format is not suitable for all document formats.
20061 \begin_layout Standard
20062 To change the default caption format, load the LaTeX-package
20067 \begin_inset LatexCommand index
20068 name "LaTeX-packages ! caption"
20072 in the document preamble with this line:
20075 \begin_layout Standard
20080 usepackage[format definition]{caption}
20083 \begin_layout Standard
20084 To have for example the label and the number in sans-serif bold font and
20085 the table captions always above the table like in this document, use the
20089 \begin_layout Standard
20094 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
20097 \begin_layout Standard
20098 You can also define different caption formats for the different float types.
20099 In this case load the
20103 package without format specific options and define the different formats
20104 with the help of the command
20107 \begin_layout Standard
20112 captionsetup[float type]{format definition}
20115 \begin_layout Standard
20116 in the document preamble.
20117 For example the caption formats of Figure\InsetSpace ~
20119 \begin_inset LatexCommand ref
20120 reference "fig:This-is-an-fig"
20124 and Table\InsetSpace ~
20126 \begin_inset LatexCommand ref
20127 reference "tab:This-is-an-tab"
20131 can be created using these commands in the document preamble:
20134 \begin_layout Standard
20139 usepackage[tableposition=top]{caption}
20147 captionsetup[f\SpecialChar \textcompwordmark{}
20148 igure]{labelfont={tt}, textfont=it, indention=1cm,%
20154 \begin_layout Standard
20162 captionsetup[figure]
20173 captionsetup[table]{labelfont={bf,sf}}
20176 \begin_layout Standard
20177 \begin_inset Note Greyedout
20180 \begin_layout Standard
20189 has no effect when a
20194 \begin_inset LatexCommand index
20195 name "LaTeX-packages ! koma-script"
20199 document class is used.
20200 In this case the document class option
20212 \begin_layout Standard
20213 For more information about the package
20217 we refer to its documentation
20218 \begin_inset LatexCommand cite
20219 key "caption,caption-de"
20226 \begin_layout Standard
20227 To change the label name from e.g.
20229 \begin_inset Quotes eld
20233 \begin_inset Quotes erd
20237 \begin_inset Quotes eld
20241 \begin_inset Quotes erd
20244 use this preamble command:
20247 \begin_layout Standard
20254 fnum@figure}{Image~
20259 \begin_layout Standard
20266 inserts the figure number and
20269 \begin_inset Quotes eld
20275 \begin_inset Quotes erd
20278 creates a protected space.
20281 \begin_layout Standard
20282 \begin_inset VSpace bigskip
20290 \begin_inset LatexCommand index
20291 name "LaTeX-packages ! koma-script"
20297 article (koma-script)
20305 letter (koma-script)
20309 report (koma-script)
20311 \InsetSpace \thinspace{}
20312 ), you can alternatively to the
20320 's built-in command
20327 For example, to have the caption label in bold, add this command to your
20331 \begin_layout Standard
20336 setkomafont{captionlabel}{
20341 \begin_layout Standard
20342 For more information about
20353 \begin_inset LatexCommand cite
20354 key "koma-script,koma-script-de"
20361 \begin_layout Standard
20365 \begin_layout Standard
20369 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
20376 \begin_inset Note Note
20379 \begin_layout Standard
20380 The caption format is changed only for this example.
20388 \begin_layout Standard
20389 \begin_inset Float figure
20395 \begin_layout Standard
20397 \begin_inset Graphics
20398 filename clipart/mobius.eps
20401 scaleBeforeRotation
20408 \begin_layout Standard
20409 \begin_inset Caption
20411 \begin_layout Standard
20412 \begin_inset LatexCommand label
20413 name "fig:This-is-an-fig"
20417 This is an example figure caption that is longer than one line to show the
20418 different caption format.
20419 Here a self-defined caption format is used.
20432 \begin_layout Standard
20436 \begin_layout Standard
20440 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
20449 \begin_layout Standard
20450 \begin_inset Float table
20456 \begin_layout Standard
20457 \begin_inset Caption
20459 \begin_layout Standard
20460 \begin_inset LatexCommand label
20461 name "tab:This-is-an-tab"
20465 This is an example table caption that is longer than one line to show the
20466 different caption format.
20467 Here the standard caption format for tables in this document is used.
20475 \begin_layout Standard
20477 \begin_inset Tabular
20478 <lyxtabular version="3" rows="1" columns="5">
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" width="0">
20484 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
20485 <row topline="true" bottomline="true">
20486 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20489 \begin_layout Standard
20495 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20498 \begin_layout Standard
20504 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20507 \begin_layout Standard
20513 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20516 \begin_layout Standard
20522 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20525 \begin_layout Standard
20544 \begin_layout Section
20546 \begin_inset LatexCommand index
20547 name "Caption ! Placement"
20552 \begin_inset LatexCommand index
20553 name "Floats ! Caption Placement"
20558 \begin_inset LatexCommand label
20559 name "sec:Caption-Placement"
20566 \begin_layout Standard
20567 The common caption placement rule is:
20570 \begin_layout Description
20571 Figure: Caption is set below the figure
20574 \begin_layout Description
20575 Table: Caption is set above the table
20578 \begin_layout Standard
20579 Having the caption above the table is unfortunately not supported in LaTeX's
20581 That means if you are using the document classes
20597 there will be no space between the caption and the table.
20598 To insert the needed space, add the following option to the load command
20599 of the LaTeX-package
20603 in your document preamble
20607 \begin_layout Standard
20608 See section\InsetSpace ~
20610 \begin_inset LatexCommand ref
20611 reference "sec:Caption-Formatting"
20615 for more information of the package
20627 \begin_layout Standard
20633 \begin_layout Standard
20639 \begin_inset LatexCommand index
20640 name "LaTeX-packages ! koma-script"
20646 article (koma-script)
20654 letter (koma-script)
20658 report (koma-script)
20660 \InsetSpace \thinspace{}
20661 ), you can alternatively to the
20665 package set the document class option
20672 \begin_layout Standard
20673 \begin_inset VSpace bigskip
20676 It is also possible to set the caption beside a figure or table.
20677 To get this the LaTeX-package
20682 \begin_inset LatexCommand index
20683 name "LaTeX-packages ! sidecap"
20687 has to be loaded in the document preamble with the line
20690 \begin_layout Standard
20695 usepackage[option]{sidecap}
20698 \begin_layout Standard
20699 If you set no option, the caption is placed on the side of the outer page
20700 margin -- to the right on odd pages, to the left on even pages.
20701 You can change the placement to inner margin with the option
20706 To force the placement always to the right or left, use the option
20717 \begin_layout Standard
20718 To place in LyX the caption of a float on the side, it is necessary to add
20719 these commands to the document preamble:
20722 \begin_layout Standard
20728 \begin_layout Standard
20741 \begin_layout Standard
20762 \begin_layout Standard
20783 \begin_layout Standard
20794 renewenvironment{table}{
20801 \begin_layout Standard
20814 \begin_layout Standard
20835 \begin_layout Standard
20853 \begin_layout Standard
20866 \begin_layout Standard
20881 f\SpecialChar \textcompwordmark{}
20888 \begin_layout Standard
20901 MyEndf\SpecialChar \textcompwordmark{}
20904 endf\SpecialChar \textcompwordmark{}
20911 \begin_layout Standard
20922 renewenvironment{f\SpecialChar \textcompwordmark{}
20925 begin{SCf\SpecialChar \textcompwordmark{}
20928 end{SCf\SpecialChar \textcompwordmark{}
20932 \begin_layout Standard
20945 \begin_layout Standard
20958 f\SpecialChar \textcompwordmark{}
20967 \begin_layout Standard
20980 endf\SpecialChar \textcompwordmark{}
20983 MyEndf\SpecialChar \textcompwordmark{}
20987 \begin_layout Standard
20993 \begin_layout Standard
20994 The commands allow you to redefine the floats so that the caption is set
20996 For figure floats use the command
20999 \begin_layout Standard
21007 \begin_layout Standard
21008 in TeX-Code before the float.
21009 Behind the float insert the command
21012 \begin_layout Standard
21020 \begin_layout Standard
21021 in TeX-Code to get back to the original float definition.
21024 \begin_layout Standard
21025 For table floats use the corresponding commands
21028 \begin_layout Standard
21042 \begin_layout Standard
21043 Figure\InsetSpace ~
21045 \begin_inset LatexCommand ref
21046 reference "fig:cap-beside-fig"
21050 and Table\InsetSpace ~
21052 \begin_inset LatexCommand ref
21053 reference "tab:cap-beside-tab"
21057 are examples where the caption is set beside.
21060 \begin_layout Standard
21061 You can see in the examples that the caption text appears at the top of
21062 the floats for table floats and at the bottom for figure floats.
21063 To change this, you can use the command
21066 \begin_layout Standard
21071 sidecaptionvpos{float type}{placement}
21074 \begin_layout Standard
21075 in the document preamble or in TeX-Code before the float.
21076 The float type is either
21084 , the placement can be
21085 \begin_inset Quotes eld
21093 \begin_inset Quotes erd
21097 \begin_inset Quotes eld
21105 \begin_inset Quotes erd
21109 \begin_inset Quotes eld
21117 \begin_inset Quotes erd
21121 To have for example the caption of figure floats vertically centered, use
21125 \begin_layout Standard
21130 sidecaptionvpos{f\SpecialChar \textcompwordmark{}
21134 \begin_layout Standard
21135 This was used for Figure\InsetSpace ~
21137 \begin_inset LatexCommand ref
21138 reference "fig:cap-beside-fig-2"
21145 \begin_layout Standard
21146 \begin_inset VSpace medskip
21149 For more information about the package
21153 we refer to its documentation
21154 \begin_inset LatexCommand cite
21162 \begin_layout Standard
21163 \begin_inset Note Greyedout
21166 \begin_layout Standard
21176 \begin_inset LatexCommand index
21177 name "LaTeX-packages ! hypcap"
21181 , described in section\InsetSpace ~
21183 \begin_inset LatexCommand ref
21184 reference "sub:Reference-Position"
21188 , has no effect on floats with the caption set beside.
21196 \begin_layout Standard
21200 \begin_layout Standard
21212 \begin_layout Standard
21213 \begin_inset Float figure
21218 \begin_layout Standard
21219 \begin_inset Graphics
21220 filename clipart/escher-lsd.eps
21222 scaleBeforeRotation
21229 \begin_layout Standard
21230 \begin_inset Caption
21232 \begin_layout Standard
21233 \begin_inset LatexCommand label
21234 name "fig:cap-beside-fig"
21238 This is a caption beside a figure.
21251 \begin_layout Standard
21255 \begin_layout Standard
21267 \begin_layout Standard
21268 \begin_inset Float table
21273 \begin_layout Standard
21274 \begin_inset Caption
21276 \begin_layout Standard
21277 \begin_inset LatexCommand label
21278 name "tab:cap-beside-tab"
21282 This is a caption beside a table.
21290 \begin_layout Standard
21291 \begin_inset Tabular
21292 <lyxtabular version="3" rows="4" columns="5">
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" width="0">
21298 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
21299 <row topline="true">
21300 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21303 \begin_layout Standard
21309 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21312 \begin_layout Standard
21318 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21321 \begin_layout Standard
21327 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21330 \begin_layout Standard
21336 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21339 \begin_layout Standard
21346 <row topline="true">
21347 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21350 \begin_layout Standard
21356 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21359 \begin_layout Standard
21365 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21368 \begin_layout Standard
21374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21377 \begin_layout Standard
21383 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21386 \begin_layout Standard
21393 <row topline="true">
21394 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21397 \begin_layout Standard
21403 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21406 \begin_layout Standard
21412 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21415 \begin_layout Standard
21421 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21424 \begin_layout Standard
21430 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21433 \begin_layout Standard
21440 <row topline="true" bottomline="true">
21441 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21444 \begin_layout Standard
21450 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21453 \begin_layout Standard
21459 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21462 \begin_layout Standard
21468 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21471 \begin_layout Standard
21477 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21480 \begin_layout Standard
21499 \begin_layout Standard
21503 \begin_layout Standard
21515 \begin_layout Standard
21519 \begin_layout Standard
21523 sidecaptionvpos{figure}{c}
21529 \begin_inset Float figure
21534 \begin_layout Standard
21535 \begin_inset Graphics
21536 filename clipart/escher-lsd.eps
21538 scaleBeforeRotation
21545 \begin_layout Standard
21546 \begin_inset Caption
21548 \begin_layout Standard
21549 \begin_inset LatexCommand label
21550 name "fig:cap-beside-fig-2"
21554 This is a vertically centered caption beside a figure.
21567 \begin_layout Standard
21571 \begin_layout Standard
21583 \begin_layout Section
21585 \begin_inset LatexCommand label
21586 name "sec:Listings-of-Floats"
21591 \begin_inset LatexCommand index
21592 name "Floats ! Float Lists"
21599 \begin_layout Standard
21600 Similar to the the table of contents where the sections of the document
21601 are listed, there are listings for all float types, like the figures of
21603 You can insert them via the
21605 Insert\SpecialChar \menuseparator
21613 \begin_layout Standard
21614 The list entries are the float captions or its short title, the float number,
21615 and the page number where they appear in the document.
21618 \begin_layout Standard
21619 You can find the list of figures and tables at the end of this document.
21622 \begin_layout Chapter
21626 \begin_layout Section
21628 \begin_inset LatexCommand label
21629 name "sec:LyX-Notes"
21634 \begin_inset LatexCommand index
21635 name "Notes ! LyX Notes"
21642 \begin_layout Standard
21643 Notes are inserted with the toolbar button
21644 \begin_inset Graphics
21645 filename ../images/note-insert.png
21647 scaleBeforeRotation
21653 Insert\SpecialChar \menuseparator
21657 There are five types of notes:
21660 \begin_layout Description
21662 Note This note type is for internal notes that won't appear in the output.
21663 Its note-box looks like this:
21668 \begin_inset Graphics
21669 filename clipart/LyXNoteImageQt4.png
21672 scaleBeforeRotation
21677 \begin_inset Note Note
21680 \begin_layout Standard
21681 This is text in a note box that doesn't appear in the output.
21689 \begin_layout Description
21690 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
21691 ent, when you export the document to LaTeX via the menu
21693 File\SpecialChar \menuseparator
21694 Export\SpecialChar \menuseparator
21695 LaTeX (pdflatex) / (plain)
21698 Its note-box looks like this:
21703 \begin_inset Graphics
21704 filename clipart/CommentNoteImageQt4.png
21707 scaleBeforeRotation
21712 \begin_inset Note Comment
21715 \begin_layout Standard
21716 This is text in a note box that only appears as comment in LaTeX-files.
21724 \begin_layout Description
21725 Greyed\InsetSpace ~
21726 Out This note will appear in the output as grey text.
21727 Its note-box looks like this:
21732 \begin_inset Graphics
21733 filename clipart/GreyedOutNoteImageQt4.png
21736 scaleBeforeRotation
21746 \begin_layout Standard
21750 renewenvironment{lyxgreyedout}
21753 \begin_layout Standard
21757 textcolor[gray]{0.8}
21767 \begin_inset Note Greyedout
21770 \begin_layout Standard
21775 \begin_layout Standard
21776 This is an example footnote within a greyed out note.
21781 of a comment that appears in the output as grey text.
21790 \begin_layout Standard
21794 renewenvironment{lyxgreyedout}
21797 \begin_layout Standard
21811 \begin_inset Note Note
21814 \begin_layout Standard
21815 The greyed out note is here redefined to show it with the original LyX definitio
21816 n because greyed out notes are redefined in the preamble of this document,
21817 as described below, to have blue text.
21826 As you can see in the example, the first line of greyed out notes is a bit
21827 indented and greyed out notes can have footnotes.
21830 \begin_layout Description
21831 Framed This note will appear in the output as framed text.
21832 Its note-box looks like this:
21837 \begin_inset Graphics
21838 filename clipart/FramedNoteImageQt4.png
21841 scaleBeforeRotation
21846 \begin_inset Note Framed
21849 \begin_layout Standard
21850 This is text in a note box that appears framed in the output.
21855 In contrary to framed boxes
21859 \begin_layout Standard
21860 Framed boxes are described in section\InsetSpace ~
21862 \begin_inset LatexCommand ref
21863 reference "sec:Framed-Boxes"
21872 the frame uses always the whole text width and the note is set into its
21876 \begin_layout Description
21877 Shaded This note will appear in the output with red background color.
21878 Its note box looks like this:
21883 \begin_inset Graphics
21884 filename clipart/ShadedNoteImageQt4.png
21887 scaleBeforeRotation
21892 \begin_inset Note Shaded
21895 \begin_layout Standard
21896 This text in a note box appears in the output with red background.
21901 In contrary to colored boxes
21905 \begin_layout Standard
21906 Colored boxes are described in section\InsetSpace ~
21908 \begin_inset LatexCommand ref
21909 reference "sec:Colored-Boxes"
21918 the note uses always the whole text width and the note is set into its
21922 \begin_layout Standard
21923 \begin_inset VSpace bigskip
21926 When you use the toolbar button
21927 \begin_inset Graphics
21928 filename ../images/note-insert.png
21930 scaleBeforeRotation
21940 You can switch between the five note types by right-clicking on the note-box.
21945 If you want to turn existing text into a note, mark it and click on the
21959 To change a note to text, press the backspace key when the cursor is in
21960 the first position of a note, or press the deletey key when the cursor
21961 is in the very last position of the note, respectively.
21964 \begin_layout Standard
21965 \begin_inset VSpace bigskip
21968 You can change the text color of the greyed out notes in the preamble with
21969 the following command:
21972 \begin_layout Standard
21977 renewenvironment{lyxgreyedout}
21983 \begin_layout Standard
22001 \begin_layout Standard
22002 The available colors and the method to define own colors is explained in
22003 section\InsetSpace ~
22005 \begin_inset LatexCommand ref
22006 reference "sec:Colored-Tables"
22013 \begin_layout Standard
22014 Notes that appear in blue in this document are set using greyed out notes
22018 \begin_layout Standard
22019 \begin_inset VSpace bigskip
22025 \begin_layout Standard
22034 notes can be set in the
22041 \begin_layout Standard
22042 The default frame width for
22046 notes is 0.4\InsetSpace \thinspace{}
22047 pt; it can be changed by changing the size
22054 The default space between the note content and the frame is 9\InsetSpace \thinspace{}
22056 be changed by changing the size
22063 For example the frame appearance of the following
22067 note is set with the TeX-Code commands
22070 \begin_layout Standard
22080 \begin_layout Standard
22084 \begin_layout Standard
22096 \begin_inset Note Framed
22099 \begin_layout Standard
22113 \begin_layout Standard
22127 \begin_layout Standard
22128 \begin_inset VSpace bigskip
22134 \begin_layout Standard
22139 notes the default space between the note content and the note border is
22140 3\InsetSpace \thinspace{}
22141 pt; it can be changed by changing the size
22149 The default background color red can be changed with the command
22153 def\SpecialChar \textcompwordmark{}
22161 def\SpecialChar \textcompwordmark{}
22164 command is explained in section\InsetSpace ~
22166 \begin_inset LatexCommand ref
22167 reference "sec:Colored-Tables"
22175 \begin_layout Standard
22182 \SpecialChar \textcompwordmark{}
22187 requires the LaTeX-package
22191 in the preamble, see section\InsetSpace ~
22193 \begin_inset LatexCommand ref
22194 reference "sec:Colored-Boxes"
22206 \begin_layout Standard
22207 For example the appearance of the following
22211 note is set with the TeX-Code commands
22214 \begin_layout Standard
22227 def\SpecialChar \textcompwordmark{}
22228 inecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
22231 \begin_layout Standard
22235 \begin_layout Standard
22248 \begin_layout Standard
22252 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
22258 \begin_inset Note Shaded
22261 \begin_layout Standard
22264 This is yellow text in a
22274 note with darkgreen background.
22283 \begin_layout Standard
22296 \begin_layout Standard
22300 definecolor{shadecolor}{rgb}{1,0,0}
22308 \begin_layout Section
22310 \begin_inset LatexCommand label
22311 name "sec:Footnotes"
22316 \begin_inset LatexCommand index
22317 name "Notes ! Footnotes"
22322 \begin_inset LatexCommand index
22330 \begin_layout Standard
22331 Footnotes can be inserted using the toolbar button
22332 \begin_inset Graphics
22333 filename ../images/footnote-insert.png
22335 scaleBeforeRotation
22341 Insert\SpecialChar \menuseparator
22353 then the following footnote-box:
22354 \begin_inset Graphics
22355 filename clipart/footnoteQt4.png
22357 scaleBeforeRotation
22365 where you can enter the footnote text.
22366 If you want to turn existing text into a footnote, mark it and click on
22388 to text, press the Backspace key when the cursor is in the first position
22397 , or press the Delete key when the cursor is in the very last position of
22409 \begin_layout Standard
22410 Here is an example footnote:
22418 \begin_layout Standard
22419 \begin_inset LatexCommand label
22420 name "foot:This-is-an"
22424 This is an example footnote.
22437 \begin_layout Standard
22441 newcounter{MyRepeatFoot}
22444 \begin_layout Standard
22448 setcounter{MyRepeatFoot}{
22458 \begin_layout Standard
22459 The footnote will appear in the output as a superscript number at the text
22460 position where the footnote box is placed.
22461 The footnote text is placed at the bottom of the current page.
22462 The footnote number is calculated by LaTeX, the numbers are consecutive.
22463 It depends on your document-class, if the footnote number is reset for
22467 \begin_layout Standard
22468 Footnotes can be referenced like floats: Insert a label into the footnote
22469 and cross-reference this label in the text as described in section\InsetSpace ~
22471 \begin_inset LatexCommand ref
22472 reference "sec:Referencing-Floats"
22478 This is a cross-reference of Footnote\InsetSpace ~
22480 \begin_inset LatexCommand ref
22481 reference "foot:This-is-an"
22488 \begin_layout Standard
22489 \begin_inset VSpace defskip
22492 To use footnotes within tables, you have to use minipages, see section\InsetSpace ~
22494 \begin_inset LatexCommand ref
22495 reference "sec:Minipages"
22500 Footnotes within longtables are described in section\InsetSpace ~
22502 \begin_inset LatexCommand ref
22503 reference "sub:Footnotes-in-Longtables"
22510 \begin_layout Standard
22511 \begin_inset VSpace defskip
22514 To create only a mark for a footnote, use the command
22518 footnotemark[number]
22521 This is used when you have the same annotation several times in a text
22522 but doesn't want to print the footnote text every time.
22525 the number of the repeating footnote while you are writing the text, you
22526 have to store its number.
22527 For the following footnote mark example, these commands were inserted in
22528 TeX-Code behind Footnote\InsetSpace ~
22530 \begin_inset LatexCommand ref
22531 reference "foot:This-is-an"
22535 to store the footnote number:
22538 \begin_layout Standard
22543 newcounter{MyRepeatFoot}
22547 setcounter{MyRepeatFoot}{
22552 \begin_layout Standard
22553 The footnote mark was then created with this command:
22556 \begin_layout Standard
22566 \begin_layout Standard
22567 Here is an example footnote mark:
22575 \begin_layout Standard
22589 \begin_layout Subsection
22591 \begin_inset LatexCommand label
22592 name "sub:Footnote-Numbering"
22597 \begin_inset LatexCommand index
22598 name "Footnotes ! Numbering"
22605 \begin_layout Standard
22606 To reset the footnote number back to 1 after each section
22608 , add this command to your document preamble:
22611 \begin_layout Standard
22616 @addtoreset{footnote}{section}
22619 \begin_layout Standard
22620 \begin_inset VSpace bigskip
22623 The following preamble command changes the footnote numbering style to small
22627 \begin_layout Standard
22639 \begin_layout Standard
22643 \begin_layout Standard
22656 This is a footnote with roman numbering:
22660 \begin_layout Standard
22661 This is an example footnote with roman numbering.
22669 \begin_layout Standard
22670 To change the numbering style to capital roman numerals replace in the command
22685 \begin_inset Quotes eld
22689 \begin_inset Quotes erd
22692 footnotes with capital or small Latin letters use
22706 \begin_inset Quotes eld
22710 \begin_inset Quotes erd
22713 footnotes with symbols use
22722 \begin_layout Standard
22723 \begin_inset Note Greyedout
22726 \begin_layout Standard
22731 You can only number 26 footnotes with Latin letters, because this numbering
22732 is limited to single letters.
22740 \begin_inset Note Greyedout
22743 \begin_layout Standard
22748 You can only number 9 footnotes with symbols.
22756 \begin_layout Standard
22757 To return to the default numbering style when you changed to another one,
22770 in the command above.
22774 \begin_layout Standard
22790 \begin_layout Standard
22791 \begin_inset VSpace bigskip
22797 \begin_layout Standard
22798 If you want to have footnotes numbered in the scheme
22799 \begin_inset Quotes eld
22803 \begin_inset Quotes erd
22806 , add the following command to your document preamble:
22809 \begin_layout Standard
22814 numberwithin{footnote}{chapter}
22817 \begin_layout Standard
22818 To be able to use the command
22829 in the document settings the option
22839 \begin_layout Standard
22843 \begin_layout Standard
22847 numberwithin{footnote}{chapter}
22852 This is another example footnote:
22858 \begin_layout Standard
22859 This is a footnote numbered in the scheme
22860 \begin_inset Quotes eld
22864 \begin_inset Quotes erd
22878 \begin_layout Standard
22894 \begin_layout Standard
22895 \begin_inset Note Greyedout
22898 \begin_layout Standard
22909 always prints out the footnote number as arabic number; previous redefinitions
22910 to get non-arabic numbers are overwritten.
22918 \begin_layout Standard
22919 So to get for example the scheme
22920 \begin_inset Quotes eld
22926 \begin_inset Quotes erd
22929 , use this command instead of
22938 \begin_layout Standard
22952 \begin_layout Subsection
22954 \begin_inset LatexCommand index
22955 name "Footnotes ! Placement"
22962 \begin_layout Standard
22963 If you have several footnotes in one page, they appear without vertical
22964 space between them at the bottom of the page.
22965 To make them better readable you can e.\InsetSpace \thinspace{}
22967 add 1.5\InsetSpace \thinspace{}
22968 mm space with the following
22972 \begin_layout Standard
22994 \begin_layout Standard
22995 \begin_inset VSpace bigskip
22998 In a two-column document the footnotes appear at the bottom of every column,
22999 see Figure\InsetSpace ~
23001 \begin_inset LatexCommand ref
23002 reference "fig:Standard-footnote-placement"
23007 If the footnotes should only appear at the bottom of the right column,
23008 as in Figure\InsetSpace ~
23010 \begin_inset LatexCommand ref
23011 reference "fig:Footnote-placement-in"
23015 , use the LaTeX-package
23020 \begin_inset LatexCommand index
23021 name "LaTeX-packages ! ftnright"
23025 with this command in the document preamble:
23028 \begin_layout Standard
23033 usepackage{ftnright}
23036 \begin_layout Standard
23037 \begin_inset Float figure
23043 \begin_layout Standard
23047 \begin_layout Standard
23057 \begin_inset Graphics
23058 filename clipart/without_fntright.pdf
23060 scaleBeforeRotation
23068 \begin_layout Standard
23078 \begin_layout Standard
23079 \begin_inset Caption
23081 \begin_layout Standard
23082 \begin_inset LatexCommand label
23083 name "fig:Standard-footnote-placement"
23087 Standard footnote placement in two-column documents.
23100 \begin_layout Standard
23101 \begin_inset Float figure
23107 \begin_layout Standard
23111 \begin_layout Standard
23121 \begin_inset Graphics
23122 filename clipart/with_fntright.pdf
23124 scaleBeforeRotation
23132 \begin_layout Standard
23142 \begin_layout Standard
23143 \begin_inset Caption
23145 \begin_layout Standard
23146 \begin_inset LatexCommand label
23147 name "fig:Footnote-placement-in"
23151 Footnote placement in two-column documents when the LaTeX-package
23168 \begin_layout Standard
23169 \begin_inset VSpace bigskip
23172 In some scientific literature it is usual to collect the footnotes and print
23173 them in a separate paragraph at the the end of a section, like in Figure\InsetSpace ~
23175 \begin_inset LatexCommand ref
23176 reference "fig:Endnotes----footnotes"
23181 They are then so called
23182 \begin_inset Quotes eld
23186 \begin_inset Quotes erd
23190 To use endnotes instead of footnotes in your document, load the LaTeX-package
23196 \begin_inset LatexCommand index
23197 name "LaTeX-packages ! endnotes"
23201 with the document preamble lines
23204 \begin_layout Standard
23209 usepackage{endnotes}
23220 \begin_layout Standard
23221 To insert the collected footnotes, insert the command
23224 \begin_layout Standard
23232 \begin_layout Standard
23233 in TeX-Code at the the end of a section or chapter.
23236 \begin_layout Standard
23237 \begin_inset Float figure
23242 \begin_layout Standard
23247 \begin_layout Standard
23257 \begin_inset Graphics
23258 filename clipart/endnotes.pdf
23259 scaleBeforeRotation
23267 \begin_layout Standard
23277 \begin_layout Standard
23278 \begin_inset Caption
23280 \begin_layout Standard
23281 \begin_inset LatexCommand label
23282 name "fig:Endnotes----footnotes"
23286 Endnotes -- footnotes are printed in a separate paragraph at the end of
23287 sections or chapters.
23300 \begin_layout Standard
23301 \begin_inset VSpace medskip
23304 The paragraph heading for the endnotes isn't automatically translated into
23305 the document language, this must be done manually.
23306 The following preamble command translate the default English name
23307 \begin_inset Quotes eld
23311 \begin_inset Quotes erd
23314 to the German translation
23315 \begin_inset Quotes eld
23319 \begin_inset Quotes erd
23325 \begin_layout Standard
23332 notesname}{Anmerkungen}
23335 \begin_layout Standard
23336 \begin_inset VSpace medskip
23339 The numbering of endnotes can be changed like the footnote numbering as
23340 described in section\InsetSpace ~
23342 \begin_inset LatexCommand ref
23343 reference "sub:Footnote-Numbering"
23347 ; just replace the command
23360 To reset the endnote number use the command
23366 as described in section\InsetSpace ~
23368 \begin_inset LatexCommand ref
23369 reference "sub:Footnote-Numbering"
23373 and replace the command parameter
23384 \begin_layout Standard
23385 To create only a mark for an endnote, use the command
23389 endnotemark[number]
23391 similar to the command
23397 , described in section\InsetSpace ~
23399 \begin_inset LatexCommand ref
23400 reference "sec:Footnotes"
23407 \begin_layout Standard
23408 \begin_inset VSpace bigskip
23411 Footnotes can also be placed in the page margin and the footnote text alignment
23412 can be changed, see the LaTeX-package
23417 \begin_inset LatexCommand index
23418 name "LaTeX-packages ! footmisc"
23423 \begin_inset LatexCommand cite
23428 for more information about this.
23431 \begin_layout Standard
23432 For various further footnote formatting issues have a look at LaTeX-books,
23434 \begin_inset LatexCommand cite
23435 key "latexcompanion,latexguide,latexbook"
23442 \begin_layout Section
23444 \begin_inset LatexCommand index
23445 name "Notes ! Margin Notes"
23452 \begin_layout Standard
23453 Margin notes look and behave in LyX like footnotes.
23454 They are inserted via the menu
23456 Insert\SpecialChar \menuseparator
23457 Marginal\InsetSpace ~
23460 or the toolbar button
23461 \begin_inset Graphics
23462 filename ../images/marginalnote-insert.png
23464 scaleBeforeRotation
23479 \begin_inset Quotes eld
23483 \begin_inset Quotes erd
23486 appears where you can enter the text of the margin note.
23489 \begin_layout Standard
23490 At the side is an example margin note.
23494 \begin_inset Marginal
23497 \begin_layout Standard
23498 This is a margin note.
23506 \begin_layout Standard
23507 Margin notes appear at the right side in single-sided documents.
23508 In double-sided documents they appear in the outer margin -- left on even
23509 pages, right on odd pages.
23510 The text of margin notes is aligned opposite to the outer margin -- right-align
23511 ed when the note appears in the left margin.
23512 The first line of the margin note is placed at the position of the text
23513 line where it is inserted in the document.
23516 \begin_layout Standard
23517 \begin_inset VSpace bigskip
23520 To place the margin note in the inner margin, add the command
23523 \begin_layout Standard
23531 \begin_layout Standard
23532 in TeX-Code before a margin note.
23533 The new placement is valid for all following margin notes.
23537 \begin_layout Standard
23547 \begin_inset Marginal
23550 \begin_layout Standard
23551 This is a margin note in the inner margin.
23563 \begin_inset Note Greyedout
23566 \begin_layout Standard
23571 There is often not enough space in the inner margin so that the notes are
23572 not correctly displayed in the output.
23580 \begin_layout Standard
23581 To return to the default placement insert the command
23584 \begin_layout Standard
23592 \begin_layout Standard
23597 \begin_layout Standard
23607 \begin_inset Note Greyedout
23610 \begin_layout Standard
23615 The command is ignored when it is within a paragraph where also the command
23630 \begin_layout Standard
23631 \begin_inset VSpace bigskip
23638 \begin_inset Marginal
23641 \begin_layout Standard
23642 AVeryLongMarginParWord that isn't hyphenated.
23650 Similar to the case described in section\InsetSpace ~
23652 \begin_inset LatexCommand ref
23653 reference "sub:Multiple-Lines-in"
23657 , long words cannot be hyphenated when they are the first word in a margin
23659 To avoid this, insert the command
23662 \begin_layout Standard
23670 \begin_layout Standard
23671 in TeX-Code before the word
23675 \begin_inset Marginal
23678 \begin_layout Standard
23682 \begin_layout Standard
23691 AVeryLongMarginParWord that is hyphenated.
23699 \begin_layout Standard
23700 \begin_inset VSpace bigskip
23706 \begin_layout Standard
23707 \begin_inset Note Greyedout
23710 \begin_layout Standard
23715 Margin notes can normally not be used inside tables, floats, and footnotes.
23723 \begin_layout Standard
23724 \begin_inset VSpace bigskip
23730 \begin_layout Standard
23734 \begin_layout Standard
23744 \begin_inset Note Note
23747 \begin_layout Standard
23748 The following section will only be displayed when you have the LaTeX-package
23761 \begin_layout Standard
23762 This restriction can be evaded by using the LaTeX-package
23767 \begin_inset LatexCommand index
23768 name "LaTeX-packages ! marginnote"
23773 By adding these two lines to your document preamble, the command used by
23774 LyX for margin notes is redefined to use the command provided by the
23781 \begin_layout Standard
23786 usepackage{marginnote}
23797 \begin_layout Standard
23798 This is also used in this document because
23802 has another useful feature: You can set a vertical offset for the note.
23803 This is often needed when too many margin notes are too close together
23804 or for a better page layout.
23805 The offset is set in LyX as TeX-Code directly behind the margin note in
23809 \begin_layout Standard
23815 \begin_layout Standard
23816 where the offset is a length with one of the units listed in Table\InsetSpace ~
23818 \begin_inset LatexCommand ref
23819 reference "tab:Units"
23824 A negative value shifts the note up, a positive value shifts it down.
23828 For example the margin note beside this text line is shifted up 1.5\InsetSpace \thinspace{}
23830 the TeX-Code-command
23831 \begin_inset Quotes eld
23841 \begin_inset Quotes erd
23845 \begin_inset Marginal
23848 \begin_layout Standard
23849 This margin note is shifted up 1.5\InsetSpace \thinspace{}
23850 cm from its original position.
23862 \begin_layout Standard
23872 \begin_layout Standard
23873 \begin_inset VSpace medskip
23880 you can also change the alignment of the text in the margin note.
23881 For example the commands
23884 \begin_layout Standard
23891 raggedleftmarginnote}{
23899 raggedrightmarginnote}{
23904 \begin_layout Standard
23905 set the alignment to centered.
23910 raggedleftmarginnote
23912 denotes margin notes that appear at the left side.
23919 \begin_layout Standard
23925 raggedleftmarginnote}{
23930 \begin_layout Standard
23936 raggedrightmarginnote}{
23944 \begin_inset Marginal
23947 \begin_layout Standard
23948 The text of this margin note is centered.
23959 \begin_layout Standard
23966 raggedleftmarginnote}{
23974 raggedrightmarginnote}{
23983 \begin_layout Standard
23989 raggedleftmarginnote}{
23994 \begin_layout Standard
24000 raggedrightmarginnote}{
24010 \begin_layout Standard
24011 \begin_inset VSpace medskip
24014 For the other features of
24018 we refer to its documentation
24019 \begin_inset LatexCommand cite
24027 \begin_layout Standard
24028 \begin_inset VSpace bigskip
24031 You can adjust the layout of margin notes by changing its definition.
24032 To create for example a header for all margin notes with the underlined,
24033 sans-serif, and bold header text
24034 \begin_inset Quotes eld
24046 \begin_inset Quotes erd
24049 , add this to your document preamble:
24052 \begin_layout Standard
24075 \begin_layout Standard
24092 underbar{Attention!}}}%
24098 \begin_layout Standard
24116 \begin_layout Standard
24123 \begin_layout Standard
24134 \begin_layout Standard
24145 \begin_layout Standard
24153 underbar{Attention!}}}%
24156 \begin_layout Standard
24170 \begin_inset Marginal
24173 \begin_layout Standard
24174 This is a margin note with a defined heading.
24186 \begin_layout Standard
24200 \begin_layout Standard
24217 \begin_inset Note Note
24220 \begin_layout Standard
24221 The margin note format is changed only for this example.
24229 \begin_layout Standard
24233 \begin_layout Standard
24243 \begin_inset Note Note
24246 \begin_layout Standard
24247 The following will be displayed when the LaTeX-package
24259 \begin_layout Standard
24260 You need to install the LaTeX-package
24264 to see the following part of this section in the output.
24267 \begin_layout Standard
24271 \begin_layout Standard
24283 \begin_layout Chapter
24287 \begin_layout Section
24289 \begin_inset LatexCommand index
24290 name "Boxes ! Introduction"
24297 \begin_layout Standard
24298 Boxes are used to format a block of text.
24299 Boxes can be used to write documents with multiple languages, see section\InsetSpace ~
24301 \begin_inset LatexCommand ref
24302 reference "sec:Minipages"
24306 , to frame texts, see section\InsetSpace ~
24308 \begin_inset LatexCommand ref
24309 reference "sec:Framed-Boxes"
24313 , to prevent words to be hyphenated, see section\InsetSpace ~
24315 \begin_inset LatexCommand ref
24316 reference "sec:Prevent-Hyphenation"
24320 , to align text, see section\InsetSpace ~
24322 \begin_inset LatexCommand ref
24323 reference "sub:Vertical-Alignment"
24327 , or to set the background color of texts, see section\InsetSpace ~
24329 \begin_inset LatexCommand ref
24330 reference "sec:Colored-Boxes"
24337 \begin_layout Standard
24338 Boxes can be inserted with the menu
24340 Insert\SpecialChar \menuseparator
24344 A grey box with the label
24349 \begin_inset Graphics
24350 filename clipart/BoxInsetDefaultQt4.png
24352 scaleBeforeRotation
24356 , will be inserted.
24357 The box type can be specified by right-clicking on the box.
24358 The appearing box dialog offers the
24376 is the default for new boxes and is explained in section\InsetSpace ~
24378 \begin_inset LatexCommand ref
24379 reference "sec:Minipages"
24387 is described in section\InsetSpace ~
24389 \begin_inset LatexCommand ref
24390 reference "sec:Parboxes"
24397 \begin_layout Standard
24398 Boxes aren't numbered and can therefore not be referenced like floats or
24402 \begin_layout Standard
24403 \begin_inset Note Greyedout
24406 \begin_layout Standard
24411 Due to a bug in LyX you have to insert a protected space behind a box when
24412 you want to separate in a line the box from the following text with a space.
24420 \begin_layout Standard
24421 \begin_inset Note Greyedout
24424 \begin_layout Standard
24429 Boxes must not be the item in an
24445 \begin_layout Standard
24446 \begin_inset Note Greyedout
24449 \begin_layout Standard
24454 For an unknown reason you can only set the
24463 when you use a framed box.
24469 type and without frames are explained in section\InsetSpace ~
24471 \begin_inset LatexCommand ref
24472 reference "sec:Prevent-Hyphenation"
24484 \begin_layout Section
24486 \begin_inset LatexCommand label
24487 name "sec:Box-Dialog"
24492 \begin_inset LatexCommand index
24493 name "Boxes ! Box Dialog"
24498 \begin_inset LatexCommand index
24499 name "Boxes ! Alignment"
24506 \begin_layout Standard
24507 In the box dialog you can adjust the box geometry in the fields
24516 The available units for the geometry are explained in Table\InsetSpace ~
24518 \begin_inset LatexCommand ref
24519 reference "tab:Units"
24528 offers the following additional sizes:
24531 \begin_layout Description
24532 Depth This is the plain text
24533 \begin_inset Quotes eld
24537 \begin_inset Quotes erd
24541 It ignores the total depth when there are multiple text lines in the box:
24548 \begin_inset Box Boxed
24557 height_special "depth"
24560 \begin_layout Standard
24562 Box height set to 1\InsetSpace \thinspace{}
24575 \begin_layout Description
24576 Height This is the heigth of the text that is inside the box.
24577 A value of e.\InsetSpace \thinspace{}
24579 2 for this size will set the box heigth to 2 times the text
24581 \begin_inset Box Boxed
24590 height_special "height"
24593 \begin_layout Standard
24595 Box height set to 2\InsetSpace \thinspace{}
24604 \begin_layout Description
24606 Height This is the Height\InsetSpace \thinspace{}
24607 +\InsetSpace \thinspace{}
24609 \begin_inset Box Boxed
24618 height_special "totalheight"
24621 \begin_layout Standard
24623 Box height set to 1\InsetSpace \thinspace{}
24633 \begin_layout Description
24634 Width This sets the width of the box as heigth:
24635 \begin_inset Box Boxed
24644 height_special "width"
24647 \begin_layout Standard
24649 Box height set to 1\InsetSpace \thinspace{}
24658 \begin_layout Standard
24659 \begin_inset VSpace bigskip
24662 When you have chosen an
24667 , the vertical box alignment can be:
24670 \begin_layout Description
24671 Top This is an example text line.
24673 \begin_inset Box Boxed
24682 height_special "totalheight"
24685 \begin_layout Standard
24687 This box is top-aligned.
24693 This is an example text line.
24696 \begin_layout Description
24697 Middle This is an example text line.
24699 \begin_inset Box Boxed
24708 height_special "totalheight"
24711 \begin_layout Standard
24713 This box is middle-aligned.
24719 This is an example text line.
24722 \begin_layout Description
24723 Bottom This is an example text line.
24725 \begin_inset Box Boxed
24734 height_special "totalheight"
24737 \begin_layout Standard
24739 This box is bottom-aligned.
24745 This is an example text line.
24748 \begin_layout Standard
24749 The horizontal box alignment can be set via LyX's paragraph dialog when
24750 you set the box into its own paragraph.
24753 \begin_layout Standard
24754 \begin_inset VSpace bigskip
24757 When you have chosen an
24762 , the box content can be vertical aligned to:
24765 \begin_layout Description
24766 top This is an example text line.
24768 \begin_inset Box Boxed
24777 height_special "totalheight"
24780 \begin_layout Standard
24782 This box text is top-aligned.
24788 This is an example text line.
24791 \begin_layout Description
24792 middle This is an example text line.
24794 \begin_inset Box Boxed
24803 height_special "totalheight"
24806 \begin_layout Standard
24808 This box text is middle-aligned.
24814 This is an example text line.
24817 \begin_layout Description
24818 bottom This is an example text line.
24820 \begin_inset Box Boxed
24829 height_special "totalheight"
24832 \begin_layout Standard
24834 This box text is bottom-aligned.
24840 This is an example text line.
24843 \begin_layout Description
24844 stretch This is an example text line.
24846 \begin_inset Box Boxed
24855 height_special "totalheight"
24858 \begin_layout Standard
24863 \begin_layout Standard
24868 \begin_layout Standard
24876 This is an example text line.
24879 \begin_layout Standard
24880 To stretch the box content, it must consist of more than one paragraph.
24881 In the example above every text line is in an own paragraph.
24884 \begin_layout Standard
24885 \begin_inset VSpace bigskip
24888 To align the box content horizontally you can use LyX's paragraph dialog
24889 when you have chosen an
24897 \begin_layout Standard
24899 \begin_inset Box Boxed
24908 height_special "totalheight"
24911 \begin_layout Standard
24916 \begin_layout Standard
24921 \begin_layout Standard
24931 \begin_layout Standard
24932 If you haven't set an
24937 , you can align the box content horizontally in the box dialog.
24940 \begin_layout Standard
24942 \begin_inset Box Boxed
24951 height_special "totalheight"
24954 \begin_layout Standard
24956 This box text is horizontally stretched.
24964 \begin_layout Section
24966 \begin_inset LatexCommand label
24967 name "sec:Framed-Boxes"
24972 \begin_inset LatexCommand index
24973 name "Boxes ! Frames"
24980 \begin_layout Standard
24981 The frame style of the box can be specified in the box-dialog in the drop-down
24987 The following frame types are possible:
24990 \begin_layout Description
24991 Rectangular\InsetSpace ~
24992 box This draws a rectangle frame around the box.
24993 The frame line thickness has the size of
25001 \begin_inset Box Boxed
25010 height_special "totalheight"
25013 \begin_layout Standard
25023 \begin_layout Description
25026 thin This draws an oval frame around the box.
25027 The frame line thickness has the size 0.4\InsetSpace \thinspace{}
25030 \begin_inset Box ovalbox
25039 height_special "totalheight"
25042 \begin_layout Standard
25052 \begin_layout Description
25055 thick This draws an oval frame around the box.
25056 The frame line thickness has the size 0.8\InsetSpace \thinspace{}
25059 \begin_inset Box Ovalbox
25068 height_special "totalheight"
25071 \begin_layout Standard
25081 \begin_layout Description
25082 Shadow\InsetSpace ~
25083 box This draws a rectangle frame with a shadow around the box.
25084 The frame line thickness has the size of
25090 , the shadow has a width of 4\InsetSpace \thinspace{}
25093 \begin_inset Box Shadowbox
25102 height_special "totalheight"
25105 \begin_layout Standard
25115 \begin_layout Description
25116 Double\InsetSpace ~
25117 box This draws a double-line rectangle frame around the box.
25118 The line thickness of the inner frame is 0.75\InsetSpace \thinspace{}
25125 , the thickness of the outer frame is 1.5\InsetSpace \thinspace{}
25133 The distance between the lines is 1.5\InsetSpace \thinspace{}
25140 \InsetSpace \thinspace{}
25141 +\InsetSpace \thinspace{}
25142 0.5\InsetSpace \thinspace{}
25145 \begin_inset Box Doublebox
25154 height_special "totalheight"
25157 \begin_layout Standard
25167 \begin_layout Standard
25168 \begin_inset VSpace bigskip
25171 LyX's box label will change to the used frame style when you set a frame.
25172 To be able to use the different frame styles, the LaTeX-package
25177 \begin_inset LatexCommand index
25178 name "LaTeX-packages ! fancybox"
25185 \begin_layout Standard
25186 \begin_inset VSpace bigskip
25189 The default value for the size
25195 is 0.4\InsetSpace \thinspace{}
25197 It can be changed with the following command in TeX-Code to e.\InsetSpace \thinspace{}
25199 2\InsetSpace \thinspace{}
25203 \begin_layout Standard
25213 \begin_layout Standard
25217 \begin_layout Standard
25229 \begin_inset Box Boxed
25238 height_special "totalheight"
25241 \begin_layout Standard
25243 Rectangular box with
25249 \InsetSpace \thinspace{}
25250 =\InsetSpace \thinspace{}
25251 2\InsetSpace \thinspace{}
25261 \begin_layout Standard
25275 \begin_layout Standard
25276 \begin_inset VSpace bigskip
25279 The space between the frame and the box content is for all frame styles
25280 by default 3\InsetSpace \thinspace{}
25282 You can change it by setting the length
25289 For example the command
25292 \begin_layout Standard
25302 \begin_layout Standard
25303 sets the value to 10\InsetSpace \thinspace{}
25304 pt, like for the following box:
25307 \begin_layout Standard
25311 \begin_layout Standard
25323 \begin_inset Box Boxed
25332 height_special "totalheight"
25335 \begin_layout Standard
25337 Rectangular box with
25343 \InsetSpace \thinspace{}
25344 =\InsetSpace \thinspace{}
25345 10\InsetSpace \thinspace{}
25355 \begin_layout Standard
25369 \begin_layout Standard
25370 \begin_inset VSpace bigskip
25373 The diameter of the round corners of the oval boxes can be set with the
25384 \begin_layout Standard
25392 \begin_layout Standard
25393 sets the diameter to 1\InsetSpace \thinspace{}
25398 \begin_layout Standard
25406 \begin_layout Standard
25407 sets the diameter to
25409 num\InsetSpace \thinspace{}
25410 ×\InsetSpace \thinspace{}
25411 minimum(width and heigth of box)
25423 \begin_layout Standard
25427 \begin_layout Standard
25437 \begin_inset Box Ovalbox
25446 height_special "totalheight"
25449 \begin_layout Standard
25457 \InsetSpace \thinspace{}
25458 =\InsetSpace \thinspace{}
25459 1.5\InsetSpace \thinspace{}
25469 \begin_layout Standard
25481 \begin_layout Standard
25482 \begin_inset VSpace bigskip
25485 The size of the shadow can be adjusted by changing the length
25492 It it set to 2\InsetSpace \thinspace{}
25493 pt for the following box by this command:
25496 \begin_layout Standard
25506 \begin_layout Standard
25510 \begin_layout Standard
25522 \begin_inset Box Shadowbox
25531 height_special "totalheight"
25534 \begin_layout Standard
25542 \InsetSpace \thinspace{}
25543 =\InsetSpace \thinspace{}
25544 2\InsetSpace \thinspace{}
25554 \begin_layout Standard
25568 \begin_layout Standard
25569 \begin_inset VSpace bigskip
25572 Changed lengths and widths are valid for all boxes following the commands
25576 \begin_layout Section
25578 \begin_inset LatexCommand label
25579 name "sec:Minipages"
25584 \begin_inset LatexCommand index
25585 name "Boxes ! Minipages"
25592 \begin_layout Standard
25593 Minipages are treated by LaTeX as pages within pages and can therefore for
25594 example have their own footnotes.
25597 \begin_layout Standard
25598 Minipages are useful when you write documents with different languages.
25601 \begin_layout Standard
25602 Below are two example minipages side by side.
25603 Their width is set to 45\InsetSpace \thinspace{}
25604 col% and they are separated by a horizontal fill,
25605 that was inserted via the menu
25607 Insert\SpecialChar \menuseparator
25608 Special\InsetSpace ~
25609 Formatting\SpecialChar \menuseparator
25610 Horizontal\InsetSpace ~
25616 \begin_layout Standard
25617 \begin_inset Box Frameless
25626 height_special "totalheight"
25629 \begin_layout Standard
25632 Dies ist ein deutscher Text.
25633 Dies ist ein deutscher Text.
25634 Dies ist ein deutscher Text.
25635 Dies ist ein deutscher Text.
25636 Dies ist ein deutscher Text.
25637 Dies ist ein deutscher Text.
25638 Dies ist ein deutscher Text.
25639 Dies ist ein deutscher Text.
25640 Dies ist ein deutscher Text.
25641 Dies ist ein deutscher Text.
25642 Dies ist ein deutscher Text.
25643 Dies ist ein deutscher Text.
25644 Dies ist ein deutscher Text
25648 \begin_layout Standard
25651 Dies ist eine deutsche Fußnote.
25657 Dies ist ein deutscher Text.
25658 Dies ist ein deutscher Text.
25666 \begin_inset Box Frameless
25675 height_special "totalheight"
25678 \begin_layout Standard
25679 This is an English Text.
25680 This is an English Text.
25681 This is an English Text.
25682 This is an English Text.
25683 This is an English Text.
25684 This is an English Text.
25685 This is an English Text.
25686 This is an English Text.
25687 This is an English Text.
25688 This is an English Text.
25689 This is an English Text.
25690 This is an English Text.
25691 This is an English Text.
25692 This is an English Text.
25693 This is an English Text.
25694 This is an English Text.
25698 \begin_layout Standard
25699 This is an English footnote.
25704 This is an English Text.
25713 \begin_layout Standard
25714 \begin_inset VSpace bigskip
25717 Another application for minipages are footnotes within tables.
25718 Due to a LaTeX restriction footnotes within tables doesn't appear at the
25719 bottom of the current page.
25720 But when you put the table with the footnote to a minipage, the footnote
25721 will appear at its bottom, numbered with Latin letters.
25722 The footnote number is reset to 1 in every minipage but not outside the
25726 \begin_layout Standard
25727 The footnote of this table doesn't appear:
25728 \begin_inset Tabular
25729 <lyxtabular version="3" rows="3" columns="4">
25731 <column alignment="center" valignment="top" leftline="true" width="0pt">
25732 <column alignment="center" valignment="top" leftline="true" width="0pt">
25733 <column alignment="center" valignment="top" leftline="true" width="0pt">
25734 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25735 <row topline="true">
25736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25739 \begin_layout Standard
25745 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25748 \begin_layout Standard
25754 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25757 \begin_layout Standard
25762 \begin_layout Standard
25763 This is a footnote within a table.
25773 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25776 \begin_layout Standard
25783 <row topline="true">
25784 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25787 \begin_layout Standard
25793 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25796 \begin_layout Standard
25802 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25805 \begin_layout Standard
25811 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25814 \begin_layout Standard
25821 <row topline="true" bottomline="true">
25822 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25825 \begin_layout Standard
25831 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25834 \begin_layout Standard
25840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25843 \begin_layout Standard
25849 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25852 \begin_layout Standard
25866 \begin_layout Standard
25868 \begin_inset Box Frameless
25877 height_special "totalheight"
25880 \begin_layout Standard
25882 \begin_inset Tabular
25883 <lyxtabular version="3" rows="3" columns="4">
25885 <column alignment="center" valignment="top" leftline="true" width="0pt">
25886 <column alignment="center" valignment="top" leftline="true" width="0pt">
25887 <column alignment="center" valignment="top" leftline="true" width="0pt">
25888 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25889 <row topline="true">
25890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25893 \begin_layout Standard
25899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25902 \begin_layout Standard
25908 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25911 \begin_layout Standard
25916 \begin_layout Standard
25917 This is a footnote within a table.
25927 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25930 \begin_layout Standard
25937 <row topline="true">
25938 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25941 \begin_layout Standard
25947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25950 \begin_layout Standard
25956 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25959 \begin_layout Standard
25965 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25968 \begin_layout Standard
25975 <row topline="true" bottomline="true">
25976 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25979 \begin_layout Standard
25985 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25988 \begin_layout Standard
25994 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25997 \begin_layout Standard
26003 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26006 \begin_layout Standard
26025 \begin_layout Standard
26026 \begin_inset VSpace bigskip
26029 The document-wide paragraph settings are ignored within minipages.
26030 That means that there will be no space between paragraphs in minipages
26031 although you set it to e.\InsetSpace \thinspace{}
26037 in the document settings.
26040 \begin_layout Standard
26041 Minipages can also be used to set a background color for text parts, see
26042 section\InsetSpace ~
26044 \begin_inset LatexCommand ref
26045 reference "sub:Color-for-Paragraphs"
26052 \begin_layout Standard
26053 \begin_inset Note Greyedout
26056 \begin_layout Standard
26061 You cannot have floats or margin notes inside minipages but minipages can
26062 be used inside tables, floats, and other boxes.
26070 \begin_layout Section
26072 \begin_inset LatexCommand label
26073 name "sec:Parboxes"
26078 \begin_inset LatexCommand index
26079 name "Boxes ! Parboxes"
26086 \begin_layout Standard
26087 Parboxes are very similar to minipages with the difference that they cannot
26089 The main difference to minipages is that minipages are in contrary to parboxes
26090 no real boxes but LaTeX-environments.
26093 \begin_layout Standard
26095 \begin_inset Box Frameless
26104 height_special "totalheight"
26107 \begin_layout Standard
26108 This a text within a parbox.
26109 This a text within a parbox.
26112 \begin_layout Standard
26113 This footnote won't appear:
26117 \begin_layout Standard
26118 This footnote is inside a parbox and will therefore not appear.
26131 \begin_layout Section
26132 Boxes for Words and Characters
26133 \begin_inset LatexCommand index
26134 name "Boxes ! for Characters"
26141 \begin_layout Subsection
26142 Prevent Hyphenation
26143 \begin_inset LatexCommand label
26144 name "sec:Prevent-Hyphenation"
26149 \begin_inset LatexCommand index
26150 name "Boxes ! to Prevent Hyphenation"
26157 \begin_layout Standard
26158 You can use a special kind of boxes to prevent words or text to be hyphenated.
26161 e is an example text:
26164 \begin_layout Standard
26165 This line is an example to show how you can prevent the hyphenation of
26166 \begin_inset Quotes eld
26170 \begin_inset Quotes erd
26176 \begin_layout Standard
26177 To prevent the hyphenation of the word
26178 \begin_inset Quotes eld
26182 \begin_inset Quotes erd
26188 \begin_layout Standard
26196 \begin_layout Standard
26197 in TeX-Code before the word.
26198 Behind the word insert a closing brace
26199 \begin_inset Quotes eld
26207 \begin_inset Quotes erd
26214 \begin_layout Standard
26226 \begin_layout Standard
26227 This is the result:
26230 \begin_layout Standard
26231 This line is an example to show how you can prevent the hyphenation of
26235 \begin_layout Standard
26245 \begin_inset Quotes eld
26249 \begin_inset Quotes erd
26256 \begin_layout Standard
26266 \begin_layout Standard
26267 You can alternatively set the command
26268 \begin_inset Quotes eld
26278 \begin_inset Quotes grd
26281 as TeX-Code directly before the word:
26284 \begin_layout Standard
26285 This line is an example to show how you can prevent the hyphenation of
26286 \begin_inset Quotes eld
26293 \begin_layout Standard
26303 \begin_inset Quotes erd
26309 \begin_layout Standard
26310 Of course the word now protrudes over the side margin.
26311 To avoid this, add via the menu
26313 Insert\SpecialChar \menuseparator
26314 Special\InsetSpace ~
26315 Formatting\SpecialChar \menuseparator
26323 ) a line break before the word:
26326 \begin_layout Standard
26327 This line is an example to show how you can prevent the hyphenation of
26333 \begin_layout Standard
26343 \begin_inset Quotes eld
26347 \begin_inset Quotes erd
26354 \begin_layout Standard
26364 \begin_layout Subsection
26366 \begin_inset LatexCommand label
26367 name "sub:Vertical-Alignment"
26372 \begin_inset LatexCommand index
26373 name "Boxes ! for Vertical Alignment"
26378 \begin_inset LatexCommand index
26379 name "Boxes ! Raiseboxes"
26386 \begin_layout Standard
26387 With the help of the command
26393 you can align words, characters or other boxes vertically to the surrounding
26401 is used with the following scheme:
26404 \begin_layout Standard
26409 raisebox{lift}[height][depth]{box content}
26412 \begin_layout Standard
26413 The lift can be a positive value to raise the box or a negative value to
26417 \begin_layout Standard
26418 To align for example the word
26419 \begin_inset Quotes eld
26423 \begin_inset Quotes erd
26426 so that the bottom of the
26427 \begin_inset Quotes eld
26431 \begin_inset Quotes erd
26435 \begin_inset Quotes eld
26439 \begin_inset Quotes erd
26442 is at the baseline, insert the command
26445 \begin_layout Standard
26455 \begin_layout Standard
26456 in TeX-Code before the word.
26457 Behind the word insert a closing brace
26458 \begin_inset Quotes eld
26466 \begin_inset Quotes erd
26471 This is the result:
26474 \begin_layout Standard
26475 This is a text line with the word
26479 \begin_layout Standard
26491 \begin_inset Quotes eld
26495 \begin_inset Quotes erd
26502 \begin_layout Standard
26512 \begin_layout Standard
26513 \begin_inset VSpace bigskip
26516 When you raise or lower characters in a line, the line distance will be
26520 \begin_layout Standard
26521 This is a text line with the word
26525 \begin_layout Standard
26537 \begin_inset Quotes eld
26541 \begin_inset Quotes erd
26548 \begin_layout Standard
26557 This is a text line with the word
26561 \begin_layout Standard
26571 \begin_inset Quotes eld
26575 \begin_inset Quotes erd
26582 \begin_layout Standard
26592 \begin_layout Standard
26593 If you want to prevent this for a certain reason, set the box height to
26598 \begin_layout Standard
26608 \begin_layout Standard
26609 This is a text line with the word
26613 \begin_layout Standard
26625 \begin_inset Quotes eld
26629 \begin_inset Quotes erd
26636 \begin_layout Standard
26645 This is a text line with the word
26649 \begin_layout Standard
26653 raisebox{0.5cm}[0pt]{
26659 \begin_inset Quotes eld
26663 \begin_inset Quotes erd
26670 \begin_layout Standard
26680 \begin_layout Section
26682 \begin_inset LatexCommand label
26683 name "sec:Colored-Boxes"
26688 \begin_inset LatexCommand index
26689 name "Boxes ! Color"
26696 \begin_layout Subsection
26698 \begin_inset LatexCommand index
26699 name "Color ! for Text"
26706 \begin_layout Standard
26707 To color the background of text the text must be put into a so called
26708 \begin_inset Quotes eld
26712 \begin_inset Quotes erd
26716 This requires that the LaTeX-package
26721 \begin_inset LatexCommand index
26722 name "LaTeX-packages ! color"
26726 is loaded in the document preamble with the command
26729 \begin_layout Standard
26734 @ifundefined{textcolor}
26740 \begin_layout Standard
26751 usepackage{color}}{}
26754 \begin_layout Standard
26759 will be loaded automatically by LyX when you color text
26763 \begin_layout Standard
26764 To avoid that it is loaded twice the command
26768 @ifundef\SpecialChar \textcompwordmark{}
26779 \begin_layout Standard
26780 \begin_inset VSpace medskip
26783 Colorboxes are created with the command
26790 This will be used with the following scheme:
26793 \begin_layout Standard
26798 colorbox{color}{box content}
26801 \begin_layout Standard
26802 The box content can also be a box and colorboxes can also be within other
26806 \begin_layout Standard
26807 The following colors are predefined:
26846 You can also define your own color as described in section\InsetSpace ~
26848 \begin_inset LatexCommand ref
26849 reference "sec:Colored-Tables"
26856 \begin_layout Standard
26857 To have e.\InsetSpace \thinspace{}
26859 a red background for a word, insert the command
26862 \begin_layout Standard
26870 \begin_layout Standard
26871 before the word in TeX-Code.
26872 Behind the word insert a closing brace
26873 \begin_inset Quotes eld
26881 \begin_inset Quotes erd
26886 This is the result:
26889 \begin_layout Standard
26890 This is a line where the word
26894 \begin_layout Standard
26904 \begin_inset Quotes eld
26908 \begin_inset Quotes erd
26915 \begin_layout Standard
26922 has a red background.
26925 \begin_layout Standard
26926 \begin_inset VSpace bigskip
26929 If you would have the box frame in a different color, you can use the command
26936 with the following scheme:
26939 \begin_layout Standard
26944 fcolorbox{frame color}{box color}{box content}
26947 \begin_layout Standard
26961 The frame thickness and the space between the frame and the box content
26962 can be adjusted with the lengths
26974 , respectively, as described in section\InsetSpace ~
26976 \begin_inset LatexCommand ref
26977 reference "sec:Framed-Boxes"
26984 \begin_layout Standard
26985 For the following example the command
26988 \begin_layout Standard
26993 fcolorbox{cyan}{magenta}{
26996 \begin_layout Standard
27000 \begin_layout Standard
27001 Here is an example where the frame line thickness was set to 1\InsetSpace \thinspace{}
27008 \begin_layout Standard
27023 \begin_layout Standard
27027 fcolorbox{cyan}{magenta}{
27032 This is text within a colored, framed box.
27036 \begin_layout Standard
27046 \begin_layout Standard
27047 \begin_inset VSpace bigskip
27050 Of course you can also have colored text inside a colorbox:
27056 \begin_layout Standard
27060 fcolorbox{cyan}{magenta}{
27067 This is colored text within a colored, framed box.
27073 \begin_layout Standard
27084 \begin_layout Standard
27098 \begin_layout Standard
27101 \begin_inset VSpace medskip
27107 \begin_layout Standard
27108 \begin_inset Note Greyedout
27111 \begin_layout Standard
27116 Text in colorboxes cannot have line breaks.
27117 To color multiple text lines or paragraphs, use a box inside a colorbox
27118 as described in the following.
27126 \begin_layout Subsection
27127 Color for Paragraphs
27128 \begin_inset LatexCommand label
27129 name "sub:Color-for-Paragraphs"
27134 \begin_inset LatexCommand index
27135 name "Color ! for Paragraphs"
27142 \begin_layout Standard
27143 To set the background color for more than one text line, put the text into
27145 Before the minipage insert the
27154 \begin_layout Standard
27162 \begin_layout Standard
27164 Behind the minipage insert a closing brace
27165 \begin_inset Quotes eld
27173 \begin_inset Quotes erd
27179 \begin_layout Standard
27183 \begin_layout Standard
27187 colorbox{lightgrey}{
27193 \begin_inset Box Frameless
27202 height_special "totalheight"
27205 \begin_layout Standard
27206 This is text with background color.
27207 This is text with background color.
27210 \begin_layout Standard
27211 \begin_inset VSpace defskip
27214 The text can have footnotes
27218 \begin_layout Standard
27219 Another example footnote
27224 and can include tables and figures.
27227 \begin_layout Standard
27229 \begin_inset Tabular
27230 <lyxtabular version="3" rows="3" columns="3">
27232 <column alignment="center" valignment="top" leftline="true" width="0">
27233 <column alignment="center" valignment="top" leftline="true" width="0">
27234 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27235 <row topline="true">
27236 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27239 \begin_layout Standard
27245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27248 \begin_layout Standard
27254 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27257 \begin_layout Standard
27264 <row topline="true">
27265 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27268 \begin_layout Standard
27274 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27277 \begin_layout Standard
27279 \begin_inset Quotes erd
27287 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27290 \begin_layout Standard
27297 <row topline="true" bottomline="true">
27298 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27301 \begin_layout Standard
27307 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27310 \begin_layout Standard
27316 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27319 \begin_layout Standard
27339 \begin_layout Standard
27349 \begin_layout Section
27350 Rotated and Scaled Boxes
27353 \begin_layout Standard
27354 To use the the commands described in this section, the LaTeX-package
27359 \begin_inset LatexCommand index
27360 name "LaTeX-packages ! graphicx"
27364 needs to be loaded in the document preamble with the command
27367 \begin_layout Standard
27372 @ifundefined{rotatebox}
27378 \begin_layout Standard
27389 usepackage{graphicx}}{}
27392 \begin_layout Standard
27393 \begin_inset Note Greyedout
27396 \begin_layout Standard
27401 Some DVI-viewers can't display rotated or scaled material.
27409 \begin_layout Standard
27410 \begin_inset Note Greyedout
27413 \begin_layout Standard
27418 Floats mustn't be inside a rotated or scaled box.
27426 \begin_layout Subsection
27428 \begin_inset LatexCommand index
27429 name "Boxes ! rotated"
27434 \begin_inset LatexCommand index
27435 name "Rotated material"
27440 \begin_inset LatexCommand index
27441 name "Figures ! rotated"
27446 \begin_inset LatexCommand index
27447 name "Table Customization ! Rotating"
27454 \begin_layout Standard
27455 To rotate material, you can put it into a rotated box.
27456 Such a box is created using the command
27462 in TeX-Code with the following scheme:
27465 \begin_layout Standard
27470 rotatebox[rotation origin]{rotation angle}{box content}
27473 \begin_layout Standard
27474 The rotation origin is specified in the form
27479 The following positions are possible:
27499 (top), and also expedient combinations of the four base positions.
27504 means, that the rotation origin is at the top left corner of the box.
27505 When no rotation origin is specified, the position
27510 The rotation angle is a number that can be negative that specifies the
27512 The rotation direction is counterclockwise.
27515 \begin_layout Standard
27516 In the following example the command
27520 rotatebox[origin=c]{60}{
27522 was inserted as TeX-Code before the text
27523 \begin_inset Quotes eld
27527 \begin_inset Quotes erd
27530 ; after the text the box was closed by a closing brace
27537 \begin_layout Standard
27542 \begin_layout Standard
27546 rotatebox[origin=c]{60}{
27555 \begin_layout Standard
27565 \begin_layout Standard
27566 The box content can also be another box or an inline formula:
27569 \begin_layout Standard
27574 \begin_layout Standard
27578 rotatebox[origin=r]{-60}{
27584 \begin_inset Box Doublebox
27593 height_special "totalheight"
27596 \begin_layout Standard
27606 \begin_layout Standard
27617 \begin_layout Standard
27621 rotatebox[origin=lb]{60}{
27627 \begin_inset Formula $\int A\,\mathrm{d}x=B$
27634 \begin_layout Standard
27644 \begin_layout Standard
27645 or an image or table:
27648 \begin_layout Standard
27653 \begin_layout Standard
27657 rotatebox[origin=lb]{90}{
27663 \begin_inset Graphics
27664 filename clipart/platypus.eps
27674 \begin_layout Standard
27681 with a rotated image
27685 \begin_layout Standard
27689 rotatebox[origin=l]{-90}{
27695 \begin_inset Tabular
27696 <lyxtabular version="3" rows="2" columns="2">
27698 <column alignment="center" valignment="top" leftline="true" width="0">
27699 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27700 <row topline="true">
27701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27704 \begin_layout Standard
27710 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27713 \begin_layout Standard
27720 <row topline="true" bottomline="true">
27721 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27724 \begin_layout Standard
27730 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27733 \begin_layout Standard
27748 \begin_layout Standard
27758 \begin_layout Subsection
27760 \begin_inset LatexCommand index
27761 name "Boxes ! scaled"
27766 \begin_inset LatexCommand index
27767 name "Scaled material"
27772 \begin_inset LatexCommand index
27773 name "Figures ! scaled"
27778 \begin_inset LatexCommand index
27779 name "Table Customization ! Scaling"
27786 \begin_layout Standard
27787 To scale material the commands
27799 can be used as TeX-Code.
27802 \begin_layout Standard
27809 is used with the following scheme:
27812 \begin_layout Standard
27817 scalebox{horizontal}[vertical]{box content}
27820 \begin_layout Standard
27821 Horizontal and vertical are the corresponding scaling factors.
27822 If no vertical scaling factor is given, the horizontal factor will also
27823 be used as vertical one.
27826 \begin_layout Standard
27833 creates for example a double size
27837 \begin_layout Standard
27850 \begin_layout Standard
27857 , compared to the document text size.
27860 \begin_layout Standard
27865 scalebox{2}[1]{Hello}
27867 in contrary distorts the
27871 \begin_layout Standard
27884 \begin_layout Standard
27894 \begin_layout Standard
27895 If a the scaling factor is negative, the box content will be mirrored.
27896 Therefore the command
27900 scalebox{-1}[1]{Hello}
27902 can be used to create mirror writing:
27906 \begin_layout Standard
27919 \begin_layout Standard
27929 \begin_layout Standard
27934 scalebox{1}[-1]{Hello}
27940 \begin_layout Standard
27953 \begin_layout Standard
27963 \begin_layout Standard
27968 scalebox{-1}[1]{box content}
27970 there exists the command
27976 reflectbox{box content}
27981 \begin_layout Standard
27982 \begin_inset VSpace bigskip
27991 is used to scale the box to a defined width and height.
27992 The command scheme is:
27995 \begin_layout Standard
28000 resizebox{width}{height}{box content}
28003 \begin_layout Standard
28004 Is one of the two command arguments given as exclamation mark
28008 , the size is set so that the aspect ratio of the box content is kept.
28011 \begin_layout Standard
28016 resizebox{2cm}{1cm}{Hello}
28022 \begin_layout Standard
28026 resizebox{2cm}{1cm}{
28035 \begin_layout Standard
28048 resizebox{2cm}{!}{Hello}
28054 \begin_layout Standard
28067 \begin_layout Standard
28077 \begin_layout Standard
28078 \begin_inset VSpace bigskip
28082 \begin_inset Note Greyedout
28085 \begin_layout Standard
28102 are set to zero, no LaTeX-errors occur when exporting the document but
28103 the exported files can not or only partly be displayed.
28111 \begin_layout Standard
28112 \begin_inset VSpace bigskip
28118 \begin_layout Standard
28119 The boxes can be combined in any order.
28120 E.\InsetSpace \thinspace{}
28128 rotatebox[origin=c]{-45}{
28132 reflectbox{Hello}}}
28139 \begin_layout Standard
28144 \begin_layout Standard
28148 rotatebox[origin=c]{-45}{
28161 \begin_layout Standard
28171 \begin_layout Standard
28173 Images, tables, and inline formulas are allowed as box content:
28176 \begin_layout Standard
28181 \begin_layout Standard
28185 rotatebox[origin=c]{-30}{
28195 \begin_inset Graphics
28196 filename clipart/platypus.eps
28206 \begin_layout Standard
28217 \begin_layout Standard
28221 rotatebox[origin=c]{-45}{
28231 \begin_inset Tabular
28232 <lyxtabular version="3" rows="2" columns="2">
28234 <column alignment="center" valignment="top" leftline="true" width="0">
28235 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
28236 <row topline="true">
28237 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28240 \begin_layout Standard
28246 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28249 \begin_layout Standard
28256 <row topline="true" bottomline="true">
28257 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28260 \begin_layout Standard
28266 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28269 \begin_layout Standard
28284 \begin_layout Standard
28295 \begin_layout Standard
28299 rotatebox[origin=c]{-45}{
28309 \begin_inset Formula $\int A\,\mathrm{d}x=B$
28316 \begin_layout Standard
28326 \begin_layout Standard
28327 When the global formula style
28331 is used in the document
28335 \begin_layout Standard
28337 \begin_inset Quotes eld
28341 \begin_inset Quotes erd
28344 is added to the document class options.
28349 , also display formulas can be scaled.
28352 \begin_layout Section
28353 URLs (Uniform Resource Locators)
28354 \begin_inset LatexCommand index
28362 \begin_layout Standard
28363 Links to web pages or email addresses can be inserted via the menu
28365 Insert\SpecialChar \menuseparator
28369 The appearing URL dialog has two fields; the
28377 field for the URL description, which will be typeset as plain text immediately
28381 \begin_layout Standard
28382 Here is an example URL:
28383 \begin_inset LatexCommand url
28384 name "LyX's homepage"
28385 target "http://www.lyx.org"
28392 \begin_layout Standard
28395 Generate\InsetSpace ~
28398 in the URL dialog does nothing.
28399 This relict will be removed in the next LyX-version.
28402 \begin_layout Standard
28403 You cannot change the style of the link text.
28408 field will have the default text style of the document while the text of
28413 field will have the style
28414 \begin_inset Quotes eld
28422 \begin_inset Quotes erd
28428 \begin_layout Standard
28429 When you use the LaTeX-package
28434 \begin_inset LatexCommand index
28435 name "LaTeX-packages ! hyperref"
28439 to link cross-references in the output, URLs will automatically become
28440 clickable hyperlinks in DVI and PDF-output.
28443 \begin_layout Standard
28444 \begin_inset Note Greyedout
28447 \begin_layout Standard
28452 When you use the following characters: "%", "#", "^", you have to write
28453 them with a preceding backslash, e.\InsetSpace \thinspace{}
28456 \begin_inset Quotes eld
28462 \begin_inset Quotes erd
28466 URLs must not end with a backslash.
28474 \begin_layout Standard
28475 \begin_inset VSpace bigskip
28478 To create real hyperlinks without the force to write the link location to
28479 the text, you can use the command
28482 \begin_layout Standard
28487 href{link location}{link text}
28490 \begin_layout Standard
28492 To get for example a link to LyX's web page, write the command
28495 \begin_layout Standard
28500 href{http://www.lyx.org}{
28503 \begin_layout Standard
28505 Insert after the command the link text
28506 \begin_inset Quotes eld
28510 \begin_inset Quotes erd
28513 as normal text followed by a closing brace
28514 \begin_inset Quotes eld
28522 \begin_inset Quotes erd
28526 This is the result:
28530 \begin_layout Standard
28534 href{http://www.lyx.org}{
28543 \begin_layout Standard
28553 \begin_layout Standard
28554 To link to email addresses, add the prefix
28555 \begin_inset Quotes eld
28563 \begin_inset Quotes erd
28566 to the link location:
28572 \begin_layout Standard
28576 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's documentation}{
28581 lyx-docs mailing list
28585 \begin_layout Standard
28595 \begin_layout Standard
28602 instead of LyX's URL box has the advantage that you can specify the text
28603 style of the link text like for all other text parts.
28604 You can then set hyphenation points and forced linebreaks to have long
28605 link text broken at the page margin.
28606 You are furthermore able to change the text style for all URLs in your
28607 document with an option in
28611 's load command and the restrictions mentioned above doesn't apply for
28620 \begin_layout Chapter
28622 \begin_inset LatexCommand index
28623 name "External Stuff"
28630 \begin_layout Standard
28633 Insert\SpecialChar \menuseparator
28636 you can insert external material to your document.
28640 \begin_layout Description
28642 Document Another LyX document; its content is directly inserted to your
28646 \begin_layout Description
28648 Text A text document; every of its text lines is inserted to your document
28652 \begin_layout Description
28656 Lines A text document; its text lines are inserted as they
28658 Empty text lines creates a new paragraph in your document.
28661 \begin_layout Description
28662 External\InsetSpace ~
28663 Material Files in various formats.
28666 \begin_layout Description
28668 Document LyX or LaTeX-documents.
28671 \begin_layout Section
28673 \begin_inset LatexCommand index
28674 name "External Stuff ! External Material"
28681 \begin_layout Standard
28682 The external material feature allows you to insert files to your document
28683 without converting them previously to a format that can be read by the
28684 document output format because LyX takes care of needed conversions.
28685 This is similar to images that can be inserted in various image formats
28689 \begin_layout Standard
28690 External material can be inserted via the
28694 dialog that is accessible with the menu
28696 Insert\SpecialChar \menuseparator
28697 File\SpecialChar \menuseparator
28698 External\InsetSpace ~
28702 Currently the following file types (
28709 \begin_layout Description
28710 ChessDiagram This template supports chess position diagrams made with the
28715 \begin_layout Standard
28719 href{http://en.wikipedia.org/wiki/XBoard}{
28732 \begin_layout Standard
28742 \begin_layout Description
28743 Date This inserts the date in the form
28748 This is a date inserted as external material:
28749 \begin_inset External
28757 The date is not shown within LyX, only in the output.
28758 There are two other methods of inserting a date: Via menu
28760 Insert\SpecialChar \menuseparator
28763 and with the LaTeX command
28770 The different methods are compared in Table\InsetSpace ~
28772 \begin_inset LatexCommand ref
28773 reference "tab:Comparison-of-the"
28780 \begin_layout Description
28781 LilyPond This template is used for music notation typeset with the program
28785 \begin_layout Standard
28798 \begin_layout Standard
28802 href{http://en.wikipedia.org/wiki/LilyPond}{
28815 \begin_layout Standard
28823 \begin_inset Note Note
28826 \begin_layout Standard
28833 breaks the line while the remaining text in the line is stretched to the
28842 \begin_layout Description
28843 RasterImage This can be used for bitmap images.
28844 Nearly all popular image formats are supported.
28845 The image can be treated in the
28849 dialog like the images that are usually included via the
28853 dialog as described in section\InsetSpace ~
28855 \begin_inset LatexCommand ref
28856 reference "sec:Graphics-Dialog"
28861 The difference is that only raster images are allowed, that means that
28862 PDF and EPS-images are not supported.
28865 \begin_layout Description
28866 XFig This template supports images created with the program
28870 \begin_layout Standard
28874 href{http://en.wikipedia.org/wiki/Xfig}{
28887 \begin_layout Standard
28897 \begin_layout Standard
28898 \begin_inset Float table
28904 \begin_layout Standard
28905 \begin_inset Caption
28907 \begin_layout Standard
28908 \begin_inset LatexCommand label
28909 name "tab:Comparison-of-the"
28913 Comparison of the date input methods.
28921 \begin_layout Standard
28923 \begin_inset Tabular
28924 <lyxtabular version="3" rows="4" columns="4">
28926 <column alignment="center" valignment="top" leftline="true" width="0">
28927 <column alignment="center" valignment="top" leftline="true" width="0">
28928 <column alignment="center" valignment="top" leftline="true" width="0">
28929 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
28930 <row topline="true">
28931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28934 \begin_layout Standard
28940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28943 \begin_layout Standard
28946 External Material\SpecialChar \menuseparator
28952 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28955 \begin_layout Standard
28958 Insert\SpecialChar \menuseparator
28964 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28967 \begin_layout Standard
28978 <row topline="true">
28979 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28982 \begin_layout Standard
28988 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28991 \begin_layout Standard
28997 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29000 \begin_layout Standard
29006 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29009 \begin_layout Standard
29010 as TeX-Code inset box
29016 <row topline="true">
29017 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29020 \begin_layout Standard
29026 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29029 \begin_layout Standard
29035 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29038 \begin_layout Standard
29044 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29047 \begin_layout Standard
29054 <row topline="true" bottomline="true">
29055 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29058 \begin_layout Standard
29064 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29067 \begin_layout Standard
29073 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29076 \begin_layout Standard
29082 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29085 \begin_layout Standard
29104 \begin_layout Standard
29105 When you use the option
29117 dialog, only the path to the inserted file is shown in the output.
29120 material is displayed in LyX either as box like this:
29121 \begin_inset Graphics
29122 filename clipart/ExternalMaterialQt4.png
29124 scaleBeforeRotation
29128 or as image, depending on the setting in the
29140 \begin_layout Standard
29147 manual explains how you can define your own templates.
29150 \begin_layout Section
29152 \begin_inset LatexCommand label
29153 name "sec:Child-Documents"
29158 \begin_inset LatexCommand index
29159 name "External Stuff ! Child Documents"
29164 \begin_inset LatexCommand index
29165 name "Files ! Include"
29172 \begin_layout Standard
29173 Child documents are used when you have a long document consisting of several
29174 larger parts or sections.
29175 For maintenance it is often useful and sometimes even required to split
29176 the document in several files that can be revised separately.
29177 The different documents are then the so called child documents and a master
29178 document connects them to print the full document or parts of it.
29181 \begin_layout Standard
29182 Included documents are displayed in LyX as a box like this:
29183 \begin_inset Graphics
29184 filename clipart/ChildDocumentQt4.png
29186 scaleBeforeRotation
29190 To include child documents to a master document use the menu
29192 Insert\SpecialChar \menuseparator
29193 File\SpecialChar \menuseparator
29198 A dialog pops up where you can choose between four include methods:
29201 \begin_layout Description
29202 Include You can include LyX and LaTeX-documents.
29211 dialog, the included documents will be opened in LyX in a new file tab
29212 so that you can modify it.
29217 \begin_layout Standard
29218 Here is a child document inserted using
29223 \begin_inset Include \include{DummyDocument1.lyx}
29231 \begin_layout Standard
29232 The section numbering includes the sections of the included files in the
29233 order they are inserted in the master document.
29234 The included example document has for example a subsection that is numbered
29235 as subsection of this section.
29236 Labels of included documents can be referenced: Subsection\InsetSpace ~
29238 \begin_inset LatexCommand ref
29239 reference "sub:External-Subsection-1"
29246 \begin_layout Standard
29247 The preamble of the child document is ignored, only the preamble of the
29248 master document is used.
29249 Included documents are inserted starting on a new page and end with a pagebreak.
29252 \begin_layout Standard
29253 With the LaTeX-command
29259 you can specify which included child documents are processed when the output
29261 This is useful when you are perhaps only working on a certain chapter of
29262 your large document as this saves compiling time.
29269 is inserted to the master document preamble.
29270 It takes a comma-separated list of the filenames as argument, e.g.
29273 \begin_layout Standard
29278 includeonly{chapter1,chapter5}
29281 \begin_layout Standard
29282 will only process the included files named
29283 \begin_inset Quotes eld
29287 \begin_inset Quotes erd
29291 \begin_inset Quotes eld
29295 \begin_inset Quotes erd
29299 \begin_inset Quotes eld
29303 \begin_inset Quotes erd
29309 \begin_layout Standard
29310 \begin_inset Note Greyedout
29313 \begin_layout Standard
29318 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
29319 w the document in case that the child document uses another document class
29320 than the master document as this will lead to unexpected outputs.
29328 \begin_layout Description
29329 Input This method is very similar to the Include method.
29330 The differences are:
29334 \begin_layout Itemize
29335 Input files don't start with a new page and don't end with a pagebreak.
29338 \begin_layout Itemize
29339 Input files can be previewed in LyX when
29341 Instant\InsetSpace ~
29344 is enabled in LyX's preferences under
29348 feel\SpecialChar \menuseparator
29354 \begin_layout Itemize
29365 \begin_layout Standard
29366 Here is a child document inserted using
29371 \begin_inset Include \input{DummyDocument2.lyx}
29379 \begin_layout Description
29380 Verbatim With this method every text file can be included.
29381 The file is shown in the output with its source code, no command used in
29382 the text is invoked.
29383 You can use the option
29385 Mark spaces in output
29387 that displays the character
29388 \begin_inset Quotes eld
29395 \begin_layout Standard
29405 \begin_inset Quotes erd
29408 for every space character in the source code.
29409 The difference to the method via the menu
29411 Insert\SpecialChar \menuseparator
29412 File\SpecialChar \menuseparator
29416 is that the document content is not shown in LyX.
29419 \begin_layout Standard
29420 Here is a child document inserted as Verbatim:
29421 \begin_inset Include \verbatiminput{DummyTextDocument.txt}
29427 \begin_inset VSpace bigskip
29430 Here is a child document inserted as Verbatim using the
29432 Mark spaces in output
29435 \begin_inset Include \verbatiminput*{DummyTextDocument.txt}
29443 \begin_layout Standard
29444 \begin_inset VSpace bigskip
29450 \begin_layout Standard
29451 \begin_inset Note Greyedout
29454 \begin_layout Standard
29459 As you can see in the examples above, the text of the documents included
29464 is not broken at the end of the document lines.
29472 \begin_layout Description
29473 Listings This type is described in chapter\InsetSpace ~
29475 \begin_inset LatexCommand ref
29476 reference "cha:Program-Code-Listings"
29483 \begin_layout Standard
29484 \begin_inset Note Greyedout
29487 \begin_layout Standard
29492 Including the same document twice in a document using different methods
29493 could cause LaTeX-problems.
29501 \begin_layout Chapter
29502 Program Code Listings
29503 \begin_inset LatexCommand label
29504 name "cha:Program-Code-Listings"
29509 \begin_inset LatexCommand index
29515 \begin_inset LatexCommand index
29516 name "Program Code"
29521 \begin_inset LatexCommand index
29522 name "Floats ! Listings"
29529 \begin_layout Standard
29530 To include and typeset program code you can use the
29534 inset that can be inserted via the menu
29536 Insert\SpecialChar \menuseparator
29545 \begin_inset LatexCommand index
29546 name "LaTeX-packages ! listings"
29550 provides a powerful and flexible way to insert program source code to your
29554 \begin_layout Standard
29555 When right-clicking on a listings inset a dialog pops up where you can set
29556 the listings format.
29559 \begin_layout Standard
29560 By default, a listing starts a new paragraph in the output.
29561 The placement option
29563 Inline\InsetSpace ~
29566 prints the listing inline like this:
29567 \begin_inset listings
29568 lstparams "language={C++}"
29572 \begin_layout Standard
29585 creates a listings float where you can specify the placement options
29586 \begin_inset Quotes eld
29594 \begin_inset Quotes erd
29598 \begin_inset Quotes eld
29606 \begin_inset Quotes erd
29610 \begin_inset Quotes eld
29618 \begin_inset Quotes erd
29622 \begin_inset Quotes eld
29630 \begin_inset Quotes erd
29633 corresponding to the float placement options described in section\InsetSpace ~
29635 \begin_inset LatexCommand ref
29636 reference "sec:Float-Placement"
29641 The placement options can be mixed and are inserted without any separation,
29642 e.\InsetSpace \thinspace{}
29645 \begin_inset Quotes eld
29653 \begin_inset Quotes erd
29658 \begin_inset Quotes eld
29662 \begin_inset Quotes erd
29665 has sometimes no effect, but you don't need to use the
29669 option in this case as also non-float listings can have captions and be
29673 \begin_layout Standard
29674 You can add captions to listings with the menu
29676 Insert\SpecialChar \menuseparator
29680 Listings can be referenced like floats: Listing\InsetSpace ~
29682 \begin_inset LatexCommand ref
29683 reference "lst:Example-Listing"
29690 \begin_layout Standard
29691 \begin_inset listings
29692 lstparams "language=Python"
29696 \begin_layout Standard
29698 \begin_inset Caption
29700 \begin_layout Standard
29701 \begin_inset LatexCommand label
29702 name "lst:Example-Listing"
29706 Example Listing float
29711 # Example listing float
29714 \begin_layout Standard
29719 \begin_layout Standard
29721 'this is a python function'
29724 \begin_layout Standard
29734 \begin_layout Standard
29735 When you have set a programming language in the listings dialog, the keywords
29736 of this language will be recognized and specially typeset in the output.
29737 In the example listings the Python keyword
29738 \begin_inset Quotes eld
29742 \begin_inset Quotes erd
29745 is recognized and printed bold in the output.
29748 \begin_layout Standard
29749 \begin_inset Note Greyedout
29752 \begin_layout Standard
29757 If you don't get bold keywords when using typewriter fonts, your typewriter
29758 font probably doesn't provide a bold shape.
29759 In this case select a different one in the menu
29761 Document\SpecialChar \menuseparator
29762 Settings\SpecialChar \menuseparator
29774 provide bold shapes.)
29782 \begin_layout Standard
29788 of the listings dialog you can specify the line numbering style.
29789 You can insert a number to specify which lines are numbered to the field
29795 When you insert e.g.
29797 \begin_inset Quotes eld
29801 \begin_inset Quotes erd
29804 , only every 3rd line will be numbered.
29807 \begin_layout Standard
29808 You can furthermore specify a range of lines, only these will then appear
29812 Extended\InsetSpace ~
29815 should be used when you use national characters like the German umlauts
29818 Here is an example listing with left line numbering, step
29820 \begin_inset Quotes eld
29824 \begin_inset Quotes erd
29828 \begin_inset Quotes eld
29832 \begin_inset Quotes erd
29836 \begin_inset Quotes eld
29839 Extended\InsetSpace ~
29841 \begin_inset Quotes erd
29845 \begin_inset Quotes eld
29851 \begin_inset Quotes erd
29854 , range lines 3\InsetSpace \thinspace{}
29855 -\InsetSpace \thinspace{}
29859 \begin_layout Standard
29860 \begin_inset listings
29861 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
29865 \begin_layout Standard
29870 \begin_layout Standard
29872 'this is a python function'
29875 \begin_layout Standard
29880 \begin_layout Standard
29885 \begin_layout Standard
29887 'This is a German word: Tschüß'
29890 \begin_layout Standard
29895 \begin_layout Standard
29900 \begin_layout Standard
29902 'this is a python function'
29905 \begin_layout Standard
29915 \begin_layout Standard
29916 \begin_inset Note Greyedout
29919 \begin_layout Standard
29924 Due to a bug in the
29928 package the line numbering is shifted by a line by every previous listing.
29929 That's the reason why the lines 2 and 5 are numbered in the above listing
29930 and not the lines 3 and 6.
29938 \begin_layout Standard
29939 \begin_inset VSpace bigskip
29945 \begin_layout Standard
29946 It is also possible to print lines from a file as listing.
29947 To do this, use the menu
29949 Insert\SpecialChar \menuseparator
29950 File\SpecialChar \menuseparator
29953 and choose the type
29961 \begin_layout Standard
29962 The other child document types are described in section\InsetSpace ~
29964 \begin_inset LatexCommand ref
29965 reference "sec:Child-Documents"
29974 In the child document dialog you can specify the listing parameters in
29976 To show a list of all available parameters, type in a question mark
29977 \begin_inset Quotes eld
29981 \begin_inset Quotes erd
29987 \begin_layout Standard
29988 To reference child document listings, write a label text into the corresponding
29989 field of the child document dialog.
29990 The label can then be referenced using the menu
29992 Insert\SpecialChar \menuseparator
29998 \begin_layout Standard
29999 Listing\InsetSpace ~
30001 \begin_inset LatexCommand ref
30002 reference "lst:file-listing"
30006 is an example for a listing of a file; there the lines 10\InsetSpace \thinspace{}
30007 -\InsetSpace \thinspace{}
30012 \begin_layout Standard
30013 \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]
30021 \begin_layout Standard
30022 \begin_inset VSpace bigskip
30028 \begin_layout Standard
30029 Global listings settings can be set in the
30031 Document\SpecialChar \menuseparator
30032 Settings\SpecialChar \menuseparator
30036 To get there a list of available options, type in a question mark
30037 \begin_inset Quotes eld
30041 \begin_inset Quotes erd
30046 Listings\InsetSpace ~
30052 \begin_layout Standard
30053 For more information about the
30057 package, we refer to its documentation
30058 \begin_inset LatexCommand cite
30066 \begin_layout Standard
30072 \begin_layout Chapter
30074 Units available in LyX
30075 \begin_inset LatexCommand index
30081 \begin_inset LatexCommand label
30082 name "cha:Units-available-in"
30089 \begin_layout Standard
30090 To understand the units described in this documentation, Table\InsetSpace ~
30092 \begin_inset LatexCommand ref
30093 reference "tab:Units"
30097 explains all units available in LyX.
30100 \begin_layout Standard
30101 \begin_inset Float table
30107 \begin_layout Standard
30108 \begin_inset Caption
30110 \begin_layout Standard
30111 \begin_inset LatexCommand label
30124 \begin_layout Standard
30125 \begin_inset VSpace medskip
30131 \begin_layout Standard
30133 \begin_inset Tabular
30134 <lyxtabular version="3" rows="20" columns="2">
30136 <column alignment="center" valignment="top" leftline="true" width="0">
30137 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
30138 <row topline="true" bottomline="true">
30139 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30142 \begin_layout Standard
30148 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30151 \begin_layout Standard
30158 <row topline="true">
30159 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30162 \begin_layout Standard
30168 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30171 \begin_layout Standard
30178 <row topline="true">
30179 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30182 \begin_layout Standard
30188 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30191 \begin_layout Standard
30198 <row topline="true">
30199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30202 \begin_layout Standard
30208 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30211 \begin_layout Standard
30218 <row topline="true">
30219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30222 \begin_layout Standard
30228 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30231 \begin_layout Standard
30232 point (72.27\InsetSpace \thinspace{}
30233 pt = 1\InsetSpace \thinspace{}
30240 <row topline="true">
30241 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30244 \begin_layout Standard
30250 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30253 \begin_layout Standard
30254 pica (1\InsetSpace \thinspace{}
30255 pc = 12\InsetSpace \thinspace{}
30262 <row topline="true">
30263 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30266 \begin_layout Standard
30272 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30275 \begin_layout Standard
30276 scaled point (65536\InsetSpace \thinspace{}
30277 sp = 1\InsetSpace \thinspace{}
30284 <row topline="true">
30285 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30288 \begin_layout Standard
30294 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30297 \begin_layout Standard
30298 big point (72\InsetSpace \thinspace{}
30299 bp = 1\InsetSpace \thinspace{}
30306 <row topline="true">
30307 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30310 \begin_layout Standard
30316 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30319 \begin_layout Standard
30320 didot (1\InsetSpace \thinspace{}
30322 \begin_inset Formula $\approx$
30325 0.376\InsetSpace \thinspace{}
30332 <row topline="true">
30333 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30336 \begin_layout Standard
30342 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30345 \begin_layout Standard
30346 cicero (1\InsetSpace \thinspace{}
30347 cc = 12\InsetSpace \thinspace{}
30354 <row topline="true">
30355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30358 \begin_layout Standard
30364 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30367 \begin_layout Standard
30368 % of original image width
30374 <row topline="true">
30375 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30378 \begin_layout Standard
30384 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30387 \begin_layout Standard
30394 <row topline="true">
30395 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30398 \begin_layout Standard
30404 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30407 \begin_layout Standard
30414 <row topline="true">
30415 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30418 \begin_layout Standard
30424 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30427 \begin_layout Standard
30434 <row topline="true">
30435 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30438 \begin_layout Standard
30444 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30447 \begin_layout Standard
30454 <row topline="true">
30455 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30458 \begin_layout Standard
30464 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30467 \begin_layout Standard
30474 <row topline="true">
30475 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30478 \begin_layout Standard
30484 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30487 \begin_layout Standard
30494 <row topline="true">
30495 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30498 \begin_layout Standard
30504 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30507 \begin_layout Standard
30518 <row topline="true">
30519 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30522 \begin_layout Standard
30528 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30531 \begin_layout Standard
30542 <row topline="true" bottomline="true">
30543 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30546 \begin_layout Standard
30552 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30555 \begin_layout Standard
30556 math unit (1\InsetSpace \thinspace{}
30557 mu = 1/18\InsetSpace \thinspace{}
30576 \begin_layout Chapter
30577 Output File Formats with Graphics
30578 \begin_inset LatexCommand label
30579 name "cha:Output-File-Formats"
30586 \begin_layout Section
30588 \begin_inset LatexCommand index
30589 name "File Formats ! DVI"
30594 \begin_inset LatexCommand index
30595 name "DVI|see{File Formats}"
30602 \begin_layout Standard
30603 This file type has the extension
30604 \begin_inset Quotes eld
30612 \begin_inset Quotes erd
30617 \begin_inset Quotes eld
30621 \begin_inset Quotes erd
30624 (DVI), because it is completely portable; you can move them from one machine
30625 to another without needing to do any sort of conversion.
30626 At the time when this file-format was developed, this was no matter of
30628 DVIs are used for quick previews and as pre-stage for other output formats,
30632 \begin_layout Standard
30633 \begin_inset Note Greyedout
30636 \begin_layout Standard
30641 DVI-files doesn't contain images, they will only be a linked.
30646 So don't forget this, if you move your
30650 file to another computer.
30651 This property can also slow down your computer when you view the DVI.
30652 Because the DVI-viewer has to convert the image in the background to make
30653 it visible when you scroll in the DVI.
30654 So we recommend to use PDF for files with many images.
30657 \begin_layout Standard
30658 You can export your document to DVI by using the menu
30660 File\SpecialChar \menuseparator
30661 Export\SpecialChar \menuseparator
30665 You can view your document as DVI via the
30669 menu or by using the toolbar button
30670 \begin_inset Graphics
30671 filename ../images/buffer-view_dvi.png
30673 scaleBeforeRotation
30680 \begin_layout Section
30682 \begin_inset LatexCommand label
30683 name "sec:PostScript"
30688 \begin_inset LatexCommand index
30689 name "File Formats ! PostScript"
30694 \begin_inset LatexCommand index
30695 name "PostScript|see{File Formats}"
30702 \begin_layout Standard
30703 This file type has the extension
30704 \begin_inset Quotes eld
30712 \begin_inset Quotes erd
30716 PostScript was developed by the company
30720 as printer language.
30721 The file contains therefore commands that the printer uses to print the
30723 PostScript can be seen as
30724 \begin_inset Quotes eld
30727 programming language
30728 \begin_inset Quotes erd
30731 ; you can calculate with it and draw diagrams and images
30735 \begin_layout Standard
30736 If you are interested to learn more about this, have a look at the LaTeX-package
30742 \begin_inset LatexCommand cite
30753 Due to this ability, the files are often bigger than PDFs.
30756 \begin_layout Standard
30757 PostScript can only contain images in the format
30758 \begin_inset Quotes eld
30761 Encapsulated PostScript
30762 \begin_inset Quotes erd
30765 (EPS, file extension
30766 \begin_inset Quotes eld
30774 \begin_inset Quotes erd
30778 As LyX allows you to use any known image format in your document, it has
30779 to convert images in the background to EPS.
30780 If you have e.g 50 images in your document, LyX has to do 50 conversions
30781 whenever you view or export your document.
30782 This will slow down your work flow with LyX drastically.
30783 So if you plan to use PostScript, you can insert your images directly as
30784 EPS to avoid this problem.
30787 \begin_layout Standard
30788 You can export your document to PostScript using the menu
30790 File\SpecialChar \menuseparator
30791 Export\SpecialChar \menuseparator
30795 You can view your document as PostScript via the
30799 menu or by using the toolbar button
30800 \begin_inset Graphics
30801 filename ../images/buffer-view_ps.png
30803 scaleBeforeRotation
30810 \begin_layout Section
30812 \begin_inset LatexCommand label
30818 \begin_inset LatexCommand index
30819 name "File Formats ! PDF"
30824 \begin_inset LatexCommand index
30832 \begin_layout Standard
30833 This file type has the extension
30834 \begin_inset Quotes eld
30842 \begin_inset Quotes erd
30847 \begin_inset Quotes eld
30850 Portable Document Format
30851 \begin_inset Quotes erd
30854 (PDF) is developed by
30858 as derivative from PostScript.
30859 It is more compressed and it uses much less commands than PostScript.
30861 \begin_inset Quotes eld
30865 \begin_inset Quotes erd
30868 implies, it can be processed at any computer system and the printed output
30869 looks exactly the same.
30872 \begin_layout Standard
30873 PDF can contain images in its own PDF format, in the format
30874 \begin_inset Quotes eld
30877 Joint Photographic Experts Group
30878 \begin_inset Quotes erd
30881 (JPG, file extension
30882 \begin_inset Quotes eld
30890 \begin_inset Quotes erd
30894 \begin_inset Quotes eld
30902 \begin_inset Quotes erd
30905 ), and in the format
30906 \begin_inset Quotes eld
30909 Portable Network Graphics
30910 \begin_inset Quotes erd
30913 (PNG, file extension
30914 \begin_inset Quotes eld
30922 \begin_inset Quotes erd
30926 Nevertheless you can use any other image format, because LyX converts them
30927 in the background to one of these formats.
30928 But as described in the section about PostScript, the image conversion
30929 will slow down your work flow.
30930 So it is recommended to use images in one of the three mentioned formats.
30933 \begin_layout Standard
30934 You can export your document to PDF via the menu
30936 File\SpecialChar \menuseparator
30939 in three different ways:
30942 \begin_layout Description
30944 (ps2pdf) This uses the program
30948 that creates a PDF from a PostScript-version of your file.
30949 The PostScript-version is produced by the program
30953 which uses a DVI-version as intermediate step.
30954 So this export variant consist of three conversions.
30957 \begin_layout Description
30959 (dvipdfm) This uses the program
30963 that converts your file in the background to DVI and in a second step to
30967 \begin_layout Description
30969 (pdflatex) This uses the program
30973 that converts your file directly to PDF.
30976 \begin_layout Standard
30977 It is recommended to use
30986 supports all features of actual PDF-versions, is quick and works stable
30992 is not under development and therefore a bit outdated.
30995 \begin_layout Standard
30996 You can view your document as PDF via the
31000 menu or by using the toolbar button
31001 \begin_inset Graphics
31002 filename ../images/buffer-view_pdf2.png
31004 scaleBeforeRotation
31020 \begin_layout Chapter
31021 Explanation of Equation\InsetSpace ~
31023 \begin_inset LatexCommand eqref
31029 \begin_inset LatexCommand label
31030 name "cha:Explanation-of-Equation"
31037 \begin_layout Standard
31043 \begin_inset Formula $W_{\mathrm{tot\, n}}$
31046 can be calculated to
31049 \begin_layout Standard
31050 \begin_inset Formula \begin{equation}
31051 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}
31058 \begin_layout Standard
31060 \begin_inset Formula $W_{g\, n}$
31063 is the given width of all cells.
31070 is the LaTeX-length between the cell text and the cell border, its default
31071 value is 6\InsetSpace \thinspace{}
31079 is the thickness of the cell border line, the default is 0.4\InsetSpace \thinspace{}
31083 \begin_layout Standard
31084 Following equation\InsetSpace ~
31086 \begin_inset LatexCommand eqref
31087 reference "eq:Wtot_n"
31091 , the total width of a multicolumn
31092 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
31098 \begin_layout Standard
31099 \begin_inset Formula \begin{equation}
31100 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
31107 \begin_layout Standard
31108 By setting equation\InsetSpace ~
31110 \begin_inset LatexCommand eqref
31111 reference "eq:Wtot_n"
31116 \begin_inset LatexCommand eqref
31117 reference "eq:Wtot_mult"
31121 equal we can calculate the needed given width
31122 \begin_inset Formula $W_{g\, n}$
31129 columns are spanned, so that each column has a total width of
31130 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
31136 \begin_layout Standard
31137 \begin_inset Formula \begin{equation}
31138 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
31145 \begin_layout Bibliography
31146 \begin_inset LatexCommand bibitem
31147 key "latexcompanion"
31151 Frank Mittelbach and Michel Goossens:
31153 The LaTeX Companion Second Edition.
31156 Addison-Wesley, 2004
31159 \begin_layout Bibliography
31160 \begin_inset LatexCommand bibitem
31165 Helmut Kopka and Patrick W.
31168 A Guide to LaTeX Fourth Edition.
31171 Addison-Wesley, 2003
31174 \begin_layout Bibliography
31175 \begin_inset LatexCommand bibitem
31182 LaTeX: A Document Preparation System.
31185 Addison-Wesley, second edition, 1994
31188 \begin_layout Bibliography
31189 \begin_inset LatexCommand bibitem
31198 \begin_layout Standard
31202 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf}
31212 \begin_layout Standard
31219 of the LaTeX-package
31224 \begin_inset LatexCommand index
31225 name "LaTeX-packages ! booktabs"
31232 \begin_layout Bibliography
31233 \begin_inset LatexCommand bibitem
31242 \begin_layout Standard
31246 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf}{
31255 \begin_layout Standard
31262 of the LaTeX-package
31267 \begin_inset LatexCommand index
31268 name "LaTeX-packages ! caption"
31275 \begin_layout Bibliography
31276 \begin_inset LatexCommand bibitem
31285 \begin_layout Standard
31289 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/anleitung.pdf}
31299 \begin_layout Standard
31306 of the LaTeX-package
31311 \begin_layout Bibliography
31312 \begin_inset LatexCommand bibitem
31321 \begin_layout Standard
31325 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf}
31335 \begin_layout Standard
31342 of the LaTeX-package
31344 endf\SpecialChar \textcompwordmark{}
31348 \begin_inset LatexCommand index
31349 name "LaTeX-packages ! endfloat"
31356 \begin_layout Bibliography
31357 \begin_inset LatexCommand bibitem
31366 \begin_layout Standard
31370 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/floatflt/floatflt.pdf}
31380 \begin_layout Standard
31387 of the LaTeX-package
31389 f\SpecialChar \textcompwordmark{}
31390 loatf\SpecialChar \textcompwordmark{}
31394 \begin_inset LatexCommand index
31395 name "LaTeX-packages ! floatflt"
31402 \begin_layout Bibliography
31403 \begin_inset LatexCommand bibitem
31412 \begin_layout Standard
31416 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf}
31426 \begin_layout Standard
31433 of the LaTeX-package
31438 \begin_inset LatexCommand index
31439 name "LaTeX-packages ! footmisc"
31446 \begin_layout Bibliography
31447 \begin_inset LatexCommand bibitem
31456 \begin_layout Standard
31460 href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf}{
31469 \begin_layout Standard
31476 of the LaTeX-package
31481 \begin_inset LatexCommand index
31482 name "LaTeX-packages ! hyperref"
31489 \begin_layout Bibliography
31490 \begin_inset LatexCommand bibitem
31499 \begin_layout Standard
31503 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf}
31513 \begin_layout Standard
31520 of the LaTeX-package
31525 \begin_inset LatexCommand index
31526 name "LaTeX-packages ! hyperref"
31533 \begin_layout Bibliography
31534 \begin_inset LatexCommand bibitem
31543 \begin_layout Standard
31547 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.p
31557 \begin_layout Standard
31564 of the LaTeX-package
31569 \begin_inset LatexCommand index
31570 name "LaTeX-packages ! koma-script"
31577 \begin_layout Bibliography
31578 \begin_inset LatexCommand bibitem
31579 key "koma-script-de"
31587 \begin_layout Standard
31591 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguide.p
31601 \begin_layout Standard
31608 of the LaTeX-package
31613 \begin_inset LatexCommand index
31614 name "LaTeX-packages ! koma-script"
31621 \begin_layout Bibliography
31622 \begin_inset LatexCommand bibitem
31631 \begin_layout Standard
31635 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf}
31645 \begin_layout Standard
31652 of the LaTeX-package
31657 \begin_inset LatexCommand index
31658 name "LaTeX-packages ! listings"
31665 \begin_layout Bibliography
31666 \begin_inset LatexCommand bibitem
31675 \begin_layout Standard
31679 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.
31689 \begin_layout Standard
31696 of the LaTeX-package
31701 \begin_inset LatexCommand index
31702 name "LaTeX-packages ! marginnote"
31709 \begin_layout Bibliography
31710 \begin_inset LatexCommand bibitem
31719 \begin_layout Standard
31723 href{http://tug.org/PSTricks/main.cgi/}{
31732 \begin_layout Standard
31739 of the LaTeX-package
31744 \begin_inset LatexCommand index
31745 name "LaTeX-packages ! PSTricks"
31752 \begin_layout Bibliography
31753 \begin_inset LatexCommand bibitem
31762 \begin_layout Standard
31766 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf}{
31775 \begin_layout Standard
31782 of the LaTeX-package
31787 \begin_inset LatexCommand index
31788 name "LaTeX-packages ! sidecap"
31795 \begin_layout Bibliography
31796 \begin_inset LatexCommand bibitem
31805 \begin_layout Standard
31809 href{http://wiki.lyx.org/LyX/NewInLyX15}{
31818 \begin_layout Standard
31825 about new features in
31832 \begin_layout Standard
31833 \begin_inset LatexCommand printindex
31840 \begin_layout Standard
31841 \begin_inset FloatList figure
31848 \begin_layout Standard
31849 \begin_inset FloatList table
31856 \begin_layout Standard
31860 \begin_layout Standard
31864 listof{Xalgorithm}{List of Algorithms}
31870 \begin_inset Note Note
31873 \begin_layout Standard
31874 see section\InsetSpace ~
31876 \begin_inset LatexCommand ref
31877 reference "sub:Algorithm-Floats"